/* 视觉初版：视口固定的动态光晕 + 半透明毛玻璃，正文保持阅读对比度。 */
:root {
  --reading-paper: #fcfdff;
  --reading-ink: #366d9d;
  --reading-line: #6193bc59;
  --glass: #ffffff70;
  --glass-border: #ffffffa6;
  --glass-shadow: inset 0 1px 0 #ffffffa6, 0 18px 50px -26px #315a8259;
  --glow-blue: #91bee3;
  --glow-mist: #9bcfd0;
  --glow-lilac: #bdb1df;
  --glow-opacity: .56;
  --glow-breathe-opacity: .72;
}
[data-theme="dark"] {
  --reading-paper: #101b28;
  --reading-ink: #a4ccee;
  --reading-line: #78a6cb4d;
  --glass: #14233499;
  --glass-border: #b5d4f126;
  --glass-shadow: inset 0 1px 0 #d8ebff14, 0 18px 50px -26px #0009;
  --glow-blue: #2d5680;
  --glow-mist: #285c62;
  --glow-lilac: #514875;
  --glow-opacity: .32;
  --glow-breathe-opacity: .45;
}
body { isolation: isolate; }
.ambient-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); opacity: 0; }
body:has(.land-next) .ambient-sky { opacity: 1; }
body:not(:has(.land-next)) .ambient-glow, body:not(:has(.land-next)) .ambient-glow::before { animation-play-state: paused; }
/* 2026-09-26 光晕几何重算（用户：「稍微贴边一点，但也不要完全贴着」）
   原来三团各 85vw×90vh、漂移 1/3 屏：**团本身比屏幕还宽**，可见的芯（径向渐变在
   68% 处才透明，所以芯的可见半径 ≈ 半轴 × 0.68）必然盖到中间，漂移又把芯推到
   50vw/58vh 一带 → 实测最暗的一块落在正中偏下（浅色 219.8 / 深色 40.9），而左边缘
   浅色 247.6、深色 17.1 —— 几乎没有任何光。换算成判据是三条：
     ① 两条轴都要**收进半个视口**（62vw×72vh，短的那一边按 vmin 算），
        2×(半轴×0.68) < 短边 成立，芯才不会伸过中线；
     ② 起点让**椭圆的端点落在视口外**（否则会看见一道弧线，而不是一团光）；
     ③ 漂移取小幅度，让亮的芯**始终停在边附近**，只有外侧的淡尾扫过中间 ——
        三团同时走到中段，也不会在正中叠出第二块暗斑。
   三团分守三条边：蓝沿底边由左下→右下、雾守右上、淡紫守左上，四角各有一团铺到；
   芯的中心全程留在 15–84vw / 12–88vh（单团的芯只有 31vw×34vh）。周期、呼吸、
   颜色、透明度都不动，只改几何与漂移幅度。 */
.ambient-glow { position: absolute; display: block; width: 62vw; height: 72vh; border-radius: 50%; will-change: transform; }
.ambient-glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse, var(--glow-color), transparent 68%); opacity: var(--glow-opacity); animation: glowBreathe 7s ease-in-out infinite alternate; }
.glow-blue { --glow-color: var(--glow-blue); left: -20vw; bottom: -16vh; animation: glowDriftBlue 12s ease-in-out infinite alternate; }
.glow-mist { --glow-color: var(--glow-mist); right: -32vw; top: -16vh; animation: glowDriftMist 15s ease-in-out -5s infinite alternate; }
.glow-lilac { --glow-color: var(--glow-lilac); left: -26vw; top: -4vh; animation: glowDriftLilac 17s ease-in-out -9s infinite alternate; }
.glow-mist::before { animation-delay: -3s; }
.glow-lilac::before { animation-delay: -6s; }
@keyframes glowDriftBlue { to { transform: translate(15vw, -3vh); } }
@keyframes glowDriftMist { to { transform: translate(-15vw, 3vh); } }
@keyframes glowDriftLilac { to { transform: translate(10vw, -6vh); } }
@keyframes glowBreathe { to { opacity: var(--glow-breathe-opacity); transform: scale(1.06); } }
/* 竖屏窄屏：判据 ① 要按**短的那一边**取，桌面那套 (62vw, 72vh) 在竖屏会反过来 ——
   团比屏还高，芯的可见半径就超过了半个短边，三团又在中间糊成一片
   （实测 390×844：雾的芯内伸到 58% 宽）。手机竖屏换成 46vw×32vh，
   让 2×(半轴×0.68) < 短边 重新成立；起点仍让椭圆端点留在视口外。 */
