/* ============================================================
   我的产品 · 紧凑小卡 v5（2026-11-30）
   单行工具栏 / 无勾选 / 无开通时间
   ============================================================ */
.pl-page {
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  padding-bottom: 24px;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* ---------- 头部 ---------- */
.pl-head { margin-bottom: 14px; }
.pl-title { margin: 0; font-size: 22px; font-weight: 700; color: #111827; letter-spacing: .2px; }

/* ---------- 状态统计 ---------- */
.pl-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pl-stats::-webkit-scrollbar { display: none; }
.pl-stat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e9f2;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.pl-stat:hover { border-color: #c7d6f5; color: #2f54eb; }
.pl-stat.is-active { background: #eff4ff; border-color: #2f54eb; color: #2f54eb; font-weight: 600; }
.pl-stat-num {
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  text-align: center;
}
.pl-stat.is-active .pl-stat-num { background: #2f54eb; color: #fff; }

/* ---------- 工具栏：筛选 + 搜索同一行 ---------- */
.pl-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pl-select { width: 132px; min-width: 0; }
.pl-search { display: flex; align-items: stretch; min-width: 0; }
.pl-search .pl-search-input { width: 220px; min-width: 0; }
.pl-search .pl-search-input .el-input__inner {
  height: 32px;
  line-height: 32px;
  border-radius: 8px;
}
.pl-search-btn {
  height: 32px;
  padding: 0 16px;
  margin-left: -1px;
  border: 1px solid #2f54eb;
  border-radius: 0 8px 8px 0;
  background: #2f54eb;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease;
}

/* ---------- 卡片网格（紧凑） ---------- */
.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  min-height: 100px;
}
.pl-card {
  position: relative;
  min-width: 0;
  padding: 11px 14px 10px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.pl-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #1bc5bd;
}
.pl-card--active::before { background: #1bc5bd; }
.pl-card--suspended::before { background: #f99600; }
.pl-card--unpaid::before { background: #f64e60; }
.pl-card--deleted::before { background: #c4c9d4; }
.pl-card--grace::before { background: #e6b800; }
.pl-card--keep::before { background: #ffad16; }
.pl-card--pending::before,
.pl-card--failed::before { background: #3699ff; }
.pl-card:hover {
  border-color: #d5e2f7;
  box-shadow: 0 8px 20px -14px rgba(47, 84, 235, .5);
}

.pl-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.pl-card-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; }
.pl-card-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.pl-card-name:hover { color: #2f54eb; }
.pl-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.pl-card-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  white-space: nowrap;
}
.pl-card-id {
  flex: 0 1 auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.pl-card-id:hover { color: #2f54eb; }
.pl-sep { color: #d1d5db; flex: 0 0 auto; }
.pl-ip { font-family: ui-monospace, Menlo, Consolas, monospace; color: #374151; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.pl-ip--none { color: #c0c7d3; font-family: inherit; }
.pl-copy { color: #2f54eb; cursor: pointer; flex: 0 0 auto; }
.pl-copy:hover { opacity: .7; }
.pl-ip-more { color: #2f54eb; cursor: pointer; font-size: 11px; flex: 0 0 auto; }
.pl-note {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9ca3af;
}

.pl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.pl-due { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-due.is-warn { color: #dc2626; font-weight: 600; }
.pl-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid #d5e0f5;
  border-radius: 7px;
  background: #fff;
  color: #2f54eb;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.pl-btn:hover { background: #2f54eb; border-color: #2f54eb; color: #fff; }

.pl-empty { grid-column: 1 / -1; padding: 36px 0; }
.pl-pager { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ---------- 移动端 ---------- */
@media screen and (max-width: 768px) {
  .pl-page { padding-bottom: 16px; }
  .pl-title { font-size: 20px; }
  .pl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .pl-select { flex: 0 0 108px; width: 108px; }
  .pl-search { flex: 1 1 auto; min-width: 0; }
  .pl-search .pl-search-input { flex: 1 1 0; width: auto; min-width: 0; }
  .pl-search .pl-search-input .el-input__inner { width: 100%; }
  .pl-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pl-card { padding: 10px 12px 9px; }
  .pl-pager { justify-content: center; }
}
