/* ============================================================
   应援曲工坊 · Fan Support Song Studio
   设计系统：深色渐变 · 玻璃拟态 · 微动效
============================================================ */

:root {
  --bg-0: #07050e;
  --bg-1: #0d0919;
  --bg-2: #150d26;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --surface-3: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.18);
  --text-0: #f6f4ff;
  --text-1: #c9c3e6;
  --text-2: #8d86ae;
  --pink: #ff5fa8;
  --purple: #a78bfa;
  --violet: #7c3aed;
  --cyan: #67e8f9;
  --grad: linear-gradient(120deg, #ff5fa8, #a78bfa 52%, #67e8f9);
  --grad-2: linear-gradient(135deg, #ff5fa8, #7c3aed);
  --grad-soft: linear-gradient(135deg, rgba(255, 95, 168, 0.16), rgba(167, 139, 250, 0.16));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 42px rgba(167, 139, 250, 0.35);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(167, 139, 250, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0816; }
::-webkit-scrollbar-thumb { background: #2c2050; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3c2d6b; }

/* ---------- 背景光斑 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%); }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.bg-glow-1 { width: 640px; height: 640px; top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 70%); }
.bg-glow-2 { width: 560px; height: 560px; top: 30%; right: -200px;
  background: radial-gradient(circle, rgba(255, 95, 168, 0.32), transparent 70%); }
.bg-glow-3 { width: 520px; height: 520px; bottom: -220px; left: 30%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 70%); }

.bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- 通用 ---------- */
.container { width: min(1160px, 92vw); margin: 0 auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  padding: 11px 22px; color: #fff; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--grad-2);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(124, 58, 237, 0.55); }
.btn-primary:hover::after { transform: translateX(110%); }

.btn-ghost {
  background: var(--surface-2); border-color: var(--border-2);
  color: var(--text-0); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn .btn-spin {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 7, 20, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 800; letter-spacing: 0.5px;
  color: var(--text-0); text-decoration: none;
}
.logo-badge {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); font-size: 17px;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
  animation: floaty 3.6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px; color: var(--text-1);
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: var(--surface-2); }
.nav-links a.active { color: #fff; background: var(--grad-soft); }
.nav-links a.active::after { content: ""; }

.nav-cta { margin-left: 4px; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px; margin-left: auto;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-burger span { display: block; width: 19px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--text-1);
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease both;
}
.hero-title {
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.18; font-weight: 900;
  letter-spacing: 1px; animation: fadeUp 0.7s 0.08s ease both;
}
.hero-sub {
  margin: 22px 0 32px; color: var(--text-1); font-size: 16.5px; max-width: 520px;
  animation: fadeUp 0.7s 0.16s ease both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.7s 0.24s ease both; }

.hero-stats {
  display: flex; gap: 36px; margin-top: 46px;
  animation: fadeUp 0.7s 0.32s ease both;
}
.hero-stat b {
  display: block; font-size: 26px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat span { font-size: 13px; color: var(--text-2); }

.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeUp 0.9s 0.2s ease both; }

.disc {
  position: relative; width: clamp(220px, 26vw, 320px); aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #1a1233 0 6px, #241a44 6px 12px, #1c1438 12px 18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(0, 0, 0, 0.5);
  animation: spin 14s linear infinite;
}
.disc::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}
.disc-center {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-size: clamp(28px, 3.4vw, 40px);
  box-shadow: 0 0 34px rgba(167, 139, 250, 0.6);
}
.disc-center::after {
  content: ""; position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: #140d26; border: 3px solid rgba(255, 255, 255, 0.2);
}
.disc-note { position: absolute; font-size: 26px; color: var(--pink); animation: floaty 3.4s ease-in-out infinite; text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.disc-note.n1 { top: -14px; right: 18%; }
.disc-note.n2 { bottom: 6%; left: -12%; animation-delay: 0.8s; color: var(--cyan); font-size: 20px; }
.disc-note.n3 { top: 20%; right: -16%; animation-delay: 1.4s; color: var(--purple); font-size: 22px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- 跑马灯 ---------- */
.ticker {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025); padding: 14px 0;
}
.ticker-track { display: flex; gap: 42px; width: max-content; animation: ticker 30s linear infinite; }
.ticker-track span { font-size: 14px; color: var(--text-1); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section ---------- */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-kicker {
  display: inline-block; font-size: 12px; letter-spacing: 3px; font-weight: 700;
  color: var(--purple); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 800; letter-spacing: 1px; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.section-more { text-align: center; margin-top: 44px; }

/* ---------- 特性卡片 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  padding: 30px 24px; text-align: left; position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255, 95, 168, 0.14), rgba(167, 139, 250, 0.12) 60%, transparent);
  opacity: 0; transition: opacity 0.35s;
}
.feature-card:hover { transform: translateY(-7px); border-color: var(--border-2); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 25px; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--border-2);
  transition: transform 0.35s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- 歌曲卡片 ---------- */
.song-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.song-card {
  display: flex; gap: 18px; padding: 18px; align-items: center; position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.6s ease both;
}
.song-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }

.song-cover {
  position: relative; flex: none; width: 86px; height: 86px; border-radius: 15px;
  display: grid; place-items: center; font-size: 34px; overflow: hidden;
}
.play-btn {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(10, 7, 20, 0.42); border: none; color: #fff;
  font-size: 22px; opacity: 0; transition: opacity 0.25s, background 0.25s;
}
.song-cover:hover .play-btn { opacity: 1; }
.play-btn.playing { opacity: 1; background: rgba(10, 7, 20, 0.55); }
.play-btn.playing::before {
  content: "❚❚"; font-size: 17px; letter-spacing: -2px;
}

.song-info { min-width: 0; flex: 1; }
.song-info h3 {
  font-size: 16.5px; font-weight: 700; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; margin-bottom: 3px;
}
.song-info .who { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.song-info .who b { color: var(--pink); font-weight: 600; }
.song-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-1);
}
.tag.theme { color: var(--pink); border-color: rgba(255, 95, 168, 0.4); }
.tag.style { color: var(--cyan); border-color: rgba(103, 232, 249, 0.35); }

.song-stats { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.song-stats .stat { font-size: 12px; color: var(--text-2); }

.like-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-1); font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  transition: color 0.25s, transform 0.2s, border-color 0.25s, background 0.25s;
}
.like-btn .heart { font-size: 15px; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.like-btn:hover { transform: translateY(-1px); }
.like-btn.active { color: #fff; background: linear-gradient(135deg, #ff5fa8, #7c3aed); border-color: transparent; box-shadow: 0 8px 22px rgba(255, 95, 168, 0.35); }
.like-btn.active .heart { transform: scale(1.25); }

/* ---------- 步骤 ---------- */
.steps { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  padding: 34px 26px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; right: 8px; font-size: 84px; font-weight: 900;
  color: rgba(255, 255, 255, 0.05); line-height: 1; user-select: none;
}
.step-icon { font-size: 34px; margin-bottom: 14px; display: inline-block; animation: floaty 3s ease-in-out infinite; }
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- CTA 横幅 ---------- */
.cta-band { padding: 0 0 96px; }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 30px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(255, 95, 168, 0.22) 55%, rgba(103, 232, 249, 0.14));
  border: 1px solid var(--border-2);
}
.cta-box::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 168, 0.4), transparent 70%);
  top: -180px; right: -120px; animation: floaty 5s ease-in-out infinite;
}
.cta-box h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-1); margin-bottom: 28px; }
.cta-box .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(8, 5, 16, 0.6); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; color: var(--text-0); }
.footer a { color: var(--text-2); text-decoration: none; font-size: 13.5px; display: block; margin-bottom: 9px; transition: color 0.2s; }
.footer a:hover { color: var(--pink); }
.footer p { font-size: 13px; color: var(--text-2); }
.footer .logo { margin-bottom: 12px; font-size: 18px; }
.footer-note {
  border-top: 1px solid var(--border); padding-top: 22px; text-align: center;
  font-size: 12px; color: #6f6890;
}

