/* ===== [EnyaQ] · Learn Chinese ===== */
:root {
  --cream: #FDFBF7;
  --cream-dark: #F5F0E8;
  --latte: #EDE6D8;
  --sage: #7BA7A6;
  --sage-dark: #5E8E8D;
  --clay: #C17C5F;
  --clay-dark: #A5674D;
  --sky: #A8C8C8;
  --blush: #D9B4A9;
  --charcoal: #3D3D3D;
  --gray-600: #5E5E5E;
  --gray-500: #7A7A7A;
  --gray-300: #CFC9BE;
  --white: #FFFFFF;
  --shadow-soft: 0 4px 24px rgba(61, 61, 61, 0.06);
  --shadow-medium: 0 8px 40px rgba(61, 61, 61, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font-main: 'Inter', 'Noto Sans SC', sans-serif;
  --font-serif: 'Noto Serif SC', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 720px; }

.section { padding: 90px 0; }
.section-cream { background: var(--cream-dark); }
.section-sage { background: var(--sage); color: var(--white); }
.section-alt { background: var(--cream-dark); }

.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-header.light .section-title,
.section-sage .section-title { color: var(--white); }
.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 600px;
}
.section-header.light .section-subtitle,
.section-sage .section-subtitle { color: rgba(255,255,255,0.85); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(123, 167, 166, 0.35);
}
.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(123, 167, 166, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: var(--shadow-soft);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--charcoal); }
.btn-block { width: 100%; }

/* ===== Teacher Team strip（教学团队 + 新老师占位） ===== */
.team-strip {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
}
.team-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.team-strip-head h3 { margin: 0; font-size: 16px; }
.team-strip-note { font-size: 12px; color: var(--gray-400); }
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  position: relative;
}
.team-card-main { background: linear-gradient(135deg, #f6f4ec, #fdfbf7); }
.team-card-placeholder {
  border: 1.5px dashed var(--gray-300);
  background: transparent;
  opacity: 0.85;
}
.team-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.team-avatar-plus {
  background: transparent;
  border: 1.5px dashed var(--gray-300);
  color: var(--gray-400);
  font-size: 22px;
}
.team-info { min-width: 0; }
.team-name { font-weight: 600; font-size: 14px; color: var(--charcoal); }
.team-role { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.team-meta { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.team-badge {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 10px;
  background: var(--sage);
  color: var(--white);
  border-radius: 100px;
  padding: 2px 8px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.logo-en {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.5px;
}
.logo-tag {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-cta {
  display: inline-flex;
  padding: 10px 20px;
  background: var(--clay);
  color: var(--white);
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--clay-dark); transform: translateY(-1px); }

/* ---- Nav dropdown menus（分类下拉） ---- */
.nav-dd { position: relative; }
.nav-dd-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: color 0.2s;
}
.nav-dd-label svg { transition: transform 0.25s; opacity: 0.55; }
.nav-dd-label:hover, .nav-dd.dd-open .nav-dd-label { color: var(--sage-dark); }
.nav-dd.dd-open .nav-dd-label svg, .nav-dd:hover .nav-dd-label svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
  padding: 8px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 1200;
}
.nav-dd-menu::before {
  content: '';
  position: absolute;
  top: -6px; left: 0; right: 0;
  height: 6px;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd.dd-open .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--cream); color: var(--sage-dark); }
.nav-dd-menu .ndd-icon { font-size: 17px; }
.nav-dd-menu .ndd-zh {
  font-size: 12px;
  color: var(--gray-400);
  min-width: 2.4em;
}
.nav-dd-menu a:hover .ndd-zh { color: var(--gray-500); }
.nav-quiz-link {
  color: var(--clay) !important;
  font-weight: 600 !important;
}

.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-medium);
  padding: 8px;
  min-width: 150px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.lang-dropdown.open { display: flex; }
.lang-dropdown button {
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: var(--charcoal);
}
.lang-dropdown button:hover { background: var(--cream-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero-enyaq {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #FDFBF7 0%, #F5F0E8 50%, #E8F0F0 100%);
}
.hero-bg-soft {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(123, 167, 166, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(193, 124, 95, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 20%, rgba(168, 200, 200, 0.15) 0%, transparent 35%);
}
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.blob-1 {
  width: 420px; height: 420px;
  background: var(--sky);
  top: 10%; right: -100px;
}
.blob-2 {
  width: 320px; height: 320px;
  background: var(--blush);
  bottom: 15%; left: -80px;
}
.blob-3 {
  width: 260px; height: 260px;
  background: var(--sage);
  top: 45%; right: 25%;
  opacity: 0.2;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  padding: 8px 16px;
  background: rgba(123, 167, 166, 0.12);
  color: var(--sage-dark);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero-title-accent {
  display: block;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-style: italic;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stats .stat { text-align: left; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
}
.stat-label {
  font-size: 13px;
  color: var(--gray-500);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo-frame {
  position: relative;
  width: 380px;
  height: 380px;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-medium);
  position: relative;
  z-index: 2;
}
.photo-ring {
  position: absolute;
  inset: -20px;
  border: 2px dashed var(--sage);
  border-radius: 50%;
  opacity: 0.4;
  animation: rotateRing 30s linear infinite;
}
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  z-index: 3;
}
.floating-tag span { font-size: 18px; }
.tag-1 { top: 30px; left: -20px; }
.tag-2 { bottom: 50px; right: -30px; }

/* ===== Highlights ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.highlight-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  text-align: center;
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}
.highlight-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--cream-dark);
  border-radius: 50%;
}
.highlight-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.highlight-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Level Test Section ===== */
.section-test {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
.section-test-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(123, 167, 166, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(193, 124, 95, 0.15) 0%, transparent 40%);
}
.section-test .container { position: relative; }
.section-test .section-title { color: var(--white); }
.section-test .section-subtitle { color: rgba(255,255,255,0.7); }
.test-intro { text-align: center; margin-bottom: 40px; }
.level-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.level-pill {
  padding: 10px 20px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-radius: 100px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.level-pill:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.level-pill.active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.quiz-level-pills .level-pill {
  border-color: var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
}
.quiz-level-pills .level-pill:hover { background: var(--cream-dark); }
.quiz-level-pills .level-pill.active { background: var(--sage); border-color: var(--sage); color: var(--white); }

.test-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-medium);
}
.test-question {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 28px;
  min-height: 60px;
}
.test-question .q-hint {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
  font-weight: 400;
}
.test-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.test-option {
  padding: 16px 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
  background: var(--cream);
  color: var(--charcoal);
}
.test-option:hover {
  border-color: var(--sage);
  background: rgba(123, 167, 166, 0.05);
}
.test-option.selected {
  border-color: var(--sage);
  background: rgba(123, 167, 166, 0.1);
}
.test-option.correct {
  border-color: #5E9B7C;
  background: rgba(94, 155, 124, 0.1);
}
.test-option.wrong {
  border-color: var(--clay);
  background: rgba(193, 124, 95, 0.1);
}
.test-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
}
#homeTestProgress {
  font-size: 14px;
  color: var(--gray-500);
}

/* ===== Quiz Page ===== */
.quiz-header {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
  padding: 110px 0 40px;
}
.quiz-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-300);
  border-radius: 100px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--sage);
  width: 10%;
  transition: width 0.3s ease;
}
.quiz-step-count {
  font-size: 14px;
  color: var(--gray-500);
  min-width: 48px;
  text-align: right;
}
.quiz-content {
  max-width: 720px;
  margin: 40px auto 80px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.q-src { display:inline-block; font-size:11px; letter-spacing:.06em; padding:2px 10px; border-radius:999px; background:var(--gray-200); color:var(--gray-600); margin-right:8px; vertical-align:middle; }
.q-src-official { background:#EDF7F1; color:#2E6B4F; font-weight:600; }
.q-listen-head { display:block; margin-top:6px; font-weight:600; color:var(--charcoal); }
.listen-bar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:16px 0 4px; padding:14px 16px; background:#F4F7F3; border:1px dashed var(--sage); border-radius:12px; }
.listen-script-toggle { border:0; background:none; color:var(--sage-dark); font-weight:600; font-size:13px; cursor:pointer; text-decoration:underline; }
.listen-note { font-size:12px; color:var(--gray-500); }
.listen-script { margin:10px 0 4px; padding:12px 16px; background:#FAF6EF; border-left:3px solid var(--sage); border-radius:0 10px 10px 0; font-size:15px; line-height:2; color:var(--charcoal); }
.quiz-question-text.q-long { font-size: 16.5px; line-height: 2; font-weight: 400; }
.quiz-question-text.q-long .q-src { font-size: 12px; }
.quiz-question-text {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--charcoal); /* v21: 防止在 .section-test（深底白字）里继承白色变不可见 */
}
.quiz-question-hint {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 10px;
  font-weight: 400;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.quiz-option {
  padding: 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  background: var(--cream);
  color: var(--charcoal); /* v21: 同上，选项文字在浅色卡片上必须深色 */
}
.quiz-option:hover { border-color: var(--sage); background: rgba(123, 167, 166, 0.05); }
.quiz-option.selected { border-color: var(--sage); background: rgba(123, 167, 166, 0.12); }
.quiz-option.correct { border-color: #5E9B7C; background: rgba(94, 155, 124, 0.12); font-weight: 600; }
.quiz-option.wrong { border-color: var(--clay); background: rgba(193, 124, 95, 0.12); }
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dark);
}
.quiz-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.quiz-feedback.correct { background: rgba(94, 155, 124, 0.1); color: #3D7A5E; }
.quiz-feedback.wrong { background: rgba(193, 124, 95, 0.1); color: var(--clay-dark); }

.results-card {
  max-width: 680px;
  margin: 100px auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow-medium);
}
.results-celebration { font-size: 56px; margin-bottom: 16px; }
.results-score {
  font-size: 64px;
  font-weight: 700;
  color: var(--sage-dark);
  margin: 16px 0 8px;
}
.results-level {
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.results-desc { color: var(--gray-500); margin-bottom: 28px; }
.results-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}
.results-cta { display: flex; gap: 16px; justify-content: center; }

/* ===== Promo Banner ===== */
.section-promo { background: var(--cream); }
.promo-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  background: linear-gradient(135deg, #F8F4ED 0%, #EDF3F2 100%);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-soft);
  align-items: center;
}
.promo-label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--clay);
  color: var(--white);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.promo-content h3 {
  font-size: 30px;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.promo-content > p {
  color: var(--gray-500);
  margin-bottom: 20px;
}
.promo-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.promo-features li {
  font-size: 14px;
  color: var(--gray-600);
}
.promo-actions { display: flex; gap: 14px; }
.promo-visual { position: relative; height: 320px; }
.promo-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.promo-img {
  position: absolute;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
}
.promo-img-1 {
  width: 70%; height: 70%;
  top: 0; right: 0;
  background-image: linear-gradient(135deg, rgba(123, 167, 166, 0.3), rgba(123, 167, 166, 0.1)), url('https://images.unsplash.com/photo-1528164344705-47542687000d?w=600&q=80');
}
.promo-img-2 {
  width: 55%; height: 55%;
  bottom: 0; left: 0;
  background-image: linear-gradient(135deg, rgba(193, 124, 95, 0.3), rgba(193, 124, 95, 0.1)), url('https://images.unsplash.com/photo-1548690312-e3b507d8c110?w=600&q=80');
}
.promo-img-3 {
  width: 40%; height: 40%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(135deg, rgba(168, 200, 200, 0.4), rgba(168, 200, 200, 0.15)), url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?w=600&q=80');
}

/* ===== Courses ===== */
.courses-hero {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
}
.courses-hero .section-title,
.courses-hero .section-subtitle { color: var(--white); }
.courses-hero .section-subtitle { opacity: 0.85; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  cursor: pointer;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}
.course-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.course-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,61,61,0.5) 0%, transparent 60%);
}
.course-level-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: var(--white);
  color: var(--charcoal);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}
