:root {
  --ink: #2a241f;
  --muted: #8b7d71;
  --paper: #fff8ee;
  --panel: rgba(255, 253, 248, 0.9);
  --line: rgba(124, 95, 72, 0.13);
  --accent: #5db9ad;
  --accent-dark: #2f8d84;
  --amber: #e0ae60;
  --rose: #d98f90;
  --shadow: 0 24px 70px rgba(158, 116, 74, 0.12);
  --shadow-soft: 0 12px 34px rgba(158, 116, 74, 0.09);
  --field-bg: rgba(255, 254, 250, 0.95);
  --tab-bg: rgba(247, 233, 211, 0.66);
  --result-bg: rgba(255, 252, 245, 0.92);
  --meta-bg: rgba(255, 247, 234, 0.72);
  --nav-bg: rgba(255, 249, 239, 0.78);
  --grid-line: rgba(93, 185, 173, 0.055);
  --grid-line-soft: rgba(224, 174, 96, 0.055);
  --cream: #fffdf6;
  --glow: rgba(93, 185, 173, 0.16);
  --gold-glow: rgba(224, 174, 96, 0.18);
  --rose-glow: rgba(217, 143, 144, 0.14);
  --focus: rgba(93, 185, 173, 0.24);
  --fondant: #f7c9bd;
  --fondant-cream: #fff8e9;
  --fondant-mint: #dff8ef;
  --fondant-shadow: rgba(174, 112, 81, 0.13);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --nav-height: 86px;
}

[data-theme="dark"] {
  --ink: #f5ecd9;
  --muted: #c8bbab;
  --paper: #171918;
  --panel: rgba(33, 34, 31, 0.82);
  --line: rgba(245, 236, 217, 0.13);
  --accent: #8dded5;
  --accent-dark: #b1eee8;
  --amber: #efc879;
  --rose: #efaaac;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.26);
  --field-bg: rgba(28, 31, 29, 0.82);
  --tab-bg: rgba(245, 236, 217, 0.07);
  --result-bg: rgba(22, 25, 23, 0.78);
  --meta-bg: rgba(245, 236, 217, 0.06);
  --nav-bg: rgba(23, 25, 24, 0.7);
  --grid-line: rgba(141, 222, 213, 0.055);
  --grid-line-soft: rgba(239, 200, 121, 0.055);
  --cream: #fff6df;
  --glow: rgba(141, 222, 213, 0.14);
  --gold-glow: rgba(239, 200, 121, 0.14);
  --rose-glow: rgba(239, 170, 172, 0.1);
  --focus: rgba(141, 222, 213, 0.26);
  --fondant: #efb0a6;
  --fondant-cream: #342b24;
  --fondant-mint: #214b46;
  --fondant-shadow: rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--fondant) 24%, transparent), transparent 28vw),
    radial-gradient(circle at 10% -10%, var(--gold-glow), transparent 36vw),
    radial-gradient(circle at 90% 10%, var(--glow), transparent 34vw),
    radial-gradient(circle at 58% 48%, var(--rose-glow), transparent 40vw),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, auto, 38px 38px, 38px 38px, auto;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(255, 255, 255, 0.16) 48%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(15, 127, 120, 0.035) 26px 27px, transparent 27px 54px);
  opacity: 0.75;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 50% 0, rgba(98, 212, 200, 0.12), transparent 44%),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(98, 212, 200, 0.04) 26px 27px, transparent 27px 54px);
  opacity: 0.95;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(circle, currentColor 0.65px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

[data-theme="dark"] body::after {
  opacity: 0.12;
  mix-blend-mode: screen;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ===== 顶部导航栏 ===== */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1180px, calc(100vw - 28px));
  min-height: 66px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px 10px 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--fondant) 18%, transparent), transparent 34%, color-mix(in srgb, var(--fondant-mint) 22%, transparent)),
    linear-gradient(135deg, var(--nav-bg), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(20px) saturate(1.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft), 0 0 0 6px color-mix(in srgb, var(--fondant-cream) 28%, transparent);
  animation: surfaceRise 0.55s ease both;
}

