/* ===========================================================
   2027 山西考公考编课程体系 · 视觉规范
   白底 + 红强调 + 柔和圆润装饰（克制、不堆砌）
   =========================================================== */

/* ===== 字体（方正授权字体，沿用） ===== */
@font-face {
  font-family: 'FZLanTingHei';
  src: url('../fonts/方正兰亭黑简体FZLTHJW.TTF') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'FZLanTingZhunHei';
  src: url('../fonts/方正兰亭准黑简体FZLTZHUNHJW.TTF') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'FZLanTingDaHei';
  src: url('../fonts/方正兰亭大黑简体FZLTDHJW.TTF') format('truetype');
  font-display: swap;
}

:root {
  --red: #C8102E;          /* 华图红：唯一强调色 */
  --red-dark: #A00D24;
  --red-soft: #FDECEE;     /* 浅红底 */
  --ink: #1F2329;
  --ink-2: #5A6270;
  --ink-3: #8B93A1;
  --line: #E6E9EE;         /* 灰色细线（比原来略深，线条更清楚） */
  --line-2: #F1F3F7;
  --bg-soft: #F7F8FA;
  --radius: 10px;          /* 唯一圆角：卡片、区块一律用它 */
  --radius-sm: 6px;        /* 小块 */
  --shadow-sm: 0 1px 2px rgba(31, 35, 41, .04), 0 1px 3px rgba(31, 35, 41, .03);
  --shadow-md: 0 6px 18px rgba(31, 35, 41, .07);
}

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

