@charset "UTF-8";

/* =========================================================
   猫卡英语 · 浅色通透液态玻璃升级层 (4pt Grid + 5-Tier Radius)
   ========================================================= */
:root {
  color-scheme: light;

  /* 1. 极简色板：冷灰底 + 暖黑墨 + 单点品牌紫 + 暖白折射 */
  --bg: #f9f8f8;
  --surface: #ffffff;
  --ink: #1a1615;
  --secondary: #575664;
  --muted: #82818f;
  --accent: #7c67dc;
  --accent-strong: #6852c9;
  --accent-soft: rgba(124, 103, 220, 0.1);
  --warm-glow: #eae2d3;
  --cool-glow: #cfd9f5;

  /* 2. 浅色液态玻璃：12px 通透模糊 + 双层细描边 + 轻量化投影 */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.88);
  --line: rgba(26, 22, 21, 0.08);
  --blur-glass: 12px;
  --shadow-glass:
    0 0 0 1px rgba(26, 22, 21, 0.05),
    0 12px 32px -16px rgba(28, 26, 46, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);

  /* 3. 克制主按钮：纯黑中性色，零视觉干扰 */
  --button: #1a1615;
  --button-text: #ffffff;
  --lavender: rgba(124, 103, 220, 0.09);
  --mint: #e8f3ee;
  --pink: #f6eaef;
  --yellow: #f4efe4;

  /* 4. 严格 5 级圆角规范 */
  --r-pill: 100px;
  --r-card: 24px;
  --r-panel: 16px;
  --r-media: 12px;
  --r-input: 10px;

  /* 5. 4pt 网格间距阶梯 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;

  /* 6. 字体栈：英文 Montserrat + 中文跟随系统 */
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 夜间模式对齐冷调液态玻璃配方 */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090c;
  --surface: #12141c;
  --ink: #ffffff;
  --secondary: #a8aab8;
  --muted: #767887;
  --accent: #9b88f2;
  --accent-strong: #b4a4fa;
  --accent-soft: rgba(155, 136, 242, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.1);
  --shadow-glass:
    0 16px 40px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --button: #ffffff;
  --button-text: #1a1615;
  --lavender: rgba(155, 136, 242, 0.14);
}

/* ---------- 基础排版重构 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.025em;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--blur-glass)) saturate(135%);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(135%);
}

/* ---------- 按钮极简规范 ---------- */
.button {
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  gap: var(--s-2);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.large {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 15px;
  gap: var(--s-2);
}

.primary,
.nav-cta {
  background: var(--button);
  color: var(--button-text);
  box-shadow: 0 6px 18px -10px rgba(26, 22, 21, 0.35);
}

.primary:hover,
.nav-cta:hover {
  box-shadow: 0 10px 24px -10px rgba(26, 22, 21, 0.42);
}

.secondary {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
}

.secondary:hover {
  border-color: rgba(124, 103, 220, 0.35);
}

/* ---------- 顶部悬浮胶囊导航 ---------- */
.site-header {
  top: var(--s-4);
  height: 56px;
  padding: 6px 8px 6px 16px;
  border-radius: var(--r-pill);
  background: var(--glass-strong);
}

.brand {
  font-size: 16px;
  gap: 10px;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand small {
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-top: 1px;
  color: var(--muted);
}

.site-header nav {
  gap: var(--s-8);
}

.site-header nav a {
  font-size: 14px;
  font-weight: 500;
}

.nav-cta {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}

/* ---------- 首屏 Hero：流动柔光 + 干净聚焦 ---------- */
.hero {
  padding-top: 128px;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 58% at 52% 24%, rgba(207, 217, 245, 0.55), transparent 72%),
    radial-gradient(ellipse 52% 46% at 74% 38%, rgba(234, 226, 211, 0.65), transparent 70%),
    radial-gradient(ellipse 46% 42% at 24% 48%, rgba(223, 217, 247, 0.42), transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
}

[data-theme="dark"] .hero-aurora {
  background:
    radial-gradient(ellipse 62% 55% at 50% 28%, rgba(56, 78, 148, 0.42), transparent 72%),
    radial-gradient(ellipse 46% 40% at 72% 40%, rgba(206, 200, 187, 0.16), transparent 68%);
}

.hero-aurora canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.eyebrow {
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  background: var(--glass-strong);
  border-radius: var(--r-pill);
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: var(--s-5) 0 var(--s-4);
  font-weight: 700;
  color: var(--ink);
}

.hero h1 span,
[data-theme="dark"] .hero h1 span {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--ink);
  opacity: 0.86;
}

.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--secondary);
  margin-bottom: var(--s-6);
}

