/* =========================================================
   系列档案 · Series Archive
   纸感/档案柜气质：暖白纸底 + 墨色字 + 印章红强调
   ========================================================= */

:root {
  --paper: #e8ece6;
  --paper-2: #dde3db;
  --surface: #f6f8f3;
  --ink: #14170f;
  --ink-2: #3b4238;
  --muted: #626a5e;
  --line: #ccd4c9;
  --line-2: #aeb9ab;
  --accent: #a8321a;
  --accent-2: #8a2712;
  --accent-soft: #f0ddd3;
  --ok: #2f6247;

  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 rgba(25, 23, 18, .04), 0 12px 30px -24px rgba(25, 23, 18, .45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0e0c;
    --paper-2: #121410;
    --surface: #171a15;
    --ink: #f1ece0;
    --ink-2: #cfc9ba;
    --muted: #918b7c;
    --line: #2b2f27;
    --line-2: #3d423a;
    --accent: #e2684a;
    --accent-2: #f0836a;
    --accent-soft: #2a1c16;
    --ok: #7fb894;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 18px 40px -30px rgba(0, 0, 0, .9);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  text-wrap: pretty;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

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

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------- 顶部 */
.masthead {
  padding-block: clamp(28px, 6vw, 64px) 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: .02em;
}

.masthead h1 small {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 2.6vw, 12px);
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
}

.source-line {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

.lede {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 14px;
}

.lede b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

/* --------------------------------------------------- 控制条 */
.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 12px;
  width: 16px; height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 38px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 15px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.search input::placeholder { color: var(--muted); }

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.search .clear {
  position: absolute;
  right: 6px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s var(--ease), color .15s var(--ease);
}

.search.has-value .clear { opacity: 1; pointer-events: auto; }
.search .clear:hover { color: var(--ink); }

.sortbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .04em;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.sortbtn:hover { border-color: var(--ink-2); }

.sortbtn .dir {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
}

/* --------------------------------------------------- 结果计数 */
.resultbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.resultbar b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

mark {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 2px;
  padding: 0 .1em;
}

/* --------------------------------------------------- 系列列表 */
.series-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.series-list li { border-bottom: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 92px;
  align-items: center;
  gap: clamp(10px, 2.5vw, 22px);
  padding: clamp(12px, 2.2vw, 16px) 8px clamp(12px, 2.2vw, 16px) 0;
  transition: background .16s var(--ease), padding-left .16s var(--ease);
}

.row:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }

.row .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  transition: color .16s var(--ease);
}

.row:hover .idx { color: var(--accent); }

.row .names { min-width: 0; }

.row .zh {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 3.6vw, 19px);
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.row .jp {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.row .num b {
  display: block;
  font-size: clamp(15px, 3.4vw, 18px);
  font-weight: 500;
  letter-spacing: -.01em;
}

.row .num span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}

.row .ratio {
  display: block;
  height: 2px;
  margin: 7px 0 0 auto;
  width: min(78px, 100%);
  background: var(--line);
  overflow: hidden;
  border-radius: 1px;
}

.row .ratio i {
  display: block;
  height: 100%;
  background: var(--accent);
  opacity: .6;
  transition: width .3s var(--ease);
}

/* --------------------------------------------------- 空状态 */
.empty {
  padding: 64px 0 88px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty button {
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: var(--r);
  cursor: pointer;
}

/* --------------------------------------------------- 更多 */
.more {
  display: flex;
  justify-content: center;
  padding-block: 8px 64px;
}

.more button {
  min-width: 200px;
  height: 46px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: var(--r);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}

.more button:hover { border-color: var(--ink); background: var(--surface); }

/* --------------------------------------------------- 页脚 */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 22px 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.foot a:hover { color: var(--ink); }

/* --------------------------------------------------- 二级页 */
.pagebar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  flex: 0 0 auto;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.back:hover { border-color: var(--accent); color: var(--accent); }

.pagebar .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-head { padding-block: clamp(24px, 5vw, 44px) clamp(18px, 3vw, 26px); }

.series-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 6.4vw, 46px);
  line-height: 1.12;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.series-head .sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.series-head .stat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

.series-head .stat b {
  display: block;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

/* 影片网格：手机两列 */
.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2.4vw, 20px);
  padding-block: 18px 30px;
  list-style: none;
  margin: 0;
}

@media (min-width: 620px) { .film-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .film-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .film-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.card .shot {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease), filter .3s var(--ease);
}

.card:hover .shot img { transform: scale(1.035); }

.card .tag {
  position: absolute;
  left: 0; bottom: 0;
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--paper);
}

.card .tag.play { background: color-mix(in srgb, var(--accent) 90%, transparent); color: #fff; }

.card .code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent);
}

