/* ==========================================================================
   声礼 Songift — 风格 A · 暖调信笺
   奶油底 / 珊瑚点缀 / 衬线大标题
   ========================================================================== */

:root {
    --cream: #FFF9F4;
    --cream-2: #FDF2EA;
    --cream-3: #FBEADF;
    --surface: #FFFFFF;
    --coral: #E8685C;
    --coral-deep: #C25449;
    --coral-soft: #FDE8E4;
    --ink: #3A2A24;
    --body: #6B5A50;
    --muted: #8A7568;
    --faint: #B9A99D;
    --line: #F0E4DA;
    --line-strong: #E4D2C5;

    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

    --shadow-card: 0 24px 48px -8px rgba(140, 90, 76, .12);
    --shadow-soft: 0 8px 24px rgba(140, 90, 76, .07);
    --shadow-lift: 0 18px 40px -10px rgba(140, 90, 76, .18);

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 600; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--coral-soft); color: var(--coral-deep); }

/* ── 文本工具 ─────────────────────────────────────── */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
}
.kicker::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .55;
}

/* ── 按钮 ─────────────────────────────────────────── */
.btn {
    --btn-bg: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
    white-space: nowrap;
}
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.btn-primary {
    --btn-bg: var(--coral);
    color: #fff;
    box-shadow: 0 12px 26px -8px rgba(232, 104, 92, .55);
}
.btn-primary:hover { background: #E05B4E; box-shadow: 0 18px 34px -10px rgba(232, 104, 92, .62); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
    --btn-bg: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }

.btn-dark {
    --btn-bg: var(--ink);
    color: #FFF8F2;
}
.btn-dark:hover { background: #2E211C; }

.btn-sm { padding: 12px 26px; font-size: 15px; }
.btn-xs { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }

.progress {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: #F1E4D9;
    overflow: hidden;
}
.progress-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--coral);
    transition: width .3s linear;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 249, 244, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 249, 244, .94);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
    padding: 20px 0;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: block; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .06em;
}
.brand-sm .brand-name { font-size: 19px; }
.brand-inverse .brand-name { color: #FFF8F2; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav-link {
    position: relative;
    font-size: 15px;
    color: var(--body);
    transition: color .2s var(--ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1.5px;
    background: var(--coral);
    transition: width .28s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 1.6px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}
.mobile-nav a {
    padding: 12px 4px;
    font-size: 15px;
    color: var(--body);
    border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-cta {
    margin-top: 12px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--coral);
    color: #fff;
    text-align: center;
    font-weight: 600;
}
.mobile-nav[hidden] { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--cream);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 72px;
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
    padding: 72px 0 96px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.blob-a {
    top: 10px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 35% 35%, #FFE1EC, rgba(255, 225, 236, 0));
}
.blob-b {
    right: -70px;
    bottom: -40px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at 60% 40%, #FFEFD9, rgba(255, 239, 217, 0));
}

.hero-copy { position: relative; z-index: 1; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--coral-soft);
    color: var(--coral-deep);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(232, 104, 92, .16);
}

.hero-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    font-size: clamp(38px, 4.2vw, 56px);
    font-weight: 600;
    line-height: 1.34;
    letter-spacing: .01em;
    color: var(--ink);
}
.hero-title span:last-child { color: var(--ink); }

.hero-sub {
    max-width: 34em;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 14px;
}
.avatar-cluster { display: flex; }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--cream);
}
.avatar + .avatar { margin-left: -12px; }
.trust-text strong { color: var(--coral-deep); font-weight: 600; }

/* Hero 礼物卡 */
.gift-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gift-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.gift-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 372 / 190;
}
.gift-cover svg { width: 100%; height: 100%; }
.gift-cover-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(58, 42, 36, .58);
    backdrop-filter: blur(6px);
    color: #FFF6EE;
    font-size: 11.5px;
    white-space: nowrap;
    max-width: calc(100% - 24px);
}

.gift-head { display: flex; flex-direction: column; gap: 2px; }
.gift-title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.gift-meta { color: var(--muted); font-size: 13px; }

.lyric-stack { display: flex; flex-direction: column; gap: 8px; }
.lyric-line {
    font-size: 15px;
    line-height: 1.5;
    color: var(--faint);
    transition: color .3s var(--ease), transform .3s var(--ease);
}
.lyric-line.is-active { color: var(--coral); font-weight: 600; }
.lyric-line.is-faint { color: #D8CCC2; }

.player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}
.player-btn { display: block; flex: none; }
.player-time { color: var(--muted); font-size: 12px; }
.player-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: var(--coral);
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   Section 基础
   ========================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-2); }
