/* ============================================================
   RSA 救援技能联盟 · 前台样式
   设计取向：深蓝专业感 + 救援橙点缀；移动端优先，底部四栏导航
   ============================================================ */

:root {
  --brand: #1e4fd8;
  --brand-dark: #12306e;
  --brand-soft: #eaf0ff;
  --accent: #ff6b2c;
  --accent-soft: #fff1e8;
  --navy: #0b1a33;
  --navy-2: #12294a;
  --ink: #0f1b2d;
  --text: #2b3a4f;
  --muted: #6b7a90;
  --line: #e2e9f4;
  --bg: #f4f7fc;
  --ok: #12805c;
  --ok-soft: #e7f6ef;
  --warn: #b45309;
  --warn-soft: #fff7e8;
  --danger: #c02626;
  --danger-soft: #fdeaea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px -18px rgba(15, 27, 45, .35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.35; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
code { background: #eef3fb; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; } .between { justify-content: space-between; } .center-v { align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--brand), #0e7490);
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text strong { display: block; font-size: 15.5px; color: var(--ink); letter-spacing: .3px; }
.brand-text span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.main-nav { display: flex; gap: 2px; margin-left: 8px; }
.main-nav a {
  padding: 7px 12px; border-radius: 8px; color: var(--text); font-size: 13.5px; white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.main-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-phone { font-size: 12.5px; color: var(--muted); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-size: 13.5px; cursor: pointer;
  text-decoration: none; transition: .15s; line-height: 1.4;
}
.btn:hover { background: #1740b5; color: #fff; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #e85a1c; }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-more { font-size: 12.5px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcff; }

/* ---------------- 徽标 / 标签 ---------------- */
.badge {
  display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px;
  background: #eef2f8; color: var(--muted); white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px;
  background: #f0f4fa; color: #46586f; margin: 0 6px 6px 0;
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: #41526b; margin-bottom: 5px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; background: #fbfdff; color: var(--ink); font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 79, 216, .12);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; background: #fff;
}
.radio-row input { margin: 0; }

/* ---------------- 提示条 ---------------- */
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: #0f6b4c; border-color: #bfe6d5; }
.alert-error { background: var(--danger-soft); color: #8c1c1c; border-color: #f6c9c9; }
.alert-warn { background: var(--warn-soft); color: #8a5a09; border-color: #f4ddb0; }
.alert-info { background: var(--brand-soft); color: var(--brand-dark); border-color: #cfdcfb; }
.flash-stack { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(520px, 92vw); }
.flash-stack .alert { box-shadow: 0 10px 30px -12px rgba(15, 27, 45, .4); margin-bottom: 8px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(30, 79, 216, .45), transparent 60%),
    radial-gradient(800px 300px at 10% 0%, rgba(14, 116, 144, .35), transparent 55%),
    linear-gradient(160deg, #08152b 0%, #0f2a52 60%, #123a6b 100%);
  color: #e8f0fb; padding: 46px 0 54px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 12px; letter-spacing: 2px; color: #8fb6ff; text-transform: uppercase; margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: 34px; line-height: 1.3; margin-bottom: 12px; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: #ffb27a; }
.hero p.lead { color: #b9cbe6; font-size: 14.5px; max-width: 520px; }
.hero-points { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero-points div strong { display: block; font-size: 22px; color: #fff; }
.hero-points div span { font-size: 12px; color: #93a9c8; }

.verify-box {
  background: rgba(255, 255, 255, .96); border-radius: 16px; padding: 22px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6); color: var(--text);
}
.verify-box h3 { font-size: 15px; margin-bottom: 4px; }
.verify-box .sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.verify-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.verify-tabs button {
  flex: 1; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; cursor: pointer; color: var(--text);
}
.verify-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 区块 ---------------- */
.section { padding: 38px 0; }
.section.tight { padding: 26px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-title { font-size: 20px; letter-spacing: .3px; }
.section-title span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 1px; margin-top: 3px; text-transform: uppercase; }
.section-more { font-size: 13px; white-space: nowrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* 登录/注册页：左侧说明 + 右侧固定宽度表单卡 */
.auth-split { grid-template-columns: 1fr 420px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
/* 主内容 + 侧栏 */
.grid-side { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.grid-side > * { min-width: 0; }

.skill-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  display: block; color: inherit; transition: .18s;
}
.skill-card:hover { text-decoration: none; border-color: #c3d4f5; transform: translateY(-2px); box-shadow: var(--shadow); }
.skill-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.skill-card h4 { font-size: 15px; margin-bottom: 4px; }
.skill-card p { font-size: 12.5px; color: var(--muted); margin: 0; }
.skill-card .count { margin-top: 10px; font-size: 12px; color: var(--brand); }

.course-card { display: flex; flex-direction: column; height: 100%; }
.course-cover {
  height: 116px; background: linear-gradient(135deg, #12306e, #1e4fd8);
  display: flex; align-items: flex-end; padding: 12px; position: relative; overflow: hidden;
}
.course-cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 120px at 100% 0, rgba(255, 255, 255, .22), transparent 60%);
}
.course-cover .cv-cat { position: relative; z-index: 1; font-size: 11.5px; background: rgba(255, 255, 255, .18); color: #fff; padding: 2px 9px; border-radius: 20px; }
.course-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.course-body h4 { font-size: 14.5px; margin-bottom: 6px; }
.course-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.course-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }

.class-row {
  display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #eef2f8; align-items: center;
}
.class-row:last-child { border-bottom: 0; }
.class-date {
  width: 62px; flex: none; text-align: center; background: var(--brand-soft); border-radius: 10px; padding: 7px 4px;
}
.class-date strong { display: block; font-size: 17px; color: var(--brand); line-height: 1.2; }
.class-date span { font-size: 11px; color: var(--brand-dark); }
.class-main { flex: 1; min-width: 0; }
.class-main h4 { font-size: 14px; margin-bottom: 3px; }
.class-main .meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

.news-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed #e7edf6; }
.news-item:last-child { border-bottom: 0; }
.news-item .date { flex: none; width: 54px; text-align: center; color: var(--muted); font-size: 11.5px; }
.news-item .date strong { display: block; font-size: 18px; color: var(--ink); }
.news-item h4 { font-size: 14px; margin-bottom: 3px; font-weight: 500; }
.news-item p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------------- 数据条 ---------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-strip .item { background: #fff; padding: 16px 18px; }
.stat-strip .num { font-size: 24px; font-weight: 700; color: var(--brand-dark); letter-spacing: .5px; }
.stat-strip .label { font-size: 12px; color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--navy); color: #93a9c8; padding: 34px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h5 { color: #fff; font-size: 13px; margin: 0 0 10px; font-weight: 600; }
.site-footer a { color: #93a9c8; font-size: 12.5px; display: block; line-height: 2; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-top: 14px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------------- 列表 / 表格 ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 10px 12px; background: #f8fafd; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid #eef2f8; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfdff; }

.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 14px 0 2px; }
.pager a, .pager span { min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: #fff; color: var(--text); }
.pager a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled { color: #b9c4d4; }
.pager .is-gap { border: 0; background: transparent; }
.pager-total { border: 0 !important; background: transparent !important; color: var(--muted); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); font-size: 13px; }
.empty .ico { font-size: 26px; margin-bottom: 8px; opacity: .5; }

/* ---------------- 页头 / 面包屑 ---------------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0; }
.page-head h1 { font-size: 21px; margin-bottom: 4px; }
.page-head .sub { font-size: 13px; color: var(--muted); margin: 0; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 5px; }

/* ---------------- 用户中心 ---------------- */
.user-shell { display: grid; grid-template-columns: 208px 1fr; gap: 20px; padding: 24px 0 10px; }
/* 栅格子项默认 min-width:auto，宽表格会把整列撑出屏幕，必须归零 */
.user-shell > * { min-width: 0; }
.card { min-width: 0; }
.user-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; height: fit-content; position: sticky; top: 78px; }
.user-side .who { display: flex; gap: 10px; align-items: center; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.user-side .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.user-side .who strong { display: block; font-size: 13.5px; color: var(--ink); }
.user-side nav a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 13px; }
.user-side nav a:hover { background: #f4f7fc; text-decoration: none; }
.user-side nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.user-side nav a .n { background: var(--danger); color: #fff; font-size: 10.5px; border-radius: 20px; padding: 0 6px; }

.cert-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; position: relative; overflow: hidden;
}
.cert-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.cert-card.is-expired::before { background: #9aa8bb; }
.cert-card.is-revoked::before { background: var(--danger); }
.cert-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }

/* ---------------- 证书详情 / 打印 ---------------- */
.cert-paper {
  width: 100%; max-width: 720px; margin: 0 auto; background: #fff; position: relative;
  aspect-ratio: 794 / 1123; border: 1px solid #e3e9f3; box-shadow: 0 12px 40px -24px rgba(15, 27, 45, .5);
  overflow: hidden;
}
.cert-paper.landscape { aspect-ratio: 1123 / 794; }
.cert-layer { position: absolute; inset: 0; }
.cert-field { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.cert-design { position: absolute; inset: 0; padding: 7% 9%; color: #12233f; }
.cert-design .frame { position: absolute; inset: 3.2%; border: 2px solid #b58b3a; border-radius: 4px; }
.cert-design .frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(181, 139, 58, .5); }
.cert-design .seal {
  position: absolute; right: 12%; bottom: 13%; width: 108px; height: 108px; border-radius: 50%;
  border: 2px solid rgba(192, 38, 38, .55); color: rgba(192, 38, 38, .7);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; line-height: 1.4; transform: rotate(-8deg);
}
.cert-title { text-align: center; margin-top: 6%; }
.cert-title .en { font-size: 10px; letter-spacing: 3px; color: #8a7a55; text-transform: uppercase; }
.cert-title h2 { font-size: 30px; letter-spacing: 10px; color: #12306e; margin: 6px 0 2px; }
.cert-title .line { width: 64px; height: 2px; background: #b58b3a; margin: 10px auto 0; }

/* ---------------- 考试 ---------------- */
.exam-shell { max-width: 820px; margin: 0 auto; padding: 18px 14px 90px; }
.exam-top {
  position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px 14px; display: flex; align-items: center; gap: 12px;
}
.exam-timer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; color: var(--brand-dark); font-weight: 600; }
.exam-timer.is-warn { color: var(--danger); }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; scroll-margin-top: 90px; }
.q-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.q-no { background: var(--brand); color: #fff; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.q-content { font-size: 14.5px; color: var(--ink); line-height: 1.8; margin-bottom: 12px; }
.q-opt { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 13.5px; background: #fbfdff; }
.q-opt:hover { border-color: #b9ccf3; }
.q-opt input { margin-right: 8px; }
.q-opt.is-checked { border-color: var(--brand); background: var(--brand-soft); }
.q-opt .key { display: inline-block; width: 20px; font-weight: 600; color: var(--brand-dark); }
.exam-bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px; display: flex; gap: 10px; align-items: center; z-index: 60;
}
.exam-bar .progress { flex: 1; font-size: 12px; color: var(--muted); }
.exam-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.exam-grid a { height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px; color: var(--text); background: #fff; }
.exam-grid a.done { background: var(--brand-soft); border-color: #b9ccf3; color: var(--brand-dark); }
.exam-grid a.cur { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 移动端底部导航 ---------------- */
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: #fff; border-top: 1px solid var(--line);
    padding: 5px 0 calc(4px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    flex: 1; text-align: center; font-size: 10.5px; color: #7a8aa0; padding: 3px 0;
  }
  .mobile-nav a .ico { display: block; font-size: 18px; line-height: 1.3; }
  .mobile-nav a.active { color: var(--brand); font-weight: 600; }
  .mobile-nav a:hover { text-decoration: none; }
  body { padding-bottom: 58px; }
  .main-nav { display: none; }
  .header-inner { height: 56px; gap: 10px; }
  .header-phone { display: none; }
  .hero { padding: 30px 0 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 24px; }
  .hero-points { gap: 16px; }
  /* !important 是为了压住页面里偶尔内联的 grid-template-columns，避免手机上被挤成一字一列 */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  /* 纯数字小指标在手机上保持两列，避免四个数字占掉一整屏 */
  .kpi-quad { grid-template-columns: 1fr 1fr !important; }
  .grid-side { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .user-shell { grid-template-columns: 1fr; padding-top: 14px; }
  .user-side { position: static; }
  .user-side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .user-side nav a { padding: 6px 10px; font-size: 12.5px; background: #f7f9fd; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .class-row { flex-wrap: wrap; }
  .class-row .btn { width: 100%; }
  .section { padding: 24px 0; }
  .section-title { font-size: 17px; }
  .section-head { align-items: center; }
  .card-body { padding: 14px; }
  .q-card { padding: 14px; }
  .exam-shell { padding: 10px 10px 92px; }
}

@media print {
  .site-header, .site-footer, .mobile-nav, .no-print, .flash-stack { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .cert-paper { box-shadow: none; border: 0; max-width: none; width: 100%; }
  .print-page { padding: 0 !important; }
}
