/* ==========================================================================
   Voicebank library UI — neutral black/white + small accent
   All colors live in :root below.
   ========================================================================== */

:root {
  --bg: #fcfcfb;
  --bg-soft: #f5f5f5;
  --bg-tint: #eeeeee;
  --line: #e6e6e6;
  --line-2: #cfcfcf;
  --ink: #171717;
  --ink-2: #5a5a5a;
  --ink-3: #949494;
  --cyan: #0e8f88;
  --cyan-ink: #f4f4f4;
  --accent: #171717;
  --accent-ink: #fdfdfd;
  --radius: 2px;
  --max: 1080px;

  --f-sans: "Noto Sans SC", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI",
    "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --f-serif: "Noto Serif SC", "Noto Serif JP", "Source Han Serif SC", "Songti SC",
    "Yu Mincho", "Hiragino Mincho ProN", "SimSun", serif;
  --f-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;

  /* fixed typography: serif display, sans body */
  --f-display: var(--f-serif);
  --f-body: var(--f-sans);
}

html[data-theme="dark"] {
  --bg: #151515;
  --bg-soft: #262626;
  --bg-tint: #2c2c2c;
  --line: #343434;
  --line-2: #454545;
  --ink: #e6e6e6;
  --ink-2: #adadad;
  --ink-3: #888888;
  --cyan: #79c9c2;
  --cyan-ink: #1f1f1f;
  --accent: #e3e3e3;
  --accent-ink: #232323;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* dark hero + light paper panel */
.sheet {
  --bg: #fdfdfd;
  --bg-soft: #f5f5f5;
  --bg-tint: #ebebeb;
  --line: #e3e3e3;
  --line-2: #cfcfcf;
  --ink: #171717;
  --ink-2: #5a5a5a;
  --ink-3: #939393;
  --cyan: #0e8f88;
  --accent: #171717;
  --accent-ink: #fdfdfd;

  background: #e8e8e8;
  color: var(--ink);
  margin: 0 calc(50% - 50vw);
  padding: 52px calc(50vw - 50% + 28px) 72px;
}

html[data-theme="light"] .sheet {
  background: #ebebeb;
  --line: #e4e4e4;
  --line-2: #d0d0d0;
}

.sheet .empty { background: transparent; }
.sheet .btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

::selection { background: color-mix(in srgb, var(--cyan) 28%, transparent); }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
}
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 1.5px solid var(--cyan);
  outline-offset: 3px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 12px; z-index: 99;
  background: var(--bg); border: 1px solid var(--line-2);
  padding: 6px 12px; border-radius: var(--radius); font-size: 13px;
}

/* ------------------------------------------------------------------ 顶栁E*/

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }

.brand-mark {
  width: 8px; height: 8px; flex: none;
  background: var(--cyan);
  border-radius: 0;
  transform: rotate(45deg);
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-family: var(--f-display);
  font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.brand-sub {
  font-family: var(--f-mono);
  font-size: 8px; letter-spacing: .2em;
  color: var(--ink-3); white-space: nowrap; line-height: 1.5;
}

.nav {
  display: flex; align-items: center; gap: 24px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 4px 0 5px;
  transition: color .15s;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }

.tools { display: flex; align-items: center; gap: 10px; }

.seg { display: inline-flex; gap: 7px; font-family: var(--f-mono); }

.seg button {
  appearance: none; border: 0; background: transparent; padding: 2px 0;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.seg button:hover { color: var(--ink-2); }
.seg button[aria-pressed="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.icon-btn {
  width: 27px; height: 27px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }

/* ------------------------------------------------------------------ 主佁E*/

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 100px;
  min-height: 60vh;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

body[data-page="home"] .nav { display: none; }

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-mark {
  display: flex; justify-content: center;
  color: var(--ink-3);
  margin-bottom: 30px;
}
.hero-mark svg { width: 62px; height: 62px; }

.hero-title {
  margin: 0;
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 500;
  letter-spacing: .3em;
  text-indent: .3em;
  line-height: 1.55;
}
.hero-title.is-empty { color: var(--ink-3); }
.hero-title .dash {
  color: var(--ink-3);
  letter-spacing: 0;
  margin: 0 .55em;
  font-weight: 400;
}

.hero-sub {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--ink-3);
}

.hero-tagline {
  margin: 22px auto 0;
  max-width: 42ch;
  font-family: var(--f-display);
  font-size: 14.5px;
  letter-spacing: .05em;
  color: var(--ink-2);
  line-height: 2;
}

.hero-intro {
  margin: 16px auto 0;
  max-width: 50ch;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 2.1;
}

.hero-note {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
  line-height: 1.9;
}

.hero-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 34px;
  margin: 46px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-nav a {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .26em;
  text-indent: .26em;
  color: var(--ink-2);
  transition: color .15s;
}
.hero-nav a:hover,
.hero-nav a.is-active { color: var(--cyan); }

.hero-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 38px;
  margin-top: 38px;
}
.hero-meta span {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.hero-meta b {
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-2);
  text-transform: none;
}