.official-entries {
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.official-entries > .button {
  min-height: 48px;
}

.cta-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--s-4);
}

/* 首屏场景做减法：去轨道线与文本星芒，收窄旋转角 */
.orbit,
.scene-spark {
  display: none;
}

.scene-halo {
  background: radial-gradient(
    ellipse at 50% 60%,
    rgba(255, 255, 255, 0.82),
    rgba(234, 226, 211, 0.35) 45%,
    transparent 74%
  );
  filter: blur(20px);
}

.hero-word {
  border-radius: var(--r-card);
  padding: var(--s-5);
  transform: rotate(-3deg);
  background: var(--glass-strong);
  box-shadow: var(--shadow-glass);
}

.hero-word .mini-label {
  font-size: 12px;
  margin-bottom: var(--s-3);
}

.word-tag {
  font-size: 12px;
  padding: 4px 10px;
}

.hero-word > strong {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: var(--s-3);
}

.hero-word .phonetic,
.hero-word .word-meaning {
  font-size: 13px;
}

.word-card-footer > span {
  font-size: 12px;
}

.hero-phone {
  transform: rotate(3.5deg);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 20px 44px -18px rgba(26, 22, 21, 0.18),
    inset 0 0 0 1px rgba(26, 22, 21, 0.08);
}

.voice-bubble {
  border-radius: var(--r-panel);
  padding: 12px 16px;
  transform: rotate(-1.5deg);
  background: var(--glass-strong);
}

.voice-bubble strong {
  font-size: 14px;
}

.voice-bubble div > span {
  font-size: 12px;
}

.scene-caption {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.feature-rail {
  margin-top: var(--s-12);
  padding: var(--s-6) var(--s-4);
}

.feature-rail a {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 区块通用字阶与留白 ---------- */
.section-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.section-intro h2,
.words-copy h2,
.theme-text h2,
.faq-section h2,
.final-cta h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-top: var(--s-4);
}

.section-intro p,
.words-copy > p,
.theme-text > p,
.final-cta p {
  font-size: 16px;
  line-height: 1.65;
  margin-top: var(--s-4);
}

.small-label {
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 01 真实课程体验区 ---------- */
.learning-section {
  padding-top: var(--s-24);
  padding-bottom: var(--s-24);
}

.lesson-copy h3 {
  font-size: 26px;
  line-height: 1.35;
  margin-top: var(--s-3);
}

.lesson-copy > p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 360px;
  margin-top: var(--s-4);
}

.lesson-tabs {
  padding: var(--s-1);
  border-radius: var(--r-pill);
  gap: var(--s-1);
  background: var(--glass-strong);
}

.lesson-tabs button {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
}

.demo-note {
  font-size: 13px;
  margin: var(--s-4) 0 0 var(--s-1);
}

.lesson-window {
  border-radius: var(--r-card);
  padding: var(--s-3);
  background: var(--glass-strong);
  box-shadow: var(--shadow-glass);
}

.window-topbar {
  height: 32px;
  font-size: 12px;
  padding: 0 var(--s-2) var(--s-2);
}

.lesson-video,
.real-lesson .real-video,
.video-start {
  border-radius: var(--r-media);
}

.real-course-heading {
  padding: var(--s-4) var(--s-3) var(--s-2);
}

.real-course-heading strong {
  font-size: 16px;
}

.real-course-heading div > span,
.lesson-status,
.practice-toolbar > span,
.playback-speed,
.playback-speed select {
  font-size: 13px;
}

.real-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.practice-toolbar {
  padding: var(--s-3);
  gap: var(--s-3);
}

.demo-panels {
  margin-top: var(--s-3);
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
}

.demo-panel {
  padding: var(--s-5);
}

.panel-meta {
  font-size: 13px;
}

.real-panels .english-sentence {
  font-size: 20px;
  line-height: 1.55;
  margin-top: var(--s-4);
}

.real-panels .translation {
  font-size: 14px;
  line-height: 1.65;
  margin-top: var(--s-2);
}

.real-panels .demo-tools button,
.real-panels .demo-tools > span,
.subtitle-row,
.dictation-label,
.real-panels .inline-feedback,
.real-word-actions .button,
.real-word-actions .text-button,
.record-actions .button {
  font-size: 13px;
}

.subtitle-row {
  border-radius: var(--r-input);
  padding: 10px 12px;
}

.subtitle-row-time,
.window-footer,
.local-progress-note,
.record-privacy {
  font-size: 12px;
}

#dictation-input {
  border-radius: var(--r-input);
  padding: var(--s-3);
  font-size: 15px;
}