.section-inner { width: min(1200px, 100% - 48px); margin: 0 auto; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-title {
    margin-bottom: 12px;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 600;
    line-height: 1.4;
}
.section-sub { color: var(--muted); font-size: 16px; }

.section-cta { margin-top: 40px; text-align: center; }

/* ── 场景 ─────────────────────────────────────────── */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.scene-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.scene-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-lift);
}
.scene-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--coral-soft);
    color: var(--coral);
    transition: background .3s var(--ease), color .3s var(--ease);
}
.scene-card:hover .scene-icon { background: var(--coral); color: #fff; }
.scene-card h3 { font-size: 18px; }
.scene-card p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.scene-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--cream-2);
    color: var(--coral-deep);
    font-size: 11.5px;
    letter-spacing: .02em;
}

/* ── 步骤 ─────────────────────────────────────────── */
.step-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.step-num {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    color: var(--coral);
}
.step-card h3 { font-size: 19px; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.step-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--faint);
    font-size: 12.5px;
}

/* ==========================================================================
   礼物页展示 + 试听
   ========================================================================== */
.showcase {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.phone {
    padding: 12px;
    border-radius: 40px;
    background: var(--ink);
    box-shadow: 0 40px 60px -30px rgba(58, 42, 36, .5);
}
.phone-screen {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 30px;
    background: var(--cream);
}
.phone-cover { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; }
.phone-cover svg { width: 100%; height: 100%; }
.phone-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.phone-lyric { color: var(--faint); font-size: 13.5px; line-height: 1.5; }
.phone-lyric.is-active { color: var(--coral); font-weight: 600; }
.phone-lyric.is-faint { color: #D3C6BC; }
.phone-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.phone-photo { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1; }
.phone-photo svg { width: 100%; height: 100%; }

.showcase-body { display: flex; flex-direction: column; gap: 22px; }
.showcase-title {
    font-size: clamp(20px, 1.9vw, 24px);
    line-height: 1.6;
    font-weight: 600;
}

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--body);
    font-size: 15px;
}
.feature-list svg { flex: none; color: var(--coral); }

/* 试听列表 */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.track-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px 10px;
    color: var(--faint);
    font-size: 12px;
    letter-spacing: .08em;
}
.track-note { color: var(--coral); letter-spacing: 0; }

.track {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    transition: background .25s var(--ease);
}
.track:hover { background: var(--cream-2); }
.track.is-playing { background: var(--cream-2); }

.track-play {
    flex: none;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    transition: transform .2s var(--ease);
}
.track-play:hover { transform: scale(1.06); }
.track-play:disabled { cursor: default; opacity: .6; }

.track-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.track-title { font-size: 15px; font-weight: 500; }
.track-lyric {
    color: var(--faint);
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .3s var(--ease);
}
.track-progress { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.track-progress span { display: block; height: 100%; width: 0; background: var(--coral); }
.track.is-playing .track-progress span { animation: trackFill 12s linear forwards; }
@keyframes trackFill { from { width: 0; } to { width: 100%; } }

.track-tag { flex: none; background: var(--cream-3); }
.track-dur { flex: none; color: var(--faint); font-size: 12px; }

/* ==========================================================================
   社会证明
   ========================================================================== */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}
.stat-card strong {
    font-family: var(--font-serif);
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 600;
    color: var(--coral);
    line-height: 1.1;
}
.stat-card span { color: var(--muted); font-size: 14px; }

.quote-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--surface);
}
.quote-icon { color: var(--coral); opacity: .32; }
.quote-card blockquote { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.9; }
.quote-card figcaption { display: flex; align-items: center; gap: 10px; color: var(--coral-deep); font-size: 13px; }
.quote-author { font-weight: 600; }
.quote-meta { color: var(--faint); }

/* ==========================================================================
   定价 + FAQ
   ========================================================================== */
.pricing-row {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: #FFF8F2;
    box-shadow: 0 32px 60px -26px rgba(58, 42, 36, .55);
}
.price-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--coral);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.price-line { display: flex; align-items: baseline; gap: 8px; }
.price-line strong {
    font-family: var(--font-serif);
    font-size: clamp(40px, 4vw, 52px);
    font-weight: 600;
    line-height: 1;
}
.price-line span { color: #C9B8AC; font-size: 14px; }

.price-includes { display: flex; flex-direction: column; gap: 12px; }
.price-includes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #F3EAE2;
    font-size: 14px;
    line-height: 1.6;
}
.price-includes .check { flex: none; color: var(--coral); margin-top: 1px; }

.price-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #C9B8AC;
    font-size: 12.5px;
}

