/* ============================================================
   儿童音乐启蒙乐园 · 莫兰迪低饱和设计系统
   ============================================================ */
:root {
  --c-primary: #58528e;
  --c-accent: #8868a1;
  --c-cta: #af8850;
  --c-bg: #f9f8fb;
  --c-surface: #ffffff;
  --c-text: #1d1b2c;
  --c-muted: #5f5c7a;
  --c-border: #dcdbe6;
  --c-primary-soft: rgba(88, 82, 142, 0.10);
  --c-accent-soft: rgba(136, 104, 161, 0.12);
  --c-cta-soft: rgba(175, 136, 80, 0.14);

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(29, 27, 44, 0.06), 0 2px 8px rgba(29, 27, 44, 0.04);
  --shadow-hover: 0 16px 42px rgba(88, 82, 142, 0.16), 0 4px 12px rgba(29, 27, 44, 0.06);
  --font-serif: 'Noto Serif SC', 'Songti SC', Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* 极淡噪点叠层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.035'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 柔和背景光斑 */
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  top: -18vh;
  left: -12vw;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136,104,161,0.10), transparent 62%);
}
body::after {
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.hero-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 46vw;
  height: 46vw;
  right: -16vw;
  top: 22vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,82,142,0.10), transparent 62%);
}

main, header, footer { position: relative; z-index: 1; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 248, 251, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  margin-right: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-soft);
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--c-muted);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.nav-links a:hover { color: var(--c-primary); background: var(--c-primary-soft); }
.nav-links a.active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  font-weight: 600;
}