.notice {
  display: flex; gap: 10px;
  padding: 14px 16px;
  margin: 0 0 36px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.85;
}
.notice svg { flex: none; margin-top: 3px; color: var(--cyan); }

/* ---------------------------------------------------------------- 工具条 */

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 24px 0 16px;
  border-top: 1px solid var(--line);
}

.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 300px;
}
.search svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  font-family: var(--f-body); font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  appearance: none;
  font-family: var(--f-body); font-size: 11.5px;
  letter-spacing: .02em;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: var(--cyan); border-color: var(--cyan); }

.result-line {
  display: flex; align-items: baseline; gap: 5px;
  padding: 8px 0 22px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.result-line b { color: var(--cyan); font-weight: 500; }

/* ------------------------------------------------------------------ 卡牁E*/

.grid {
  display: grid;
  gap: 34px 24px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

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

.avatar {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: var(--bg-tint);
  overflow: hidden;
  transition: border-color .2s ease;
}
.card:hover .avatar { border-color: var(--cyan); }
.avatar img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter .3s ease, transform .3s ease;
}
.card:hover .avatar img { filter: grayscale(0); transform: scale(1.015); }

.avatar.is-empty { display: grid; place-items: center; }

.ph {
  position: absolute; inset: 8px;
  border: 1px dashed var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
}

.card-body {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 0 0;
  flex: 1;
}

.card-num {
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: .2em; font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
}

.card-name {
  font-family: var(--f-display);
  font-size: 17px; font-weight: 500; letter-spacing: .02em;
  margin-top: 1px;
}
.card-name.is-empty { color: var(--ink-3); }

.card-reading {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .06em;
  min-height: 1em;
}

.card-tagline {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}
.is-muted { color: var(--ink-3); }

.card-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin-top: auto;
  padding-top: 10px;
}

.tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}

.count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 声库块 */

.bank {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
}
.stack > .bank:first-child { border-top: 0; padding-top: 2px; }

.bank-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }

.bank-id {
  font-family: var(--f-mono);
  font-size: 9px; font-weight: 500; letter-spacing: .2em;
  color: var(--ink-3);
}

.bank-name {
  font-family: var(--f-display);
  font-size: 15px; font-weight: 500; letter-spacing: .03em;
}
.bank-name.is-empty { color: var(--ink-3); }

/* 下载 / 規紁E衁E*/
.act-list { display: flex; flex-direction: column; }

.act {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  letter-spacing: .03em;
  color: var(--ink);
  transition: color .15s, padding-left .15s;
}
.act svg { flex: none; color: var(--ink); transition: color .15s; }
.act:hover { color: var(--cyan); padding-left: 7px; }
.act:hover svg { color: var(--cyan); }

.act-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.act:hover .act-sub { color: var(--ink-2); }