.faq-col { display: flex; flex-direction: column; gap: 16px; }
.faq-title { font-size: 20px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { flex: none; color: var(--coral); transition: transform .3s var(--ease); }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* ==========================================================================
   结尾 CTA
   ========================================================================== */
.closing {
    padding: 96px 0 104px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-3) 100%);
}
.closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: min(720px, 100% - 48px);
    margin: 0 auto;
    text-align: center;
}
.closing-mark { margin-bottom: 4px; }
.closing-inner h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; }
.closing-inner p { color: var(--muted); font-size: 16px; }
.closing-inner .btn { margin-top: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #FFF8F2; }
.footer-inner {
    width: min(1200px, 100% - 48px);
    margin: 0 auto;
    padding: 60px 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 248, 242, .12);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-tagline { color: #C9B8AC; font-size: 14px; line-height: 1.85; max-width: 26em; }
.footer-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E8685C;
    font-size: 13px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: #FFF8F2;
}
.footer-col a { color: #C9B8AC; font-size: 13.5px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--coral); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    color: #8A7568;
    font-size: 12.5px;
}
.footer-note { display: inline-flex; align-items: center; gap: 6px; color: var(--coral); }

/* ==========================================================================
   滚动入场
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   制作页（create.html）
   ========================================================================== */
.create-main {
    width: min(880px, 100% - 48px);
    margin: 0 auto;
    padding: 48px 0 96px;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    color: var(--faint);
    font-size: 13px;
}
.stepper li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: transparent;
    transition: background .3s var(--ease), color .3s var(--ease);
}
.stepper li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}
.stepper li.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.stepper li.is-active span { background: var(--coral); color: #fff; }
.stepper li.is-done span { background: var(--coral-soft); color: var(--coral-deep); }
.stepper li + li { position: relative; }
.stepper li + li::before {
    content: "";
    display: block;
    width: 18px;
    height: 1px;
    background: var(--line-strong);
    margin-right: 2px;
}

.create-intro { margin-bottom: 32px; }
.create-intro h1 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.45; margin-bottom: 10px; }
.create-intro p { color: var(--muted); }

.story-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.wizard-step { display: none; border: none; margin: 0; padding: 0; }
.wizard-step.is-active { display: flex; flex-direction: column; gap: 20px; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wizard-step legend {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
}
.legend-inner { display: flex; align-items: center; gap: 12px; }
.step-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--coral-soft);
    color: var(--coral-deep);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
}

.field-hint { color: var(--faint); font-size: 13.5px; margin-top: -8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { color: var(--body); font-size: 14px; font-weight: 500; }
.field-label em { color: var(--coral); font-style: normal; font-size: 12px; }

.field input,
.field select {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
    appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7568' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.field input::placeholder { color: #CBB9AC; }
.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--coral);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(232, 104, 92, .12);
}
.field-error { color: var(--coral-deep); font-size: 12.5px; }

.wizard-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.form-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--faint);
    font-size: 12.5px;
}

.genre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.genre-card { cursor: pointer; }
.genre-card input { position: absolute; opacity: 0; pointer-events: none; }
.genre-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--cream);
    transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.genre-inner strong { font-size: 15px; font-weight: 600; }
.genre-inner span { color: var(--muted); font-size: 12.5px; }
.genre-card input:checked + .genre-inner {
    border-color: var(--coral);
    background: var(--coral-soft);
    box-shadow: 0 0 0 3px rgba(232, 104, 92, .12);
}
.genre-card input:focus-visible + .genre-inner { outline: 2px solid var(--coral); outline-offset: 2px; }

/* 歌词预览 */
.lyric-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 32px;
}
.lyric-paper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 44px 48px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.lyric-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--coral);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .1em;
}
.lyric-title {
    margin: 6px 0 2px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.4;
}
.lyric-meta { color: var(--muted); font-size: 13px; }
.lyric-body { display: flex; flex-direction: column; gap: 26px; margin-top: 26px; }
.lyric-section { display: flex; flex-direction: column; gap: 6px; }
.lyric-label {
    color: var(--faint);
    font-size: 11.5px;
    letter-spacing: .14em;
}
.lyric-text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 2;
    color: var(--ink);
}
.lyric-footnote {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-strong);
    color: var(--faint);
    font-size: 12.5px;
}

