/* ==========================================================================
   ai-music.cc 全站设计系统
   基调：深炭黑 #101012 + 霓虹粉→橙渐变 + 动态波形母题
   ========================================================================== */
:root {
  --bg: #101012;
  --bg-deep: #000000;
  --surface: #17171c;
  --surface-2: #1d1d24;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(227, 11, 93, 0.55);
  --text: #f4f4f7;
  --muted: #a0a0ac;
  --neon-pink: #e30b5d;
  --neon-orange: #ff6a3d;
  --neon-gradient: linear-gradient(90deg, #e30b5d, #ff6a3d);
  --glow-pink: 0 0 18px rgba(227, 11, 93, 0.45);
  --radius-card: 14px;
  --radius-lg: 18px;
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 16, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .logo-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--neon-gradient);
  box-shadow: var(--glow-pink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 8px 20px; border-radius: 9999px; font-size: 14px; font-weight: 600;
  background: var(--neon-gradient); color: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}
.nav-cta:hover { box-shadow: var(--glow-pink); transform: translateY(-1px); }

/* ---------- 通用标题 ---------- */
/* 三种板块底色交替，避免整页同色：
   .section      —— 偏亮的紫灰面板
   .section-alt  —— 最深的近黑 + 顶部紫色氛围光
   .section-tint —— 冷蓝灰过渡色 */
.section {
  padding: 72px 0;
  background: linear-gradient(180deg, #15151f 0%, #111119 100%);
}
.section-alt {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(118, 62, 196, 0.10), transparent 70%),
    #08080d;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-tint {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(52, 108, 200, 0.08), transparent 72%),
    linear-gradient(180deg, #10131b 0%, #0d0f16 100%);
}
.section-head { margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--neon-pink); font-weight: 600;
  margin-bottom: 10px;
}
h2.sec-title { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.sec-sub { color: var(--muted); margin-top: 10px; font-size: 15.5px; max-width: 640px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 60% 45% at 70% 20%, rgba(227, 11, 93, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 85%, rgba(255, 106, 61, 0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0; }
.hero h1 {
  font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.22;
}
.hero h1 .grad {
  background: var(--neon-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--muted); font-size: 17px; margin: 18px 0 8px; }
.hero .anchor-line { font-size: 15px; color: #d8d8e2; }
.hero .anchor-line b { color: #fff; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; font-weight: 600; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  padding: 14px 34px; font-size: 16px; color: #fff;
  background: var(--neon-gradient); background-size: 200% auto;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(227, 11, 93, 0.55);
  background-position: right center;
  animation: pulse-glow 2.2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(227, 11, 93, 0.40); }
  50% { box-shadow: 0 0 30px rgba(255, 106, 61, 0.60); }
}
.btn-ghost {
  padding: 14px 30px; font-size: 16px; color: var(--text);
  border: 1px solid var(--border); background: transparent;
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }

/* 波形画布 */
.hero-wave { position: relative; height: 320px; }
#wave-canvas { width: 100%; height: 100%; display: block; }

/* ---------- 音频试听组件 ---------- */
.audio-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}
.audio-label { font-size: 13px; color: var(--neon-pink); font-weight: 600; margin-bottom: 8px; }
.audio-block audio { width: 100%; height: 40px; min-height: 40px; display: block; }
.audio-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 8px; font-size: 12.5px; color: var(--muted);
}
.audio-meta span { display: inline-flex; align-items: center; gap: 5px; }
.audio-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--neon-orange); }

/* ---------- 功能卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), var(--glow-pink);
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(227, 11, 93, 0.18), rgba(255, 106, 61, 0.14));
  border: 1px solid rgba(227, 11, 93, 0.30);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* 均衡器小动画 */
.eq-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 14px; }
.eq-bars i {
  width: 4px; border-radius: 2px;
  background: var(--neon-gradient);
  animation: eq 1.1s ease-in-out infinite;
}
.eq-bars i:nth-child(1) { height: 35%; animation-delay: 0s; }
.eq-bars i:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.eq-bars i:nth-child(3) { height: 55%; animation-delay: 0.36s; }
.eq-bars i:nth-child(4) { height: 100%; animation-delay: 0.12s; }
.eq-bars i:nth-child(5) { height: 45%; animation-delay: 0.3s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* 案例卡标签 */
.case-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 14px;
  font-size: 12px; font-weight: 600; border-radius: 9999px;
  color: #ffb08c;
  background: linear-gradient(135deg, rgba(227, 11, 93, 0.20), rgba(255, 106, 61, 0.16));
  border: 1px solid rgba(255, 106, 61, 0.35);
}
.case-card { display: flex; flex-direction: column; }
.case-card h3 { font-size: 20px; letter-spacing: 0.01em; }

