/* ==========================================================================
   365Lab 白噪音 — 样式表
   深色现代 UI / 玻璃拟态 / 柔和渐变 / 移动端自适应
   无外部字体、无 CDN、无图标库
   ========================================================================== */

:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #eef2ff;
  --text-dim: #a8b0c6;
  --text-mute: #7b849c;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --accent-3: #4ade80;
  --danger: #ff8095;
  --warn: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --grad: linear-gradient(135deg, #6ee7ff 0%, #a78bfa 55%, #f0abfc 100%);
  --grad-soft: linear-gradient(135deg, rgba(110, 231, 255, 0.16), rgba(167, 139, 250, 0.16));
  --maxw: 1220px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 62px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3.1vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--text-dim); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
input, select, button, textarea { font-family: inherit; }

::selection { background: rgba(110, 231, 255, .3); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }

/* 语言块 */
html[data-lang-mode="zh"] .lang-block[data-lang="en"],
html[data-lang-mode="en"] .lang-block[data-lang="zh"] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #111a2e; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- 背景装饰 ---------------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-decor::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(110, 231, 255, 0.13), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(167, 139, 250, 0.15), transparent 60%),
    radial-gradient(800px 520px at 50% 108%, rgba(240, 171, 252, 0.1), transparent 62%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .38; }
.blob-1 { width: 46vw; height: 46vw; left: -14vw; top: -12vw; background: #1f6feb; animation: float1 26s ease-in-out infinite; }
.blob-2 { width: 38vw; height: 38vw; right: -10vw; top: 8vw; background: #7c3aed; animation: float2 32s ease-in-out infinite; }
.blob-3 { width: 30vw; height: 30vw; left: 40vw; bottom: -12vw; background: #0e7490; animation: float1 40s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4vw,3vw,0) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(-5vw,4vw,0) scale(.95); } }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 0 10px rgba(110,231,255,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: .95rem; }
.brand-text strong { font-size: 1.02rem; letter-spacing: .02em; }
.brand-text span { color: var(--text-mute); font-size: .78rem; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--text-dim); padding: 8px 12px; border-radius: 10px; font-size: .92rem;
  text-decoration: none; transition: background .2s, color .2s;
}
.site-nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }

.lang-switch {
  display: flex; gap: 3px; padding: 3px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border); margin-left: 6px;
}
.lang-btn {
  border: 0; background: transparent; color: var(--text-mute); cursor: pointer;
  padding: 6px 11px; border-radius: 9px; font-size: .82rem; transition: .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(38px, 7vw, 84px) 0 clamp(20px, 4vw, 40px); }
.hero-inner { text-align: center; max-width: 900px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 7px 15px; border-radius: 999px; font-size: .82rem; color: var(--text-dim);
  background: var(--panel); border: 1px solid var(--border);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { margin-bottom: 14px; }
.hero h1 .lang-block { background: linear-gradient(120deg, #fff 20%, #b9d8ff 60%, #d7c4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(.98rem, 1.6vw, 1.12rem); max-width: 760px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-feats {
  display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; margin-top: 28px;
}
.hero-feats li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-dim);
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
.hero-feats .ico { color: var(--accent-3); display: inline-flex; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--panel-2); color: var(--text); cursor: pointer;
  font-size: .93rem; font-weight: 600; line-height: 1.3;
  transition: transform .12s ease, background .2s, box-shadow .2s, opacity .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--grad); color: #071018;
  box-shadow: 0 8px 26px rgba(110, 231, 255, .22), 0 2px 0 rgba(255,255,255,.16) inset;
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(167, 139, 250, .32); }
.btn-ghost { background: var(--panel); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--border-strong); }
.btn-xl { padding: 14px 28px; font-size: 1.02rem; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-mini { padding: 6px 12px; font-size: .8rem; border-radius: 9px; background: var(--panel); border-color: var(--border); }
.btn-round { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); }
.btn.is-on { background: var(--grad-soft); border-color: var(--border-strong); }

.ico { display: inline-flex; width: 1.05em; height: 1.05em; flex: 0 0 auto; }
.ico svg { width: 100%; height: 100%; display: block; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(34px, 6vw, 66px) 0; }
.section-head { margin-bottom: 26px; max-width: 820px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { margin: 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 1rem; }
.hint { font-size: .78rem; color: var(--text-mute); margin: 10px 0 0; line-height: 1.5; }
.empty { color: var(--text-mute); font-size: .88rem; padding: 18px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-sm); }

/* ---------------- Presets ---------------- */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.preset-card {
  position: relative; text-align: left; cursor: pointer;
  padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .16s ease, border-color .2s, background .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 10px; min-height: 138px;
  overflow: hidden;
}
.preset-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: var(--grad-soft); pointer-events: none;
}
.preset-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.preset-card:hover::after { opacity: 1; }
.preset-card.is-active { border-color: rgba(110,231,255,.55); box-shadow: 0 0 0 1px rgba(110,231,255,.3), var(--shadow-sm); }
.preset-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.preset-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent); flex: 0 0 auto;
}
.preset-ico .ico { width: 20px; height: 20px; }
.preset-name { font-weight: 700; font-size: .98rem; }
.preset-name-en { display: block; font-weight: 500; font-size: .74rem; color: var(--text-mute); }
.preset-desc { font-size: .8rem; color: var(--text-dim); margin: 0; position: relative; z-index: 1; }
.preset-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; position: relative; z-index: 1; }
.preset-tags span { font-size: .68rem; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-mute); }

/* ---------------- Mixer layout ---------------- */
.mixer-layout { display: grid; grid-template-columns: 306px minmax(0, 1fr); gap: 16px; align-items: start; }