.lyric-actions { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.action-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.action-card h3 { font-size: 17px; line-height: 1.6; }
.action-card p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.rewrite-form { display: flex; flex-direction: column; gap: 10px; }
.link-quiet { color: var(--faint); font-size: 12.5px; text-align: center; transition: color .2s; }
.link-quiet:hover { color: var(--coral); }
.action-note {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--cream-2);
}
.action-note strong { font-family: var(--font-serif); font-size: 22px; color: var(--coral-deep); }
.action-note span { color: var(--muted); font-size: 12.5px; }

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 90px 24px;
    text-align: center;
}
.empty-state h1 { font-size: 26px; }
.empty-state p { color: var(--muted); font-size: 15px; }
.empty-state .btn { margin-top: 8px; }

/* ==========================================================================
   礼物页（gift.html）
   ========================================================================== */
.page-gift { background: var(--cream); }

.gift-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, 100% - 48px);
    margin: 0 auto;
    padding: 20px 0;
}
.gift-topbar .brand-name { font-size: 19px; }

.gift-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* 歌短的时候纸卡居中，不要贴在顶部留一大片空白 */
    gap: 28px;
    overflow: hidden;
    padding: 28px 0 88px;
    min-height: 78vh;
    background:
        radial-gradient(900px 420px at 50% -8%, #FFF1E9 0%, rgba(255, 241, 233, 0) 72%),
        radial-gradient(620px 380px at 88% 78%, #FDF0E6 0%, rgba(253, 240, 230, 0) 70%);
}
.gift-stage .blob-a { top: -70px; left: 2%; width: 320px; height: 320px; opacity: .75; }
.gift-stage .blob-b { bottom: -90px; right: 0; width: 360px; height: 360px; opacity: .7; }

/* ── 开场遮罩 ────────────────────────────────────── */
.gift-veil {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    transition: opacity .7s var(--ease), visibility .7s;
}
.gift-veil.is-open { opacity: 0; visibility: hidden; }
.gift-veil[hidden] { display: none; }

.veil-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    padding: 32px 24px;
}
.veil-brand {
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 17px;
    letter-spacing: .06em;
    opacity: .78;
    transition: opacity .25s var(--ease);
}
.veil-brand:hover { opacity: 1; }
.veil-inner::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -18% -22%;
    background: radial-gradient(circle at 50% 44%, rgba(255, 206, 186, .42) 0%, rgba(255, 206, 186, 0) 66%);
    pointer-events: none;
}
.veil-kicker {
    color: var(--coral);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .28em;
    text-indent: .28em;
}
.veil-cover {
    display: block;
    width: 284px;
    padding: 10px 10px 30px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow:
        0 46px 70px -34px rgba(160, 78, 60, .55),
        0 12px 26px -16px rgba(160, 78, 60, .3),
        0 1px 0 rgba(255, 255, 255, .9) inset;
    animation: floaty 6s var(--ease) infinite;
}
.veil-cover svg { width: 100%; height: auto; border-radius: 20px; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-.6deg); }
    50% { transform: translateY(-9px) rotate(.6deg); }
}
.veil-from { color: var(--muted); font-size: 15.5px; letter-spacing: .02em; }
.veil-from strong { color: var(--ink); font-weight: 600; }
.veil-open {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px 12px 12px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.veil-open:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.veil-open:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.veil-play { display: flex; }
.veil-hint { color: var(--faint); font-size: 12.5px; letter-spacing: .04em; }

/* ── 礼物纸卡：左「唱片卡」+ 右「朗读面板」 ─────────── */
.gift-paper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "cover  reading"
        "info   reading"
        "wave   reading"
        "player reading"
        "lock   lock";
    column-gap: 0;
    row-gap: 22px;
    width: min(1020px, 100% - 48px);
    padding: 38px 38px 34px;
    border-radius: 32px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    opacity: .35;
    transition: opacity .9s var(--ease);
}
.gift-paper.is-live { opacity: 1; }

.gift-cover-wrap { grid-area: cover; position: relative; }
.gift-cover-lg {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 16px 28px -20px rgba(140, 90, 76, .5);
}
.gift-cover-lg svg { width: 100%; height: 100%; }
.gift-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(58, 42, 36, .58);
    backdrop-filter: blur(6px);
    color: #FFF6EE;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
}

.gift-info { grid-area: info; display: flex; flex-direction: column; gap: 8px; }
.gift-song-title {
    font-size: clamp(21px, 1.9vw, 26px);
    line-height: 1.45;
    letter-spacing: .01em;
    text-wrap: balance;
}
.gift-song-meta { color: var(--muted); font-size: 13px; }