.card .name {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------- 三级页 */
.film-page { padding-bottom: 60px; }

.player-shell {
  margin-top: clamp(16px, 3vw, 26px);
  width: min(100%, 980px);
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08090a;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #08090a;
}

.player .poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) brightness(.5);
  transition: opacity .35s var(--ease);
}

.player.is-live .poster { opacity: 0; pointer-events: none; }

.player .veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 45%, rgba(8, 9, 10, .78), rgba(8, 9, 10, .94));
  transition: opacity .25s var(--ease);
}

.player.is-live .veil { opacity: 0; pointer-events: none; }

.veil .status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.veil .play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.veil .play:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.veil .play:active { transform: scale(.98); }
.veil .play[disabled] { opacity: .45; cursor: not-allowed; }
.veil .play[disabled]:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

.veil .hint {
  margin: 0;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
}

.source-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 14px 15px;
  border: 1px solid #1e231e;
  border-radius: var(--r);
  background: #141714;
}

.source-panel .line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.source-panel .line b { color: rgba(255, 255, 255, .82); font-weight: 500; letter-spacing: .04em; }
.source-panel .line b.warn { color: #e8a44a; }

.srcform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.srcform input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  background: #141714;
  border: 1px solid #262b26;
  border-radius: 3px;
  color: #eceade;
  font-family: var(--font-mono);
  font-size: 12px;
}

.srcform input::placeholder { color: #838b82; }
.srcform input:focus { outline: none; border-color: var(--accent); }

.srcform button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #262b26;
  border-radius: 3px;
  background: #1b201b;
  color: #eceade;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.srcform button:hover { background: #242a23; border-color: #3a4239; }

.srcacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srcacts button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #2c332c;
  border-radius: 3px;
  background: #1a1f1a;
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.srcacts button:hover:not(:disabled) { background: #242b23; border-color: #3d463c; color: #fff; }
.srcacts button:disabled { opacity: .5; cursor: progress; }

.srcnote {
  margin: 0;
  padding: 2px 0 2px 10px;
  border-left: 2px solid #3a4239;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
  overflow-wrap: anywhere;
}

.srcnote code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f0b46a;
  overflow-wrap: anywhere;
}

.outlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.outlinks a {
  padding: 4px 9px;
  border: 1px solid #262b26;
  border-radius: 3px;
  color: rgba(255, 255, 255, .62);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.outlinks a:hover { color: #eceade; border-color: #3a4239; }
.outlinks span { color: rgba(255, 255, 255, .58); }

.film-head { padding-block: clamp(18px, 3.4vw, 30px) 6px; }

.film-head .code-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}

.film-head .code-line .pill {
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  color: var(--accent);
  letter-spacing: .1em;
}

.film-head h1 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 4.4vw, 30px);
  line-height: 1.34;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(18px, 3vw, 26px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.meta div {
  padding: 12px 14px;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.meta div.wide { grid-column: 1 / -1; }

@media (min-width: 720px) {
  .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meta div.wide { grid-column: auto; }
}

.stills-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(30px, 5vw, 46px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.stills-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 3.6vw, 22px);
  font-weight: 600;
}

.stills-head span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}

.stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-block: 16px 0;
}

@media (min-width: 700px) { .stills { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1000px) { .stills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stills button {
  padding: 0;
  border: 0;
  background-color: var(--paper-2);
  background-image: var(--ph, none);
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 3px;
}

.stills img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.stills img.is-loaded { opacity: 1; }

.stills button:hover img { transform: scale(1.04); }

.skeleton {
  background: linear-gradient(100deg, var(--paper-2) 30%, var(--surface) 50%, var(--paper-2) 70%);
  background-size: 220% 100%;
  animation: sheen 1.3s linear infinite;
}

@keyframes sheen { to { background-position: -120% 0; } }

/* --------------------------------------------------- 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 16px;
  background: #060706;
  animation: fade .18s var(--ease);
}

.lightbox[open] { display: grid; }

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 3px;
}

.lightbox .close,
.lightbox .nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(20, 22, 20, .8);
  color: #fff;
  cursor: pointer;
  transition: background .18s var(--ease);
}

.lightbox .close:hover,
.lightbox .nav:hover { background: rgba(60, 64, 58, .9); }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .nav.next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox .cap {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .6);
}

@keyframes fade { from { opacity: 0; } }

/* --------------------------------------------------- 状态行 */
.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  font-size: 12.5px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.notice b { color: var(--ink); }

.loading-line {
  padding-block: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 420px) {
  .row { grid-template-columns: 32px minmax(0, 1fr) 70px; }
  .row .num span:not(.ratio) { display: none; }
  .row .ratio { margin-top: 5px; }
}
