/* =====================================================================
   宝宝会学官方网站 - 晴空蓝 + 阳光黄设计系统
   对齐 Flutter 客户端 app_theme.dart 与实机运行界面，零 emoji，全矢量图标
   ===================================================================== */

:root {
  --bg: #f4f9ff;
  --surface: #ffffff;
  --surface-sky: #eef6ff;
  --primary: #1463bd;
  --primary-hover: #0f52a0;
  --primary-light: #3c96f0;
  --primary-soft: #e2f0ff;
  --primary-pale: #f2f8ff;
  --accent: #ffb938;
  --accent-deep: #b86800;
  --good: #167c41;
  --coral: #d6452c;

  --ink: #13243a;
  --ink-secondary: #304966;
  --ink-muted: #526780;
  --hairline: #dfebf8;

  --primary-gradient: linear-gradient(135deg, #2b86e3 0%, #1463bd 100%);
  --sky-backdrop: linear-gradient(180deg, #cbe4ff 0%, #e4f2ff 56%, #f6faff 100%);

  --shadow-device: 0 32px 64px -20px rgba(20, 62, 117, 0.34), 0 6px 18px rgba(20, 62, 117, 0.12);
  --shadow-card: 0 20px 42px -16px rgba(32, 88, 156, 0.2), 0 3px 10px rgba(32, 88, 156, 0.08);
  --shadow-pill: 0 8px 20px -6px rgba(32, 88, 156, 0.16), 0 2px 5px rgba(32, 88, 156, 0.06);
  --shadow-primary: 0 12px 24px -8px rgba(20, 99, 189, 0.36);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* 品牌化浏览器原生表面 */
::selection {
  background: rgba(31, 127, 224, 0.2);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(31, 127, 224, 0.55);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-pale);
}

::-webkit-scrollbar-thumb {
  background: #b7d6f5;
  border-radius: 999px;
  border: 2px solid var(--primary-pale);
}

::-webkit-scrollbar-thumb:hover {
  background: #89bcf0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--primary-pale);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 6px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.24s ease, box-shadow 0.24s ease, padding 0.24s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(24, 72, 130, 0.08);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(19, 36, 58, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-domain {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2.5px;
  border-radius: 99px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ==================== 按钮系统 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--surface);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -6px rgba(31, 127, 224, 0.5);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid #c5dff9;
  box-shadow: var(--shadow-pill);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--primary-pale);
  border-color: var(--primary-light);
}

/* ==================== Hero 晴空首屏 ==================== */
.hero {
  position: relative;
  background: var(--sky-backdrop);
  padding: 116px 20px 92px;
  overflow: hidden;
}

.hero-sky-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sun-glow {
  position: absolute;
  top: -80px;
  right: 8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 92, 0.52) 0%, rgba(255, 185, 56, 0.14) 55%, rgba(255, 185, 56, 0) 76%);
}

.sky-cloud {
  position: absolute;
  filter: drop-shadow(0 12px 24px rgba(31, 127, 224, 0.08));
}

.cloud-left {
  top: 86px;
  left: -34px;
  width: 220px;
  animation: driftCloud 20s ease-in-out infinite;
}

.cloud-right {
  top: 138px;
  right: -24px;
  width: 185px;
  animation: driftCloud 24s ease-in-out infinite reverse;
}

@keyframes driftCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.accent-ink {
  color: var(--primary);
}

.hero-subtitle {
  margin: 0 auto 28px;
  max-width: 650px;
  font-size: 17px;
  color: var(--ink-secondary);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  font-weight: 600;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-highlights svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==================== 真实运行截图展示舞台 ==================== */
.device-showcase {
  max-width: 980px;
  margin: 0 auto;
}

.ipad-bezel {
  position: relative;
  background: #142234;
  border-radius: 30px;
  padding: 13px;
  box-shadow: var(--shadow-device), inset 0 0 0 1.5px rgba(255, 255, 255, 0.24);
}

.ipad-camera {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #47607e;
}

.ipad-viewport {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  background: #dbeeff;
  aspect-ratio: 16 / 8.2;
}

.ipad-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.22s ease;
}

.ipad-viewport img.is-switching {
  opacity: 0.35;
}

