/* ==========================================================
   博闻智前台 · 公共样式（基于 tokens.css）
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body); line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #D6E4FF; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.wide { max-width: var(--container-wide); }
.num { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 顶部工具条 ---------------- */
.topbar {
  background: #F7F9FC; border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-xs); color: var(--text-3);
}
.topbar .container { display: flex; align-items: center; height: 34px; gap: var(--sp-4); }
.topbar .tel { color: var(--text-2); }
.topbar .tel b { color: var(--brand); font-weight: 600; letter-spacing: .3px; }
.topbar .right { margin-left: auto; display: flex; gap: var(--sp-4); }
.topbar a:hover { color: var(--accent); }

/* ---------------- 主导航 ---------------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; height: 72px; gap: var(--sp-7); }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 17px;
  box-shadow: 0 4px 10px rgba(62, 100, 163, .28);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 17px; font-weight: 600; letter-spacing: 2px; color: var(--text-1); }
.logo-sub { font-size: 10px; color: var(--text-4); letter-spacing: 1.6px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a {
  padding: 8px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm);
  color: var(--text-2); transition: var(--t); white-space: nowrap;
}
.nav a:hover { background: var(--bg-tint); color: var(--brand); }
.nav a.active { color: var(--brand); font-weight: 600; background: var(--accent-bg); }
.header .actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text-2); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text-2);
}
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: var(--t); white-space: nowrap;
  background: #fff; color: var(--text-1);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .22); }
.btn-primary:hover { background: #1D4ED8; box-shadow: 0 6px 18px rgba(37, 99, 235, .3); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-line { border-color: var(--line); color: var(--text-2); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.btn-soft { background: var(--accent-bg); color: var(--brand); }
.btn-soft:hover { background: #E1EFFF; }
.btn-lg { height: 48px; padding: 0 26px; font-size: var(--fs-body); border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------------- 通用区块 ---------------- */
.section { padding: var(--sp-9) 0; }
.section.tight { padding: var(--sp-8) 0; }
.section.tint { background: var(--bg); }
.section.hero-bg { background: var(--grad-hero); }