.act-note {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.act.is-disabled { color: var(--ink-3); pointer-events: none; }
.act.is-disabled svg { color: var(--ink-3); }

/* 本家链接行：右侧两枚小按钮 */
.act-honke { cursor: default; }
.act-honke:hover { padding-left: 2px; color: var(--ink); }
.act-honke > svg { color: var(--ink); }

.link-pills {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-pill {
  font-size: 11px;
  line-height: 1;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--ink-2);
  transition: color .15s, border-color .15s;
}
.link-pill:hover { color: var(--cyan); border-color: var(--cyan); }
.link-pills .act-note { margin-left: 0; }

.honke-by {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .04em;
}

.act-more { border-bottom: 1px solid var(--line); }

.act-more > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px 12px 32px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.act-more > summary::-webkit-details-marker { display: none; }
.act-more > summary::after {
  content: "▼";
  font-size: 7px;
  color: var(--ink-3);
  transition: transform .2s ease;
}
.act-more[open] > summary::after { transform: rotate(180deg); }
.act-more > summary:hover { color: var(--ink); }

/* 试听行：和 Download 同一套行样式 */
.act-more.act-demo > summary {
  padding: 13px 2px;
  gap: 13px;
  font-size: 15px;
  color: var(--ink);
  transition: color .15s, padding-left .15s;
}
.act-more.act-demo > summary svg { color: var(--ink); }
.act-more.act-demo > summary:hover { color: var(--cyan); padding-left: 7px; }
.act-more.act-demo > summary:hover svg { color: var(--cyan); }
.act-more.act-demo[open] > summary,
.act-more.act-demo[open] > summary svg { color: var(--cyan); }

.act-body {
  display: flex; flex-direction: column; gap: 14px;
  padding: 8px 0 24px 32px;
}
.act-body .bank-row { border-top: 0; padding-top: 0; }
.act-body .bank-label { min-width: 42px; }

.mat-desc {
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--ink-2);
  margin-top: -4px;
  max-width: 62ch;
}

.mat-thumb {
  max-width: 360px;
  margin: 4px 0 6px;
  border: 1px solid var(--line);
  background: var(--bg-tint);
}
.mat-thumb img { display: block; width: 100%; height: auto; }

.contact-line { margin: 10px 0 34px; }
.contact-line a {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: .02em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: color .15s, border-color .15s;
}
.contact-line a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ------------------------------------------------------------------ 试听 */

.audio-list { display: flex; flex-direction: column; }
.audio-list > .bank-label { margin-bottom: 2px; }

.audio-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}
.audio-row:last-child { border-bottom: 0; }

.audio-row .play {
  flex: none;
  width: 24px; height: 24px;
  padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.audio-row .play:hover { color: var(--cyan); border-color: var(--cyan); }

.audio-row .ic-pause { display: none; }
.audio-row.is-playing .ic-pause { display: block; }
.audio-row.is-playing .ic-play { display: none; }
.audio-row.is-playing .play { color: var(--cyan); border-color: var(--cyan); }

.audio-title {
  flex: none;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-row.is-playing .audio-title { color: var(--cyan); }

.audio-bar {
  position: relative;
  flex: 1;
  min-width: 40px;
  height: 2px;
  background: var(--line);
  cursor: pointer;
}
.audio-bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--ink);
  transition: width .1s linear;
}
.audio-row.is-playing .audio-bar i { background: var(--cyan); }

