/* ==========================================================================
   自然拼读与词汇 英语学习中心
   与智慧树学习网保持一致的教育清新绿设计系统
   ========================================================================== */

:root {
  --brand-900: #06382a;
  --brand-800: #0a5c40;
  --brand-700: #0c7a52;
  --brand-600: #0f9d63;
  --brand-500: #16b877;
  --brand-400: #3fd08f;
  --brand-100: #e0f7ec;
  --brand-50: #f1fbf6;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --violet-600: #7c3aed;
  --violet-100: #ede9fe;
  --ink-900: #0f1a15;
  --ink-800: #1b2a23;
  --ink-700: #31423a;
  --ink-600: #4c5d54;
  --ink-500: #6c7c74;
  --ink-400: #95a29b;
  --line: #e4e9e4;
  --line-2: #d5ddd6;
  --bg: #f2f6f3;
  --surface: #fff;
  --radius: 14px;
  --shadow-s: 0 1px 2px rgba(15, 26, 21, .04);
  --shadow-m: 0 10px 30px -18px rgba(15, 26, 21, .22);
  --shadow-l: 0 24px 60px -30px rgba(15, 26, 21, .3);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1320px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.35; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
svg { display: block; }
::selection { color: var(--ink-900); background: var(--brand-200, #c2f0da); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.ta-r { text-align: right; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  transform: translateX(-50%);
  color: #fff;
  background: var(--brand-700);
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

/* ---------- 系统顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 26, 21, .02);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--wrap);
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-brand { display: flex; flex: none; align-items: center; }
.site-brand img { display: block; width: 131px; height: 33px; object-fit: contain; }
.topbar-divider { width: 1px; height: 24px; background: var(--line); }
.course-brand { display: flex; flex: none; align-items: center; gap: 9px; color: var(--brand-700); }
.course-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-50); }
.course-brand__mark svg { width: 30px; height: 30px; }
.course-brand > span:last-child { display: flex; flex-direction: column; }
.course-brand b { color: var(--ink-900); font-family: var(--serif); font-size: 15px; line-height: 1.25; }
.course-brand small { color: var(--ink-500); font-size: 10px; line-height: 1.5; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  color: var(--ink-600);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-700); background: var(--brand-100); font-weight: 600; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 25vw);
  height: 38px;
  margin-left: auto;
  padding: 0 11px;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.search:focus-within { background: #fff; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(22, 184, 119, .12); }
.search svg { flex: none; width: 17px; height: 17px; color: var(--ink-400); }
.search input { min-width: 0; flex: 1; color: var(--ink-800); background: transparent; border: 0; outline: 0; font-size: 12.5px; }
.search input::placeholder { color: var(--ink-400); }
.search kbd { padding: 1px 5px; color: var(--ink-400); background: #fff; border: 1px solid var(--line); border-radius: 4px; font: 10px/1.5 var(--sans); white-space: nowrap; }

/* ---------- 页面容器 ---------- */

.shell { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px 68px; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 0; color: var(--ink-500); font-size: 12px; }
.crumb a:hover { color: var(--brand-700); }
.crumb > span[aria-hidden] { color: var(--ink-400); }
.crumb [aria-current] { color: var(--ink-700); }

/* ---------- 课程 Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  align-items: center;
  gap: 38px;
  min-height: 442px;
  padding: 44px 46px;
  overflow: hidden;
  background: linear-gradient(120deg, #edf9f2 0%, #f7fcf8 48%, #fff 100%);
  border: 1px solid #d9eee1;
  border-radius: 18px;
}
.hero::before {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 440px;
  height: 440px;
  content: "";
  background: radial-gradient(circle, rgba(63, 208, 143, .13), transparent 68%);
  border-radius: 50%;
}
.hero::after {
  position: absolute;
  right: 24%;
  bottom: -120px;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px dashed rgba(15, 157, 99, .14);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--brand-700); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.eyebrow > span { width: 7px; height: 7px; background: var(--brand-500); border-radius: 50%; box-shadow: 0 0 0 4px rgba(22, 184, 119, .12); }
.hero h1 { margin-bottom: 17px; font-size: clamp(34px, 3.5vw, 46px); font-weight: 750; line-height: 1.24; letter-spacing: -.035em; }
.hero h1 span { color: var(--brand-700); }
.lede { max-width: 590px; color: var(--ink-600); font-size: 14px; line-height: 1.9; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 17px; color: var(--ink-600); font-size: 12px; }
.hero-tags span { display: inline-flex; align-items: center; gap: 4px; }
.hero-tags svg { width: 15px; height: 15px; color: var(--brand-600); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .16s, border-color .18s, color .18s, background .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); box-shadow: 0 8px 20px -12px rgba(13, 92, 63, .85); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px -10px rgba(13, 92, 63, .7); }
.btn-ghost { color: var(--ink-800); background: #fff; border-color: var(--line-2); }
.btn-ghost:hover { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-400); }
.btn-text { min-height: 38px; padding: 0 6px; color: var(--brand-700); background: transparent; }
.btn-text:hover { color: var(--brand-600); }
.btn-text span { transition: transform .18s; }
.btn-text:hover span { transform: translateX(3px); }
.stats { display: flex; align-items: stretch; gap: 0; margin-top: 29px; }
.stats > div { min-width: 116px; padding: 0 25px; border-left: 1px solid #d8e7de; }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { margin-bottom: 3px; color: var(--ink-500); font-size: 11px; }
.stats dd { color: var(--ink-900); font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.15; }
.stats dd span { margin-left: 4px; color: var(--ink-500); font-family: var(--sans); font-size: 11px; font-weight: 400; }

.hero-art { position: relative; z-index: 1; min-height: 352px; }
.art-orbit { position: absolute; border: 1px dashed rgba(15, 157, 99, .2); border-radius: 50%; }
.art-orbit--one { top: 2%; right: 4%; width: 320px; height: 320px; }
.art-orbit--two { top: 15%; right: 16%; width: 210px; height: 210px; background: rgba(224, 247, 236, .42); }
.preview-card {
  position: absolute;
  top: 22px;
  left: 8%;
  z-index: 2;
  width: 310px;
  overflow: hidden;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #d8e9df;
  border-radius: 16px;
  box-shadow: 0 24px 60px -28px rgba(6, 56, 42, .42);
  transform: rotate(-1.5deg);
}
.preview-card__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; background: #fbfdfb; border-bottom: 1px solid #edf2ee; }
.preview-card__head > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.preview-card__head i { width: 6px; height: 6px; background: var(--brand-500); border-radius: 50%; }
.preview-level { padding: 3px 9px; color: var(--brand-700); background: var(--brand-100); border-radius: 999px; font-size: 10px; }
.preview-card__body { padding: 20px 22px 17px; text-align: center; }
.preview-card__body > p { color: var(--ink-500); font-size: 11px; }
.preview-word { margin-top: 2px; color: var(--ink-900); font-family: var(--serif); font-size: 58px; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.preview-ipa { color: var(--brand-700); font: 15px/1.5 var(--mono); }
.preview-zh { margin-top: 4px; color: var(--ink-500); font-size: 11px; }
.preview-zh span { margin: 0 4px; color: var(--line-2); }
.sound-break { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.sound-break span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--brand-700); background: var(--brand-50); border: 1px solid #d6eee1; border-radius: 9px; font: 600 16px/1 var(--serif); }
.sound-break span:nth-of-type(2) { color: var(--amber-600); background: var(--amber-50); border-color: #f4e5c5; }
.sound-break i { color: var(--ink-400); font-style: normal; font-size: 11px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 25px; margin-top: 14px; }
.wave i { width: 3px; height: 8px; background: var(--brand-300, #8ce4bb); border-radius: 999px; }
.wave i:nth-child(3n) { height: 18px; background: var(--brand-500); }
.wave i:nth-child(4n) { height: 13px; }
.wave i:nth-child(5n) { height: 23px; }
.preview-card__foot { display: flex; align-items: center; gap: 9px; padding: 11px 16px; color: var(--ink-600); background: #f8fbf9; border-top: 1px solid #edf2ee; font-size: 11px; }
.mini-play { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; background: var(--brand-600); border-radius: 50%; }
.mini-play svg { width: 13px; height: 13px; margin-left: 2px; }
.preview-dots { margin-left: auto; color: var(--ink-400); letter-spacing: 2px; }
.floating-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dcebe2; box-shadow: var(--shadow-m); }
.floating-chip--a { top: 4px; right: 0; flex-direction: column; gap: 0; padding: 10px 15px; border-radius: 13px; transform: rotate(5deg); }
.floating-chip--a b { color: var(--brand-700); font: 700 24px/1.1 var(--serif); }
.floating-chip--a span { color: var(--ink-500); font: 11px/1.5 var(--mono); }
.floating-chip--b { bottom: 26px; left: 0; padding: 9px 13px; color: var(--blue-600); border-radius: 999px; font-size: 11px; transform: rotate(2deg); }
.floating-chip--b svg { width: 17px; height: 17px; }
.bear-mascot { position: absolute; right: -2px; bottom: -5px; z-index: 3; width: 112px; height: 118px; transform: rotate(3deg); }

/* ---------- 功能与进度 ---------- */

.feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.feature-item { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-right: 1px solid var(--line); }
.feature-item:last-child { border-right: 0; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; }
.feature-icon svg { width: 20px; height: 20px; }
.feature-icon--green { color: var(--brand-700); background: var(--brand-100); }
.feature-icon--blue { color: var(--blue-600); background: var(--blue-100); }
.feature-icon--amber { color: var(--amber-600); background: var(--amber-100); }
.feature-icon--violet { color: var(--violet-600); background: var(--violet-100); }
.feature-item b { display: block; margin-bottom: 1px; color: var(--ink-800); font-size: 13px; }
.feature-item p { color: var(--ink-500); font-size: 11px; }
.progress-strip { display: flex; align-items: center; gap: 15px; margin-top: 18px; padding: 15px 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.progress-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: var(--brand-700); background: var(--brand-50); border-radius: 10px; }
.progress-icon svg { width: 20px; height: 20px; }
.progress-copy { display: flex; flex: none; flex-direction: column; min-width: 116px; }
.progress-copy b { color: var(--ink-800); font-size: 12px; }
.progress-copy > span { color: var(--ink-500); font-size: 11px; }
.progress-copy strong { color: var(--brand-700); font-family: var(--mono); font-weight: 600; }
.progress-track { height: 7px; flex: 1; overflow: hidden; background: #edf2ee; border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); border-radius: inherit; transition: width .45s ease; }
.progress-percent { min-width: 38px; color: var(--brand-700); font: 600 12px/1 var(--mono); text-align: right; }
.link-btn { padding: 5px 7px; color: var(--ink-500); background: transparent; border: 0; border-radius: 6px; font-size: 11px; }
.link-btn:hover { color: var(--brand-700); background: var(--brand-50); }

/* ---------- 课程路线 ---------- */

.view { padding-top: 38px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-kicker { margin-bottom: 5px; color: var(--brand-600); font: 700 10px/1.4 var(--mono); letter-spacing: .14em; }
.view-head h2 { position: relative; padding-left: 13px; font-size: 23px; letter-spacing: -.02em; }
.view-head h2::before { position: absolute; top: 4px; bottom: 4px; left: 0; width: 4px; content: ""; background: linear-gradient(180deg, var(--brand-400), var(--brand-700)); border-radius: 3px; }
.view-head > div > p:last-child { margin-top: 6px; color: var(--ink-500); font-size: 12px; }
.view-summary { display: flex; align-items: center; gap: 11px; padding-bottom: 3px; color: var(--ink-500); font-size: 11px; white-space: nowrap; }
.view-summary i { width: 3px; height: 3px; background: var(--ink-400); border-radius: 50%; }
.category-tabs { display: flex; gap: 6px; margin-bottom: 24px; padding: 6px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-s); scrollbar-width: thin; }
.category-tab {
  display: flex;
  flex: 1 0 190px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  color: var(--ink-600);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  transition: color .18s, background .18s, border-color .18s, box-shadow .18s;
}
.category-tab:hover { color: var(--stage); background: #f7faf8; }
.category-tab.is-active { color: var(--stage); background: color-mix(in srgb, var(--stage) 8%, #fff); border-color: color-mix(in srgb, var(--stage) 26%, #fff); box-shadow: inset 0 -2px var(--stage); }
.category-tab:focus-visible { outline-offset: 1px; }
.category-tab__no { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--stage); background: color-mix(in srgb, var(--stage) 9%, #fff); border: 1px solid color-mix(in srgb, var(--stage) 20%, #fff); border-radius: 8px; font: 700 10px/1 var(--mono); }
.category-tab.is-active .category-tab__no { color: #fff; background: var(--stage); border-color: var(--stage); }
.category-tab__copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.category-tab__copy small { overflow: hidden; color: var(--stage); font: 700 8px/1.35 var(--mono); letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.category-tab__copy strong { margin-top: 2px; overflow: hidden; color: var(--ink-800); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.category-tab.is-active .category-tab__copy strong { color: var(--stage); }
.category-tab__count { flex: none; color: var(--ink-400); font-size: 10px; white-space: nowrap; }
.category-tab.is-active .category-tab__count { color: var(--stage); }
.roadmap { min-height: 200px; scroll-margin-top: 120px; }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 70px 20px; color: var(--ink-500); font-size: 13px; }
.loading-state > span { width: 18px; height: 18px; border: 2px solid var(--brand-100); border-top-color: var(--brand-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage { --stage: var(--brand-600); --stage-soft: var(--brand-50); --stage-line: #ccebdc; margin-bottom: 34px; scroll-margin-top: 88px; }
.stage[data-stage="S2"] { --stage: var(--amber-600); --stage-soft: var(--amber-50); --stage-line: #f1dfbc; }
.stage[data-stage="S3"] { --stage: var(--blue-600); --stage-soft: var(--blue-50); --stage-line: #d4e2fa; }
.stage[data-stage="S4"] { --stage: var(--violet-600); --stage-soft: #f6f2ff; --stage-line: #e2d8f8; }
.stage[data-stage="S5"] { --stage: #0891b2; --stage-soft: #edfafe; --stage-line: #c9ebf3; }
.stage-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-bottom: 15px; }
.stage-no { display: grid; place-items: center; width: 44px; height: 44px; color: var(--stage); background: var(--stage-soft); border: 1px solid var(--stage-line); border-radius: 12px; font: 700 12px/1 var(--mono); }
.stage-title h2 { font-size: 18px; }
.stage-title p { margin-top: 3px; color: var(--ink-500); font-size: 11.5px; }
.stage-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-500); font-size: 11px; white-space: nowrap; }
.stage-meta b { color: var(--stage); font-family: var(--mono); font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card::before { position: absolute; top: 0; right: 0; left: 0; z-index: 4; height: 3px; content: ""; background: var(--stage); opacity: .78; }
.card:hover { z-index: 1; border-color: var(--stage-line); box-shadow: var(--shadow-m); transform: translateY(-4px); }
.card:focus-within { border-color: var(--stage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stage) 16%, transparent), var(--shadow-m); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:focus-visible { outline: 0; }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stage-soft); border-bottom: 1px solid var(--line); }
.card-media::after { position: absolute; inset: auto 0 0; z-index: 2; height: 42%; content: ""; background: linear-gradient(transparent, rgba(8, 28, 19, .16)); pointer-events: none; }
.card-fallback { position: absolute; top: 50%; left: 50%; color: var(--stage); font: 700 30px/1 var(--serif); opacity: .32; transform: translate(-50%, -50%); }
.card-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-badge { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 5px 8px; color: #fff; background: rgba(15, 26, 21, .74); border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; font: 600 9px/1 var(--mono); letter-spacing: .06em; backdrop-filter: blur(6px); }
.card-play { position: absolute; right: 11px; bottom: 10px; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; color: var(--stage); background: rgba(255, 255, 255, .94); border-radius: 50%; box-shadow: 0 5px 16px rgba(8, 28, 19, .18); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.card-play svg { width: 16px; height: 16px; margin-left: 2px; }
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; transform: none; }
.card-preview { position: absolute; top: 9px; right: 9px; z-index: 5; min-width: 42px; padding: 5px 8px; color: var(--stage); background: rgba(255, 255, 255, .93); border: 1px solid rgba(255, 255, 255, .72); border-radius: 999px; font-size: 10px; font-weight: 600; box-shadow: 0 3px 10px rgba(8, 28, 19, .08); transition: color .18s, background .18s; }
.card-preview:hover { color: #fff; background: var(--stage); }
.card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 13px 14px 14px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-en { min-width: 0; overflow: hidden; color: var(--ink-900); font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.card-done { display: grid; place-items: center; width: 18px; height: 18px; flex: none; color: transparent; border: 1.5px solid var(--line-2); border-radius: 50%; font-size: 10px; }
.card.is-done { border-color: var(--stage-line); }
.card.is-done .card-body { background: linear-gradient(180deg, var(--stage-soft), #fff 72%); }
.card.is-done .card-done { color: #fff; background: var(--stage); border-color: var(--stage); }
.card-zh { margin-top: 3px; color: var(--ink-600); font-size: 12px; }
.card-samples { margin-top: 8px; overflow: hidden; color: var(--ink-400); font: 10.5px/1.5 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.card-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; }
.ipa { display: inline-block; max-width: 90px; overflow: hidden; padding: 2px 7px; color: var(--ink-600); background: #f3f6f3; border-radius: 5px; font: 10.5px/1.5 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.card-count { flex: none; color: var(--ink-500); font-size: 10.5px; }
.card-open { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--stage); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.card-open i { font-style: normal; transition: transform .18s; }
.card:hover .card-open i { transform: translateX(3px); }
.course-empty { padding: 50px 20px; color: var(--ink-500); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; }

/* ---------- 词汇表 ---------- */

.words-head { align-items: flex-start; }
.words-head b { color: var(--ink-800); font-family: var(--mono); }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 680px; }
.chip { padding: 6px 11px; color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; transition: color .18s, background .18s, border-color .18s; }
.chip:hover { color: var(--brand-700); border-color: var(--brand-300, #8ce4bb); }
.chip.is-on { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 15px; color: var(--ink-500); background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; font-size: 11px; }
.table-toolbar strong { color: var(--brand-700); font-family: var(--mono); }
.table-toolbar > span:last-child { display: flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-radius: 50%; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot--slow { background: var(--brand-500); }
.legend-dot--say { background: var(--blue-600); }
.table-wrap { max-height: 690px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-s); scrollbar-color: #c8d5cd transparent; scrollbar-width: thin; }
.wtable { width: 100%; border-collapse: collapse; }
.wtable th { position: sticky; top: 0; z-index: 2; padding: 12px 16px; color: var(--ink-500); background: #f8fbf9; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; text-align: left; letter-spacing: .04em; }
.wtable td { padding: 11px 16px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }
.wtable tbody tr:last-child td { border-bottom: 0; }
.wtable tbody tr { cursor: pointer; transition: background .15s; }
.wtable tbody tr:hover { background: #f7fcf9; }
.w-word { color: var(--ink-900); font-family: var(--serif); font-size: 15px; font-weight: 700; }
.w-ipa { color: var(--ink-500); font: 11.5px/1.5 var(--mono); }
.w-zh { max-width: 520px; color: var(--ink-600); font-size: 12px; }
.w-lesson { color: var(--ink-500); font-size: 11px; white-space: nowrap; }
.play-group { display: flex; justify-content: flex-end; gap: 5px; }
.play-btn { min-width: 45px; padding: 4px 9px; color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; transition: color .15s, background .15s, border-color .15s; }
.play-btn:hover { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-300, #8ce4bb); }
.play-btn.is-playing { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.empty { padding: 60px 20px; color: var(--ink-500); text-align: center; }

/* ---------- 课程预览抽屉 ---------- */

.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8, 28, 19, .38); opacity: 0; backdrop-filter: blur(2px); transition: opacity .24s; }
.backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; z-index: 90; display: flex; flex-direction: column; width: min(520px, 100vw); height: 100dvh; background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-l); transform: translateX(102%); transition: transform .3s cubic-bezier(.22, .7, .25, 1); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 23px 19px; background: linear-gradient(135deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); }
.drawer-title { display: flex; align-items: center; gap: 13px; }
.lesson-no { display: grid; place-items: center; width: 43px; height: 43px; flex: none; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); border-radius: 12px; font: 700 13px/1 var(--mono); box-shadow: 0 8px 18px -10px rgba(12, 122, 82, .7); }
.drawer-title h3 { font-size: 19px; }
.drawer-title p { display: flex; align-items: center; gap: 8px; margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; flex: none; color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: 9px; transition: color .18s, background .18s, border-color .18s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-300, #8ce4bb); }
.drawer-body { flex: 1; padding: 20px 23px 28px; overflow-y: auto; }
.tip { padding: 14px 16px; color: #285f4b; background: #eff9f4; border: 1px solid #d7eee2; border-radius: 10px; font-size: 12.5px; line-height: 1.8; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 23px; }
.btn.is-done { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }
.word-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.word-head h4 { font-size: 12px; }
.word-head h4 span { margin-left: 4px; color: var(--ink-500); font-family: var(--mono); font-size: 10px; font-weight: 400; }
.hint { color: var(--ink-500); font-size: 10px; }
.word-list { margin: 0; padding: 0; list-style: none; }
.wrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1ee; }
.wrow:last-child { border-bottom: 0; }
.wrow-main { min-width: 0; }
.wrow-word { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.wrow-word b { color: var(--ink-900); font-family: var(--serif); font-size: 16px; }
.wrow-zh { margin-top: 2px; color: var(--ink-600); font-size: 11.5px; }
.wrow-empty { color: var(--ink-400); }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 23px; color: var(--ink-500); background: #f9fbf9; border-top: 1px solid var(--line); font-size: 11px; }

/* ---------- 页脚 ---------- */

.site-foot { color: #a9b7af; background: #0c1712; }
.foot-main { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 56px; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 32px; }
.foot-brand__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; color: #fff; font-size: 16px; font-weight: 700; }
.foot-brand__name > span { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); border-radius: 8px; font-size: 13px; }
.foot-brand__name i { color: #60736a; font-style: normal; font-weight: 400; }
.foot-brand p { max-width: 590px; color: #91a299; font-size: 11.5px; line-height: 1.8; }
.foot-main h2 { margin-bottom: 12px; color: #fff; font-size: 12px; }
.foot-main > div:not(:first-child) { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.foot-main a, .foot-main button { padding: 0; color: #91a299; background: transparent; border: 0; font-size: 11.5px; }
.foot-main a:hover, .foot-main button:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; width: calc(100% - 48px); max-width: calc(var(--wrap) - 48px); margin: 0 auto; padding: 15px 0 20px; color: #6f8077; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 10.5px; }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .topbar-inner { gap: 12px; }
  .main-nav { margin-left: 0; }
  .nav-link { padding: 0 9px; }
  .nav-system { display: none; }
  .search { width: min(280px, 30vw); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); padding: 38px; }
  .preview-card { left: 2%; }
  .floating-chip--a { right: -8px; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { max-width: 680px; }
  .hero-art { width: min(500px, 100%); min-height: 340px; margin: 0 auto; }
  .preview-card { left: 12%; }
  .floating-chip--a { right: 7%; }
  .feature-item { padding: 16px; }
  .feature-item p { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .view-head { align-items: flex-start; }
  .view-summary { display: none; }
  .words-head { flex-direction: column; }
  .filter-chips { justify-content: flex-start; max-width: none; }
  .foot-main { gap: 30px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .topbar-inner { flex-wrap: wrap; gap: 9px 12px; height: auto; padding: 10px 16px; }
  .site-brand img { width: 112px; height: 29px; }
  .topbar-divider { display: none; }
  .course-brand { margin-right: auto; }
  .course-brand__mark { width: 32px; height: 32px; }
  .course-brand__mark svg { width: 27px; height: 27px; }
  .course-brand b { font-size: 13px; }
  .course-brand small { font-size: 9px; }
  .main-nav { order: 3; width: 100%; margin: 0; padding: 2px 0; }
  .nav-link { height: 33px; padding: 0 13px; }
  .search { order: 4; width: 100%; margin: 0; }
  .search kbd { display: none; }
  .shell { padding: 0 16px 48px; }
  .crumb { padding: 14px 0; font-size: 11px; }
  .hero { min-height: 0; padding: 29px 23px 24px; border-radius: 15px; }
  .hero h1 { font-size: clamp(29px, 7.5vw, 38px); }
  .lede { font-size: 13px; }
  .hero-tags { gap: 11px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn-primary { flex: 1; }
  .btn-text { width: 100%; }
  .stats { margin-top: 25px; }
  .stats > div { min-width: 0; flex: 1; padding: 0 16px; }
  .stats dd { font-size: 25px; }
  .hero-art { min-height: 320px; }
  .preview-card { top: 14px; left: 7%; width: min(300px, 78vw); }
  .art-orbit--one { width: 280px; height: 280px; }
  .floating-chip--a { right: 0; }
  .bear-mascot { right: -4px; width: 96px; height: 102px; }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-item { padding: 14px; border-bottom: 1px solid var(--line); }
  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(3), .feature-item:nth-child(4) { border-bottom: 0; }
  .feature-item p { display: block; }
  .feature-icon { width: 34px; height: 34px; }
  .feature-item b { font-size: 12px; }
  .feature-item p { font-size: 10px; }
  .progress-strip { flex-wrap: wrap; gap: 10px 12px; padding: 13px 15px; }
  .progress-copy { flex: 1; }
  .progress-track { order: 4; flex-basis: 100%; }
  .progress-percent { min-width: auto; }
  .view { padding-top: 30px; }
  .view-head h2 { font-size: 21px; }
  .category-tabs { gap: 4px; margin-bottom: 20px; padding: 5px; }
  .category-tab { flex: 0 0 156px; gap: 8px; padding: 8px 9px; }
  .category-tab__copy small, .category-tab__count { display: none; }
  .category-tab__copy strong { margin-top: 0; font-size: 11.5px; }
  .category-tab__no { width: 25px; height: 25px; }
  .stage-head { grid-template-columns: 40px minmax(0, 1fr); gap: 11px; }
  .stage-no { width: 40px; height: 40px; }
  .stage-meta { grid-column: 2; margin-top: -5px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 12px; }
  .card-en { font-size: 15.5px; }
  .card-zh { font-size: 11px; }
  .card-preview { top: 8px; right: 8px; }
  .card-badge { top: 8px; left: 8px; }
  .stage { margin-bottom: 29px; scroll-margin-top: 122px; }
  .table-toolbar > span:last-child { display: none; }
  .table-wrap { max-height: 640px; }
  .wtable th, .wtable td { padding: 10px 12px; }
  .w-zh { max-width: 300px; }
  .foot-main { grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 32px 20px 26px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 5px; width: calc(100% - 40px); padding-bottom: 24px; }
}

@media (max-width: 600px) {
  .card-samples, .card-count { display: none; }
  .card-foot { padding-top: 9px; }
  .card-foot .ipa { max-width: 86px; }
  .card-open { font-size: 0; }
  .card-open i { font-size: 14px; }
  .wtable, .wtable tbody { display: block; }
  .wtable thead { display: none; }
  .wtable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 14px; border-bottom: 1px solid var(--line); }
  .wtable td { display: block; padding: 0; border: 0; }
  .wtable td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .wtable td:nth-child(2) { display: none; }
  .wtable td:nth-child(3) { grid-column: 1; grid-row: 2; max-width: none; }
  .wtable td:nth-child(4) { grid-column: 1; grid-row: 3; margin-top: 4px; color: var(--ink-400); font-size: 10px; }
  .wtable td:nth-child(5) { grid-column: 2; grid-row: 1 / 4; }
  .play-group { flex-direction: column; }
  .play-btn { min-width: 48px; }
}

@media (max-width: 420px) {
  .course-brand small { display: none; }
  .hero { padding-right: 18px; padding-left: 18px; }
  .hero h1 { font-size: 28px; }
  .hero-art { min-height: 300px; }
  .preview-card { left: 3%; width: 82vw; }
  .floating-chip--b { bottom: 10px; }
  .bear-mascot { width: 82px; height: 88px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-en { margin-top: 0; }
  .feature-item { gap: 9px; padding: 12px 10px; }
  .feature-item p { display: none; }
  .drawer-head, .drawer-body { padding-right: 17px; padding-left: 17px; }
  .drawer-foot { padding-right: 17px; padding-left: 17px; }
  .word-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .foot-main { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .category-tab { flex-basis: 148px; }
  .cards { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
