/* 公开站按原型重做（契约 docs/features/redesign-public-site.md，原型 docs/product/redesign/index.html 与 prototype.css）。
   只在公开页面加载（body.site，layout.ts），排在 app.css、design.css、detail.css 之后；与旧样式同名的类改了名（topbar、finder、tchip、lrow、tag、void、cmeta、rd-*），
   规则都限定在 .site 下，给了 side 的页面（目前没有）不加载本文件；站长登录页用公开站骨架，会加载本文件。颜色写成 light-dark() 令牌，跟随 data-theme（浅色、深色、跟随系统）。 */
.site {
  --paper: light-dark(#f7f6f2, #171b1c); --surface: light-dark(#fffefa, #202628); --ink: light-dark(#1b2a27, #e7efed); --muted: light-dark(#53645f, #a9b9b6);
  --line: light-dark(#d6dfd8, #354143); --line-strong: light-dark(#bccbc2, #4b5b5b); --green: light-dark(#176b68, #92cfbd); --deep: light-dark(#105551, #a9dccd);
  --tint: light-dark(#e6f0eb, #233430); --tint-strong: light-dark(#d5e9e0, #2c443d); --tint-line: light-dark(#cedfd4, #36504a); --hover: light-dark(#eef3ef, #242d2e);
  --hover-line: light-dark(#a7beb2, #56716a); --hero-ink: light-dark(#163832, #d6ece5); --hero-sub: light-dark(#405e55, #a9c4bb); --seg: light-dark(#edf1ec, #2a3233);
  --off: light-dark(#cfdbd3, #46524f); --amber: light-dark(#76501b, #e6be83); --amber-bg: light-dark(#f7ecd5, #3b3021); --red: light-dark(#923d30, #f0a69d);
  --on-deep: light-dark(#fff, #10302b);
  --k-project: light-dark(#176b68, #8fd0c4); --k-project-bg: light-dark(#e2efea, #1f3633);
  --k-blog: light-dark(#8a5a1f, #e3b679); --k-blog-bg: light-dark(#f4ebdc, #3a2f20);
  --k-course: light-dark(#3a5d7f, #a6c3e3); --k-course-bg: light-dark(#e4ecf4, #23303d);
  --k-lecture: light-dark(#8d4650, #e7a9b2); --k-lecture-bg: light-dark(#f4e7e9, #3b2629);
  --lv0: light-dark(#a8cfc4, #4a7a6e); --lv1: light-dark(#4f9a8c, #6fb3a4); --lv2: light-dark(#176b68, #a9dccd);
  background: var(--paper); color: var(--ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif; line-height: 1.55;
}
.site ::selection { color: var(--ink); background: var(--tint-strong); }
.site :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.site [tabindex="-1"]:focus { outline: none; }
html.js .site [data-no-js] { display: none; }
.site .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site .icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.site .muted { color: var(--muted); }
.site .small { font-size: .85rem; }
.site :is(.intro, .list-head, .page-head, .typebar, .group, .cards, .lrows, .ix, .res-table, .topic-map, .topic-hero, .sub-tabs, .lroute, .stages, .route-strip, .rd-detail, .void, .result-bar, .filterbar, .crumbs, .topic-sum, .tchips) :is(h1, h2, h3, p) { margin: 0; }
.site :is(h1, h2, h3) { line-height: 1.28; text-wrap: balance; letter-spacing: normal; }

/* 顶栏 */
.site .topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.site .topbar-inner { max-width: 1280px; margin: auto; padding: 0 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 70px; gap: 24px; }
.site .topbrand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; justify-self: start; white-space: nowrap; }
.site .topbrand .brandmark { width: 31px; height: 29px; flex-basis: 31px; }
.site .topbrand strong { font-family: system-ui, sans-serif; font-size: 1.17rem; letter-spacing: -.027em; }
.site .topbrand > span:last-child { color: var(--muted); font-size: .84rem; padding-left: 9px; border-left: 1px solid var(--line); }
.site .topnav { display: flex; align-items: stretch; gap: 24px; min-height: 70px; }
.site .topnav a { display: grid; align-items: center; position: relative; text-decoration: none; color: var(--muted); font-size: .91rem; font-weight: 650; white-space: nowrap; }
.site .topnav a:hover, .site .topnav a[aria-current] { color: var(--deep); }
.site .topnav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--green); }
.site .top-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.site .top-end .appearance { margin: 0; max-width: none; }
.site .demo-tag { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.site .demo-strip { text-align: center; }

/* 按钮 */
.site .button { min-height: 42px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .87rem; font-weight: 650; cursor: pointer; }
.site .button:hover { background: var(--tint); border-color: var(--hover-line); }
.site .button.primary { color: var(--on-deep); background: var(--deep); border-color: var(--deep); }
.site .button.primary:hover { filter: brightness(.92); }
.site .button .icon { width: 16px; height: 16px; }
.site .small-button { min-height: 36px; padding: 4px 10px; }
.site .icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.site .icon-button:hover { background: var(--tint); color: var(--deep); }
.site [data-save][aria-pressed="true"] { color: var(--deep); background: var(--tint); }
.site [data-save][aria-pressed="true"] .icon { fill: currentColor; }
.site .icon-button.sm { width: 36px; height: 36px; }

/* 主内容与阅读栏 */
.site .browse-shell { max-width: 1480px; margin: auto; }
.site .public { max-width: 1160px; width: 100%; min-width: 0; margin: auto; padding: 36px 32px 20px; }
.site .reader-shell { background: var(--surface); color: var(--ink); }
.site aside.reader-shell { position: sticky; top: 16px; align-self: start; max-height: calc(100dvh - 32px); overflow: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; }
.site dialog.reader-shell { inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; border-radius: 0; }
.site dialog.reader-shell::backdrop { background: rgb(20 39 35 / .5); }
html:has(dialog.reader-shell[open]) { overflow: hidden; }
.site .reader-controls { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px 8px 6px 16px; }
.site .reader-controls .actions { display: flex; gap: 2px; }
.site .reader-content { max-width: 760px; margin: auto; padding: 18px 18px 32px; overflow-wrap: anywhere; }
.site dialog .reader-content { padding: 24px clamp(16px, 4vw, 36px) 36px; }
@media (min-width: 1120px) {
  .site .browse-shell.reader-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 28%); align-items: start; padding: 0 24px; }
  .site .reader-open .public { padding-inline: 24px; }
  .site .reader-open .intro { grid-template-columns: 1fr; }
  .site .reader-open .intro .map { display: none; }
  .site .reader-open .list-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .site .reader-open .finder { width: 100%; }
  .site .reader-open .res-table :is(.col-dir, .col-pub) { display: none; }
  .site .reader-open .route-strip small { display: none; }
  .site .reader-open .ix { grid-template-columns: 1fr; }
}

/* 欢迎区与列表头 */
.site .intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); align-items: center; padding: 16px 26px; border: 1px solid var(--tint-line); border-radius: 16px; background: var(--tint); overflow: hidden; color: var(--green); }
.site .intro h1 { font-size: 2rem; color: var(--hero-ink); letter-spacing: -.028em; }
.site .intro p { margin-top: 5px; color: var(--hero-sub); max-width: 50ch; font-size: .9rem; }
.site .map { width: 100%; max-height: 82px; justify-self: end; }
.site .map .map-book { fill: var(--surface); }
.site .map .map-dots circle { fill: var(--paper); }
.site .list-head { margin-top: 22px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.site .list-head h2 { font-size: 1.7rem; }
.site .list-head p { margin-top: 4px; }
.site .page-head { margin-top: 6px; display: flex; align-items: end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.site .page-head h1 { font-size: 2.1rem; letter-spacing: -.028em; }
.site .page-head .lede { margin-top: 6px; color: var(--muted); max-width: 40em; text-wrap: pretty; }

/* 搜索框 */
.site .finder { display: flex; align-items: center; position: relative; gap: 6px; width: min(100%, 335px); margin: 0; }
.site .finder > .icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; width: 17px; }
.site .finder input[type=search] { width: 100%; min-width: 0; min-height: 42px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 8px 38px; font-size: .88rem; }
.site .finder input::placeholder { color: var(--muted); }
.site .finder .button { flex: none; }

/* 类型入口与项目子类 */
.site .typebar { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-top: 9px; border-bottom: 1px solid var(--line); padding: 0 0 9px; }
.site .typebar.bar { margin-top: 22px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.site .typebar.bar > .muted { padding-right: 10px; }
.site .tchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site .tchip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 1px solid transparent; background: transparent; padding: 6px 13px; border-radius: 8px; font-size: .9rem; color: var(--muted); font-weight: 650; text-decoration: none; }
.site .tchip .icon { width: 16px; height: 16px; color: var(--kc, var(--muted)); }
.site .tchip:hover { color: var(--ink); background: var(--tint); }
.site .tchip[aria-current="true"] { color: var(--deep); background: var(--tint); border-color: var(--hover-line); }
/* 只看必读开关（首页类型行右端，契约 redesign-public-site 第 2 节）：胶囊按钮，开时用“必读”徽章的底色与勾 */
.site .typebar-end { display: flex; align-items: center; gap: 12px; }
.site .must-toggle { margin: 0; }
.site .pill-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 13px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.site .pill-toggle .sw { width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 50%; box-sizing: border-box; flex: none; display: flex; align-items: center; justify-content: center; }
.site .pill-toggle .sw .icon { display: block; width: 12px; height: 12px; opacity: 0; }
.site .pill-toggle .sw .icon svg { stroke-width: 3.4; }
.site .pill-toggle:hover { color: var(--ink); background: var(--tint); border-color: var(--hover-line); }
.site .pill-toggle[aria-pressed="true"] { color: var(--deep); background: var(--tint-strong); border-color: var(--hover-line); }
.site .pill-toggle[aria-pressed="true"] .sw { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.site .pill-toggle[aria-pressed="true"] .sw .icon { opacity: 1; }
.site .subfilters { margin-top: 11px; gap: 7px; }
.site .subfilters .tchip { border-color: var(--line); min-height: 36px; font-size: .83rem; }
.site .subfilters .tchip[aria-current="true"] { border-color: var(--hover-line); }

/* 类型色与图标 */
.site .k-project { --kc: var(--k-project); --kb: var(--k-project-bg); }
.site .k-blog { --kc: var(--k-blog); --kb: var(--k-blog-bg); }
.site .k-course { --kc: var(--k-course); --kb: var(--k-course-bg); }
.site .k-lecture { --kc: var(--k-lecture); --kb: var(--k-lecture-bg); }
.site .kind-icon { width: 34px; height: 34px; margin-top: -3px; display: grid; place-items: center; border-radius: 9px; color: var(--kc); background: var(--kb); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc) 14%, transparent); }
.site .kind-icon .icon { width: 19px; height: 19px; }
.site .kind-pill { --kc: var(--k-project); --kb: var(--k-project-bg); display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: 6px; font-size: .78rem; font-weight: 650; color: var(--kc); background: var(--kb); }
.site .kind-pill:is(.kind-blog, .kind-post, .kind-paper) { --kc: var(--k-blog); --kb: var(--k-blog-bg); }
.site .kind-pill:is(.kind-course, .kind-tutorial, .kind-book) { --kc: var(--k-course); --kb: var(--k-course-bg); }
.site .kind-pill.kind-lecture { --kc: var(--k-lecture); --kb: var(--k-lecture-bg); }
.site .kind-pill .icon { width: 15px; height: 15px; }
.site .kl { color: var(--kc); font-weight: 650; }

/* 卡片、行与元信息 */
.site .card-text { min-width: 0; }
.site .card-text h3 { font-size: 1.13rem; text-wrap: pretty; }
.site .card-text h3 a { color: var(--ink); text-decoration: none; }
.site .card-text h3 a:hover { color: var(--deep); text-decoration: underline; }
.site .card-text p { color: var(--muted); font-size: .89rem; margin-top: 4px; }
.site .renewed-note { color: var(--amber) !important; font-weight: 600; }
.site .cmeta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; color: var(--muted); font-size: .79rem; margin-top: 7px; }
.site .cmeta .dot { display: inline-flex; align-items: center; gap: 10px; }
.site .cmeta .dot::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.site .cmeta .where { color: var(--ink); opacity: .78; }
.site .card-text .where-line { color: var(--ink); font-weight: 600; }
.site .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; background: var(--tint); color: var(--deep); font-size: .75rem; font-weight: 650; white-space: nowrap; }
.site .tag.must { background: var(--tint-strong); }
.site .tag.warn { color: var(--amber); background: var(--amber-bg); }
.site .tag.neutral { color: var(--muted); background: var(--seg); }
.site .tag.renewed { color: var(--amber); background: var(--amber-bg); }
.site .cards { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.site .resource-card { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 14px; align-items: start; padding: 13px 12px; border-radius: 10px; transition: background-color .15s; }
.site .resource-card + .resource-card::before { content: ""; position: absolute; top: 0; left: 60px; right: 12px; height: 1px; background: var(--line); transition: opacity .15s; }
.site .resource-card:hover, .site .resource-card:has(h3 a:focus-visible) { background: var(--hover); }
.site .resource-card:hover::before, .site .resource-card:hover + .resource-card::before { opacity: 0; }
.site .resource-card[aria-current="true"] { background: var(--tint); }
.site .resource-card .icon-button { margin-top: -6px; }

/* 首页时间线 */
.site .group { display: grid; grid-template-columns: 85px minmax(0, 1fr); align-items: start; gap: 17px; margin-top: 14px; }
.site .group.no-date { grid-template-columns: 85px minmax(0, 1fr); }
.site .group.no-date .cards { grid-column: 2; }
.site .date { padding: 10px 2px 0 0; color: var(--muted); font-size: .8rem; }
.site .date h2 { display: block; color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.site .latest .cards { position: relative; border: 0; border-radius: 0; background: transparent; padding: 0; }
.site .latest .cards::before { position: absolute; content: ""; top: 18px; bottom: 20px; left: 12px; width: 1px; background: var(--line-strong); }
.site .latest .resource-card { grid-template-columns: 14px minmax(0, 1fr) 42px; gap: 12px; padding: 9px 6px; border-radius: 8px; }
.site .latest .resource-card::before { display: none; }
.site .latest .card-text p { margin-top: 3px; }
.site .latest .cmeta { margin-top: 5px; }
.site .station-dot { --kc: var(--k-project); position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 6px; border: 2px solid var(--kc); border-radius: 50%; background: var(--paper); }
.site .station-dot.k-blog { --kc: var(--k-blog); } .site .station-dot.k-course { --kc: var(--k-course); } .site .station-dot.k-lecture { --kc: var(--k-lecture); }
.site .station-dot.must { background: var(--kc); }
.site .latest .resource-card[aria-current="true"] .station-dot { box-shadow: 0 0 0 3px var(--tint); }
.site .back-latest { text-align: center; margin-top: 12px; }
.site .load { margin: 18px 0 4px; text-align: center; }

/* 无框的行（收藏页） */
.site .lrows { list-style: none; margin: 6px 0 0; padding: 0; }
.site .lrow { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 42px; gap: 16px; align-items: start; margin-inline: -14px; padding: 16px 14px; border-radius: 12px; transition: background-color .15s; }
.site .lrow + .lrow::before { content: ""; position: absolute; top: 0; left: 66px; right: 14px; height: 1px; background: var(--line); transition: opacity .15s; }
.site .lrow:hover, .site .lrow:has(h3 a:focus-visible) { background: var(--hover); }
.site .lrow[aria-current="true"] { background: var(--tint); }
.site .lrow:is(:hover, [aria-current="true"])::before, .site .lrow:is(:hover, [aria-current="true"]) + .lrow::before { opacity: 0; }
.site .lrow .kind-icon { width: 36px; height: 36px; margin-top: -2px; border-radius: 10px; }
.site .lrow h3 { font-size: 1.08rem; line-height: 1.4; }
.site .lrow .card-text p { font-size: .9rem; line-height: 1.6; max-width: 68ch; }
.site .lrow .cmeta { margin-top: 8px; gap: 6px 12px; }
.site .lrow .icon-button { margin-top: -6px; }

/* 层级 */
.site .lv0 { --lv: var(--lv0); } .site .lv1 { --lv: var(--lv1); } .site .lv2 { --lv: var(--lv2); } .site .lv3 { --lv: var(--off); }
.site .lv-chip { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.site .lv-chip .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.site .lv-chip .bars i { width: 3px; border-radius: 1px; background: var(--off); }
.site .lv-chip .bars i:nth-child(1) { height: 5px; } .site .lv-chip .bars i:nth-child(2) { height: 8px; } .site .lv-chip .bars i:nth-child(3) { height: 11px; }
.site .lv-chip.lv0 .bars i:nth-child(-n+1), .site .lv-chip.lv1 .bars i:nth-child(-n+2), .site .lv-chip.lv2 .bars i { background: var(--lv); }
.site .lv-bar { display: flex; gap: 3px; height: 8px; }
.site .lv-bar i { border-radius: 4px; min-width: 8px; background: var(--lv); }
.site .lv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.site .lv-legend span { display: inline-flex; align-items: center; gap: 5px; }
.site .lv-legend span.none { opacity: .5; }
.site .lv-legend b { width: 8px; height: 8px; border-radius: 2px; background: var(--lv); }

/* 学习路线（方向页与必读） */
.site .stages { list-style: none; padding: 0; margin: 16px 0 0; }
.site .stage { position: relative; padding: 0 0 22px 50px; }
.site .stage::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(var(--lv), var(--line)); }
.site .stage:last-child { padding-bottom: 0; }
.site .stage:last-child::before { display: none; }
.site .stage-mark { display: flex; align-items: center; gap: 12px; margin: 0 0 10px -50px; }
.site .stage-no { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lv); color: var(--on-deep); font-weight: 750; font-size: .9rem; box-shadow: 0 0 0 4px var(--paper); }
.site .stage.lv0 .stage-no, .site .route-strip .lv0 .stage-no { color: light-dark(#0f4f4c, #e7efed); }
.site .stage-mark b { display: block; font-size: 1rem; }
.site .stage-mark small { display: block; color: var(--muted); font-size: .8rem; }
.site .route-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; border: 1px solid var(--tint-line); border-radius: 14px; background: var(--tint); overflow: hidden; }
.site .route-strip li + li { border-left: 1px solid var(--tint-line); }
.site .route-strip :is(a, .strip-off) { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 12px; height: 100%; padding: 14px 18px; color: var(--hero-ink); text-decoration: none; transition: background-color .15s; }
.site .route-strip a:hover { background: var(--tint-strong); }
.site .route-strip .strip-off { opacity: .5; }
.site .route-strip .stage-no { grid-row: span 2; box-shadow: none; }
.site .route-strip b { font-size: 1rem; }
.site .route-strip b span { margin-left: 6px; font-weight: 600; color: var(--hero-sub); font-size: .86rem; font-variant-numeric: tabular-nums; }
.site .route-strip small { color: var(--hero-sub); font-size: .8rem; line-height: 1.45; }
.site .must-route { margin-top: 30px; }
.site .must-route .stage { padding-bottom: 34px; scroll-margin-top: 20px; }
.site .must-route details > summary { list-style: none; cursor: pointer; }
.site .must-route details > summary::-webkit-details-marker { display: none; }
.site .must-route .stage-mark { margin-bottom: 12px; }
.site .must-route .stage-mark h2 { font-size: 1.12rem; }
.site .must-route .stage-mark > div { flex: 1; min-width: 0; }
.site .must-route details:not([open]) .stage-mark { margin-bottom: 0; }
.site .must-route .stage:has(details:not([open])) { padding-bottom: 18px; }
.site .fold { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: .82rem; font-weight: 650; white-space: nowrap; }
.site summary:hover .fold { border-color: var(--hover-line); background: var(--tint); color: var(--deep); }
.site .fold .icon { width: 15px; height: 15px; transform: rotate(-90deg); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.site details:not([open]) .fold { color: var(--deep); border-color: var(--hover-line); background: var(--tint); }
.site details:not([open]) .fold .icon { transform: rotate(90deg); }
.site details[open] .fold-closed, .site details:not([open]) .fold-open { display: none; }
.site .ix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 30px; }
.site .ix > li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 12px; align-items: start; padding: 14px 10px 14px 6px; border-top: 1px solid var(--line); transition: background-color .15s; }
.site .ix > li:hover, .site .ix > li:has(h3 a:focus-visible) { background: var(--hover); }
.site .ix > li[aria-current="true"] { background: var(--tint); }
.site .ix .kind-icon { width: 30px; height: 30px; margin: 0; border-radius: 8px; }
.site .ix .kind-icon .icon { width: 17px; height: 17px; }
.site .ix h3 { font-size: 1rem; line-height: 1.45; text-wrap: pretty; }
.site .ix h3 a { color: var(--ink); text-decoration: none; }
.site .ix h3 a:hover { color: var(--deep); text-decoration: underline; }
.site .ix p { margin-top: 3px; color: var(--muted); font-size: .85rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.site .ix .cmeta { margin-top: 6px; }
.site .ix .icon-button { width: 38px; height: 38px; margin-top: -6px; }

/* 全部资源：分段筛选与表格 */
.site .filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.site .seg-field { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 650; margin: 0; }
.site .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--seg); }
.site .seg a { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border-radius: 7px; color: var(--muted); font-size: .84rem; font-weight: 650; white-space: nowrap; text-decoration: none; }
.site .seg a .icon { width: 15px; height: 15px; }
.site .seg a:hover { color: var(--ink); }
.site .seg a[aria-current="true"] { background: var(--surface); color: var(--deep); box-shadow: 0 1px 2px rgb(23 60 52 / .12), 0 1px 6px rgb(23 60 52 / .06); }
.site .seg-field select { min-height: 38px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: .84rem; }
.site .filterbar + .subfilters { margin-top: 10px; }
.site .result-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; }
.site .result-bar .count { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.site .res-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .86rem; }
.site .res-table thead th { position: sticky; top: 0; z-index: 1; padding: 9px 12px; background: var(--paper); border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: .78rem; font-weight: 700; text-align: left; white-space: nowrap; }
.site .res-table thead th a { display: inline-flex; align-items: center; gap: 4px; margin: -4px -6px; padding: 4px 6px; border-radius: 6px; color: inherit; text-decoration: none; }
.site .res-table thead th a:hover { background: var(--tint); color: var(--deep); }
.site .res-table thead th:is([aria-sort="ascending"], [aria-sort="descending"]) a { color: var(--deep); }
.site .res-table thead th a .icon { width: 13px; height: 13px; transform: rotate(90deg); opacity: .45; }
.site .res-table thead th[aria-sort="ascending"] a .icon { transform: rotate(-90deg); opacity: 1; }
.site .res-table thead th[aria-sort="descending"] a .icon { opacity: 1; }
.site .res-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.site .res-table tbody tr:not(.grp) { transition: background-color .15s; }
.site .res-table tbody tr:not(.grp):hover, .site .res-table tbody tr:has(a:focus-visible) { background: var(--hover); }
.site .res-table tbody tr[aria-current="true"] { background: var(--tint); }
.site .res-table .grp th { padding: 22px 12px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.site .res-table tbody:first-of-type .grp th { padding-top: 10px; }
.site .res-cell { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 260px; }
.site .res-cell .kind-icon { width: 30px; height: 30px; margin: 0; border-radius: 8px; }
.site .res-cell .kind-icon .icon { width: 17px; height: 17px; }
.site .res-cell a { color: var(--ink); font-weight: 700; font-size: .97rem; line-height: 1.45; text-decoration: none; }
.site .res-cell a:hover { color: var(--deep); text-decoration: underline; }
.site .res-cell p { margin-top: 3px; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.site .res-cell .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.site .res-table .kl { white-space: nowrap; }
.site .res-table .col-dir small { display: block; color: var(--muted); font-size: .78rem; }
.site .res-table :is(.col-lv, .col-pub) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.site .res-table .col-pub { color: var(--muted); }
.site .res-table .col-save { width: 52px; padding: 6px 6px 0 0; text-align: right; }

/* 按主题找：主题地图 */
.site .topic-sum { margin-top: 10px; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.site .topic-map { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; row-gap: 0; }
.site .topic-map > li { margin-bottom: 14px; display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.site .topic-tile { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .25s cubic-bezier(.16, 1, .3, 1), transform .25s cubic-bezier(.16, 1, .3, 1); }
.site .topic-tile:hover { border-color: var(--hover-line); box-shadow: 0 2px 6px rgb(23 60 52 / .06), 0 12px 28px rgb(23 60 52 / .08); transform: translateY(-2px); }
.site .topic-tile.is-empty { background: transparent; border-style: dashed; }
.site .topic-tile.is-empty .topic-icon { filter: grayscale(1); opacity: .6; }
.site .tt-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.site .tt-head h2 { font-size: 1.12rem; margin: 0; }
.site .tt-count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.site .topic-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--deep); background: var(--tint); box-shadow: inset 0 0 0 1px rgb(23 107 104 / .12); }
.site .topic-icon .icon { width: 22px; height: 22px; }
.site .topic-icon.lg { width: 56px; height: 56px; border-radius: 15px; background: var(--surface); }
.site .topic-icon.lg .icon { width: 30px; height: 30px; }
.site .tt-intro { color: var(--muted); font-size: .87rem; line-height: 1.6; margin: 0; }
.site .tt-subs { align-self: start; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.site .tt-subs li { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; color: var(--ink); }
.site .tt-subs li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.site .tt-subs li.more { background: transparent; border-style: dashed; color: var(--muted); }

/* 按主题找：方向页 */
.site .crumbs { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.site .crumbs a { color: var(--deep); text-decoration: none; font-weight: 650; }
.site .crumbs a:hover { text-decoration: underline; }
.site .topic-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(200px, 260px); align-items: center; gap: 18px; margin-top: 14px; padding: 20px 22px; border: 1px solid var(--tint-line); border-radius: 16px; background: var(--tint); }
.site .topic-hero h1 { font-size: 1.8rem; color: var(--hero-ink); }
.site .topic-hero p { margin-top: 5px; color: var(--hero-sub); font-size: .92rem; max-width: 62ch; text-wrap: pretty; }
.site .hero-bar .lv-legend { color: var(--hero-sub); }
/* 主题标题区的“订阅 RSS”（契约 docs/04-开发/topic-rss.md）：胶囊链接，尺寸与“只看必读”开关同一档，空主题页也显示。 */
.site .topic-hero p.hero-feed { margin-top: 12px; }
.site .feed-link { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px 0 10px; border: 1px solid var(--hover-line); border-radius: 17px; background: var(--surface); color: var(--deep); font-size: .84rem; font-weight: 650; text-decoration: none; }
.site .feed-link:hover { border-color: var(--green); }
.site .feed-link .icon { width: 15px; height: 15px; color: var(--green); }
.site .sub-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.site .sub-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.site a.sub-tab:hover { border-color: var(--hover-line); background: var(--tint); }
.site .sub-tab span { font-size: .76rem; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.site .sub-tab[aria-current="true"] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.site .sub-tab[aria-current="true"] span { color: inherit; opacity: .85; }
.site .sub-tab.is-empty { color: var(--muted); background: transparent; border-style: dashed; font-weight: 500; }
.site .sub-tab.all { font-weight: 700; }
.site .lroute { margin-top: 22px; }
.site .route-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; }
.site .route-head h2 { font-size: 1.35rem; }
.site .route-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.site .switch { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); color: var(--ink); font-size: .86rem; font-weight: 650; text-decoration: none; }
.site .switch .track { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--off); transition: background-color .2s; }
.site .switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(20 39 35 / .3); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.site .switch[aria-pressed="true"] { border-color: var(--hover-line); background: var(--tint); color: var(--deep); }
.site .switch[aria-pressed="true"] .track { background: var(--green); }
.site .switch[aria-pressed="true"] .track::after { transform: translateX(12px); }

/* 详情 */
.site .detail-page { max-width: 820px; margin: auto; }
.site .rd-back { display: inline-flex; gap: 6px; align-items: center; margin-bottom: 17px; font-size: .89rem; font-weight: 650; text-decoration: none; color: var(--deep); }
.site .rd-back .icon { width: 17px; height: 17px; }
.site .rd-detail :is(h1, h2)#reader-title { font-size: 2.25rem; line-height: 1.3; letter-spacing: -.03em; margin-top: 10px; text-wrap: pretty; }
.site aside .rd-detail h2#reader-title { font-size: 1.6rem; line-height: 1.35; letter-spacing: -.02em; }
.site .rd-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; font-size: .84rem; color: var(--muted); margin: 0; }
.site .rd-byline > span:first-child { color: var(--ink); font-weight: 650; }
.site .rd-byline .sep { color: var(--line-strong); }
.site .rd-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.site .rd-kinds .tag { height: 24px; padding: 0 8px; font-size: .78rem; }
.site .rd-original { margin-top: 8px; color: var(--muted); }
.site .rd-original summary { cursor: pointer; font-size: .84rem; font-weight: 650; width: max-content; }
.site .rd-original p { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.55; }
.site .notice-warm { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; margin-top: 16px; padding: 11px 13px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: .88rem; }
.site .notice-warm .icon { width: 18px; height: 18px; margin-top: 1px; }
.site .notice-warm p { margin: 0; }
.site .rd-guide { margin-top: 22px; }
.site .ai-tag { display: inline-block; font-size: 12px; font-weight: 650; line-height: 1.5; padding: 2px 9px; border-radius: 5px; background: var(--tint); color: var(--deep); letter-spacing: .02em; }
.site .rd-summary { margin-top: 10px; font-size: 18px; line-height: 1.9; color: var(--ink); text-wrap: pretty; }
.site aside .rd-summary { font-size: 17px; }
.site .rd-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.site .rd-facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 22px 0 0; padding: 14px 0; border-block: 1px solid var(--line); }
.site .rd-facts div { padding: 2px 22px 2px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.site .rd-facts div:last-child { border-right: 0; margin-right: 0; }
.site .rd-facts.aligned { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 0; }
.site .rd-facts.aligned div { margin: 0; padding: 2px 16px 2px 0; }
.site .rd-facts.cols-4 { --cols: 4; } .site .rd-facts.cols-5 { --cols: 5; } .site .rd-facts.cols-6 { --cols: 6; }
.site aside .rd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.site aside .rd-facts div { border: 0; margin: 0; padding: 0; }
.site .rd-facts dt { font-size: 12px; color: var(--muted); }
.site .rd-facts dd { margin: 2px 0 0; font-size: .94rem; }
.site .rd-facts dd a { color: var(--deep); text-underline-offset: 2px; }
.site .fact-basis { display: block; font-size: 12px; color: var(--muted); }
.site :is(.rd-related, .rd-cited) { margin-top: 28px; }
.site :is(.rd-related, .rd-cited) h3 { font-size: .95rem; font-weight: 650; margin: 0; }
.site .rd-related ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.site .rd-related a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); }
.site .rd-related a:hover { border-color: var(--line-strong); background: var(--surface); }
.site .rd-related .kind-icon { width: 28px; height: 28px; margin: 0; border-radius: 7px; }
.site .rd-related .kind-icon .icon { width: 16px; height: 16px; }
.site .rd-related b { display: block; font-weight: 600; font-size: .92rem; line-height: 1.45; }
.site .rd-related small { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; }
.site .rd-links { list-style: none; padding: 0; margin: 8px 0 0; }
.site .rd-links li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.site .rd-links li:last-child { border-bottom: 0; }
.site .rd-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.site .rd-links .icon { width: 13px; height: 13px; color: var(--muted); }
.site .rd-host { font-size: .8rem; color: var(--muted); }

/* 空状态 */
.site .void { padding: 35px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; margin-top: 18px; }
.site .void h1 { font-size: 1.8rem; }
.site .void h2 { font-size: 1.2rem; }
.site .void p { margin: 6px 0 14px; color: var(--muted); }
.site .void .void-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .site .topic-tile, .site .topic-tile:hover { transition: none; transform: none; }
  .site :is(.fold .icon, .switch .track::after) { transition: none; }
}
@media (max-width: 950px) {
  .site .topbar-inner { gap: 16px; padding-inline: 20px; }
  .site .topnav { gap: 16px; }
}
@media (max-width: 690px) {
  .site .topbar-inner { grid-template-columns: 1fr auto; min-height: 58px; gap: 0 10px; padding-inline: 16px; }
  .site .topnav { grid-row: 2; grid-column: 1 / -1; min-height: 42px; justify-content: space-between; gap: 8px; overflow-x: auto; }
  .site .top-end { gap: 7px; }
  .site .demo-tag { display: none; }
  .site .top-end .appearance button { min-width: 32px; min-height: 32px; }
  .site .topnav a { font-size: .86rem; }
  .site .topbrand { min-height: 58px; gap: 6px; }
  .site .topbrand .brandmark { width: 24px; height: 23px; flex-basis: 24px; }
  .site .topbrand strong { font-size: 1rem; }
  .site .topbrand > span:last-child { padding-left: 6px; font-size: .72rem; }
  .site .public { padding: 16px; }
  .site .intro { grid-template-columns: 1fr; padding: 12px 14px; }
  .site .intro h1 { font-size: 1.45rem; }
  .site .intro p { margin-top: 4px; font-size: .84rem; }
  .site .map { display: none; }
  .site .list-head { margin-top: 15px; align-items: stretch; flex-direction: column; gap: 6px; }
  .site .list-head h2 { font-size: 1.44rem; }
  .site .finder { width: 100%; }
  .site .typebar { margin-top: 6px; padding-bottom: 7px; gap: 4px; }
  .site .typebar-end { width: 100%; justify-content: space-between; }
  .site .typebar.bar { margin-top: 14px; padding: 4px; overflow-x: auto; flex-wrap: nowrap; }
  .site .typebar.bar .tchips { flex-wrap: nowrap; }
  .site .typebar.bar > .muted { display: none; }
  .site .tchips { gap: 2px; }
  .site .tchip { gap: 4px; padding: 5px 6px; font-size: .84rem; flex: none; }
  .site .tchip .icon { width: 14px; height: 14px; }
  .site .group, .site .group.no-date { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
  .site .group.no-date .cards { grid-column: 1; }
  .site .date { display: flex; gap: 7px; align-items: baseline; padding: 0; }
  .site .date h2 { font-size: .89rem; }
  .site .resource-card { grid-template-columns: 28px minmax(0, 1fr) 34px; gap: 10px; padding: 11px 8px; }
  .site .latest .resource-card { grid-template-columns: 12px minmax(0, 1fr) 34px; gap: 8px; padding: 7px 4px; }
  .site .latest .cards::before { left: 9px; }
  .site .latest .station-dot { width: 11px; height: 11px; }
  .site .resource-card + .resource-card::before { left: 46px; right: 8px; }
  .site .kind-icon { width: 28px; height: 28px; margin-top: -2px; border-radius: 7px; }
  .site .kind-icon .icon { width: 16px; height: 16px; }
  .site .card-text h3 { font-size: 1rem; }
  .site .card-text p { font-size: .82rem; }
  .site .cmeta { font-size: .75rem; }
  .site :is(.resource-card, .lrow, .ix) .icon-button { width: 34px; height: 40px; }
  .site .page-head h1 { font-size: 1.5rem; }
  .site .page-head .lede { font-size: .88rem; }
  .site .lrow { grid-template-columns: 28px minmax(0, 1fr) 34px; gap: 10px; margin-inline: -8px; padding: 13px 8px; }
  .site .lrow + .lrow::before { left: 46px; right: 8px; }
  .site .lrow .kind-icon { width: 28px; height: 28px; border-radius: 8px; }
  .site .lrow h3 { font-size: 1rem; }
  .site .route-head { align-items: flex-start; flex-direction: column; }
  .site .route-strip { grid-template-columns: 1fr; margin-top: 16px; }
  .site .route-strip li + li { border-left: 0; border-top: 1px solid var(--tint-line); }
  .site .route-strip :is(a, .strip-off) { padding: 10px 14px; }
  .site .must-route .stage { padding-bottom: 22px; }
  .site .ix > li { grid-template-columns: 28px minmax(0, 1fr) 34px; gap: 10px; padding: 12px 2px; }
  .site .filterbar { gap: 10px; padding: 10px; margin-top: 14px; }
  .site .seg-field { width: 100%; justify-content: space-between; }
  .site .seg { overflow-x: auto; max-width: calc(100% - 44px); }
  .site .seg a { padding: 0 8px; }
  .site .seg-field select { flex: 1; max-width: calc(100% - 44px); }
  .site .res-table, .site .res-table tbody { display: block; min-width: 0; }
  .site .res-table thead { display: none; }
  .site .res-table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site .res-table td { padding: 0; border: 0; }
  .site .res-table td:first-child { flex: 1 1 calc(100% - 52px); order: -2; }
  .site .res-table .col-save { order: -1; flex: none; width: 40px; margin-left: auto; padding: 0; }
  .site .res-table :is(.col-kind, .col-dir, .col-lv) { font-size: .78rem; }
  .site .res-table .col-kind { margin-left: 42px; }
  .site .res-table :is(.col-pub, .col-dir small) { display: none; }
  .site .res-table .grp { display: block; padding: 0; border: 0; }
  .site .res-table .grp th { display: block; padding: 16px 0 6px; }
  .site .res-cell { min-width: 0; }
  .site .topic-map { gap: 10px; }
  .site .topic-tile { padding: 15px 14px 14px; }
  .site .topic-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 12px 14px; }
  .site .topic-hero h1 { font-size: 1.4rem; }
  .site .topic-hero .topic-icon.lg { width: 44px; height: 44px; border-radius: 12px; }
  .site .hero-bar { grid-column: 1 / -1; }
  .site .sub-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
  .site .sub-tab { flex: none; }
  .site .stage { padding-left: 0; }
  .site .stage::before { display: none; }
  .site .stage-mark { margin-left: 0; }
  .site .rd-detail :is(h1, h2)#reader-title { font-size: 1.65rem; }
  .site .rd-summary { font-size: 17px; }
  .site .rd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .site .rd-facts div { border: 0; margin: 0; padding: 0; }
}

/* 回到顶部（用户 2026-11-17）：往下翻过 600px 出现（static/app.js 加 .show），点一下回到页首；没有脚本时不显示，页面照常可用 */
.site .to-top { position: fixed; right: 20px; bottom: 24px; z-index: 20; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgb(0 0 0 / .12); font-size: 20px; line-height: 1; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.site .to-top.show { opacity: 1; visibility: visible; transform: none; }
.site .to-top:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .site .to-top { transition: none; } }
@media print { .site .to-top { display: none; } }