.audio-time {
  flex: none;
  min-width: 42px;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.audio-row.is-link .play { pointer-events: none; }
.audio-row.is-link:hover { color: var(--cyan); }
.audio-row.is-empty { opacity: .45; pointer-events: none; }

.bank-char { font-size: 11.5px; color: var(--ink-3); }
.bank-char:hover { color: var(--cyan); }

.bank-ver {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-3);
  padding: 1px 7px;
  border: 1px solid var(--line);
}

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 16px 20px;
}
.spec > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.spec dt {
  font-family: var(--f-mono);
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.spec dd { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.spec dd a { border-bottom: 1px solid var(--line-2); }
.spec dd a:hover { border-bottom-color: var(--cyan); color: var(--cyan); }

.bank-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.bank-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bank-label {
  font-family: var(--f-mono);
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  min-width: 50px;
}

/* ------------------------------------------------------------------ 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  padding: 0 18px;
}
.btn-primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-ink);
}

.btn-ghost {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-color: var(--line);
  color: var(--ink-2);
  background: transparent;
}
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: .4;
  pointer-events: none;
  cursor: default;
}

.pw {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono);
  font-size: 10.5px; color: var(--ink-3);
}
.pw code {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--ink);
  letter-spacing: .04em;
}
.pw button {
  appearance: none; border: 0; background: transparent;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--cyan);
  cursor: pointer;
  padding: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
}

.note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
  padding: 12px 14px;
  background: var(--bg-soft);
  border-left: 2px solid var(--line-2);
}

.bank-terms {
  font-size: 12px;
  line-height: 1.95;
  color: var(--ink-2);
  border-left: 1px solid var(--line-2);
  padding-left: 14px;
}
.bank-terms strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 6px;
}

/* -------------------------------------------------------------- 空 / 提示 */

.empty {
  border: 1px dashed var(--line-2);
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.9;
}
.empty svg { margin: 0 auto 10px; opacity: .45; }
.empty code { font-family: var(--f-mono); font-size: 11px; color: var(--cyan); }

.hint-line { font-size: 11.5px; color: var(--ink-3); }

/* -------------------------------------------------------------- 角色页 */

.back {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin: 36px 0 28px;
  transition: color .15s;
}
.back:hover { color: var(--cyan); }

.profile {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.profile .avatar { aspect-ratio: 3 / 4; border: 1px solid var(--line); }

.profile-name {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: .02em;
  margin: 12px 0 0;
  line-height: 1.2;
}
.profile-name.is-empty { color: var(--ink-3); }

.profile-reading {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-top: 10px;
  min-height: 1em;
}

.profile-tagline {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 2;
  max-width: 60ch;
}
.profile-tagline.is-empty { color: var(--ink-3); }

.profile-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 20px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.profile-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.profile-links a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.section { padding: 48px 0 0; counter-increment: sec; }

.section-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.section-head h2::before {
  content: counter(sec, decimal-leading-zero);
  color: var(--cyan);
  margin-right: 10px;
  letter-spacing: .1em;
}
.section-head span { font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-3); }

.profile-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 30px;
}
.profile-dl > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.profile-dl dt { font-size: 11.5px; color: var(--ink-3); }
.profile-dl dd { font-size: 13.5px; color: var(--ink); }

.stack { display: flex; flex-direction: column; gap: 14px; }

.about-body { max-width: 60ch; }
.about-body p {
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-empty { font-size: 13px; color: var(--ink-3); line-height: 1.9; }

.info-dl { display: flex; flex-direction: column; }
.info-dl > div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-dl > div:first-child { padding-top: 0; }
.info-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-dl dt { font-size: 11.5px; color: var(--ink-3); }
.info-dl dd { font-size: 13.5px; color: var(--ink); line-height: 1.85; }

/* --------------------------------------------------------------- 折叠坁E*/

.fold {
  counter-increment: sec;
  border-top: 1px solid var(--line);
}
.fold:last-child { border-bottom: 1px solid var(--line); }

.fold > summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fold > summary::-webkit-details-marker { display: none; }

.fold > summary::before {
  content: "▼";
  display: inline-block;
  font-size: 7.5px;
  line-height: 1;
  color: var(--cyan);
  transform: rotate(-90deg);
  transition: transform .2s ease;
  position: relative;
  top: -2px;
}
.fold[open] > summary::before { transform: rotate(0deg); }
.fold > summary:hover .fold-label { color: var(--ink); }

.fold-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .15s;
}
.fold-label::before {
  content: counter(sec, decimal-leading-zero);
  color: var(--cyan);
  margin-right: 10px;
  letter-spacing: .1em;
}

.fold-count {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--ink-3);
}

.fold-body { padding: 6px 0 36px; }
.fold-body > .stack { gap: 14px; }

.fold-more { margin-top: 16px; text-align: right; }

.link-list li { border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 2px;
  transition: padding-left .2s ease;
}
.link-list a:hover { padding-left: 8px; }
.link-label {
  font-family: var(--f-display);
  font-size: 13.5px;
  letter-spacing: .04em;
}
.link-url {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 46%;
}

.prose p { margin-top: 4px; }

/* ---------------------------------------------------------- UST 配币E*/

.ust-orig {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-top: -6px;
}
.ust-orig span {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-right: 8px;
}

.more {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
  transition: color .15s;
}
.more:hover { color: var(--cyan); }

.mini-list { display: flex; flex-direction: column; }