.library { position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 34px); display: flex; flex-direction: column; }
.sheet-close { display: none; }
.library-search { margin-bottom: 10px; }
.library-search input {
  width: 100%; padding: 9px 12px; border-radius: 10px; font-size: .88rem;
  background: rgba(0,0,0,.28); border: 1px solid var(--border); color: var(--text);
}
.library-search input::placeholder { color: var(--text-mute); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.cat-tab {
  border: 1px solid var(--border); background: transparent; color: var(--text-mute);
  padding: 5px 11px; border-radius: 999px; font-size: .78rem; cursor: pointer; transition: .2s;
}
.cat-tab:hover { color: var(--text); border-color: var(--border-strong); }
.cat-tab.is-active { background: var(--grad-soft); color: var(--text); border-color: var(--border-strong); }
.sound-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; margin: 0 -4px 0 0; }
.sound-list::-webkit-scrollbar, .tracks::-webkit-scrollbar { width: 8px; }
.sound-list::-webkit-scrollbar-thumb, .tracks::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; }

.sound-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid transparent; transition: .18s;
}
.sound-item:hover { background: var(--panel-2); border-color: var(--border); transform: translateX(2px); }
.sound-item.is-added { border-color: rgba(110,231,255,.4); }
.sound-item .ico { width: 18px; height: 18px; color: var(--accent); }
.sound-meta { display: flex; flex-direction: column; min-width: 0; }
.sound-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sound-sub { font-size: .72rem; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sound-add {
  margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--text); flex: 0 0 auto; font-size: 1rem;
}

/* ---------------- Player ---------------- */
.mixer-main { min-width: 0; }
.player-card { display: flex; flex-direction: column; gap: 16px; }
.player-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.transport { display: flex; gap: 8px; }
.master-vol { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; min-width: 190px; }
.master-vol label { font-size: .78rem; color: var(--text-mute); white-space: nowrap; }
.master-vol input[type=range] { flex: 1; min-width: 90px; }
.master-vol output { font-size: .78rem; color: var(--text-dim); width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.timer-box { display: flex; flex-direction: column; gap: 4px; }
.timer-box > label { font-size: .78rem; color: var(--text-mute); }
.timer-row { display: flex; align-items: center; gap: 8px; }
.timer-display { font-family: var(--mono); font-size: .84rem; color: var(--accent); min-width: 54px; }

input[type=range] {
  -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) var(--pct, 80%), rgba(255,255,255,.12) var(--pct, 80%));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); border: 0;
}
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }

select, input[type=number], input[type=search] {
  background: rgba(0,0,0,.28); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; font-size: .86rem;
}
select { cursor: pointer; }

/* 可视化 */
.viz-wrap {
  position: relative; height: 108px; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(180deg, rgba(110,231,255,.06), rgba(167,139,250,.05));
  border: 1px solid var(--border);
}
#viz { width: 100%; height: 100%; display: block; }
.viz-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; color: var(--text-mute); }

/* 轨道 */
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.track-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.count {
  font-size: .72rem; padding: 1px 8px; border-radius: 999px;
  background: var(--grad-soft); color: var(--text-dim); border: 1px solid var(--border);
}
.track-head-actions { display: flex; gap: 6px; }

.tracks { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.track {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--border);
  animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.track.is-off { opacity: .55; }
.track-ico {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent);
}
.track-ico .ico { width: 19px; height: 19px; }
.track-info { min-width: 0; flex: 0 1 150px; display: flex; flex-direction: column; }
.track-name {
  font-size: .88rem; font-weight: 600; background: transparent; border: 0; color: var(--text);
  padding: 2px 4px; border-radius: 7px; width: 100%; min-width: 0; text-overflow: ellipsis;
}
.track-name:hover { background: rgba(255,255,255,.06); }
.track-name:focus { background: rgba(0,0,0,.35); outline: 1px solid var(--accent); }
.track-sub { font-size: .7rem; color: var(--text-mute); padding-left: 4px; }
.track-vol { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 120px; }
.track-vol input[type=range] { flex: 1; }
.track-vol output { font-size: .74rem; color: var(--text-dim); width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.track-btns { display: flex; gap: 5px; flex: 0 0 auto; }
.tbtn {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-dim); transition: .18s;
}
.tbtn:hover { color: var(--text); background: var(--panel-2); }
.tbtn .ico { width: 15px; height: 15px; }
.tbtn.danger:hover { color: var(--danger); border-color: rgba(255,128,149,.45); }
.mixer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-open { display: none; }

/* ---------------- My mixes ---------------- */
.mix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mix-card {
  padding: 14px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px;
}
.mix-card h3 { margin: 0; font-size: .96rem; }
.mix-card .mix-meta { font-size: .74rem; color: var(--text-mute); }
.mix-card .mix-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mix-card .mix-tags span { font-size: .68rem; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-dim); }
.mix-card .mix-actions { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }

/* ---------------- Export ---------------- */
.export-card { display: flex; flex-direction: column; gap: 16px; }
.export-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .78rem; color: var(--text-mute); }
.progress-wrap { display: flex; flex-direction: column; gap: 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-dim); }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0%; background: var(--grad); transition: width .25s ease; }

/* ---------------- FAQ / prose ---------------- */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel); margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: .95rem;
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { padding: 0 16px 14px; margin: 0; font-size: .9rem; }

.prose p { font-size: .95rem; }
/* .seo-tags 已按用户要求移除（关键词保留在 meta/JSON-LD 里） */

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0 40px; margin-top: 30px; background: rgba(0,0,0,.2); }
.footer-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer-brand strong { display: block; font-size: 1rem; }
.footer-brand p { margin: 4px 0 0; font-size: .82rem; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-mute); font-size: .84rem; }
.copyright { font-size: .76rem; color: var(--text-mute); margin: 0; }