.course-body { padding: 24px; }
.course-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.course-body p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.6;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
}
.course-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--sage-dark);
}
.course-grid-page { margin-top: 40px; }
.courses-more { text-align: center; margin-top: 48px; }

.pricing-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.pricing-mini-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.pricing-mini-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-mini-label {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.course-detail {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 24px;
  box-shadow: var(--shadow-soft);
}
.course-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.course-detail-image {
  height: 280px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}
.course-detail-info h2 { font-size: 32px; margin-bottom: 12px; }
.course-detail-info p { color: var(--gray-500); margin-bottom: 20px; }
.course-detail-levels { margin-top: 24px; }
.level-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.level-option:hover { border-color: var(--sage); background: rgba(123, 167, 166, 0.05); }
.level-option.recommended { border-color: var(--sage); background: rgba(123, 167, 166, 0.08); }
.level-option .level-name { font-weight: 600; }
.level-option .level-desc { font-size: 13px; color: var(--gray-500); }
.level-option .level-price { font-weight: 700; color: var(--sage-dark); }

/* ===== Reviews ===== */
.section-reviews { background: var(--cream); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.stat-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 14px;
  color: var(--gray-500);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.review-stars { color: #E5A443; margin-bottom: 12px; font-size: 15px; }
.review-text {
  font-size: 15px;
  color: var(--charcoal);
  margin-bottom: 18px;
  line-height: 1.65;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--sage-dark);
}
.review-name { font-size: 14px; font-weight: 600; }
.review-source { font-size: 12px; color: var(--gray-500); }

/* ===== Booking ===== */
.booking-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--cream-dark);
}
.booking-tab {
  padding: 14px 24px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.booking-tab.active { color: var(--sage-dark); border-bottom-color: var(--sage); }
.booking-panel { display: none; }
.booking-panel.active { display: block; }
.booking-info-banner {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(123, 167, 166, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}
.booking-info-icon { font-size: 28px; }
.booking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--white);
  color: var(--charcoal);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(123, 167, 166, 0.1);
}
.schedule-prefs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
}
.booking-summary {
  background: var(--cream-dark);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.payment-option:hover { border-color: var(--sage); }

/* ===== Culture ===== */
.culture-hero {
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
}
.culture-hero .section-title,
.culture-hero .section-subtitle { color: var(--white); }
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.culture-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}
.culture-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.culture-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.culture-card-body { padding: 24px; }
.culture-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.culture-card-body p { font-size: 14px; color: var(--gray-500); }
.culture-cta { text-align: center; margin-top: 48px; }

/* ===== Tour ===== */
.tour-hero {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
}
.tour-hero .section-title,
.tour-hero .section-subtitle { color: var(--white); }
.tour-highlights {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.tour-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 14px;
}
.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.city-card {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.3s;
}
.city-card:hover { transform: translateY(-4px); }
.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,61,61,0.7) 0%, transparent 60%);
}
.city-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--white);
  z-index: 2;
}
.tour-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tour-package {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

/* ===== Footer ===== */
.footer-enyaq {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo span { font-weight: 400; color: rgba(255,255,255,0.6); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-location {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  margin-top: 8px;
}
.footer-social-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.soc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
a.soc-link:hover { color: var(--sage-light, #7BA7A6); }
.soc-link span { font-weight: 700; }
.soc-link em { font-style: normal; color: rgba(255,255,255,0.5); }
.soc-zoom { cursor: default; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 61, 61, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--shadow-medium);
}
.modal-icon { font-size: 48px; margin-bottom: 16px; }
.modal h3 { font-size: 22px; margin-bottom: 10px; }
.modal p { color: var(--gray-500); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; }

/* ===== Teacher Dashboard ===== */
.teacher-app {
  min-height: 100vh;
  background: var(--cream);
}
.teacher-sidebar {
  background: var(--charcoal);
  color: var(--white);
  padding: 24px;
  position: fixed;
  height: 100vh;
  width: 260px;
  overflow-y: auto;
}
.teacher-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.teacher-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.teacher-name { font-weight: 600; }
.teacher-role { font-size: 12px; color: rgba(255,255,255,0.6); }
.teacher-nav { display: flex; flex-direction: column; gap: 4px; }
.teacher-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: all 0.2s;
}
.teacher-nav-item:hover,
.teacher-nav-item.active { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-icon { font-size: 16px; width: 22px; }
.nav-badge {
  margin-left: auto;
  background: var(--clay);
  color: var(--white);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
}
.nav-badge-new { background: var(--sage); }
.teacher-main { margin-left: 260px; min-height: 100vh; width: calc(100% - 260px); }
.teacher-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-300);
}
.teacher-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--gray-300);
  min-width: 300px;
}
.teacher-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
}
.teacher-topbar-right { display: flex; align-items: center; gap: 20px; }
.teacher-notifications { position: relative; font-size: 18px; cursor: pointer; }
.notif-badge {
  position: absolute;
  top: -5px; right: -5px;
  width: 16px; height: 16px;
  background: var(--clay);
  color: var(--white);
  border-radius: 50%;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.teacher-date { font-size: 13px; color: var(--gray-500); display: flex; gap: 8px; }
.teacher-content { padding: 32px; }
.teacher-view { display: none; }
.teacher-view.active { display: block; }
.teacher-content-header { margin-bottom: 24px; }
.teacher-content-header h2 { font-size: 24px; color: var(--charcoal); }
.teacher-content-header p { color: var(--gray-500); font-size: 14px; }

/* ===== SPA Pages ===== */
.page { display: none; }
.page.active { display: block; }
.hero { position: relative; }
.footer { background: var(--charcoal); color: rgba(255,255,255,0.8); }
.search-icon { font-size: 15px; }
.notif-icon { font-size: 17px; }
.subsection-title { font-size: 22px; font-weight: 600; color: var(--charcoal); margin-bottom: 16px; }
.teacher-brand-text { flex: 1; }
.teacher-brand-text .teacher-name { font-size: 16px; }
.tour-hl-icon { font-size: 18px; }
.tour-custom-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.booking-payment { margin-top: 8px; }
.payment-summary {
  background: var(--cream-dark);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.8;
}
.payment-summary strong { color: var(--clay-dark); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.payment-label { font-size: 13px; color: var(--gray-500); margin-bottom: 6px; }

/* ===== Dashboard: Overview ===== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.overview-stats { grid-column: 1 / -1; }
.overview-classes,
.overview-notifications,
.overview-todo,
.overview-quick,
.overview-recent { /* 继承 .overview-card 样式，语义化区分 */ }
.overview-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.overview-card h3 { font-size: 16px; margin-bottom: 16px; color: var(--charcoal); }
.overview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.overview-card-header h3 { margin-bottom: 0; }
.link-btn {
  background: none;
  border: none;
  color: var(--sage-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-box {
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  text-align: center;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--clay-dark); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.ov-class-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
}
.ov-class-item:last-child { border-bottom: none; }
.ov-class-time { font-size: 13px; font-weight: 600; color: var(--clay-dark); min-width: 52px; }
.ov-class-info { flex: 1; }
.ov-class-course { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.ov-class-lesson { font-size: 12px; color: var(--gray-500); }
.ov-class-status { font-size: 12px; font-weight: 500; }

.ov-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 6px;
}
.ov-todo-item:hover { background: var(--cream-dark); }
.ov-todo-item.done .ov-todo-text { text-decoration: line-through; color: var(--gray-500); }
.ov-todo-check { font-size: 15px; }
.ov-todo-text { flex: 1; font-size: 14px; }
.ov-todo-priority { font-size: 11px; font-weight: 600; }

.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ov-quick-card {
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.ov-quick-card:hover { border-color: var(--sage); background: var(--white); transform: translateY(-2px); }
.ov-quick-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.ov-quick-label { font-size: 12px; color: var(--charcoal); font-weight: 500; }

.ov-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-300);
}
.ov-recent-item:last-child { border-bottom: none; }
.ov-recent-icon { font-size: 18px; }
.ov-recent-info { flex: 1; min-width: 0; }
.ov-recent-title { font-size: 14px; font-weight: 500; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-recent-meta { font-size: 12px; color: var(--gray-500); }
.ov-recent-size { font-size: 12px; color: var(--gray-500); }

.ov-notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-300);
}
.ov-notif-item:last-child { border-bottom: none; }
.ov-notif-icon { font-size: 16px; }
.ov-notif-text { flex: 1; font-size: 13px; color: var(--charcoal); }
.ov-notif-time { font-size: 12px; color: var(--gray-500); white-space: nowrap; }