.sec-head { display: flex; align-items: flex-end; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.sec-head .left { min-width: 0; }
.eyebrow {
  font-size: var(--fs-xs); color: var(--accent); letter-spacing: 2px; font-weight: 500;
  text-transform: uppercase; margin-bottom: 8px;
}
.sec-title { font-size: var(--fs-h2); line-height: 1.35; font-weight: 600; letter-spacing: .3px; }
.sec-desc { font-size: var(--fs-sm); color: var(--text-3); margin-top: 8px; max-width: 620px; }
.sec-head .more { margin-left: auto; font-size: var(--fs-sm); color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.sec-head .more:hover { color: var(--accent); }

/* ---------------- 面包屑 ---------------- */
.crumb { font-size: var(--fs-sm); color: var(--text-3); padding: var(--sp-5) 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: #CBD5E1; }
.crumb b { color: var(--text-2); font-weight: 400; }

/* ---------------- 标签 / 徽标 ---------------- */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); background: var(--bg-tint); color: var(--brand);
}
.tag.gray { background: #F1F5F9; color: var(--text-3); }
.tag.line { background: transparent; border: 1px solid var(--line); color: var(--text-3); }

.state { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500; }
.state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state.ok { background: var(--success-bg); color: var(--success); }
.state.warn { background: var(--warning-bg); color: var(--warning); }
.state.hot { background: var(--info-bg); color: var(--info); }
.state.end { background: #F1F5F9; color: var(--text-4); }

/* ---------------- 课程封面占位（不复制原站图片） ---------------- */
.cover {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--grad-brand); display: grid; place-items: center; isolation: isolate;
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 1px, transparent 1px 14px);
}
.cover .ch {
  position: relative; z-index: 1; color: #fff; font-size: 34px; font-weight: 600;
  letter-spacing: 4px; text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.cover.c2 { background: linear-gradient(135deg, #0E7490, #2563EB); }
.cover.c3 { background: linear-gradient(135deg, #166534, #0EA5E9); }
.cover.c4 { background: linear-gradient(135deg, #7C3AED, #3E64A3); }
.cover.c5 { background: linear-gradient(135deg, #B45309, #DC2626); }
.cover .corner {
  position: absolute; top: 10px; left: 10px; z-index: 2; height: 22px; padding: 0 8px;
  background: rgba(255, 255, 255, .92); color: var(--brand); font-size: var(--fs-xs);
  border-radius: var(--r-sm); display: inline-flex; align-items: center; font-weight: 500;
}

/* ---------------- 课程卡（网格） ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: var(--t); display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D6E4FF; }
.course-card .cover { border-radius: 0; }
.course-card .body { padding: var(--sp-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card h3 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.5; }
.course-card h3 a:hover { color: var(--accent); }
.course-card .desc {
  font-size: var(--fs-sm); color: var(--text-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.course-card .foot {
  padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; font-size: var(--fs-sm); color: var(--text-3);
}
.course-card .foot .go { margin-left: auto; color: var(--accent); font-weight: 500; }

/* ---------------- Hero ---------------- */
.hero { background: var(--grad-hero); padding: var(--sp-9) 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.10), transparent 68%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-8); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.28; font-weight: 600; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
  background: rgba(37, 99, 235, .14); border-radius: 4px; z-index: -1;
}
.hero p.sub { font-size: var(--fs-h4); color: var(--text-2); margin-top: var(--sp-5); line-height: 1.8; max-width: 560px; }
.hero .cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero .kpis { display: flex; gap: var(--sp-7); margin-top: var(--sp-8); flex-wrap: wrap; }
.hero .kpi b { font-size: 28px; font-weight: 600; color: var(--brand); letter-spacing: -.5px; }
.hero .kpi span { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

.hero-card {
  background: #fff; border-radius: var(--r-xl); padding: var(--sp-6);
  box-shadow: var(--shadow-lg); border: 1px solid #EAF1FB;
}
.hero-card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.hero-card .hint { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: var(--sp-4); }
.hero-card .row { display: flex; gap: 10px; margin-bottom: 10px; }
.hero-card .row .field { flex: 1; }
.hero-card .pick {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4);
}
.hero-card .pick a {
  font-size: var(--fs-xs); color: var(--text-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 4px 12px; transition: var(--t);
}
.hero-card .pick a:hover, .hero-card .pick a.on { background: var(--accent-bg); border-color: #BFD6FF; color: var(--accent); }

/* ---------------- 业务入口卡 ---------------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.entry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6);
  transition: var(--t); position: relative; overflow: hidden;
}
.entry:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.entry .ico {
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-bg);
  display: grid; place-items: center; color: var(--brand); font-size: 20px; margin-bottom: var(--sp-4);
}
.entry h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
.entry p { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.7; }
.entry .more { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--accent); display: inline-flex; gap: 4px; }

/* ---------------- 班期表 ---------------- */
.sess-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.sess-table { width: 100%; border-collapse: collapse; }
.sess-table thead th {
  background: #F8FAFC; font-size: var(--fs-xs); font-weight: 500; color: var(--text-3);
  text-align: left; padding: 12px var(--sp-4); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.sess-table td { padding: 14px var(--sp-4); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.sess-table tr:last-child td { border-bottom: none; }
.sess-table tbody tr:hover { background: #FBFCFF; }
.sess-table .t { font-weight: 500; color: var(--text-1); font-size: var(--fs-sm); }
.sess-table .t:hover { color: var(--accent); }
.sess-table .sub { font-size: var(--fs-xs); color: var(--text-4); margin-top: 2px; }
.sess-table .price { font-weight: 600; color: var(--danger); font-family: "SF Mono", ui-monospace, monospace; }
.sess-table .price small { font-weight: 400; font-size: 11px; color: var(--text-4); margin-left: 2px; }
.sess-table .addr { color: var(--text-3); font-size: var(--fs-xs); }

/* ---------------- 讲师卡 ---------------- */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.teacher {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: var(--t);
}
.teacher:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.teacher .ph {
  aspect-ratio: 3 / 4; background: linear-gradient(160deg, #E8EFF9, #D7E3F5);
  display: grid; place-items: center; position: relative;
}
.teacher .ph .initial {
  width: 78px; height: 78px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 30px; font-weight: 500; letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(62, 100, 163, .25);
}
.teacher .ph .rec {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.9); color: var(--warning);
  font-size: 11px; padding: 2px 8px; border-radius: var(--r-pill);
}
.teacher .body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.teacher h3 { font-size: var(--fs-h4); font-weight: 600; }
.teacher .role { font-size: var(--fs-xs); color: var(--text-3); margin-top: 4px; line-height: 1.6; min-height: 34px; }
.teacher .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------------- CTA 条 ---------------- */
.cta-band { background: var(--grad-brand); border-radius: var(--r-lg); padding: var(--sp-8); color: #fff; display: flex; align-items: center; gap: var(--sp-6); }
.cta-band h2 { font-size: var(--fs-h3); font-weight: 600; }
.cta-band p { font-size: var(--fs-sm); color: rgba(255,255,255,.78); margin-top: 6px; }
.cta-band .btn { margin-left: auto; background: #fff; color: var(--brand); }
.cta-band .btn:hover { background: #F0F7FF; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--brand-dark); color: #C6D3E4; padding: var(--sp-8) 0 var(--sp-6); font-size: var(--fs-sm); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-7); }
.footer h4 { color: #fff; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-4); letter-spacing: .5px; }
.footer a { color: #AFC2D8; display: block; padding: 5px 0; font-size: var(--fs-xs); }
.footer a:hover { color: #fff; }
.footer .desc { font-size: var(--fs-xs); color: #93A9C2; line-height: 1.9; margin-top: var(--sp-4); }
.footer .logo-name { color: #fff; }
.footer .logo-sub { color: #7E96B3; }
.footer .btm {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-xs); color: #7E96B3;
}
.footer .btm .right { margin-left: auto; display: flex; gap: var(--sp-4); }

/* ==========================================================
   列表页
   ========================================================== */
.page-head { padding: var(--sp-6) 0 var(--sp-6); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: .3px; }
.page-head .lead { font-size: var(--fs-sm); color: var(--text-3); margin-top: 8px; max-width: 720px; }
.page-head .count { font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--sp-4); }
.page-head .count b { color: var(--brand); font-weight: 600; }

.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-7); padding: var(--sp-7) 0 var(--sp-9); align-items: start; }

.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--sp-4); }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.filter-card .hd {
  padding: 12px var(--sp-4); font-size: var(--fs-sm); font-weight: 600;
  border-bottom: 1px solid var(--line-soft); background: #FBFCFE; display: flex; align-items: center;
}
.filter-card .hd .clr { margin-left: auto; font-size: var(--fs-xs); color: var(--text-4); font-weight: 400; cursor: pointer; }
.filter-card .hd .clr:hover { color: var(--accent); }
.filter-card .bd { padding: var(--sp-2) 0; }
.f-item {
  display: flex; align-items: center; gap: 8px; padding: 8px var(--sp-4);
  font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; transition: var(--t);
}
.f-item:hover { background: var(--bg-tint); color: var(--brand); }
.f-item.on { color: var(--accent); font-weight: 500; background: var(--accent-bg); }
.f-item .n { margin-left: auto; font-size: var(--fs-xs); color: var(--text-4); }
.f-item.child { padding-left: 30px; font-size: var(--fs-xs); }
.f-item .box {
  width: 14px; height: 14px; border: 1px solid #CBD5E1; border-radius: 3px; flex: 0 0 14px;
}
.f-item.on .box { background: var(--accent); border-color: var(--accent); position: relative; }
.f-item.on .box::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

.list-main { min-width: 0; }
.list-toolbar {
  display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.list-toolbar .sorts { display: flex; gap: var(--sp-1); }
.list-toolbar .sorts a {
  font-size: var(--fs-sm); color: var(--text-2); padding: 6px 12px; border-radius: var(--r-sm);
}
.list-toolbar .sorts a.on { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.list-toolbar .sorts a:hover { color: var(--accent); }
.list-toolbar .found { font-size: var(--fs-xs); color: var(--text-3); }
.list-toolbar .search { margin-left: auto; position: relative; }
.list-toolbar .search input {
  height: 38px; width: 230px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 12px 0 34px; font-size: var(--fs-sm); background: #fff; outline: none; transition: var(--t);
}
.list-toolbar .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.list-toolbar .search::before { content: "⌕"; position: absolute; left: 12px; top: 7px; color: var(--text-4); font-size: 15px; }

.row-card {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-5); padding: var(--sp-5);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: var(--t);
}
.row-card + .row-card { margin-top: var(--sp-4); }
.row-card:hover { border-color: #D6E4FF; box-shadow: var(--shadow-sm); }
.row-card .cover { aspect-ratio: 16 / 10; }
.row-card h3 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.5; }
.row-card h3 a:hover { color: var(--accent); }
.row-card .desc {
  font-size: var(--fs-sm); color: var(--text-3); margin-top: 8px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); align-items: center; }
.row-card .meta .dot { color: #CBD5E1; font-size: 10px; }
.row-card .meta .k { font-size: var(--fs-xs); color: var(--text-3); }
.row-card .bottom { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.row-card .bottom .who { font-size: var(--fs-xs); color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.row-card .bottom .who i {
  width: 22px; height: 22px; border-radius: 50%; background: var(--bg-tint); color: var(--brand);
  display: grid; place-items: center; font-style: normal; font-size: 11px;
}
.row-card .bottom .btn { margin-left: auto; }

.pagination { display: flex; align-items: center; gap: 6px; margin-top: var(--sp-7); font-size: var(--fs-sm); }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); background: #fff;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .info { border: none; color: var(--text-3); font-size: var(--fs-xs); margin-left: auto; }

/* ==========================================================
   详情页
   ========================================================== */
.detail-head { background: var(--grad-hero); padding: var(--sp-7) 0 var(--sp-8); border-bottom: 1px solid var(--line); }
.detail-head .inner { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-8); align-items: start; }
.detail-head h1 { font-size: var(--fs-h1); line-height: 1.4; font-weight: 600; letter-spacing: .3px; }
.detail-head .lead { font-size: var(--fs-body); color: var(--text-2); margin-top: var(--sp-4); line-height: 1.8; }
.detail-head .tags { display: flex; gap: 8px; margin-bottom: var(--sp-4); flex-wrap: wrap; }
.detail-head .facts {
  display: flex; flex-wrap: wrap; gap: var(--sp-7); margin-top: var(--sp-6);
  padding-top: var(--sp-5); border-top: 1px solid rgba(62,100,163,.14);
}
.detail-head .facts .f .k { font-size: var(--fs-xs); color: var(--text-3); }
.detail-head .facts .f .v { font-size: var(--fs-sm); font-weight: 500; margin-top: 2px; }
.detail-head .side-card {
  background: #fff; border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-md);
  border: 1px solid #EAF1FB;
}
.detail-head .side-card .price { font-size: var(--fs-xs); color: var(--text-3); }
.detail-head .side-card .big { font-size: 30px; font-weight: 600; color: var(--danger); font-family: "SF Mono", ui-monospace, monospace; }
.detail-head .side-card .big small { font-size: var(--fs-sm); font-weight: 400; color: var(--text-3); margin-left: 4px; font-family: inherit; }
.detail-head .side-card .note { font-size: var(--fs-xs); color: var(--text-4); margin: 6px 0 var(--sp-4); }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-8); padding: var(--sp-8) 0 var(--sp-9); align-items: start; }
.prose { min-width: 0; }
.prose section + section { margin-top: var(--sp-8); }
.prose h2 {
  font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--sp-4);
  padding-left: 12px; border-left: 3px solid var(--brand); line-height: 1.4;
}
.prose p { font-size: var(--fs-body); color: var(--text-2); line-height: 1.95; margin-bottom: var(--sp-4); }
.prose p:last-child { margin-bottom: 0; }

.gain-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-5); }
.gain {
  display: flex; gap: 10px; padding: var(--sp-4); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.7;
}
.gain i {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--success-bg);
  color: var(--success); display: grid; place-items: center; font-style: normal; font-size: 11px; margin-top: 2px;
}

.outline { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.mod { border-bottom: 1px solid var(--line-soft); }
.mod:last-child { border-bottom: none; }
.mod-hd {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5);
  background: #FBFCFE; cursor: pointer;
}
.mod-hd .idx {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent-bg); color: var(--brand);
  display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; flex: 0 0 26px;
}
.mod-hd h3 { font-size: var(--fs-sm); font-weight: 600; }
.mod-hd .time { margin-left: auto; font-size: var(--fs-xs); color: var(--text-4); }
.mod-bd { padding: var(--sp-3) var(--sp-5) var(--sp-4) 62px; }
.mod-bd li {
  position: relative; padding-left: 16px; font-size: var(--fs-sm); color: var(--text-2);
  line-height: 1.9;
}
.mod-bd li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 4px; height: 4px;
  border-radius: 50%; background: #C4D2E6;
}

.detail-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--sp-4); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.panel .hd { padding: 12px var(--sp-5); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); font-weight: 600; background: #FBFCFE; }
.panel .bd { padding: var(--sp-4) var(--sp-5) var(--sp-5); }

.form-field { margin-bottom: var(--sp-3); }
.form-field label { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 6px; }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 12px; font-size: var(--fs-sm); background: #fff; outline: none; transition: var(--t);
}
.form-field textarea { height: 78px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-4); }
.form-tip { font-size: 11px; color: var(--text-4); margin-top: 8px; text-align: center; }

.teacher-brief { display: flex; gap: var(--sp-3); align-items: flex-start; }
.teacher-brief .av {
  width: 52px; height: 52px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 20px; flex: 0 0 52px;
}
.teacher-brief h4 { font-size: var(--fs-sm); font-weight: 600; }
.teacher-brief p { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; margin-top: 2px; }

.rel-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.rel-item:last-child { border-bottom: none; }
.rel-item .ico {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent-bg); color: var(--brand);
  display: grid; place-items: center; font-size: var(--fs-xs); flex: 0 0 34px;
}
.rel-item .t { font-size: var(--fs-sm); line-height: 1.5; }
.rel-item:hover .t { color: var(--accent); }
.rel-item .s { font-size: var(--fs-xs); color: var(--text-4); margin-top: 2px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .container { grid-template-columns: 1fr 380px; gap: var(--sp-7); }
}
@media (max-width: 1024px) {
  :root { --fs-display: 30px; --fs-h1: 26px; --fs-h2: 22px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .list-layout { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .filter-card { flex: 1 1 220px; }
  .detail-head .inner, .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; --fs-display: 26px; --fs-h1: 22px; --fs-h2: 20px; --fs-h3: 18px; }
  .topbar { display: none; }
  .header .container { height: 60px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: var(--sp-3) var(--gutter) var(--sp-4); gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: var(--fs-body); }
  .nav-toggle { display: flex; }
  .header .actions .btn { display: none; }
  .course-grid, .teacher-grid { grid-template-columns: 1fr; }
  .row-card { grid-template-columns: 1fr; }
  .row-card .cover { aspect-ratio: 16 / 8; }
  .gain-list { grid-template-columns: 1fr; }
  .detail-head .facts { gap: var(--sp-5); }
  .sess-table thead { display: none; }
  .sess-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
  .sess-table td { border: none; padding: 0; }
  .sess-table td:nth-child(1) { grid-column: 1 / -1; }
  .sess-table td:nth-child(2) { grid-column: 1 / -1; }
  .sess-table td:nth-child(3) { grid-column: 1 / -1; }
  .sess-table td:nth-child(5) { text-align: right; }
  .sess-table td:nth-child(6) { text-align: right; grid-column: 2; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: var(--sp-6); }
  .cta-band .btn { margin-left: 0; }
  .footer .cols { grid-template-columns: 1fr; gap: var(--sp-5); }
  .pagination { flex-wrap: wrap; }
  .pagination .info { width: 100%; margin-left: 0; }
  .list-toolbar .search { width: 100%; margin-left: 0; }
  .list-toolbar .search input { width: 100%; }
}

/* ==========================================================
   咨询入口：电话 + 微信二维码
   本站不做留资表单，客户直接打电话或扫码加微信
   ========================================================== */

/* 二维码容器（内含 SVG 或将来替换的 img） */
.qr-box {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; line-height: 0; flex: 0 0 auto;
}
.qr-box svg, .qr-box img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* 电话 —— 大字版 */
.tel-big { display: block; text-align: center; padding: var(--sp-4) 0 var(--sp-3); }
.tel-big .lab { display: block; font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 1px; }
.tel-big .num {
  display: block; font-size: 25px; font-weight: 600; color: var(--brand);
  letter-spacing: .5px; margin-top: 2px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums;
}
.tel-big .time { display: block; font-size: var(--fs-xs); color: var(--text-4); margin-top: 4px; }
.tel-big:hover .num { color: var(--accent); }

/* 电话 + 二维码 横向组合 */
.qr-row { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-4) 0; border-top: 1px dashed var(--line); }
.qr-row .txt b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.qr-row .txt span { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; margin-top: 3px; }

/* 首页 Hero 咨询卡 */
.contact-card { display: flex; flex-direction: column; }
.contact-card .cc-eyebrow {
  font-size: var(--fs-xs); color: var(--accent); letter-spacing: 1.5px; font-weight: 500;
  text-transform: uppercase; margin-bottom: var(--sp-2);
}
.contact-card .cc-card-title { font-size: var(--fs-h4); font-weight: 600; margin-bottom: var(--sp-4); }
.contact-card .cc-tel {
  display: block; background: var(--bg-tint); border: 1px solid #E3EBF7;
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); transition: var(--t);
}
.contact-card .cc-tel:hover { border-color: #BFD6FF; background: var(--accent-bg); }
.contact-card .cc-tel .lab { display: block; font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .5px; }
.contact-card .cc-tel .num {
  display: block; font-size: 28px; font-weight: 600; color: var(--brand); letter-spacing: .5px; line-height: 1.3;
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums;
}
.contact-card .cc-tel .time { display: block; font-size: var(--fs-xs); color: var(--text-4); margin-top: 2px; }
.contact-card .cc-qr {
  display: flex; gap: var(--sp-4); align-items: center;
  margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px dashed var(--line);
}
.contact-card .cc-qr .txt b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.contact-card .cc-qr .txt span { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.75; margin-top: 3px; }
.contact-card .cc-note {
  margin-top: var(--sp-4); font-size: 11.5px; color: var(--text-4); line-height: 1.7;
  background: #F7F9FC; border-radius: var(--r-sm); padding: 8px 10px;
}

/* CTA 条右侧两个入口 */
.cta-band .ways { margin-left: auto; display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.cta-band .ways .btn { margin-left: 0; }
.cta-band .ways .btn-qr { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.cta-band .ways .btn-qr:hover { background: rgba(255,255,255,.14); }

/* 列表页底部「找不到合适的课」电话条 */
.tel-bar {
  margin-top: var(--sp-6); background: var(--bg-tint); border: 1px solid #E3EBF7;
  border-radius: var(--r-md); padding: var(--sp-5); display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
}
.tel-bar .t { font-size: var(--fs-sm); font-weight: 600; }
.tel-bar .s { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.tel-bar .ways { margin-left: auto; display: flex; gap: var(--sp-3); align-items: center; }
.tel-bar .ways .num {
  font-size: 20px; font-weight: 600; color: var(--brand); letter-spacing: .5px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums;
}
.tel-bar .ways .num:hover { color: var(--accent); }

/* 页脚联系区 */
.footer .foot-tel {
  display: block; font-size: 20px; font-weight: 600; color: #fff; letter-spacing: .5px; padding: 2px 0 4px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums;
}
.footer .foot-tel:hover { color: #fff; }
.footer .foot-qr { display: flex; gap: 10px; align-items: center; margin-top: var(--sp-3); }
.footer .foot-qr .qr-box { width: 66px; padding: 3px; background: #fff; border-color: transparent; }
.footer .foot-qr .txt { font-size: 11.5px; color: #AFC2D8; line-height: 1.6; }
.footer .foot-qr .txt b { display: block; color: #fff; font-weight: 500; }

/* 移动端吸底咨询条 */
.mobile-bar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 62px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,23,42,.06);
  }
  .mobile-bar .btn { flex: 1; height: 44px; font-size: var(--fs-sm); }
  .mobile-bar .btn-tel { flex: 1.4; }
  .header .actions .btn { display: none; }
  .header .actions .btn-tel { display: inline-flex; height: 34px; padding: 0 12px; font-size: var(--fs-xs); }
  .cta-band .ways { margin-left: 0; width: 100%; }
  .cta-band .ways .btn { flex: 1; }
  .tel-bar .ways { margin-left: 0; width: 100%; justify-content: space-between; }
  .contact-card .cc-tel .num { font-size: 25px; }
}

/* 二维码浮层 */
.qr-pop { position: fixed; inset: 0; z-index: 120; display: none; }
.qr-pop.open { display: block; }
.qr-pop-mask { position: absolute; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); animation: qrFade .16s ease; }
@keyframes qrFade { from { opacity: 0; } }
.qr-pop-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-6) var(--sp-5);
  width: 296px; max-width: calc(100vw - 40px); text-align: center;
  box-shadow: 0 24px 60px rgba(10,16,28,.3); animation: qrPop .18s ease;
}
@keyframes qrPop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.qr-pop-x {
  position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border: none; background: transparent;
  font-size: 20px; line-height: 1; color: var(--text-4); cursor: pointer; border-radius: 6px;
}
.qr-pop-x:hover { background: #F1F5F9; color: var(--text-2); }
.qr-pop-qr { display: flex; justify-content: center; margin-bottom: var(--sp-4); }
.qr-pop-title { display: block; font-size: var(--fs-h4); font-weight: 600; }
.qr-pop-desc { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.75; margin-top: 6px; }
.qr-pop-tel {
  display: inline-block; margin-top: var(--sp-4); font-size: 19px; font-weight: 600; color: var(--brand);
  letter-spacing: .5px; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums;
}
.qr-pop-tel:hover { color: var(--accent); }
.qr-pop-time { display: block; font-size: 11px; color: var(--text-4); margin-top: 3px; }
body.qr-lock { overflow: hidden; }

/* 小屏电话按钮双文案 */
.header .actions .btn-tel .tel-short { display: none; }
@media (max-width: 768px) {
  .header .actions .btn-tel .tel-full { display: none; }
  .header .actions .btn-tel .tel-short { display: inline; }
  .header .actions .btn-tel { padding: 0 14px; font-size: var(--fs-sm); }
}

/* ============ 服务端版本补充 ============ */
.qr-img { width: 104px; height: 104px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line, #E5E8EF); }
.cc-qr .qr-img { width: 104px; height: 104px; }
.qr-row .qr-img { width: 86px; height: 86px; flex: 0 0 86px; }
.foot-qr .qr-img { width: 66px; height: 66px; border-radius: 8px; }
@media (max-width: 640px) {
  .qr-row .qr-img { width: 74px; height: 74px; flex-basis: 74px; }
}