/* ---------------- Bottom sheet (mobile) ---------------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(3, 6, 12, .6); z-index: 70;
  backdrop-filter: blur(3px);
}
.sheet-backdrop[hidden] { display: none; }

/* ---------------- Toast ---------------- */
.toast-host {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
  width: max-content; max-width: min(92vw, 460px);
}
.toast {
  background: rgba(18, 24, 40, .96); border: 1px solid var(--border-strong);
  color: var(--text); padding: 11px 18px; border-radius: 12px; font-size: .86rem;
  box-shadow: var(--shadow); animation: toastIn .22s ease; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: .25s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .mixer-layout { grid-template-columns: 1fr; }
  .library {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 78vh; z-index: 80; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #0c1220; border: 1px solid var(--border-strong); border-bottom: 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    transform: translateY(106%); transition: transform .3s cubic-bezier(.32, .72, 0, 1);
    box-shadow: 0 -20px 50px rgba(0,0,0,.6);
  }
  .library.is-open { transform: translateY(0); }
  .sheet-close { display: grid; }
  .sheet-open { display: inline-flex; }
  .sound-list { max-height: 46vh; }
}

@media (max-width: 760px) {
  :root { --header-h: 58px; }
  .site-nav { display: none; }
  .header-inner { gap: 10px; }
  .lang-switch { margin-left: auto; }
  .player-top { gap: 12px; }
  .transport { order: 1; }
  .master-vol { order: 3; flex: 1 1 100%; }
  .timer-box { order: 2; margin-left: auto; }
  .hero-cta .btn { flex: 1 1 auto; }
  .btn-xl { padding: 13px 20px; font-size: .96rem; }
  .track { flex-wrap: wrap; }
  .track-info { flex: 1 1 100px; }
  .track-vol { flex: 1 1 130px; order: 3; }
  .track-btns { order: 2; margin-left: auto; }
  .tracks { max-height: none; }
  .viz-wrap { height: 88px; }
  .preset-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .preset-card { min-height: 128px; padding: 13px; }
  .preset-desc { display: none; }
  .export-row { gap: 10px; }
  .export-row .btn { flex: 1 1 45%; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .card { padding: 14px; }
  .btn-xl { padding: 12px 14px; font-size: .9rem; }
  .hero-feats li { font-size: .76rem; padding: 5px 10px; }
}

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

/* 打印 */
@media print {
  .site-header, .bg-decor, .toast-host, .sheet-backdrop, .viz-wrap { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==================================================================
   补充样式（弹窗 / 小按钮 / 音色库图标 / 滚动进场）
   ================================================================== */

/* ---------------- 按钮补充 ---------------- */
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; gap: 6px; }
.btn-sm .ico { width: 14px; height: 14px; }
.btn-danger {
  color: #ffd7d7; border-color: rgba(255, 110, 110, .38); background: rgba(255, 90, 90, .12);
}
.btn-danger:hover { background: rgba(255, 90, 90, .2); color: #fff; transform: translateY(-1px); }
.tbtn-danger:hover { color: #ffd7d7; border-color: rgba(255, 110, 110, .45); background: rgba(255, 90, 90, .14); }
#btn-play.is-paused { box-shadow: 0 0 0 6px rgba(110, 231, 255, .09); }

/* ---------------- 音色库条目 ---------------- */
.sound-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--accent);
}
.sound-ico .ico { width: 17px; height: 17px; }
.sound-add .ico { width: 14px; height: 14px; color: inherit; }
.sound-item.is-added .sound-add { background: rgba(110, 231, 255, .2); color: var(--accent); }
.mix-card .mix-name { margin: 0; font-size: .96rem; }

/* ---------------- 弹窗 ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px;
  background: rgba(3, 6, 12, .68); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: modalFade .18s ease;
}
.modal {
  width: 100%; max-width: 400px; padding: 20px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 27, 44, .99), rgba(13, 18, 31, .99));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: modalIn .2s ease;
}
.modal-title { margin: 0 0 12px; font-size: 1rem; }
.modal-text { margin: 0; color: var(--text-dim); font-size: .88rem; line-height: 1.6; }
.modal-input {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, .34); color: var(--text); font: inherit; font-size: .92rem;
}
.modal-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 231, 255, .16); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------- 滚动进场 ---------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .modal { max-width: 100%; padding: 18px 16px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

/* ==================================================================
   首页 / 播放页补充样式（v2 · 真实录音版）
   ================================================================== */

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 锚点版预设卡（首页） */
a.preset-card, a.preset-card:hover { text-decoration: none; color: inherit; }

/* 数据条 */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px; margin-top: 26px;
}
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--panel);
  border: 1px solid var(--border); text-align: center;
}
.stat b {
  font-size: 1.24rem; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .74rem; color: var(--text-mute); }

/* 首页音色分区标题 */
.cat-label {
  display: flex; align-items: center; gap: 12px; margin: 26px 0 12px;
  font-size: .86rem; font-weight: 600; color: var(--text-dim);
}
.cat-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cat-label:first-child { margin-top: 0; }

/* 播放页：可视化标题栏 */
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.viz-head h3 { margin: 0; font-size: .96rem; }
.viz-btns { display: flex; gap: 6px; }
.viz-fallback[hidden] { display: none; }

/* 播放页：轨道 + EQ 展开区 */
.track-wrap { display: flex; flex-direction: column; }
.track-eq {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 18px;
}
.track-eq[hidden] { display: none; }
.eq-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; min-width: 128px; }
.eq-field label { font-size: .72rem; color: var(--text-mute); display: flex; justify-content: space-between; gap: 8px; }
.eq-field input[type=range] { width: 100%; }

/* 播放页：分享（v32 起改为点按钮直接复制，链接输入框行已移除） */

/* 快捷键卡已按用户要求移除（kv-list/kbd 样式随之删除，全站无引用） */

/* 素材来源列表 */
.cred-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 8px; margin-top: 12px; }
.cred-item {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
  font-size: .76rem; color: var(--text-mute); line-height: 1.5;
}
.cred-item b { font-size: .84rem; color: var(--text); }
.cred-item a { color: var(--accent); word-break: break-all; }

/* 音色库：加入 / 加载 / 失败状态 */
.sound-item.is-loading { cursor: progress; }
.sound-item.is-error { border-color: rgba(255, 128, 149, .45); }
.sound-item.is-loading .sound-add, .sound-item.is-error .sound-add {
  width: auto; min-width: 34px; padding: 0 8px; font-size: .68rem;
  background: var(--panel-2); color: var(--text-dim);
}
.sound-item.is-error .sound-add { color: var(--danger); }
.library .card-head { gap: 8px; }
.library .card-head .count { margin-left: auto; }

