/* ==========================================================================
   AI故事音乐创作平台 · 设计系统
   气质：干净、温柔、松弛、安静、治愈、女性高级感、轻层次
   配色：奶油燕麦底 + 汽水柔绿点缀（降饱和青柠），雾紫退为辅助
   ========================================================================== */

:root {
  /* 底色 / 表面 */
  --bg-base: #f7f5ef;            /* 奶油燕麦底 */
  --bg-tint: #f2f4ea;            /* 淡青绿调 */
  --bg-deep: #eaeee0;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-sunk: #faf8f3;
  --surface-tint: rgba(151, 191, 99, 0.06);

  /* 品牌色：汽水青柠降饱和 */
  --brand: #97bf63;              /* 柔青柠 */
  --brand-deep: #749c49;
  --brand-soft: #d3e5b4;
  --brand-wash: rgba(151, 191, 99, 0.13);
  --warm: #d9bfa1;               /* 燕麦 */
  --warm-soft: #ecdcc9;
  --warm-wash: rgba(217, 191, 161, 0.16);

  /* 语义色（克制、低饱和） */
  --ok: #7fb096;
  --ok-wash: rgba(127, 176, 150, 0.14);
  --warn: #d2a069;
  --warn-wash: rgba(210, 160, 105, 0.16);
  --danger: #cf8686;
  --danger-wash: rgba(207, 134, 134, 0.14);

  /* 文字 */
  --text-1: #34362e;
  --text-2: #6d7062;
  --text-3: #9a9d8f;
  --text-4: #bec1b2;
  --text-on-brand: #33401f;      /* 浅绿按钮上的深色字（汽水 DNA） */

  /* 分隔：几乎不可见的轻层次 */
  --line: rgba(52, 54, 46, 0.06);
  --line-strong: rgba(52, 54, 46, 0.1);

  /* 圆角 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;

  /* 阴影：极淡、发散 */
  --sh-1: 0 2px 10px rgba(109, 124, 88, 0.05);
  --sh-2: 0 10px 30px rgba(109, 124, 88, 0.08);
  --sh-3: 0 18px 46px rgba(109, 124, 88, 0.12);
  --sh-brand: 0 10px 26px rgba(151, 191, 99, 0.32);

  /* 间距 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;

  /* 字号 */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 16px;
  --fs-xl: 19px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;

  --nav-h: 62px;
  --col: 430px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-base);
  background-image:
    radial-gradient(120% 70% at 12% 0%, rgba(211, 229, 180, 0.35) 0%, rgba(211, 229, 180, 0) 58%),
    radial-gradient(110% 60% at 92% 8%, rgba(236, 220, 201, 0.42) 0%, rgba(236, 220, 201, 0) 60%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-base) 46%, var(--bg-base) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

/* 手机列（桌面端居中展示，两侧留出柔和空间） */
.app {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 24px);
  position: relative;
}

@media (min-width: 900px) {
  body { padding: 24px 0; }
  .app {
    min-height: calc(100vh - 48px);
    background: rgba(255, 255, 255, 0.42);
    border-radius: 34px;
    box-shadow: var(--sh-2);
    overflow: hidden;
  }
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 56px;
  padding: 0 var(--sp-4);
  background: rgba(247, 245, 239, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.topbar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-soft);
  box-shadow: var(--sh-1);
  color: var(--text-2);
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform .18s ease, box-shadow .18s ease;
}
.topbar__back:active { transform: scale(0.94); }
.topbar__title {
  flex: 1;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  margin-right: 34px; /* 与返回键对称 */
}
.topbar__title--left { text-align: left; margin-right: 0; }

/* ---------- 底部导航 ---------- */
.navbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--col);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(252, 251, 246, 0.88);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  box-shadow: 0 -6px 24px rgba(109, 124, 88, 0.06);
  z-index: 50;
}
.navbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--text-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color .2s ease;
  text-decoration: none;
}
.navbar__item svg { width: 22px; height: 22px; }
.navbar__item.is-active { color: var(--brand); }
.navbar__item.is-active svg { filter: drop-shadow(0 3px 8px rgba(151, 191, 99, 0.4)); }

