/* 浮く 跳转页：纸白 + 墨黑 + logo 上的那一点红 */
:root {
  --paper: #fafaf8;
  --card: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #5d5d62;
  --line: #e7e5df;
  --red: #e5483a;        /* logo 浊点 */
  --red-ink: #c4362a;    /* 白底小字用，对比更足 */
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.06);
  --sans: "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --ja: "Hiragino Sans", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", "Meiryo", var(--sans);
  --serif: "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", "Yu Mincho", "Songti SC", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: 20px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --pad: 32px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111113; --card: #18181b; --ink: #f2f2f0; --ink-2: #a3a3a8; --line: #2a2a2e;
    --red: #ff6b5c; --red-ink: #ff8a7d; --shadow: 0 8px 32px rgba(0,0,0,.4); color-scheme: dark;
  }
  :root:not([data-theme="light"]) .why .rv { color: #ffad42; }
}
:root[data-theme="dark"] {
  --paper: #111113; --card: #18181b; --ink: #f2f2f0; --ink-2: #a3a3a8; --line: #2a2a2e;
  --red: #ff6b5c; --red-ink: #ff8a7d; --shadow: 0 8px 32px rgba(0,0,0,.4); color-scheme: dark;
}
:root[data-theme="dark"] .why .rv { color: #ffad42; }

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
code { font: .88em var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--red) 25%, transparent); }

main, .top, .foot { max-width: 1160px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- 顶栏 ---------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand-name { font: 700 19px/1 var(--ja); }
.brand-sub { color: var(--ink-2); font-size: 13px; letter-spacing: .02em; }
@media (max-width: 720px) { .brand-sub { display: none; } }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
/* 窄屏只留 GitHub 和主题按钮；页内跳转在首屏已有按钮 */
@media (max-width: 560px) { .top-nav a[href^="#"] { display: none; } }
.top-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.theme { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--ink-2); }
.theme.lang { width: auto; min-width: 40px; padding: 0 12px; font: 600 13px var(--sans); white-space: nowrap; flex: none; }

/* ---------- 首屏 ---------- */
.hero { display: grid; gap: 40px; padding: 40px 0 56px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: 64px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }

/* 浮在汉字上的假名：主视觉 */
.float-line { margin-top: 32px; font: 500 clamp(30px, 5.4vw, 56px)/1.9 var(--serif); letter-spacing: .04em; }
.float-line .nb { white-space: nowrap; }
.float-line rt { font: 500 .42em/1 var(--ja); color: var(--red); letter-spacing: .06em; }
@media (prefers-reduced-motion: no-preference) {
  /* rt 本身是行内注音框，transform 不生效，所以动画加在里面的 span 上 */
  .float-line rt span { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both, bob 4.2s ease-in-out 1.2s infinite; }
  .float-line ruby:nth-child(2) rt span { animation-delay: .12s, 1.5s; }
  .float-line ruby:nth-child(3) rt span { animation-delay: .24s, 1.8s; }
  .float-line .nb rt span { animation-delay: .36s, 2.1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.14em); } }