body {
  font-family: 'FZLanTingHei', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 14px;
  overflow-x: hidden;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
b, strong { font-weight: 700; }
ul { list-style: none; }

/* ---------------- 顶部 · 标准华图顶栏（真 logo） ---------------- */
.ht_top {
  width: 100%;
  overflow: hidden;
  background: #fafafa url(https://www.huatu.com/z/topfooter/images/nav_bg.gif) repeat-x 0 0;
  line-height: 41px;
}
.ht_top .zt_top { max-width: 1200px; height: 41px; margin: 0 auto; padding: 0 20px; }
.ht_top .zthinkLogo { float: left; }
.ht_top .zthinkLogo a {
  float: left;
  width: 131px; height: 40px; overflow: hidden;
  background: url(https://www.huatu.com/z/topfooter/images/logo.gif) no-repeat;
  font-size: 12px; text-indent: -100em;
}
.ht_top .topnav { float: right; color: #333; font-size: 12px; }
.ht_top .topnav a { position: relative; padding: 0 8px; color: var(--ink-2); }
.ht_top .topnav a:hover { color: var(--red); text-decoration: underline; }
.ht_top .topnav a:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; background: var(--line);
}

/* ---------------- 版心 ---------------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 60px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  margin: 26px 0 8px;
  padding: 46px 40px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-tag {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'FZLanTingDaHei', 'Microsoft YaHei', sans-serif;
  font-size: 34px; line-height: 1.3; letter-spacing: -.5px;
  padding-left: 16px; border-left: 5px solid var(--red);
}
.hero h1 b { color: var(--red); }
.hero-lead { margin: 16px 0 0; max-width: 760px; font-size: 14px; color: var(--ink-2); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 44px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-stats .stat b {
  display: block; font-family: 'FZLanTingZhunHei', sans-serif;
  font-size: 34px; color: var(--red); line-height: 1.2; letter-spacing: -.5px;
}
.hero-stats .stat span { font-size: 13px; color: var(--ink-3); }

/* ---------------- 分类标题 ---------------- */
.cat { margin-top: 52px; }
.cat-head { margin-bottom: 22px; }
.cat-head.center { text-align: center; }
.cat-tag {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  padding: 4px 14px; border-radius: 999px;
  margin-bottom: 12px;
}
.cat-head h2 {
  font-family: 'FZLanTingDaHei', 'Microsoft YaHei', sans-serif;
  font-size: 26px; letter-spacing: -.3px;
  padding-left: 12px; border-left: 4px solid var(--red);
}
.cat-head.center h2 { display: inline-block; }
.cat-desc { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

/* ---------------- 课程卡片 ---------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid.single { grid-template-columns: 1fr; }

.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(200, 16, 46, .35); box-shadow: var(--shadow-md); }

.card-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line-2); }
.pills { display: flex; gap: 8px; margin-bottom: 10px; }
.pill {
  display: inline-block; font-size: 12px; letter-spacing: .5px;
  color: var(--red); background: var(--red-soft);
  padding: 2px 10px; border-radius: 999px;
}
.pill-hot { color: #fff; background: var(--red); font-weight: 700; }
.card-head h3 {
  font-family: 'FZLanTingZhunHei', 'Microsoft YaHei', sans-serif;
  font-size: 20px; line-height: 1.45;
}
.card-sub { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

.card-body { flex: 1; padding: 18px 24px; }

/* 阶段（红圈白字编号） */
.stage { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.stage:last-child { margin-bottom: 0; }
.stage-no {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 26px; text-align: center;
}
.stage-txt { font-size: 14px; color: var(--ink-2); }
.stage-txt b { display: block; color: var(--ink); font-size: 14px; }

/* 高亮块 */
.highlight {
  display: flex; align-items: baseline; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px;
}
.hl-num { font-family: 'FZLanTingZhunHei', sans-serif; font-size: 20px; color: var(--red); }
.hl-desc { font-size: 13px; color: var(--ink-3); }

/* 时长 */
.dur { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.dur-num { font-family: 'FZLanTingZhunHei', sans-serif; font-size: 34px; color: var(--red); line-height: 1; }
.dur-unit { font-size: 14px; color: var(--ink); font-weight: 700; }
.dur-label { font-size: 13px; color: var(--ink-3); }

/* 时长/方向选项 */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
.opt-label { font-size: 12px; color: var(--ink-3); }
.opt-val { font-size: 14px; font-weight: 700; color: var(--red); }

/* 特性列表（红色细线引导） */
.feat { display: flex; flex-direction: column; gap: 9px; }
.feat li {
  position: relative; padding-left: 14px;
  font-size: 14px; color: var(--ink-2); line-height: 1.65;
}
.feat li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red);
}

/* 促销/说明条 */
.offer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 10px 14px;
  background: var(--red-soft); border-radius: 10px;
  font-size: 13px; color: var(--red-dark); font-weight: 600;
}
.offer .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }

/* 限时特惠清单（红点引导） */
.offer-list { margin-top: 14px; padding: 12px 14px; background: var(--red-soft); border-radius: 10px; }
.offer-list .offer-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--red-dark);
  letter-spacing: .4px; margin-bottom: 8px;
}
.offer-list .offer-title::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none;
}
.offer-list ul { display: flex; flex-direction: column; gap: 5px; }
.offer-list li { position: relative; padding-left: 13px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--red);
}
.offer-list li b { color: var(--red-dark); }

/* 备注 */
.note {
  margin-top: 14px; padding: 11px 14px;
  background: var(--bg-soft); border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  font-size: 13px; color: var(--ink-2);
}
.note b { color: var(--ink); }

/* 名师 */
.teachers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.teachers span {
  font-size: 13px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px;
}

/* OMO 双列 */
.omo { display: flex; gap: 22px; align-items: flex-start; }
.omo-col { flex: 1; min-width: 0; }
.omo-col h4 { font-size: 14px; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--red); }
.omo-div { width: 1px; align-self: stretch; background: var(--line); }