.zoom-screen-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(19, 36, 58, 0.76);
  backdrop-filter: blur(8px);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.zoom-screen-btn:hover {
  background: rgba(19, 36, 58, 0.92);
  transform: translateY(-1px);
}

/* 仿真实 APP 顶栏胶囊切换条 */
.screen-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.screen-pill {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--surface);
  color: var(--ink-secondary);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-pill);
  transition: all 0.2s ease;
}

.screen-pill:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.screen-pill.active {
  background: var(--primary-gradient);
  color: var(--surface);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.screen-caption {
  margin: 14px auto 0;
  text-align: center;
  max-width: 680px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.sky-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.sky-divider svg {
  width: 100%;
  height: 58px;
}

/* ==================== 通用板块 ==================== */
.section {
  padding: 92px 0;
}

.section-white {
  background: var(--surface);
}

.section-sky {
  background: linear-gradient(180deg, #eff7ff 0%, #f8fbff 100%);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head h2,
.story-copy h2,
.tv-copy h2,
.safety-lead h2,
.download-panel-head h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.story-lead {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--ink-secondary);
}

/* ==================== 交替编辑式产品故事布局 ==================== */
.story-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: 54px;
}

.story-reverse {
  grid-template-columns: 1fr 1.06fr;
}

/* 实机双图叠放展示 */
.screenshot-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shot-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--hairline);
  background: var(--primary-pale);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -16px rgba(24, 72, 130, 0.26);
}

.shot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-secondary {
  width: 92%;
  align-self: flex-end;
}

/* 能力说明列表 */
.capability-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cap-blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.cap-gold {
  background: #fff2d1;
  color: var(--accent-deep);
}

.cap-mint {
  background: #dff7eb;
  color: var(--good);
}

.capability-list h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.capability-list p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* ==================== FollowReadView 真实色板交互演示 ==================== */
.follow-demo-box {
  background: #fff9eb;
  border: 1.5px solid #ffd57a;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-pill);
}

.follow-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.follow-demo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #8f5a00;
}