.mini {
  display: flex; align-items: center; gap: 18px;
  padding: 15px 2px;
  border-top: 1px solid var(--line);
  transition: padding-left .2s ease, border-color .2s ease;
}
.mini:last-child { border-bottom: 1px solid var(--line); }
.mini:hover { padding-left: 8px; }

.mini-id {
  font-family: var(--f-mono);
  font-size: 9px; font-weight: 500; letter-spacing: .18em;
  color: var(--cyan);
  white-space: nowrap;
}

.mini-title {
  font-family: var(--f-display);
  font-size: 14.5px;
  letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mini-sub {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 40%;
}

.mini-go { display: flex; flex: none; color: var(--ink-3); }
.mini:hover .mini-go { color: var(--cyan); }

/* ---------------------------------------------------------------- 页面 */

.page-head { padding: 76px 0 36px; }
.page-head h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: 14px;
}
.page-head p {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--ink-2);
  line-height: 2;
  font-size: 13.5px;
}

/* 排序条 */
.sort-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 0 0 22px;
}
.sort-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.sort-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 9px;
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.sort-btn:hover { color: var(--ink); border-color: var(--line-2); }
.sort-btn.is-active { color: var(--cyan); border-color: var(--cyan); }

.terms-item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
.terms-item .num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan);
  padding-top: 4px;
  letter-spacing: .06em;
}
.terms-item h2 { font-size: 14.5px; font-weight: 500; margin-bottom: 9px; }
.terms-item p {
  font-size: 13px;
  line-height: 2.1;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.terms-item p.is-empty { color: var(--ink-3); }

.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--cyan);
  padding-top: 4px;
}
.steps h2 { font-size: 14.5px; font-weight: 500; margin-bottom: 9px; }
.steps p {
  font-size: 13px;
  line-height: 2.1;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.steps p.is-empty { color: var(--ink-3); }

.timeline li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.timeline .date {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  padding-top: 3px;
}
.timeline .text { font-size: 13px; color: var(--ink-2); line-height: 1.95; }

/* ---------------------------------------------------------------- 页脁E*/

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 28px 44px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.footer-inner .sep { opacity: .4; }
.footer-links { display: flex; gap: 16px; margin-left: auto; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--cyan); }

.noscript { padding: 40px; text-align: center; color: var(--ink-2); }

/* -------------------------------------------------------------- 响应弁E*/

/* ------------------------------------------------------- banks page (2 cols) */

.banks {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: start;
  margin: 0 calc(50% - 50vw);
  min-height: calc(100vh - 62px);
}

.banks-side {
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  background: #1c1c1c;
  color: #b2b2b2;
  padding: 38px 24px 48px;
}

.side-title {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #757575;
  margin-bottom: 22px;
}

.side-list { display: flex; flex-direction: column; }