/* 卡片底部 */
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px 20px; border-top: 1px solid var(--line-2); background: #fff;
}
.price { min-width: 0; }
.price-old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.price-now {
  font-family: 'FZLanTingZhunHei', sans-serif;
  font-size: 20px; color: var(--red); line-height: 1.3; letter-spacing: -.3px;
}
.price-now.large { font-size: 26px; }
.price-type { font-family: 'FZLanTingHei', sans-serif; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.price-split { font-size: 12px; color: var(--ink-2); }

/* 按钮 */
.btn {
  flex: none;
  background: var(--red); color: #fff; border: none;
  font-size: 14px; font-weight: 700;
  padding: 11px 24px; border-radius: 999px;
  transition: background-color .2s;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-ghost:hover { background: var(--red-soft); color: var(--red-dark); }

/* ---------------- 为什么选择华图 ---------------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.adv {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.adv:hover { border-color: rgba(200, 16, 46, .3); box-shadow: var(--shadow-hover); }
.adv-no {
  display: inline-block; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 32px; text-align: center;
  margin-bottom: 14px;
}
.adv h3 { font-size: 16px; margin-bottom: 8px; }
.adv p { font-size: 13px; color: var(--ink-2); }

/* ---------------- 福利 ---------------- */
.benefit-wrap {
  display: flex; gap: 34px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px;
}
.benefit-col { flex: 1; min-width: 0; }
.benefit-title {
  font-size: 16px; margin-bottom: 18px;
  padding-left: 10px; border-left: 3px solid var(--red);
}
.benefit-div { width: 1px; align-self: stretch; background: var(--line); }
.benefit-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.benefit-item:last-child { margin-bottom: 0; }
.benefit-no {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 28px; text-align: center;
}
.benefit-item h4 { font-size: 14px; margin-bottom: 3px; }
.benefit-item p { font-size: 13px; color: var(--ink-2); }

/* ---------------- 底部 CTA ---------------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  margin-top: 52px; padding: 30px 34px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.cta-txt h3 { font-size: 20px; margin-bottom: 8px; }
.cta-txt p { font-size: 14px; color: var(--ink-2); max-width: 640px; }
.cta-btns { display: flex; gap: 12px; flex: none; }

/* ---------------- 留资：悬浮按钮 + 弹窗 ---------------- */
.fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  border: none; background: var(--red); color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(200, 16, 46, .32);
  transition: background-color .2s, transform .2s;
}
.fab:hover { background: var(--red-dark); transform: translateY(-2px); }
.fab span { margin-right: 6px; }

.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(31, 35, 41, .5);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.lead-box {
  position: relative; width: 100%; max-width: 400px; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 32px 30px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}
.lead-box .close {
  position: absolute; right: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-2);
  font-size: 20px; line-height: 29px; cursor: pointer; text-align: center;
}
.lead-box .close:hover { background: var(--red-soft); color: var(--red); }
.lead-tag {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.lead-box h3 { font-size: 20px; margin-bottom: 10px; padding: 0 20px; }
#lead-target { font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.lead-sub { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.lead-sub b { color: var(--red); }
.lead-box .qr { margin: 18px auto 10px; width: 190px; }
.lead-box .qr img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff; }
.lead-box .tip { font-size: 12px; color: var(--ink-3); }

