/* 轻松备考 BeikaoPro · 样式表（蓝金配色，取自品牌徽标） */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f8f9fd;
  --line: #e0e5f0;
  --text: #19203a;
  --muted: #5d6680;
  --faint: #626e87;
  --brand: #1a3aa6;        /* 品牌蓝 */
  --brand-d: #12297e;
  --brand-2: #e7edfc;
  --accent: #8c5e0e;       /* 金色（文字用，保证浅底可读） */
  --accent-2: #fbf2de;
  --gold: #e9bc5c;         /* 金色（装饰用） */
  --ok: #21623c;
  --ok-2: #e2f2e7;
  --bad: #a62e29;
  --bad-2: #f8e3e1;
  --warn: #795905;
  --warn-2: #f7efd6;
  --info: #08706d;         /* 徽标里的青色 */
  --info-2: #dff4f3;
  --c-zx: #1a3aa6; --c-zx-2: #e7edfc;
  --c-jz: #08706d; --c-jz-2: #dff4f3;
  --c-zj: #8c5e0e; --c-zj-2: #fbf2de;
  --on-brand: #ffffff;
  --hero-navy: #111d36; --hero-blue: #203b68;
  --hero-text: #f5f7ff; --hero-muted: #c7d3e8; --hero-accent: #f2cd81; --hero-border: #6c82a7;
  --header-height: 68px;
  --promo-bg: linear-gradient(135deg, #0b2a9a 0%, #0d4ea6 60%, #0a8f9a 100%);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 70, .05), 0 4px 14px rgba(20, 30, 70, .06);
  --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1220; --panel: #161b2d; --panel-2: #121626; --line: #333b58; --text: #e7eaf3; --muted: #aeb7cf; --faint: #a0abc6;
    --brand: #8eaaff; --brand-d: #b0c4ff; --brand-2: #1b2550; --accent: #ecc46e; --accent-2: #33291a; --gold: #f0cf86;
    --ok: #63b77d; --ok-2: #1f3325; --bad: #e2766c; --bad-2: #3a2321; --warn: #d9b14a; --warn-2: #352d17; --info: #5fd0cb; --info-2: #123232;
    --c-zx: #8eaaff; --c-zx-2: #1b2550; --c-jz: #5fd0cb; --c-zj-2: #33291a; --c-jz-2: #123232; --c-zj: #ecc46e;
    --on-brand: #0c1430;
    --promo-bg: linear-gradient(135deg, #142063 0%, #123c78 60%, #0d5c66 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0e1220; --panel: #161b2d; --panel-2: #121626; --line: #333b58; --text: #e7eaf3; --muted: #aeb7cf; --faint: #a0abc6;
    --brand: #8eaaff; --brand-d: #b0c4ff; --brand-2: #1b2550; --accent: #ecc46e; --accent-2: #33291a; --gold: #f0cf86;
    --ok: #63b77d; --ok-2: #1f3325; --bad: #e2766c; --bad-2: #3a2321; --warn: #d9b14a; --warn-2: #352d17; --info: #5fd0cb; --info-2: #123232;
    --c-zx: #8eaaff; --c-zx-2: #1b2550; --c-jz: #5fd0cb; --c-zj-2: #33291a; --c-jz-2: #123232; --c-zj: #ecc46e;
    --on-brand: #0c1430;
    --promo-bg: linear-gradient(135deg, #142063 0%, #123c78 60%, #0d5c66 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.35);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 10px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.65; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; z-index: 99; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: var(--header-height); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: #1a3aa6; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.logo.sm { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
.brand-txt { line-height: 1.2; }
.brand-t { font-weight: 750; font-size: 1.0625rem; }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mainnav a { display: flex; align-items: center; min-height: 44px; color: var(--text); padding: 7px 12px; border-radius: 8px; font-size: .9375rem; }
.mainnav a:hover { background: var(--panel-2); text-decoration: none; color: var(--brand); }
.mainnav a.on { color: var(--brand); background: var(--brand-2); font-weight: 600; }
.theme-btn, .nav-toggle { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--muted); }
.theme-btn { display: grid; place-items: center; }
.theme-btn:hover, .nav-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-btn[aria-pressed="true"] .theme-moon, .theme-btn[aria-pressed="false"] .theme-sun { display: none; }
.nav-toggle { display: none; margin-left: auto; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - var(--header-height)); overflow: auto; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 10px 12px; }
}
@media (max-width: 420px) {
  .topbar-in { gap: 8px; }
  .brand .brand-en { display: none; }
}