/* 空态 / 进度 / 隐藏属性 */
.empty[hidden], .progress-wrap[hidden] { display: none; }

.mix-card h3 { display: flex; align-items: center; gap: 8px; font-size: .96rem; }
.mix-card h3 .ico { width: 16px; height: 16px; color: var(--accent); }

@media (max-width: 1000px) {
  .library .card-head .count { margin-left: auto; }
  .sound-list { max-height: 46vh; }
}

@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-row .btn { flex: 1 1 100%; }
  .viz-head { flex-wrap: wrap; }
  .kv-list { grid-template-columns: 1fr; }
}


/* ================= 首页：音色筛选工具条 ================= */
.sound-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 20px;
}
.sound-search {
  position: relative; display: flex; align-items: center; gap: 9px;
  flex: 1 1 260px; min-width: 210px; max-width: 360px;
  padding: 9px 13px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.sound-search:focus-within {
  border-color: rgba(110, 231, 255, .5);
  background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, .12);
}
.sound-search > .ico { color: var(--text-mute); flex: 0 0 auto; }
.sound-search > .ico svg { width: 16px; height: 16px; }
.sound-search-input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: .88rem; outline: none; padding: 0;
}
.sound-search-input::placeholder { color: var(--text-mute); }
.sound-search-input::-webkit-search-cancel-button,
.sound-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.sound-search-clear {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 22px; height: 22px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .06); color: var(--text-dim);
  transition: background .2s, color .2s;
}
.sound-search-clear[hidden] { display: none; }
.sound-search-clear:hover { background: rgba(255, 255, 255, .14); color: var(--text); }
.sound-search-clear .ico svg { width: 11px; height: 11px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  cursor: pointer; font: inherit; font-size: .82rem;
  padding: 7px 14px; border-radius: 999px;
  color: var(--text-dim); background: var(--panel); border: 1px solid var(--border);
  transition: transform .14s ease, color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-1px); color: var(--text); border-color: var(--border-strong); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.is-active {
  color: #071018; font-weight: 600; background: var(--grad); border-color: transparent;
  box-shadow: 0 6px 18px rgba(110, 231, 255, .22);
}
.sound-count {
  margin: 0 0 0 auto; font-size: .78rem; color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.sound-empty {
  padding: 30px 20px; text-align: center; font-size: .88rem; color: var(--text-mute);
  border: 1px dashed var(--border); border-radius: var(--radius);
}

/* 卡片：交互与无障碍微调 */
.preset-card { -webkit-tap-highlight-color: transparent; }
.preset-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.preset-ico { transition: transform .18s ease, border-color .2s; }
.preset-card:hover .preset-ico { transform: translateY(-1px) scale(1.05); }

@media (max-width: 760px) {
  .sound-toolbar { gap: 9px; }
  .sound-search { flex: 1 1 100%; max-width: none; }
  .sound-count { margin: 0; }
}


/* ==================================================================
   v3 · 视觉增强与交互补全
   （滚动头部 / 移动端导航 / 卡片细节 / 回到顶部 / 滚动条）
   ================================================================== */

/* ---------------- 头部：滚动状态 ---------------- */
.site-header { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.is-scrolled {
  background: rgba(6, 9, 16, .9);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .42);
}

/* ---------------- 移动端导航（汉堡菜单） ---------------- */
.nav-toggle {
  display: none; width: 38px; height: 38px; padding: 0; border-radius: 11px;
  align-items: center; justify-content: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); color: var(--text-dim);
  transition: background .2s, color .2s, border-color .2s, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { color: var(--text); background: var(--panel-2); border-color: var(--border-strong); }
.nav-toggle:active { transform: scale(.96); }
.nav-toggle .ico { width: 18px; height: 18px; }

@keyframes navDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: calc(100% + 10px); right: 0; left: auto;
    min-width: 188px; flex-direction: column; gap: 2px; padding: 8px; margin: 0;
    background: rgba(11, 16, 32, .98); border: 1px solid var(--border-strong);
    border-radius: var(--radius); box-shadow: var(--shadow); z-index: 62;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .site-nav.is-open { display: flex; animation: navDrop .18s ease; }
  .site-nav a { padding: 10px 12px; border-radius: 10px; }
  .site-nav a[aria-current="page"] { background: var(--grad-soft); color: var(--text); }
}

/* ---------------- 卡片：强调色细节 ---------------- */
.preset-card { --accent-c: var(--accent); }
.preset-card::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--accent-c), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.preset-card:hover::before, .preset-card:focus-visible::before { opacity: .9; }
.preset-card .preset-ico {
  color: var(--accent-c);
  background: linear-gradient(140deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .028));
  transition: transform .18s ease, box-shadow .22s ease;
}
.preset-card:hover .preset-ico { box-shadow: inset 0 0 0 1px var(--accent-c), 0 8px 20px rgba(0, 0, 0, .3); }
.preset-card:hover { transform: translateY(-3px); }
.preset-card.is-active .preset-ico { box-shadow: inset 0 0 0 1px var(--accent-c); }

.tag-dur {
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  background: rgba(255, 255, 255, .04) !important; border: 1px solid var(--border);
}
.preset-card:hover .preset-tags .btn.btn-ghost {
  background: var(--grad); color: #071018; border-color: transparent;
  box-shadow: 0 6px 18px rgba(110, 231, 255, .2);
}

/* 通用卡片 hover 反馈 */
.card { transition: border-color .22s ease, box-shadow .22s ease; }
.card:hover { border-color: var(--border-strong); }

/* ---------------- 统计条：自适应字号 ---------------- */
.stat b { font-size: clamp(1rem, 2.2vw, 1.22rem); letter-spacing: -.01em; white-space: nowrap; }
.stat { transition: border-color .22s ease, transform .16s ease; }
.stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* ---------------- 可视化内发光 ---------------- */
.viz-wrap { box-shadow: inset 0 0 46px rgba(110, 231, 255, .07); }