.gift-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.gift-photo {
    display: block;
    overflow: hidden;
    padding: 4px;
    border-radius: 9px;
    background: var(--surface);
    aspect-ratio: 1 / 1;
    box-shadow: 0 12px 20px -14px rgba(140, 90, 76, .6);
    transform: rotate(-1.6deg) scale(.97);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), outline-color .3s;
    outline: 2px solid transparent;
    outline-offset: 3px;
}
.gift-photo:nth-child(2) { transform: rotate(1.4deg) scale(.97); }
.gift-photo:nth-child(3) { transform: rotate(-.8deg) scale(.97); }
.gift-photo svg { width: 100%; height: 100%; border-radius: 5px; }
.gift-photo.is-active {
    transform: rotate(0) scale(1);
    outline-color: var(--coral-soft);
    box-shadow: 0 18px 26px -14px rgba(140, 90, 76, .62);
}

/* 朗读面板 */
.gift-reading {
    grid-area: reading;
    height: 100%;
    min-height: 440px;
    max-height: 560px;
    padding-left: 38px;
    border-left: 1px solid var(--line);
}
.gift-lyrics {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow-y: auto;
    padding: 22px 8px 18px;
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 46px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 26px, #000 calc(100% - 46px), transparent 100%);
}
.gift-lyrics::-webkit-scrollbar { display: none; }
.gift-lyric-group { display: flex; flex-direction: column; gap: 4px; }
.gift-lyric-label {
    margin-bottom: 2px;
    color: #A4917F;
    font-size: 10.5px;
    letter-spacing: .2em;
    text-indent: .2em;
}
.g-line {
    font-size: 17px;
    line-height: 1.95;
    color: #8C7A6E;
    cursor: pointer;
    transition: color .5s var(--ease), transform .5s var(--ease);
}
.g-line:hover { color: var(--ink); }
.g-line.is-past { color: var(--body); }
.g-line.is-active {
    color: var(--coral);
    font-weight: 600;
    transform: scale(1.03);
    animation: lineGlow 2.8s var(--ease) infinite;
}
@keyframes lineGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(232, 104, 92, 0); }
    50% { text-shadow: 0 0 20px rgba(232, 104, 92, .34); }
}

/* 装饰声波：只做节奏提示，不是真实音频可视化 */
.gift-wave {
    grid-area: wave;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 46px;
    padding: 0 2px;
    align-self: end;
    opacity: .9;
}
.gift-wave span {
    flex: 1;
    height: var(--h);
    min-height: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(232, 104, 92, .55), rgba(232, 104, 92, .22));
    transform: scaleY(.62);
    transform-origin: center;
}
.gift-paper.is-playing .gift-wave span {
    animation: waveBeat 1.4s var(--ease) infinite alternate;
    animation-delay: var(--d);
}
@keyframes waveBeat {
    from { transform: scaleY(.5); }
    to { transform: scaleY(1); }
}

/* 播放区 */
.gift-player {
    grid-area: player;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: end;
}
.gift-controls { display: flex; align-items: center; gap: 14px; width: 100%; }
.gift-play {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex: none;
    transition: transform .25s var(--ease);
}
.gift-play:hover { transform: scale(1.04); }
.gift-play:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 50%; }
.gift-progress-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gift-times { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.gift-signature {
    color: var(--faint);
    font-size: 12px;
    letter-spacing: .06em;
    text-align: center;
}

.gift-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 24px 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    animation: fadeUp .6s var(--ease);
}
.empty-gift { min-height: 60vh; justify-content: center; }
.gift-after[hidden] { display: none; }

/* 礼物页尾注：只留一行署名，避免整站页脚的深色块打断阅读 */
.gift-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 24px 56px;
    color: var(--faint);
    font-size: 12px;
    letter-spacing: .04em;
    text-align: center;
}
.gift-foot-note { color: var(--line-strong); }

