/* ============================================================
   车厘子韩语·韩国留学 — 全站设计系统
   风格：专业信赖风（稳重深蓝 + 车厘子红点缀）
   ============================================================ */

:root {
  /* 色彩 */
  --primary: #1f3a5f;        /* 深海军蓝：权威、信赖 */
  --primary-dark: #16293f;
  --primary-light: #2c5079;
  --accent: #b02a37;         /* 车厘子红：品牌记忆点 */
  --accent-dark: #8e1f2f;
  --accent-light: #f7e9ea;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e3e8ef;
  --text: #23303f;
  --text-muted: #5c6b7c;
  --text-light: #8a97a6;
  --success: #2e7d52;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(31, 58, 95, 0.08);
  --shadow-lg: 0 12px 40px rgba(31, 58, 95, 0.14);
  --container: 1160px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--primary);
  flex-shrink: 0;
}
.logo svg { width: auto; height: 38px; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}
/* 品牌三行：中文主标（重） / 韩文（次重） / 英文（承托） */
.logo .brand-ko {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  opacity: 0.9;
  letter-spacing: 0.8px;
  margin-top: 4px;
  white-space: nowrap;
}
.logo .brand-en {
  font-size: 8.5px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-light);
  letter-spacing: 0.7px;
  margin-top: 3px;
  white-space: nowrap;
}
.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 11px;
  font-size: 14.5px;
  white-space: nowrap;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-alt); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; }
.header-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--accent-dark); }

/* ---------- 首屏 Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 42, 55, 0.35), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: #ffb4bb; }
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 34px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat b { font-size: 28px; display: block; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(176, 42, 55, 0.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 区块通用 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--primary); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-muted); }
.card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 14px;
}
.card.placeholder { border-style: dashed; }

/* ---------- 占位图 ---------- */
.ph-img {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e8edf4, #d5dde8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  letter-spacing: 1px;
  aspect-ratio: 4 / 3;
}

/* ---------- 师资/案例卡片 ---------- */
.person-card { text-align: center; }
.person-card .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}
.person-card .role { font-size: 13px; color: var(--accent); margin-bottom: 8px; }

.case-card { display: flex; flex-direction: column; gap: 14px; }
.case-card .result {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.case-card blockquote {
  font-size: 14.5px;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  padding-left: 14px;
}

/* ---------- 流程步骤 ---------- */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 32px 64px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; color: var(--primary); margin-bottom: 6px; }
.steps p { color: var(--text-muted); font-size: 15px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-grid a { display: block; padding: 4px 0; color: rgba(255,255,255,0.65); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}
.footer-bottom .icp-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color .18s ease;
}
.footer-bottom .icp-link:hover { color: rgba(255, 255, 255, 0.8); }

/* ---------- 浮动咨询按钮 ---------- */
.consult-fab {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 200;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(176, 42, 55, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 10.5px;
  transition: transform 0.2s;
}
.consult-fab:hover { transform: scale(1.08); }
.consult-fab svg { width: 24px; height: 24px; }
.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffc53d;
  border: 2px solid #fff;
}

/* ---------- 咨询弹窗 ---------- */
.consult-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 41, 63, 0.55);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.consult-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.consult-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: min(86vh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.consult-head {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.consult-head .title { font-weight: 700; font-size: 16px; }
.consult-head .sub { font-size: 12px; color: rgba(255,255,255,0.7); }
.consult-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.consult-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.consult-tabs button {
  flex: 1;
  padding: 13px;
  background: none;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}
.consult-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.consult-panel {
  display: none;
  overflow-y: auto;
  flex: 1;
}
.consult-panel.active { display: block; }

/* AI 对话 */
.chat-box { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.6;
}
.msg.bot { background: var(--bg-alt); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-suggest button {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
}
.chat-suggest button:hover { border-color: var(--accent); color: var(--accent); }
.chat-inputbar {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.chat-inputbar input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  font-family: var(--font);
}
.chat-inputbar input:focus { border-color: var(--primary); }
.chat-inputbar button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
}

/* 留资表单 */
.lead-form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lead-form label { font-size: 14px; font-weight: 600; color: var(--primary); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: var(--font);
  outline: none;
  background: #fff;
  color: var(--text);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--primary);
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.form-success.show { display: block; }
.form-success .ok {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e8f5ee;
  color: var(--success);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-privacy { font-size: 12px; color: var(--text-light); text-align: center; }

/* 二维码面板 */
.qr-panel { padding: 26px 22px; text-align: center; }
.qr-panel img {
  width: 190px; height: 190px;
  margin: 0 auto 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.qr-panel p { font-size: 14.5px; color: var(--text-muted); }
.qr-panel b { color: var(--primary); }

/* ---------- 页面内页头部 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 10px; font-size: 14px; }
  .logo .brand-ko { font-size: 10px; }
  .logo .brand-en { font-size: 7px; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 20px; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
  }
  /* 三条线绘制菜单图标，避免 ☰ 字符在部分系统缺字 */
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  /* 小屏只保留中文品牌名，避免三语名挤压 */
  .logo .brand-en { display: none; }
}

/* ---------- 滚动进入动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 教学大纲折叠表 ---------- */
.outline { max-width: 880px; margin: 28px auto 0; }
.outline details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
  margin-bottom: 12px;
}
.outline summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 17px 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 15.5px;
}
.outline summary::-webkit-details-marker { display: none; }
.outline summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}
.outline details[open] summary::after { content: "\2212"; }
.outline .outline-meta { font-size: 13px; color: var(--text-light); font-weight: 400; }
.outline-note { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* 待补大纲占位 */
.outline details.is-soon {
  background: transparent;
  border-style: dashed;
  border-color: #d8dfe8;
}
.outline details.is-soon summary { color: var(--text-muted); font-weight: 500; }
.outline details.is-soon summary::after { color: var(--text-light); font-size: 15px; }
.outline details.is-soon[open] { background: var(--bg-alt); }
.soon-tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: .02em;
}
.outline-soon { padding: 2px 0 20px; }
.outline-soon p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-muted);
}
.outline-soon p + p { margin-top: 8px; }

