/* Love Song · 样式
   ---------------------------------------------------------------------------
   这一页是给人送东西用的,要暖、要软、要好上手。
   底是暖米色的纸,强调色是玫瑰 + 赤陶琥珀,字是暖深棕。

   交互上只守一条原则:**一屏一件事,底下只有一个按钮。**
   所以主按钮固定在屏幕底部,页面里不再散落"下一步"。 */

:root {
  /* 底:暖米色,像纸 */
  --bg: #f7efe3;
  --bg-2: #f0e5d5;

  /* 面:比底更白一点的暖白 */
  --surface: #fffdf9;
  --surface-2: #fbf4e8;

  /* 描边:暖棕 */
  --line: rgba(122, 88, 62, .16);
  --line-hi: rgba(122, 88, 62, .3);

  /* 字:暖深棕,不是纯黑 */
  --text: #3a2b21;
  --text-2: rgba(58, 43, 33, .72);
  --text-3: rgba(58, 43, 33, .46);

  /* 强调色:玫瑰 + 赤陶琥珀 */
  --rose: #c9586a;
  --rose-hi: #d76b7b;
  --rose-soft: rgba(201, 88, 106, .09);
  --rose-line: rgba(201, 88, 106, .38);
  --gold: #b8792f;
  --gold-soft: rgba(184, 121, 47, .12);

  --font-display: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* hidden 属性要能盖住组件自己的 display */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 底部有固定的按钮条,给页面留出空间 */
  padding-bottom: env(safe-area-inset-bottom);
}

/* 背景:左上玫瑰、右下琥珀，都很淡 */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* ── 内容列的宽度 ────────────────────────────────────────────────────
   这一列原来是「跟着内容走」的:标题有多宽,整列就多宽。
   于是选完关系(下面多出一行「再具体一点」的标签)、展开「更多关系」、
   或者在第二步写了一段长话,整列都会被撑宽 —— 页面往左跳一下,看着像闪。

   现在:
   · 整列固定 640(跟顶栏、进度条对齐),怎么点都不跳;
   · 每一步的内容块都是正常宽度 —— 撑满这一列(600),跟第二步一样宽。
     不再按内容自己的自然宽度缩着,也不由那些「会变的内容」决定。 */
main.wrap { width: 100%; }
.stage { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; }

/* 这几块是「点一下才出现、还会变长」的:
   撑满整列,标签、长句自己换行 —— 不去撑列外的任何东西。 */
.refine, .rel-box { min-width: 100%; }

/* ── 顶栏 ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 239, 227, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar .wrap {
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand-mark { display: block; width: 28px; height: 28px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em;
}
.brand-tag {
  margin: 0; font-size: 12.5px; color: var(--text-3);
  /* 基线对齐:这一行里「TA」是拉丁大写,视觉上比中文高一截。
     量过两条基线差 2.3px,往下推这么多 —— 对齐的是"字的底线",
     不是两个文本框的底边(按底边推会多推 1.4px,看着就低了)。 */
  transform: translateY(2.3px);
}