/* ==========================================================================
   提示条
   ========================================================================== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    background: rgba(58, 42, 36, .94);
    color: #FFF8F2;
    font-size: 13.5px;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 72px; }
    .hero-title { font-size: clamp(34px, 6vw, 48px); }
    .gift-card { max-width: 460px; }
    .showcase { grid-template-columns: 1fr; gap: 40px; }
    .phone { max-width: 320px; margin: 0 auto; }
    .pricing-row { grid-template-columns: 1fr; gap: 32px; }
    .price-card { max-width: 520px; }
    .lyric-preview { grid-template-columns: 1fr; }
    .lyric-actions { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav { display: none; }
    .header-actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .mobile-nav { display: flex; }
    .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-row { grid-template-columns: 1fr; }
    .quote-row { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .story-form { padding: 24px; }
    .lyric-paper { padding: 28px 24px; }
}

@media (max-width: 980px) {
    .gift-paper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "cover" "info" "reading" "wave" "player" "lock";
        row-gap: 18px;
        width: min(560px, 100% - 40px);
        padding: 24px 22px 26px;
        border-radius: 26px;
    }
    .gift-cover-lg { border-radius: 16px; }
    /* 窄屏不再做内嵌滚动：歌词整段铺开、随页面滚动，播放条吸底 */
    .gift-reading {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 18px 0 0;
        border-left: none;
        border-top: 1px solid var(--line);
    }
    .gift-lyrics {
        height: auto;
        overflow: visible;
        padding: 4px 0;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .gift-wave { margin-top: 4px; }
    .gift-player {
        position: sticky;
        bottom: 0;
        align-self: stretch;
        padding: 10px 0 8px;
        background: var(--surface);
        box-shadow: 0 -14px 26px -20px rgba(140, 90, 76, .45);
    }
    .gift-signature { text-align: left; }

    /* 窄屏：锁定卡收窄内边距，按钮仍然拉满 */
    .gift-lock { padding: 18px 16px 16px; border-radius: 16px; }
    .gift-lock-title { font-size: 19px; }
    .gift-lock-desc { font-size: 12.5px; }
    .gift-dl { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 640px) {
    .header-inner, .hero-inner, .section-inner, .footer-inner, .create-main, .gift-topbar {
        width: calc(100% - 40px);
    }
    .scene-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .genre-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
    .footer-top { grid-template-columns: 1fr; }
    .track-tag { display: none; }
    .stepper { flex-wrap: wrap; font-size: 12px; }
    .stepper li + li::before { display: none; }
    .g-line { font-size: 15.5px; }
    .veil-cover { width: 190px; padding: 8px 8px 20px; }
    .veil-kicker { font-size: 11.5px; letter-spacing: .2em; }
}

/* ==========================================================================
   生成中（写词 / 谱曲）
   上游 Suno 是异步任务，这里负责把「等」这件事讲清楚。
   ========================================================================== */
.working-state {
    display: flex;
    justify-content: center;
    padding: 72px 0 112px;
}
.working-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(440px, 100%);
    padding: 44px 34px 38px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.working-card h2 { font-size: 21px; }
.working-card p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.working-card .progress { width: 100%; margin-top: 10px; height: 5px; }
.working-hint { color: var(--faint) !important; font-size: 12px !important; }

.working-ring {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 6px;
    border-radius: 50%;
    border: 2px solid var(--coral-soft);
}
.working-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--coral);
    animation: working-spin 1.1s linear infinite;
}
.working-ring span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--coral);
    animation: working-pulse 1.6s ease-in-out infinite;
}

@keyframes working-spin { to { transform: rotate(360deg); } }
@keyframes working-pulse {
    0%, 100% { opacity: .35; transform: scale(.78); }
    50%      { opacity: 1;   transform: scale(1.06); }
}

/* 降级说明（本地模板写词 / 上游异常） */
.lyric-notice {
    margin-top: 10px;
    padding: 9px 13px;
    border-radius: 12px;
    background: var(--coral-soft);
    color: var(--coral-deep);
    font-size: 12px;
    line-height: 1.75;
}

/* ==========================================================================
   演唱工作台（歌词预览右侧：生成 / 进度 / 播放 / 下载）
   ========================================================================== */
.studio {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--cream-2);
}
.studio-pane { display: flex; flex-direction: column; gap: 10px; }

.studio-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
}
.studio-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    animation: working-pulse 1.4s ease-in-out infinite;
}
.studio-percent {
    margin-left: auto;
    color: var(--coral-deep);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.studio-hint { color: var(--faint); font-size: 12px; line-height: 1.75; }
/* 按钮下方紧跟的提示：给一点呼吸位，否则两行文案会贴住按钮 */
.studio-hint:not([hidden]) { margin-top: 10px; }
.studio-error {
    color: var(--coral-deep);
    font-size: 13px;
    line-height: 1.75;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface);
}