/* ---------------- 通用版块 ---------------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--c-accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--c-accent);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--c-text);
}
.page-sub {
  margin-top: 14px;
  max-width: 620px;
  color: var(--c-muted);
  font-size: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}
.section-sub {
  color: var(--c-muted);
  font-size: 15px;
  max-width: 560px;
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--c-cta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(175, 136, 80, 0.3);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(175, 136, 80, 0.4); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-primary); background: var(--c-primary-soft); transform: translateY(-2px); }
.btn-soft {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.btn-soft:hover { background: rgba(88,82,142,0.16); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  padding: 76px 0 40px;
  text-align: center;
}
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-badge {
  font-size: 12.5px;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border: 1px solid rgba(136,104,161,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.5vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.hero h1 .hl {
  color: var(--c-primary);
  position: relative;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 10px;
  background: rgba(175, 136, 80, 0.28);
  z-index: -1;
  border-radius: 4px;
}
.hero p.lead {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--c-muted);
  font-size: 17px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--c-primary);
}
.stat span {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0.06em;
}

/* ---------------- 功能入口卡片 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(88,82,142,0.35);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-icon.i1 { background: var(--c-primary-soft); }
.feature-icon.i2 { background: var(--c-accent-soft); }
.feature-icon.i3 { background: var(--c-cta-soft); }
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--c-text);
}
.feature-card p { color: var(--c-muted); font-size: 14.5px; }
.feature-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--c-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.feature-card .more:hover { gap: 10px; }

/* ---------------- 钢琴 ---------------- */
.piano-panel {
  padding: 30px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.panel-head h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--c-text);
}
.panel-head .hint { color: var(--c-muted); font-size: 13px; }
.note-readout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-bg);
  min-width: 148px;
  justify-content: center;
}
.note-readout .note-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
}
.note-readout .note-sol {
  font-size: 13px;
  color: var(--c-muted);
}
.piano-scroll { overflow-x: auto; padding: 8px 2px 14px; }
.piano {
  position: relative;
  display: flex;
  min-width: 760px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: inset 0 2px 6px rgba(29,27,44,0.05);
  background: #f3f2f8;
  touch-action: manipulation;
}
.key-w {
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 82%, #f0eff7 100%);
  border-right: 1px solid var(--c-border);
  border-bottom: 3px solid #e6e4ef;
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.05s ease;
}
.key-w:last-child { border-right: none; }
.key-w .key-label {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
  user-select: none;
  -webkit-user-select: none;
}
.key-w .key-label b { display: block; font-size: 13px; color: var(--c-primary); }
.key-w:hover { background: linear-gradient(180deg, #fff 0%, #f5f3fb 100%); }
.key-w.pressed {
  background: linear-gradient(180deg, #e9e6f5 0%, #dcd8ee 100%);
  border-bottom-width: 1px;
  transform: translateY(2px);
}
.key-w.pressed .key-label b { color: var(--c-accent); }
.key-b {
  position: absolute;
  width: 7.6%;
  height: 60%;
  background: linear-gradient(180deg, #4a456f 0%, #38345a 100%);
  border-radius: 0 0 7px 7px;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(29,27,44,0.28), inset 0 -4px 6px rgba(0,0,0,0.3);
  transition: transform 0.05s ease, background 0.12s ease;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  user-select: none;
  -webkit-user-select: none;
}
.key-b.pressed {
  background: linear-gradient(180deg, #6a65a0 0%, #504b80 100%);
  transform: translateY(3px);
}
.key-b:hover { background: linear-gradient(180deg, #57517f 0%, #403c64 100%); }

/* ---------------- 节奏游戏 ---------------- */
.rhythm-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.pad-stage {
  padding: 28px;
}
.pad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.drum-pad {
  aspect-ratio: 1.45 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.08s ease, box-shadow 0.25s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
  user-select: none;
  -webkit-user-select: none;
}
.drum-pad .pad-emoji { font-size: 30px; }
.drum-pad .pad-name { font-size: 14px; font-weight: 600; color: var(--c-text); }
.drum-pad .pad-note { font-size: 11px; color: var(--c-muted); }
.drum-pad:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.drum-pad.hit { transform: scale(0.94); box-shadow: 0 0 0 3px rgba(175,136,80,0.5); }
.drum-pad.p1 { background: linear-gradient(180deg,#fff, #f2f0f9); }
.drum-pad.p2 { background: linear-gradient(180deg,#fff, #f6f0f8); }
.drum-pad.p3 { background: linear-gradient(180deg,#fff, #f5f2f0); }
.drum-pad.p4 { background: linear-gradient(180deg,#fff, #f3f3f6); }

.beat-track {
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.beat-dots {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 8px 0 20px;
}
.beat-dot {
  flex: 1;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--c-muted);
  transition: all 0.15s ease;
}
.beat-dot.on {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(88,82,142,0.32);
}
.tempo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.tempo-row label { font-size: 13px; color: var(--c-muted); white-space: nowrap; }
.tempo-row output { font-family: var(--font-serif); color: var(--c-primary); font-weight: 700; min-width: 46px; text-align: center; }
input[type="range"] {
  flex: 1;
  accent-color: var(--c-primary);
  height: 4px;
}
.score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
}
.score-box .stars { font-size: 20px; letter-spacing: 2px; color: var(--c-cta); }
.score-box .score { font-family: var(--font-serif); font-size: 22px; color: var(--c-primary); font-weight: 700; }
.feedback {
  min-height: 26px;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--c-muted);
  text-align: center;
  font-weight: 600;
}
.feedback.good { color: var(--c-cta); animation: pop 0.4s ease; }
.feedback.perfect { color: var(--c-primary); animation: pop 0.4s ease; }
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------------- 儿歌库 ---------------- */
.song-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px 0 20px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.song-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.song-card {
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.song-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.song-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.song-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--c-text);
}
.song-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.song-meta span {
  font-size: 12px;
  color: var(--c-muted);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 3px 10px;
  border-radius: 999px;
}
.song-lyrics {
  color: var(--c-muted);
  font-size: 14.5px;
  white-space: pre-line;
  line-height: 1.9;
  max-height: 92px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.45s ease;
}
.song-lyrics.open { max-height: 480px; }
.song-lyrics:not(.open)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--c-surface));
}
.song-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.play-indicator { display: flex; align-items: center; gap: 8px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-border); border-top-color: var(--c-primary); animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.lyric-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--c-primary);
  font-size: 13.5px;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 4px 6px;
}
.lyric-btn:hover { text-decoration: underline; }

.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--c-muted);
  padding: 40px 0;
}

/* ---------------- 乐理课堂 ---------------- */
.lesson-block { margin-top: 40px; }
.lesson-block + .lesson-block { margin-top: 56px; }
.lesson-num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--c-cta);
  font-weight: 600;
}
.note-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.note-card {
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.3s ease;
}
.note-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.note-symbol {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--c-primary);
  display: block;
  line-height: 1.1;
  margin-bottom: 10px;
}
.note-symbol.whole { font-size: 44px; }
.note-card h4 { font-family: var(--font-serif); font-size: 17px; color: var(--c-text); }
.note-card .beats { font-size: 13px; color: var(--c-cta); font-weight: 600; margin-top: 4px; }
.note-card .desc { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.note-card .play-note-btn {
  margin-top: 12px;
  background: var(--c-primary-soft);
  border: none;
  color: var(--c-primary);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s ease;
}
.note-card .play-note-btn:hover { background: rgba(88,82,142,0.2); }

.beat-demo {
  margin-top: 22px;
  padding: 26px;
}
.beat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.beat-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--c-bg);
}
.beat-card h4 { font-family: var(--font-serif); font-size: 18px; color: var(--c-text); margin-bottom: 4px; }
.beat-card .sig { color: var(--c-accent); font-size: 14px; font-weight: 600; }
.beat-card .sig em { font-family: var(--font-serif); font-style: normal; font-weight: 700; font-size: 15px; }
.beat-run {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.beat-run .b {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--c-muted);
  font-family: var(--font-serif);
  transition: all 0.13s ease;
}
.beat-run .b.strong {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(88,82,142,0.3);
}
.beat-run .b.weak {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(136,104,161,0.3);
}
.beat-controls { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.beat-controls .btn { background: var(--c-soft); }

.sol-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.sol-cell {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.sol-cell:hover { transform: translateY(-3px); border-color: var(--c-primary); }
.sol-cell .sol { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--c-text); }
.sol-cell .name { font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.sol-cell.on {
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
  border-color: var(--c-primary);
  box-shadow: 0 10px 20px rgba(88,82,142,0.3);
}
.sol-cell.on .sol, .sol-cell.on .name { color: #fff; }

.demo-note {
  margin-top: 16px;
  min-height: 26px;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ---------------- CTA / 页脚 ---------------- */
.cta-banner {
  padding: 44px;
  text-align: center;
  background: linear-gradient(135deg, rgba(88,82,142,0.06), rgba(136,104,161,0.08));
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--c-text);
  margin-bottom: 8px;
}
.cta-banner p { color: var(--c-muted); margin-bottom: 22px; }

.site-footer {
  border-top: 1px solid var(--c-border);
  margin-top: 40px;
  padding: 26px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--c-muted);
  font-size: 13.5px;
}
.footer-inner a { color: var(--c-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--c-primary); }

/* ---------------- 动画 ---------------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-soft { animation: float 6s ease-in-out infinite; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .rhythm-layout { grid-template-columns: 1fr; }
  .song-list { grid-template-columns: 1fr; }
  .note-card-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 48px 0; }
}
@media (max-width: 560px) {
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-links { width: 100%; }
  .nav-links a { flex: 1; text-align: center; }
  .hero { padding: 52px 0 28px; }
  .pad-grid { gap: 10px; }
  .beat-cards { grid-template-columns: 1fr; }
  .piano-panel { padding: 18px; }
}