/* ---------- 教程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 28px; position: relative;
}
.step-card .step-no {
  position: absolute; top: 24px; right: 26px;
  font-size: 40px; font-weight: 800; color: rgba(227, 11, 93, 0.18);
  line-height: 1;
}
.step-card h2 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 15px; }
.step-card .img-slot { margin: 18px 0 4px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.step-card .img-slot img { aspect-ratio: 16/9; object-fit: cover; }

/* ---------- 资讯卡 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
  transition: transform 0.28s, border-color 0.28s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.news-card .tag {
  display: inline-block; margin: 16px 16px 0; padding: 3px 12px;
  font-size: 12px; border-radius: 9999px; font-weight: 600;
  background: rgba(227, 11, 93, 0.14); color: #ff7aa8;
  border: 1px solid rgba(227, 11, 93, 0.3);
}
.news-card .img-slot img { aspect-ratio: 16/9; object-fit: cover; }
.news-card h3 { font-size: 16.5px; margin: 10px 16px 6px; line-height: 1.45; }
.news-card p { color: var(--muted); font-size: 13.8px; margin: 0 16px 14px; }
.news-card .meta { font-size: 12px; color: #6c6c78; margin: 0 16px 16px; }
.news-card .audio-block { margin: 0 16px 16px; }

/* ---------- FAQ 手风琴 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
details.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 14px; overflow: hidden;
}
details.faq-item[open] { border-color: var(--border-hover); }
details.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; font-size: 20px; color: var(--neon-pink); font-weight: 400; flex-shrink: 0;
  transition: transform 0.25s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
details.faq-item .faq-body .audio-block { margin-bottom: 0; }

/* ---------- 互动区 ---------- */
.interact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.interact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.interact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.interact-card > p { color: var(--muted); font-size: 13.8px; margin-bottom: 16px; }
.chip-row { display: flex; gap: 10px; margin: 12px 0 16px; flex-wrap: wrap; }
.chip {
  padding: 7px 18px; border-radius: 9999px; font-size: 13.5px; cursor: pointer;
  border: 1px solid var(--border); color: var(--muted); background: transparent;
  transition: all 0.22s;
}
.chip:hover { color: var(--text); }
.chip.active {
  color: #fff; border-color: var(--border-hover);
  background: linear-gradient(135deg, rgba(227, 11, 93, 0.25), rgba(255, 106, 61, 0.2));
}
.text-input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 14.5px; font-family: var(--font);
  outline: none; transition: border-color 0.2s;
}
.text-input:focus { border-color: var(--border-hover); }
.text-input::placeholder { color: #5c5c68; }
.btn-gen {
  width: 100%; padding: 12px; margin-top: 4px;
  font-size: 14.5px; color: #fff; background: var(--neon-gradient);
  border: none; border-radius: 9999px;
}
.btn-gen:hover { box-shadow: var(--glow-pink); }
.gen-result { margin-top: 16px; }
.gen-result[hidden] { display: none; }
.gen-status { font-size: 12.5px; color: var(--neon-orange); }
.lyric-out {
  font-size: 14.5px; line-height: 2.1; color: var(--text);
  white-space: pre-line; margin-top: 10px;
  padding: 14px 16px; border-left: 3px solid var(--neon-pink);
  background: rgba(227, 11, 93, 0.06); border-radius: 0 8px 8px 0;
}
.vote-row { display: flex; gap: 10px; margin-top: 14px; }
.vote-row .chip { flex: 1; text-align: center; padding: 10px; }
.vote-result { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.vote-result b { color: var(--neon-orange); }

/* ---------- 通用内容页 ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(227, 11, 93, 0.12), transparent 70%), var(--bg); }
.page-hero h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.015em; }
.page-hero .sub { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 680px; }
.breadcrumb { font-size: 13px; color: #6c6c78; padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--neon-pink); }
.breadcrumb .sep { margin: 0 8px; color: #45454f; }

.prose p { color: #c7c7d1; font-size: 15.5px; margin-bottom: 16px; }
.prose h3 { font-size: 20px; margin: 30px 0 12px; }
.prose ul { list-style: none; margin-bottom: 18px; }
.prose ul li { color: #c7c7d1; font-size: 15px; padding-left: 22px; position: relative; margin-bottom: 8px; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-gradient);
}
.inline-link { color: #ff7aa8; border-bottom: 1px dashed rgba(255, 122, 168, 0.4); }
.inline-link:hover { color: var(--neon-orange); }

/* 双栏图文 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .img-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.split .img-frame img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- 静态摘要条 ---------- */
.static-note {
  margin-top: 48px; padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.static-note h3 { font-size: 16.5px; margin-bottom: 8px; }
.static-note p { color: var(--muted); font-size: 14px; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  margin: 72px 0; padding: 52px 40px; text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 120% at 50% 130%, rgba(255, 106, 61, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 120% at 50% -30%, rgba(227, 11, 93, 0.26), transparent 70%),
    var(--surface);
  border: 1px solid rgba(227, 11, 93, 0.3);
}
.cta-banner h2 { font-size: 28px; font-weight: 700; }
.cta-banner p { color: var(--muted); margin: 10px 0 26px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul a { color: var(--muted); font-size: 13.5px; }
.footer-grid ul a:hover { color: var(--neon-pink); }
.footer-desc { color: var(--muted); font-size: 13.5px; margin-top: 12px; max-width: 320px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: #5c5c68; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .feature-grid, .news-grid, .interact-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .feature-grid, .news-grid, .interact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  h2.sec-title { font-size: 24px; }
  .section { padding: 52px 0; }
  .audio-block audio { height: 40px; }
}
