/* 界面定稿（2026-11-16）：深色底 + 金色，路线画成一条线路；遍数用「正」字记。
   设计稿在 design/设计说明.md 里写的那张 Claude Design 画布上（B 的首页和配色 + C 的正字）。
   界面要让着画：除了金色这一种强调色，别的都是深浅不同的灰。 */
:root {
  --ground: #12151a;
  --panel: #1c2128;
  --line: #2c333d;
  --hollow: #5b626d;
  --ink: #f1eee6;
  --soft: #c9cdd4;
  --muted: #a6acb5;
  --gold: #e0b23a;
  --gold-ink: #12151a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 0 20px; }
a { color: var(--ink); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

/* 顶栏 */
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.brand small { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.top nav { flex: 1; }
.account { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.who { color: var(--muted); }
.inline { display: inline; }
.link-plain { color: var(--ink); text-decoration: none; }
.account .btn.small { min-height: 32px; padding: 0; border: 0; background: none; color: var(--gold); font-weight: 400; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  border: 2px solid var(--gold); border-radius: 0;
  background: var(--gold); color: var(--gold-ink);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn.small { min-height: 44px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); font-weight: 700; }
.btn.small.ghost, .vote .btn { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--hollow); font-weight: 700; }
.btn.off { border-color: var(--hollow); color: var(--muted); font-weight: 400; cursor: default; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.link { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 32px; }

/* 首页开头 */
.intro { padding: 18px 0 0; }
.intro h1 { font-size: 40px; line-height: 1.15; font-weight: 900; letter-spacing: 3px; }
.intro p { margin-top: 4px; color: var(--muted); }

/* 接着练：首页最显眼的一件事 */
.next {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  margin-top: 22px; padding: 16px 18px;
  background: var(--gold); color: var(--gold-ink); text-decoration: none;
}
.next-label { font-size: 14px; font-weight: 700; }
.next-what { grid-column: 1; font-size: 26px; font-weight: 900; line-height: 1.25; }
.next-sub { grid-column: 1; font-size: 15px; }
.next-go { grid-column: 2; grid-row: 1 / span 3; font-size: 30px; font-weight: 900; }
.overall { margin-top: 10px; color: var(--muted); font-size: 14px; min-height: 1px; }

/* 路线：一条线，站是线上的圆点 */
.path { list-style: none; margin: 26px 0 0; padding: 0; }
.stop { display: flex; gap: 16px; }
.rail { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; }
.node {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--hollow); color: var(--muted); font-size: 20px; font-weight: 900;
}
.track { flex: 1; width: 4px; margin-top: 8px; background: repeating-linear-gradient(to bottom, var(--hollow) 0 7px, transparent 7px 14px); }
.stop:last-child .track { display: none; }
.stop.done .node { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.stop.done .track { width: 6px; margin-top: 0; background: var(--gold); }
.stop.current .node {
  width: 56px; height: 56px; font-size: 24px;
  background: var(--ground); border: 6px solid var(--gold); color: var(--gold);
  outline: 3px solid var(--ground); box-shadow: 0 0 0 6px var(--gold);
}
.stop.current .track { margin-top: 14px; }
.stop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 4px 0 30px; }
.stop.current .stop-body { padding-top: 8px; padding-bottom: 34px; }
.st-here { font-size: 14px; font-weight: 700; color: var(--gold); }
.st-title { font-size: 21px; font-weight: 800; line-height: 1.3; }
.stop.current .st-title { font-size: 24px; font-weight: 900; }
.st-state { font-size: 14px; font-weight: 700; color: var(--gold); }
.stop-song { display: flex; align-items: flex-end; gap: 14px; margin-top: 10px; color: var(--ink); text-decoration: none; }
.stop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.stop-text b { font-size: 16px; font-weight: 700; }
.stop-meta { font-size: 14px; color: var(--muted); }
.song-progress { font-size: 15px; font-weight: 700; }
.stop-song.making { color: var(--soft); }
.stop.future .node { width: 16px; height: 16px; margin-top: 6px; border-width: 3px; }
.stop.future .track { margin-top: 6px; }
.stop.future .stop-body { padding: 0 0 22px; }
.stop.future .st-title { font-size: 17px; font-weight: 400; color: var(--soft); }
.small-label { font-size: 13px; color: var(--muted); }

/* 涂了几块：一集一个小方块 */
.blocks { display: grid; grid-template-columns: repeat(3, 22px); gap: 6px; }
.blocks i { height: 22px; border: 2px solid var(--hollow); }
.blocks i.on { background: var(--gold); border-color: var(--gold); }

/* 涂色卡：一张图 + 每集一块遮罩，练过才显出来，练得越多越实 */
.card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--hollow); }
.card .ghost, .card .piece { position: absolute; inset: 0; background-size: 100% 100%; }
.card .ghost { opacity: 0.14; filter: grayscale(1); }
.card .piece {
  opacity: 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: opacity 0.9s ease;
}
.card .piece.pop { animation: pop 1.1s ease; }
@keyframes pop { 0% { filter: brightness(1.9); } 100% { filter: brightness(1); } }
.card.small { flex: none; width: 136px; }
.stop:not(.current) .card.small { width: 60px; }
.card.empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.3; }
.card-note { position: absolute; right: 8px; top: 8px; padding: 1px 8px; background: rgba(18, 21, 26, 0.8); font-size: 12px; color: var(--soft); }
.card.small .card-note { display: none; }

