/* MusicBall 官网样式。
 *
 * 不用 Tailwind CDN：那是运行时编译，首屏要等一个 300KB 的外部脚本跑完，
 * 而且会把每一位访问者的 IP 交给 unpkg —— 一个在隐私政策里写着"不收集任何数据"的
 * 站点不该这么做。手写 CSS，零外部请求。
 *
 * 色板与 App 的 DS.Color / SceneStyle3D.Palette 逐位一致，
 * 从官网点进 App Store 再打开 App，看到的是同一套颜色。
 */

:root {
    /* 表面（深色带紫调，与 3D 场景的墙同色系） */
    --bg: #0E0D13;
    --surface: #17161F;
    --surface-2: #211F2C;
    --line: #2E2B3C;
    --line-strong: #403C52;

    /* 内容 */
    --text: #F3F1F8;
    --text-2: #A7A2BC;
    --text-3: #6E6982;

    /* 强调 = 3D 球体色。球是主角，强调色就是球 */
    --accent: #7A3FD1;
    --accent-soft: #B78FF0;
    --accent-deep: #2A1350;

    /* 12 音级（SceneStyle3D.Palette.plateLit） */
    --p0: #FAA6B0; --p1: #F4AB7E; --p2: #E0BD6E; --p3: #C8CA7E;
    --p4: #9ECC70; --p5: #78D69C; --p6: #74D2CC; --p7: #7DC8ED;
    --p8: #9DB8F5; --p9: #C2B0F8; --p10: #DBAAF2; --p11: #F0A5D0;

    --shell: 1120px;
    --radius: 18px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif;
    --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--text); }
/* height:auto 不是可选项：<img> 上带 width/height 属性（为了避免布局抖动，该带），
   一旦 CSS 只覆盖了 width，那个 height 属性就会以像素生效 ——
   330px 宽的手机截图会被拉成 330×2622 的长条。 */
img, svg { max-width: 100%; height: auto; display: block; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* ── 顶栏 ───────────────────────────────────────────────── */

header.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14, 13, 19, .82);
    backdrop-filter: saturate(1.6) blur(18px);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid var(--line);
}
header.top nav { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; font-size: 13px; font-weight: 550; }
.lang a { padding: 3px 9px; border-radius: 7px; color: var(--text-3); }
.lang a[aria-current] { background: var(--surface-2); color: var(--text); }

/* ── 通用版块 ───────────────────────────────────────────── */

section { padding: 92px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

.eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-soft); margin: 0 0 14px;
}
h1 {
    font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.035em;
    font-weight: 700; margin: 0;
}
h2 {
    font-size: clamp(28px, 4vw, 42px); line-height: 1.14; letter-spacing: -.028em;
    font-weight: 700; margin: 0 0 16px;
}
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--text-2); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 44ch; }

/* ── 首屏 ───────────────────────────────────────────────── */

.hero { padding-top: 76px; padding-bottom: 40px; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -30% 30% 40% -20%;
    background: radial-gradient(closest-side, rgba(122, 63, 209, .30), transparent 70%);
    pointer-events: none;
}
.hero .shell { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .shell { grid-template-columns: 1.05fr .95fr; gap: 40px; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 13px; font-weight: 600; font-size: 16px;
    border: 1px solid transparent; transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #8B4FE0; color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text-2); }
/* 上线前的下载按钮：不是链接，也不装成链接 —— 一个能点但什么都不发生的按钮
   比一句诚实的"即将上线"更伤信任。上线后换回 .btn-primary + 真实链接。 */
.btn-soon { background: var(--surface-2); color: var(--text-2); border-color: var(--line-strong); cursor: default; }
.btn-soon::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--accent-soft); margin-right: 2px; }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--text); }

.hero-shot { position: relative; justify-self: center; max-width: 330px; width: 100%; }
.hero-shot img {
    width: 100%; border-radius: 34px; border: 1px solid var(--line-strong);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(183, 143, 240, .09);
}

/* 音级色带：产品的视觉签名 —— 12 个音名各一色 */
.pitch-strip { display: flex; height: 4px; border-radius: 99px; overflow: hidden; margin-top: 30px; max-width: 420px; }
.pitch-strip i { flex: 1; }

/* ── 卡片网格 ───────────────────────────────────────────── */

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }
.card .dot { width: 26px; height: 26px; border-radius: 8px; margin-bottom: 16px; }

/* ── 步骤 ───────────────────────────────────────────────── */

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding-left: 52px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 34px; height: 34px; border-radius: 11px;
    background: var(--accent-deep); border: 1px solid var(--accent);
    color: var(--accent-soft); font-weight: 700; font-size: 15px;
    display: grid; place-items: center;
}

/* ── 图例表（画面语言）───────────────────────────────────── */

.legend { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.legend-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: start; }
.legend-row:first-child { border-top: none; }
.legend-row dt { font-weight: 620; color: var(--text); font-size: 15px; }
.legend-row dd { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 640px) { .legend-row { grid-template-columns: 1fr; gap: 6px; } }

/* ── 曲库表 ─────────────────────────────────────────────── */

.tracks { width: 100%; border-collapse: collapse; font-size: 15px; }
.tracks th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 650; padding: 0 12px 12px 0; }
.tracks td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.tracks td:first-child { color: var(--text); font-weight: 560; }
.tracks .badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--accent-deep); color: var(--accent-soft); font-weight: 600; }
@media (max-width: 640px) { .tracks .hide-sm { display: none; } }

/* ── 截图带 ─────────────────────────────────────────────── */

.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.shots img { border-radius: 22px; border: 1px solid var(--line); }

/* ── FAQ ────────────────────────────────────────────────── */

details { border-top: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: none; }
summary { cursor: pointer; font-weight: 620; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-soft); font-size: 22px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; }

/* ── 长文页（隐私 / 条款）───────────────────────────────── */

.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose ul { color: var(--text-2); padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .meta { color: var(--text-3); font-size: 14px; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--accent-soft); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ── 页脚 ───────────────────────────────────────────────── */

footer.bottom { border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 40px; }
footer.bottom .shell { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
footer.bottom a { color: var(--text-2); }
footer.bottom a:hover { color: var(--text); }
.copy { color: var(--text-3); font-size: 14px; }