/* ── 进度条 ───────────────────────────────────────────────────────── */
.progress {
  position: sticky; top: 58px; z-index: 39;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 239, 227, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.progress .wrap { max-width: 680px; padding: 0 20px; }
.progress ol {
  --n: 2;                       /* 几步 —— 圆点均分,底线跟着走 */
  position: relative;
  display: flex; list-style: none; margin: 0; padding: 0;
}
/* 底线:从第一个点到最后一个点 */
.progress ol::before {
  content: ''; position: absolute; top: 15px; height: 2px;
  left: calc(50% / var(--n)); right: calc(50% / var(--n));
  background: rgba(122, 88, 62, .13);
}
/* 已经走过的部分 */
.progress ol::after {
  content: ''; position: absolute; top: 15px; height: 2px;
  left: calc(50% / var(--n));
  width: calc((100% - 100% / var(--n)) * var(--p, 0));
  background: linear-gradient(90deg, var(--gold), var(--rose));
  transition: width .45s var(--ease);
}
.progress li {
  position: relative; z-index: 1; flex: 1; text-align: center;
  padding: 11px 0 10px;
  font-size: 12.5px; color: var(--text-3);
  transition: color .3s var(--ease);
}
.progress li i {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  margin: 0 auto 6px;
  background: rgba(122, 88, 62, .2);
  box-shadow: 0 0 0 3px rgba(247, 239, 227, .9);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.progress li.is-done { color: var(--text-2); }
.progress li.is-done i { background: var(--gold); }
.progress li.is-on { color: var(--rose); font-weight: 600; }
.progress li.is-on i { background: var(--rose); box-shadow: 0 0 0 3px rgba(247, 239, 227, .9), 0 0 0 6px rgba(201, 88, 106, .18); }

/* ── 创作页:三块内容在一页上 ───────────────────────────────────── */
main { position: relative; z-index: 2; flex: 1 0 auto; padding-bottom: 40px; }

/* 每一块之间用一条线分开,让人知道"填完了这段,该往下走了" */
.block { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
/* 第二块还没出来的时候,中间那条线也先别画 */
.block--solo { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.stage { display: none; padding: 30px 0 40px; animation: rise .5s var(--ease); }
.stage.is-on { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.title {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 6.4vw, 34px); line-height: 1.28; letter-spacing: .01em;
}
.lede { margin: 0 0 20px; color: var(--text-2); font-size: 15px; line-height: 1.8; }

/* 往回走的小箭头,安静一点 */
.backlink {
  display: inline-flex; align-items: center; gap: 3px;
  margin: 0 0 14px; padding: 4px 0;
  background: none; border: 0;
  color: var(--text-3); font-family: inherit; font-size: 13px; cursor: pointer;
  transition: color .25s var(--ease);
}
.backlink svg { width: 15px; height: 15px; }
.backlink:hover { color: var(--rose); }

/* ── 常用对象:大方块,一眼能点 ───────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 540px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative;
  min-height: 52px; padding: 6px 4px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface);
  color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(122, 88, 62, .05);
  transition: transform .25s var(--ease), border-color .25s var(--ease),
    background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover {
  border-color: var(--rose-line); background: var(--rose-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(201, 88, 106, .5);
}
.tile[aria-pressed="true"] {
  background: var(--rose); border-color: var(--rose); color: #fff8f4;
  box-shadow: 0 10px 20px -10px rgba(201, 88, 106, .65);
}
.tile[aria-pressed="true"]::after {
  content: '✓'; position: absolute; top: 4px; right: 7px;
  font-family: var(--font-sans); font-size: 10px; opacity: .85;
}

/* 再具体一点(伴侣 → 妻子 / 丈夫) */
.refine { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.refine__label { font-size: 12.5px; color: var(--text-3); }

/* ── 小标签(场合 / 调子 / 更细的关系)─────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field .chips { gap: 9px; }
.chip {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--text-2);
  font-family: inherit; font-size: 14px; cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.chip:hover { border-color: var(--rose-line); color: var(--text); background: var(--rose-soft); }
.chip[aria-pressed="true"] {
  border-color: var(--rose); background: var(--rose); color: #fff8f4;
  box-shadow: 0 6px 14px -8px rgba(201, 88, 106, .55);
}

/* 「更多」开关:两个都一样 —— 居中、不用颜色强调,箭头只是提示能展开 */
.more-toggle, .more-inline {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%;
  background: none; border: 0; padding: 0;
  color: var(--text-3); font-family: inherit; font-size: 13.5px; cursor: pointer;
  transition: color .25s var(--ease);
}
.more-toggle { margin-top: 16px; margin-bottom: 22px; }
.more-inline { margin-top: 10px; font-size: 13px; }
.more-toggle:hover, .more-inline:hover { color: var(--text-2); }
.more-toggle svg, .more-inline svg {
  width: 15px; height: 15px; flex: none;
  transition: transform .3s var(--ease);
}
.more-toggle[aria-expanded="true"] svg,
.more-inline[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 全部关系 */
.rel-box {
  display: grid; gap: 14px; margin-top: 14px; margin-bottom: 22px;
  padding: 20px; border: 1px dashed var(--line-hi); border-radius: 18px;
  background: rgba(255, 253, 249, .6);
}
.rel-group { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rel-group__name { font-size: 11.5px; color: var(--text-3); min-width: 4.2em; flex: none; }

/* 「自定义」:有些关系只有当事人才知道 ——「岳父」「暗恋的人」。
   给一个能直接写字的框,写完点「用这个」,它就是一个正经关系。
   名字单独一行,输入框和按钮并排 —— 挤在一行的话按钮会掉到下一行。 */
.rel-group--custom { display: block; }
.rel-group--custom .rel-group__name { display: block; margin-bottom: 8px; }
.rel-custom { display: flex; align-items: center; gap: 8px; }
/* 场合、调子那边的「自定义」—— 跟在那一堆小标签下面 */
.custom-inline { margin-top: 12px; }
.rel-input {
  flex: 1 1 auto; min-width: 0;
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.rel-input::placeholder { color: var(--text-3); }
.rel-input:focus {
  outline: none; border-color: var(--rose-line);
  box-shadow: 0 0 0 3px var(--rose-soft);
}
/* 已经用上了 —— 和别的小标签一样亮 */
.rel-input.is-on {
  border-color: var(--rose); background: var(--rose-soft);
}
/* 「用这个」—— 框里没字的时候别抢眼,写了字才变成实心的 */
.chip--ok {
  flex: none; border-color: var(--line-hi); color: var(--text-3);
  background: var(--surface);
}
.chip--ok.is-ready {
  border-color: var(--rose); background: var(--rose); color: #fff8f4;
}
.chip--ok.is-ready:hover {
  border-color: var(--rose-hi); background: var(--rose-hi); color: #fff8f4;
}
.chip--ok:not(.is-ready):hover { border-color: var(--rose-line); color: var(--rose); }

/* ── 表单 ─────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 22px; }
.field-label { display: block; margin-bottom: 9px; font-size: 14.5px; font-weight: 500; }
.field-hint { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.field-hint i { font-style: normal; font-family: var(--font-mono); }

input[type="text"], textarea {
  width: 100%; padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); font-family: inherit; font-size: 15.5px; line-height: 1.7;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  resize: vertical;
}
input[type="text"]::placeholder, textarea::placeholder { color: rgba(58, 43, 33, .3); }
input[type="text"]:focus, textarea:focus {
  outline: none; border-color: var(--rose-line); background: #fffefb;
  box-shadow: 0 0 0 3px rgba(201, 88, 106, .12);
}

/* ── 按钮 ─────────────────────────────────────────────────────────── */
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 99px;
  border: 1px solid transparent; font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), background .25s var(--ease),
    border-color .25s var(--ease), color .25s var(--ease), opacity .2s, box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--rose); color: #fff8f4;
  box-shadow: 0 10px 22px -12px rgba(201, 88, 106, .85);
}
.btn-primary:not(:disabled):hover { background: var(--rose-hi); transform: translateY(-1px); }
.btn-wide { width: 100%; }
.btn-ghost {
  border-color: var(--line-hi); color: var(--text-2);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--rose-line); color: var(--rose); background: var(--rose-soft); }

/* 已经做过一遍的那一版 —— 按钮换个说法,别让人再点一次(那又是一笔钱) */
.btn--done {
  background: var(--surface); color: var(--rose);
  border-color: var(--rose-line); box-shadow: none;
}
.btn--done:not(:disabled):hover { background: var(--rose-soft); transform: translateY(-1px); }

/* ── 底部固定的主按钮 ─────────────────────────────────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  border-top: 1px solid var(--line);
  background: rgba(247, 239, 227, .93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -12px 30px -24px rgba(122, 88, 62, .9);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock__inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.dock__hint { flex: 1 1 auto; margin: 0; font-size: 13px; color: var(--text-3); }
.dock .btn { flex: 0 0 auto; }

@media (max-width: 560px) {
  .dock__inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .dock__hint { text-align: center; font-size: 12.5px; }
  .dock .btn { width: 100%; min-height: 52px; }
}

/* ── 状态提示 ─────────────────────────────────────────────────────── */
.status {
  margin: 14px 0 0; min-height: 20px;
  font-size: 13.5px; color: var(--text-3);
  /* 报错的时候可能带一长串没有空格的英文,别把整列撑开 */
  overflow-wrap: anywhere;
}
.status.is-error { color: #c0392b; }

/* 歌名:写词那一步顺带给的 —— 跟上面的标题留够距离 */
.songname { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; }

/* 歌词框 + 右上角那个「AI写词」 */
.lyrics-wrap { position: relative; }
.lyrics-btn {
  position: absolute; top: 9px; right: 12px;
  padding: 6px 15px; border-radius: 99px;
  border: 1px solid var(--rose-line);
  background: linear-gradient(135deg, rgba(224, 146, 142, .22), rgba(233, 190, 124, .22));
  color: var(--rose); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(201, 88, 106, .7);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.lyrics-btn:hover {
  border-color: var(--rose);
  background: linear-gradient(135deg, rgba(224, 146, 142, .34), rgba(233, 190, 124, .32));
  transform: translateY(-1px);
}
.lyrics-btn:active { transform: translateY(0); }
.lyrics-btn:disabled { opacity: .45; cursor: not-allowed; }
.songname__text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--rose); }
.songname__tags { font-size: 11.5px; letter-spacing: .04em; color: var(--text-3); }

/* ── 等待:写词 ───────────────────────────────────────────────────── */
.thinking {
  padding: 24px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
}
.thinking p { margin: 0 0 18px; font-size: 14.5px; color: var(--text-2); }
.shimmer {
  height: 12px; border-radius: 6px; margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(122, 88, 62, .09), rgba(201, 88, 106, .22), rgba(122, 88, 62, .09));
  background-size: 220% 100%;
  animation: sweep 1.7s ease-in-out infinite;
}
.shimmer:last-child { margin-bottom: 0; }
@keyframes sweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* ── 等待:谱曲(要一两分钟,得有个像样的等待画面)─────────────────── */
.making {
  padding: 44px 24px; text-align: center;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 50px -36px rgba(122, 88, 62, .8);
}
.disc {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 22px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 22%),
    conic-gradient(from 0deg, #cf6b78, #e3ad61, #d9899a, #cf6b78);
  box-shadow: 0 12px 30px -14px rgba(122, 88, 62, .9);
  animation: spin 5s linear infinite;
}
.disc::after {
  content: ''; position: absolute; inset: 40%; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 1px 2px rgba(122, 88, 62, .3);
}
@keyframes spin { to { transform: rotate(360deg); } }
.making h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.making p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ── 歌词 ─────────────────────────────────────────────────────────── */
.lyrics {
  width: 100%; min-height: 260px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  color: var(--text); font-family: var(--font-display); font-size: 16px; line-height: 2.1;
  resize: vertical;
}
.lyrics:focus { outline: none; border-color: var(--rose-line); box-shadow: 0 0 0 3px rgba(201, 88, 106, .1); }

/* ── 播放器 ───────────────────────────────────────────────────────── */
.player {
  display: flex; gap: 20px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9, #faf2e6);
  box-shadow: 0 24px 50px -36px rgba(122, 88, 62, .8);
}
.cover {
  position: relative; width: 104px; height: 104px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(122, 88, 62, .14);
  background: linear-gradient(160deg, #f9ddcd, #eeb9b2 58%, #e2a79d);
}
/* 封面:上面是歌名,下面是播放键 —— 像一张真的唱片封面 */
.cover__title {
  position: absolute; top: 11px; left: 9px; right: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; line-height: 1.35;
  color: #7d3a3e; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cover-play {
  position: absolute; left: 0; right: 0; bottom: 10px; margin: 0 auto;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255, 253, 249, .93); color: var(--rose);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(122, 88, 62, .7);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.cover-play:hover { transform: scale(1.07); background: #fff; }
.cover-play svg { width: 20px; height: 20px; }
.cover-play .i-pause { display: none; }
.player.is-playing .cover-play .i-play { display: none; }
.player.is-playing .cover-play .i-pause { display: block; }

.player-body { flex: 1 1 auto; min-width: 0; }
.player-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.player-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.player-sub { font-size: 12px; color: var(--text-3); }

.bar { position: relative; height: 4px; border-radius: 4px; background: rgba(122, 88, 62, .15); overflow: visible; cursor: pointer; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width .12s linear; }
/* 30 秒试听到哪儿为止,标一下 */
.bar__limit { position: absolute; top: -4px; width: 2px; height: 12px; border-radius: 2px; background: rgba(184, 121, 47, .6); }

/* 人工发货:兑换码 */
.redeem {
  margin-top: 16px; padding: 16px 18px;
  border: 1px dashed var(--line-hi); border-radius: 14px;
  background: rgba(255, 253, 249, .5);
}
.redeem__title { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.redeem__row { display: flex; gap: 8px; }
.redeem__note { margin: 10px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.player-time { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ── 付费墙 ───────────────────────────────────────────────────────── */
.paywall {
  margin-top: 16px; padding: 24px;
  border: 1px solid var(--rose-line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(233, 190, 124, .26), rgba(229, 150, 146, .18));
  box-shadow: 0 24px 50px -36px rgba(122, 88, 62, .7);
}
.paywall-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.paywall-title b { color: var(--gold); font-family: var(--font-mono); font-size: 23px; }
.paywall-sub { margin: 0 0 18px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.btn-pay {
  background: linear-gradient(120deg, #1677ff, #3a9bff); color: #fff; width: 100%;
  box-shadow: 0 10px 22px -12px rgba(22, 119, 255, .8);
}
.btn-pay:hover { background: linear-gradient(120deg, #2f8bff, #55a9ff); }
.btn-pay svg { width: 18px; height: 18px; }
.paywall-note { margin: 12px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }

.unlocked {
  margin-top: 16px; padding: 24px; border: 1px solid var(--rose-line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(233, 190, 124, .28), rgba(229, 150, 146, .16));
}
.unlocked-title { margin: 0 0 16px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gold); }
.unlocked-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 试听到哪儿为止,说清楚 */
.player-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-3); }

/* pc 上付款用的那个新标签:付完自己关掉 */
.closing {
  position: fixed; inset: 0; z-index: 99;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  color: var(--text-2); font-size: 14px;
}

/* 离开前的确认弹窗(自己画的,不像浏览器原生那个会带地址) */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(58, 43, 33, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__box {
  width: 100%; max-width: 330px;
  padding: 26px 24px 20px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 70px -30px rgba(58, 43, 33, .7);
  text-align: center;
  animation: rise2 .25s var(--ease);
}
@keyframes rise2 { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__text { margin: 0 0 20px; font-size: 16px; color: var(--text); line-height: 1.7; }
.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn { flex: 1; }

/* 作品页的出口:回到创作 / 重新创作 —— 一张卡片,放在歌词下面 */
.work-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 22px; padding: 20px 18px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 253, 249, .55);
}
.work-card .btn { max-width: 100%; text-align: center; white-space: normal; line-height: 1.55; }
/* 「回到创作页面」:红字,提醒这歌没了 */
.work-back {
  color: var(--rose);
  border-color: var(--rose-line);
  background: linear-gradient(135deg, rgba(224, 146, 142, .18), rgba(233, 190, 124, .16));
}
.work-back:hover { border-color: var(--rose); background: var(--rose-soft); color: var(--rose); }
.work-note {
  margin: 12px 0 0; text-align: center;
  font-size: 12.5px; color: var(--rose); line-height: 1.85;
}
.work-note--plain { color: var(--text-3); }
/* 「创作全新歌曲」跟上面那句隔开一点 */
.work-actions .btn-ghost { margin-top: 22px; }

/* ── 歌词展开 ─────────────────────────────────────────────────────── */
.lyrics-view { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.lyrics-view summary { cursor: pointer; font-size: 13.5px; color: var(--text-3); }
.lyrics-view summary:hover { color: var(--text-2); }
.lyrics-view pre {
  margin: 16px 0 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--font-display); font-size: 15px; line-height: 2.05; color: var(--text-2);
}

/* ── 页脚 ─────────────────────────────────────────────────────────── */
.foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); padding: 26px 0 132px;
  margin-top: 20px;
}
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.foot a { color: var(--text-3); text-decoration: none; }
.foot a:hover { color: var(--text-2); }

@media (max-width: 640px) {
  .player { flex-direction: column; align-items: stretch; }
  .cover { width: 92px; height: 92px; margin: 0 auto; }
  .progress li { font-size: 11.5px; }
}

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