.data-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 14px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
.data-table th { color: var(--text-muted); font-weight: 600; background: var(--bg-alt); font-size: 13px; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { white-space: nowrap; color: var(--text-light); width: 56px; }
.data-table td:nth-child(2) { white-space: nowrap; color: var(--text-light); width: 50px; }

@media (max-width: 600px) {
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 8px 6px; }
  .data-table td:first-child, .data-table td:nth-child(2) { width: auto; }
  .outline details { padding: 0 16px; }
}

/* ============ 教师理念引文 ============ */
.quote-band {
  position: relative;
  max-width: 880px;
  margin: 52px auto 0;
  padding: 38px 46px 34px;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.quote-band::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  line-height: 1;
  color: var(--accent);
  opacity: .18;
}
.quote-band p {
  position: relative;
  font-size: 18.5px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 500;
  letter-spacing: .01em;
}
.quote-band cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 13.5px;
  color: var(--text-light);
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .quote-band { padding: 28px 22px 26px; margin-top: 36px; }
  .quote-band p { font-size: 16px; line-height: 1.75; }
  .quote-band::before { font-size: 52px; top: 2px; left: 8px; }
}

/* ---------- 课程子页导航（吸顶胶囊） ---------- */
.subnav {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.subnav a:hover { color: var(--primary); border-color: var(--primary-light); }
.subnav a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 640px) {
  .subnav a { padding: 7px 14px; font-size: 13.5px; }
}

/* ============ 教材区：主张句 ============ */
.tb-claim {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.65;
  letter-spacing: .01em;
  margin-bottom: 10px;
}
.tb-sub {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ============ 教材区：主打教材大卡 ============ */
.tb-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tb-hero-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
}
.tb-hero-body h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
  font-size: clamp(20px, 2.4vw, 25px);
  color: var(--primary);
  letter-spacing: .01em;
}
.tb-hero-body h3 span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .04em;
}
.tb-hero-body p {
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-muted);
}
.tb-hero-stats {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.tb-hero-stats li {
  padding: 0 22px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.tb-hero-stats li:first-child { border-left: 0; padding-left: 0; }
.tb-hero-stats li:last-child { padding-right: 0; }
.tb-hero-stats b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--accent);
}
.tb-hero-stats span { font-size: 12.5px; color: var(--text-light); }

/* ============ 教材特点四点 ============ */
.tb-why {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px 40px;
  margin-top: 24px;
  padding: 30px 34px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.tb-why-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 8px;
}
.tb-why-head h3 {
  position: relative;
  padding-left: 14px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--primary);
  letter-spacing: .02em;
}
.tb-why-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 34px;
  background: var(--accent);
  border-radius: 2px;
}
.tb-why-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 36px;
}
.tb-why-item h3 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
}
.tb-why-no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  opacity: .85;
}
.tb-why-item p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .tb-hero { grid-template-columns: 1fr; gap: 24px; padding: 26px 24px; }
  .tb-hero-stats li:first-child { padding-left: 0; }
  .tb-hero-stats b { font-size: 28px; }
  .tb-why { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px; }
  .tb-why-head h3 br { display: none; }
}
@media (max-width: 720px) {
  .tb-why-items { grid-template-columns: 1fr; gap: 18px; }
  .tb-why-item p { font-size: 13.5px; }
}

/* ============ 教材墙（原版教材展示） ============ */
.tb-wall { margin-top: 40px; }
.tb-level + .tb-level { margin-top: 36px; }
.tb-level-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.tb-level-head b { font-size: 16px; color: var(--primary); letter-spacing: .02em; }
.tb-level-head span { font-size: 12.5px; color: var(--text-light); }
.tb-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 0;
  padding: 0;
}
.tb-card { text-align: center; }
.tb-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 601;
  object-fit: cover;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 16px rgba(31, 58, 95, .13);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tb-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(31, 58, 95, .2);
}
.tb-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.tb-kr {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-light);
  letter-spacing: .01em;
}
.tb-note {
  margin-top: 28px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-light);
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1024px) {
  .tb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .tb-name { font-size: 12px; }
  .tb-kr { font-size: 10.5px; }
}
@media (max-width: 430px) {
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