@media (max-width: 560px) {
  .ambient-glow { width: 46vw; height: 32vh; }
  .glow-blue { top: auto; left: -12vw; bottom: -9vh; }
  .glow-mist { left: auto; right: -24vw; top: -7vh; }
  .glow-lilac { right: auto; left: -18vw; top: -5vh; }
}
.land-next { min-height: calc(100svh - var(--navh, 64px)); }
.land-card, .reading-shell .main, .card, .demo-switch {
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(135%); backdrop-filter: blur(22px) saturate(135%);
}
.land-card:hover { background: color-mix(in srgb, var(--glass) 85%, var(--surface)); border-color: var(--glass-border); }
.land-card-icon { width: 44px; height: 44px; }
.reading-shell { max-width: 1160px; gap: 40px; }
.reading-shell .main {
  margin: 40px 0 64px; padding: 0;
  border-radius: 20px;
}
.reading-heading {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 34px 44px 32px; border-radius: 19px 19px 0 0;
  background: linear-gradient(120deg, transparent, color-mix(in srgb, var(--glass) 35%, transparent));
  border-bottom: 1px solid var(--border);
}
.reading-art {
  position: absolute; pointer-events: none; z-index: -1;
  width: 400px; height: 240px; right: -48px; top: -20px;
  color: var(--reading-line); stroke: currentColor; stroke-width: 1;
  mask-image: linear-gradient(90deg, transparent, #000 48%);
}
.reading-orb { fill: none; stroke: none; }
.reading-pin { fill: var(--reading-ink); stroke: var(--reading-paper); stroke-width: 3; }
.reading-kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
  font-size: 11px; font-weight: 550; letter-spacing: .06em; color: var(--reading-ink);
}
.reading-kicker a { white-space: nowrap; color: var(--text-2); letter-spacing: 0; }
.reading-kicker a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.reading-rule { flex: 1; min-width: 12px; border-top: 1px dotted var(--reading-line); }
.reading-heading .page-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.4; letter-spacing: -.035em; margin: 0 0 16px; overflow-wrap: anywhere; }
/* 标题后面没有说明小字时，标题就是 header 的最后一个子元素 —— 那 16px 的下边距是
   用来和说明拉开距离的，没有说明就不该留（否则和 header 自己的 32px 下内边距叠成双份）。 */
.reading-heading .page-title:last-child { margin-bottom: 0; }
.reading-heading .page-desc { margin: 0; font-size: 13px; line-height: 1.9; }
.reading-heading .page-desc a {
  display: inline-block; margin: 3px 0; padding: 3px 10px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 6px;
  text-decoration: none; color: var(--link);
}
.reading-heading .page-desc a:hover { background: var(--hover); border-color: var(--reading-ink); }
.reading-body { padding: 32px 44px 56px; }
.reading-body .prose { max-width: 680px; }
.reading-body .prose h2 { border-bottom: 0; margin: 44px 0 16px; padding: 0; font-size: 22px; letter-spacing: -.015em; }
.reading-body .prose h2::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 16px; background: var(--reading-ink); opacity: .5; border-radius: 3px; }
.reading-body .prose blockquote { margin: 0 0 24px; padding: 14px 18px; background: var(--hover); border-left: 3px solid var(--reading-ink); border-radius: 0 10px 10px 0; }
.reading-body .prose pre { padding: 18px 20px; border: 1px solid var(--border); background: var(--hover); border-radius: 10px; }
.reading-body .prose hr { width: 48px; margin: 40px auto; border-color: var(--reading-line); }
.reading-body .stage { margin-bottom: 36px; }
.reading-body .stage-head { gap: 10px; margin-bottom: 12px; padding: 0; border: 0; }
.reading-body .stage-head::after { content: ""; flex: 1; height: 1px; margin-left: 4px; background: var(--border); }
.reading-body .stage-dot { width: 6px; height: 18px; border-radius: 4px; }
.reading-body .stage-name { font-size: 14px; letter-spacing: .025em; }
.reading-body .stage-count { padding: 0 7px; min-width: 24px; text-align: center; border: 1px solid var(--border); border-radius: 7px; font: 11px/21px var(--mono); }
.reading-body .entries { display: grid; gap: 9px; }
.reading-body .entry {
  position: relative; display: block; padding: 18px 20px;
  border: 1px solid var(--glass-border); border-radius: 13px;
  background: color-mix(in srgb, var(--glass) 48%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 45%, transparent);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              border-color 220ms var(--ease), background 220ms var(--ease);
}
/* 悬停的"抬起来"对**所有**条目生效（2026-09-25 用户要求）：
   不可展开的条目以前完全没有 hover，整行像"死的"。现在只把**小三角与标题右移**
   留给可展开的 —— 那两个是"这里能点开"的承诺，不可展开的条目不该承诺。
   光标仍是默认箭头（`.is-expandable` 才给 pointer），因为不可展开的确实点不开。 */