/* ===== Dashboard: Schedule ===== */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.schedule-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}
.schedule-time { font-size: 14px; font-weight: 700; color: var(--clay-dark); min-width: 64px; }
.schedule-body { flex: 1; }
.schedule-course { font-size: 15px; font-weight: 600; color: var(--charcoal); }
.schedule-lesson { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.schedule-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.schedule-status { font-weight: 600; }
.schedule-notes {
  font-size: 13px;
  color: var(--charcoal);
  background: var(--cream-dark);
  border-radius: 6px;
  padding: 8px 12px;
}
.prep-section { margin-top: 24px; }
.prep-section h4 { font-size: 16px; margin-bottom: 12px; color: var(--charcoal); }
.prep-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.prep-item.done .prep-text { text-decoration: line-through; color: var(--gray-500); }
.prep-check { font-size: 15px; }
.prep-text { font-size: 14px; }

/* ===== Dashboard: Students ===== */
.progress-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.progress-overview-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.progress-overview-card.po-alert { border-color: var(--clay); }
.po-value { font-size: 24px; font-weight: 700; color: var(--clay-dark); }
.po-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.student-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.student-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-soft);
}
.student-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.student-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.student-avatar { font-size: 28px; }
.student-info { flex: 1; }
.student-name { font-size: 15px; font-weight: 600; color: var(--charcoal); }
.student-course { font-size: 12px; color: var(--gray-500); }
.student-attendance { font-size: 12px; color: var(--sage-dark); font-weight: 500; white-space: nowrap; }
.student-lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.student-status-tag {
  background: var(--cream-dark);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--sage-dark);
  white-space: nowrap;
}
.progress-bar-container {
  position: relative;
  height: 8px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: visible;
  margin-bottom: 4px;
}
.progress-bar-fill { height: 100%; border-radius: 100px; }
.progress-bar-label {
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 11px;
  color: var(--gray-500);
}
.student-detail {
  margin-top: 12px;
  border-top: 1px dashed var(--gray-300);
  padding-top: 10px;
  font-size: 13px;
}
.student-detail-row { display: flex; gap: 8px; padding: 4px 0; color: var(--gray-600); }
.student-detail-row span:first-child { font-weight: 500; color: var(--charcoal); min-width: 72px; }
.hw-tag { font-weight: 600; font-size: 12px; }
.sync-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: #FFF8E7;
  border: 1px solid #F0D9A8;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: #8A6D2F;
}