/* ---------- 通用组件 ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-size: .9375rem; line-height: 1.4; text-align: center; }
.btn:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.btn-p { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-p:hover { background: var(--brand-d); border-color: var(--brand-d); color: var(--on-brand); }
.btn-sm { min-height: 38px; padding: 5px 12px; font-size: .875rem; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.tag { display: inline-block; font-size: 12px; line-height: 1.6; padding: 0 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tag-zx { background: var(--c-zx-2); color: var(--c-zx); border-color: transparent; }
.tag-jz { background: var(--c-jz-2); color: var(--c-jz); border-color: transparent; }
.tag-zj { background: var(--c-zj-2); color: var(--c-zj); border-color: transparent; }
.tag-pin { background: var(--accent-2); color: var(--accent); border-color: transparent; }
.tag-pend { background: var(--warn-2); color: var(--warn); border-color: transparent; }
.alert { padding: 11px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-2); color: var(--ok); }
.alert-bad { background: var(--bad-2); color: var(--bad); }
.alert-info { background: var(--info-2); color: var(--info); }
.note { background: var(--panel-2); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; color: var(--muted); margin: 14px 0; }
.empty { text-align: center; color: var(--faint); padding: 40px 0; }

/* ---------- 页面头 ---------- */
.page-head { padding: clamp(28px, 4vw, 48px) 0 22px; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); text-wrap: balance; margin-bottom: 8px; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; }
.crumb { font-size: 13px; color: var(--faint); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.section { padding: clamp(24px, 4vw, 42px) 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-h h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); margin: 0; }
.sec-h a { font-size: .9375rem; }
.section-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }

/* ---------- 首页 Hero ---------- */
.home-hero { padding-block: clamp(38px, 6.2vw, 84px); color: var(--hero-text); background: radial-gradient(ellipse at 85% 0%, var(--hero-blue), transparent 72%), var(--hero-navy); }
.home-hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.home-hero-grid.has-preview { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.home-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .875rem; font-weight: 700; color: var(--hero-accent); }
.home-kicker::before { content: ""; flex: 0 0 18px; height: 2px; background: currentColor; }
.home-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.9rem); line-height: 1.19; margin: 0 0 18px; }
.home-hero h1 em { font-style: normal; color: var(--hero-accent); }
.home-hero .lead { font-size: clamp(1rem, 1.45vw, 1.125rem); color: var(--hero-muted); margin: 0 0 22px; max-width: 29em; }
.home-hero .btn { background: transparent; border-color: var(--hero-border); color: var(--hero-text); }
.home-hero .btn:hover { background: var(--hero-blue); border-color: var(--hero-text); }
.home-hero .btn-p { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--hero-navy); font-weight: 700; }
.home-hero .btn-p:hover { background: var(--hero-text); color: var(--hero-navy); }
.home-hero :focus-visible { outline-color: var(--hero-accent); }
.home-version { margin: 12px 0 0; color: var(--hero-muted); font-size: .8125rem; }
.home-preview { margin: 0; min-width: 0; }
.home-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--hero-border); border-radius: 13px; box-shadow: 0 16px 36px rgba(0,0,0,.28); }
.home-preview figcaption { margin-top: 10px; text-align: right; color: var(--hero-muted); font-size: .8125rem; }
.eyebrow { display: inline-block; font-size: 13px; color: var(--brand); background: var(--brand-2); padding: 3px 12px; border-radius: 99px; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { padding: 11px 17px; }
.exam-strip { padding-block: 20px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.exam-strip .sec-h { align-items: center; margin-bottom: 8px; }
.exam-strip h2 { font-size: 1.125rem; }
.count-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.count { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--text); }
.count:hover { text-decoration: none; border-color: var(--brand); }
.count .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.ic-zx { background: var(--c-zx-2); color: var(--c-zx); }
.ic-jz { background: var(--c-jz-2); color: var(--c-jz); }
.ic-zj { background: var(--c-zj-2); color: var(--c-zj); }
.count .ct { flex: 1; min-width: 0; }
.count .ct b { display: block; font-size: 15.5px; }
.count .ct span { font-size: .8125rem; color: var(--faint); overflow-wrap: anywhere; }
.count .days { text-align: right; flex: none; white-space: nowrap; }
.count .days b { font-size: 28px; font-weight: 700; line-height: 1; }
.count .days small { color: var(--muted); font-size: 12px; }
@media (max-width: 820px) {
  .home-hero-grid.has-preview, .count-list { grid-template-columns: minmax(0, 1fr); }
  .home-preview { max-width: 640px; }
  .count { padding: 10px 14px; }
}

/* ---------- 四大服务 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { display: block; color: var(--text); }
.svc:hover { text-decoration: none; border-color: var(--brand); }
.svc .si { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-2); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.svc:nth-child(2) .si { background: var(--accent-2); color: var(--accent); }
.svc:nth-child(3) .si { background: var(--info-2); color: var(--info); }
.svc:nth-child(4) .si { background: var(--ok-2); color: var(--ok); }
.svc h3 { font-size: 17px; margin-bottom: 6px; }
.svc p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- 列表 ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px dashed var(--line); }
.list li:last-child { border-bottom: 0; }
.list a.row { display: flex; gap: 12px; min-height: 44px; align-items: baseline; padding: 11px 0; color: var(--text); }
.list a.row:hover { text-decoration: none; color: var(--brand); }
.list .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .d { color: var(--faint); font-size: 13px; flex: none; }
.items { display: grid; gap: 14px; }
.item { display: block; color: var(--text); }
.item:hover { text-decoration: none; border-color: var(--brand); }
.item h3 { font-size: 17.5px; margin: 6px 0; }
.item p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--faint); }

/* 筛选条 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.filters .lbl { color: var(--faint); font-size: 13px; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .875rem; }
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.search { display: flex; gap: 8px; margin-left: auto; }
.search input { width: 220px; }
@media (max-width: 640px) { .search { margin-left: 0; width: 100%; } .search input { flex: 1; width: auto; min-width: 0; } }

/* 侧栏 */
.side-box + .side-box { margin-top: 16px; }
.side-box h3 { font-size: 16px; margin-bottom: 10px; }

/* 资料卡 */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .res-grid { grid-template-columns: 1fr; } }
.res { display: flex; flex-direction: column; gap: 8px; }
.res h3 { font-size: 16.5px; margin: 0; }
.res p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.res .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--faint); }

/* 正文 */
.article { max-width: 820px; }
.article h1 { font-size: 28px; }
.prose { font-size: 16px; line-height: 1.85; }
.prose h3 { font-size: 19px; margin: 1.6em 0 .6em; padding-left: 10px; border-left: 4px solid var(--brand); }
.prose h4 { font-size: 16.5px; margin: 1.3em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--text); }
.art-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.art-nav a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 考试方法 ---------- */
.exam-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.exam-tab { display: flex; gap: 10px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.exam-tab .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; }
.exam-tab:hover { text-decoration: none; border-color: var(--brand); }
.exam-tab.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-2); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.kv .card { padding: 16px 18px; }
.kv .k { font-size: 13px; color: var(--faint); }
.kv .v { font-size: 16px; font-weight: 600; margin-top: 2px; }
@media (max-width: 760px) { .kv { grid-template-columns: 1fr; } }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--panel-2); font-weight: 600; color: var(--muted); font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: ph; }
.phase { position: relative; padding-top: 22px; }
.phase::before { counter-increment: ph; content: counter(ph); position: absolute; top: -14px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 3px var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.phase h3 { font-size: 17px; margin-bottom: 2px; }
.phase .when { font-size: 12.5px; color: var(--accent); margin-bottom: 8px; }
.phase p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }
.rhythm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rhythm .st { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.rhythm .st small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; }
.rhythm .ar { color: var(--faint); }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 12px 40px; position: relative; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tips li strong { color: var(--text); }
.chap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .chap-grid { grid-template-columns: 1fr; } }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 120px 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar .bn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .bt { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar .bf { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--info)); border-radius: 99px; }
.bar .bv { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .bar { grid-template-columns: minmax(0, 1fr) 70px 30px; } }