/* ---------------- 免责说明 + 标准页脚 ---------------- */
.foot-note {
  text-align: center; font-size: 12px; color: var(--ink-3);
  padding: 26px 20px 0; border-top: 1px solid var(--line); margin-top: 48px;
}
.footer { border-top: 1px solid var(--line); margin-top: 16px; background: var(--bg-soft); padding: 22px 20px; text-align: center; }
.footer p { font-size: 12px; color: var(--ink-3); line-height: 2; }
.footer a { color: var(--ink-3); }
.footer a:hover { color: var(--red); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 16px);
  z-index: 1200; max-width: 84vw;
  background: rgba(31, 35, 41, .92); color: #fff;
  font-size: 14px; padding: 12px 22px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 24px 28px; }
  .hero h1 { font-size: 26px; }
  .hero-lead { font-size: 14px; }
  .hero-stats { gap: 26px; }
  .hero-stats .stat b { font-size: 26px; }
  .cat-head h2 { font-size: 20px; }
  .benefit-wrap { flex-direction: column; gap: 24px; padding: 24px 22px; }
  .benefit-div { width: 100%; height: 1px; }
  .omo { flex-direction: column; gap: 18px; }
  .omo-div { display: none; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta-btns { justify-content: stretch; }
  .cta-btns .btn { flex: 1; }
  .ht_top { line-height: 34px; }
  .ht_top .zt_top { height: 34px; padding: 0 14px; }
  .ht_top .zthinkLogo a { width: 110px; height: 34px; background-size: 110px 34px; }
  .ht_top .topnav { font-size: 12px; }
  .ht_top .topnav a { padding: 0 6px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px 50px; }
  .hero h1 { font-size: 20px; }
  .cat { margin-top: 40px; }
  .card-head, .card-body, .card-foot { padding-left: 18px; padding-right: 18px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .card-foot .btn { width: 100%; }
  .opts, .opts.three { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .cta { padding: 24px 20px; }
  .fab { right: 16px; bottom: 16px; font-size: 13px; padding: 12px 18px; }
}

/* ==================== 重音：深红反白区（全页唯一的深色块） ==================== */
.adv-section {
  margin-top: 56px;
  padding: 44px 40px 40px;
  background: var(--red-dark);
  border-radius: var(--radius);
}
.adv-section .cat-head h2 { color: #fff; }
.adv-section .cat-desc { color: rgba(255, 255, 255, .74); }
.adv-section .adv {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none;
}
.adv-section .adv:hover { border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.adv-section .adv-no { background: #fff; color: var(--red-dark); }
.adv-section .adv h3 { color: #fff; }
.adv-section .adv p { color: rgba(255, 255, 255, .74); }

@media (max-width: 900px) {
  .adv-section { padding: 30px 22px 26px; }
}

/* 圆角纪律：只允许 --radius / --radius-sm / 999px / 50% */
.hero, .card, .adv, .benefit-wrap, .cta, .lead-box, .highlight, .opt, .offer,
.offer-list, .note { border-radius: var(--radius); }
.opt, .highlight, .offer, .offer-list, .note { border-radius: var(--radius-sm); }

/* ===========================================================
   方向 A：招生简章 · 文档流
   （覆盖上面卡片式的排版；token/字号沿用已收敛的规范）
   =========================================================== */

/* ---------- 一、章节头：大号编号 + 标题 + 细线贯通 ---------- */
.cat[id^="cat-"] { counter-increment: cat; }

.cat[id^="cat-"] .cat-head {
  position: relative;
  margin-bottom: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
/* 编号：一 / 二 / 三 / 四 */
.cat[id^="cat-"] .cat-head h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-left: 0;
  border-left: none;
}
.cat[id^="cat-"] .cat-head h2::before {
  content: counter(cat, cjk-ideographic);
  flex: none;
  font-family: 'FZLanTingDaHei', 'Microsoft YaHei', sans-serif;
  font-size: 34px;
  line-height: 1;
  color: var(--red);
  letter-spacing: 0;
}
/* 产品线标签：改成低调灰底红字，放在标题上方，不抢编号与标题 */
.cat[id^="cat-"] .cat-tag {
  background: var(--bg-soft);
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: .6px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.cat[id^="cat-"] .cat-desc { padding-left: 50px; }

/* ---------- 二、课程条目：左内容 + 右价格 ---------- */
.grid,
.grid.single { display: block; }          /* 取消 2 列网格 -> 单列 */

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-areas:
    "head foot"
    "body foot";
  gap: 0 46px;
  padding: 34px 0;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.card:last-child { border-bottom: 1px solid var(--line); }
.card:hover { border-color: var(--line); box-shadow: none; }

.card-head { grid-area: head; padding: 0 0 16px; border-bottom: none; }
.card-body { grid-area: body; padding: 0; }

/* 价格区：右列，带左侧细线，价格作为视觉锚点 */
.card-foot {
  grid-area: foot;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* 覆盖继承来的 space-between（否则价格与按钮被撑开） */
  align-items: flex-start;
  gap: 14px;
  padding: 2px 0 0 28px;
  border-top: none;
  border-left: 1px solid var(--line);
  background: none;
}
.card-foot .price { width: 100%; }
.card-foot .btn { width: 100%; text-align: center; }

/* 文件流里的标题更大一点 */
.card-head h3 { font-size: 20px; }
.price-now { font-size: 26px; }
.price-now.large { font-size: 26px; }

/* 条目内的块：弱化成"行"而不是"卡片" */
.feat { gap: 8px; }
.highlight,
.opt,
.offer,
.offer-list,
.note { border-radius: var(--radius-sm); }

/* ---------- 三、响应式 ---------- */
@media (max-width: 900px) {
  .card {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "body" "foot";
    gap: 0;
    padding: 28px 0;
  }
  .card-foot {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 0 0;
    border-left: none;
    border-top: 1px solid var(--line-2);
  }
  .card-foot .price { width: auto; }
  .card-foot .btn { width: auto; }
  .cat[id^="cat-"] .cat-head h2::before { font-size: 26px; }
  .cat[id^="cat-"] .cat-desc { padding-left: 42px; }
}
@media (max-width: 640px) {
  .card { padding: 24px 0; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .price { width: 100%; }
  .card-foot .btn { width: 100%; }
  .cat[id^="cat-"] .cat-head h2::before { font-size: 20px; }
  .cat[id^="cat-"] .cat-desc { padding-left: 36px; }
}

/* ===========================================================
   方向 E：杂志编辑版（Editorial Grid / Magazine）
   —— 非对称网格 + 通栏深线 + 引文块 + 直角
   保留华图红作为唯一强调色（原方案建议黑白高对比，这里换成"黑+白+华图红"）
   =========================================================== */

/* ---------- 一、Hero：杂志封面式（左标题 / 右数据栏） ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  grid-template-areas:
    "tag   stats"
    "h1    stats"
    "lead  stats";
  column-gap: 54px;
  align-items: start;
  padding: 52px 0 46px;
  background: #fff;
  border: none;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
}
.hero-tag { grid-area: tag; justify-self: start; margin-bottom: 22px; border-radius: 0; }
.hero h1 {
  grid-area: h1;
  padding-left: 0;
  border-left: none;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.6px;
}
.hero-lead { grid-area: lead; margin-top: 20px; max-width: none; font-size: 14px; }

/* 右侧数据栏：竖排 + 左侧细线 */
.hero-stats {
  grid-area: stats;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0 0 0 30px;
  border-top: none;
  border-left: 1px solid var(--line);
}
.hero-stats .stat {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.hero-stats .stat:first-child { border-top: none; padding-top: 4px; }
.hero-stats .stat b { font-size: 34px; letter-spacing: -.8px; }
.hero-stats .stat span { display: block; margin-top: 2px; font-size: 13px; }

/* ---------- 二、章节头：大号编号独占左列 ---------- */
.cat[id^="cat-"] .cat-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ink);
}
.cat[id^="cat-"] .cat-head > * { grid-column: 2; }
.cat[id^="cat-"] .cat-head::before {
  content: counter(cat, cjk-ideographic);
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  font-family: 'FZLanTingDaHei', 'Microsoft YaHei', sans-serif;
  font-size: 34px;
  line-height: 1;
  color: var(--red);
}
.cat[id^="cat-"] .cat-head h2 { display: block; font-size: 26px; line-height: 1.25; }
.cat[id^="cat-"] .cat-head h2::before { content: none; }
.cat[id^="cat-"] .cat-desc { padding-left: 0; margin-top: 10px; }
.cat[id^="cat-"] .cat-tag {
  background: none;
  border: none;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 1.4px;
  padding: 0 0 10px;
  margin-bottom: 0;
}

/* ---------- 三、条目：编辑式（通栏深线 + 大标题 + 大价格） ---------- */
.card {
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 0 54px;
  padding: 38px 0;
  border-top: 1px solid var(--ink);   /* 通栏深线，替代浅灰细线 */
}
.card:last-child { border-bottom: 1px solid var(--ink); }
.card-head h3 { font-size: 26px; line-height: 1.25; letter-spacing: -.3px; }
.card-sub { font-size: 14px; margin-top: 8px; }
.card-foot { padding-left: 30px; }
.price-now, .price-now.large { font-size: 34px; letter-spacing: -.8px; }
.price-old { font-size: 12px; }
.price-split { font-size: 12px; line-height: 1.75; }

/* ---------- 四、块：去掉粉底，改编辑式左红线 ---------- */
.note,
.offer-list,
.highlight,
.offer {
  background: none;
  border: none;
  border-left: 2px solid var(--red);
  border-radius: 0;
  padding: 2px 0 2px 18px;
}
.note { margin-top: 18px; font-size: 14px; line-height: 1.8; }

/* 引文块：用衬线制造与黑体的对比（杂志感的关键） */
.note {
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  font-size: 15px;
}
.offer-list { margin-top: 18px; }
.offer-list .offer-title { margin-bottom: 10px; padding: 0; }
.offer-list .offer-title::before { display: none; }
.offer-list ul { gap: 7px; }
.offer-list li { font-size: 13px; }

.highlight,
.opt {
  border-top: 1px solid var(--line);
  border-left: none;
  border-radius: 0;
  padding: 12px 0;
  margin-bottom: 12px;
}
.highlight { display: flex; gap: 12px; align-items: baseline; }
.opt { border: none; border-top: 1px solid var(--line); padding: 10px 0; }

/* 阶段：细线分隔而非留白 */
.stage { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.stage:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* 特性列表：去掉圆点，改细横线引导 */
.feat li { padding-left: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.feat li::before { display: none; }

/* ---------- 五、直角纪律（编辑风不用圆角） ---------- */
.hero, .card, .adv, .benefit-wrap, .cta, .lead-box,
.highlight, .opt, .offer, .offer-list, .note,
.teachers span, .pill { border-radius: 0; }

/* CTA 与福利区改通栏线风格 */
.cta {
  margin-top: 64px;
  padding: 36px 0;
  background: none;
  border: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.cta-txt h3 { font-size: 26px; }
.benefit-wrap {
  background: none;
  border: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 36px 0;
}

/* 为什么选择华图（深红区）保留，但改直角 */
.adv-section { border-radius: 0; }

/* ---------- 六、响应式 ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "tag" "h1" "lead" "stats";
    column-gap: 0;
    padding: 36px 0 32px;
  }
  .hero h1 { font-size: 26px; }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 26px;
    margin-top: 24px;
    padding: 18px 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .hero-stats .stat { border-top: none; padding: 0; }
  .hero-stats .stat b { font-size: 26px; }
  .cat[id^="cat-"] .cat-head { grid-template-columns: 68px minmax(0, 1fr); }
  .cat[id^="cat-"] .cat-head::before { font-size: 26px; }
  .cat[id^="cat-"] .cat-head h2 { font-size: 20px; }
  .card { grid-template-columns: 1fr; grid-template-areas: "head" "body" "foot"; padding: 30px 0; }
  .card-foot {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 18px 0 0;
    border-left: none;
    border-top: 1px solid var(--ink);
  }
  .card-head h3 { font-size: 20px; }
  .price-now, .price-now.large { font-size: 26px; }
  .cta-txt h3 { font-size: 20px; }
}
@media (max-width: 640px) {
  .cat[id^="cat-"] .cat-head { grid-template-columns: 46px minmax(0, 1fr); }
  .cat[id^="cat-"] .cat-head::before { font-size: 20px; }
  .hero h1 { font-size: 22px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .btn { width: 100%; }
}