.studio-player { display: flex; align-items: center; gap: 12px; }
.studio-play {
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .2s var(--ease);
}
.studio-play:hover { transform: scale(1.05); }
.studio-play:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.studio-track { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.studio-track .progress {
    height: 6px;
    border-radius: 3px;
    background: #EBD4C2;
    box-shadow: inset 0 1px 1px rgba(140, 90, 76, .10);
    cursor: pointer;
}
.studio-track .progress-fill {
    background: var(--coral);
    border-radius: 3px;
    transition: width .2s linear;
}
.studio-times {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.studio-downloads { display: flex; gap: 8px; }
.studio-downloads .btn { flex: 1; gap: 6px; padding: 9px 10px; font-size: 12.5px; }
.studio-downloads .btn svg { flex: none; }

/* 歌词邮件：留邮箱这一步（同样在 .action-card 内，必须带 .studio 提权） */
.studio .studio-mail-lead {
    margin: 0 0 12px;
    color: var(--body);
    font-size: 12.5px;
    line-height: 1.75;
    text-align: left;
}
.studio .studio-mail-lead strong { color: var(--ink); font-weight: 600; }
.studio-mail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.studio .studio-mail-input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-size: 13.5px;
    letter-spacing: .02em;
    text-align: center;
}
.studio .studio-mail-input::placeholder {
    color: var(--faint);
    letter-spacing: 0;
}
.studio .studio-mail-input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 104, 92, .12);
}
.studio-mail .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
}
.studio .studio-mail-note {
    margin: 9px 0 0;
    color: var(--coral-deep);
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}

/* 试听 / 解锁（创作页播放器下方） */
.studio-lock {
    margin-top: 10px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(232, 104, 92, .18);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(232, 104, 92, .06), rgba(232, 104, 92, .02));
    text-align: center;
    transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.studio-lock.is-hot {
    border-color: rgba(232, 104, 92, .45);
    box-shadow: 0 0 0 3px rgba(232, 104, 92, .1);
}
/* 注意：锁定框在 .action-card 内，而 .action-card p 的权重(0,1,1) 高于单类，
   所以下面这组 p 必须写成 .studio-lock .studio-lock-xxx 才生效 */
.studio-lock .studio-lock-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    color: var(--faint);
    font-size: 10.5px;
    line-height: 1.6;
    letter-spacing: .04em;
    white-space: nowrap;
}
.studio-lock .studio-lock-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: rgba(232, 104, 92, .11);
    color: var(--coral-deep);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .04em;
}
.studio-lock .studio-lock-headline {
    margin: 10px 0 12px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
}
.studio-lock .studio-lock-hint {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
.studio-lock .studio-lock-foot {
    margin: 9px 0 0;
    color: var(--faint);
    font-size: 11px;
    line-height: 1.6;
}
.studio-lock .studio-lock-foot b { color: var(--body); font-weight: 600; }

/* 在线支付：唯一的付款入口，按钮拉满整行 */
.studio-lock-pay { margin: 0 0 2px; }
.studio-lock-pay .btn {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12.5px;
}
.studio-lock-pay .btn:disabled { opacity: .7; cursor: default; }
/* 「微信 songift」整体换行，避免被拆成「微 / 信」 */
.studio-lock .studio-lock-wx { white-space: nowrap; }

/* 礼物页：把歌存下来 */
.gift-signature { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.gift-save {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--coral-deep);
    font-size: 12px;
    border-bottom: 1px solid rgba(232, 104, 92, .3);
    padding-bottom: 1px;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.gift-save:hover { color: var(--coral); border-bottom-color: var(--coral); }
.gift-save svg { flex: none; }

/* ── 试听与解锁 ─────────────────────────────────────
   歌没解锁时停在这里：不弹窗、不挡内容，就在播放器下面说明白。 */
.gift-lock {
    grid-area: lock;
    margin-top: 2px;
    padding: 22px 26px 20px;
    border: 1px solid rgba(232, 104, 92, .18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(232, 104, 92, .07), rgba(232, 104, 92, .02));
    text-align: center;
    transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.gift-lock.is-hot {
    border-color: rgba(232, 104, 92, .45);
    box-shadow: 0 0 0 4px rgba(232, 104, 92, .09), 0 20px 44px -30px rgba(232, 104, 92, .7);
}

.gift-lock-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 11px;
}
.gift-lock-badge {
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    background: rgba(232, 104, 92, .13);
    color: var(--coral-deep);
    font-size: 11.5px;
    letter-spacing: .06em;
}
.gift-lock-full { color: var(--faint); font-size: 11.5px; letter-spacing: .06em; }

.gift-lock-title {
    margin: 0 0 7px;
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
}
.gift-lock-desc {
    max-width: 27em;
    margin: 0 auto 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.gift-lock-note {
    margin: 12px 0 0;
    color: var(--coral-deep);
    font-size: 12.5px;
    line-height: 1.6;
}
.gift-lock-foot {
    margin: 14px 0 0;
    color: var(--faint);
    font-size: 11.5px;
    letter-spacing: .04em;
}
.gift-lock-foot b { color: var(--body); font-weight: 600; }
/* 「微信 songift」整体换行，避免被拆成「微 / 信」 */
.gift-lock-wx { white-space: nowrap; }

/* 在线支付：唯一入口，主按钮占满整行 */
.gift-lock-pay {
    max-width: 320px;
    margin: 0 auto 4px;
}
.gift-lock-pay .btn {
    width: 100%;
    justify-content: center;
}
.gift-lock-pay .btn:disabled {
    opacity: .7;
    cursor: default;
}

/* 解锁后：下载按钮 */
.gift-downloads {
    grid-area: lock;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.gift-dl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.gift-dl:hover {
    color: var(--coral-deep);
    border-color: rgba(232, 104, 92, .45);
    transform: translateY(-1px);
}
.gift-dl svg { flex: none; }

@media (max-width: 640px) {
    .working-state { padding: 48px 0 80px; }
    .working-card { padding: 34px 22px 30px; }
    .studio { padding: 14px; }
}

/* ==========================================================================
   视图状态（前后端分离后，同一份静态 HTML 里切换 表单 / 预览 / 空状态）
   这些容器自己带 display，必须用 !important 压住，hidden 才生效。
   ========================================================================== */
[hidden] { display: none !important; }

/* ==========================================================================
   我的歌（mine.html）
   没有密码：输入邮箱收一封链接，点开就是这个邮箱名下的所有歌。
   ========================================================================== */
.page-mine { background: var(--cream); }

.mine-main {
    width: min(880px, 100% - 48px);
    margin: 0 auto;
    padding: 56px 0 96px;
}

.mine-kicker {
    margin: 0 0 10px;
    color: var(--coral-deep);
    font-size: 12px;
    letter-spacing: .16em;
}

.mine-gate h1,
.mine-head h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}

.mine-head h1 { font-size: clamp(22px, 3vw, 28px); word-break: break-all; }

.mine-lead {
    margin: 16px 0 0;
    color: var(--body);
    font-size: 15px;
    line-height: 1.95;
}

.mine-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    margin: 30px 0 0;
}

.mine-field { display: flex; flex-direction: column; gap: 8px; }

.mine-label {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
}

.mine-field input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    letter-spacing: .02em;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.mine-field input::placeholder { color: var(--faint); }

.mine-field input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 104, 92, .12);
}