/* 曲子页 */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; }
.bar a { text-decoration: none; }
.bar span { font-size: 13px; color: var(--muted); text-align: right; }
.song-page h1 { font-size: 32px; line-height: 1.25; font-weight: 900; margin-top: 6px; }
.song-meta { font-size: 15px; color: var(--muted); }
/* 画铺满屏宽；没涂的块上标着集数，点数字到那一集 */
.stage { position: relative; margin: 16px -20px 0; }
.stage .card { border-left: 0; border-right: 0; }
.mark {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border-radius: 50%;
  background: rgba(18, 21, 26, 0.86); border: 2px solid var(--ink); color: var(--ink);
  font-size: 18px; font-weight: 800; cursor: pointer;
}
.mark.fresh {
  background: var(--gold); border: 3px solid var(--ground); color: var(--gold-ink);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 12px rgba(224, 178, 58, 0.28);
}
.stage-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px;
  background: rgba(18, 21, 26, 0.78); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px;
}
.card-cap { font-weight: 700; }
.stage-hint { color: var(--soft); text-align: right; }
.st-learn { margin-top: 14px; color: var(--soft); font-size: 15px; }
.st-learn b { color: var(--ink); }

/* 各集：一次只展开一集 */
.eps { list-style: none; padding: 0; margin-top: 8px; }
.ep { border-bottom: 1px solid var(--line); }
.ep:last-child { border-bottom: 0; }
.ep-row {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.ep-num {
  width: 32px; height: 32px; flex: none; border-radius: 50%; position: relative; overflow: hidden;
  border: 2px solid var(--hollow); color: var(--soft);
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.ep-num::before { content: ""; position: absolute; inset: 0; background: var(--gold); opacity: var(--lv, 0); }
.ep-num span { position: relative; }
.ep.has .ep-num { border-color: var(--gold); color: var(--gold-ink); }
.ep-title { flex: 1; min-width: 0; font-size: 17px; }
.ep-min { display: none; font-size: 14px; color: var(--muted); }
.ep-count { font-size: 15px; color: var(--muted); white-space: nowrap; }
.ep.has .ep-count { color: var(--gold); font-weight: 700; }
.ep-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 14px; }
.ep.open { margin: 12px -8px; padding: 10px 16px 0; background: var(--panel); border: 2px solid var(--gold); }
.ep.open .ep-row { min-height: 48px; cursor: default; }
.ep.open .ep-num { width: 36px; height: 36px; }
.ep.open .ep-title { font-size: 21px; font-weight: 900; line-height: 1.3; }
.ep.open .ep-min { display: inline; }
.ep.open + .ep { border-top: 0; }
.ep-about { color: var(--soft); }
.ep-about p + p { margin-top: 6px; }
.btn.done { min-height: 58px; font-size: 19px; font-weight: 900; }
.btn.done.ticked { background: var(--ink); border-color: var(--ink); }

/* 「正」字：一遍一笔，写满一个正字（五遍）这一块就涂满 */
.tally { display: inline-flex; gap: 3px; align-items: center; }
.tally svg { width: 22px; height: 22px; }
.tally .off { stroke: #3a414c; }
.tally .on { stroke: var(--gold); }
.tally .fresh { stroke: var(--ink); }
.ep.open .tally svg { width: 28px; height: 28px; }
.ep.open .ep-row { flex-wrap: wrap; }
.eps-hint { margin-top: 14px; font-size: 14px; color: var(--muted); }

.around { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 15px; }

/* 画滚出屏幕之后，右上角留一张小的，点「我练了一遍」时还看得见它在变 */
.floatcard { position: fixed; z-index: 9; right: 12px; top: 12px; width: 72px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6); }
.floatcard .card.small { width: 100%; border-color: var(--gold); }

/* 提醒注册：贴在屏幕底部，翻到哪都看得见 */
.nudge {
  position: fixed; z-index: 10; left: 12px; right: 12px; bottom: 12px; max-width: 456px; margin: 0 auto;
  padding: 14px 16px; border: 2px solid var(--gold); background: var(--panel);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.nudge p + p { margin-top: 10px; display: flex; align-items: center; gap: 16px; }

/* 投票 */
.vote { margin-top: 30px; padding: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.vote h2 { font-size: 17px; font-weight: 800; }
.vote p { color: var(--soft); font-size: 15px; }
.vote-bar { height: 8px; background: var(--line); }
.vote-bar i { display: block; height: 100%; background: var(--gold); }
.vote .btn { align-self: flex-start; }
.muted { color: var(--muted); font-size: 15px; }

/* 注册、登录这些表单页 */
.narrow { padding: 30px 0; }
.narrow h1 { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.narrow p { margin-top: 10px; }
.banner { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--hollow); background: var(--panel); }
.banner.ok { border-color: var(--gold); }
.banner.warn { border-color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; max-width: 420px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.stack label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.stack .btn { align-self: flex-start; }
input[type=email], input[type=password], input[type=text], textarea, select {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--hollow); border-radius: 0;
  background: var(--panel); color: var(--ink); font: inherit; line-height: 1.6;
}
textarea, select, .stack input[type=text], .stack input[type=email], .stack input[type=password] { width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.small { font-size: 14px; }
.prose p { margin-top: 12px; }

/* 后台 */
body.admin .wrap { max-width: 760px; }
.adm { padding: 20px 0; }
.adm h1 { font-size: 26px; font-weight: 900; }
.adm h2 { font-size: 20px; margin-top: 30px; }
.adm > p { margin-top: 8px; }
.back { margin-top: 12px; font-size: 15px; }
.stack.wide { max-width: 560px; }
.a-station { margin-top: 14px; padding: 14px; border: 1px solid var(--hollow); background: var(--panel); }
.a-station.future { padding: 10px 14px; opacity: 0.85; }
.a-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.a-head a.edit { padding: 2px 10px; border: 1px solid var(--gold); color: var(--gold); font-size: 14px; text-decoration: none; }
.st-n { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 13px; font-weight: 700; }
.ep-n { font-weight: 700; }
.a-song { margin-top: 12px; padding: 12px 0 0 12px; border-top: 1px solid var(--line); border-left: 3px solid var(--line); }
.a-ep { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--hollow); background: var(--ground); }
.a-ep.hid { border-style: dashed; }
.pill { padding: 0 8px; border-radius: 999px; font-size: 13px; border: 1px solid var(--hollow); }
.pill.on { border-color: var(--gold); color: var(--gold); }
.pill.off { color: var(--muted); }
.flag { color: var(--gold); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quick input[type=text] { flex: 1 1 240px; }
.mover { display: inline-flex; gap: 4px; }
.mini { min-width: 30px; min-height: 28px; border: 1px solid var(--hollow); background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.add { display: inline-block; margin-top: 10px; font-size: 15px; color: var(--gold); }
.danger { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.foot { margin-top: 40px; padding: 18px 0 30px; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .card .piece { transition: none; }
  .card .piece.pop { animation: none; }
}

/* 还在做的曲子：画先灰着挂出来当预告 */
.stop-song.making .card .ghost { opacity: 0.45; }