[data-theme="dark"] .navbar {
  background: linear-gradient(135deg, var(--nav-bg), rgba(98, 212, 200, 0.06));
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  text-decoration: none;
  color: var(--ink);
}

.brandMark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-family: "SimSun", "STSong", serif;
  font-weight: 900;
  font-size: 22px;
  color: #fff8e6;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(135deg, var(--accent), var(--accent-dark) 58%, #17201c);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 24px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.brandMark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}

.brandText {
  display: grid;
  gap: 2px;
  font-family: "SimSun", "STSong", serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1.5px;
}

.brandText::after {
  content: "Songsmith Studio";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--muted);
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

[data-theme="dark"] .navLinks {
  background: rgba(255, 255, 255, 0.045);
}

.navLinks a {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.navLinks a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navLinks a:hover {
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.navLinks a:hover::after,
.navLinks a.active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.navLinks a.active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(15, 127, 120, 0.16), rgba(200, 136, 47, 0.13));
  border-color: rgba(15, 127, 120, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(15, 127, 120, 0.08);
}

/* 深色模式开关 */
.themeToggle {
  position: relative;
  width: 62px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--field-bg), rgba(255, 255, 255, 0.2));
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.themeToggle .track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.themeToggle .thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff2bb, var(--amber));
  box-shadow: 0 5px 14px rgba(200, 136, 47, 0.34);
  transition: left 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.themeToggle[aria-pressed="true"] .thumb {
  left: 29px;
  background: linear-gradient(135deg, #bdf9f1, var(--accent));
  box-shadow: 0 5px 18px var(--glow);
}

.themeToggle::before,
.themeToggle::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  pointer-events: none;
  opacity: 0.55;
}

.themeToggle::before {
  content: "☀";
  left: 10px;
}

.themeToggle::after {
  content: "☾";
  right: 10px;
}

/* ===== 主容器 ===== */
.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.topbar,
.workspace,
.billing,
.history,
.contact {
  margin-bottom: 22px;
}

.topbar {
  position: relative;
  min-height: 174px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 42%),
    radial-gradient(circle at 82% 18%, var(--glow), transparent 34%),
    linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.18));
  box-shadow: var(--shadow);
}

[data-theme="dark"] .topbar {
  background:
    radial-gradient(circle at 82% 18%, rgba(98, 212, 200, 0.16), transparent 34%),
    linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.035));
}

.topbar::before {
  content: "";
  position: absolute;
  right: -82px;
  top: -98px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(15, 127, 120, 0.26);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 24px rgba(15, 127, 120, 0.035),
    inset 0 0 0 55px rgba(200, 136, 47, 0.035);
}

.topbar::after {
  content: "♪  录音中  ·  Hook  ·  Verse  ·  Chorus";
  position: absolute;
  left: 34px;
  bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.62;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.fondantHalo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fondantHalo span {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.72;
  transform: rotate(-18deg);
}

.fondantHalo span:nth-child(1) {
  right: 14%;
  top: 24px;
  width: 168px;
  height: 38px;
  background: linear-gradient(90deg, var(--fondant), transparent);
  animation: fondantFloat 7s ease-in-out infinite;
}

.fondantHalo span:nth-child(2) {
  right: 3%;
  bottom: 38px;
  width: 118px;
  height: 118px;
  border: 1px solid color-mix(in srgb, var(--fondant) 62%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--fondant-cream) 56%, transparent), transparent 64%);
  animation: fondantFloat 8s ease-in-out 0.7s infinite reverse;
}

.fondantHalo span:nth-child(3) {
  left: 48%;
  bottom: 22px;
  width: 210px;
  height: 18px;
  background: linear-gradient(90deg, transparent, var(--fondant-mint), transparent);
  opacity: 0.46;
  animation: fondantPulse 5s ease-in-out infinite;
}

.waveStrip {
  width: min(430px, 100%);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fondant-cream) 54%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 34px var(--fondant-shadow);
}

.waveStrip span {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--amber), var(--fondant));
  opacity: 0.74;
  transform-origin: center;
  animation: waveBreath 2.8s ease-in-out infinite;
}