h1 { margin-top: 8px; font: 700 clamp(22px, 2.8vw, 30px)/1.35 var(--sans); letter-spacing: .01em; }
.lead { margin-top: 14px; color: var(--ink-2); max-width: 36em; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary small { font-weight: 400; opacity: .7; font-size: 13px; }
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn[hidden] { display: none; }
.cta-alt { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.cta-alt a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- 演示卡片（模仿应用里的注音预览） ---------- */
.demo { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px 0; }
.demo-head h2 { font-size: 14px; font-weight: 700; }
.demo-hint { font-size: 13px; color: var(--ink-2); }
.demo-hint b { color: var(--red-ink); font-family: var(--ja); }
.seg { display: inline-grid; grid-auto-flow: column; margin: 14px 22px 0; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 13px var(--sans); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.demo-body { padding: 10px 22px 6px; font: 400 clamp(17px, 2vw, 20px)/2.5 var(--ja); }
.demo-body p { border-bottom: 1px solid var(--line); padding: 4px 0; }
.demo-body p:last-child { border-bottom: 0; }
.demo-body rt { font-size: .5em; color: var(--ink-2); letter-spacing: .04em; }
.pick { all: unset; cursor: pointer; border-radius: 4px; text-decoration: underline dotted var(--red) 2px; text-underline-offset: 6px; }
.pick rt { color: var(--red-ink); font-weight: 600; }
.pick:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.pick:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.pick.flip rt { animation: flip .35s ease; }
@keyframes flip { from { opacity: 0; transform: translateY(-.4em); } to { opacity: 1; transform: none; } }
.demo-foot { padding: 12px 22px 16px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2%, transparent); }
.demo-foot b { color: var(--ink); font-family: var(--ja); }

/* ---------- 截图 ---------- */
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) .shot-dark { display: block; }
}
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

/* ---------- 分区 ---------- */
.block { padding: 72px 0 8px; display: grid; gap: 28px; }
.block-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 16px; }
.num { font: 700 13px var(--mono); color: var(--red-ink); letter-spacing: .1em; }
.block-head h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; }
.block-meta { grid-column: 2; color: var(--ink-2); font-size: 14px; }

/* ---------- 01 Pixiv ---------- */
.px-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .px-steps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }
.px-steps li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.px-steps h3 { font-size: 16px; margin-bottom: 4px; }
.px-steps p { color: var(--ink-2); font-size: 14px; }
.px-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 13px var(--mono); margin-bottom: 10px; }

