/* ================================================================
   春政公考 · 站点样式（简约大方 / 单文件 / 无外部依赖）
   ================================================================ */

:root {
  --bg: #FCFBF9;
  --surface: #FFFFFF;
  --ink: #141B1F;
  --ink-2: #3D4A52;
  --ink-3: #6B7880;
  --line: #E7E3DB;
  --line-2: #F2EFE9;
  --accent: #1E5B4A;
  --accent-dark: #16463A;
  --accent-soft: #F0F5F2;
  --gold: #A8823F;
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 251, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
  display: inline-block;
}

.brand em { font-style: normal; color: var(--accent); }

.nav { display: flex; gap: 26px; font-size: 14.5px; }

.nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current] { color: var(--accent); font-weight: 600; }

.nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

h1 {
  font-size: clamp(29px, 4.2vw, 48px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  max-width: 22em;
}

h1 .thin { font-weight: 400; color: var(--ink-3); }

.hero .lead {
  margin-top: 22px;
  max-width: 46em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1;
  padding: 15px 26px;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.18s;
}

.btn-primary { background: var(--accent); color: #fff; }

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }

.btn-ghost:hover { border-color: var(--ink-3); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface);
}

.stats > div { padding: 26px 26px 24px; border-right: 1px solid var(--line); }

.stats > div:last-child { border-right: 0; }

.stat-num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-num small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }

.stat-label { margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* ---------- Section ---------- */
section { padding: 68px 0; }

section.tight { padding: 0 0 68px; }

section.hair { border-top: 1px solid var(--line); }

.sec-head { max-width: 54em; margin-bottom: 34px; }

.sec-head .idx {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

h2 {
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink);
}

.sec-head p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }

h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
}