/* ---------------- 回到顶部 ---------------- */
.to-top {
  position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 66; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(16, 22, 38, .92); color: var(--text-dim);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, color .2s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--text); background: rgba(26, 34, 56, .96); transform: translateY(-2px); }
.to-top .ico { width: 18px; height: 18px; }

/* ---------------- 滚动条 ---------------- */
html { scrollbar-color: rgba(255, 255, 255, .18) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); background-clip: content-box; }

@media (max-width: 760px) {
  .to-top { right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 40px; height: 40px; }
  .to-top .ico { width: 16px; height: 16px; }
}


/* ==================== v7 视觉微调 ==================== */
@keyframes v7FadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 移动端导航展开时给正文加遮罩，避免菜单与内容互相干扰 */
@media (max-width: 760px) {
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; z-index: 55; pointer-events: none;
    background: rgba(5, 9, 18, .62);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    animation: v7FadeIn .16s ease;
  }
  body.nav-open .site-header { z-index: 58; }
  .site-nav.is-open { box-shadow: 0 18px 44px rgba(0, 0, 0, .52); }
  .site-nav a { padding: 11px 13px; border-radius: 11px; }
}

/* 首页：统计条 / 分类芯片更松的呼吸感 */
.stat-grid { gap: 12px; margin-top: 28px; }
.stat { padding: 13px 15px; }
.cat-chips { gap: 8px; }

/* 播放页：左栏音色库与混音台之间加渐变分隔线，拉开层次 */
@media (min-width: 1001px) {
  .mixer-layout { gap: 24px; }
  .mixer-main { position: relative; }
  .mixer-main::before {
    content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .34) 12%,
                rgba(255, 255, 255, .34) 88%, rgba(255, 255, 255, .04));
  }
  .library .card-head { padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
}

/* 卡片悬停层次（仅桌面，避免移动端粘滞 hover） */
@media (hover: hover) and (min-width: 761px) {
  .preset-card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, .36); }
}


/* ==================================================================
   v9 · 重建补充（首页音色网格 / tbtn 激活态 / 导出输入框）
   ================================================================== */

/* 首页音色目录：分类分组后的响应式网格 */
.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 8px;
}

/* 轨道小按钮激活态（静音 / 独奏 / EQ 面板 / 可视化模式） */
.tbtn.is-on {
  color: var(--text);
  background: var(--grad-soft);
  border-color: var(--border-strong);
}

/* 定时器运行中的剩余时间 */
.timer-display.is-running { color: var(--accent-3); }

/* 导出文件名输入框（与 select 同风格） */
.field input[type=text] {
  background: rgba(0, 0, 0, .28); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; font-size: .86rem; min-width: 140px;
}
.field input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 231, 255, .14); }

/* 音轨加载失败时的状态提示可点击重试 */
.track-wrap[data-status="error"] .track-sub { color: var(--danger); }
.track-wrap[data-status="loading"] .track-sub { color: var(--warn); }

/* 实时录制：红点呼吸 + 计时 */
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto;
  background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 128, 149, .18);
}
#btn-record.is-on .rec-dot { animation: pulse 1.1s ease-in-out infinite; }
#record-time { font-variant-numeric: tabular-nums; }
.eq-reset { align-self: flex-end; flex: 0 0 auto; }

/* 链接悬停不划线，用颜色加深指示（打印时保留下划线） */
a:hover { text-decoration: none; color: #9deeff; }

/* 头部安装按钮（仅在浏览器可安装时出现） */
.install-btn { margin-left: 6px; white-space: nowrap; }
@media (max-width: 760px) { .install-btn { padding: 6px 8px; font-size: .74rem; } }

/* 禁用 JS 时按默认中文渲染，避免中英双语同时露出 */
html.no-js .lang-block[data-lang="en"] { display: none; }

/* 音色行：主按钮 + 独立试听钮（按钮不可嵌套，拆成兄弟节点） */
.sound-row { display: flex; align-items: center; gap: 6px; }
.sound-row .sound-item { flex: 1; min-width: 0; }
.preview-btn, .fav-btn { width: 30px; height: 30px; flex: 0 0 auto; }
.preview-btn.is-on { color: var(--accent); border-color: rgba(110, 231, 255, .5); background: var(--grad-soft); }
.fav-btn.is-on { color: var(--warn); border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .1); }

/* 独奏进行中的全局提示条 */
.solo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 0; padding: 8px 12px; border-radius: 12px; font-size: .84rem;
  background: rgba(110, 231, 255, .08); border: 1px solid rgba(110, 231, 255, .35);
}
.solo-banner[hidden] { display: none; }

/* 轨道实时电平表（scaleX 由可视化 rAF 驱动，暂停时归零） */
.vu {
  width: 44px; height: 6px; border-radius: 99px; overflow: hidden; flex: 0 0 auto;
  background: rgba(255, 255, 255, .08);
}
.vu i {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: var(--grad); transition: transform .06s linear;
}

/* 导出体积预估 */
.export-size { margin-top: 2px; }

/* 首页“继续上次混音” */
.resume-btn { margin-top: 4px; }

/* 首页场景直达 */
.scene-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.scene-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 999px; font-size: .9rem; color: var(--text-dim);
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .14s ease, color .2s, border-color .2s, background .2s;
}
.scene-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel-2); transform: translateY(-2px); text-decoration: none; }
.scene-btn .ico { color: var(--accent); width: 16px; height: 16px; }

/* 混音台首访引导卡 */
.tour-card { margin-bottom: 16px; border-color: rgba(110, 231, 255, .4); }
.tour-list { padding-left: 20px; margin: 0; list-style: decimal; }
.tour-list li { color: var(--text-dim); font-size: .88rem; line-height: 1.9; }