@media (hover: hover) and (pointer: fine) {
  .reading-body .entry:where(:not(.is-floating)):hover {
    transform: translateY(-2px) scale(1.006);
    border-color: color-mix(in srgb, var(--reading-ink) 42%, var(--glass-border));
    background: color-mix(in srgb, var(--glass) 78%, transparent);
    box-shadow: inset 0 1px 0 var(--glass-border),
                0 12px 26px -18px color-mix(in srgb, var(--reading-ink) 65%, transparent);
  }
  .reading-body .entry.is-expandable:hover .entry-title > .t { transform: translateX(14px); }
  .reading-body .entry.is-expandable:hover .entry-disclosure { opacity: 1; transform: translateX(0); }
}
.entry-disclosure {
  position: absolute; left: 0; top: .45em; width: 9px; height: 12px;
  color: var(--reading-ink); pointer-events: none;
  opacity: 0; transform: translateX(-5px);
  transition: opacity 240ms cubic-bezier(.22, 1, .36, 1), transform 320ms cubic-bezier(.22, 1, .36, 1);
}
.entry-disclosure svg { display: block; width: 100%; height: 100%; }
.reading-body .entry:focus-within {
  border-color: color-mix(in srgb, var(--reading-ink) 55%, var(--glass-border));
  background: color-mix(in srgb, var(--glass) 78%, transparent);
}
.reading-body .entry.is-expandable:focus-within .entry-title > .t { transform: translateX(14px); }
.reading-body .entry.is-expandable:focus-within .entry-disclosure { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion-preview="full"]) .reading-body .entry { transition: none; }
  html:not([data-motion-preview="full"]) .reading-body .entry.is-expandable:where(:not(.is-floating)):hover { transform: none; }
  /* 不可展开的条目现在也有 hover 抬升，同样要在"减少动态效果"下压掉。
     单独写一条、**不合并进上面那条** —— 上面那条的特异度是专门用来压过
     `.entry.is-floating` 的中心锚的（见下面 §浮起那段注释），动它会出 bug。
     不可展开的条目永远不会 floating，所以这条不需要那个考量。 */
  html:not([data-motion-preview="full"]) .reading-body .entry:not(.is-expandable):where(:not(.is-floating)):hover { transform: none; }
  html:not([data-motion-preview="full"]) .reading-body .entry .entry-title > .t,
  html:not([data-motion-preview="full"]) .entry-disclosure { transition: none; }
  /* Local explicit motion review also overrides the global reduced-motion duration. */
  html[data-motion-preview="full"] .reading-body .entry { transition-duration: 220ms !important; }
  html[data-motion-preview="full"] .reading-body .entry-title > .t { transition-duration: 320ms !important; }
  html[data-motion-preview="full"] .entry-disclosure { transition-duration: 240ms, 320ms !important; }
}
.reading-body .entry-dot { display: none; }
.reading-body .entry-body { width: 100%; }
.reading-body .entry-title { position: relative; gap: 12px; font-size: 16px; line-height: 1.65; letter-spacing: -.015em; }
.reading-body .entry-title > .t { overflow-wrap: anywhere; transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
.reading-body .entry.is-expandable .entry-title > .t { margin-right: 14px; max-width: calc(100% - 14px); }
.reading-body .entry-title > .ld-fill { opacity: .55; min-width: 20px; }
.reading-body .entry-title > .ld-date { font-size: 11px; letter-spacing: 0; }
.reading-body .entry-sum { margin-top: 6px; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.reading-body .entry .entry-meta { margin-top: 12px; }
.reading-body .entry-project { display: inline-flex; align-items: center; gap: 12px; color: var(--link); text-decoration: none; font-size: 12px; }
.reading-body .entry-project:hover { text-decoration: underline; text-underline-offset: 4px; }
.reading-body .entry-project:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 3px; }
.reading-body .entry-pending { font-size: 11px; }
.reading-body .archive-month { margin-bottom: 12px; }
@media (max-width: 600px) {
  .reading-body .entry { padding: 15px 14px; border-radius: 11px; }
  .reading-body .entry-title { flex-wrap: wrap; gap: 4px 10px; font-size: 15px; }
  .reading-body .entry-title > .t { flex: 1 1 100%; }
.reading-body .entry-title > .ld-fill { display: none; }
  .reading-body .entry-title > .ld-date { font-size: 10px; }
  .reading-body .entry-sum { margin-top: 8px; }
}
.reading-body .entry-meta { font-size: 12px; }
.reading-body > :last-child { margin-bottom: 0; }
.reading-shell .side-link[aria-current="page"] { color: var(--reading-ink); }
@media (min-width: 941px) {
  .reading-shell .side { padding-top: 46px; }
  .reading-shell .side-label { letter-spacing: .1em; }
  .reading-shell .side-row.is-active:not(.side-group-row) { box-shadow: inset 2px 0 var(--reading-ink); }
}
@media (max-width: 940px) {
  .reading-shell { max-width: 800px; }
  .reading-shell .main { margin: 28px 0 48px; }
  .js .side, .js .directory-toggle {
    background: var(--glass); color: var(--text); border-color: var(--glass-border); box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  }
  .js .directory-heading { background: transparent; position: static; }
}
@media (max-width: 600px) {
  .reading-shell { padding: 0 12px; gap: 0; }
  .reading-shell .main { margin: 16px 0 36px; border-radius: 16px; }
  .reading-heading { padding: 24px 22px 26px; border-radius: 15px 15px 0 0; }
  .reading-kicker { margin-bottom: 24px; gap: 8px; font-size: 10px; letter-spacing: .02em; }
  .reading-heading .page-title { font-size: 28px; }
  .reading-heading .page-desc { font-size: 12px; }
  .reading-art { right: -120px; opacity: .8; }
  .reading-body { padding: 26px 22px 40px; }
  .reading-body .prose h2 { font-size: 20px; margin-top: 36px; }
  .reading-body .prose pre { padding: 16px; }
  .land-card-icon { width: 34px; height: 34px; }
}
/* 账号管理：独立于文章排版，沿用玻璃与冷色线条。 */
.reading-shell:has(.account-dashboard) .reading-body { padding: 28px 32px 40px; }
.reading-shell:has(.account-dashboard) .reading-heading { padding: 30px 32px; }
.account-dashboard { display: grid; gap: 32px; }
.account-dashboard h2 { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.02em; }
.account-dashboard h2::before { display: none; }
.account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.account-section-head p { margin: 7px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.account-eyebrow { display: block; margin-bottom: 6px; color: var(--reading-ink); font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.account-section-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid var(--glass-border); border-radius: 14px; color: var(--reading-ink); background: var(--glass); }
.account-section-icon svg { width: 25px; height: 25px; }
.account-create { padding: 24px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--glass); box-shadow: var(--glass-shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.account-create-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 124px auto; gap: 14px; align-items: end; }
.account-create-form .field { min-width: 0; margin: 0; }
.account-create-form label { font-size: 12px; }
.account-create-form .input, .account-create-form .btn { min-height: 42px; }
.account-create-form .btn { justify-content: center; font-size: 13px; }
.account-count { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px; margin-left: 6px; border: 1px solid var(--border); border-radius: 8px; font: 12px var(--mono); color: var(--text-2); vertical-align: 2px; }
.account-dashboard .mg-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.account-dashboard .mg-item { margin: 0; min-width: 0; border: 1px solid var(--glass-border); border-radius: 12px; background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.account-dashboard .mg-item > details > summary { padding: 17px 18px; border-radius: 12px; transition: background 160ms ease; }
.account-dashboard .mg-item > details > summary:hover { background: var(--hover); }
.account-dashboard .mg-item > details[open] > summary { border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.account-dashboard .mg-row { gap: 10px; align-items: center; }
.account-dashboard .mg-note { color: var(--text); font-weight: 550; }
.account-dashboard .mg-code { color: var(--reading-ink); font-size: 12px; padding: 3px 7px; background: var(--hover); border-radius: 5px; }
.mg-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mg-avatar { flex: 0 0 30px; display: grid; place-items: center; height: 30px; border-radius: 10px; color: var(--reading-ink); background: var(--hover); font: 500 13px var(--mono); }
.mg-role { font-size: 11px; color: var(--text-3); }
.account-dashboard .mg-state { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; font-size: 11px; background: color-mix(in srgb, currentColor 7%, transparent); white-space: nowrap; }
.account-dashboard .mg-state::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.account-dashboard .mg-sub { margin-top: 8px; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.account-dashboard .mg-open { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.account-dashboard .mg-open::after { content: ""; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); transition: transform 160ms ease; }
.account-dashboard details[open] .mg-open::after { transform: rotate(225deg); }
.account-dashboard .mg-body { padding: 18px; gap: 12px; flex-direction: row; flex-wrap: wrap; }
.account-dashboard .mg-form { gap: 12px; flex-basis: 100%; }
.account-dashboard .mg-form:has(input[type="password"]) { align-items: flex-start; }
.account-dashboard .mg-form:has(input[type="password"]) > .btn { margin-top: 26px; }
.account-dashboard .mg-note-line { flex-basis: 100%; }
.account-dashboard .mg-fields { flex: 1; min-width: 0; gap: 12px; }
.account-dashboard .mg-f { flex: 1; min-width: 130px; gap: 6px; color: var(--text-2); }
.account-dashboard .mg-f .input { width: 100%; min-width: 0; min-height: 40px; background: var(--glass); }
.account-dashboard .mg-body .btn { min-height: 40px; font-size: 12px; }
.account-dashboard .mg-form:has(.mg-danger) { border-top: 1px solid var(--border); padding-top: 16px; }
.account-empty { padding: 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-3); }
.account-empty > span { font-size: 24px; color: var(--reading-ink); }
.account-empty p { margin: 6px 0; color: var(--text-2); font-size: 14px; }
.account-empty small { font-size: 12px; }
.reading-shell:has(.account-dashboard) .auth-alert { max-width: none; }
.reading-shell:has(.account-dashboard) .auth-code { max-width: none; background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-color: var(--glass-border); box-shadow: var(--glass-shadow); }
@media (max-width: 1100px) {
  .account-create-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .account-create-form > .field:nth-of-type(3) { grid-column: 1 / -1; }
  .account-create-form > .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .reading-shell:has(.account-dashboard) .reading-heading { padding: 24px 20px; }
  .reading-shell:has(.account-dashboard) .reading-body { padding: 22px 14px 28px; }
  .account-create { padding: 18px; }
  .account-create-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .account-section-head { gap: 12px; }
  .account-section-head > p { max-width: 90px; text-align: right; font-size: 11px; }
  .account-dashboard .mg-item > details > summary, .account-dashboard .mg-body { padding: 14px; }
  .account-dashboard .mg-row { gap: 8px; }
  .mg-person { flex: 1; }
  .account-dashboard .mg-row:has(.mg-person) { display: grid; grid-template-columns: 1fr auto auto; }
  .account-dashboard .mg-row:has(.mg-person) .mg-person { grid-column: 1 / -1; }
  .account-dashboard .mg-row:has(.mg-person) .mg-tags { grid-column: 1 / -1; }
  .account-dashboard .mg-open { margin-left: auto; }
  .account-dashboard .mg-state { margin-left: 0; }
  .account-dashboard .mg-fields { flex-basis: 100%; }
  .account-dashboard .mg-body .btn { min-height: 44px; }
  .account-dashboard .mg-form:has(input[type="password"]) > .btn { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion-preview]) .ambient-glow, html:not([data-motion-preview]) .ambient-glow::before { animation: none; will-change: auto; }
}
@media (max-width: 360px) {
  .land-card { padding: 10px 6px; gap: 8px; }
  .land-card-icon { width: 30px; height: 30px; }
  .land-card-t { font-size: 10.5px; }
}
@supports not (backdrop-filter: blur(1px)) {
  .land-card, .reading-shell .main, .card, .demo-switch, .js .side, .js .directory-toggle, .account-create, .account-dashboard .mg-item, .reading-shell:has(.account-dashboard) .auth-code { background: color-mix(in srgb, var(--surface) 92%, transparent); }
}

/* ============================================================== 条目时间线
   2026-09-24：点条目卡片 → 卡片**完全浮起来**：脱离页面流、固定定位、
   **不受页面滚动影响**，纵向展开「变更时间线」；背景加深 + 模糊。
   列表原位留一个等高占位，所以列表几何不跳。
   动画只动 top/left/width、grid-template-rows 与 opacity。
   ------------------------------------------------------------------------- */

/* 整块可点的透明按钮：键盘可达 + 带 aria 状态，且不挡「查看成品」链接（那个在 .entry-head 外面） */
.reading-body .entry-head { position: relative; }
.reading-body .entry.is-expandable { cursor: pointer; }
.reading-body .entry-toggle {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.reading-body .entry-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 10px; }
.reading-body .entry-head > *:not(.entry-toggle) { position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 浮起来时列表原位的占位：只占高度，不画任何东西（由 JS 插入） */
.reading-body .entry-placeholder { margin: 0; padding: 0; border: 0; background: none; }

/* ============================================== 教程页侧栏 = 这篇文章的目录
   2026-09-24：进教程时侧栏整块换成文章结构（## 大章 / ### 小节 / #### 更细）。
   行、缩进、折叠全部复用 .side-* 那套（单一事实来源），这里只加"头"和"尾"。 */
/* 顶部这一行 = 侧栏里 Tutorials 那一行的**同款**（同结构、同 side_chev() 箭头、文字就是 Tutorials）。
   只两处不同：箭头转成指向左（这是"返回"），以及它不是开关所以不要手型光标。 */
.side-outline .outline-back-row { margin-bottom: 10px; }
.side-outline .outline-back-chev { cursor: default; }
.side-outline .outline-back-chev .side-chev { transform: rotate(90deg); }
.side-outline .outline-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.side-outline .outline-ai { margin: 14px 10px 0; padding-top: 12px; border-top: 1px solid var(--border); }
/* 目录里**没有箭头的裸链接**要补上和箭头槽等宽的空白（槽 20 + 行内间距 2 + 行内边距 6 = 28px）。
   不补的话："有子项的行"文字被箭头推右，"没子项的行"是裸链接、顶在最左边 ——
   同一级参差不齐，甚至子级比父级文字还靠左。
   **只作用于 .side-sub / .side-sub2 下 li 的直接子链接**：行内的链接（`.side-row .side-link`）
   自己已经有 padding-left: 0 把它抵消了，别再盖回去。 */
.side-outline .side-sub > li > .side-link,
.side-outline .side-sub2 > li > .side-link { padding-left: 28px; }
.side-outline .side-link { text-decoration: none; }

/* 背景：只轻轻压暗 + **轻微**模糊（20px 太糊了，看不清页面在哪），
   提饱和一点点保持通透；真正的毛玻璃材质放在卡片自己身上。 */
.entry-backdrop {
  position: fixed; inset: 0; z-index: 35; opacity: 0; pointer-events: none;
  background: rgba(9, 20, 34, .20);
  backdrop-filter: blur(9px) saturate(125%);
  -webkit-backdrop-filter: blur(9px) saturate(125%);
  transition: opacity 420ms var(--ease);
}
.entry-backdrop.is-on { opacity: 1; pointer-events: auto; }
[data-theme="dark"] .entry-backdrop { background: rgba(2, 6, 12, .32); }

/* 卡片浮起来分两个类，**故意拆开**：
     .is-floating 只管**几何**（脱离文档流 / 固定在视口 / 以中心为锚 / 位移过渡）
     .is-lifted   只管**材质**（圆角 / 发丝边 / 半透明底 / 大半径模糊 / 分层阴影）
   为什么要拆：展开是"设状态 → 让 CSS 过渡跑完"，一次到位；
   而收起最后必须把卡片从 fixed 交还给文档流，那是一次**状态翻转**，
   翻转那一帧里凡是不在过渡列表里的属性都会硬切（跳跃、材质突变都出在这儿）。
   拆开之后，收起可以**先撤材质**（顺着动画淡回列表态）、几何留到最后一帧再撤 ——
   那时卡片已经和列表里的样子完全一致，翻转就看不出来了。逆向于是和正向对称。 */
.reading-body .entry.is-floating {
  position: fixed; z-index: 60; margin: 0;
  /* 「弹」：位移用带回弹的曲线，落点会明显过冲再收回 */
  transition: top 620ms cubic-bezier(.26, 1.62, .44, 1),
              left 420ms var(--ease), width 420ms var(--ease),
              border-radius 420ms var(--ease), border-color 420ms var(--ease),
              background-color 420ms var(--ease), box-shadow 420ms var(--ease);
}
/* 材质走苹果那套：半透明表面 + 大半径背景模糊 + 提饱和 + 发丝边 + 分层阴影 + 更大圆角 */
.reading-body .entry.is-lifted {
  border-radius: 22px;
  border-color: color-mix(in srgb, #ffffff 62%, transparent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 72%, transparent),
    0 2px 6px -2px rgba(9, 20, 34, .16),
    0 18px 40px -18px rgba(9, 20, 34, .34),
    0 48px 96px -40px rgba(9, 20, 34, .46);
}
[data-theme="dark"] .reading-body .entry.is-lifted {
  border-color: color-mix(in srgb, #ffffff 16%, transparent);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 12%, transparent),
    0 2px 6px -2px rgba(0, 0, 0, .40),
    0 18px 40px -18px rgba(0, 0, 0, .55),
    0 48px 96px -40px rgba(0, 0, 0, .60);
}
/* 浮起时的中心锚。**特异度必须压过 reading.css:132 那条**：
     html:not([data-motion-preview="full"]) .reading-body .entry.is-expandable:where(:not(.is-floating)):hover { transform: none }
   它是 (0,4,1)，比 `.reading-body .entry.is-floating:hover` 的 (0,4,0) 高 ——
   开着「减少动态效果」的机器上，指针一停到卡片上就会把 translateY(-50%) 抹掉，
   卡片当场往下掉半张卡高（实测 top 187.8 → 387，正好 h/2 = 199）。
   这里用 `html body` 前缀把特异度提到 (0,4,2)，hover 与非 hover 都钉住。 */
html body .reading-body .entry.is-floating,
html body .reading-body .entry.is-floating:hover { transform: translateY(-50%); }
/* 落回列表的那一帧：**只让几何瞬时，材质照常过渡**。
   几何必须瞬时：`top/left/width` 正在被清空，而 `transform` 的 `translateY(-50%) → none`
   若被 `.entry` 自带的 `transition: transform 220ms` 接住，卡片会向上跳半张卡高再滑回来
   （实测跳 47px，正是 h/2）。
   但材质**不能**一起冻住 —— 原来这里写的是 `transition: none !important`，
   于是阴影 / 底色 / 边框 / 圆角在那一帧"啪"地一变（大投影→列表投影、
   半透明白→--glass 48%、22px 圆角→13px），看着就是最后那一下不自然的跳变。
   所以这里只声明材质那几个属性，几何天然不在列表里。 */
.reading-body .entry.is-settling {
  transition-property: box-shadow, border-color, background-color, border-radius !important;
  transition-duration: 260ms !important;
  transition-timing-function: var(--ease) !important;
}
/* 滚动锁定**不能**用 html/body 的 `overflow: hidden`：
   根元素的 overflow 会**传播到视口**，`position: sticky` 的顶栏立刻失效 ——
   实测展开后 `.land` 的 top 从 0 变成 -315.2（正好等于当时的 scrollY），上栏被挤出屏幕。
   所以改成在 JS 里用非 passive 的 wheel 监听挡掉页面滚动（卡片自己的滚动区照常）。
   下面这条只管层级：顶栏要在背景层 35 之上、卡片 60 之下。 */
html.entry-float-open .land { z-index: 45; }
/* 三角形（和标题为它让出的那 14px）挂 **is-open**，不是 is-floating。
   is-floating 要留到收起最后一帧才摘，挂它上面的话三角形会一直撑到收起结束才"啪"地消失；
   挂 is-open 则在收起一开始就跟着往回退，和收起同步。 */
.reading-body .entry.is-expandable.is-open .entry-disclosure { opacity: 1; transform: translateX(0) rotate(90deg); }
.reading-body .entry.is-open .entry-title > .t { transform: translateX(14px); }
/* .main 自带 backdrop-filter（blur 22px），那会让它既是**层叠上下文**、
   又是**固定定位的包含块** —— 卡片会被关在里面、压在背景层之下，也浮不出页面。
   浮起来期间把这一层摘掉；背景该有的模糊交给 .entry-backdrop 自己负责。 */
body:has(.entry.is-floating) .reading-shell .main { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* 展开机制：grid 轨道 0fr → 1fr，纯 CSS，不需要 JS 量高度。
   曲线带一点回弹 —— 轨道会短暂超过内容高度再收回，读起来就是「弹」一下。 */
.reading-body .entry-timeline {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 620ms cubic-bezier(.28, 1.58, .48, 1), opacity 340ms var(--ease);
}
.reading-body .entry.is-open .entry-timeline { grid-template-rows: 1fr; opacity: 1; }
.reading-body .entry-timeline-in { min-height: 0; overflow: hidden; }
/* 时间线比屏幕高时**滚的是它自己**：overscroll-behavior 挡住滚动链，不让它带着页面动。
   max-height 同时用 vh 和「视口高 - 卡头高度」取小值，保证整张卡连上下留白都放得下。 */
.reading-body .entry.is-floating .entry-timeline-in {
  max-height: min(52vh, calc(100vh - 200px));
  overflow-y: auto; overscroll-behavior: contain;
}
.reading-body .entry.is-open .entry-timeline-panel {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--reading-line) 85%, transparent);
}
/* 时间线逐条错开淡入（苹果那种"内容跟着容器一起落位"的感觉）。
   只动 opacity / transform，不改布局几何。 */
@keyframes tlItemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reading-body .entry.is-open .tl-item { animation: tlItemIn 480ms cubic-bezier(.34, 1.30, .50, 1) both; }
.reading-body .entry.is-open .tl-item:nth-child(1) { animation-delay: 80ms; }
.reading-body .entry.is-open .tl-item:nth-child(2) { animation-delay: 135ms; }
.reading-body .entry.is-open .tl-item:nth-child(3) { animation-delay: 190ms; }
.reading-body .entry.is-open .tl-item:nth-child(4) { animation-delay: 245ms; }
.reading-body .entry.is-open .tl-item:nth-child(5) { animation-delay: 300ms; }
.reading-body .entry.is-open .tl-item:nth-child(n+6) { animation-delay: 350ms; }

/* 时间线本体 */
.reading-body .tl-caption {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 13px; font-size: 11px; letter-spacing: .04em; color: var(--text-3);
}
.reading-body .tl-close {
  margin-left: auto; width: 26px; height: 26px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font: 15px/1 var(--mono); color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-3) 22%, transparent);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 240ms cubic-bezier(.34, 1.40, .50, 1), color var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.reading-body .tl-close:hover {
  color: var(--text); transform: scale(1.09);
  border-color: color-mix(in srgb, var(--reading-ink) 45%, transparent);
}
.reading-body .tl-close:active { transform: scale(.93); }
/* 左内边距是给"当前"节点的高亮环让位：那个环是向外 4px 的 box-shadow，
   而外层 .entry-timeline-in 是 overflow:hidden（收起时要裁切），贴着左边就会被切掉。 */
.reading-body .entry-tl { list-style: none; margin: 0; padding: 0 0 0 6px; }
.reading-body .tl-item { position: relative; padding: 0 0 17px 24px; }
.reading-body .tl-item:last-child { padding-bottom: 0; }
.reading-body .tl-item::before {
  content: ""; position: absolute; left: 5px; top: 17px; bottom: -2px; width: 1px;
  background: var(--reading-line);
}
.reading-body .tl-item:last-child::before { display: none; }
.reading-body .tl-node {
  position: absolute; left: 0; top: 4px; box-sizing: border-box;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--reading-line); background: var(--bg);
}
.reading-body .tl-item.is-current .tl-node {
  border-color: var(--reading-ink); background: var(--reading-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--reading-ink) 15%, transparent);
}
.reading-body .tl-head { display: flex; align-items: baseline; gap: 10px; }
.reading-body .tl-stage { font-size: 11px; letter-spacing: .02em; color: var(--reading-ink); }
.reading-body .tl-date { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.reading-body .tl-text { margin: 4px 0 0; font-size: 13px; line-height: 1.8; color: var(--text-2); overflow-wrap: anywhere; }
.reading-body .tl-item.is-current .tl-text { color: var(--text); }

@media (max-width: 600px) {
  .reading-body .tl-item { padding-left: 20px; }
  .reading-body .entry.is-floating .entry-timeline-in { max-height: 58vh; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion-preview="full"]) .reading-body .entry-timeline,
  html:not([data-motion-preview="full"]) .entry-backdrop { transition: none; }
  /* style.css 那条全局规则只管 transition，**动画得自己关** */
  html:not([data-motion-preview="full"]) .reading-body .entry.is-open .tl-item { animation: none; }
  /* 本机开着「减少动态效果」时，用项目自带的逃生口 data-motion-preview="full" 复看动画：
     style.css 有一条全局的 `transition-duration: 0s !important`，必须用更具体的 !important 顶掉。 */
  html[data-motion-preview="full"] .reading-body .entry.is-floating { transition-duration: 620ms !important; }
  html[data-motion-preview="full"] .reading-body .entry-timeline { transition-duration: 620ms, 340ms !important; }
  html[data-motion-preview="full"] .entry-backdrop { transition-duration: 420ms !important; }
  html[data-motion-preview="full"] .reading-body .entry.is-open .tl-item { animation-duration: 480ms !important; }
}
@supports not (backdrop-filter: blur(1px)) {
  .entry-backdrop { background: rgba(9, 20, 34, .55); }
}