/* ===== Dashboard: Resources ===== */
.resource-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.resource-category-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-soft);
}
.resource-category-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.resource-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  margin-bottom: 8px;
}
.resource-cat-name { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.resource-cat-count { font-size: 12px; color: var(--gray-500); }
.resource-list-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.resource-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.resource-list-header h4 { font-size: 16px; color: var(--charcoal); }
.resource-filter-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  background: var(--cream-dark);
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--sage); }
.filter-btn.active { background: var(--sage); border-color: var(--sage); color: var(--white); }
.resource-list { display: flex; flex-direction: column; }
.resource-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--gray-300);
  cursor: pointer;
  border-radius: 8px;
}
.resource-item-row:hover { background: var(--cream-dark); }
.resource-item-row:last-child { border-bottom: none; }
.resource-item-icon { font-size: 18px; }
.resource-item-info { flex: 1; min-width: 0; }
.resource-item-title { font-size: 14px; font-weight: 500; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-item-meta { font-size: 12px; color: var(--gray-500); }
.resource-item-size { font-size: 12px; color: var(--gray-500); }
.resource-item-status { font-size: 12px; font-weight: 500; }

/* ===== Dashboard: PPT Review ===== */
.ppt-review-overview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.ppt-score-card { text-align: center; }
.ppt-score-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ppt-score-inner {
  width: 96px;
  height: 96px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--clay-dark);
}
.ppt-score-label { font-size: 13px; color: var(--gray-500); }
.ppt-info-card { display: flex; flex-direction: column; gap: 8px; }
.ppt-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-bottom: 1px dashed var(--gray-300);
  padding-bottom: 6px;
}
.ppt-info-row span:first-child { color: var(--gray-500); }
.ppt-info-row span:last-child { font-weight: 500; color: var(--charcoal); }
.ppt-review-section {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}
.ppt-review-section h4 { font-size: 15px; margin-bottom: 14px; color: var(--charcoal); }
.structure-table { display: flex; flex-direction: column; }
.structure-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 14px;
}
.structure-row:last-child { border-bottom: none; }
.structure-section { font-weight: 500; color: var(--charcoal); }
.structure-slides { font-size: 13px; color: var(--gray-500); }
.structure-count { font-size: 13px; color: var(--gray-500); text-align: right; }
.structure-status { text-align: center; }
.text-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.text-review-card {
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.text-review-num { font-size: 12px; color: var(--sage-dark); font-weight: 600; margin-bottom: 4px; }
.text-review-title { font-size: 15px; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.text-review-slides { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.text-review-features { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gray-600); }
.grammar-list { display: flex; flex-wrap: wrap; gap: 10px; }
.grammar-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-dark);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
}
.grammar-name { font-weight: 600; color: var(--charcoal); }
.grammar-slides { font-size: 12px; color: var(--gray-500); }
.grammar-status { font-size: 12px; color: var(--sage-dark); }
.design-score-list { display: flex; flex-direction: column; gap: 10px; }
.design-score-row {
  display: grid;
  grid-template-columns: 120px 1fr 44px 140px;
  align-items: center;
  gap: 12px;
}
.design-area { font-size: 14px; font-weight: 500; color: var(--charcoal); }
.design-score-bar { height: 8px; background: var(--cream-dark); border-radius: 100px; overflow: hidden; }
.design-score-fill { height: 100%; border-radius: 100px; }
.design-score-num { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.design-note { font-size: 12px; color: var(--gray-500); }
.issues-list { display: flex; flex-direction: column; gap: 10px; }
.issue-card {
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.issue-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.issue-slide { font-size: 12px; font-weight: 600; color: var(--sage-dark); }
.issue-field { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.issue-sev { font-size: 12px; font-weight: 600; }
.issue-body { font-size: 13px; color: var(--gray-600); }
.issue-body p { margin: 3px 0; }
.ppt-review-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.summary-col h4 { margin-bottom: 10px; }
.summary-list { list-style: none; }
.summary-li { padding: 5px 0; font-size: 14px; color: var(--gray-600); }
.summary-li.positive { color: var(--sage-dark); }
.summary-li.improvement { color: var(--clay-dark); }

/* ===== Dashboard: Courseware ===== */
.cw-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cw-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-soft);
}
.cw-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.cw-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cw-name { font-size: 15px; font-weight: 600; color: var(--charcoal); }
.cw-status { font-size: 12px; font-weight: 600; }
.cw-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.cw-score {
  background: var(--cream-dark);
  border-radius: 100px;
  padding: 1px 10px;
  font-weight: 600;
  color: var(--sage-dark);
}
.cw-progress { height: 6px; background: var(--cream-dark); border-radius: 100px; overflow: hidden; }
.cw-progress-bar { height: 100%; background: var(--sage); border-radius: 100px; }

/* ===== Dashboard: Analytics ===== */
.analytics-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.analytics-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.as-value { font-size: 28px; font-weight: 700; color: var(--clay-dark); }
.as-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.analytics-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.analytics-chart-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.analytics-chart-card h4 { font-size: 15px; margin-bottom: 14px; color: var(--charcoal); }
.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 190px;
  padding: 0 8px;
}
.analytics-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}
.analytics-bar {
  width: 100%;
  max-width: 40px;
  background: var(--sage);
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: all 0.3s;
}
.analytics-bar:hover { background: var(--clay); }
.analytics-bar-value { font-size: 11px; font-weight: 600; color: var(--charcoal); margin-top: 4px; }
.analytics-bar-label { font-size: 12px; color: var(--gray-500); }
.distribution-list { display: flex; flex-direction: column; gap: 10px; }
.distribution-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.distribution-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.distribution-name { width: 110px; color: var(--charcoal); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.distribution-bar { flex: 1; height: 8px; background: var(--cream-dark); border-radius: 100px; overflow: hidden; }
.distribution-fill { height: 100%; border-radius: 100px; }
.distribution-count { width: 28px; text-align: right; font-weight: 600; color: var(--charcoal); }

/* ===== Dashboard: Profile ===== */
.profile-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 620px;
  box-shadow: var(--shadow-soft);
}
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.profile-info h3 { font-size: 18px; color: var(--charcoal); }
.profile-info p { font-size: 13px; color: var(--gray-500); }
.profile-details { border-top: 1px solid var(--gray-300); }
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 14px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row span:first-child { color: var(--gray-500); }
.profile-row span:last-child { font-weight: 500; color: var(--charcoal); text-align: right; }
.profile-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ===== Dashboard: Embedded PPT Slide Viewer ===== */
.ppt-slide-viewer-section { padding-bottom: 24px; width: 100%; }
.ppt-slide-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ppt-slide-viewer-header h4 { margin-bottom: 0; }
.ppt-slide-counter { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.ppt-slide-stage-wrap {
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  position: relative;
}
.ppt-slide-stage-wrap:fullscreen {
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.ppt-slide-stage {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.ppt-slide-stage .ppt-slide-inner {
  transform-origin: top left;
}
.ppt-slide-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray-500);
  font-size: 14px;
}
.ppt-slide-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ppt-slide-scrubber {
  flex: 1;
  min-width: 160px;
  max-width: 360px;
  accent-color: var(--sage);
}
.ppt-slide-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.ppt-slide-thumb {
  flex-shrink: 0;
  width: 72px;
  background: var(--cream-dark);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.ppt-slide-thumb:hover { background: var(--white); border-color: var(--gray-300); }
.ppt-slide-thumb.active { background: var(--white); border-color: var(--sage); }
.ppt-thumb-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--clay-dark);
}
.ppt-thumb-name {
  display: block;
  font-size: 10px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
/* Slidep component styles */
.sp-box { position: absolute; box-sizing: border-box; }
.sp-text { position: absolute; white-space: nowrap; box-sizing: border-box; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-text { order: 2; }
  .hero-image { order: 1; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-title { font-size: 44px; }
  .hero-photo-frame { width: 300px; height: 300px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-visual { height: 240px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-sidebar { position: relative; width: 100%; height: auto; }
  .teacher-main { margin-left: 0; width: 100%; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-stats { grid-column: auto; }
  .schedule-grid { grid-template-columns: 1fr; }
  .student-grid { grid-template-columns: 1fr; }
  .resource-categories { grid-template-columns: repeat(2, 1fr); }
  .text-review-grid { grid-template-columns: 1fr; }
  .cw-grid { grid-template-columns: 1fr; }
  .analytics-charts { grid-template-columns: 1fr; }
  .ppt-review-overview { grid-template-columns: 1fr; text-align: center; }
  .ppt-info-row { justify-content: center; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px;
    box-shadow: var(--shadow-medium);
    gap: 16px;
    align-items: stretch;
  }
  /* 移动端：下拉菜单展开为面板内分组 */
  .nav-dd { width: 100%; }
  .nav-dd-label {
    width: 100%;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 15px;
  }
  .nav-dd-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 4px 8px;
    min-width: 0;
  }
  .nav-dd:hover .nav-dd-menu { display: none; }
  .nav-dd.dd-open .nav-dd-menu {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav-dd-menu a { padding: 10px 8px; }
  .section { padding: 60px 0; }
  .hero-title { font-size: 36px; }
  .hero-photo-frame { width: 240px; height: 240px; }
  .floating-tag { display: none; }
  .highlights-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .pricing-mini { grid-template-columns: repeat(2, 1fr); }
  .test-options { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .promo-features { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
  .tour-packages { grid-template-columns: 1fr; }
  .culture-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .course-detail-header { grid-template-columns: 1fr; }
  .results-breakdown { grid-template-columns: 1fr; }
  .results-cta { flex-direction: column; }
  .booking-form .form-row { grid-template-columns: 1fr; }
  .schedule-prefs { flex-direction: column; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-overview { grid-template-columns: repeat(2, 1fr); }
  .analytics-stats { grid-template-columns: repeat(2, 1fr); }
  .ppt-review-summary { grid-template-columns: 1fr; }
  .ppt-slide-toolbar { flex-direction: column; align-items: stretch; }
  .ppt-slide-scrubber { max-width: none; width: 100%; }
  .ppt-slide-thumbs { gap: 6px; }
  .ppt-slide-thumb { width: 60px; padding: 6px 4px; }
  .design-score-row { grid-template-columns: 90px 1fr 40px; }
  .design-note { grid-column: 1 / -1; }
  .resource-categories { grid-template-columns: 1fr 1fr; }
  .structure-row { grid-template-columns: 1fr 60px 60px 30px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ===== Booking: new payment-first flow ===== */
.booking-steps { display:flex; flex-wrap:wrap; align-items:center; gap:10px; justify-content:center; margin:24px 0 36px; }
.booking-step { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--gray-200); border-radius:999px; padding:8px 16px; font-size:13px; font-weight:600; color:var(--charcoal); }
.booking-step .step-num { width:22px; height:22px; border-radius:50%; background:var(--sage); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.booking-step-arrow { color:var(--gray-400); font-weight:700; }

.lesson-type-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:24px 0 8px; }
.lesson-type-card { background:#fff; border:2px solid var(--gray-200); border-radius:16px; padding:20px 16px; text-align:center; cursor:pointer; transition:all .2s ease; }
.lesson-type-card:hover { border-color:var(--sage); transform:translateY(-2px); }
.lesson-type-card.active { border-color:var(--sage); background:linear-gradient(180deg,#F2F7F6,#fff); box-shadow:0 8px 24px rgba(123,167,166,.18); }
.lt-emoji { font-size:28px; }
.lt-name { font-weight:700; margin-top:6px; color:var(--charcoal); }
.lt-price { font-size:24px; font-weight:800; color:var(--sage-dark); margin-top:4px; }
.lt-dur { font-size:12px; color:var(--gray-500); margin-top:2px; }
.lt-note { font-size:12px; color:var(--gray-500); margin-top:6px; }

.package-options { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.package-option { display:flex; flex-direction:column; align-items:center; gap:2px; background:#fff; border:2px solid var(--gray-200); border-radius:12px; padding:14px 10px; cursor:pointer; position:relative; transition:all .2s ease; }
.package-option.active { border-color:var(--sage); background:#F2F7F6; }
.package-option input { position:absolute; opacity:0; }
.pkg-lessons { font-weight:700; font-size:14px; }
.pkg-total { font-size:16px; font-weight:800; color:var(--sage-dark); }
.pkg-save { font-size:11px; font-weight:700; color:#fff; background:#5E9B7C; border-radius:999px; padding:2px 8px; margin-top:4px; }

.booking-price-summary { background:#fff; border:1px solid var(--gray-200); border-radius:14px; padding:20px 22px; margin-top:20px; }
.booking-price-summary .summary-row { display:flex; justify-content:space-between; padding:6px 0; font-size:14px; color:var(--charcoal); }

.booking-calendar-section { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:24px; margin-top:28px; }
.booking-calendar-section h3 { margin-bottom:8px; }
.booking-calendar-note { font-size:13px; color:var(--gray-500); margin-bottom:16px; line-height:1.6; }
.cal-embed-wrap { border-radius:12px; overflow:hidden; background:#FAFAF8; min-height:300px; }
.booking-calendar-fallback { font-size:13px; margin-top:12px; color:var(--gray-500); }
.booking-calendar-fallback a { color:var(--sage-dark); font-weight:600; }

.booking-payment-notice { display:flex; gap:14px; background:#FBF6EC; border:1px solid #E8DDC8; border-radius:14px; padding:18px 20px; margin-top:28px; }
.booking-payment-notice span { font-size:22px; }
.booking-payment-notice strong { display:block; margin-bottom:4px; }
.booking-payment-notice p { font-size:13px; color:var(--gray-600); line-height:1.6; }

.booking-zoom-note { display:flex; gap:14px; background:#EAF3FB; border:1px solid #CDE0F0; border-radius:14px; padding:16px 20px; margin-top:14px; }
.booking-zoom-note span { font-size:22px; }
.booking-zoom-note strong { display:block; margin-bottom:4px; }
.booking-zoom-note p { font-size:13px; color:var(--gray-600); line-height:1.6; }
.booking-zoom-note b { color:var(--charcoal); font-weight:700; word-break:break-all; }

.form-control { width:100%; padding:12px 14px; border:1px solid var(--gray-300); border-radius:10px; font-size:14px; font-family:inherit; background:#fff; color:var(--charcoal); }
.form-control:focus { outline:none; border-color:var(--sage); box-shadow:0 0 0 3px rgba(123,167,166,.15); }

/* ===== FAQ ===== */
.faq-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; max-width:900px; margin:0 auto; }
.faq-item { background:#fff; border:1px solid var(--gray-200); border-radius:14px; padding:20px 22px; }
.faq-q { font-weight:700; margin-bottom:8px; color:var(--charcoal); }
.faq-a { font-size:14px; color:var(--gray-600); line-height:1.7; }

/* ===== Contact page ===== */
.contact-form { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:28px; max-width:560px; margin:0 auto; }
.contact-form .form-group { margin-bottom:16px; }
.contact-form label { display:block; font-weight:600; font-size:13px; margin-bottom:6px; color:var(--charcoal); }
.contact-success { margin-top:16px; padding:12px 16px; background:#EDF7F1; border:1px solid #BFE3CE; border-radius:10px; color:#2E6B4F; font-weight:600; font-size:14px; }
.contact-privacy { margin-top:14px; font-size:12px; color:var(--gray-500); line-height:1.6; }

/* ===== Study Tour: video cards & coming soon ===== */
.tour-tours-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.tour-card { background:#fff; border:1px solid var(--gray-200); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease; }
.tour-card:hover { transform:translateY(-4px); box-shadow:0 14px 34px rgba(61,61,61,.10); }
.tour-card-media { aspect-ratio:16/9; background:#E8E4DC; }
.tour-card-media iframe { width:100%; height:100%; border:0; display:block; }
.tour-card-body { padding:20px; display:flex; flex-direction:column; flex:1; }
.tour-card-body h3 { font-size:17px; margin-bottom:6px; }
.tour-tagline { font-size:13px; font-weight:600; color:var(--sage-dark); margin-bottom:10px; }
.tour-card-body p { font-size:13px; color:var(--gray-600); line-height:1.7; flex:1; }
.tour-departure { font-size:12px; font-weight:700; color:#B07A3F; background:#FBF3E6; border-radius:999px; padding:6px 12px; margin:14px 0 10px; text-align:center; }
.tour-price-line { text-align:center; font-size:14px; font-weight:800; color:#2E6B4F; background:#EDF7F1; border:1px solid #BFE3CE; border-radius:999px; padding:7px 12px; margin-bottom:10px; line-height:1.4; }
.tour-price-line small { display:block; font-size:11px; font-weight:500; color:#5A8A72; margin-top:2px; }
.tour-video-link { font-size:12px; color:var(--gray-500); margin-top:10px; text-decoration:none; }
.tour-video-link:hover { color:var(--sage-dark); }

.city-card.coming-soon { opacity:.75; position:relative; }
.coming-soon-badge { display:inline-block; margin-top:10px; font-size:12px; font-weight:700; color:var(--gray-500); background:#EFEBE4; border:1px dashed var(--gray-300); border-radius:999px; padding:5px 12px; }

/* ===== v24 · 游学目的地深度介绍 ===== */
.tour-guides { display:flex; flex-direction:column; gap:26px; margin-top:26px; }
.tour-guide { background:#fff; border:1px solid var(--gray-200); border-radius:20px; padding:30px 32px; box-shadow:var(--shadow-soft); }
.tour-guide-head { display:flex; align-items:center; gap:18px; margin-bottom:16px; }
.tour-guide-emoji { flex:0 0 auto; width:70px; height:70px; border-radius:20px; display:grid; place-items:center; font-size:34px; background:linear-gradient(135deg,#FBF3E6,#F1EADC); }
.tour-guide-heading h3 { font-size:25px; line-height:1.25; margin:0 0 6px; }
.tour-guide-pinyin { font-size:14px; font-weight:500; color:var(--sage-dark); letter-spacing:.6px; }
.tour-guide-badge { display:inline-block; font-size:12.5px; font-weight:700; color:#B07A3F; background:#FBF3E6; border:1px solid #F0E0C8; border-radius:999px; padding:5px 13px; }
.tour-guide-intro { font-size:15px; line-height:1.9; color:var(--gray-600); margin:0 0 22px; }
.tour-guide-highlights { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.tour-hl-card { background:#FAF8F4; border-radius:14px; padding:16px 18px; }
.tour-hl-card h4 { display:flex; align-items:center; gap:8px; font-size:15px; margin:0 0 7px; color:var(--charcoal); }
.tour-hl-card h4 span { font-size:17px; }
.tour-hl-card p { font-size:13px; line-height:1.75; color:var(--gray-600); margin:0; }
.tour-guide-learn { margin-top:20px; background:#EDF7F1; border-left:4px solid #7FB59A; border-radius:12px; padding:16px 20px; }
.tour-guide-learn-title { font-size:14px; font-weight:800; color:#2E6B4F; margin-bottom:8px; }
.tour-guide-learn ul { margin:0; padding-left:20px; }
.tour-guide-learn li { font-size:13.5px; line-height:1.85; color:#3F5F51; }
.tour-guide-facts { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.tour-fact { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--gray-600); background:#fff; border:1px solid var(--gray-200); border-radius:999px; padding:7px 14px; }
.tour-fact strong { color:var(--charcoal); font-weight:700; }
.tour-fact-icon { font-size:13px; }
.tour-guide-tip { margin-top:16px; font-size:13px; line-height:1.8; color:#8A6A3B; background:#FFFBF2; border:1px dashed #E8D9BC; border-radius:12px; padding:13px 18px; }
.tour-guide-actions { margin-top:18px; display:flex; }
.tour-guide-actions .btn { font-size:14px; }

@media (max-width:1024px) {
  .lesson-type-grid { grid-template-columns:repeat(2,1fr); }
  .package-options { grid-template-columns:repeat(2,1fr); }
  .tour-tours-grid { grid-template-columns:1fr; }
  .faq-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .lesson-type-grid { grid-template-columns:1fr; }
  .package-options { grid-template-columns:repeat(2,1fr); }
  .booking-steps { flex-direction:column; }
  .booking-step-arrow { display:none; }
  .tour-guide-highlights { grid-template-columns:1fr; }
  .tour-guide { padding:24px 20px; }
  .tour-guide-head { gap:14px; }
  .tour-guide-emoji { width:56px; height:56px; font-size:28px; border-radius:16px; }
  .tour-guide-heading h3 { font-size:21px; }
}

/* ===== Real student profiles (synced) ===== */
.real-file-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.real-file-badge { font-size:11px; font-weight:600; background:#F2F0EB; border-radius:999px; padding:4px 10px; color:var(--charcoal); }
.real-note { margin-top:12px; background:#FAF8F4; border:1px solid var(--gray-200); border-radius:10px; padding:12px 14px; }
.real-note-head { font-size:12px; font-weight:700; color:var(--sage-dark); margin-bottom:6px; }
.real-note-body { font-size:12px; color:var(--gray-600); line-height:1.6; white-space:pre-wrap; max-height:180px; overflow:auto; }
.real-recent { margin-top:10px; }
.real-recent-file { font-size:12px; color:var(--gray-500); padding:2px 0; }

/* ===== Reading Store（仿 realtalkmandarin） ===== */
.reading-hero { background: linear-gradient(180deg,#F7F4EE 0%,#fff 100%); padding: 108px 0 48px; }
.reading-hero-inner { display:grid; grid-template-columns: 1.4fr 1fr; gap:40px; align-items:start; }
.reading-badge { display:inline-block; background:var(--sage); color:#fff; font-size:12px; font-weight:700; border-radius:999px; padding:6px 14px; margin-bottom:16px; }
.reading-hero-text h2 { font-size:34px; margin-bottom:12px; }
.reading-tagline { font-size:16px; color:var(--gray-600); line-height:1.7; margin-bottom:20px; max-width:560px; }
.reading-perks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; margin-bottom:20px; max-width:560px; }
.reading-perk { font-size:14px; color:var(--charcoal); display:flex; align-items:center; gap:8px; }
.reading-perk span { font-size:16px; }
.reading-audience { font-size:13px; color:var(--gray-600); background:#FBF6EC; border:1px solid #E8DDC8; border-radius:12px; padding:14px 16px; line-height:1.7; max-width:560px; margin-bottom:24px; }
.reading-audience strong { color:var(--charcoal); }
.reading-price-row { display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.reading-price { display:flex; flex-direction:column; }
.reading-price .rp-num { font-size:28px; font-weight:800; color:var(--sage-dark); }
.reading-price .rp-label { font-size:12px; color:var(--gray-500); }
.reading-hero-card { background:#fff; border:1px solid var(--gray-200); border-radius:18px; box-shadow:var(--shadow-soft); overflow:hidden; }
.rhc-cover { height:110px; background:linear-gradient(135deg,var(--sage) 0%,var(--sage-dark) 100%); display:flex; align-items:center; justify-content:center; font-size:44px; }
.rhc-title { font-weight:800; font-size:17px; padding:16px 18px 4px; }
.rhc-meta { font-size:12px; color:var(--gray-500); padding:0 18px 12px; border-bottom:1px solid var(--gray-200); }
.rhc-units { padding:10px 12px 14px; display:flex; flex-direction:column; gap:6px; }
.rhc-unit { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:10px; cursor:pointer; font-size:13px; transition:background .15s; }
.rhc-unit:hover { background:#F4F1EA; }
.rhc-num { width:22px; height:22px; border-radius:50%; background:#EFEBE4; color:var(--gray-600); font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rhc-name { flex:1; font-weight:600; }
.rhc-tag { font-size:10px; font-weight:800; color:#2E6B4F; background:#EDF7F1; border:1px solid #BFE3CE; border-radius:999px; padding:2px 8px; text-transform:uppercase; letter-spacing:.3px; }
.rhc-locked, .rhc-locked:hover { opacity:.6; cursor:default; background:none; }

.reading-units-full { display:flex; flex-direction:column; gap:14px; max-width:820px; }
.reading-unit-card { display:flex; align-items:center; gap:18px; background:#fff; border:1px solid var(--gray-200); border-radius:14px; padding:18px 20px; }
.reading-unit-card h4 { font-size:16px; margin-bottom:4px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ruc-meta { font-size:13px; color:var(--gray-500); }
.ruc-num { width:38px; height:38px; border-radius:12px; background:var(--sage); color:#fff; font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ruc-body { flex:1; }
.ruc-locked { opacity:.65; }
.ruc-locked .ruc-num { background:var(--gray-300); }

/* Reading player（path-player 样式） */
.rplayer-wrap { display:grid; grid-template-columns:280px 1fr; gap:0; min-height:70vh; background:#FAF8F4; }
.rplayer-sidebar { background:#2E2B27; color:rgba(255,255,255,.75); padding:24px 14px; }
.rsp-course { font-weight:800; color:#fff; font-size:14px; padding:0 10px 14px; letter-spacing:.3px; }
.rsp-unit { display:flex; align-items:center; gap:10px; padding:11px 10px; border-radius:10px; cursor:pointer; font-size:13px; margin-bottom:2px; transition:background .15s; }
.rsp-unit:hover { background:rgba(255,255,255,.08); }
.rsp-unit.active { background:var(--sage); color:#fff; }
.rsp-num { width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.12); font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rsp-name { flex:1; line-height:1.4; }
.rsp-tag { font-size:10px; font-weight:800; background:rgba(255,255,255,.18); border-radius:999px; padding:2px 8px; }
.rsp-locked { opacity:.5; cursor:default; }
.rsp-locked:hover { background:none; }
.rplayer-main { padding:36px 48px 64px; max-width:900px; }
.rplayer-back { font-size:13px; color:var(--sage-dark); text-decoration:none; font-weight:600; }
.rplayer-header h2 { font-size:28px; margin:10px 0 8px; }
.rplayer-meta { display:flex; gap:10px; align-items:center; font-size:13px; color:var(--gray-500); margin-bottom:26px; }
.rplayer-meta .rsp-tag { background:#EDF7F1; color:#2E6B4F; }
.rplayer-section { margin-bottom:26px; }
.rplayer-section h3 { font-size:19px; color:var(--sage-dark); margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid var(--sage); display:inline-block; }
.rplayer-para { font-size:16px; line-height:2; color:var(--charcoal); margin-bottom:14px; text-align:justify; }
.rplayer-block { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:24px 26px; margin:26px 0; }
.rplayer-block > h3 { font-size:17px; margin-bottom:16px; }
.vocab-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.vocab-card { background:#F9F7F2; border:1px solid var(--gray-200); border-radius:12px; padding:12px 14px; }
.vocab-zh { font-size:17px; font-weight:800; }
.vocab-pinyin { font-size:12px; color:var(--sage-dark); font-weight:600; margin:2px 0; }
.vocab-en { font-size:12px; color:var(--gray-500); }
.noun-list { display:flex; flex-direction:column; gap:6px; }
.noun-row { display:flex; gap:14px; align-items:baseline; font-size:14px; padding:6px 0; border-bottom:1px dashed var(--gray-200); }
.noun-row:last-child { border-bottom:none; }
.noun-row b { min-width:120px; }
.noun-py { color:var(--sage-dark); min-width:130px; }
.noun-en { color:var(--gray-500); }
.qa-list { display:flex; flex-direction:column; gap:12px; }
.qa-item { background:#F9F7F2; border-radius:12px; padding:14px 16px; }
.qa-q { font-size:14px; font-weight:600; line-height:1.7; display:flex; gap:10px; }
.qa-num { width:22px; height:22px; border-radius:50%; background:var(--sage); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px; }
.qa-toggle { margin-top:10px; font-size:12px; font-weight:700; color:var(--sage-dark); background:#fff; border:1px solid var(--sage); border-radius:999px; padding:5px 14px; cursor:pointer; }
.qa-toggle:hover { background:var(--sage); color:#fff; }
.qa-answer { margin-top:10px; font-size:14px; line-height:1.8; color:var(--gray-600); background:#EDF7F1; border-left:3px solid var(--sage); border-radius:0 10px 10px 0; padding:10px 14px; }
.qa-answer-label { font-weight:800; color:#2E6B4F; }
.drill-list { padding-left:20px; display:flex; flex-direction:column; gap:12px; }
.drill-item .drill-q { font-size:14px; font-weight:600; line-height:1.7; }
.drill-hints { font-size:12px; color:var(--gray-500); margin-top:6px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.drill-hint { background:#EFEBE4; border-radius:999px; padding:3px 10px; font-weight:600; color:var(--gray-600); }
.rplayer-extended { background:#FBF6EC; border-color:#E8DDC8; }
.rplayer-footer { display:flex; align-items:center; gap:16px; margin-top:30px; }
.rplayer-soon { font-size:13px; color:var(--gray-500); }

@media (max-width:1024px) {
  .reading-hero-inner { grid-template-columns:1fr; }
  .rplayer-wrap { grid-template-columns:1fr; }
  .rplayer-sidebar { display:flex; gap:8px; overflow-x:auto; padding:14px; }
  .rsp-course { display:none; }
  .rsp-unit { white-space:nowrap; }
  .rplayer-main { padding:24px 20px 48px; }
  .vocab-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px) {
  .reading-perks { grid-template-columns:1fr; }
  .vocab-grid { grid-template-columns:1fr; }
  .reading-unit-card { flex-direction:column; align-items:flex-start; }
}

/* ---------- 阅读播放器：拼音双行 + 生词标黑 + 语法/讨论 ---------- */
.rplayer-controls { display:flex; gap:10px; margin:-6px 0 24px; }
.rplayer-controls .btn { border-radius:999px; }
.rpara-py .rpy { display:block; font-size:13px; line-height:1.6; color:var(--gray-500); letter-spacing:.02em; margin-bottom:2px; user-select:none; }
.rpara-py .rzh { display:block; }
.rplayer-main.hide-py .rpy { display:none; }
.vocab-hl { font-weight:700; color:var(--charcoal); background:linear-gradient(transparent 62%, rgba(46,107,79,.18) 62%); padding:0 1px; border-radius:2px; }
.grammar-list { display:flex; flex-direction:column; gap:12px; }
.grammar-card { background:#F9F7F2; border:1px solid var(--gray-200); border-radius:12px; padding:14px 16px; }
.grammar-pat { font-size:15px; font-weight:700; color:var(--sage-dark); }
.grammar-en { font-size:12px; color:var(--gray-500); margin:2px 0 6px; }
.grammar-ex { font-size:14px; line-height:1.8; color:var(--charcoal); }
.rplayer-discussion { background:#F2F6FB; border-color:#D8E2EF; }
.disc-card { background:#fff; border:1px solid #D8E2EF; border-radius:12px; padding:14px 16px; margin-bottom:10px; }
.disc-card:last-child { margin-bottom:0; }
.disc-topic { font-size:15px; font-weight:700; margin-bottom:8px; }
.disc-guide { font-size:13px; line-height:1.8; color:var(--gray-600); }
.disc-guides > b, .disc-patterns > b { font-size:12px; color:var(--gray-500); }
.disc-patterns { margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.disc-pattern { background:#EDF3FA; border-radius:999px; padding:3px 10px; font-size:12px; font-weight:600; color:#3D5A80; }

/* ---------- 打印 / 存为 PDF：拼音版与无拼音版都按当前切换状态输出 ---------- */
@media print {
  @page { margin:16mm 14mm; }
  body { background:#fff !important; }
  .site-header, .site-nav, .rplayer-sidebar, .rplayer-controls,
  .qa-toggle, .rplayer-footer, .rplayer-back, #readingLanding,
  #page-reading, .rplayer-soon, #vocabPop, .rplayer-audio { display:none !important; }
  .page { display:none !important; }
  #page-readingPlayer { display:block !important; }
  .rplayer-wrap { display:block; min-height:auto; }
  .rplayer-main { max-width:100%; padding:0; }
  .rplayer-para { font-size:12.5pt; orphans:3; widows:3; }
  .rpara-py .rpy { font-size:10.5pt; }
  .rplayer-block { border:1px solid #ccc; break-inside:avoid; }
  .rplayer-section, .rplayer-extended { break-inside:auto; }
  .vocab-hl { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ---------- 生词详情弹卡（点击正文标黑词 / 生词卡） ---------- */
.vocab-card { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.vocab-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.vocab-hl { cursor: pointer; }
.vocab-tip { font-size: 12px; font-weight: 400; color: var(--gray-400); }
#vocabPop { position: fixed; z-index: 999; width: min(380px, 88vw); max-height: calc(100vh - 20px); overflow-y: auto; background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 16px 18px; display: none; font-size: 14px; }
#vocabPop.show { display: block; animation: vpIn .18s ease; }
@keyframes vpIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.vp-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 18px; color: var(--gray-400); cursor: pointer; line-height: 1; }
.vp-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; padding-right: 18px; }
.vp-word { font-size: 21px; font-weight: 800; color: var(--charcoal); }
.vp-pinyin { color: var(--sage-dark); font-size: 14px; }
.vp-en { color: var(--gray-500); font-size: 13px; margin-bottom: 6px; }
.vp-row { margin-top: 10px; }
.vp-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.vp-def { line-height: 1.7; color: var(--charcoal); }
.vp-cols { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.vp-col { display: inline-flex; flex-direction: column; background: #F4F7F3; border-radius: 8px; padding: 4px 10px; }
.vp-col-zh { font-weight: 600; color: var(--charcoal); }
.vp-col-py { font-size: 11px; color: var(--gray-500); }
.vp-ex { background: #FAF6EF; border-left: 3px solid var(--sage); border-radius: 0 10px 10px 0; padding: 8px 12px; line-height: 1.7; }
.vp-ex-zh { color: var(--charcoal); }
.vp-ex-py { font-size: 12px; color: var(--gray-500); }
.vp-ex-en { font-size: 12.5px; color: var(--gray-600); }

/* ---------- 语言点（RTM 格式） ---------- */
.gnum { margin-right: 6px; color: var(--sage-dark); }
.grammar-line { font-size: 13px; color: var(--gray-600); margin-top: 5px; line-height: 1.6; }
.grammar-line b { color: var(--charcoal); }
.grammar-ex { margin-top: 8px; background: #FAF6EF; border-left: 3px solid var(--sage); border-radius: 0 10px 10px 0; padding: 8px 12px; }
.gex-zh { font-size: 14.5px; font-weight: 600; color: var(--charcoal); }
.gex-py { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.gex-en { font-size: 12.5px; color: var(--gray-600); margin-top: 2px; }

/* ============ v20：例句标签 / Key Takeaways / 掌握自测 ============ */
.gex-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--sage-dark);
  background: #E7EFE4; border-radius: 8px; padding: 1px 8px; margin-bottom: 4px;
}
.rplayer-takeaways {
  background: linear-gradient(135deg, #FBF7EE, #F2F6FB);
  border: 1px solid #E8DFC9; border-radius: 16px; padding: 18px 22px;
}
.tk-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tk-item { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; position: relative; }
.tk-item::before { content: '◆'; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--sage-dark); }
.tk-zh { font-size: 14.5px; font-weight: 600; color: var(--charcoal); line-height: 1.65; }
.tk-en { font-size: 12.5px; color: var(--gray-600); line-height: 1.55; }
.rplayer-mastery { border: 2px solid #DCE8D8; background: #FBFDF9; }
.rplayer-mastery .quiz-hint { margin-top: 6px; }

/* ---------- 文章音频（标题下方：全文朗读播放器，v25 起为预生成 mp3） ---------- */
.rplayer-audio { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #F4F7F3, #EDF3FA); border: 1px solid #DCE6E4; border-radius: 14px; padding: 12px 16px; margin: 4px 0 22px; }
.rau-icon { font-size: 22px; line-height: 1; }
.rau-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.rau-title { font-size: 13px; font-weight: 700; color: var(--charcoal); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rau-tag { font-size: 11px; font-weight: 600; color: var(--sage-dark); background: #E7F0EA; border-radius: 999px; padding: 2px 8px; }
.rau-row { display: flex; align-items: center; gap: 10px; }
.rau-row audio { width: 100%; height: 36px; }
.rau-play { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--sage-dark); border: none; border-radius: 999px; padding: 8px 20px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.rau-play:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(90,120,100,.25); }
.rau-prog { display: flex; align-items: center; gap: 10px; }
.rau-bar { flex: 1; height: 8px; background: #E3E9E5; border-radius: 999px; overflow: hidden; }
.rau-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #7FA48C, #5A7864); border-radius: 999px; transition: width .2s ease; }
.rau-pct { font-size: 12px; color: var(--gray-500); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.rau-err { font-size: 12.5px; color: #C43A31; font-weight: 600; }
.rau-manage { display: flex; gap: 8px; flex-wrap: wrap; }
.rau-btn { font-size: 12px; font-weight: 600; color: var(--sage-dark); background: #fff; border: 1px solid #CDDDD3; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.rau-btn:hover { border-color: var(--sage-dark); }
.rau-btn-danger { color: #C43A31; border-color: #E8C7C3; }
.rplayer-audio audio { width: 100%; height: 36px; }

/* ---------- 文章标题：中文主标题 + 英文小副标题 ---------- */
.rplayer-title-en { font-size: 16px; font-weight: 500; color: var(--gray-500); margin: -4px 0 8px; }

/* ============ v12：后退/前进箭头（固定左上角） ============ */
.nav-arrows { position: fixed; top: 80px; left: 12px; z-index: 950; display: flex; flex-direction: column; gap: 6px; }
.nav-arrows button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gray-200);
  background: #fff; color: var(--charcoal); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all .15s ease;
}
.nav-arrows button:hover { background: var(--sage); color: #fff; border-color: var(--sage); }
.nav-arrows button.disabled { opacity: 0.32; pointer-events: none; }
/* 窄屏：箭头改到左下角悬浮，避免遮住页面顶部内容 */
@media (max-width: 1100px) {
  .nav-arrows { top: auto; bottom: 16px; flex-direction: column; }
}

/* ============ v12：统一购买流程（支付 → 约课 → 通知老师） ============ */
.pay-steps-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.pay-step { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--gray-400); font-weight: 500; }
.pay-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-100); color: var(--gray-400); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.pay-step.active { color: var(--charcoal); }
.pay-step.active .pay-step-num { background: var(--sage-dark); color: #fff; }
.pay-step.done { color: var(--sage-dark); }
.pay-step.done .pay-step-num { background: var(--sage); color: #fff; }
.pay-step-arrow { color: var(--gray-300); }
.pay-order { background: #F8F5EE; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.pay-order-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--gray-600); padding: 5px 0; }
.pay-order-row b { color: var(--charcoal); }
.pay-order-total { border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 12px; font-weight: 700; }
.pay-price { color: var(--sage-dark); font-size: 18px; font-weight: 800; }
.pay-h { font-size: 19px; margin: 6px 0 14px; }
.pay-sub { font-size: 14.5px; color: var(--gray-600); margin-bottom: 16px; }
.pay-methods { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.pay-method { border: 2px solid var(--gray-200); border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: border-color .15s ease; }
.pay-method.selected { border-color: var(--sage-dark); box-shadow: 0 2px 12px rgba(90,130,90,0.12); }
.pay-method-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pay-tag { font-size: 11.5px; background: #1677FF; color: #fff; border-radius: 20px; padding: 2px 10px; font-weight: 600; }
.pay-alipay-body { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; align-items: flex-start; }
.pay-qr { width: 180px; height: auto; border-radius: 12px; border: 1px solid var(--gray-200); box-shadow: 0 4px 14px rgba(0,0,0,0.10); }
.pay-alipay-info { flex: 1; min-width: 220px; font-size: 14px; color: var(--gray-600); display: flex; flex-direction: column; gap: 8px; }
.pay-amount-line { font-size: 15px; }
.pay-note { font-size: 12.5px; color: var(--gray-500); line-height: 1.6; }
.pay-nav-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pay-sent { margin-top: 12px; font-size: 14.5px; color: #2E7D32; font-weight: 600; }

/* ============ v12：阅读商店分组（Beginner / 中高级） ============ */
.rhc-group { font-size: 12.5px; font-weight: 700; color: var(--sage-dark); letter-spacing: .4px; margin: 12px 0 4px; padding: 6px 8px; background: #EFF5EC; border-radius: 8px; }
.reading-group-header { font-size: 20px; font-weight: 700; color: var(--charcoal); margin: 26px 0 6px; padding: 12px 18px; border-radius: 12px; }
.reading-group-header.beginner { background: linear-gradient(135deg, #EAF6E4, #F5FAF0); border-left: 5px solid #6FA84C; }
.reading-group-header.inter { background: linear-gradient(135deg, #EAF1F8, #F4F8FC); border-left: 5px solid #3A7CA5; }

/* ============ v12：常用搭配卡片 ============ */
.colloc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.colloc-card { background: #FAF6EF; border: 1px solid #EDE4D3; border-radius: 12px; padding: 12px 14px; }
.colloc-zh { font-size: 15.5px; font-weight: 700; color: var(--charcoal); }
.colloc-py { font-size: 12.5px; color: var(--sage-dark); margin-top: 3px; }
.colloc-en { font-size: 12.5px; color: var(--gray-500); margin-top: 3px; }

/* ============ v25：文章音频（已移除本地上传/占位卡入口） ============ */

/* v12 打印：隐藏箭头、支付页 */
@media print {
  .nav-arrows { display: none !important; }
  #page-payment { display: none !important; }
}

/* v12：阅读播放器左侧目录分组标题 */
.rsp-group { font-size: 11.5px; font-weight: 700; color: var(--sage-dark); letter-spacing: .4px; margin: 14px 0 2px; padding: 5px 10px; background: #EFF5EC; border-radius: 8px; }

/* ============ v13：阅读落地页下拉选课 + 分组区块 ============ */
.rhc-pickers { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.rhc-picker label { display: block; font-size: 12.5px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.rhc-picker select, .rg-select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 14px; background: #fff; color: var(--charcoal); font-family: inherit; }
.rhc-picker select:focus, .rg-select:focus { outline: none; border-color: var(--sage-dark); }
.rhc-pick-note { font-size: 12px; color: var(--gray-500); line-height: 1.6; }
.reading-group-block { margin-bottom: 10px; }
.reading-group-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reading-group-header .rg-select { width: auto; min-width: 230px; max-width: 320px; font-size: 13px; padding: 8px 12px; }

/* ============ v13：词汇练习（选词填空 / 连词成句 / 句子排序） ============ */
.rplayer-quiz { background: #FBF9F4; border: 1px solid var(--gray-200); border-radius: 14px; padding: 20px 22px; }
.quiz-hint { font-size: 13px; color: var(--gray-500); margin-bottom: 14px; }
.fill-list { display: flex; flex-direction: column; gap: 16px; }
.fill-item { padding: 4px 0; }
.fill-num { display: inline-block; min-width: 22px; font-weight: 700; color: var(--sage-dark); }
.fill-s { font-size: 16px; line-height: 2; color: var(--charcoal); }
.fill-blank { display: inline-block; min-width: 60px; padding: 0 6px; border-bottom: 2px solid var(--sage); text-align: center; color: var(--sage-dark); font-weight: 700; cursor: pointer; }
.fill-item.ok .fill-blank { color: #2e7d32; border-color: #2e7d32; }
.fill-item.bad .fill-blank { color: #C43A31; border-color: #C43A31; }
.fill-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-left: 22px; }
.fill-opt { padding: 5px 16px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: #fff; font-size: 14px; color: var(--charcoal); cursor: pointer; transition: border-color .12s ease; }
.fill-opt:hover { border-color: var(--sage-dark); }
.quiz-actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz-result { font-weight: 700; color: var(--sage-dark); }
.build-list { display: flex; flex-direction: column; gap: 16px; }
.build-answer { min-height: 46px; border: 1.5px dashed var(--gray-300); border-radius: 10px; padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; background: #fff; }
.build-ph { color: var(--gray-400); font-size: 13px; align-self: center; }
.build-bank { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 22px; }
.build-tile { border: 1.5px solid var(--gray-200); background: #fff; border-radius: 10px; padding: 4px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.build-tile:hover { border-color: var(--sage-dark); }
.bt-zh { font-size: 15px; color: var(--charcoal); }
.bt-py { font-size: 10.5px; color: var(--gray-500); }
.build-item.ok .build-answer { border-color: #2e7d32; border-style: solid; }
.build-item.bad .build-answer { border-color: #C43A31; border-style: solid; }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 10px 14px; cursor: grab; }
.order-item:active { cursor: grabbing; }
.order-grip { color: var(--gray-400); font-size: 16px; }
.order-text { font-size: 15.5px; flex: 1; line-height: 1.8; color: var(--charcoal); }
.order-marks { display: flex; gap: 4px; }
.order-btn { border: 1px solid var(--gray-200); background: #fff; border-radius: 8px; width: 26px; height: 26px; line-height: 1; cursor: pointer; color: var(--charcoal); }
.order-btn:hover { border-color: var(--sage-dark); }
.order-item.ok { border-color: #2e7d32; background: #F1F8F1; }
.order-item.bad { border-color: #C43A31; background: #FDF1F0; }

/* v13 打印：练习操作按钮不打印 */
@media print {
  .quiz-actions, .order-marks, .order-grip { display: none !important; }
}

/* ============ v13：文化板块真实照片底图（朦胧感） ============ */
.culture-card-image { position: relative; background-size: cover; background-position: center; overflow: hidden; }
.culture-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.28)); }
.culture-card-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); z-index: 1; }
.culture-detail-hero.has-photo { position: relative; background-size: cover; background-position: center 35%; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.culture-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25) 45%, rgba(255,255,255,.75)); backdrop-filter: blur(2px); }
.culture-detail-hero.has-photo .container { position: relative; z-index: 1; }
.culture-back-btn { background: rgba(255,255,255,.85); backdrop-filter: blur(4px); border-radius: 999px; margin-bottom: 10px; }
.culture-detail-hero.has-photo .culture-detail-title, .culture-detail-hero.has-photo .culture-detail-cn { text-shadow: 0 1px 14px rgba(255,255,255,.9); }

/* 茶的品类 */
.tea-types-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 16px 0 8px; }
.tea-type-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-soft); }
.tea-type-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tea-type-name { font-size: 17px; font-weight: 800; color: var(--charcoal); }
.tea-type-py { font-size: 12.5px; color: var(--sage-dark); }
.tea-type-temp { font-size: 12.5px; color: var(--gray-500); margin-top: 6px; }
.tea-type-desc { font-size: 13.5px; color: var(--gray-500); line-height: 1.7; margin-top: 8px; }

/* 泡茶步骤 */
.tea-steps-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 8px; }
.tea-step { display: flex; gap: 14px; background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 14px 18px; align-items: flex-start; }
.tea-step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tea-step-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tea-step-name { font-size: 17px; font-weight: 800; color: var(--charcoal); }
.tea-step-py { font-size: 12.5px; color: var(--sage-dark); }
.tea-step-en { font-size: 12.5px; color: var(--gray-400); }
.tea-step-desc { font-size: 13.5px; color: var(--gray-500); line-height: 1.7; margin-top: 6px; }
.culture-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

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

/* ============ v14：阅读付费墙 + 授权管理 ============ */
.ruc-lock { font-size: 15px; }
.rsp-lock { font-size: 12px; margin-left: 4px; }
.pay-scope-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; margin-top: 8px; cursor: pointer; background: #fff; }
.pay-scope-opt:hover { border-color: var(--sage-dark); }
.pay-scope-opt.selected { border-color: var(--sage); background: #F4F8F2; }
.pay-scope-opt.disabled { opacity: 0.45; cursor: not-allowed; }
.pay-scope-label { flex: 1; font-size: 14.5px; color: var(--charcoal); }
.pay-scope-price { font-weight: 800; color: var(--sage-dark); }
.pay-email-box { background: #FBF9F4; border: 1px solid var(--gray-200); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.pay-email-box label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; color: var(--charcoal); }
.pay-email-box .form-control { width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 14px; font-family: inherit; }
.pay-email-box .form-control:focus { outline: none; border-color: var(--sage-dark); }

/* Teacher 授权管理 */
.auth-panel { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; }
.auth-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.auth-table th, .auth-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.auth-table th { color: var(--gray-500); font-size: 12.5px; font-weight: 700; }
.auth-table td.auth-email { font-weight: 700; color: var(--charcoal); }
.auth-scope-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #E8F3E8; color: #2e7d32; }
.auth-scope-tag.single { background: #E8F0FB; color: #1D5FBF; }
.auth-add-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.auth-add-row .form-group { margin: 0; flex: 1; min-width: 180px; }
.auth-add-row label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; color: var(--gray-500); }
.auth-add-row input, .auth-add-row select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 14px; font-family: inherit; }
.auth-empty { color: var(--gray-400); font-size: 14px; padding: 14px 0; }
.auth-help { background: #FFF9EC; border: 1px solid #F0E2BC; border-radius: 12px; padding: 14px 18px; font-size: 13.5px; line-height: 1.9; color: #7A5B16; margin-bottom: 16px; }

/* 学生卡"当前学习进度"行 */
.real-progress { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--charcoal); background: #F7F9F4; border: 1px solid var(--gray-100); border-radius: 10px; padding: 8px 12px; margin: 8px 0 4px; }
.real-progress b { color: var(--sage-dark); }

/* ============ v15：拼音逐字对齐（ruby 注音） ============ */
.rpara-ruby { line-height: 2.7; }
.rpara-ruby ruby { ruby-position: over; margin-right: 1px; }
.rpara-ruby rt { font-size: 10.5px; color: var(--gray-500); font-weight: 400; letter-spacing: .02em; user-select: none; padding: 0 0 1px; }
.rplayer-main.hide-py .rpara-ruby rt { display: none; }
.rpara-ruby strong.vocab-hl rt { color: var(--sage-dark); font-weight: 700; }
@media print {
  .rpara-ruby rt { color: #666; }
}

/* v15b：阅读播放器打开时给左侧留出前进/后退箭头的空间（箭头 top:80 left:12） */
#page-readingPlayer.active .rplayer-sidebar { padding-left: 46px; }
#page-readingPlayer.active .rplayer-main { padding-left: 10px; }
@media (max-width: 1100px) {
  #page-readingPlayer.active .rplayer-sidebar { padding-left: 0; }
}

/* ===== v16：全局字号放大（约+2号）/ Teacher 页顶部导航避让 / 生词弹窗 ===== */
/* 全局视觉放大：16px 正文 ≈ 18px；打印时还原 */
html { zoom: 1.12; }
@media print { html { zoom: 1; } }

/* 顶部固定导航高约 72px（zoom 后 ≈80px），Teacher 页整体下移避让 */
#page-teacher { padding-top: 80px; }
@media (min-width: 1025px) {
  #page-teacher .teacher-sidebar { top: 80px; height: calc(100vh - 80px); }
  #page-teacher .teacher-topbar { top: 80px; }
}

/* 阅读播放器正文与拼音再加大一档 */
.rplayer-para { font-size: 18px; }
.rpara-py .rpy { font-size: 15px; }
.rpara-ruby rt { font-size: 12.5px; }
.rpara-ruby { line-height: 2.55; }

/* 生词弹窗字体同步放大 */
#vocabPop .vp-word { font-size: 21px; }
#vocabPop { font-size: 15px; }

/* Teacher 页隐藏左上角翻页箭头，避免压住侧栏登录按钮 */
body:has(#page-teacher.active) .nav-arrows { display: none; }

/* Teacher 页隐藏全站 footer：footer 叠在 teacher-main 内容底部遮挡卡片 */
body:has(#page-teacher.active) .footer { display: none !important; }

/* ===== v17：自适应水平测试 ===== */
.placement-intro { max-width: 720px; margin: 0 auto; }
.placement-rules { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 20px; }
.placement-rules h3 { margin-bottom: 12px; }
.placement-rules ul { margin-left: 20px; line-height: 1.9; color: var(--gray-600); }
.placement-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px 28px; }
.placement-form .form-group { margin-bottom: 16px; }
.placement-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--charcoal); }
.placement-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 15px; }
.placement-err { color: var(--clay); font-size: 14px; margin-bottom: 12px; }
.q-py { display: block; color: var(--gray-500); font-size: 0.82em; margin-top: 4px; }
.place-skip-row { text-align: center; margin-top: 18px; }
.place-skip-row a { color: var(--sage-dark); font-size: 14px; }
.level-pill.passed { background: var(--sage); color: var(--white); border-color: var(--sage); }
.placement-log-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.placement-log-table th, .placement-log-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--gray-200); }
.placement-log-table th { color: var(--gray-500); font-weight: 600; }

/* ===== v18：汉字页 + 首页底部水平测试 ===== */
/* 首页底部测试区（复用 section-test 与 quiz 样式） */
#home-level-test .quiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
#home-level-test .section-title { position: relative; z-index: 1; }
#home-level-test .section-subtitle { position: relative; z-index: 1; }
#home-level-test .quiz-level-pills { position: relative; z-index: 1; margin-bottom: 6px; }
#home-level-test .quiz-content { position: relative; z-index: 1; color: var(--charcoal); } /* v21: 测试卡片内默认深色文字，避免继承 section-test 的白字 */

/* 汉字页 hero */
.hanzi-hero { background: linear-gradient(135deg, #7a1f1f 0%, #a83232 55%, #c0392b 100%); color: #fff; padding: 96px 0 64px; text-align: center; }
.hanzi-badge { display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 6px 18px; font-size: 14px; letter-spacing: 1px; margin-bottom: 18px; }
.hanzi-hero .section-title { color: #fff; }
.hanzi-hero .section-subtitle { color: rgba(255,255,255,0.88); max-width: 760px; margin: 14px auto 0; }
.hanzi-hero-chars { margin-top: 34px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hanzi-hero-chars span { font-size: 46px; font-weight: 700; opacity: 0.9; text-shadow: 0 3px 10px rgba(0,0,0,0.25); animation: hanziFloat 4s ease-in-out infinite; }
.hanzi-hero-chars span:nth-child(2n) { animation-delay: 0.6s; }
.hanzi-hero-chars span:nth-child(3n) { animation-delay: 1.2s; }
@keyframes hanziFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ 近义词辨析工坊（Synonyms Lab） ============ */
.syn-hero { background: linear-gradient(135deg, #3E6B6A 0%, #5E8E8D 55%, #7BA7A6 100%); color: #fff; padding: 96px 0 40px; text-align: center; }
.syn-hero .section-title { color: #fff; }
.syn-hero .section-subtitle { color: rgba(255,255,255,0.9); max-width: 780px; margin: 14px auto 0; font-size: 15.5px; }
.syn-tools { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.syn-searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 16px; width: min(520px, 92vw); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.syn-search-ico { font-size: 16px; }
.syn-searchbar input { flex: 1; border: none; outline: none; font-size: 14.5px; padding: 8px 0; background: transparent; color: var(--charcoal); min-width: 0; }
.syn-clear { border: none; background: #EFEBE4; color: var(--gray-600, #666); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; align-items: center; justify-content: center; }
.syn-random { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.55); color: #fff; white-space: nowrap; }
.syn-random:hover { background: rgba(255,255,255,0.26); }
.syn-letters { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.syn-lt { border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); color: #fff; border-radius: 8px; min-width: 32px; padding: 4px 8px; font-size: 13px; cursor: pointer; }
.syn-lt.on { background: #fff; color: var(--sage-dark); font-weight: 700; }
.syn-stats { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.85); }
.syn-list { display: flex; flex-direction: column; gap: 14px; padding: 34px 0 70px; max-width: 860px; margin: 0 auto; }
.syn-card { background: #fff; border: 1px solid #E4E9E7; border-radius: 16px; padding: 18px 22px; cursor: pointer; transition: box-shadow .18s ease, border-color .18s ease; }
.syn-card:hover { box-shadow: 0 8px 22px rgba(62,107,106,0.12); border-color: var(--sage); }
.syn-card.open { border-color: var(--sage); box-shadow: 0 10px 26px rgba(62,107,106,0.14); cursor: default; }
.syn-head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.syn-w { display: inline-flex; align-items: baseline; gap: 8px; }
.syn-w b { font-size: 24px; color: var(--charcoal); }
.syn-w i { font-style: normal; font-size: 14px; color: var(--sage-dark); }
.syn-w em { font-style: normal; font-size: 12px; color: #fff; background: var(--sage); border-radius: 6px; padding: 2px 7px; }
.syn-vs { color: #C9A227; font-size: 18px; }
.syn-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.syn-en { font-size: 13px; color: var(--gray-500, #777); }
.syn-src { font-size: 12px; color: var(--sage-dark); background: #EDF3F2; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.syn-detail { margin-top: 18px; border-top: 1px dashed #DCE6E4; padding-top: 16px; text-align: left; display: flex; flex-direction: column; gap: 18px; }
.syn-sec h4 { font-size: 14.5px; color: var(--sage-dark); margin-bottom: 10px; }
.syn-en-label { font-weight: 400; color: var(--gray-400, #999); font-size: 12.5px; }
.syn-note { background: var(--cream-dark); border-left: 3px solid var(--sage); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-bottom: 8px; }
.syn-note .zh { font-size: 14.5px; color: var(--charcoal); }
.syn-note .en { font-size: 13.5px; color: var(--gray-500, #777); margin-top: 4px; }
.syn-def { margin-bottom: 10px; font-size: 14.5px; color: var(--charcoal); }
.syn-def .w { color: var(--sage-dark); margin-right: 6px; font-size: 15.5px; }
.syn-def .gl { color: #8A7B4F; font-size: 13px; }
.syn-def p { display: inline; }
.syn-ex { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.syn-ex li .s { font-size: 14.5px; color: var(--charcoal); }
.syn-ex li .alt { font-size: 13.5px; color: #A85B2A; margin-top: 2px; }
.syn-ex li .swap { font-size: 13.5px; color: #2E7D4F; margin-top: 3px; }
.syn-ex li .swap.bad { color: #C43A31; }
.syn-ex li .py { font-size: 13px; color: var(--sage-dark); margin-top: 2px; }
.syn-ex li .en { font-size: 13.5px; color: var(--gray-500, #777); margin-top: 2px; }
.syn-empty { text-align: center; color: var(--gray-500, #777); padding: 50px 0; font-size: 15px; }
@media (max-width: 640px) {
  .syn-hero { padding: 80px 0 32px; }
  .syn-w b { font-size: 20px; }
  .syn-tools { flex-direction: column; }
  .syn-card { padding: 14px 16px; }
}

/* 免费视频卡片 */
.hanzi-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hanzi-video-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform 0.25s, box-shadow 0.25s; }
.hanzi-video-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,0.12); }
.hvc-visual { position: relative; height: 150px; background: linear-gradient(135deg, #2c3e50, #4a6072); display: flex; align-items: center; justify-content: center; }
.hvc-visual .hvc-ch { color: #fff; font-size: 76px; font-weight: 700; text-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.hvc-visual .hvc-play { position: absolute; right: 14px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.92); color: #7a1f1f; display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px; }
.hvc-visual .hvc-dur { position: absolute; left: 12px; top: 12px; background: var(--sage); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.hvc-body { padding: 16px 18px 18px; }
.hvc-body h4 { font-size: 16px; margin-bottom: 8px; }
.hvc-py { color: var(--gray-500); font-weight: 400; font-size: 13px; margin-left: 6px; }
.hvc-body p { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 10px; }
.hvc-link { color: var(--sage-dark); font-size: 14px; font-weight: 600; }

/* 造字法 tabs */
.hanzi-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.hanzi-tab { border: 1.5px solid var(--gray-300); background: var(--white); border-radius: 999px; padding: 10px 20px; font-size: 15px; cursor: pointer; transition: all 0.2s; }
.hanzi-tab.active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.hanzi-method-head { text-align: center; margin-bottom: 24px; }
.hanzi-method-head h3 { font-size: 24px; margin-bottom: 6px; }
.hanzi-slogan { color: var(--sage-dark); font-weight: 600; font-size: 16px; }
.hanzi-method-desc { color: var(--gray-600); max-width: 640px; margin: 8px auto 0; line-height: 1.7; }
.hanzi-char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.hanzi-char-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; }
.hcc-left { text-align: center; min-width: 120px; }
.hcc-parts { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 4px; }
.hcc-part { font-size: 22px; color: var(--gray-500); font-weight: 600; }
.hcc-plus, .hcc-arrow { color: var(--gray-400); font-size: 14px; }
.hcc-char { font-size: 52px; font-weight: 700; line-height: 1.15; color: var(--charcoal); }
.hcc-py { color: var(--gray-500); font-size: 14px; margin-top: 4px; }
.hcc-right p { font-size: 14.5px; line-height: 1.75; color: var(--gray-600); }
.hanzi-note { text-align: center; color: var(--gray-500); font-size: 14px; margin-top: 26px; }

/* 为什么学 + CTA */
.hanzi-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 40px; }
.hanzi-why-card { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius); padding: 22px; color: #fff; }
.hanzi-why-card .hwc-icon { font-size: 30px; }
.hanzi-why-card h4 { margin: 10px 0 8px; color: #fff; }
.hanzi-why-card p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.hanzi-cta { background: var(--white); border-radius: var(--radius-lg, 20px); padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hanzi-cta-text h3 { font-size: 24px; margin-bottom: 10px; }
.hanzi-cta-text p { color: var(--gray-600); line-height: 1.7; max-width: 560px; }
.hanzi-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== v18b：内嵌视频 + 课程详情视频 ===== */
/* 汉字页主视频 */
.hanzi-video-wrap { max-width: 860px; margin: 0 auto 30px; }
.hanzi-video-wrap video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0,0,0,0.18); display: block; }
.hv-caption { text-align: center; color: var(--gray-500); font-size: 14px; margin-top: 12px; }
.hanzi-story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hanzi-story-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.hsc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.hsc-ch { font-size: 44px; font-weight: 700; color: var(--charcoal); line-height: 1.1; }
.hsc-py { color: var(--gray-500); font-size: 15px; }
.hanzi-story-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.hanzi-story-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* 课程详情页内嵌视频（替代左侧封面图） */
.course-detail-video video { width: 100%; height: 280px; object-fit: contain; background: #000; border-radius: var(--radius-sm); display: block; }
.cdv-caption { text-align: center; color: var(--gray-500); font-size: 13.5px; margin-top: 8px; }