/* 吸底迷你播放条：主传输区滚出视口且已有音轨时出现 */
.mini-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 64;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-radius: 999px; background: rgba(11, 16, 32, .94);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: navDrop .18s ease;
}
.mini-bar[hidden] { display: none; }
.mini-count { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.mini-count .ico { width: 15px; height: 15px; }
.mini-bar .btn-round { width: 40px; height: 40px; }
.mini-timer { font-family: var(--mono); font-size: .8rem; color: var(--accent); min-width: 42px; text-align: right; }
@media (max-width: 760px) { .mini-bar { bottom: calc(70px + env(safe-area-inset-bottom)); } .to-top { bottom: calc(120px + env(safe-area-inset-bottom)); } }
@media print { a:hover { text-decoration: underline; } }


/* ---------------- v17：音色搜索清除钮 ---------------- */
.library-search { position: relative; }
.library-search input[type=search] { padding-right: 36px; }
.lib-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--text-dim);
  cursor: pointer; transition: .18s; padding: 0;
}
.lib-clear:hover { color: var(--text); background: var(--panel-2); }
.lib-clear .ico { width: 13px; height: 13px; }
.library-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }

/* ---------------- v20：EQ 快捷预设 / 删轨撤销 / 配方卡音色行 ---------------- */
.preset-sounds {
  font-size: .72rem; color: var(--text-mute); position: relative; z-index: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eq-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.eq-chips-label { font-size: .72rem; color: var(--text-mute); }
.eq-chip { padding: 4px 10px; font-size: .74rem; }
.toast-undo {
  margin-left: 10px; padding: 3px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--text);
}
.toast-undo:hover { filter: brightness(1.18); }

/* v22 提示层已按用户要求移除：空闲时仅显示静态示例频谱图案 */

/* ==========================================================================
   v24 · 播放控制模块美化：三段胶囊分组 / 大播放钮 + 播放光环 / 定时徽章
   ========================================================================== */
.player-top {
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(560px 180px at 8% 0%, rgba(110, 231, 255, 0.10), transparent 62%),
    radial-gradient(480px 200px at 96% 100%, rgba(167, 139, 250, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-sm);
}
.transport, .master-vol, .timer-box {
  padding: 9px 14px;
  border-radius: 16px;
  background: rgba(2, 6, 16, 0.42);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.transport { display: inline-flex; align-items: center; gap: 10px; }
.transport .btn-icon { width: 38px; height: 38px; border-radius: 12px; }
#btn-play {
  width: 58px; height: 58px; border-radius: 50%;
  font-size: 1.35rem; position: relative;
  box-shadow: 0 10px 28px rgba(110, 231, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition: transform .14s ease, box-shadow .25s ease;
}
#btn-play:hover { transform: translateY(-1px) scale(1.045); }
#btn-play:not(.is-paused)::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(110, 231, 255, 0.5);
  animation: playring 2.2s ease-out infinite; pointer-events: none;
}
@keyframes playring {
  0% { transform: scale(0.92); opacity: .85; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
.master-vol { gap: 12px; }
.master-vol label, .timer-box > label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  color: var(--text-mute); text-transform: uppercase;
}
#master-out {
  padding: 3px 9px; border-radius: 999px; font-weight: 600;
  background: rgba(110, 231, 255, 0.1); border: 1px solid rgba(110, 231, 255, 0.28);
  color: var(--accent); font-size: .74rem;
}
.timer-box { min-width: 0; }
.timer-row { gap: 10px; }
#timer-select {
  border-radius: 12px; padding: 8px 12px; font-weight: 600; font-size: .86rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border-color: var(--border-strong);
}
.timer-display {
  min-width: 0; padding: 5px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text-dim);
  transition: color .25s, border-color .25s, background .25s;
}
.timer-display.is-running {
  color: #7cf0b0; border-color: rgba(74, 222, 128, 0.45);
  background:
    radial-gradient(120px 40px at 50% 120%, rgba(74, 222, 128, 0.18), transparent 70%),
    rgba(74, 222, 128, 0.08);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.22);
  animation: timerbreath 2.6s ease-in-out infinite;
}
@keyframes timerbreath { 0%,100% { box-shadow: 0 0 10px rgba(74,222,128,.16); } 50% { box-shadow: 0 0 18px rgba(74,222,128,.3); } }
@media (min-width: 1024px) {
  .master-vol, .timer-box { border-left: 1px solid rgba(255, 255, 255, 0.07); }
}
@media (max-width: 719px) {
  .player-top { padding: 12px; gap: 10px; }
  .master-vol, .timer-box { width: 100%; }
  .transport { width: 100%; justify-content: center; }
  .timer-box .timer-row { justify-content: space-between; }
  #btn-play { width: 52px; height: 52px; }
}

/* ---------------- v25：音色库「音色/配方」分段切换 + 配方行 ---------------- */
.lib-seg {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 10px;
  border-radius: 14px; background: rgba(2, 6, 16, 0.42); border: 1px solid var(--border);
}
.lib-seg-btn {
  flex: 1; border: 0; background: transparent; color: var(--text-mute); cursor: pointer;
  padding: 7px 0; border-radius: 11px; font-size: .84rem; font-weight: 600; transition: .2s;
}
.lib-seg-btn:hover { color: var(--text); }
.lib-seg-btn.is-active {
  background: var(--grad-soft); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.preset-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid transparent; transition: .18s; color: var(--text);
}
.preset-row:hover { background: var(--panel-2); border-color: var(--border); transform: translateX(2px); }
.preset-row.is-active { border-color: rgba(110,231,255,.5); background: var(--grad-soft); }
.preset-row .preset-ico { width: 32px; height: 32px; border-radius: 10px; }
.preset-row .preset-ico .ico { width: 16px; height: 16px; }
.preset-row-count { flex: 0 0 auto; margin-left: auto; font-size: .68rem; }

/* v28：配方(组合)模式下分类页签须真正隐藏（hidden 会被 display:flex 顶掉） */
.cat-tabs[hidden], .library-search[hidden] { display: none; }