.waveStrip span:nth-child(2) { height: 18px; animation-delay: 0.12s; }
.waveStrip span:nth-child(3) { height: 30px; animation-delay: 0.24s; }
.waveStrip span:nth-child(4) { height: 22px; animation-delay: 0.36s; }
.waveStrip span:nth-child(5) { height: 14px; animation-delay: 0.48s; }
.waveStrip span:nth-child(6) { height: 26px; animation-delay: 0.6s; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "SimSun", "STSong", serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.9;
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(25px, 3vw, 34px);
}

h3 {
  font-size: 21px;
}

.heroLead {
  max-width: 620px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.studioBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.studioBadges span,
.modeHint {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
}

[data-theme="dark"] .studioBadges span,
[data-theme="dark"] .modeHint {
  background: rgba(255, 255, 255, 0.045);
}

.account {
  min-width: 235px;
  display: grid;
  gap: 7px;
  justify-items: start;
  padding: 18px;
  border: 1px solid rgba(15, 127, 120, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(15, 127, 120, 0.12), rgba(200, 136, 47, 0.12)),
    var(--panel);
  box-shadow: 0 18px 44px rgba(15, 127, 120, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.account span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  color: var(--accent-dark);
}

.account::before {
  content: "● Studio pass";
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.38fr);
  gap: 22px;
}

.panel,
.billing,
.history,
.contact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 0, color-mix(in srgb, var(--fondant) 16%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)),
    var(--panel);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--fondant-cream) 26%, transparent);
  overflow: hidden;
  animation: surfaceRise 0.62s ease both;
}

[data-theme="dark"] .panel,
[data-theme="dark"] .billing,
[data-theme="dark"] .history,
[data-theme="dark"] .contact {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
}

.panel::before,
.billing::before,
.history::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0.65;
}

.panel {
  min-height: 540px;
  padding: 24px;
}

.result {
  animation-delay: 0.08s;
}

.billing {
  animation-delay: 0.14s;
}

.history {
  animation-delay: 0.2s;
}

.contact {
  animation-delay: 0.26s;
}

.composer {
  display: flex;
  flex-direction: column;
}

.composer::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -76px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 68%);
  pointer-events: none;
}

.tabs,
.paySwitch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tab-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab,
.pay {
  min-width: 92px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tab:hover,
.pay:hover {
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.tab.active,
.pay.active {
  color: #fff9ea;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 22px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.modeHint {
  margin-top: 16px;
  width: fit-content;
}

.fields {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.fieldHelp {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--field-bg);
  color: var(--ink);
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

input {
  min-height: 54px;
  padding: 0 17px;
}

textarea {
  min-height: 282px;
  resize: vertical;
  padding: 16px 17px;
  line-height: 1.72;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.primary,
.ghost,
.iconButton {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary {
  min-height: 52px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff9ea;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 32px var(--glow);
}

.primary .icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff9ea;
}

.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px var(--glow);
}

.primary:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.ghost {
  min-height: 52px;
  padding: 0 18px;
  background: var(--field-bg);
  color: var(--ink);
}

.ghost:hover,
.iconButton:hover,
.plan button:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 127, 120, 0.34);
  box-shadow: 0 12px 28px rgba(15, 127, 120, 0.1);
}

.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.iconButton {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--field-bg);
  color: var(--accent-dark);
  font-size: 21px;
}

.quota {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 11px;
}

.quota div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
}

.quota strong {
  color: var(--accent-dark);
}

progress {
  width: 100%;
  height: 14px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--accent);
  background: var(--tab-bg);
}

progress::-webkit-progress-bar {
  background: var(--tab-bg);
  border-radius: 999px;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
}

.sectionHead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result .sectionHead {
  padding-bottom: 4px;
}

pre {
  position: relative;
  z-index: 1;
  min-height: 396px;
  max-height: 580px;
  overflow: auto;
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.82;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(15, 127, 120, 0.05) 1px, transparent 1px),
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    var(--result-bg);
  background-size: 30px 30px;
  color: var(--ink);
  font-family: "Songti SC", "SimSun", "STSong", serif;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.musicMeta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.musicMeta div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--meta-bg);
}