.mine-form .btn { padding: 14px 24px; }

.mine-note {
    margin: 14px 0 0;
    max-width: 460px;
    color: var(--coral-deep);
    font-size: 13px;
    line-height: 1.7;
}
.mine-note.is-ok { color: var(--body); }
.mine-note-sub {
    display: block;
    margin-top: 6px;
    color: var(--faint);
    font-size: 12px;
}

.mine-alt {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.8;
}
.mine-alt a { color: var(--coral-deep); text-decoration: none; }
.mine-alt a:hover { text-decoration: underline; }

/* 正在确认登录链接 */
.mine-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 120px 0;
    color: var(--muted);
    font-size: 14px;
}
.mine-spinner {
    width: 26px;
    height: 26px;
    border: 2px solid var(--line-strong);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: mine-spin .9s linear infinite;
}
@keyframes mine-spin { to { transform: rotate(360deg); } }

/* 已登录 */
.mine-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.mine-songs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 0;
}

.mine-song {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.mine-song:hover {
    border-color: rgba(232, 104, 92, .3);
    transform: translateY(-1px);
}

.mine-song-body { min-width: 0; }

.mine-song h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.mine-song-meta {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.mine-song-date {
    margin: 3px 0 0;
    color: var(--faint);
    font-size: 11.5px;
}

.mine-song-side {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.mine-chip {
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    letter-spacing: .04em;
    white-space: nowrap;
}
.mine-chip-plain { background: var(--cream-3); color: var(--muted); }
.mine-chip-wait  { background: rgba(232, 104, 92, .1); color: var(--coral-deep); }
.mine-chip-lock  { background: rgba(232, 104, 92, .14); color: var(--coral-deep); font-weight: 600; }
.mine-chip-ok    { background: rgba(84, 140, 96, .12); color: #4A7C57; font-weight: 600; }
.mine-chip-bad   { background: rgba(58, 42, 36, .08); color: var(--muted); }

.mine-song-acts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mine-empty { padding: 60px 24px; }
.mine-empty h2 { margin: 0; font-family: var(--font-serif); font-size: 22px; }

.mine-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 30px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.mine-foot .mine-alt { margin: 0; max-width: 560px; }

@media (max-width: 640px) {
    .mine-main { padding: 36px 0 72px; }
    .mine-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .mine-song {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px;
    }
    .mine-song-side {
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .mine-song-acts { justify-content: flex-end; }
    .mine-song-acts .btn { flex: 1 1 auto; }
    .mine-foot { flex-direction: column; align-items: stretch; }
}
