* { box-sizing: border-box; }

body { margin: 0; padding: 0; }

a { color: var(--color-brand); }

/* 覆盖 common.css 的 * { font-family: MiSans; font-weight: 300 }
   —— MiSans-Light(300) 太细，且 font-display:swap 导致加载后闪烁替换。
   使用系统字体栈 + 常规字重，加载即稳定。 */
body, body * {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 400;
}


.nav-item { display: flex; flex-direction: row; align-items: center; gap: 4px; cursor: pointer; height: 100%; transition: all .3s cubic-bezier(.4,0,.2,1); position: relative; text-decoration: none; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 52px 20px 44px;
    position: relative;
}
.hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; letter-spacing: 1px; }
.hero p  { font-size: 15px; color: #8899aa; }

/* ── 当前等级横幅 ── */
.vip-banner {
    background: var(--color-dark);
    color: var(--color-gold);
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}
.vip-banner .vip-name { color: #f0d060; }
.vip-banner.show { display: block; }

/* ── Container ── */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ── 价格总览 ── */
.price-strip {
    margin: 24px auto 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    position: relative; z-index: 2;
}
.price-strip .pcard { flex: 1 1 0; min-width: 0; }
.pcard {
    background: var(--color-panel);
    border-radius: 8px;
    padding: 12px 8px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative; overflow: hidden;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.pcard.top {
    border-color: var(--color-gold);
    box-shadow: 0 4px 16px rgba(212,168,83,0.25);
    background: var(--color-parchment);
}
.pcard.top::after {
    content: '\6700\53d7\6b22\8fce';
    position: absolute; top: 6px; right: -28px;
    background: var(--color-gold); color: #fff;
    font-size: 9px; font-weight: 400;
    padding: 1px 30px; transform: rotate(45deg);
    z-index: 1;
}
.pcard .lv { font-size: 12px; font-weight: 400; margin-bottom: 1px; color: var(--color-text); }
.pcard .lv-desc { font-size: 9px; color: var(--color-text-muted); margin-bottom: 6px; }
.pcard .price { font-size: 18px; font-weight: 800; line-height: 1; color: var(--color-text); }
.pcard .price.free { color: #48bb78; }
.pcard .price small { font-size: 10px; font-weight: 400; color: var(--color-text-muted); }
.pcard .unit { font-size: 9px; color: var(--color-text-muted); margin: 2px 0 4px; }
.pcard .unit-daily { font-size: 9px; color: var(--color-text-faint); margin-bottom: 4px; }
.pcard .tagline { font-size: 9px; color: var(--color-text-muted); line-height: 1.3; min-height: 20px; }
.pcard .price.contact { font-size: 18px; }
.pcard .unit.muted { color: var(--color-text-muted); }
.pcard-btn {
    background: var(--color-dark); color: var(--color-gold); border: none;
    padding: 8px 0; width: 100%; border-radius: 12px;
    font-size: 12px; font-weight: 800; cursor: pointer; margin-top: 6px;
}
.pcard-btn:hover { background: #2a2a2a; color: #f0d060; }
.pcard.current-level {
    border: 2px solid #48bb78;
    box-shadow: 0 4px 16px rgba(72,187,120,0.3);
}
.current-level-badge {
    color: #48bb78; font-size: 11px; font-weight: 400; margin-top: 6px;
}

/* ── 章节 ── */
.section { margin: 0 0 24px; }
.section-title {
    font-size: 20px; font-weight: 400; color: var(--color-text);
    padding-bottom: 10px; border-bottom: 1px solid var(--color-border); margin-bottom: 16px;
}
.section-title .count { font-size: 13px; font-weight: 400; color: var(--color-text-faint); margin-left: 6px; }

/* ── 对比表 ── */
.tbl-wrap {
    background: var(--color-panel); border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
    background: var(--color-subtle); color: var(--color-text-sec); font-weight: 400; font-size: 12px;
    padding: 12px 6px; text-align: center; border-bottom: 2px solid var(--color-border);
    white-space: normal; position: sticky; top: 0;
}
.tbl thead th small { display: block; font-size: 11px; color: var(--color-text-muted); }
.tbl thead th:first-child { text-align: left; padding-left: 18px; width: 160px; }
.tbl tbody td {
    padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle; background: var(--color-panel);
}
.tbl tbody td:first-child { text-align: left; padding-left: 18px; }
.tbl tbody tr:hover td { background: var(--color-subtle); }
.tbl tbody tr:last-child td { border-bottom: none; }
.q-item { font-weight: 600; color: var(--color-text); }
.q-desc { font-size: 11px; color: var(--color-text-faint); display: block; margin-top: 1px; }

/* 状态图标 */
.yes  { color: #48bb78; font-weight: 400; font-size: 15px; }
.no   { color: #e53e3e; font-size: 15px; font-weight: 400; }
.paid { color: #e53e3e; font-weight: 600; font-size: 12px; }
.limit{ color: var(--color-brand); font-size: 12px; font-weight: 600; }

/* 宗师列（最后一列）浅绿背景 — 暗色模式用半透明 */
.tbl tbody td:last-child { background: rgba(72,187,120,.08); }

/* 高亮行 — 暗色模式用半透明 */
.hl-yellow td { background: rgba(212,175,55,.08); }
.hl-yellow td:last-child { background: rgba(72,187,120,.1); }
.hl-yellow:hover td { background: rgba(212,175,55,.14); }
.hl-yellow:hover td:last-child { background: rgba(72,187,120,.16); }

.hl-purple td { background: rgba(168,85,247,.08); }
.hl-purple td:last-child { background: rgba(168,85,247,.12); }
.hl-purple:hover td { background: rgba(168,85,247,.14); }
.hl-purple:hover td:last-child { background: rgba(168,85,247,.18); }

/* ── 差价分析 ── */
.upgrade-table { margin: 24px 0; }
.upgrade-table .tbl-wrap { overflow-x: auto; }
.upgrade-table .star { color: var(--color-gold); font-size: 13px; }
.upgrade-table .desc-col .note { font-size: 11px; color: var(--color-text-muted); display: block; margin-top: 2px; }

/* ── 推荐区块 ── */
.recommend { margin: 36px 0; }
.recommend .section-title { margin-bottom: 20px; }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rec-card {
    background: var(--color-panel); border-radius: 10px; padding: 16px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 3px solid var(--color-border);
}
.rec-card.r1 { border-top-color: var(--color-brand); }
.rec-card.r2 { border-top-color: var(--color-gold); }
.rec-card.r3 { border-top-color: #a855f7; }
.rec-card.r4 { border-top-color: #48bb78; }
.rec-card h3 { font-size: 14px; font-weight: 400; margin-bottom: 8px; color: var(--color-text); }
.rec-card .price-tag { font-size: 18px; font-weight: 800; color: #48bb78; margin-bottom: 8px; }
.rec-card .price-tag.r2 { color: var(--color-gold); }
.rec-card .price-tag.r3 { color: #a855f7; }
.rec-card .price-tag.r4 { color: #48bb78; }
.rec-card .for { font-size: 11px; color: var(--color-text-muted); margin-bottom: 8px; }
.rec-card ul { list-style: none; padding: 0; }
.rec-card li { font-size: 12px; padding: 2px 0; color: var(--color-text-sec); }
.rec-card li::before { content: '\2713 '; color: #48bb78; font-weight: 400; }

/* ── 页脚 ── */
.footer {
    text-align: center; color: var(--color-text-faint); font-size: 12px; padding: 40px 0 32px;
    border-top: 1px solid var(--color-border-light); margin-top: 32px;
}
.footer p { margin: 4px 0; }
.footer-sep { margin: 0 8px; }

/* ── 响应式 ── */
@media (max-width: 750px) {
    .price-strip { flex-wrap: wrap; }
    .price-strip .pcard { flex: 1 1 160px; min-width: 140px; }
    .rec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .price-strip .pcard { flex: 1 1 100%; min-width: 0; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .hero { padding: 36px 16px 32px; }
    .nav-item .en { display: none; }
    .wrap { padding: 0 10px; }
    .section-title { font-size: 17px; }
    .rec-card { padding: 18px 14px; }
    .footer { font-size: 11px; padding: 28px 0 24px; }
}

/* ── 单项收费功能汇总卡片 ─────────────────────────────── */
.feat-summary-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.fsc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-light);
}
.fsc-kpi-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.fsc-kpi {
    flex: 1;
    min-width: 80px;
    background: var(--color-subtle);
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
}
.fsc-kpi-num { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.fsc-kpi-label { font-size: 11px; color: var(--color-text-muted); }
.fsc-blue  { color: var(--color-brand); }
.fsc-green { color: #0a7c4f; }
.fsc-red   { color: #c62828; }
.fsc-gold  { color: var(--color-gold); }

.fsc-tip {
    font-size: 12px;
    color: var(--color-text-muted);
    background: var(--color-subtle);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 16px;
    border-left: 3px solid var(--color-gold);
}

.fsc-groups { display: flex; flex-direction: column; gap: 0; }
.fsc-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border-light);
}
.fsc-group:last-child { border-bottom: none; }
.fsc-group-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-sec);
    min-width: 64px;
    padding-top: 2px;
}
.fsc-group-items { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.fsc-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(74,108,247,.12);
    color: var(--color-brand);
}
.fsc-tag-free { background: rgba(10,124,79,.12); color: #0a7c4f; }
.fsc-group-sum {
    font-size: 12px;
    font-weight: 700;
    color: #c62828;
    min-width: 54px;
    text-align: right;
    padding-top: 2px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   Dark 模式
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1030 0%, #201840 50%, #181230 100%);
}
html[data-theme="dark"] .hero p { color: #9a8ab8; }
html[data-theme="dark"] .vip-banner .vip-name { color: #d4a8e8; }
html[data-theme="dark"] .pcard.top {
    box-shadow: 0 4px 16px rgba(180,140,210,0.2);
}
html[data-theme="dark"] .pcard-btn:hover { background: #2a1f4a; color: #d4a8e8; }
html[data-theme="dark"] .pcard.current-level { box-shadow: 0 4px 16px rgba(90,185,120,0.25); }
html[data-theme="dark"] .current-level-badge { color: #5ab85a; }
html[data-theme="dark"] .price-strip .pcard .price.free { color: #5ab85a; }

html[data-theme="dark"] .tbl-wrap,
html[data-theme="dark"] .feat-summary-card { box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
html[data-theme="dark"] .pcard:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

html[data-theme="dark"] .yes  { color: #5ab85a; }
html[data-theme="dark"] .no   { color: #e06060; }
html[data-theme="dark"] .paid { color: #e06060; }

html[data-theme="dark"] .rec-card { box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
html[data-theme="dark"] .rec-card.r3 { border-top-color: #c098e0; }
html[data-theme="dark"] .rec-card.r4 { border-top-color: #5ab85a; }
html[data-theme="dark"] .rec-card .price-tag { color: #5ab85a; }
html[data-theme="dark"] .rec-card .price-tag.r3 { color: #c098e0; }
html[data-theme="dark"] .rec-card .price-tag.r4 { color: #5ab85a; }
html[data-theme="dark"] .rec-card li::before { color: #5ab85a; }

html[data-theme="dark"] .fsc-blue { color: #b894d8; }
html[data-theme="dark"] .fsc-green { color: #5ab85a; }
html[data-theme="dark"] .fsc-red   { color: #e06060; }
html[data-theme="dark"] .fsc-tag   { background: rgba(180,148,216,.15); }
html[data-theme="dark"] .fsc-tag-free { background: rgba(90,185,90,.15); color: #5ab85a; }
html[data-theme="dark"] .fsc-group-sum { color: #e06060; }

html[data-theme="dark"] .section-title { border-bottom-color: #9a8ab8; }
html[data-theme="dark"] .tbl-wrap,
html[data-theme="dark"] .feat-summary-card { border-color: #9a8ab8; }
html[data-theme="dark"] .tbl thead th,
html[data-theme="dark"] .tbl tbody td,
html[data-theme="dark"] .fsc-group,
html[data-theme="dark"] .fsc-title { border-color: #9a8ab8; }
html[data-theme="dark"] .footer { border-top-color: #9a8ab8; }