/* ============================================================
   制作页
============================================================ */
.page-hero { padding: 54px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.page-hero p { color: var(--text-2); margin-top: 10px; }

.maker { padding: 40px 0 96px; }
.maker-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }

.panel { padding: 26px; }
.panel-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.panel-title .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; font-size: 15px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-1); margin-bottom: 8px; font-weight: 600; }
.field .hint { font-size: 11.5px; color: var(--text-2); margin-top: 6px; }

.input, .select {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--text-0);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  border-radius: 13px; padding: 12px 14px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus {
  border-color: var(--purple); background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, #a78bfa 50%), linear-gradient(135deg, #a78bfa 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  cursor: pointer;
}
textarea.input { resize: vertical; min-height: 120px; line-height: 1.9; }
textarea.input.lyrics-area { min-height: 340px; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: inherit; font-size: 13px; cursor: pointer; color: var(--text-1);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; transition: all 0.22s;
}
.chip:hover { border-color: var(--border-2); color: #fff; transform: translateY(-1px); }
.chip.active {
  background: var(--grad-soft); border-color: var(--purple); color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* 模板卡 */
.tpl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl-card {
  text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-0);
  font-family: inherit; font-size: 13px; transition: all 0.22s;
  display: flex; flex-direction: column; gap: 3px;
}
.tpl-card b { font-size: 13.5px; }
.tpl-card small { color: var(--text-2); font-size: 11px; }
.tpl-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.tpl-card.active { border-color: var(--pink); background: rgba(255, 95, 168, 0.1); box-shadow: 0 6px 20px rgba(255, 95, 168, 0.18); }

.btn-block { width: 100%; margin-top: 8px; }

/* 生成中 */
.gen-progress {
  display: none; text-align: center; padding: 40px 20px;
}
.gen-progress.show { display: block; animation: fadeUp 0.4s ease both; }
.gen-disc {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #2c1f52 0 5px, #3a2a6b 5px 10px);
  display: grid; place-items: center; font-size: 28px;
  animation: spin 2.4s linear infinite; box-shadow: var(--shadow-glow);
}
.gen-progress h3 { font-size: 18px; margin-bottom: 14px; }
.gen-steps { max-width: 260px; margin: 0 auto; text-align: left; }
.gen-step { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: 13.5px; }
.gen-step .dot { width: 9px; height: 9px; border-radius: 50%; background: #4a4170; flex: none; }
.gen-step.done { color: var(--text-1); }
.gen-step.done .dot { background: var(--grad-2); box-shadow: 0 0 10px rgba(255, 95, 168, 0.7); }
.gen-step.doing { color: #fff; }
.gen-step.doing .dot { background: var(--purple); animation: pulse 0.9s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

/* 结果 */
.gen-result { display: none; }
.gen-result.show { display: block; animation: fadeUp 0.55s ease both; }

.result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.result-title { font-size: 19px; font-weight: 800; }
.result-title .grad-text { font-size: 14px; font-weight: 700; display: block; }
.result-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.lyrics-box {
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
}
.lyrics-box textarea { border: none; box-shadow: none; padding: 0; background: transparent; }
.lyrics-box textarea:focus { box-shadow: none; }

/* 播放器 */
.player {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 16px;
}
.player-play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 17px;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.player-play:hover { transform: scale(1.07); }
.player-play:active { transform: scale(0.94); }
.player-info { flex: 1; min-width: 0; }
.player-info .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
.player-info .row b { color: var(--text-1); font-weight: 600; }
.progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--grad); border-radius: 6px; transition: width 0.12s linear; }
.player-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* 均衡器 */
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq span { width: 4px; height: 100%; border-radius: 2px; background: var(--grad);
  transform: scaleY(0.3); transform-origin: bottom; transition: transform 0.2s; }
.eq.play span { animation: eqb 0.8s ease-in-out infinite; }
.eq.play span:nth-child(2) { animation-duration: 0.62s; }
.eq.play span:nth-child(3) { animation-duration: 0.94s; }
.eq.play span:nth-child(4) { animation-duration: 0.7s; }
.eq.play span:nth-child(5) { animation-duration: 0.55s; }
@keyframes eqb { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* 卡片 / 分享 */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; color: #fff;
  border: none; border-radius: 999px; padding: 9px 16px; transition: transform 0.2s, box-shadow 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn:active { transform: scale(0.95); }
.share-weibo { background: linear-gradient(135deg, #ff7a18, #ff2d55); }
.share-weixin { background: linear-gradient(135deg, #07c160, #0aad57); }
.share-qq { background: linear-gradient(135deg, #12b7f5, #1d6df0); }
.share-copy { background: var(--surface-3); border: 1px solid var(--border-2); }

.share-text {
  margin-top: 16px; padding: 14px 16px; border-radius: 13px;
  background: rgba(0, 0, 0, 0.2); border: 1px dashed var(--border-2);
  font-size: 13px; color: var(--text-1); line-height: 1.9; word-break: break-all;
}

/* 海报卡 */
.poster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; align-items: start; }
.poster-preview {
  width: 100%; aspect-ratio: 3/4; border-radius: 18px; position: relative; overflow: hidden;
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px;
  background: linear-gradient(160deg, #221543 0%, #3a1f63 55%, #141032 100%);
}
.poster-preview::before {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 168, 0.5), transparent 70%);
  top: -70px; right: -60px;
}
.poster-preview::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.3), transparent 70%);
  bottom: -90px; left: -70px;
}
.poster-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.poster-emoji { font-size: 30px; }
.poster-top small { color: rgba(255, 255, 255, 0.6); font-size: 11px; letter-spacing: 2px; }
.poster-mid { position: relative; z-index: 1; }
.poster-title { font-size: clamp(24px, 3vw, 30px); font-weight: 900; line-height: 1.3; margin-bottom: 8px; }
.poster-for { font-size: 14px; color: var(--pink); font-weight: 700; margin-bottom: 14px; }
.poster-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.poster-hashtags { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: rgba(255, 255, 255, 0.82); }
.poster-watermark { position: relative; z-index: 1; font-size: 11px; color: rgba(255, 255, 255, 0.5); letter-spacing: 1px; }

/* 短视频预览 */
.video-box {
  position: relative; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #1b1037, #2c1b55 55%, #0d0a1f);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.video-box .video-bg { position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 95, 168, 0.5), transparent 55%),
              radial-gradient(circle at 75% 70%, rgba(124, 58, 237, 0.45), transparent 55%);
  animation: vbg 6s ease-in-out infinite alternate;
}
@keyframes vbg { from { transform: scale(1); } to { transform: scale(1.12); } }
.video-lyric {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 26px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.9;
  overflow: hidden;
}
.video-lyric-inner { animation: lyricScroll 7s linear infinite; }
@keyframes lyricScroll {
  0% { transform: translateY(38%); opacity: 0.2; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateY(-38%); opacity: 0.2; }
}
.video-eq { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; }
.video-play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(10, 7, 20, 0.55); border: none; color: #fff;
  transition: opacity 0.3s;
}
.video-play-overlay .ring {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center;
  font-size: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s;
}
.video-play-overlay:hover .ring { transform: scale(1.12); }
.video-box.playing .video-play-overlay { opacity: 0; pointer-events: none; }

/* ============================================================
   排行榜页
============================================================ */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.tab-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-1);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 20px; transition: all 0.22s;
}
.tab-btn:hover { color: #fff; border-color: var(--border-2); }
.tab-btn.active { background: var(--grad-2); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; margin-bottom: 34px; }
.podium-card {
  text-align: center; padding: 26px 18px 22px; position: relative; overflow: hidden;
  transition: transform 0.3s;
}
.podium-card:hover { transform: translateY(-4px); }
.podium-card .crown { font-size: 30px; display: block; margin-bottom: 6px; animation: floaty 3s ease-in-out infinite; }
.podium-card .p-name { font-weight: 800; font-size: 16px; margin: 6px 0 2px; }
.podium-card .p-title { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.podium-rank {
  display: inline-block; font-size: 30px; font-weight: 900; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.podium-cover { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; }
.podium-card.first { transform: scale(1.04); border-color: rgba(255, 215, 100, 0.4); }
.podium-card.first .podium-cover { width: 78px; height: 78px; font-size: 32px; }

.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  animation: fadeUp 0.5s ease both;
  transition: transform 0.25s, border-color 0.25s;
}
.rank-item:hover { transform: translateX(5px); border-color: var(--border-2); }
.rank-num { width: 42px; text-align: center; font-size: 20px; font-weight: 900; color: var(--text-2); flex: none; }
.rank-num.top { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-cover { flex: none; width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; position: relative; }
.rank-cover .play-btn { border-radius: 13px; }
.rank-info { flex: 1; min-width: 0; }
.rank-info h3 { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info .who { font-size: 12px; color: var(--text-2); margin: 2px 0 6px; }
.rank-info .who b { color: var(--pink); }
.rank-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.rank-stats { flex: none; display: flex; gap: 16px; align-items: center; color: var(--text-2); font-size: 12.5px; }
.rank-stats .num { color: var(--text-1); font-weight: 600; }

/* ============================================================
   关于页
============================================================ */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.about-card { padding: 28px 24px; }
.about-card .about-icon { font-size: 30px; margin-bottom: 14px; }
.about-card h3 { font-size: 17px; margin-bottom: 10px; }
.about-card p, .about-card li { font-size: 13.5px; color: var(--text-2); }
.about-card ul { padding-left: 18px; }
.about-card li { margin-bottom: 6px; }

.notice {
  padding: 24px 26px; border-radius: var(--radius); margin-bottom: 20px;
  background: rgba(255, 95, 168, 0.07); border: 1px solid rgba(255, 95, 168, 0.25);
  font-size: 13.5px; color: var(--text-1);
}
.notice b { color: var(--pink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 34px; left: 50%; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(20, 14, 38, 0.92); border: 1px solid var(--border-2); color: var(--text-0);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .maker-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .about-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .rank-stats { display: none; }
}

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: 68px; left: 12px; right: 12px; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(14, 10, 26, 0.96); border: 1px solid var(--border);
    border-radius: 16px; padding: 14px; backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: scaleY(0); transform-origin: top; opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: scaleY(1); opacity: 1; }
  .nav-links a { padding: 12px 16px; }
  .section { padding: 64px 0; }
  .song-grid { grid-template-columns: 1fr; }
  .song-stats { flex-direction: row; align-items: center; gap: 12px; }
  .poster-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .tpl-list { grid-template-columns: 1fr; }
}