.follow-score-badge {
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.follow-score-badge.scored {
  background: #def6e8;
  color: var(--good);
}

.follow-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fw-word {
  border: 1.5px solid #f0dfba;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.fw-word:hover,
.fw-word.selected {
  background: #ffefc7;
  border-color: var(--accent);
  color: #8a5200;
  transform: translateY(-1px);
}

.fw-word.scored-good {
  background: #e1f8eb;
  border-color: #9de0b9;
  color: var(--good);
}

.follow-dict-row {
  background: var(--surface);
  border: 1px solid #f0e3c7;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.follow-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fw-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
}

.fw-wave span {
  width: 4.5px;
  height: 7px;
  border-radius: 99px;
  background: #f0bf9e;
}

.fw-wave.recording span {
  background: var(--coral);
  animation: eqPulse 0.65s ease-in-out infinite alternate;
}

.fw-wave.recording span:nth-child(2n) { animation-delay: 0.16s; }
.fw-wave.recording span:nth-child(3n) { animation-delay: 0.3s; }

@keyframes eqPulse {
  from { height: 6px; }
  to { height: 24px; }
}

/* ==================== 单词炸了 1:1 晴空试玩板（还原 5.jpg） ==================== */
.wg-real-board {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, #d0e7ff 0%, #e7f3ff 62%, #f4f9ff 100%);
  border: 1.5px solid #c9e1fb;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.wg-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.wg-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: var(--shadow-pill);
}

.wg-app-pill svg {
  color: var(--accent-deep);
}

.wg-status-pill {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.wg-status-pill.done {
  color: var(--good);
}

.wg-ghost-word {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 82px;
  margin-bottom: 16px;
}

.wg-ghost-char {
  width: 62px;
  height: 74px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: rgba(135, 165, 200, 0.45);
  transition: transform 0.22s ease, color 0.22s ease;
}

.wg-ghost-char.filled {
  color: var(--primary);
  transform: scale(1.08);
}

.wg-ghost-char.celebrate {
  color: var(--good);
}

.wg-letter-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 76px;
  margin-bottom: 20px;
}

/* 还原真实 APP 粗深蓝描边 + 卡通双眼彩色字母 */
.wg-cartoon-btn {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  border: 3px solid #1e2842;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 20px -6px rgba(24, 48, 86, 0.28), inset 0 4px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.18s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.wg-cartoon-btn:hover:not(:disabled) {
  transform: translateY(-4px) rotate(-2deg);
}

.wg-cartoon-btn:disabled {
  opacity: 0.24;
  transform: scale(0.9);
  cursor: default;
}

.wg-cartoon-btn .eyes {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  pointer-events: none;
}

.wg-cartoon-btn .eye {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #1e2842;
  position: relative;
}

.wg-cartoon-btn .eye::after {
  content: "";
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #1e2842;
  right: 1px;
  top: 2px;
}

.wg-c-coral { background: #ef4b6c; }
.wg-c-orange { background: #f8a21b; }
.wg-c-green { background: #1cb869; }
.wg-c-blue { background: #2d8cf0; }

.wg-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wg-pill-btn,
.wg-pill-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.wg-pill-counter {
  color: var(--ink);
}

.wg-pill-btn:hover {
  background: var(--primary-pale);
}

/* ==================== 磨耳朵熏听界面（还原 ListenPage 左右双栏） ==================== */
.listen-app-shell {
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  background: var(--surface);
  border: 1.5px solid #cce2fa;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.listen-left {
  background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--hairline);
}

.vinyl-stage {
  position: relative;
  margin-bottom: 14px;
}

.vinyl-disc {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, #354b66 26%, #142133 28%, #1e314a 68%, #0e1826 100%);
  padding: 22px;
  box-shadow: 0 14px 28px rgba(19, 36, 58, 0.24);
  animation: spinVinyl 10s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc.playing {
  animation-play-state: running;
}

.vinyl-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes spinVinyl {
  to { transform: rotate(360deg); }
}

.eq-bars {
  position: absolute;
  right: -30px;
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.eq-bars i {
  display: block;
  width: 3.5px;
  height: 5px;
  border-radius: 4px;
  background: var(--primary);
}

.eq-bars.playing i {
  animation: eqPulse 0.58s ease-in-out infinite alternate;
}

.eq-bars.playing i:nth-child(2) { animation-delay: 0.14s; }
.eq-bars.playing i:nth-child(3) { animation-delay: 0.28s; }
.eq-bars.playing i:nth-child(4) { animation-delay: 0.1s; }
.eq-bars.playing i:nth-child(5) { animation-delay: 0.22s; }

.listen-now-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.listen-now-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.listen-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cce2fa;
  background: var(--primary-pale);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.icon-circle-btn:hover {
  background: var(--primary-soft);
  transform: scale(1.05);
}

.play-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: transform 0.18s ease;
}

.play-circle-btn:hover {
  transform: scale(1.06);
}

.sleep-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  width: 100%;
}

.timer-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.timer-chip {
  border: 1px solid var(--hairline);
  background: var(--primary-pale);
  color: var(--ink-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.timer-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

.listen-right {
  background: var(--surface);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listen-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.queue-mode-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.listen-queue {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listen-queue li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.listen-queue li:hover {
  border-color: #c5dff9;
}

.listen-queue li.active {
  background: var(--primary-pale);
  border-color: var(--primary-light);
}

.q-index {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.q-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.3;
}

.q-text span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ==================== 大屏智能电视板块 ==================== */
.tv-layout {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 54px;
}

.tv-hardware {
  position: relative;
  padding-bottom: 36px;
}

.tv-bezel {
  background: #142234;
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-device);
  overflow: hidden;
  cursor: zoom-in;
}

.tv-bezel img {
  width: 100%;
  border-radius: 12px;
}

.tv-neck {
  width: 58px;
  height: 18px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1b2c42, #324a68);
}

.tv-base {
  width: 196px;
  height: 10px;
  margin: 0 auto;
  border-radius: 99px;
  background: linear-gradient(180deg, #2d4460, #142234);
  box-shadow: 0 10px 18px rgba(19, 36, 58, 0.22);
}

.phone-companion {
  position: absolute;
  right: 12px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
}

.phone-companion-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-companion strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.phone-companion span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.tv-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tv-flow-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-pill);
}

.tv-flow-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-flow-item h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 800;
}

.tv-flow-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* ==================== 家长守护（不对称双栏 + 细线列表） ==================== */
.safety-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: start;
}

.mascot-badge-wrap {
  margin-bottom: 20px;
}

.safety-mascot {
  width: 136px;
  height: 136px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--primary-soft);
}

.safety-lead p {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--ink-secondary);
}

.agreement-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.agreement-links-inline a {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.safety-rows {
  display: flex;
  flex-direction: column;
}

.safety-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.safety-row:first-child {
  padding-top: 6px;
}

.safety-row:last-child {
  border-bottom: none;
}

.safety-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-pale);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.safety-row h3 {
  margin: 0 0 5px;
  font-size: 17.5px;
  font-weight: 800;
}

.safety-row p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* ==================== 多端下载中心（内联切换面板） ==================== */
.download-panel {
  background: var(--surface);
  border: 1.5px solid #cde2fb;
  border-radius: 30px;
  padding: 48px 44px;
  box-shadow: var(--shadow-card);
}

.download-panel-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 34px;
}

.download-panel-head p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-muted);
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid var(--hairline);
  background: var(--primary-pale);
  text-align: left;
  transition: all 0.2s ease;
}