h3 .count {
  margin-left: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

p + p { margin-top: 14px; }

.lead-sm { font-size: 15.5px; color: var(--ink-2); }

/* ---------- Answer box (AI 直答) ---------- */
.answer {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 22px 26px;
}

.answer .q {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.answer p { margin-top: 7px; font-size: 15.5px; color: var(--ink-2); }

.answer strong { color: var(--ink); }

/* ---------- Hairline grid cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  background: var(--surface);
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card .k {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.card p { font-size: 14.5px; color: var(--ink-3); }

.card ul { margin-top: 12px; padding-left: 16px; font-size: 14px; color: var(--ink-3); }

.card ul li { margin-bottom: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }

thead th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: #F7F5F1;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }

tbody tr:last-child td { border-bottom: 0; }

tbody tr:hover { background: #FBF9F5; }

td strong { color: var(--ink); font-weight: 600; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.price { color: var(--ink); font-weight: 700; }

s { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #C9C4BA; }

.tbl-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* ---------- Notice ---------- */
.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--surface);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.notice strong { color: var(--ink); }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  padding: 2px 9px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.tag-accent { border-color: #CBDCD4; background: var(--accent-soft); color: var(--accent); }

/* ---------- Teacher grid ---------- */
.teachers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.teacher {
  background: var(--surface);
  padding: 24px 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.teacher-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }

.teacher-no { font-size: 11.5px; color: var(--gold); font-variant-numeric: tabular-nums; }

.teacher-name { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }

.teacher-tags { margin: 8px 0 10px; }

.teacher p { font-size: 14px; color: var(--ink-3); }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.step { background: var(--surface); padding: 24px 26px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; }

.step::before {
  counter-increment: s;
  content: "0" counter(s);
  font-size: 12.5px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.step h3 { grid-column: 2; margin: 0; }

.step p { grid-column: 2; font-size: 14.5px; color: var(--ink-3); }

/* ---------- Plain list ---------- */
.list { border-top: 1px solid var(--line); }

.list > li {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(88px, 150px) 1fr;
  gap: 6px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.list > li > b { color: var(--ink); font-weight: 600; }

.list > li > span { color: var(--ink-2); }

.checklist { list-style: none; }

.checklist li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
}

.checklist li b { color: var(--ink); }

.checklist li:last-child { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }

details.faq { border-bottom: 1px solid var(--line); }

details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.2;
}

details.faq[open] summary::after { content: "\2013"; }

details.faq summary:hover { color: var(--accent); }

.faq .qidx { font-size: 12.5px; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: 4px; min-width: 20px; }

.faq .body { padding: 0 0 22px 36px; font-size: 15px; color: var(--ink-2); max-width: 62em; }

.faq .body p + p { margin-top: 10px; }

/* ---------- Jump nav ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.jump a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 14px;
  border-radius: 2px;
  transition: all 0.15s;
}

.jump a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Filter ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.filter button {
  font: inherit;
  font-size: 13.5px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter button:hover { border-color: var(--ink-3); }

.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); padding-top: 26px; }

.crumbs a { text-decoration: none; color: var(--ink-3); }

.crumbs a:hover { color: var(--accent); }

.crumbs .sep { color: #C9C4BA; }

/* ---------- Course group ---------- */
.group { margin-top: 52px; scroll-margin-top: 100px; }

.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }

.group-head h2 { font-size: clamp(19px, 2.1vw, 24px); }

.group-head .meta { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.group-desc { font-size: 15px; color: var(--ink-2); max-width: 60em; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 92px; background: #141B1F; color: #B2BCC2; padding: 56px 0 26px; font-size: 14px; }

.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: 44px; }

.foot-brand { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 12px; }

.site-footer p { color: #8E9AA1; font-size: 13.5px; line-height: 1.85; }

.foot-t { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 14px; }

.site-footer a { display: block; color: #B2BCC2; text-decoration: none; margin-bottom: 9px; font-size: 13.5px; }

.site-footer a:hover { color: #fff; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: #6E7A81;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0 0; gap: 4px; }
  .nav { width: 100%; overflow-x: auto; gap: 20px; font-size: 14px; padding: 6px 0 12px; }
  .nav a[aria-current]::after { bottom: -12px; }
  .hero { padding-top: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  section { padding: 52px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .list > li { grid-template-columns: 1fr; gap: 4px; }
  table { min-width: 700px; }
  .faq .body { padding-left: 0; }
  details.faq summary { font-size: 15.5px; }
  .step { grid-template-columns: 34px 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .stats > div { padding: 20px 18px; }
  .card, .teacher { padding: 22px 20px; }
}

/* ================================================================
   v2 定稿文案新增组件：口号、等分网格、四个「不」、督学三阶段、二维码
   ================================================================ */

/* 口号 */
.quote {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink);
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* 等分网格（tiles）：border-top + border-left 容器，单元格补右/下边框 */
.tiles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tiles > * {
  background: var(--surface);
  padding: 26px 26px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }

.tiles h3 { font-size: 16.5px; }

.tiles p { font-size: 14.5px; color: var(--ink-3); }

/* 六类考试（课程页） */
.exams {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.exam {
  background: var(--surface);
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exam h3 { font-size: 16.5px; }

.exam p { font-size: 14.5px; color: var(--ink-3); }

/* 适合 / 不适合 */
.fit-grid .fit-col { padding: 26px 26px 20px; }

.fit-col ul { list-style: none; margin-top: 12px; }

.fit-col li {
  position: relative;
  padding: 11px 0 11px 22px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}

.fit-col li:last-child { border-bottom: 0; }

.fit-col li::before {
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 13px;
  font-weight: 700;
}

.fit-col.yes li::before { content: "\2713"; color: var(--accent); }
.fit-col.no li::before { content: "\2014"; color: var(--ink-3); }

/* 四个「不」：左标题 / 右正文 */
.feat {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 12px 40px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.feat:last-child { border-bottom: 1px solid var(--line); }

.feat-side .k {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.feat-side h3 { font-size: 18px; line-height: 1.45; }

.feat-body p { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }

.feat-body p:last-child { margin-bottom: 0; }

.feat-body .fine {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: 14.5px;
  color: var(--ink-2);
}

/* 督学三阶段 */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 22px 0 4px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stage {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.stage h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.stage ul { list-style: none; }

.stage li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.stage li:last-child { margin-bottom: 0; }

.stage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

/* 正文段落组 */
.prose p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 56em;
}

.prose p + p { margin-top: 16px; }

/* 班型详细说明 */
.course-list { border-top: 1px solid var(--line); }

.course-item { padding: 24px 0; border-bottom: 1px solid var(--line); }

.course-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }

.course-head h3 { margin: 0; font-size: 17px; }

.course-item p { font-size: 15px; color: var(--ink-2); max-width: 56em; }

/* 联系区块 */
.contact {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.qr-lg {
  width: 172px;
  height: 172px;
  display: block;
  flex: 0 0 auto;
  image-rendering: -webkit-optimize-contrast;
}

.contact h3 { font-size: 18px; }

.contact p { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 40em; }

.muted-sm { color: var(--ink-3) !important; font-size: 14px !important; }

/* 页脚二维码 */
.foot-qr { display: flex; align-items: center; gap: 14px; }

.foot-qr img {
  width: 104px;
  height: 104px;
  display: block;
  background: #fff;
  padding: 6px;
  border-radius: 2px;
}

.foot-qr p { font-size: 13px; line-height: 1.7; color: #8E9AA1; }

.foot-ch { margin-top: 14px; font-size: 13px; color: #6E7A81; }

@media (max-width: 860px) {
  .tiles-3, .tiles-2, .exams, .stages { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .feat-side h3 { font-size: 17px; }
  .contact { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 20px; }
  .qr-lg { width: 150px; height: 150px; }
  .quote { margin-top: 32px; }
}

@media (max-width: 520px) {
  .tiles > *, .exam, .stage { padding: 20px 18px; }
}

/* 4 列卡片里落单的第 5 张：占满整行，避免右侧留空 */
.cards > .card:last-child:nth-child(4n + 1) { grid-column: 1 / -1; }

/* 讲师名录：24 条长文本，桌面两列更好读 */
.teachers-2 { grid-template-columns: repeat(2, 1fr); }

.teacher p { margin-top: 8px; line-height: 1.75; }

@media (max-width: 860px) {
  .teachers-2 { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.err-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.err-links a {
  display: block;
  padding: 24px 22px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .18s ease;
}

.err-links a:hover { background: var(--accent-soft); }

.err-links .t {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}

.err-links .d {
  display: block;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.notice code, .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(30, 91, 74, .08);
  color: var(--accent-dark);
}

@media (max-width: 860px) {
  .err-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .err-links { grid-template-columns: 1fr; }
  .err-links a { padding: 20px 18px; }
}

/* ---------- 页脚备案号 ---------- */
.foot-icp { flex: 0 0 100%; }
.foot-icp a { color: #6E7A81; font-size: 12.5px; text-decoration: none; }
.foot-icp a:hover { color: #C9D3D8; }
