/* ==========================================================================
   金考典 · 建筑类考试题库激活码与纸质真题商城
   简约风格：靛紫主色 + 浅灰底 + 白色卡片，仅横幅使用渐变
   ========================================================================== */

:root {
  /* 主色 */
  --brand: #5b53d6;
  --brand-600: #4a43c4;
  --brand-700: #3f39a8;
  --brand-300: #a9a4ee;
  --brand-100: #e3e1fb;
  --brand-50: #eef0ff;
  --brand-grad: linear-gradient(120deg, #5b6cf0 0%, #7a5cf0 100%);

  /* 中性色 */
  --ink: #1f2333;
  --ink-2: #41465c;
  --muted: #7b8194;
  --faint: #a3a8b8;

  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #f1f2f8;
  --line: #e8eaf2;
  --line-2: #f0f1f7;

  /* 语义色 */
  --ok: #15805c;
  --ok-bg: #e9f7f1;
  --warn: #a2610a;
  --warn-bg: #fff5e6;
  --danger: #c62f34;
  --danger-bg: #fdecec;
  --info: #4b44c4;
  --info-bg: #eef0ff;
  --gold: #92620c;
  --gold-bg: #fff6e2;
  --gold-line: #f0dcb4;

  --price: #e5484d;
  --pkg: #e8792b;

  --r: 8px;
  --r-lg: 14px;
  --r-xl: 18px;
  --shadow: 0 1px 2px rgba(31, 35, 51, .04), 0 6px 18px rgba(31, 35, 51, .05);
  --shadow-lg: 0 12px 32px rgba(31, 35, 51, .12);
  --h-top: 64px;
  --h-tab: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3d6e3; border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; width: 100%; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.price { color: var(--price); font-weight: 700; }
.price small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }

/* ---------------- 顶部导航 ---------------- */
.topbar {
  background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 80;
  box-shadow: 0 2px 10px rgba(63, 57, 168, .16);
}
.topbar-inner { height: var(--h-top); display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: #fff; color: var(--brand); font-weight: 800; font-size: 17px; border-radius: 10px;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b { font-size: 17px; letter-spacing: .5px; }
.brand-txt small { font-size: 10.5px; color: rgba(255, 255, 255, .72); letter-spacing: .3px; margin-top: 2px; }
.nav { display: flex; gap: 4px; align-items: center; height: 100%; }
.nav a {
  color: rgba(255, 255, 255, .82); font-size: 13.5px; padding: 7px 14px;
  border-radius: 999px; white-space: nowrap; transition: .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav a.on { color: var(--brand); background: #fff; font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cart-chip {
  display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26); color: #fff; border-radius: 999px;
  font-size: 12.5px; padding: 6px 12px;
}
.cart-chip:hover { background: rgba(255, 255, 255, .26); }
.cart-chip b {
  background: #fff; color: var(--brand); border-radius: 999px; min-width: 18px;
  text-align: center; font-size: 11px; padding: 0 4px; line-height: 17px;
}
.cart-ico { font-size: 12px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-left: auto; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }
.mobile-menu { display: none; background: var(--brand-600); border-top: 1px solid rgba(255, 255, 255, .12); }
.mobile-menu a { display: block; color: #fff; padding: 12px 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.mobile-menu.open { display: block; }

/* ---------------- 公告条 ---------------- */
.notice-bar { background: #fff8e8; border-bottom: 1px solid #f5e7c3; }
.notice-inner { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 12.5px; color: #8a6614; flex-wrap: wrap; }
.notice-tag { background: #f6c453; color: #6b4a05; font-size: 11px; padding: 1px 8px; border-radius: 999px; flex: none; font-weight: 600; }
.notice-time { margin-left: auto; color: #a98a4a; }

/* ---------------- 主容器 / 页脚 ---------------- */
.view { min-height: calc(100vh - var(--h-top) - 38px - 90px); padding: 22px 0 52px; }
/* 公告条只在首页出现，其余页面隐藏后同步收掉 38px 的占位，避免顶部留空 */
body.no-notice .notice-bar { display: none; }
body.no-notice .view { min-height: calc(100vh - var(--h-top) - 90px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .2px; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 7px; color: var(--faint); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 13px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.section-head .more { font-size: 12.5px; color: var(--muted); }
.section-head .more a { color: var(--brand); }

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 20px 0; font-size: 12.5px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer b { color: var(--ink-2); }
.footer-sep { margin: 0 8px; color: var(--line); }

/* ---------------- 通用组件 ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-title { font-size: 15.5px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.card-title .bar { width: 3px; height: 15px; background: var(--brand); display: inline-block; border-radius: 999px; }
.card-title .sub { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
/* 标题文字不参与 flex 收缩，否则窄屏会被右侧说明挤成竖排 */
.card-title .ct-label { flex: none; }
@media (max-width: 820px) {
  /* 说明文字整体换到第二行，标题保持一行 */
  .card-title.ct-split { flex-wrap: wrap; row-gap: 3px; }
  .card-title.ct-split .sub { flex-basis: 100%; margin-left: 11px; text-align: left; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: var(--r); font-size: 13.5px; line-height: 1.5; white-space: nowrap; transition: .15s;
}
.btn:hover { border-color: var(--brand-300); color: var(--brand); background: var(--brand-50); }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(91, 83, 214, .22);
}
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-soft { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-lg { padding: 11px 20px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn.disabled {
  background: var(--surface-3); border-color: var(--line); color: var(--faint);
  cursor: not-allowed; box-shadow: none;
}
.btn:disabled:hover { border-color: var(--line); color: var(--faint); background: var(--surface-3); }

.tag {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid transparent; line-height: 1.7; white-space: nowrap;
}
.tag-blue { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.tag-ok { background: var(--ok-bg); color: var(--ok); border-color: #ccecdf; }
.tag-warn { background: var(--warn-bg); color: var(--warn); border-color: #f4e0bd; }
.tag-danger { background: var(--danger-bg); color: var(--danger); border-color: #f7d3d3; }
.tag-hot { background: #fdecec; color: var(--danger); border-color: #f7d3d3; }
.tag-gray { background: var(--surface-3); color: var(--muted); border-color: var(--line); }
.tag-gold { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-line); }
.badge-gold { background: var(--gold); }

.badge {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
  border-radius: 12px; font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.badge-sm { width: 34px; height: 34px; font-size: 11.5px; border-radius: 9px; }
.badge-lg { width: 54px; height: 54px; font-size: 16px; border-radius: 14px; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .empty-ico { font-size: 32px; color: var(--brand-300); line-height: 1; }
.empty p { margin: 10px 0 0; font-size: 13.5px; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 14px);
  background: #23273a; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; z-index: 200; opacity: 0; pointer-events: none; transition: .2s;
  box-shadow: var(--shadow-lg); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(23, 26, 40, .5); z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--r-lg); width: min(560px, 100%);
  max-height: 82vh; overflow: auto; box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head b { font-size: 16px; }
.modal-close { border: 0; background: none; font-size: 20px; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px; }

/* 表单 */
.form-row { margin-bottom: 16px; }
.form-row:last-child { margin-bottom: 0; }
.form-row > label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-row .req { color: var(--danger); margin-right: 2px; }
.form-row .tip { color: var(--muted); font-size: 12px; margin-top: 5px; }
.input, .form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; background: #fff; color: var(--ink); outline: none; transition: .15s;
}
.form-row input:focus, .input:focus, .form-row textarea:focus {
  border-color: var(--brand-300); box-shadow: 0 0 0 3px rgba(91, 83, 214, .12);
}
/* 单选 / 复选不套用文本框样式：否则会被撑成 100% 宽，
   把「选择科目」这类 flex 布局里的文字挤成竖排（特异性高于 .form-row input，故能覆盖） */
.form-row input[type=checkbox], .form-row input[type=radio] {
  width: auto; height: auto; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.input-mono { font-family: var(--mono); letter-spacing: .5px; }
.checkline { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); }
.checkline input { margin-top: 3px; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; min-width: 620px; }
table.tbl th {
  background: var(--surface-2); color: var(--ink-2); font-weight: 600; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px;
}
table.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl .num { font-family: var(--mono); }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .k { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-size: 25px; font-weight: 700; margin-top: 4px; letter-spacing: .3px; font-family: var(--mono); }
.kpi .s { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.kpi.accent .v { color: var(--brand); }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; position: relative; }
.step .n {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px;
  background: var(--brand-50); color: var(--brand); font-family: var(--mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.step .t { font-weight: 700; margin: 9px 0 3px; font-size: 14px; }
.step .d { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  background: var(--brand-grad); color: #fff; border-radius: var(--r-xl);
  padding: 30px 34px; box-shadow: 0 14px 34px rgba(91, 83, 214, .2);
}
.hero h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: .5px; line-height: 1.35; }
.hero p.sub { margin: 0; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.7; max-width: 780px; }
.hero-feats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; font-weight: 600; color: #fff; }
.hero-feats span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.hero-trust span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .9); }
.hero-trust i { width: 6px; height: 6px; background: #fff; opacity: .7; border-radius: 50%; display: inline-block; }
.hero-search { display: flex; gap: 8px; margin-top: 20px; max-width: 470px; }
.hero-search input { flex: 1; min-width: 0; border: 0; border-radius: 9px; padding: 10px 14px; font-size: 14px; outline: none; }
.hero-search .btn { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-search .btn:hover { background: rgba(255, 255, 255, .32); color: #fff; }
.hero-panel { border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--r); padding: 16px 18px; background: rgba(255, 255, 255, .08); }
.hero-panel h3 { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; }
.hero-panel .hp-line { display: flex; gap: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .86); margin-bottom: 9px; }
.hero-panel .hp-line:last-child { margin-bottom: 0; }
.hero-panel .hp-line b { color: #fff; font-family: var(--mono); font-weight: 600; flex: none; }
.hero-panel .hp-foot { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 12px; padding-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* 分类药丸 + 搜索条 */
.store-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 16px; flex-wrap: wrap; }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; padding: 7px 17px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 13.5px; transition: .15s;
}
.pill:hover { border-color: var(--brand-300); color: var(--brand); }
.pill.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(91, 83, 214, .22); }
.store-search { flex: 1; min-width: 220px; max-width: 320px; margin-left: auto; }
.store-search input {
  width: 100%; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; outline: none; transition: .15s;
}
.store-search input:focus { border-color: var(--brand-300); box-shadow: 0 0 0 3px rgba(91, 83, 214, .1); }

/* ---------------- 考试卡片（统一商品卡） ---------------- */
.exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.exam-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: .18s; box-shadow: var(--shadow);
}
.exam-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.exam-card .ec-cover {
  height: 94px; flex: none; position: relative; display: flex; align-items: center;
  padding: 0 18px; color: #fff; background: var(--c, #5b6cf0); overflow: hidden;
}
.exam-card .ec-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .16));
}
.exam-card .ec-abbr { position: relative; font-size: 27px; font-weight: 800; letter-spacing: 4px; }
.exam-card .ec-year {
  position: absolute; right: 14px; bottom: 10px; font-family: var(--mono);
  font-size: 11px; color: rgba(255, 255, 255, .82); z-index: 1;
}
.exam-card .ec-tag {
  position: absolute; top: 10px; right: 12px; z-index: 1; font-size: 10.5px;
  background: rgba(255, 255, 255, .24); color: #fff; border-radius: 999px; padding: 1px 8px;
}
.exam-card .ec-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.exam-card .ec-name { font-size: 15px; font-weight: 700; margin: 0 0 3px; line-height: 1.35; color: var(--ink); }
.exam-card .ec-sub { font-size: 12px; color: var(--muted); margin: 0 0 11px; }
.exam-card .ec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 11px; }
.exam-card .ec-price { font-size: 19px; }
.exam-card .ec-stock { font-size: 11.5px; color: var(--faint); flex: none; }

/* ---------------- 纸质真题卡片 ---------------- */
.paper-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.paper-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s; box-shadow: var(--shadow);
}
.paper-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }
.pc-cover {
  height: 94px; flex: none; position: relative; display: flex; align-items: center; gap: 10px;
  padding: 0 18px; background: var(--c, #b98a2e); color: #fff; border: 0; width: 100%;
  text-align: left; overflow: hidden;
}
.pc-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .18));
}
.pc-cover .pc-title { position: relative; font-size: 21px; font-weight: 800; letter-spacing: 3px; z-index: 1; }
.pc-cover .pc-vol {
  position: absolute; left: 18px; bottom: 10px; font-size: 11px;
  color: rgba(255, 255, 255, .86); z-index: 1;
}
.pc-cover .pc-year {
  position: absolute; right: 14px; bottom: 10px; font-family: var(--mono);
  font-size: 11px; color: rgba(255, 255, 255, .82); z-index: 1;
}
.pc-cover .pc-badge {
  position: absolute; top: 10px; right: 12px; z-index: 1; font-size: 10.5px;
  background: rgba(255, 255, 255, .24); color: #fff; border-radius: 999px; padding: 1px 8px;
}
.paper-card .pc-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.paper-card .pc-type { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; min-height: 20px; }
.paper-card .pc-name { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 7px 0 4px; color: var(--ink); }
.paper-card .pc-sub { font-size: 12px; color: var(--muted); margin: 0 0 11px; }
.paper-card .pc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 11px; }
.paper-card .pc-price { font-size: 19px; }
.paper-card .pc-old { font-size: 11.5px; color: var(--faint); text-decoration: line-through; font-weight: 400; margin-left: 4px; }
.paper-card .pc-stock-text { font-size: 11.5px; color: var(--faint); flex: none; }

/* 旧版卡片类保留（详情页/弹窗仍在用） */
.pc-cover .pc-title { display: inline-block; }
.pd-cover .pc-title { position: relative; }
.pc-btns { display: flex; gap: 7px; margin-top: auto; }
.pc-btns .btn { flex: 1; }
.pc-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 12px 0 10px; }
.pc-meta { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; }

/* 快捷入口 / 信任条 */
.quick-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.quick-bar a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: 12.5px; color: var(--ink-2);
}
.quick-bar a:hover { border-color: var(--brand-300); color: var(--brand); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ti-ico {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); border-radius: 9px; font-weight: 700; font-size: 14px;
}
.trust-item b { display: block; font-size: 13.5px; }
.trust-item span { font-size: 12px; color: var(--muted); }

/* ---------------- 分类页 ---------------- */
.catalog-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.catalog-bar .input { max-width: 340px; border-radius: 999px; padding: 9px 16px; }
.catalog-bar .cnt { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.catalog-list { display: grid; gap: 12px; }
.catalog-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 18px; transition: .18s;
}
.catalog-row:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); }
.catalog-row .cr-name { font-size: 16px; font-weight: 700; }
.catalog-row .cr-intro { font-size: 12.5px; color: var(--muted); margin: 3px 0 8px; }
.catalog-row .cr-subs { display: flex; gap: 6px; flex-wrap: wrap; }
.catalog-row .cr-subs span {
  font-size: 11.5px; background: var(--surface-3); color: var(--ink-2);
  padding: 2px 9px; border-radius: 999px;
}
.catalog-row .cr-right { text-align: right; display: flex; align-items: center; gap: 18px; }