/* ---------- 通用容器 ---------- */
.page { padding: var(--sp-2) var(--sp-4) 0; }
.section { margin-bottom: var(--sp-7); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding: 0 2px;
}
.section__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.section__title small {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.section__more {
  font-size: var(--fs-sm);
  color: var(--text-3);
  text-decoration: none;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: var(--sp-5);
}
.card + .card { margin-top: var(--sp-3); }
.card--flat { box-shadow: var(--sh-1); }
.card--sunk { background: var(--surface-sunk); box-shadow: none; }
.card--tint {
  background: linear-gradient(150deg, rgba(211, 229, 180, 0.28), rgba(236, 220, 201, 0.24));
  box-shadow: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--text-1);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .22s ease, opacity .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.975); }
.btn[disabled], .btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}
.btn--primary {
  color: var(--text-on-brand);
  background: linear-gradient(135deg, #c4e192 0%, #a5cd73 55%, #97bf63 100%);
  box-shadow: var(--sh-brand);
}
.btn--warm {
  color: #6b5334;
  background: linear-gradient(135deg, #ecdcc9 0%, #dcc0a0 100%);
  box-shadow: 0 8px 22px rgba(217, 191, 161, 0.4);
}
.btn--ghost {
  background: var(--surface-soft);
  box-shadow: none;
  color: var(--text-2);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: var(--text-2);
}
.btn--block { display: flex; width: 100%; }
.btn--sm { height: 34px; font-size: var(--fs-md); padding: 0 var(--sp-4); }
.btn--xs { height: 28px; font-size: var(--fs-sm); padding: 0 12px; border-radius: var(--r-full); }
.btn--icon { width: 46px; padding: 0; }

/* ---------- 表单 ---------- */
.field { margin-bottom: var(--sp-4); }
.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-md);
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
  padding-left: 2px;
}
.field__hint { font-size: var(--fs-sm); color: var(--text-4); }

.input, .textarea {
  width: 100%;
  border: 1px solid transparent;
  background: var(--surface-sunk);
  border-radius: var(--r-md);
  padding: 14px var(--sp-4);
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-1);
  outline: none;
  transition: background .2s ease, box-shadow .2s ease;
  resize: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .textarea:focus {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--brand-wash), var(--sh-1);
}
.textarea { min-height: 132px; }
.textarea--tall { min-height: 190px; }

.counter {
  text-align: right;
  font-size: var(--fs-xs);
  color: var(--text-4);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ---------- 选项组 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-sunk);
  color: var(--text-2);
  font-family: inherit;
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:active { transform: scale(0.96); }
.chip.is-active {
  background: var(--brand-wash);
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(151, 191, 99, 0.35);
}
.chip--warm.is-active {
  background: var(--warm-wash);
  color: #8a6b43;
  box-shadow: inset 0 0 0 1px rgba(217, 191, 161, 0.3);
}

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-sunk);
  border-radius: var(--r-full);
}
.seg__item {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .2s ease;
}
.seg__item.is-active {
  background: var(--surface);
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: var(--sh-1);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  background: var(--brand-wash);
  color: var(--brand-deep);
}
.tag--warm { background: var(--warm-wash); color: #8a6b43; }
.tag--ok { background: var(--ok-wash); color: #4e8065; }
.tag--warn { background: var(--warn-wash); color: #9a6f38; }
.tag--danger { background: var(--danger-wash); color: #a95c5c; }
.tag--mute { background: var(--surface-sunk); color: var(--text-3); }

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; }
.list__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  font-size: var(--fs-base);
}
.list__item:last-child { border-bottom: 0; }
.list__item:active { background: var(--surface-tint); }
.list__icon {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-wash);
  color: var(--brand-deep);
}
.list__main { flex: 1; min-width: 0; }
.list__title { font-size: var(--fs-base); font-weight: 500; }
.list__sub { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.list__arrow { color: var(--text-4); flex: 0 0 auto; }

/* ---------- 进度 ---------- */
.progress {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-sunk);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.progress--warm .progress__bar { background: linear-gradient(90deg, var(--warm-soft), var(--warm)); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--text-3);
}
.empty__art {
  width: 96px; height: 96px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(211, 229, 180, 0.4), rgba(236, 220, 201, 0.34));
  display: grid;
  place-items: center;
  color: var(--brand);
}
.empty__title { font-size: var(--fs-base); color: var(--text-2); margin-bottom: 4px; }
.empty__desc { font-size: var(--fs-sm); color: var(--text-4); }