.px-shots { margin: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .px-shots { grid-template-columns: repeat(2, 1fr); } }
.px-shots img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- 02 新增功能 ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news { grid-template-columns: repeat(3, 1fr); } }
.news li { padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.ver { display: inline-block; font: 600 11px var(--mono); color: var(--red-ink); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-bottom: 10px; }
.news h3 { font-size: 16px; margin-bottom: 4px; }
.news p { color: var(--ink-2); font-size: 14px; }
#new-notes { text-underline-offset: 3px; white-space: nowrap; }

.why { border-top: 1px solid var(--ink); }
.why-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .why-row { grid-template-columns: 8rem 1fr 1.4fr; gap: 24px; align-items: center; } }
.why-th { display: none; font-size: 12px; color: var(--ink-2); letter-spacing: .08em; padding: 10px 0; }
@media (min-width: 760px) { .why-th { display: grid; } }
.why-k { font-weight: 700; }
.bad { color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 60%, transparent); }
.why rt { font-size: .55em; color: var(--red-ink); }
.why-row span[lang="ja"]:last-child { line-height: 2.3; }
.why .rv { color: #c26a00; font-weight: 700; }

.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .feat { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .feat { grid-template-columns: repeat(3, 1fr); } }
.feat li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.feat h3 { font-size: 16px; margin-bottom: 4px; }
.feat p { color: var(--ink-2); font-size: 14px; }

.shot-pair { margin: 8px 0 0; display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .shot-pair { grid-template-columns: 3fr 1fr; } }
.shot-pair img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-pair img:last-child { max-width: 280px; justify-self: center; }

/* ---------- 阅读器 ---------- */
.reader .block-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.rd { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .rd { grid-template-columns: 1fr 300px; gap: 28px; } }

.rd-device { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.rd-bar {
  position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%);
  display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 10px;
  width: min(360px, calc(100% - 32px)); padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transition: transform .3s ease, opacity .3s ease;
}
.rd-bar.away { transform: translate(-50%, 140%); opacity: 0; }
.rd-back { color: var(--ink-2); font-size: 22px; line-height: 1; text-align: center; }
.rd-title { display: grid; text-align: center; line-height: 1.3; min-width: 0; }
.rd-title b { font: 600 13px var(--ja); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-title small { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rd-ruby-state { font: 600 13px var(--ja); text-align: center; color: var(--ink); }
.rd-ruby-state.off { color: var(--ink-2); text-decoration: line-through; }

.rd-page {
  --fs: 19px;
  height: 440px; overflow: auto; padding: 36px clamp(20px, 5vw, 56px) 96px;
  font-family: var(--serif); font-size: var(--fs); line-height: 2.35; letter-spacing: .02em;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.rd-page.sans { font-family: var(--ja); }
.rd-page.v { writing-mode: vertical-rl; overflow-x: auto; overflow-y: hidden; padding: 36px 40px 96px; }
.rd-page:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; border-radius: 22px; }
.rd-page h3 { font-size: 1.3em; font-weight: 600; line-height: 1.5; }
.rd-page .by { font: 13px/1.8 var(--sans); color: var(--ink-2); margin-bottom: 1.2em; }
.rd-page.v .by { margin: 0 0 0 1.4em; }
.rd-page p { margin: 0 0 1.1em; }
.rd-page.v p { margin: 0 0 0 1.1em; }
.rd-page rt { font-size: .5em; color: var(--red-ink); letter-spacing: 0; }
.rd-page.no-ruby rt { visibility: hidden; } /* 与应用一致：只隐藏不收起，版面不跳 */
.rd-page .who { margin-right: .4em; font: 600 .72em var(--sans); color: var(--ink-2); letter-spacing: 0; }
.rd-page.v .who { margin: 0 0 .4em; }
.rd-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.rd-line i { display: block; height: 100%; width: 0; background: var(--ink); opacity: .38; }

.rd-panel { display: grid; gap: 4px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.rd-row { display: grid; grid-template-columns: 3em 1fr auto; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.rd-row:last-child { border-bottom: 0; }
.rd-row .seg { margin: 0; grid-column: 2 / -1; justify-self: start; }
.rd-label { font-size: 13px; color: var(--ink-2); }
.rd-row input[type="range"] { width: 100%; accent-color: var(--ink); }
.rd-row output { font: 13px var(--mono); color: var(--ink-2); min-width: 2ch; text-align: right; }
.rd-hint { font-size: 13px; color: var(--ink-2); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--ink) 18%, transparent); cursor: pointer; padding: 0; justify-self: start; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"] i { transform: translateX(18px); }
.switch[aria-checked="true"] i { background: var(--paper); }

.rd-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .rd-points { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .rd-points { grid-template-columns: repeat(3, 1fr); } }
.rd-points li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rd-points h3 { font-size: 16px; margin-bottom: 4px; }
.rd-points p { color: var(--ink-2); font-size: 14px; }

.rd-shots { margin: 0; display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .rd-shots { grid-template-columns: 3fr 1fr; } }
.rd-shots img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rd-shots img:nth-child(2) { max-width: 280px; justify-self: center; }
.rd-shots .wide { grid-column: 1 / -1; }

/* 阅读器 demo：逐句对照与点词查词（数据在 uku.js 的「演示数据」块） */

.rd-page .sent {
  display: inline;
}

.rd-page .tr {
  display: block;
  margin: .15em 0 .9em;
  font: 400 .74em/1.75 var(--sans);
  color: var(--ink-2);
  letter-spacing: 0;
}

.rd-page.v .tr {
  margin: 0 .9em 0 .15em;
}

.rd-page.has-tr p {
  margin-bottom: .6em;
}

.rd-page.v.has-tr p {
  margin-bottom: 0;
  margin-left: .6em;
}

.lk-w {
  all: unset;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: underline dotted color-mix(in srgb, var(--ink) 45%, transparent) 1.5px;
  text-underline-offset: .35em;
}

.lk-w:hover,
.lk-w.on {
  background: color-mix(in srgb, var(--red) 12%, transparent);
}

.lk-w:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.rd-page.v .lk-w {
  text-decoration: none;
  box-shadow: inset -1.5px 0 0 color-mix(in srgb, var(--ink) 35%, transparent);
}

.rd-lookup {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  max-height: 62%;
  overflow: auto;
  padding: 14px 18px 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  transform: translateY(16px);
  opacity: 0;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s;
}

.rd-lookup[hidden] {
  display: none;
}

.rd-lookup.open {
  transform: none;
  opacity: 1;
}

@media (min-width: 760px) {
  .rd-lookup {
    left: auto;
    width: 340px;
    right: 16px;
    bottom: 16px;
  }
}

.lk-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 13px var(--sans);
  color: var(--ink-2);
}

.lk-q {
  font: 600 13px var(--ja);
  color: var(--ink);
}

.lk-q small {
  font: 400 12px var(--sans);
  color: var(--ink-2);
}

.lk-form {
  margin-left: auto;
}

.lk-close {
  all: unset;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-2);
  text-align: center;
  flex-shrink: 0;
}

.lk-close:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.lk-close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.lk-word {
  margin: 8px 0 6px;
}

.lk-word ruby {
  font: 600 26px/1.6 var(--ja);
  color: var(--ink);
}

.lk-word rt {
  font: 400 11px var(--sans);
  color: var(--ink-2);
  letter-spacing: 0;
}

.lk-tag {
  display: inline-block;
  font: 600 11px var(--sans);
  color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

.lk-defs {
  margin: 0;
  padding-left: 1.4em;
  font: 15px/1.7 var(--sans);
  color: var(--ink);
}

.lk-ex {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  font: 13px/1.7 var(--sans);
  color: var(--ink-2);
}

.lk-ex span {
  color: var(--ink);
  font-family: var(--ja);
}

.lk-src {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font: 12px var(--sans);
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .rd-lookup {
    transition: none !important;
  }
}

/* ---------- 下载 ---------- */
.dl { display: grid; border-top: 1px solid var(--ink); }
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .dl-row { grid-template-columns: 9rem 1fr 7rem auto; } }
.dl-row.is-you { background: linear-gradient(90deg, color-mix(in srgb, var(--red) 7%, transparent), transparent 70%); }
.dl-plat { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dl-alt { margin-left: 4px; font-size: 13px; white-space: nowrap; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.dl-alt:hover { color: var(--ink); }
.you { font: 600 11px var(--sans); color: var(--red-ink); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.dl-info { color: var(--ink-2); font-size: 14px; grid-column: 1; }
.dl-info code { font-size: 12px; }
.dl-size { color: var(--ink-2); font: 13px var(--mono); grid-column: 1; }
@media (min-width: 760px) { .dl-info, .dl-size { grid-column: auto; } }
.dl-row .btn { grid-row: 1 / span 3; grid-column: 2; min-height: 42px; padding: 0 18px; font-size: 14px; }
@media (min-width: 760px) { .dl-row .btn { grid-row: auto; grid-column: auto; } }
.dl-row .btn.primary { min-width: 6.5em; }
.btn.off { border-color: var(--line); color: var(--ink-2); background: none; cursor: default; }

.sums summary { cursor: pointer; color: var(--ink-2); font-size: 14px; width: fit-content; }
.sums summary:hover { color: var(--ink); }
.sums pre { margin: 12px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font: 12px/1.8 var(--mono); overflow-x: auto; color: var(--ink-2); }
.note { color: var(--ink-2); font-size: 13px; }

/* ---------- 页脚 ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 48px; padding-bottom: 48px; margin-top: 56px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.foot a { text-underline-offset: 3px; }

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

/* 支持我 */
.support-dialog { position: fixed; margin: auto; width: min(360px, calc(100vw - 32px)); padding: 24px 22px 24px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); text-align: center; }
.support-dialog::backdrop { background: rgba(0,0,0,.45); }
.support-dialog h2 { font-size: 16px; margin: 0 0 14px; }
.support-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.support-note { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.support-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; background: none; border: 0; color: var(--ink-2); font-size: 22px; cursor: pointer; }
