/* ==========================================================================
   武汉企小惠 · 套餐功能对比（plan-compare.css）
   风格继承官网 design tokens：--brand / --grad-brand / --radius / Sora + Noto Sans SC
   依赖外部 style.css 已定义的 :root 变量；此处仅新增 .pc-* 组件，不覆盖站点样式。
   ========================================================================== */

/* ---------- 定价卡 ---------- */
.pc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5, 24px);
  margin-bottom: var(--sp-6, 34px);
}

/* 区块整体：防止任何子元素撑破容器 */
#plans { overflow-x: clip; }
#plans .container { box-sizing: border-box; }

.pc-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(15, 23, 42, .08));
  border-radius: var(--radius-lg, 24px);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(15, 23, 42, .05));
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* 顶部色彩带 + 柔光底 */
.pc-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--pc-accent, var(--grad-brand));
}
.pc-card::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 190px; height: 190px;
  border-radius: 50%; background: var(--pc-tint, rgba(255,91,34,.08));
  pointer-events: none; z-index: 0;
}
.pc-card > * { position: relative; z-index: 1; }

.pc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow, 0 14px 40px rgba(15,23,42,.08)); }

/* —— 三色主题：绿 / 橙 / 紫 —— */
.pc-emerald { --pc-accent: linear-gradient(120deg, #0ea371, #5dcaa5); --pc-tint: rgba(14,163,113,.10); --pc-ink: #0b7d57; --pc-soft: var(--emerald-soft, #e6fbf4); }
.pc-brand   { --pc-accent: var(--grad-brand);                     --pc-tint: rgba(255,91,34,.10);  --pc-ink: var(--brand, #ff5b22); --pc-soft: var(--brand-soft, #fff1ea); }
.pc-violet  { --pc-accent: linear-gradient(120deg, #6d5df6, #a78bfa); --pc-tint: rgba(109,93,246,.10); --pc-ink: #5b4bd6; --pc-soft: var(--violet-soft, #efeaff); }

.pc-card.is-featured {
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(255, 91, 34, .20), var(--shadow-sm);
}
.pc-card.is-featured::before { height: 7px; }
.pc-ribbon {
  position: absolute; top: 16px; right: 18px;
  background: var(--grad-brand); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 91, 34, .32);
}

/* 卡头：图标 + 档位名（放大） */
.pc-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pc-ico {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pc-soft); color: var(--pc-ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.pc-ico svg { width: 24px; height: 24px; }
.pc-name {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.62rem; font-weight: 800; letter-spacing: .01em;
  color: var(--pc-ink); line-height: 1.1;
}
.pc-tag {
  margin-left: auto;
  font-size: .72rem; font-weight: 700; color: var(--pc-ink);
  background: var(--pc-soft);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

.pc-lead {
  font-size: .92rem; font-weight: 600; color: var(--ink-soft, #475569);
  margin-bottom: 14px;
}

/* 价格：降低层级，与档位名形成主次 */
.pc-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px;
  color: var(--ink, #0f172a); margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong, rgba(15,23,42,.14));
}
.pc-cur { font-size: 1rem; font-weight: 700; color: var(--pc-ink); }
.pc-price > :not(.pc-month) { font-family: var(--font-display, "Sora", sans-serif); font-size: 1.72rem; font-weight: 800; line-height: 1; }
.pc-unit { font-size: .82rem !important; font-weight: 600 !important; color: var(--muted, #8a98ad); }
.pc-month { flex-basis: 100%; font-size: .8rem; color: var(--ink-soft, #475569); margin-top: 6px; }

/* 规格三栏：浅色底增强内容感 */
.pc-spec {
  list-style: none; margin: 0 0 18px; padding: 12px 10px;
  background: linear-gradient(180deg, var(--pc-tint), rgba(255,255,255,0));
  border-radius: var(--radius-sm, 14px);
  display: flex; justify-content: space-between; gap: 8px;
}
.pc-spec li { flex: 1; min-width: 0; text-align: center; line-height: 1.35; }
.pc-spec li b {
  display: block; font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.28rem; font-weight: 800; color: var(--pc-ink); margin-bottom: 3px;
}
.pc-spec li span { font-size: .78rem; color: var(--ink-soft, #475569); }

/* 功能清单：内容更饱满 */
.pc-feats { margin-top: auto; }
.pc-feats-t {
  font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  color: var(--pc-ink); margin-bottom: 10px;
}
.pc-feats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pc-feats li {
  position: relative; padding-left: 22px;
  font-size: .86rem; color: var(--ink-soft, #475569); line-height: 1.5;
}
.pc-feats li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background-color: var(--pc-ink); background-repeat: no-repeat; background-position: center; background-size: 8px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  opacity: .9;
}
.pc-feats li b { color: var(--pc-ink); }

/* ---------- 对比表 ---------- */
/* 图例 */
.pc-legend {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin: 0 12px 14px; font-size: .82rem; color: var(--muted, #8a98ad);
}
.pc-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.pc-legend i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.pc-legend i.d-yes { background-color: var(--brand, #ff5b22); }
.pc-legend i.d-plan { border: 1.5px solid rgba(109, 93, 246, .5); background: rgba(109, 93, 246, .07); }
.pc-legend i.d-no { border: 1.5px solid var(--line-strong, rgba(15,23,42,.14)); }

.pc-table-wrap {
  max-width: 100%;
  background: var(--card, #fff);
  border: 1px solid var(--line, rgba(15,23,42,.08));
  border-radius: var(--radius-lg, 28px);
  box-shadow: var(--shadow, 0 14px 40px rgba(15,23,42,.08));
  padding: 8px 8px 20px;
  overflow: hidden;
}
.pc-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.pc-table thead th {
  position: sticky; top: var(--nav-h, 72px); z-index: 2;
  background: var(--bg-soft, #f7f8fc);
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: .95rem; font-weight: 700; color: var(--ink, #0f172a);
  padding: 18px 18px; text-align: center;
  border-bottom: 1px solid var(--line, rgba(15,23,42,.08));
}
.pc-th-feat { text-align: left !important; }
.pc-table thead th.pc-col-hl {
  color: var(--brand, #ff5b22);
  background: linear-gradient(180deg, var(--brand-50, #fff5f0), #fff);
}
.pc-table thead th:first-child { border-top-left-radius: var(--radius, 20px); }
.pc-table thead th:last-child { border-top-right-radius: var(--radius, 20px); }

.pc-table tbody td {
  padding: 14px 18px; text-align: center;
  font-size: .92rem; color: var(--ink-soft, #475569);
  border-bottom: 1px solid var(--line, rgba(15,23,42,.07));
}
.pc-table tbody tr:hover td { background: rgba(255, 91, 34, .03); }

.pc-feat { text-align: left !important; color: var(--ink-2, #1e293b); font-weight: 500; }

/* 高亮列（专业版） */
.pc-table .pc-col-hl { background: rgba(255, 91, 34, .045); }
.pc-table tbody tr:hover .pc-col-hl { background: rgba(255, 91, 34, .08); }

/* 分组标题行 */
.pc-group td {
  text-align: left !important;
  background: var(--bg-soft, #f7f8fc);
  font-family: var(--font-display, "Sora", sans-serif);
  font-weight: 700; font-size: .86rem; letter-spacing: .04em;
  color: var(--ink, #0f172a);
  padding: 11px 18px;
  border-bottom: 1px solid var(--line, rgba(15,23,42,.08));
}
.pc-group:hover td { background: var(--bg-soft, #f7f8fc) !important; }

/* 勾 / 叉 / 文字 / Plan+ 状态 */
.pc-table td.yes, .pc-table td.no, .pc-table td.part, .pc-table td.plan { position: relative; font-weight: 600; }
.pc-table td.yes::before,
.pc-table td.no::before {
  content: ""; display: inline-block;
  width: 22px; height: 22px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 12px 12px;
  vertical-align: middle;
}
.pc-table td.yes::before { background-color: var(--brand, #ff5b22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.pc-table td.no::before { background-color: transparent; border: 1.5px solid var(--line-strong, rgba(15,23,42,.14)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6c0d0' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.pc-table td.part { color: var(--brand-deep, #e8431a); font-size: .86rem; }
.pc-table td.yes.pc-col-hl::before { box-shadow: 0 0 0 4px rgba(255, 91, 34, .14); }

.pc-foot {
  margin: 16px 12px 4px; padding-top: 14px;
  border-top: 1px dashed var(--line-strong, rgba(15,23,42,.14));
  font-size: .82rem; color: var(--muted, #8a98ad); line-height: 1.75;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .pc-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pc-spec li b { font-size: 1.16rem; }
  .pc-price > :not(.pc-month) { font-size: 1.6rem; }
}

@media (max-width: 760px) {
  .pc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius, 16px); }
  .pc-table { min-width: 620px; }
  .pc-table thead th { position: static; padding: 14px 12px; font-size: .86rem; }
  .pc-table tbody td, .pc-feat { padding: 12px 12px; font-size: .86rem; }
  .pc-group td { font-size: .8rem; }
}

/* 窄屏兜底：无论父级宽高如何，表格容器都不撑破视口 */
@media (max-width: 900px) {
  #plans { overflow-x: hidden; }
  .pc-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
}

@media (max-width: 420px) {
  .pc-card { padding: 22px 18px; }
  .pc-price > :not(.pc-month) { font-size: 1.5rem; }
  .pc-spec li { font-size: .76rem; }
  .pc-spec li b { font-size: 1.06rem; }
  .pc-name { font-size: 1.4rem; }
  .pc-ico { width: 40px; height: 40px; }
  .pc-ico svg { width: 21px; height: 21px; }
  .pc-table-wrap { padding: 6px 6px 16px; }
}

/* ---------- Plan+（规划中的进阶能力，非当期承诺） ---------- */
.pc-table td.plan { position: relative; font-weight: 600; }
.pc-table td.plan > .plan-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  color: var(--violet, #6d5df6);
  border: 1px solid rgba(109, 93, 246, .34);
  background: rgba(109, 93, 246, .07);
  white-space: nowrap;
}
.pc-table td.plan.pc-col-hl > .plan-badge {
  box-shadow: 0 0 0 3px rgba(255, 91, 34, .10);
}
.pc-feats li .plan-t {
  color: var(--muted, #8a98ad);
  border-bottom: 1px dashed rgba(109, 93, 246, .45);
}