/* ---------- 底部弹层 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(52, 54, 46, 0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
  z-index: 80;
}
.sheet-mask.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: var(--col);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-3);
  padding: var(--sp-5) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0));
  transition: transform .32s cubic-bezier(.32, .72, 0, 1);
  z-index: 90;
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet__handle {
  width: 40px; height: 4px;
  border-radius: var(--r-full);
  background: var(--line-strong);
  margin: -4px auto var(--sp-4);
}
.sheet__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-4);
}

/* ---------- 提示 ---------- */
.toast-wrap {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}
.toast {
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: rgba(52, 54, 46, 0.92);
  color: #fff;
  font-size: var(--fs-md);
  letter-spacing: 0.04em;
  box-shadow: var(--sh-2);
  animation: toastIn .3s cubic-bezier(.2, .9, .3, 1);
}
.toast--ok { background: rgba(94, 138, 115, 0.94); }
.toast--warn { background: rgba(168, 124, 68, 0.94); }
.toast--err { background: rgba(176, 100, 100, 0.94); }
.toast.is-out { animation: toastOut .26s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(.97); } }

.notice {
  display: flex;
  gap: var(--sp-3);
  padding: 13px var(--sp-4);
  border-radius: var(--r-md);
  background: var(--warn-wash);
  color: #8a6b43;
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.notice--brand { background: var(--brand-wash); color: var(--brand-deep); }
.notice--ok { background: var(--ok-wash); color: #4e8065; }
.notice--danger { background: var(--danger-wash); color: #a95c5c; }
.notice svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }

/* ---------- 顶栏渐变标题区 ---------- */
.hero {
  padding: var(--sp-6) var(--sp-5) var(--sp-7);
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(211, 229, 180, 0.5) 0%, rgba(211, 229, 180, 0) 62%),
    radial-gradient(80% 110% at 100% 12%, rgba(236, 220, 201, 0.55) 0%, rgba(236, 220, 201, 0) 66%);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.hero__eyebrow {
  font-size: var(--fs-sm);
  letter-spacing: 0.22em;
  color: var(--brand-deep);
  opacity: .78;
  margin-bottom: 10px;
}
.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.32;
  margin: 0 0 10px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #749c49, #b09a7e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__desc {
  font-size: var(--fs-md);
  color: var(--text-2);
  line-height: 1.75;
  letter-spacing: 0.03em;
}

/* ---------- 入口大卡 ---------- */
.entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--sh-2);
  transition: transform .22s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
}
.entry:active { transform: scale(0.985); }
.entry--story {
  background: linear-gradient(135deg, #ffffff 0%, #f3f7ea 58%, #eef3e0 100%);
}
.entry--drama {
  background: linear-gradient(135deg, #ffffff 0%, #f8f3ea 58%, #f2eee1 100%);
}
.entry__glow {
  position: absolute;
  right: -34px; top: -40px;
  width: 148px; height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 229, 180, 0.6) 0%, rgba(211, 229, 180, 0) 70%);
  pointer-events: none;
}
.entry--drama .entry__glow {
  background: radial-gradient(circle, rgba(236, 220, 201, 0.72) 0%, rgba(236, 220, 201, 0) 70%);
}
.entry__art {
  width: 56px; height: 56px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #eef5e0, #dcebc2);
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.entry--drama .entry__art {
  background: linear-gradient(150deg, #f7ece0, #eeddc8);
  color: #8a6b43;
}
.entry__body { flex: 1; min-width: 0; position: relative; }
.entry__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}
.entry__desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6;
}
.entry__arrow { color: var(--text-4); flex: 0 0 auto; position: relative; }