/* ---------------- v29：下拉框展开后的选项列表可读性 ---------------- */
/* 原生 select 弹出列表继承控件自身背景；半透明底会被浏览器按白底渲染，
   浅字压白底即"看不清"。这里强制实色深底亮字。 */
select {
  background-color: #101a2e;
  color: var(--text);
}
select option {
  background-color: #101a2e;
  color: #eef2ff;
}
#timer-select { background-color: #101a2e; background-image: none; }

/* ---------------- v31：动作按钮行与音轨列表拉开间距 ---------------- */
.mixer-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------------- v33：导出音频区重排版 ---------------- */
.export-card { gap: 18px; }
.export-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.export-row .field { gap: 7px; }
.export-card .field label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  color: var(--text-mute); text-transform: uppercase;
}
#export-name {
  height: 42px; min-width: 0; border-radius: 12px; font-size: .9rem; padding: 0 13px;
  background: #101a2e; color: var(--text); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
#export-name:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 231, 255, .14); }
#export-dur { height: 42px; min-width: 128px; font-size: .9rem; }
.field-dur { position: relative; }
.export-size {
  display: inline-block; margin-top: 2px; font-size: .72rem; white-space: nowrap;
  color: var(--text-mute);
}
.export-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border);
}
#btn-export { height: 44px; padding: 0 22px; font-size: .95rem; }
#btn-record { height: 44px; }
.export-divider { width: 1px; height: 26px; background: var(--border); flex: 0 0 auto; }
.export-rec-hint { margin: 0; font-size: .76rem; }
@media (max-width: 719px) {
  .export-actions { gap: 10px; }
  .export-divider { display: none; }
  #btn-export, #btn-record { flex: 1 1 auto; }
}

/* ---------------- v35：音轨标题行与列表拉开间距 ---------------- */
.track-head { margin-bottom: 14px; }

/* ---------------- v36：导出字段行再平衡（限宽文件名 + 体积徽章列） ---------------- */
.field-name { flex: 0 1 380px; min-width: 200px; }
.field-name #export-name { width: 100%; }
.export-size {
  display: inline-flex; align-items: center; height: 42px; padding: 0 14px;
  border-radius: 999px; font-size: .78rem; white-space: nowrap;
  color: var(--text-dim); background: rgba(110, 231, 255, 0.07);
  border: 1px solid rgba(110, 231, 255, 0.22);
}
@media (max-width: 719px) {
  .field-name { flex: 1 1 100%; }
  .export-size { height: 36px; }
}

/* ---------------- v37：标题行与内容块统一留白 ---------------- */
.viz-head { margin-bottom: 12px; }
.timer-box { gap: 6px; }
.faq-item summary { margin-bottom: 0; }
.faq-item p { margin-top: 8px; }

/* v68：主按钮焦点态改柔光提亮——描边环（无论青/白）在胶囊钮两侧都会读作"亮竖线"，彻底弃用 */
.btn-primary:focus-visible {
  outline: none;
  filter: brightness(1.13);
  box-shadow: 0 4px 26px rgba(110, 231, 255, .5), 0 0 14px rgba(167, 139, 250, .4);
}

/* ---------------- v40：吸底迷你播放条美化 ---------------- */
.mini-bar {
  gap: 12px; padding: 10px 18px;
  background:
    radial-gradient(220px 60px at 12% 0%, rgba(110, 231, 255, 0.14), transparent 70%),
    radial-gradient(240px 70px at 90% 100%, rgba(167, 139, 250, 0.16), transparent 70%),
    rgba(9, 13, 26, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mini-count {
  padding: 4px 11px; border-radius: 999px; font-weight: 600; font-size: .8rem;
  color: var(--accent); background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.28);
}
.mini-bar .btn-round {
  width: 46px; height: 46px; font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(110, 231, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  transition: transform .14s ease, box-shadow .25s ease;
}
.mini-bar .btn-round:hover { transform: scale(1.06); }
#mini-stop { width: 38px; height: 38px; border-radius: 50%; }
.mini-timer {
  padding: 5px 12px; border-radius: 999px; font-weight: 700;
  color: #7cf0b0; border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08); box-shadow: 0 0 12px rgba(74, 222, 128, 0.18);
}
.mini-timer:empty { display: none; }

/* ---------------- v41：分类页签默认折叠 ---------------- */
.cat-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px dashed var(--border-strong); background: transparent;
  color: var(--text-mute); font-size: .78rem; transition: .2s;
}
.cat-more:hover { color: var(--text); border-color: var(--accent); border-style: solid; }
.cat-more .ico { width: 13px; height: 13px; transition: transform .2s; }
.cat-more.is-open .ico { transform: rotate(45deg); }
.cat-cats[hidden] { display: none; }
.cat-cats { margin-top: 8px; margin-bottom: 0; }
.cat-more[hidden] { display: none; }

/* ---------------- v43：独立页面体系（8 项导航折叠阈值上调 + 指南页快捷键样式） ---------------- */
@media (max-width: 1023px) {
  .header-inner { position: relative; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: calc(100% + 10px); right: 0; left: auto;
    min-width: 200px; flex-direction: column; gap: 2px; padding: 8px; margin: 0;
    background: rgba(11, 16, 32, .98); border: 1px solid var(--border-strong);
    border-radius: var(--radius); box-shadow: var(--shadow); z-index: 62;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .site-nav.is-open { display: flex; animation: navDrop .18s ease; }
  .site-nav a { padding: 10px 12px; border-radius: 10px; }
  .site-nav a[aria-current="page"] { background: var(--grad-soft); color: var(--text); }
}
.kv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 8px 18px; }
.kv-row { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-dim); }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 3px 7px;
  border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid var(--border-strong);
  font-family: var(--mono); font-size: .72rem; color: var(--text);
}
.tour-list li { margin-bottom: 6px; color: var(--text-dim); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text); padding: 4px 0; }
.faq-item { padding: 12px 16px; margin-bottom: 10px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); }
.faq-item p { margin-top: 8px; }