.platform-tab:hover {
  border-color: var(--primary-light);
}

.platform-tab.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--surface);
  box-shadow: var(--shadow-primary);
}

.plat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-tab.active .plat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--surface);
}

.plat-text strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
}

.plat-text span {
  font-size: 13px;
  opacity: 0.84;
}

.platform-detail {
  padding: 28px 4px 4px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.platform-detail-copy {
  flex: 1 1 480px;
}

.platform-detail-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.platform-detail-copy p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.plat-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.plat-steps li + li {
  margin-top: 6px;
}

.platform-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ==================== FAQ 折叠面板 ==================== */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(32, 88, 156, 0.05);
}

.faq-q {
  width: 100%;
  border: none;
  background: transparent;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.faq-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--surface);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-item.open .faq-a {
  max-height: 240px;
}

.faq-a p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.inline-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==================== 商务与反馈联系条 ==================== */
.contact-strip {
  background: var(--primary-pale);
  border-top: 1px solid var(--hairline);
  padding: 40px 20px;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-inner h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.contact-inner p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px solid #c5dff9;
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
}

/* ==================== 页脚 ==================== */
.footer {
  background: #102034;
  color: #cbd9ea;
  padding: 58px 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .brand-logo {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.footer .brand-name {
  color: var(--surface);
}

.footer .brand-domain {
  color: #9cb6d4;
}

.footer-desc {
  margin: 14px 0 0;
  font-size: 14px;
  color: #9cb6d4;
  max-width: 360px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.38fr;
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--surface);
}

.footer-col a,
.footer-meta-text {
  font-size: 13.5px;
  color: #a9c0db;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--surface);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #92adc9;
}

.footer-bottom p {
  margin: 0;
}

.icp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icp-link {
  color: #c2daf5;
  font-weight: 600;
}

.icp-link:hover {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sep {
  opacity: 0.4;
}

/* ==================== 高清大图灯箱 & Toast ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(12, 24, 40, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  max-width: 1120px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48);
  margin: 0 auto;
}

.lightbox-caption {
  margin: 14px 0 0;
  color: #e6f0fc;
  font-size: 15px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--surface);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 300;
  box-shadow: 0 12px 26px rgba(19, 36, 58, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 滚动入场（默认平滑且不遗漏） */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==================== 全端响应式适配 ==================== */
@media (max-width: 1024px) {
  .story-grid,
  .story-reverse,
  .tv-layout,
  .safety-grid,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .story-reverse .story-media {
    order: -1;
  }

  .platform-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    background: var(--surface);
    border-radius: 20px;
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--hairline);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 98px 20px 74px;
  }

  .ipad-bezel {
    padding: 8px;
    border-radius: 20px;
  }

  .ipad-viewport {
    border-radius: 13px;
    aspect-ratio: 16 / 9;
  }

  .listen-app-shell {
    grid-template-columns: 1fr;
  }

  .listen-left {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .phone-companion {
    position: static;
    margin-top: 16px;
  }

  .download-panel {
    padding: 32px 20px;
  }

  .platform-detail {
    padding: 22px 18px;
  }

  .platform-detail-actions {
    width: 100%;
  }

  .platform-detail-actions .btn {
    width: 100%;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}