/* ---------- 横滑卡 ---------- */
.hscroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 calc(var(--sp-4) * -1);
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.hscroll::-webkit-scrollbar { display: none; }
.case-card {
  flex: 0 0 216px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: var(--sp-4);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease;
}
.case-card:active { transform: scale(0.98); }
.case-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-3);
}
.case-card__cover {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: var(--fs-lg);
  flex: 0 0 auto;
}
.case-card__name {
  font-size: var(--fs-md);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-card__meta { font-size: var(--fs-xs); color: var(--text-4); margin-top: 1px; }
.case-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-3);
  line-height: 1.6;
  height: 44px;
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.case-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- 播放器（内联） ---------- */
.miniplay {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 14px;
  border-radius: var(--r-full);
  background: var(--surface-sunk);
}
.miniplay__btn {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c4e192, #97bf63);
  color: #33401f;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(151, 191, 99, 0.32);
}
.miniplay__btn:active { transform: scale(0.94); }
.miniplay__wave { flex: 1; height: 26px; position: relative; }
.miniplay__wave canvas { width: 100%; height: 100%; display: block; }
.miniplay__time {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* 结果页大播放器 */
.player { text-align: center; }
.player__cover {
  width: 190px; height: 190px;
  margin: var(--sp-2) auto var(--sp-5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 58%),
    linear-gradient(150deg, #d3e5b4, #d9c3a9 92%);
  box-shadow: 0 18px 44px rgba(151, 191, 99, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
  transition: transform .5s cubic-bezier(.3, 0, .2, 1);
}
.player__cover::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 6px rgba(109, 124, 88, 0.16);
}
.player__cover-inner {
  position: relative;
  z-index: 2;
  color: #436029;
}
.player.is-playing .player__cover { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player__wave { height: 54px; margin: var(--sp-4) 0 var(--sp-3); }
.player__wave canvas { width: 100%; height: 100%; display: block; }
.player__times {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-5);
}
.player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
}
.player__ctrl {
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-sunk);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease;
}
.player__ctrl:active { transform: scale(0.93); }
.player__ctrl--main {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, #c4e192, #97bf63);
  color: #33401f;
  box-shadow: var(--sh-brand);
}
.player__song {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.player__artist { font-size: var(--fs-sm); color: var(--text-3); }

/* ---------- 转圈 ---------- */
.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: rot .8s linear infinite;
  display: inline-block;
}
.spinner--brand { border-color: var(--brand-wash); border-top-color: var(--brand); }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 生成中遮罩 ---------- */
.busy {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(6px);
}
.busy.is-open { display: grid; }
.busy__box {
  width: 288px;
  text-align: center;
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.busy__ring {
  width: 62px; height: 62px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  border: 3px solid var(--brand-wash);
  border-top-color: var(--brand);
  animation: rot 1s linear infinite;
}
.busy__title { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 6px; }
.busy__step { font-size: var(--fs-md); color: var(--text-2); min-height: 22px; }
.busy__pct {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--brand-deep);
  margin-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.busy__progress { margin-top: var(--sp-4); }

/* ---------- 剧本分段 ---------- */
.line-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.line-item:last-child { border-bottom: 0; }
.line-item__avatar {
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  color: #fff;
  font-weight: 500;
}
.line-item__body { flex: 1; min-width: 0; }
.line-item__who {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.line-item__text {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-1);
}
.line-item__text.is-muted { color: var(--text-3); font-style: italic; }
.line-item__acts {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  align-items: center;
}

/* 音色小卡 */
.voice-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.voice-row:last-child { border-bottom: 0; }
.voice-row__avatar {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 500;
  flex: 0 0 auto;
}
.voice-row__main { flex: 1; min-width: 0; }
.voice-row__name { font-size: var(--fs-base); font-weight: 500; }
.voice-row__voice { font-size: var(--fs-sm); color: var(--text-3); margin-top: 1px; }

/* ---------- 顶部小卡统计 ---------- */
.stats { display: flex; gap: var(--sp-3); }
.stat {
  flex: 1;
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--r-md);
  background: var(--surface-soft);
  text-align: center;
  box-shadow: var(--sh-1);
}
.stat__num {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; margin-top: 2px; }

/* ---------- 作品项 ---------- */
.work {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  margin-bottom: var(--sp-3);
}
.work__art {
  width: 52px; height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  position: relative;
}
.work__main { flex: 1; min-width: 0; }
.work__title {
  font-size: var(--fs-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.work__meta { font-size: var(--fs-xs); color: var(--text-4); display: flex; flex-wrap: wrap; gap: 8px; }
.work__acts { display: flex; gap: 6px; flex: 0 0 auto; }

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.t-2 { color: var(--text-2); }
.t-3 { color: var(--text-3); }
.t-4 { color: var(--text-4); }
.f-sm { font-size: var(--fs-sm); }
.f-md { font-size: var(--fs-md); }
.f-lg { font-size: var(--fs-lg); }
.w-500 { font-weight: 500; }
.w-600 { font-weight: 600; }
.tc { text-align: center; }
.hide { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.divider { height: 1px; background: var(--line); margin: var(--sp-4) 0; }
.link { color: var(--brand-deep); text-decoration: none; }