/* ---------------- v44：首页导览改版 ---------------- */
/* scene-card 系列样式已废弃（热门组合改用 preset-card） */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 18px 12px 15px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); transition: .18s;
}
.cat-card:hover { background: var(--panel-2); border-color: var(--border-strong); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow-sm); }
.cat-card-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent);
}
.cat-card-ico .ico { width: 19px; height: 19px; }
.cat-card-name { font-size: .9rem; font-weight: 700; }
.cat-card-count { font-size: .74rem; color: var(--text-mute); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.src-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none;
  padding: 20px; border-radius: var(--radius); color: var(--text);
  background: var(--panel); border: 1px solid var(--border); transition: .18s;
}
.src-card:hover { transform: translateY(-3px); border-color: var(--border-strong); text-decoration: none; box-shadow: var(--shadow-sm); }
.src-ico { display: inline-flex; color: var(--accent); }
.src-ico .ico { width: 22px; height: 22px; }
.src-card strong { font-size: .95rem; }
.src-count { font-size: 1.9rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.src-note { font-size: .74rem; color: var(--text-mute); }

/* ---------------- v45：迷你播放条位置设置 ---------------- */
.mini-bar { position: fixed; }
.mini-gear {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; transition: .18s; flex: 0 0 auto;
}
.mini-gear:hover { color: var(--text); background: var(--panel-2); }
.mini-gear .ico { width: 15px; height: 15px; }
.mini-menu {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 162px; display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border-radius: 14px; background: rgba(11, 16, 32, .98); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); z-index: 65; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.mini-menu[hidden] { display: none; }
.mini-menu-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); padding: 4px 8px 6px;
}
.mini-menu button {
  text-align: left; border: 0; background: transparent; color: var(--text-dim);
  padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: .84rem; transition: .15s;
}
.mini-menu button:hover { background: var(--panel-2); color: var(--text); }
.mini-menu button.is-active { background: var(--grad-soft); color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--border-strong); }
.mini-bar.is-right { left: auto; right: 18px; transform: none; }
.mini-bar.is-right .mini-menu { left: auto; right: 0; transform: none; }
.mini-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 64;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(11, 16, 32, .92); border: 1px solid var(--border-strong);
  color: var(--text-dim); box-shadow: var(--shadow-sm); transition: .18s;
}
.mini-float[hidden] { display: none; }
.mini-float:hover { color: var(--text); transform: scale(1.06); }
.mini-float .ico { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .mini-bar.is-right { right: 12px; }
  .mini-float { bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------------- v46：收藏页签（聚合视图 + 备份工具条） ---------------- */
.saved-bar { display: flex; gap: 8px; margin-bottom: 4px; }
.saved-hint { font-size: .74rem; line-height: 1.5; margin-bottom: 10px; }
.saved-group {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); margin: 14px 0 6px;
}
.saved-group:first-of-type { margin-top: 6px; }
.fav-btn.danger:hover { color: var(--danger); border-color: rgba(255, 128, 149, .45); }

/* ---------------- v48：首页热门组合 + 5 列分类网格 ---------------- */
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.section-head.split > div { max-width: 760px; }
.head-link { flex: 0 0 auto; margin-bottom: 4px; }
.head-link .ico { width: 14px; height: 14px; opacity: .8; }
.cat-card-desc { font-size: .72rem; color: var(--text-dim); line-height: 1.4; }
.cat-card-count { margin-top: 2px; }
@media (max-width: 1023px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- v50：音色库页分页（每页 10 行） ---------------- */
.pg-rows { display: flex; flex-direction: column; gap: 8px; }
.pg-rows .sound-item { width: 100%; }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager-btn {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); color: var(--text-dim);
  font-size: .84rem; font-variant-numeric: tabular-nums; transition: .18s;
}
.pager-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--panel-2); }
.pager-btn.is-active { background: var(--grad-soft); color: var(--text); border-color: var(--border-strong); font-weight: 700; }
.pager-btn.is-disabled { opacity: .35; cursor: default; pointer-events: none; }
.pager-gap { color: var(--text-mute); padding: 0 2px; }
.pager-info { text-align: center; margin: 10px 0 0; }

/* ---------------- v52：组合行整行卡片化（星标收进卡片） ---------------- */
.preset-row-wrap {
  padding: 3px 5px 3px 9px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
  transition: border-color .18s, background .18s;
}
.preset-row-wrap:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.055); }
.preset-row-wrap .preset-row { background: transparent; border-color: transparent; padding: 8px 5px; }
.preset-row-wrap .preset-row:hover { background: transparent; border-color: transparent; transform: none; }
.preset-row-wrap .preset-row.is-active { background: var(--grad-soft); border-color: transparent; }
.preset-row-wrap .fav-btn { background: transparent; border-color: transparent; }
.preset-row-wrap .fav-btn:hover { background: rgba(255, 255, 255, .07); border-color: var(--border); }
.preset-row-wrap .fav-btn.is-on { color: #fbbf24; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); }

/* ---------------- v54：组合行宽度统一，消灭横向滚动 ---------------- */
.preset-row-wrap .preset-row { flex: 1 1 0; min-width: 0; width: auto; }
.preset-row-wrap .fav-btn { flex: 0 0 auto; }
.sound-list { overflow-x: hidden; }
.sound-row .preset-row .sound-sub { display: block; max-width: 100%; }

/* v58: 首页分区标题行铺满版心，head-link 顶到右缘与卡片网格对齐 */
.section-head.split { max-width: none; }

/* v59: 首页/内容页分区间距收紧（原上下 padding 叠加约 132px 偏空） */
.section { padding: clamp(22px, 3.4vw, 40px) 0; }

/* v63: 我的组合提示语与卡片区拉开间距 */
.mix-grid { margin-top: 12px; }

/* v67: iOS Safari 动态视口——混音台侧栏改用 dvh，100vh 作回退 */
.library { max-height: calc(100dvh - var(--header-h) - 34px); }