.musicMeta div:first-child {
  grid-column: 1 / -1;
}

.musicMeta span {
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.musicMeta p {
  margin: 7px 0 0;
  line-height: 1.65;
}

.billing,
.history,
.contact {
  padding: 24px;
}

.plans {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.plan {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 50%),
    var(--field-bg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.plan::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 68%);
}

.plan:hover {
  transform: translateY(-6px) rotate(-0.25deg);
  border-color: rgba(15, 127, 120, 0.32);
  box-shadow: 0 24px 46px rgba(15, 127, 120, 0.1), 0 18px 36px var(--fondant-shadow);
}

.plan > * {
  position: relative;
  z-index: 1;
}

.plan strong {
  display: block;
  margin-top: 4px;
  font-size: 38px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  color: var(--accent-dark);
}

.plan span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.plan div:first-child > span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(200, 136, 47, 0.28);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(200, 136, 47, 0.1);
  font-weight: 900;
}

.plan button {
  align-self: end;
  min-height: 44px;
  border: 1px solid rgba(15, 127, 120, 0.32);
  border-radius: 999px;
  color: #fff9ea;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 24px var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.historyList {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
}

.historyList > p {
  margin: 0;
  color: var(--muted);
}

.historyItem {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--field-bg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.historyItem:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 127, 120, 0.28);
  box-shadow: 0 14px 28px rgba(15, 127, 120, 0.08);
}

.historyItem p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.pill {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff9ea;
  background: linear-gradient(135deg, var(--rose), #8e4750);
  font-size: 12px;
  font-weight: 900;
}

/* ===== 联系区 ===== */
.contactGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.contactCard {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--fondant-mint) 22%, transparent), transparent 52%),
    var(--field-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contactCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px var(--fondant-shadow);
}

.contactLabel {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.contactCard p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  word-break: break-all;
}

.contactFoot {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.membershipShell {
  max-width: 1180px;
}

.membershipHero {
  align-items: center;
}

.membershipAccount {
  min-width: min(330px, 100%);
}

.compactQuota {
  width: 100%;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.membershipBilling .plans {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.membershipNote {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(32, 24, 20, 0.94), rgba(7, 93, 88, 0.92));
  color: #fff9ea;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes surfaceRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fondantFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }
  50% {
    transform: translate3d(-10px, 8px, 0) rotate(-10deg);
  }
}

@keyframes fondantPulse {
  0%, 100% {
    opacity: 0.28;
    transform: scaleX(0.72) rotate(-18deg);
  }
  50% {
    opacity: 0.62;
    transform: scaleX(1) rotate(-18deg);
  }
}

@keyframes waveBreath {
  0%, 100% {
    transform: scaleY(0.72);
  }
  45% {
    transform: scaleY(1.08);
  }
}

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

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --nav-height: 138px;
  }

  .navbar {
    top: 8px;
    border-radius: 28px;
  }

  .topbar,
  .sectionHead {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 26px 22px 52px;
  }

  .topbar::after {
    left: 22px;
    right: 22px;
  }

  .fondantHalo span:nth-child(1) {
    right: -24px;
    top: 18px;
  }

  .fondantHalo span:nth-child(2) {
    right: -38px;
    bottom: 92px;
  }

  .waveStrip {
    width: 100%;
  }

  .account {
    width: 100%;
  }

  .workspace,
  .plans,
  .membershipBilling .plans,
  .musicMeta,
  .contactGrid {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
  }

  .historyItem {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .historyItem p {
    white-space: normal;
  }

  .navLinks {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 4px;
  }

  .navLinks a {
    flex: 1;
    padding: 8px 8px;
  }

  .themeToggle {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 22px;
  }

  .navbar {
    width: min(100% - 18px, 1180px);
    padding: 9px;
  }

  .brandText {
    font-size: 19px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .panel,
  .billing,
  .history,
  .contact {
    padding: 18px;
    border-radius: 24px;
  }

  .actions {
    flex-direction: column;
  }

  .tabs,
  .paySwitch {
    width: 100%;
  }

  .tab,
  .pay {
    min-width: 0;
  }
}