.side-item {
  appearance: none;
  display: flex; align-items: baseline; gap: 8px;
  width: 100%;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-top: 1px solid #2e2e2e;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: .04em;
  color: #aeaeae;
  text-align: left;
  cursor: pointer;
  transition: color .15s, padding-left .15s;
}
.side-item:last-child { border-bottom: 1px solid #2e2e2e; }
.side-item:hover { color: #f1f1f1; padding-left: 6px; }
.side-item.is-active { color: var(--cyan); }
.side-item.is-active .side-count { color: var(--cyan); }

.side-name {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-count { font-family: var(--f-mono); font-size: 9.5px; color: #6d6d6d; }

.banks-main {
  --bg: #f2f2f2;
  --bg-soft: #e7e7e7;
  --bg-tint: #e3e3e3;
  --line: #dadada;
  --line-2: #c5c5c5;
  --ink: #1b1b1b;
  --ink-2: #555555;
  --ink-3: #8b8b8b;
  --cyan: #0e8f88;
  --accent: #1b1b1b;
  --accent-ink: #f2f2f2;

  background: #ebebeb;
  color: var(--ink);
  padding: 28px 72px 72px 72px;
  min-height: calc(100vh - 62px);
}

.char-block {
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 76px;
}
.char-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* 立绘 + 文字 两栏 */
.cb-grid {
  display: grid;
  grid-template-columns: minmax(230px, 470px) minmax(300px, 1fr);
  gap: 44px;
  align-items: start;
  max-width: 1120px;
  margin: 0;
}

/* UST 页：每条一首，用细线分隔 */
.ust-wrap {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 76px;
}
.ust-wrap:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.ust-date {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.banks-main .page-head { padding: 0 0 28px; }

/* UST 页：内容和音源页一样居中、限宽 */
.ust-main .page-head,
.ust-main .sort-row,
.ust-main .stack,
.ust-main > .empty {
  max-width: 960px;
  margin-left: 0;
  margin-right: auto;
}
.cb-figure { position: static; }

.cb-stand {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: transparent;
  border: 0;
}
.cb-stand img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 左右切换箭头 */
.stand-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  padding: 0 0 2px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.stand-nav.prev { left: -8px; }
.stand-nav.next { right: -8px; }
.stand-nav:hover { color: var(--cyan); border-color: var(--cyan); }

.cb-stand.is-empty {
  aspect-ratio: auto;
  width: 100%;
  height: 260px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
}

/* 立绘切换缩略图 */
.stand-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.stand-thumb {
  width: 52px; height: 52px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--bg-soft);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}
.stand-thumb img { width: 100%; height: 100%; object-fit: contain; }
.stand-thumb:hover { border-color: var(--ink-3); }
.stand-thumb.is-active { border-color: var(--cyan); }

.cb-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cb-title .cb-name { margin-top: 0; }

.cb-num {
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: .22em;
  color: var(--cyan);
}
.cb-name {
  font-family: var(--f-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: .02em;
  margin: 9px 0 0;
}

.cb-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cb-link {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .15s;
}
.cb-link:hover { color: var(--cyan); }
.cb-reading {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .1em;
  color: var(--ink-3);
  margin-top: 7px;
}

.cb-block { margin-top: 30px; }
.cb-label {
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.cb-desc { font-size: 13.5px; line-height: 2.05; color: var(--ink-2); max-width: 62ch; }
.cb-desc + .cb-desc { margin-top: 8px; }
.cb-empty { font-size: 12px; color: var(--ink-3); }
.cb-sublabel {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin: 14px 0 2px;
}
.banks-main .profile-dl { margin-top: 18px; }
.banks-main .profile-dl > div:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ audio */

h1, h2, h3, .hero-title, .page-head h1, .profile-name { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

body { letter-spacing: .012em; }
.hero-intro, .profile-tagline, .about-body p, .page-head p, .mat-desc { letter-spacing: .015em; }

.page-head .eyebrow::before,
.profile .eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--cyan);
  vertical-align: middle;
  margin-right: 10px;
  opacity: .9;
}

.hero-nav a { position: relative; }
.hero-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.hero-nav a:hover::after,
.hero-nav a.is-active::after { transform: scaleX(1); }

.card:hover .card-name,
.mini:hover .mini-title,
.link-list a:hover .link-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.act svg { transition: transform .16s ease, color .16s ease; }
.act:hover svg { transform: translateY(1px); }
.card:active, .btn:active, .mini:active { transform: translateY(1px); }

.card:focus-visible,
.mini:focus-visible,
.act:focus-visible,
.link-list a:focus-visible {
  outline: 1.5px solid var(--cyan);
  outline-offset: 4px;
}

.empty svg { opacity: .35; }

.sheet { border-top: 1px solid rgba(0, 0, 0, .07); }
html[data-theme="dark"] .sheet { border-top: 0; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

/* 暗色模式：纸面也一起变暗，和亮色模式明显区分 */
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .banks-main {
  --bg: #1c1c1c;
  --bg-soft: #171717;
  --bg-tint: #242424;
  --line: #303030;
  --line-2: #404040;
  --ink: #e6e6e6;
  --ink-2: #b2b2b2;
  --ink-3: #7e7e7e;
  --cyan: #6fd3c8;
  --accent: #e6e6e6;
  --accent-ink: #141414;
  background: #151515;
  color: var(--ink);
}

/* 切换语言：只让文字本身淡出→换字→淡入，图片和色块不动 */
#app :is(h1, h2, h3, h4, p, span, a, dt, dd, li, button),
.footer :is(span, a) {
  transition: opacity .16s ease;
}
html.lang-switch #app :is(h1, h2, h3, h4, p, span, a, dt, dd, li, button),
html.lang-switch .footer :is(span, a) {
  opacity: 0;
}

/* 主题切换：只有颜色渐变，不移动任何元素 */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .32s ease, color .32s ease,
              border-color .32s ease, fill .32s ease, stroke .32s ease,
              box-shadow .32s ease !important;
}

/* 亮色模式：深色首屏 + 浅色纸面 */
html[data-theme="light"] .topbar,
html[data-theme="light"] .hero {
  --bg: #242424;
  --bg-soft: #2a2a2a;
  --bg-tint: #2f2f2f;
  --line: #3a3a3a;
  --line-2: #4a4a4a;
  --ink: #ededed;
  --ink-2: #b5b5b5;
  --ink-3: #808080;
  --cyan: #6fd3c8;
  background: #242424;
  color: var(--ink);
}

html[data-theme="light"] .topbar { border-bottom-color: #3a3a3a; }

html[data-theme="light"] .hero {
  margin: 0 calc(50% - 50vw);
  padding: 96px calc(50vw - 50% + 28px) 72px;
}

/* ------------------------------------------------------------ 排版比例 */
/* 名字放大、行距拉开、Download 行加粗，让主体先被看到 */

body { line-height: 1.8; }

.cb-grid { grid-template-columns: 440px minmax(0, 1fr); gap: 40px; }

.cb-num { font-size: 9.5px; letter-spacing: .24em; }
.cb-name {
  font-size: clamp(23px, 2.6vw, 31px);
  letter-spacing: .015em;
  line-height: 1.25;
}
.cb-reading { font-size: 11px; letter-spacing: .1em; margin-top: 8px; color: var(--ink-2); }

/* 停止配布 标记 */
.cb-status {
  display: inline-block;
  margin-left: 12px;
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--ink-3);
  vertical-align: middle;
  white-space: nowrap;
}
.cb-head { gap: 16px; }
.cb-avatar { width: 60px; height: 60px; }

.cb-block { margin-top: 28px; }
.cb-label { font-size: 9px; letter-spacing: .24em; margin-bottom: 11px; }
.cb-desc { font-size: 14px; line-height: 1.95; }
.cb-sublabel { font-size: 10px; letter-spacing: .08em; }

.side-title { font-size: 9.5px; }
.side-item { font-size: 14.5px; padding: 13px 2px; }
.side-item.is-active { font-weight: 500; }

.act { font-size: 15.5px; gap: 14px; padding: 11px 2px; }
.act-sub { font-size: 13px; }
.act-note { font-size: 11px; }
.act-more > summary { font-size: 13px; }
.act-body { padding-top: 8px; padding-bottom: 18px; }

.bank-name { font-size: 15.5px; }
.bank-id { font-size: 9.5px; }

.hero-title {
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: .34em;
  text-indent: .34em;
}
.hero-sub { font-size: 10px; letter-spacing: .36em; text-indent: .36em; margin-top: 16px; }
.hero-tagline { font-size: 15px; }

.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); }
.sort-btn { font-size: 12px; padding: 4px 10px; }
.ust-wrap { padding-bottom: 26px; margin-bottom: 26px; }

/* 紧凑一点：少留空 */
.banks-main .page-head { padding: 0 0 18px; }
.page-head h1 { margin-top: 8px; }
.page-head p { margin-top: 10px; }
.sort-row { padding-bottom: 14px; }
.char-block { padding-bottom: 36px; margin-bottom: 36px; }
.cb-head { margin-bottom: 2px; }
.cb-num { margin-bottom: 6px; }

/* 字号整体上调，小屏更好读 */
body { font-size: 16px; }
.cb-name { font-size: clamp(25px, 2.8vw, 34px); }
.cb-reading { font-size: 12px; }
.cb-label { font-size: 10px; }
.cb-desc { font-size: 15.5px; line-height: 1.9; }
.profile-dl dt { font-size: 12.5px; }
.profile-dl dd { font-size: 15px; }
.act { font-size: 17px; padding: 12px 2px; }
.act-sub { font-size: 14px; }
.act-note { font-size: 12px; }
.bank-name { font-size: 17px; }
.bank-id { font-size: 10px; }
.side-item { font-size: 15.5px; }
.sort-btn { font-size: 13px; }
.ust-date { font-size: 10.5px; }
.page-head p { font-size: 14.5px; }
.profile-name { font-size: clamp(28px, 3.4vw, 38px); }
.profile-tagline { font-size: 15px; }
.hero-tagline { font-size: 16px; }

@media (max-width: 1200px) {
  .banks-main { padding: 24px 48px 64px 72px; }
}

/* 窄一点就直接上下排，不要挤成「窄白条」 */
@media (max-width: 1000px) {
  .banks { grid-template-columns: 1fr; min-height: 0; }
  .banks-side {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    overflow-x: auto;
  }
  .side-title { display: none; }
  .side-list { flex-direction: row; gap: 2px; }
  .side-item {
    border: 0;
    width: auto;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 13px;
  }
  .side-item:last-child { border-bottom: 0; }
  .side-count { display: none; }
  .banks-main { padding: 34px 24px 72px; min-height: 0; }
  .cb-grid { grid-template-columns: 1fr; gap: 24px; max-width: none; }
  .cb-figure { position: static; max-width: 210px; }
  .ust-main .page-head, .ust-main .sort-row, .ust-main .stack, .ust-main > .empty { max-width: none; }
}

@media (max-width: 860px) {
  .topbar-inner { height: auto; padding: 12px 20px; flex-wrap: wrap; gap: 10px 20px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .tools { margin-left: auto; }
  main { padding: 0 20px 68px; }
  .hero { padding: 64px 0 44px; }
  .hero-title { letter-spacing: .2em; text-indent: .2em; }
  .hero-mark svg { width: 48px; height: 48px; }
  .hero-nav { gap: 10px 18px; margin-top: 34px; padding-top: 26px; }
  .hero-nav a { letter-spacing: .18em; text-indent: .18em; }
  .hero-meta { gap: 32px; margin-top: 32px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .profile .avatar { width: 190px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 26px 16px; }
  .bank { padding: 18px 0 6px; }
  .act { font-size: 16px; gap: 12px; padding: 12px 2px; }
  .act-more > summary { padding-left: 28px; font-size: 14px; }
  .act-body { padding-left: 0; padding-bottom: 20px; }
  .act-note { font-size: 11px; }
  .terms-item, .steps li { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
  .timeline li { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .page-head { padding: 48px 0 28px; }
  .sheet { padding: 40px calc(50vw - 50% + 20px) 56px; }
  .fold-body { padding-bottom: 28px; }
  .fold > summary { padding: 18px 0; }

  .banks { grid-template-columns: 1fr; min-height: 0; }
  .banks-side {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    overflow-x: auto;
  }
  .side-title { display: none; }
  .side-list { flex-direction: row; gap: 2px; }
  .side-item {
    border: 0;
    width: auto;
    white-space: nowrap;
    padding: 6px 10px;
  }
  .side-item:last-child { border-bottom: 0; }
  .side-count { display: none; }
  .banks-main { padding: 30px 20px 64px; min-height: 0; }
  .char-block { padding-bottom: 40px; margin-bottom: 40px; scroll-margin-top: 20px; }
  .cb-grid { grid-template-columns: 1fr; gap: 22px; max-width: none; }
  .cb-figure { position: static; max-width: 200px; }
}

@media (max-width: 720px) {
  /* 手机：导航收紧，避免横向溢出 */
  .hero-nav { gap: 8px 12px; }
  .hero-nav a { font-size: 12px; letter-spacing: .08em; text-indent: .08em; }
  .nav a { font-size: 13px; }

  /* 空立绘框在手机上先不占位，让文字往上走 */
  .cb-figure { max-width: 230px; }
  .cb-stand { max-height: 340px; }

  /* 本家链接按钮换行，别被右边切掉 */
  .act { flex-wrap: wrap; }
  .link-pills {
    margin-left: 0;
    width: 100%;
    padding-left: 30px;
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  .chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .search { max-width: none; }
  .bank-label { width: 100%; }
  .mini-sub { display: none; }
  .section { padding: 38px 0 0; }
  .card-name { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 首页施工中 */
.wip {
  padding: 120px 20px;
  text-align: center;
  font-size: 18px;
  letter-spacing: .12em;
  color: var(--ink-2);
}