/* ---------- 工具页 ---------- */
.tool-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .tool-hero { grid-template-columns: 1fr; } }
.shot { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-body { display: grid; grid-template-columns: 110px 1fr; min-height: 250px; }
.shot-side { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 6px; align-content: start; font-size: 12px; color: var(--muted); }
.shot-side span { padding: 4px 8px; border-radius: 6px; }
.shot-side span.on { background: var(--brand-2); color: var(--brand); font-weight: 600; }
.shot-main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shot-kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 11px; color: var(--faint); }
.shot-kpi b { display: block; font-size: 18px; color: var(--text); }
.shot-task { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.shot-task i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--brand); flex: none; }
.shot-task.done i { background: var(--brand); }
.shot-task.done span { color: var(--faint); text-decoration: line-through; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feat-grid { grid-template-columns: 1fr; } }
.feat h3 { font-size: 16px; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-2); color: var(--brand); font-weight: 700; display: grid; place-items: center; }

/* 宣传条 */
.promo { display: flex; align-items: center; gap: 24px; justify-content: space-between; background: var(--promo-bg); color: #fff; border-radius: 16px; padding: 28px 32px; }
.promo h2 { font-size: 22px; margin-bottom: 4px; color: #fff; }
.promo p { margin: 0; opacity: .88; }
.promo .btn { background: var(--gold); color: #1a1405; border-color: var(--gold); font-weight: 600; }
.promo .btn:hover { background: #f3d58f; border-color: #f3d58f; color: #1a1405; }
@media (max-width: 700px) { .promo { flex-direction: column; align-items: flex-start; padding: 22px; } }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.f { display: grid; gap: 5px; }
.f > span { font-size: 13.5px; color: var(--muted); }
.f > span em { color: var(--bad); font-style: normal; }
.f .hint { font-size: 12.5px; color: var(--faint); }
input[type=text], input[type=password], input[type=date], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-2); }
.form input:not([type=checkbox]):not([type=radio]), .form select { min-height: 44px; }
.form-row > *, .f, .f > * { min-width: 0; }
textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.toc { position: sticky; top: 84px; display: grid; gap: 4px; }
.toc a { padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.toc a:hover { background: var(--panel); color: var(--brand); text-decoration: none; }
.about-sec { scroll-margin-top: 84px; }
.about-sec + .about-sec { margin-top: 18px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; } }

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 24px 0 8px; font-size: 14px; }
.pager a, .pager span { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.pager .off { color: var(--faint); }
.pager .cur { border-color: transparent; background: transparent; color: var(--muted); }

/* ---------- 页脚 ---------- */
.foot { margin-top: 48px; background: var(--panel); border-top: 1px solid var(--line); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 36px 16px 24px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; }
.foot-grid a:hover { color: var(--brand); }
.foot-h { font-weight: 600; margin-bottom: 8px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.foot-about p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 420px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 14px 16px 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.beian { display: flex; gap: 16px; flex-wrap: wrap; }
.beian a { color: var(--faint); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- 后台 ---------- */
.admin-site-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: .875rem; }
.admin-body .topbar-in { max-width: 1460px; }
.wrap.admin-shell { max-width: 1460px; padding-block: clamp(24px, 3vw, 40px) 56px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.admin-heading h1, .login-box h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.125rem); }
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.admin-content { min-width: 0; }
.admin-content .card { overflow-wrap: anywhere; }
.admin-menu { position: sticky; top: calc(var(--header-height) + 16px); min-width: 0; }
.admin-menu > summary { display: none; }
.admin-tabs { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-nav-group + .admin-nav-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-nav-group p { margin: 0 0 5px; padding-inline: 10px; font-size: .8125rem; color: var(--muted); font-weight: 650; }
.admin-nav-group ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.admin-tabs a { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: .9375rem; }
.admin-tabs a > svg { flex: none; color: var(--muted); }
.admin-tabs a.on, .admin-tabs a:hover { background: var(--brand-2); text-decoration: none; color: var(--brand); }
.admin-tabs a.on { font-weight: 700; }
.admin-tabs a.on > svg { color: inherit; }
.admin-tabs .badge { margin-inline-start: auto; padding: 0 6px; border-radius: 99px; background: var(--warn-2); color: var(--warn); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.feedback-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-metrics .metric { padding: 14px 16px; box-shadow: none; border-top: 3px solid var(--line); }
.metric dt { color: var(--muted); font-size: .875rem; }
.metric dd { margin: 4px 0 0; color: var(--text); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 750; line-height: 1.2; }
.admin-metrics .metric-all { border-top-color: var(--brand); }
.admin-metrics .metric-active, .admin-metrics .metric-handled { border-top-color: var(--ok); }
.admin-metrics .metric-revoked { border-top-color: var(--bad); }
.admin-metrics .metric-unread { border-top-color: var(--warn); }
.tag-active { color: var(--ok); background: var(--ok-2); border-color: transparent; }
.tag-revoked { color: var(--bad); background: var(--bad-2); border-color: transparent; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.login-box { max-width: 480px; margin: clamp(12px, 7vh, 72px) auto 0; padding: clamp(22px, 4vw, 38px); border-top: 4px solid var(--brand); }
.login-box h1 { margin-bottom: 12px; }
.login-box .alert { margin-top: 16px; }
.login-secondary { margin-top: 14px; }
.mfa-secret { display: block; overflow-wrap: anywhere; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; letter-spacing: .035em; }
.license-card { margin-bottom: 16px; }
.license-card h3 { margin: 0 0 12px; font-size: 1.0625rem; }
.license-list-tools, .license-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.license-list-tools { margin-bottom: 14px; }
.license-filters { flex: 1 1 410px; }
.license-search { flex: 1 1 160px; }
.license-filters input, .license-filters select { width: 100%; min-height: 44px; }
.license-generate { grid-template-columns: minmax(80px, 130px) minmax(100px, 1fr) auto; align-items: end; }
.license-table th, .license-table td { vertical-align: top; padding: 10px; }
.license-table code { font-size: .875rem; overflow-wrap: anywhere; }
.license-table details { margin-top: 6px; }
.license-table summary { cursor: pointer; color: var(--brand); padding-block: 4px; }
.license-table details form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.license-table input[type=text] { max-width: 11rem; min-width: 0; }
.license-pagination { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.license-codes { width: 100%; min-height: 110px; max-height: 300px; padding: 12px; background: var(--panel-2); font: 14px/1.8 Consolas, monospace; }
.mobile-cell-label { display: none; }
@media (max-width: 1050px) {
  .wrap.admin-shell { padding-inline: clamp(16px, 3vw, 32px); }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-menu { position: static; }
  .admin-tabs { display: grid; grid-template-columns: 3fr 4fr; gap: 12px; }
  .admin-nav-group + .admin-nav-group { margin: 0; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--line); }
  .admin-nav-group ul { display: flex; flex-wrap: wrap; }
}
@media (max-width: 735px) {
  .license-table-wrap { border: 0; background: transparent; }
  table.license-table { display: block; min-width: 0; }
  .license-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .license-table tbody { display: grid; gap: 10px; }
  .license-table tr { display: block; }
  .license-table .license-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
  .license-table td { display: block; min-width: 0; border: 0; padding: 8px; }
  .license-table .license-row td:first-child { grid-column: span 2; }
  .license-table .license-row td:nth-child(2) { justify-self: end; }
  .license-table .license-row td:last-child { grid-column: 1 / -1; }
  .mobile-cell-label { display: block; color: var(--muted); font-weight: 650; }
  .license-table summary { min-height: 44px; align-content: center; }
  .license-table .btn-sm { min-height: 44px; }
}
@media (max-width: 620px) {
  .admin-menu { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
  .admin-menu > summary { display: list-item; min-height: 44px; align-content: center; padding: 8px 12px; cursor: pointer; font-weight: 650; }
  .admin-menu > summary span { margin-inline-start: 6px; font-weight: 400; color: var(--muted); font-size: .875rem; }
  .admin-menu .admin-tabs { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .admin-tabs { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .admin-nav-group + .admin-nav-group { padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .admin-nav-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tabs a { padding-inline: 8px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-metrics .metric { padding: 10px; }
  .license-generate { grid-template-columns: 1fr; gap: 10px; }
  .license-search { flex-basis: 100%; }
}
code.hash { display: block; word-break: break-all; background: var(--panel-2); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 8px; }
.sec-h { flex-wrap: wrap; }
@media (max-width: 520px) { .count .days b { font-size: 24px; } }
.brand-en { font-size: .875rem; font-weight: 550; color: var(--muted); margin-left: 4px; }
.logo-img { background: none; display: block; object-fit: contain; width: 40px; height: 40px; border-radius: 9px; }
.logo-img.sm { width: 28px; height: 28px; border-radius: 6px; }
.about-logo { float: right; width: 128px; height: 128px; margin: 0 0 12px 20px; }
.feedback-row.is-unread { border-inline-start: 3px solid var(--brand); }
.feedback-preview,.feedback-contact { overflow-wrap: anywhere; }
.feedback-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 20px 0; line-height: 1.8; }
@media (max-width: 520px) { .about-logo { width: 88px; height: 88px; margin-left: 12px; } }
.about-sec::after { content: ""; display: block; clear: both; }

/* 品牌产品中心与分产品帮助入口 */
.product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.product-card { display:flex; flex-direction:column; align-items:flex-start; gap:14px; min-width:0; }
.product-card-ready { border-top: 3px solid var(--brand); }
.product-card h2,.product-card h3 { margin:0; font-size:22px; line-height:1.5; }
.product-card p { margin:0; overflow-wrap:anywhere; }
.product-card .hero-actions { margin-top:auto; flex-wrap:wrap; }
.product-status { display:inline-block; font-size:12px; line-height:1.6; padding:4px 10px; border-radius:20px; background:var(--panel-2); color:var(--muted); }
.product-status.ready { background:var(--brand-2); color:var(--brand); }
.help-shortcuts { display:flex; flex-wrap:wrap; gap:10px 18px; margin:8px 0 18px; font-size:14px; }
.product-hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr); gap:38px; padding:36px; }
.product-hero:not(.has-preview) { grid-template-columns: minmax(0, 1fr); }
.product-hero.has-preview { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.product-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0 0 12px; }
.product-hero .lead { color: var(--muted); }
.product-crumb { padding-bottom: 10px; }
.product-release-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .875rem; }
.product-release-meta span { color: var(--brand); background: var(--brand-2); border-radius: 5px; padding: 3px 8px; }
.product-preview { margin: 0; }
.product-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.product-preview figcaption { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.nav-resources { position:relative; }.nav-resources summary { min-height:44px; align-content:center; cursor:pointer; color:var(--text); padding:7px 12px; border-radius:8px; font-size:.9375rem; }
.nav-resources.current summary,.nav-resources summary:hover { color:var(--brand); background:var(--brand-2); }
.nav-resources>div { position:absolute; top:100%; left:0; min-width:150px; display:grid; padding:8px; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); }
.nav-resources:not([open])>div { display:none; }
@media(max-width:940px){.nav-resources summary{padding:10px 12px}.nav-resources>div{position:static;box-shadow:none;margin:0 8px 8px;min-width:0}}
@media(max-width:850px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-hero.has-preview{grid-template-columns:1fr;gap:20px}.product-hero{padding:26px}}
@media(max-width:560px){.product-grid{grid-template-columns:1fr}.product-card h2,.product-card h3{font-size:21px}.product-hero{padding:20px}}

.product-support { margin-top:24px; padding:24px; }

/* Managed AI: reuse admin tokens, group controls, and keep balances separate. */
.ai-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ai-panel{padding:22px;margin:16px 0;min-width:0}.ai-panel h3{margin:0 0 12px}.ai-panel .f{min-width:0}.ai-panel input{max-width:100%}.ai-panel .f small{color:var(--muted);overflow-wrap:anywhere}.ai-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin:6px 0}.ai-toggle input{width:18px;height:18px;flex:none}.ai-advanced{border-top:1px solid var(--line,#dce2eb);margin:20px 0;padding-top:8px}.ai-advanced summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650}.ai-balance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.ai-balance-values{display:grid;gap:12px;margin:16px 0}.ai-balance-values div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}.ai-balance-values dt{color:var(--muted)}.ai-balance-values dd{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;margin:0}.ai-panel .tbl-wrap{max-width:100%}.ai-metrics .num{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}@media(max-width:680px){.ai-admin-grid{grid-template-columns:minmax(0,1fr)}.ai-panel{padding:16px}.ai-balance-heading{align-items:flex-start;flex-wrap:wrap}.ai-panel .btn{min-height:44px}.ai-balance-values dd{font-size:22px}}