/* ---------------- 考试详情 ---------------- */
.exam-hero { display: flex; gap: 16px; align-items: center; padding: 20px 22px; margin-bottom: 16px; flex-wrap: wrap; }
.exam-hero h1 { margin: 0; font-size: 21px; }
.exam-hero .eh-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.exam-hero .eh-right { margin-left: auto; text-align: right; }
.exam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }

.bundle {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px;
  border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: var(--r-lg);
}
.bundle .b-ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: var(--brand); color: #fff; border-radius: 11px; font-size: 12px; font-weight: 700;
}
.bundle .b-txt { flex: 1; }
.bundle .b-txt b { font-size: 15px; }
.bundle .b-txt div { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bundle .b-price { text-align: right; margin-right: 10px; }
.bundle .b-price .old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.bundle .b-price .now { font-size: 21px; }

.sub-list { display: grid; gap: 10px; }
.sub-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: .15s;
}
.sub-row:hover { border-color: var(--brand-300); }
.sub-row.checked { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 1px var(--brand) inset; }
.sub-row input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; cursor: pointer; }
.sub-row .sr-main { flex: 1; min-width: 0; }
.sub-row .sr-name { font-weight: 600; font-size: 14px; }
.sub-row .sr-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sub-row .sr-code { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.sub-row .sr-price { font-size: 17px; flex: none; }
.sub-row .sr-stock { font-size: 11.5px; flex: none; width: 78px; text-align: right; }

/* 满减提示条：多选自动满减，一单减一次 */
.promo-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
  background: linear-gradient(90deg, #fff7f7, #fff3f0); border: 1px solid #fbd9d3;
  font-size: 12.5px; color: var(--ink-2);
}
.promo-bar b { color: var(--price); font-size: 12.5px; flex: none; }
.promo-bar span { font-family: var(--mono); color: var(--ink-2); }
.promo-bar em { font-style: normal; color: var(--faint); font-size: 11.5px; margin-left: auto; }

.buybar { position: sticky; top: calc(var(--h-top) + 38px + 12px); padding: 18px; }
/* 只有桌面端（buybar 为 sticky）才需要收掉公告条留出的 38px；
   手机 / 平板断点里 buybar 是底部固定条，这条规则若生效（特异性更高）会把
   top 拉回 ~76px，让白色购买条盖住整个科目列表，表现为「进入考试页一片空白」 */
@media (min-width: 1101px) {
  body.no-notice .buybar { top: calc(var(--h-top) + 12px); }
}
.buybar h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.buybar .bb-empty { font-size: 13px; color: var(--muted); padding: 12px 0; }
.bb-items { display: flex; flex-direction: column; gap: 7px; max-height: 230px; overflow: auto; margin-bottom: 12px; }
.bb-item { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; }
.bb-item .bbn { flex: 1; line-height: 1.45; }
.bb-item .bbp { font-family: var(--mono); color: var(--ink-2); flex: none; }
.bb-item .bbx { border: 0; background: none; color: var(--faint); font-size: 15px; line-height: 1; padding: 0 2px; }
.bb-item .bbx:hover { color: var(--danger); }
.bb-sum { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.bb-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.bb-line.disc { color: var(--ok); }
.bb-line.hint { color: var(--brand-600); font-size: 12px; }
.bb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 14px; }
.bb-total span { font-size: 13px; color: var(--ink-2); }
.bb-total b { font-size: 25px; color: var(--price); font-family: var(--mono); }
.bb-mobile-total { display: none; }
.bb-tip { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 10px; line-height: 1.5; }
.buybar-spacer { display: none; }

/* ---------------- 结算页 ---------------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.co-items { display: grid; gap: 10px; }
.co-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.co-item .ci-main { flex: 1; }
.co-item .ci-main b { font-size: 13.5px; }
.co-item .ci-main div { font-size: 12px; color: var(--muted); }
.co-item .ci-price { font-family: var(--mono); font-size: 14px; }
/* 支付方式：微信 / 支付宝并排一行，官方风格图标 + 名称，无冗余说明 */
.pay-methods { display: flex; gap: 10px; max-width: 400px; }
.pay-method {
  flex: 1 1 0; min-width: 0; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 12px 10px;
  display: flex; gap: 9px; align-items: center; justify-content: center; cursor: pointer;
  background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none; font: inherit; color: inherit;
}
.pay-method:hover { border-color: var(--brand-300); }
.pay-method.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(75, 86, 214, .09); }
.pay-method b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pay-method.on b { color: var(--brand-700); }
.pay-logo { width: 26px; height: 26px; flex: none; display: block; }
.pay-note { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.pay-fail-msg { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin: 0 0 14px; }
.pay-fail-act { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-fail-tip { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 12px 0 0; }
.co-summary .sum-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 9px; color: var(--ink-2); }
.co-summary .sum-line.disc { color: var(--ok); }
.co-summary .sum-total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.co-summary .sum-total b { font-size: 26px; color: var(--price); font-family: var(--mono); }
.co-summary .sum-note { font-size: 11.5px; color: var(--faint); margin-top: 12px; line-height: 1.6; }

/* ---------------- 发货页 ---------------- */
.deliver-hero { text-align: center; padding: 26px 20px 22px; margin-bottom: 16px; }
.success-ico {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok); display: grid; place-items: center;
  font-size: 26px; border: 1px solid #ccecdf;
}
.deliver-hero h1 { margin: 0 0 6px; font-size: 21px; font-weight: 700; }
.deliver-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.order-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 16px; padding: 0; overflow: hidden; }
.order-meta .om { padding: 14px 16px; border-right: 1px solid var(--line-2); }
.order-meta .om:last-child { border-right: 0; }
.order-meta .k { font-size: 11.5px; color: var(--muted); }
.order-meta .v { font-size: 13.5px; font-weight: 600; margin-top: 3px; font-family: var(--mono); word-break: break-all; }
.code-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.code-toolbar .ct-hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.code-list { display: grid; gap: 11px; }
.code-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.code-card .cc-head { display: flex; align-items: center; gap: 9px; padding: 10px 15px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.code-card .cc-head b { font-size: 13.5px; }
.code-card .cc-head .cc-exam { font-size: 12px; color: var(--muted); }
.code-card .cc-head .cc-status { margin-left: auto; }
.code-card .cc-body { display: flex; align-items: center; gap: 14px; padding: 15px; }
.code-card .cc-code {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 19px; font-weight: 700;
  letter-spacing: 1.2px; color: var(--brand-700); background: var(--brand-50);
  border: 1px dashed var(--brand-300); border-radius: 10px; padding: 10px 14px; word-break: break-all;
}
.code-card .cc-side { font-size: 11.5px; color: var(--muted); line-height: 1.7; flex: none; width: 130px; }
.activate-box { margin-top: 16px; }
.activate-box ol { margin: 0; padding-left: 20px; }
.activate-box li { font-size: 13px; color: var(--ink-2); margin-bottom: 7px; line-height: 1.6; }
.warn-box {
  background: var(--warn-bg); border: 1px solid #f4e0bd; color: #7a5410;
  border-radius: var(--r-lg); padding: 13px 16px; font-size: 12.5px; line-height: 1.7; margin-top: 14px;
}
.warn-box b { color: #6b4708; }

/* ---------------- 订单查询 ---------------- */
.lookup-box { max-width: 760px; margin: 0 auto; }
.seg { display: inline-flex; gap: 6px; margin-bottom: 16px; background: transparent; }
.seg button {
  border: 1px solid var(--line); background: #fff; padding: 7px 17px; font-size: 13px;
  color: var(--ink-2); border-radius: 999px; transition: .15s;
}
.seg button:hover { border-color: var(--brand-300); color: var(--brand); }
.seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
/* 订单按「激活码 / 纸质真题 / 混合」分类筛选与分组 */
.order-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.order-filter button { padding: 6px 14px; }
.order-group-head {
  display: flex; align-items: center; gap: 7px;
  margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.order-group-head svg { color: var(--brand); flex: none; }
.order-group-head .og-count {
  margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 1px 9px;
}
@media (max-width: 520px) {
  .order-filter button { padding: 6px 12px; font-size: 12px; }
  .order-group-head { margin: 15px 0 9px; }
}
.lookup-form { display: flex; gap: 9px; flex-wrap: wrap; }
.lookup-form .input { flex: 1; min-width: 180px; }
.demo-hint { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.demo-hint a { color: var(--brand); border-bottom: 1px dashed var(--brand-300); }
.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.order-card .oc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.oc-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-card .oc-head .oc-no { font-family: var(--mono); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.order-card .oc-head .oc-time { font-size: 11.5px; color: var(--muted); }
.order-card .oc-head .oc-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.oc-amount { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--price); }
.order-card .oc-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.oc-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oc-code { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; }
.oc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oc-code .oc-name { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-code .oc-val { font-family: var(--mono); font-size: 13.5px; font-weight: 700; color: var(--brand-700); letter-spacing: .5px; overflow-wrap: anywhere; }
.oc-code .oc-act { flex: none; }
.oc-foot { font-size: 11.5px; color: var(--faint); line-height: 1.6; overflow-wrap: anywhere; }

/* ---------------- 帮助 / FAQ ---------------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.faq-item summary { padding: 14px 17px; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q"; width: 22px; height: 22px; flex: none; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 11px; font-weight: 700; border-radius: 7px;
}
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 17px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 12px 17px 15px 49px; font-size: 13px; color: var(--ink-2); line-height: 1.8; border-top: 1px solid var(--line-2); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
/* 帮助段落为奇数个时，最后一张卡片占满整行，避免右侧留大片空白 */
.help-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* 首页底部：只保留一个指路入口，具体说明都在帮助页 */
.home-help {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  color: var(--muted); font-size: 12.5px; text-decoration: none;
}
.home-help b { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.home-help span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-help svg:last-child { margin-left: auto; color: var(--brand); flex: none; }
.home-help:hover { border-color: var(--brand-300); }
/* 帮助页：说明文字统一排版，避免满屏长段落 */
.help-note { margin-top: 14px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.help-list { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.95; color: var(--ink-2); }
.help-list li + li { margin-top: 2px; }
.help-card .steps { margin-top: 4px; }

/* ---------------- 管理后台 ---------------- */
.admin-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 21px; }
.admin-head .ah-note { margin-left: auto; font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  border: 0; background: none; padding: 10px 16px; font-size: 13.5px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs button:hover { color: var(--brand); }
.tabs button.on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.admin-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-toolbar .at-note { margin-left: auto; font-size: 12px; color: var(--muted); }
.stock-bar { display: inline-block; width: 78px; height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; vertical-align: middle; margin-right: 7px; }
.stock-bar i { display: block; height: 100%; background: var(--brand); }
.stock-bar.low i { background: var(--warn); }
.stock-bar.out i { background: var(--danger); }

/* ---------------- 手机底部 TabBar ---------------- */
.tabbar { display: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .exam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .paper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 28px 26px; }
  .kpi-grid, .trust-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .exam-layout, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .buybar { position: static; }
  .order-meta { grid-template-columns: repeat(3, 1fr); }
  .order-meta .om:nth-child(3) { border-right: 0; }
  .order-meta .om:nth-child(n+4) { border-top: 1px solid var(--line-2); }
}

@media (max-width: 820px) {
  .wrap { padding: 0 14px; }
  .topbar-inner { height: 56px; gap: 10px; }
  .nav, .topbar-actions { display: none; }
  .menu-btn { display: block; }
  .brand-txt b { font-size: 16px; }
  .notice-inner { min-height: 34px; font-size: 12px; }
  .notice-time { display: none; }
  .view { padding: 16px 0 84px; }
  .footer { margin-bottom: var(--h-tab); }
  .hero { padding: 24px 20px; border-radius: var(--r-lg); }
  .hero h1 { font-size: 21px; }
  .hero p.sub { font-size: 13px; }
  .hero-feats { gap: 12px 16px; margin-top: 14px; font-size: 12.5px; }
  .store-bar { margin: 16px 0 12px; }
  .store-search { max-width: none; width: 100%; margin-left: 0; }
  .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .exam-card .ec-cover { height: 78px; padding: 0 14px; }
  .exam-card .ec-abbr { font-size: 21px; letter-spacing: 2px; }
  .exam-card .ec-body { padding: 11px 12px 12px; }
  .exam-card .ec-name { font-size: 13.5px; }
  .exam-card .ec-price { font-size: 17px; }
  .paper-card .pc-cover { height: 78px; padding: 0 14px; }
  .paper-card .pc-title { font-size: 17px; letter-spacing: 2px; }
  .paper-card .pc-body { padding: 11px 12px 12px; }
  .paper-card .pc-name { font-size: 13px; }
  .paper-card .pc-price { font-size: 17px; }
  .page-head h1 { font-size: 19px; }
  .section-head { margin: 20px 0 11px; }
  .trust-item { padding: 13px; }
  .trust-item .ti-ico { width: 28px; height: 28px; }
  .catalog-row { grid-template-columns: 44px 1fr; gap: 11px; padding: 14px; }
  .catalog-row .cr-right {
    grid-column: 1 / -1; text-align: left; display: flex; align-items: center;
    gap: 12px; border-top: 1px solid var(--line-2); padding-top: 11px; justify-content: space-between;
  }
  .exam-hero { padding: 16px; flex-wrap: wrap; }
  .exam-hero .eh-right { width: 100%; text-align: left; margin-left: 0; }
  .bundle { flex-wrap: wrap; padding: 14px; }
  .bundle .b-price { margin-right: 0; }
  .bundle .btn { width: 100%; }
  .sub-row { padding: 11px 12px; gap: 9px; flex-wrap: wrap; }
  .sub-row .sr-main { flex-basis: calc(100% - 30px); }
  .sub-row .sr-price { margin-left: 28px; }
  .sub-row .sr-stock { width: auto; margin-left: auto; }
  .buybar {
    /* 底部固定条必须让开「TabBar 高度 + iPhone 安全区」，
       否则 iPhone / 微信内置浏览器上按钮下半截会被 TabBar 盖住 */
    position: fixed; left: 0; right: 0; top: auto;
    bottom: calc(var(--h-tab) + env(safe-area-inset-bottom, 0px));
    z-index: 70; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 10px 14px; display: flex; align-items: center; gap: 12px;
    min-height: 64px;
    box-shadow: 0 -4px 16px rgba(31, 35, 51, .1);
  }
  /* .bb-total 必须一起隐藏，否则与 .bb-mobile-total 同时显示会出现两个价格 */
  .buybar h3, .bb-items, .bb-sum, .bb-tip, .bb-total { display: none; }
  .buybar .bb-empty { display: none; }
  .buybar .bb-mobile-total { display: block; flex: 1; min-width: 0; overflow: hidden; }
  .buybar .bb-mobile-total b { font-size: 21px; color: var(--price); font-family: var(--mono); display: block; line-height: 1.15; white-space: nowrap; }
  .buybar .bb-mobile-total span { font-size: 11.5px; color: var(--muted); display: block; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar > .btn-primary { flex: none; width: auto; min-width: 128px; white-space: nowrap; }
  .buybar-spacer { display: block; height: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .checkout-grid { gap: 12px; }
  .deliver-hero { padding: 22px 14px; }
  .order-meta { grid-template-columns: repeat(2, 1fr); }
  .order-meta .om:nth-child(2n) { border-right: 0; }
  .order-meta .om:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .code-card .cc-body { flex-wrap: wrap; gap: 10px; }
  .code-card .cc-code { flex-basis: 100%; font-size: 17px; }
  .code-card .cc-side { width: auto; flex: 1; }
  .code-toolbar .ct-hint { width: 100%; margin-left: 0; }
  .help-grid { grid-template-columns: 1fr; }
  .oc-code { padding: 9px 10px; gap: 8px; }
  .oc-code .oc-name { white-space: normal; }
  .order-card .oc-head { padding: 11px 13px; }
  .order-card .oc-body { padding: 10px 13px 12px; }
  .toast { bottom: calc(var(--h-tab) + env(safe-area-inset-bottom, 0px) + 16px); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    height: calc(var(--h-tab) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(31, 35, 51, .06);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; color: var(--muted); font-size: 11px;
  }
  .tabbar a .ti { width: 20px; height: 20px; display: grid; place-items: center; font-size: 17px; line-height: 1; }
  .tabbar a.on { color: var(--brand); font-weight: 700; }
  .tabbar a.on .ti { color: var(--brand); }
}

@media (max-width: 520px) {
  .hero { padding: 20px 16px; }
  .hero h1 { font-size: 19px; }
  .hero-feats { font-size: 12px; gap: 10px 14px; }
  .exam-grid, .paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-card .ec-row, .paper-card .pc-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .kpi-grid, .trust-grid, .steps { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .kpi { padding: 12px; }
  .kpi .v { font-size: 20px; }
  .home-help { margin-top: 16px; padding: 12px 14px; }
  .home-help span { display: none; }
  .step { padding: 12px; }
  .step .d { font-size: 11.5px; }
  /* 手机端支付方式仍保持一行两个，只压缩内边距与字号 */
  .pay-methods { gap: 8px; max-width: none; }
  .pay-method { padding: 11px 8px; gap: 7px; }
  .pay-method b { font-size: 13px; }
  .pay-logo { width: 22px; height: 22px; }
  .order-meta { grid-template-columns: repeat(2, 1fr); }
  .code-card .cc-code { font-size: 15px; letter-spacing: .6px; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

/* ==========================================================================
   纸质真题（实物商品）补充组件
   ========================================================================== */
.co-tag { font-size: 10.5px; padding: 1px 7px; flex: none; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ci-right .ci-price { font-family: var(--mono); font-size: 14px; }
.qb-paper { display: inline-flex; align-items: center; gap: 5px; border-color: var(--gold-line); color: var(--gold); background: var(--gold-bg); }
.qb-paper:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }
.tip { font-size: 11.5px; color: var(--muted); }

.paper-filter { padding: 16px 18px; }
.pf-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-row + .pf-row { border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 12px; }
.pf-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); flex: none; width: 66px; }
.pf-chips { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; }
.pf-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 5px 14px; font-size: 12.5px; transition: .15s;
}
.pf-chip:hover { border-color: var(--brand-300); color: var(--brand); }
.pf-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pf-row .input { max-width: 380px; flex: 1; border-radius: 999px; }
.pf-row .cnt { margin-left: auto; font-size: 12.5px; color: var(--muted); }

.bundle-paper { border-color: var(--gold-line); background: var(--gold-bg); }
.b-ico-gold { background: var(--gold); }
.bundle-paper .b-txt div { color: #7a5c1c; }

.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.addr-box {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 14px; font-size: 13px; color: var(--ink-2); line-height: 1.7; word-break: break-all;
}

.goods-list { display: grid; gap: 10px; }
.goods-card {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.gc-main { flex: 1; min-width: 0; }
.gc-main b { font-size: 13.5px; }
.gc-main div { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.gc-right { display: flex; align-items: center; gap: 10px; flex: none; }
.gc-right .ci-price { font-family: var(--mono); font-size: 14px; }

.ship-box {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 12px;
  border-radius: var(--r-lg); padding: 16px 18px; border: 1px solid var(--line);
}
.ship-wait { background: var(--warn-bg); border-color: #f4e0bd; }
.ship-done { background: var(--ok-bg); border-color: #ccecdf; }
.ship-ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: #fff; color: var(--warn);
}
.ship-done .ship-ico { color: var(--ok); }
.ship-txt { flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.ship-txt b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.ship-no { font-size: 13.5px; font-weight: 700; color: var(--brand-700); }
.ship-txt .btn { margin-left: 6px; }

.mini-title { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }

.pd-top { display: flex; gap: 16px; margin-bottom: 18px; }
.pd-cover {
  width: 132px; height: 164px; flex: none; position: relative; border-radius: 12px;
  background: linear-gradient(150deg, #b98a2e, #8f661d); color: #fff; padding: 14px; overflow: hidden;
}
.pd-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .14));
}
.pd-cover .pc-title { position: relative; z-index: 1; font-size: 20px; font-weight: 800; letter-spacing: 2px; margin: 0; display: block; line-height: 1.3; }
.pd-cover .pc-year { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .85); }
.pd-info { flex: 1; min-width: 0; }
.pd-price { font-size: 24px; margin: 8px 0 6px; }
.pd-meta { font-size: 12px; color: var(--muted); line-height: 1.7; }
.pd-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-top: 9px; }
.pd-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pd-sub {
  display: flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 10px; font-size: 12.5px; cursor: pointer; background: #fff;
}
.pd-sub:hover { border-color: var(--brand-300); }
.pd-sub.on { border-color: var(--brand); background: var(--brand-50); }
.pd-sub input {
  width: auto; height: auto; padding: 0; margin: 0;
  border: 0; background: none; box-shadow: none;
  accent-color: var(--brand); flex: none;
}
/* 科目名可正常换行，避免窄屏下被压成竖排 */
.pd-sub span { flex: 1 1 auto; min-width: 0; line-height: 1.45; word-break: break-word; }
.pd-qty { display: flex; align-items: center; gap: 10px; }
.pd-qty input { width: 88px; text-align: center; }
/* 纸质真题弹窗实时合计：科目数 / 满减 / 应付 */
.pd-total {
  margin: 4px 0 12px; padding: 10px 12px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.pd-t-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.9; }
.pd-t-line.disc, .pd-t-line.disc span { color: var(--ok); }
.pd-t-pay { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); }
.pd-t-pay span { font-size: 12.5px; color: var(--muted); }
.pd-t-pay b { font-family: var(--mono); font-size: 20px; color: var(--price); }
.pd-t-next { font-size: 11.5px; color: var(--warn); margin-top: 4px; }
.pd-t-empty { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1100px) {
  .addr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .pf-label { width: 100%; }
  .pf-row .input { max-width: none; }
  .pf-row .cnt { margin-left: 0; width: 100%; }
  .pd-top { flex-direction: column; }
  .pd-cover { width: 100%; height: 130px; }
  .pd-subs { grid-template-columns: 1fr; }
  .goods-card { flex-wrap: wrap; }
  .gc-right { width: 100%; justify-content: flex-end; }
  .ship-box { padding: 13px; gap: 10px; }
  .tabbar a { font-size: 10.5px; }
  .tabbar a .ti svg { width: 19px; height: 19px; }
}
@media (max-width: 520px) {
  .pc-btns { flex-direction: row; }
  .co-item { flex-wrap: wrap; }
  .ci-right { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .ship-txt .btn { margin-left: 0; margin-top: 6px; }
}

/* ---- 管理端登录 / 数据加载态 ---- */
.login-wrap { display: flex; justify-content: center; padding: 34px 0 60px; }
.login-card { width: 100%; max-width: 420px; padding: 30px 28px; text-align: center; }
.login-ico {
  width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50);
  color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.login-card h1 { font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.login-sub { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 20px; }
.login-card .form-row { text-align: left; margin-bottom: 8px; }
.login-tip { font-size: 11.5px; color: var(--faint); margin-top: 16px; line-height: 1.7; }
.loading-box .empty-ico { display: inline-block; animation: jk-spin 1.2s linear infinite; }
@keyframes jk-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .login-wrap { padding: 20px 0 40px; }
  .login-card { padding: 24px 18px; }
}

/* ==================================================================
 * 商品管理 / 支付设置 / 图片上传 / 扫码支付页
 * ================================================================== */
.btn-danger { color: var(--danger); border-color: #f2c9c9; background: #fff; }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.modal-foot {
  padding: 12px 20px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2);
}
.modal-body.center { text-align: center; }
.adm-warn {
  background: #fff8e8; border: 1px solid #f0dca8; color: #8a6116;
  border-radius: 10px; padding: 10px 14px; font-size: 12.5px; line-height: 1.75; margin-bottom: 14px;
}
.adm-warn code { background: #fff; padding: 1px 5px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.mini-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 4px 0 10px; }
.cf-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.cf-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; max-height: 62vh; overflow-y: auto; }
.cf-grid .form-row:last-child { grid-column: 1 / -1; }
.form-row input[type=file] {
  padding: 7px 0; border: 0; background: transparent; font-size: 12px; color: var(--muted);
  box-shadow: none; height: auto;
}
.form-row textarea { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }

/* ---- 商品管理 ---- */
.pm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.pm-group { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.pm-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.pm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-group .table-wrap { border: 0; border-radius: 0; }
.pm-thumb {
  width: 34px; height: 34px; border-radius: 7px; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface-2); vertical-align: middle; margin-right: 8px;
}
.pm-tbl td, .pm-group .tbl td { font-size: 12.5px; }

/* ---- 支付设置 ---- */
.set-toolbar { display: flex; gap: 8px; margin-bottom: 14px; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.set-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.set-card-head {
  padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.set-card-head b { font-size: 13.5px; }
.set-card-head .faint { font-size: 11.5px; line-height: 1.5; }
/* 标题与右侧操作按钮同一行（内容设置里的段落 / 问题卡头） */
.set-card-head.between { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.set-card-head.between .btn { flex: none; }
.set-card-body { padding: 14px; }
.set-card-body .form-row { margin-bottom: 12px; }
.set-card-body .btn { margin-top: 2px; }

/* ---- 后台：激活码满减设置 ---- */
.disc-in { width: 108px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 13px; text-align: right; }
.disc-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 83, 214, .1); }
.disc-tbl td { vertical-align: middle; }
.disc-preview { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.disc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---- PC 微信 Native 扫码支付页 ---- */
.pay-wait { margin-bottom: 16px; }
.pay-amount { font-size: 30px; font-weight: 700; color: var(--price); font-family: var(--mono); margin-bottom: 4px; }
.pay-qr { margin: 14px 0; }
.pay-qr img {
  width: 220px; max-width: 82%; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; background: #fff; margin-bottom: 8px;
}
.pay-qr .btn { margin: 4px 3px 0; }

/* ---- PC 微信 Native 扫码：本地渲染的二维码（无外部依赖） ---- */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0 6px; }
.qr-svg {
  width: 220px; height: 220px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 12px rgba(20, 40, 80, .06);
}
.qr-svg svg { display: block; width: 100%; height: 100%; }
.qr-tip { text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.qr-tip b { color: var(--ink); }
.qr-link { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.qr-link input {
  flex: 1; min-width: 0; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; background: var(--surface-2);
}
.set-state { margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.set-toolbar .at-note { margin-left: 8px; }
@media (max-width: 760px) {
  .qr-svg { width: 190px; height: 190px; }
  .qr-link { flex-direction: column; align-items: stretch; }
}
.pay-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 14px; }

/* ---- 商品封面图片（后台上传后立即生效） ---- */
.ec-img, .pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ec-cover.has-img::after, .pc-cover.has-img::after {
  background: linear-gradient(160deg, rgba(12, 16, 38, .12), rgba(12, 16, 38, .55));
}
.ec-cover > span, .pc-cover > span { position: relative; z-index: 1; }

/* ---- 成套购买按钮组样式：前台已停用（改为考试页勾选即买），仅保留定义备用 ---- */
.pkg-card { margin: 16px 0 18px; }
.pkg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px; margin-top: 4px;
}
.pkg-btn {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  padding: 12px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500;
  line-height: 1.3; text-align: center; cursor: pointer; transition: .15s;
}
.pkg-btn small { color: var(--faint); font-size: 12px; font-weight: 400; }
.pkg-btn:hover { border-color: var(--pkg); color: var(--pkg); background: #fffaf5; }
.pkg-btn.on {
  border-color: var(--pkg); color: var(--pkg); background: #fff8f2;
  box-shadow: 0 0 0 2px rgba(232, 121, 43, .12);
}
.pkg-btn.on small { color: rgba(232, 121, 43, .78); }

.pk-groups { display: flex; flex-direction: column; gap: 16px; }
.pk-group.locked { opacity: .42; pointer-events: none; }
.pk-exam {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px;
}
.pk-sub {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  margin-bottom: 8px; cursor: pointer; transition: .15s;
}
.pk-sub input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--pkg); }
.pk-sub .pk-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; }
.pk-sub .pk-meta {
  flex: none; max-width: 42%; font-size: 11.5px; color: var(--faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pk-sub .pk-price { flex: none; font-size: 13px; }
.pk-sub.on { border-color: var(--pkg); background: #fff8f2; }
.pk-sub.off { opacity: .5; cursor: not-allowed; }

@media (max-width: 760px) {
  .pkg-grid { grid-template-columns: 1fr 1fr; }
  .pkg-btn { flex-direction: column; gap: 2px; padding: 10px 6px; font-size: 12.5px; }
  .pk-sub .pk-meta { display: none; }
}

@media (max-width: 760px) {
  .cf-grid, .set-grid { grid-template-columns: 1fr; }
  .cf-grid { max-height: none; }
  .pm-group-head { align-items: flex-start; }
  .modal-foot { justify-content: stretch; }
  .modal-foot .btn { flex: 1; }
}

/* ==========================================================================
 * 收银台页（#/pay）：订单信息 + 金额 + 二维码 + 打开 APP 支付
 * 手机与电脑共用；电脑端二维码小一些，手机端自适应满宽
 * ========================================================================== */
.pay-page { max-width: 520px; }
.pay-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.pay-head h1 { font-size: 19px; margin: 0; }
.pay-host { font-size: 12px; color: var(--faint); }
.pay-card { padding: 0 0 18px; overflow: hidden; }
.pay-rows { border-bottom: 1px dashed var(--line); }
.pay-rows .pr {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 18px; font-size: 13px; border-bottom: 1px solid var(--line-2);
}
.pay-rows .pr:last-child { border-bottom: 0; }
.pay-rows .pr > span { color: var(--muted); flex: none; width: 68px; }
.pay-rows .pr > b { margin-left: auto; text-align: right; font-weight: 600; color: var(--ink); word-break: break-all; }
.pay-total { display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 18px 0 4px; color: var(--price); }
.pay-total .pt-cur { font-size: 19px; font-weight: 700; }
.pay-total .pt-num { font-size: 34px; font-weight: 700; font-family: var(--mono); letter-spacing: .5px; line-height: 1.1; }

/* 微信：浅黄提示条；支付宝：居中标识 + 两行说明 */
.pw-tip {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 8px 18px 0; padding: 10px 12px; border-radius: 8px;
  background: #fff8e6; color: #8a6400; font-size: 12.5px; line-height: 1.7;
}
.pw-tip .pwt-ico { flex: none; color: #d8a300; margin-top: 1px; }
.pw-ali-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 6px; font-size: 15px; }
.pw-ali-head .pw-ali-logo { display: inline-flex; }
.pw-ali-sub { text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.75; }

.pqf {
  width: 232px; max-width: 84%; margin: 14px auto 0; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  box-shadow: 0 2px 12px rgba(20, 40, 80, .05);
}
.pqf-ali { width: 258px; max-width: 90%; border-color: var(--brand-300); }
.pqf-amt { text-align: center; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.pqf-amt b { color: var(--price); font-size: 15px; }
.pqf-code svg { display: block; width: 100%; height: auto; }
.pqf-empty {
  margin: 14px 18px 0; padding: 14px 12px; border: 1px dashed var(--line);
  border-radius: 8px; text-align: center; font-size: 12.5px; color: var(--muted);
}
.pq-cap { margin: 12px 18px 0; text-align: center; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.pq-link {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 12px 18px 0; font-size: 11.5px; color: var(--faint); word-break: break-all;
}
.pq-link .mono { flex: 1; }
.pay-app, .pay-lookup, .pay-check {
  display: flex; justify-content: center; align-items: center;
  width: auto; margin: 14px 18px 0;
}
.pay-check {
  margin-top: 12px; gap: 6px; color: var(--brand);
  border-color: var(--brand-100); background: var(--brand-50);
}
.pay-lookup { margin-top: 8px; color: var(--ink-2); }
/* 「打开 APP 支付」下方的兜底提示（部分内置浏览器会拦截唤起） */
.pay-app-tip { margin: 8px 18px 0; font-size: 11.5px; line-height: 1.65; color: var(--faint); text-align: center; }
.pay-poll {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 16px 18px 0; font-size: 12px; color: var(--muted);
}
.pay-note-card { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.8; }

@media (max-width: 760px) {
  .pay-head h1 { font-size: 17px; }
  .pay-rows .pr { padding: 9px 15px; font-size: 12.5px; }
  .pay-rows .pr > span { width: 62px; }
  .pay-total { padding: 16px 0 2px; }
  .pay-total .pt-num { font-size: 30px; }
  .pqf { width: 210px; }
  .pqf-ali { width: 240px; }
  .pay-app, .pay-lookup, .pay-check, .pqf-empty, .pq-cap, .pq-link, .pay-poll { margin-left: 15px; margin-right: 15px; }
}

/* 收银台：收起公告与页脚，二维码图片支持长按识别 */
body.is-pay .notice-bar, body.is-pay .footer { display: none; }
body.is-pay .view { padding-top: 14px; }
.pqf-img { display: block; width: 100%; height: auto; image-rendering: pixelated; }

/* 收银台在手机上更聚焦：隐藏全站顶栏，用页面内标题 + 返回首页 */
.pay-back { margin-left: auto; font-size: 12.5px; color: var(--brand); text-decoration: none; }
body.is-pay .pay-head { margin: 2px 0 10px; }
body.is-pay .pay-total { padding: 13px 0 2px; }
body.is-pay .pay-card { padding-bottom: 14px; }
body.is-pay .pay-poll { margin-top: 12px; }

@media (max-width: 760px) {
  body.is-pay .topbar { display: none; }
  body.is-pay .view { padding-top: 12px; }
  body.is-pay .pay-total .pt-num { font-size: 27px; }
  body.is-pay .pqf { width: 192px; padding: 9px; }
  body.is-pay .pqf-ali { width: 206px; }
  body.is-pay .pay-rows .pr { padding: 8px 15px; }
  body.is-pay .pw-ali-sub { line-height: 1.6; }
}

/* ==========================================================================
   考试倒计时（倒数日）：首页条 / 独立页 / 后台设置
   ========================================================================== */
.cd-strip { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px 18px; }
.cd-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cd-strip-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cd-strip-title svg { color: var(--brand); flex: none; }
.cd-strip-title b { font-size: 15px; }
.cd-strip-title span { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.cd-strip-head > a { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cd-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cd-mini { display: block; padding: 13px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); transition: .15s; color: var(--ink); min-width: 0; }
.cd-mini:hover { border-color: var(--brand-300); background: var(--brand-50); }
.cd-mini-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-mini-head b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-mini-head span { font-size: 11px; color: var(--muted); }
.cd-mini-num { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 6px; min-width: 0; }
.cd-mini-num b { font-size: 30px; line-height: 1; font-family: var(--mono); color: var(--brand); font-weight: 700; }
.cd-mini-num em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.cd-mini-num > span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.cd-mini-foot { font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 7px; }
.cd-mini-foot span { color: var(--brand); font-weight: 600; }

.cd-hero { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(120deg, #2f3a7a 0%, #4b44c4 100%); color: #fff;
  border-radius: var(--r-xl); padding: 26px 30px; box-shadow: 0 12px 30px rgba(47, 58, 122, .18); }
.cd-hero-l { min-width: 0; }
.cd-hero-tag { display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.cd-hero h2 { margin: 12px 0 4px; font-size: 26px; }
.cd-hero-date { font-size: 14px; color: rgba(255,255,255,.9); }
.cd-hero-date em { font-style: normal; font-size: 11.5px; background: rgba(255,255,255,.16); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.cd-hero-note { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.72); }
.cd-hero-tip { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.72); }
.cd-hero-r { text-align: right; min-width: 190px; }
.cd-hero-days { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; }
.cd-hero-days b { font-size: 64px; line-height: 1; font-family: var(--mono); font-weight: 700; }
.cd-hero-days span { font-size: 16px; }
.cd-hero-hms { font-family: var(--mono); font-size: 18px; letter-spacing: 1px; margin-top: 6px; }
.cd-hero-label { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 4px; }
.cd-hero-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--brand-700); font-size: 12.5px; font-weight: 600; }

.cd-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.cd-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 90px 110px 76px; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.cd-row:last-child { border-bottom: 0; }
.cd-row.past { opacity: .62; }
.cd-row-date b { display: block; font-family: var(--mono); font-size: 13.5px; }
.cd-row-date span { font-size: 11.5px; color: var(--muted); }
.cd-row-main b { font-size: 14px; }
.cd-row-main .faint { font-size: 11.5px; margin-top: 2px; line-height: 1.5; }
.cd-row-days { text-align: right; }
.cd-row-days b { font-size: 24px; font-family: var(--mono); color: var(--brand); }
.cd-row-days span { font-size: 11.5px; color: var(--muted); margin-left: 3px; }
.cd-row-state { font-size: 12px; color: var(--ink-2); text-align: right; }
.cd-row-link { font-size: 12px; text-align: right; white-space: nowrap; }

.cd-my-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-my-form #cd-my-name { flex: 1 1 240px; min-width: 0; }
.cd-my-form #cd-my-date { flex: 0 0 170px; }
.cd-my-list { margin-top: 16px; border-top: 1px solid var(--line); }
.cd-my-item { display: grid; grid-template-columns: minmax(0,1fr) 90px 110px 70px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.cd-my-main b { display: block; font-size: 13.5px; }
.cd-my-main span { font-size: 11.5px; color: var(--muted); }
.cd-my-num { text-align: right; }
.cd-my-num b { font-size: 22px; font-family: var(--mono); color: var(--brand); }
.cd-my-num span { font-size: 11.5px; color: var(--muted); }
.cd-my-state { font-size: 12px; color: var(--ink-2); text-align: right; }
.cd-my-empty { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.cd-disclaimer { margin: 16px 0 4px; font-size: 12px; color: var(--muted); line-height: 1.8; }

/* 固定列宽：日期与备注都给足空间，输入框不再撑破表格 */
.cd-tbl { table-layout: fixed; width: 100%; }
.cd-tbl .cd-in { min-width: 0; width: 100%; padding: 6px 8px; font-size: 12.5px; }
.cd-tbl td { vertical-align: middle; overflow: hidden; }
.cd-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.cd-check input { accent-color: var(--brand); width: auto; margin: 0; padding: 0; }

@media (max-width: 1100px) {
  .cd-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cd-strip { padding: 13px 13px 15px; margin-top: 12px; }
  .cd-strip-title span { display: none; }
  .cd-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cd-mini { padding: 11px 10px; }
  .cd-mini-num b { font-size: 25px; }
  .cd-mini-num > span { font-size: 10.5px; }
  .cd-hero { padding: 20px 18px; gap: 16px; }
  .cd-hero h2 { font-size: 21px; }
  .cd-hero-r { text-align: left; min-width: 0; width: 100%; }
  .cd-hero-days, .cd-hero-hms, .cd-hero-label { justify-content: flex-start; text-align: left; }
  .cd-hero-days b { font-size: 48px; }
  .cd-row { grid-template-columns: 84px minmax(0,1fr) 62px; gap: 8px; padding: 11px 12px; }
  .cd-row-date b { font-size: 12px; }
  .cd-row-state, .cd-row-link { display: none; }
  .cd-row-days b { font-size: 20px; }
  .cd-my-form #cd-my-date { flex: 1 1 150px; }
  .cd-my-item { grid-template-columns: minmax(0,1fr) 70px 60px; }
  .cd-my-state { display: none; }
  .cd-tbl { min-width: 780px; }
}