.dictation-answer {
  border-radius: var(--r-input);
  font-size: 14px;
}

/* ---------- 02 灵感词卡区 ---------- */
.words-section {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-24) 0;
}

.stack-layer {
  border-radius: var(--r-card);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.layer-yellow {
  background: rgba(234, 226, 211, 0.55);
  transform: rotate(5deg);
}

.layer-green {
  background: rgba(207, 217, 245, 0.42);
  transform: rotate(-4deg);
}

.layer-pink {
  background: rgba(255, 255, 255, 0.6);
  transform: rotate(2deg);
}

[data-theme="dark"] .layer-yellow { background: rgba(206, 200, 187, 0.08); }
[data-theme="dark"] .layer-green { background: rgba(124, 103, 220, 0.1); }
[data-theme="dark"] .layer-pink { background: rgba(255, 255, 255, 0.05); }

.interactive-word {
  border-radius: var(--r-card);
  background: var(--glass-strong);
  box-shadow: var(--shadow-glass);
}

.interactive-word:after {
  background: radial-gradient(circle, rgba(234, 226, 211, 0.5), transparent 70%);
}

.interactive-card-header,
.card-bottom-hint,
.swipe-controls,
.swipe-controls button,
.word-types > span {
  font-size: 12px;
}

.small-feature strong {
  font-size: 15px;
}

.small-feature p,
.text-link {
  font-size: 14px;
}

/* ---------- 03 猫咪陪练区 & 日夜切换 & FAQ & 页尾 ---------- */
.play-section {
  padding-top: var(--s-24);
  padding-bottom: var(--s-24);
}

.battle-card,
.habit-card,
.theme-showcase,
dialog {
  border-radius: var(--r-card);
  background: var(--glass-strong);
  box-shadow: var(--shadow-glass);
}

.battle-card h3,
.habit-card h3 {
  font-size: 26px;
  margin-top: var(--s-4);
}

.battle-card p,
.habit-card p,
.habit-note {
  font-size: 14px;
  line-height: 1.65;
}

.outline-pill,
.habit-note small {
  font-size: 12px;
}

.week-checkin {
  border-radius: var(--r-panel);
  padding: var(--s-4);
  background: var(--glass-strong);
}

.week-checkin > span {
  font-size: 12px;
}

.theme-selector button {
  font-size: 13px;
  padding: 8px 16px;
}

.theme-art-caption {
  border-radius: var(--r-panel);
  font-size: 12px;
}

.faq-list summary {
  font-size: 16px;
  padding: var(--s-6) 0;
}

.faq-list details p {
  font-size: 14px;
  line-height: 1.75;
}

.site-footer {
  padding-top: var(--s-6);
  padding-bottom: var(--s-8);
}

.site-footer .brand,
.site-footer > span {
  font-size: 13px;
}

.quiz-answers button {
  border-radius: var(--r-input);
  font-size: 14px;
}

.quiz-answers button span {
  font-size: 14px;
}

.miniapp-code a {
  border-radius: var(--r-media);
}

/* ---------- 移动端 4pt 精修 ---------- */
@media (max-width: 560px) {
  .hero {
    padding-top: 96px;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.025em;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-word .mini-label,
  .hero-word .word-meaning,
  .word-card-footer > span,
  .voice-bubble div > span {
    font-size: 11px;
  }
  .official-entries {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: var(--s-2);
  }
  .official-entries > .button {
    min-height: 44px;
    font-size: 14px;
    gap: var(--s-2);
  }
  .official-entries > .button svg {
    display: inline-block;
  }
}
