/* ============================================================
   zzcym.github.io — 主样式表
   设计：深空编辑室 / 近黑 + 米白 + 朱红
   结构：1 变量 2 字体 3 基础 4 布局 5 导航 6 首页 7 文章列表
        8 正文 9 组件 10 浮层 11 响应式 12 动效降级
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #070709;
  --ink-2: #0a0a0d;
  --card: #101013;
  --card-2: #141418;

  --cream: #f1ece2;
  --cream-2: #c9c3b6;
  --muted: #8d8779;
  --faint: #57534c;

  --accent: #ff5a36;
  --accent-2: #ffcf8f;
  --accent-dim: rgba(255, 90, 54, .14);

  --line: rgba(241, 236, 226, .10);
  --line-strong: rgba(241, 236, 226, .20);

  --font-serif: "Instrument Serif", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
}

/* ---------- 2. 字体 ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 3. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #2a2823 var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  /* 极光：三团低透明度色晕，给纯黑一点空气感 */
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52vw 52vw at 12% -8%, rgba(255, 90, 54, .085), transparent 62%),
    radial-gradient(46vw 46vw at 88% 4%, rgba(86, 110, 255, .07), transparent 60%),
    radial-gradient(60vw 50vw at 50% 108%, rgba(255, 207, 143, .045), transparent 62%);
  filter: blur(10px);
  animation: aurora 26s ease-in-out infinite alternate;
}

@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}

/* 颗粒噪点，覆盖全站，制造胶片质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #0a0a0c; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--cream);
}

p { margin: 0; }

img, svg, canvas, video { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }

/* 通用小标签：等宽 + 大写字距 */
.mono code { text-transform: none; letter-spacing: 0; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 2px;
}
.skip:focus { top: 16px; }

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(64px, 10vw, 132px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.sec-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
}

.sec-title em {
  font-style: normal;
  color: var(--accent);
  letter-spacing: .12em;
}

.sec-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.sec-link:hover { color: var(--cream); }
.sec-link svg { transition: transform .4s var(--ease); }
.sec-link:hover svg { transform: translate(3px, -3px); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line) 40%, transparent);
}

/* ---------- 5. 导航 ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding-block: 18px;
  transition: background .5s var(--ease), padding .5s var(--ease), backdrop-filter .5s;
}

.site-head.is-stuck {
  background: rgba(7, 7, 9, .72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--cream);
}
.brand b { font-weight: 400; }
.brand i {
  font-style: normal;
  color: var(--accent);
  font-size: 13px;
  transform: translateY(-8px);
  display: inline-block;
  transition: transform .5s var(--ease);
}
.brand:hover i { transform: translateY(-13px) rotate(90deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: var(--cream); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.cmdk-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 10px 5px 8px;
  transition: color .3s, border-color .3s, background .3s;
}
.cmdk-key:hover { color: var(--cream-2); border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
.cmdk-key svg { width: 12px; height: 12px; }

/* 顶部阅读进度 */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 50;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- 6. 首页 Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 34px);
  color: var(--muted);
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 0 rgba(110, 231, 168, .5);
  animation: live 2.6s infinite;
  flex: none;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 168, .45); }
  70% { box-shadow: 0 0 0 7px rgba(110, 231, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0); }
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(76px, 13.5vw, 208px);
  line-height: .84;
  letter-spacing: -.035em;
  color: var(--cream);
  margin-left: -.04em;
  display: flex;
}
.hero-name .ch {
  display: inline-block;
  transform: translateY(115%) rotate(6deg);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease);
}
.is-ready .hero-name .ch { transform: none; opacity: 1; }

.hero-line {
  margin-top: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 33ch;
}

.hero-lede {
  font-size: clamp(16px, 1.55vw, 18.5px);
  line-height: 1.9;
  color: var(--cream-2);
  text-wrap: pretty;
  max-width: 34ch;
  word-break: normal;
}
.hero-lede strong { color: var(--cream); font-weight: 500; }
.hero-lede .accent { color: var(--accent); }

.rotator {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
}
.rotator .tick { color: var(--accent); }
.rotator .slot {
  position: relative;
  display: inline-block;
  min-width: 11ch;
  height: 18px;
  overflow: hidden;
  color: var(--muted);
}
.rotator .slot span {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
  transition: transform .7s var(--ease), color .3s;
  white-space: nowrap;
}
.rotator .slot span.is-in { transform: none; }
.rotator .slot span.is-out { transform: translateY(-110%); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 3.4vw, 40px);
}

.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--ink); border-color: var(--cream); }
.btn:hover::before { transform: none; }
.btn.solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.solid::before { background: var(--accent); }
.btn.solid:hover { color: var(--cream); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* 右侧：点阵球体 */
.orb-wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orb {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.orb-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 54, .085), rgba(255, 90, 54, .02) 46%, transparent 68%);
  filter: blur(24px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.orb-ring {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: spin 44s linear infinite;
  opacity: .55;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orb-ring text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  fill: rgba(241, 236, 226, .30);
  text-transform: uppercase;
}
/* 首页底部：滚动提示 + 时钟 */
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  flex: none;
}
.scroll-hint .line {
  width: 46px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: slide 2.6s var(--ease-io) infinite;
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

.clock { text-align: right; color: var(--faint); flex: none; white-space: nowrap; }
.clock b { color: var(--cream-2); font-weight: 400; }

/* 跑马灯 */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
  --mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 9px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 7. 文章列表 ---------- */
.post-list { border-top: 1px solid var(--line); }

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 96px 28px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), background .5s var(--ease);
  isolation: isolate;
}
.post-row::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  background: linear-gradient(90deg, rgba(255, 90, 54, .07), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.post-row:hover { padding-left: 14px; }
.post-row:hover::before { opacity: 1; }

.post-main { display: flex; flex-direction: column; min-width: 0; }

.post-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
  transition: color .4s;
}
.post-row:hover .post-num { color: var(--accent); }

.post-title {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  color: var(--cream-2);
  transition: color .4s, transform .5s var(--ease);
  line-height: 1.4;
}
.post-row:hover .post-title { color: var(--cream); }

.post-excerpt {
  display: none;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: 6px;
}

.post-tags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 9px;
  transition: color .3s, border-color .3s;
  white-space: nowrap;
}

.post-row:hover .tag { color: var(--muted); border-color: var(--line-strong); }

.post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.post-arrow {
  color: var(--faint);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .4s;
}
.post-row:hover .post-arrow { opacity: 1; transform: none; color: var(--accent); }

/* 首页大卡片（精选） */
.featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fcard {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  padding: clamp(24px, 3vw, 40px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.fcard::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(360px 360px at var(--mx, 50%) var(--my, 50%), rgba(255, 90, 54, .12), transparent 65%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.fcard:hover { border-color: var(--line-strong); }
.fcard:hover::after { opacity: 1; }
.fcard .fc-top { display: flex; justify-content: space-between; gap: 16px; }
.fcard h3 {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
  text-wrap: balance;
}
.fcard p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-top: 12px; max-width: 34ch; }
.fcard .fc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fcard .go {
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream-2);
  transition: background .4s, color .4s, transform .4s var(--ease);
  flex: none;
}
.fcard:hover .go { background: var(--accent); border-color: var(--accent); color: #0a0a0c; transform: rotate(45deg); }

/* ---------- 8. 正文 ---------- */
.article-head {
  padding-top: clamp(110px, 16vh, 180px);
  padding-bottom: clamp(30px, 4vw, 48px);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--faint);
}
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.article-title {
  font-size: clamp(32px, 5.6vw, 62px);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 600;
  max-width: 20ch;
  text-wrap: balance;
}
.article-dek {
  margin-top: 22px;
  text-wrap: pretty;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 46ch;
}

.article-body {
  padding-bottom: clamp(60px, 9vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.prose {
  max-width: 40em;
  font-size: clamp(16.5px, 1.35vw, 17.5px);
  line-height: 1.95;
  color: var(--cream-2);
  min-width: 0;
}

.prose > * + * { margin-top: 1.35em; }

.prose h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-top: 2.1em;
  line-height: 1.4;
  scroll-margin-top: 110px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.prose h2::before {
  content: "§";
  font-family: var(--font-serif);
  font-size: .72em;
  color: var(--accent);
  opacity: .85;
  transform: translateY(-1px);
}
.prose h3 {
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 600;
  margin-top: 1.9em;
  scroll-margin-top: 110px;
  color: var(--cream);
}
.prose h4 { font-size: 16px; margin-top: 1.7em; color: var(--cream); letter-spacing: .04em; }

.prose .lead {
  font-size: 1.14em;
  line-height: 1.85;
  color: var(--cream);
  letter-spacing: .005em;
}

.prose a:not(.btn) {
  color: var(--cream);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .45s var(--ease), color .3s;
  padding-bottom: 1px;
}
.prose a:not(.btn):hover { color: var(--accent); background-size: 100% 100%; }

.prose strong { color: var(--cream); font-weight: 600; }
.prose em { color: var(--cream); }

.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-top: .55em; padding-left: .25em; }
.prose li::marker { color: var(--accent); font-family: var(--font-mono); font-size: .85em; }

.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 1px solid var(--accent);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.24em;
  line-height: 1.6;
  font-style: italic;
}
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite { display: block; margin-top: .8em; font-family: var(--font-mono); font-style: normal; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.prose img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: zoom-in;
}
.prose figure { margin: 2em 0; }
.prose figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
}
.prose figcaption::before { content: "▲"; color: var(--accent); font-size: 8px; transform: translateY(-1px); }

.prose code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: rgba(241, 236, 226, .07);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .12em .4em;
  color: var(--accent-2);
  white-space: nowrap;
}

.prose pre {
  position: relative;
  margin: 2em 0;
  padding: 20px 22px;
  background: #0b0b0e;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
  scrollbar-width: thin;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cream-2);
  white-space: pre;
  font-size: 13px;
}
.prose pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.copy-code {
  position: absolute;
  top: 6px;
  right: 6px;
  opacity: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 4px 8px;
  transition: opacity .3s, color .3s;
}
.prose pre:hover .copy-code { opacity: 1; }
.copy-code:hover { color: var(--cream); border-color: var(--line-strong); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 2em 0;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.prose hr {
  height: 1px;
  background: var(--line);
  margin: 3em 0;
  position: relative;
}
.prose hr::after {
  content: "✳";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  padding: 0 14px;
  color: var(--faint);
  font-size: 12px;
}

.prose kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--cream);
  background: rgba(255, 255, 255, .04);
}

/* 正文里的通用盒子 */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: rgba(255, 90, 54, .045);
  font-size: 15px;
  line-height: 1.8;
  color: var(--cream-2);
}
.callout .ic { color: var(--accent); font-family: var(--font-mono); font-size: 12px; line-height: 1.9; }

/* 目录 */
.toc {
  position: sticky;
  top: 110px;
  font-size: 12px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  scrollbar-width: none;
}
.toc::-webkit-scrollbar { display: none; }
.toc-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 6px 0 6px 12px;
  color: var(--faint);
  line-height: 1.5;
  border-left: 1px solid var(--line);
  transition: color .3s, border-color .3s, padding .3s;
}
.toc a:hover { color: var(--cream); }
.toc a.is-active { color: var(--cream); border-left-color: var(--accent); padding-left: 14px; }
.toc a.lv3 { padding-left: 24px; font-size: 12px; }

/* 文末 */
.article-foot {
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 100px;
  transition: color .3s, border-color .3s;
}
.share:hover { color: var(--cream); border-color: var(--line-strong); }

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: clamp(50px, 7vw, 90px);
  border: 1px solid var(--line);
}
.pager a {
  background: var(--ink);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .4s;
  min-height: 130px;
  justify-content: center;
}
.pager a:hover { background: var(--card); }
.pager .dir { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.pager .ttl { font-size: 16px; color: var(--cream-2); line-height: 1.5; }
.pager a:hover .ttl { color: var(--cream); }
.pager .next { text-align: right; align-items: flex-end; }
.pager .empty { opacity: .4; pointer-events: none; }
.pager .empty .ttl { color: var(--faint); }

/* ---------- 9. 写作页 ---------- */
.page-head {
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(30px, 4vw, 54px);
}
.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 150px);
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--cream);
}
.page-lede {
  margin-top: 24px;
  max-width: 42ch;
  text-wrap: pretty;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}
.chips { display: contents; }
.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--cream); border-color: var(--line-strong); }
.chip.is-on { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.chip .n { opacity: .5; margin-left: 6px; font-size: 9px; }

.search-wrap {
  position: relative;
  margin-left: auto;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 300px;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px 8px 34px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--cream);
  transition: border-color .3s;
}
.search::placeholder { color: var(--faint); }
.search:focus { outline: none; border-color: var(--line-strong); }

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

/* 关于片段 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-statement {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--cream);
  text-wrap: balance;
}
.about-statement em { font-style: italic; color: var(--accent); }
.about-statement .cn {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.01em;
}
.about-body { font-size: 14.5px; line-height: 1.9; color: var(--muted); }
.about-body p + p { margin-top: 14px; }
.about-body .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color .3s, border-color .3s;
}
.about-body .more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 11. 特效组件（在文章里也能直接用） ---------- */
.demo {
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, .035), transparent 70%),
    var(--ink-2);
  padding: clamp(20px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.demo-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.demo-label b { color: var(--accent); font-weight: 400; }

/* 文字解码 */
.fx-scramble {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.4vw, 22px);
  letter-spacing: .06em;
  color: var(--cream);
  cursor: default;
  display: inline-block;
  white-space: nowrap;
}
.fx-scramble span { color: var(--accent); }

/* 磁吸按钮 */
.fx-magnet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  transition: transform .5s var(--ease), background .4s, border-color .4s, color .4s;
  will-change: transform;
}
.fx-magnet:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0c; }

/* 倾斜卡片 */
.fx-tilt {
  transform-style: preserve-3d;
  transition: transform .35s var(--ease);
  will-change: transform;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, #15151a, #0c0c10);
  padding: 30px;
  max-width: 340px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.fx-tilt .t-k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--faint);
  text-transform: uppercase;
}
.fx-tilt .t-t {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  color: var(--cream);
  margin: 10px 0 14px;
  transform: translateZ(24px);
}
.fx-tilt .t-d { font-size: 13px; color: var(--muted); line-height: 1.7; transform: translateZ(12px); }

/* 局部聚光 */
.fx-spot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  cursor: none;
}
.fx-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px 200px at var(--sx, 50%) var(--sy, 50%), rgba(255, 90, 54, .16), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}
.fx-spot:hover::before { opacity: 1; }
.fx-spot .s-t {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 52px);
  color: var(--cream);
  letter-spacing: -.02em;
}

/* 点击爆散 */
.fx-burst {
  position: relative;
  min-height: 200px;
  display: grid;
  place-items: center;
  cursor: crosshair;
}
.fx-burst canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-burst .b-t {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
}

/* 遮罩揭示 */
.fx-reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease);
}
.fx-reveal-img.is-in { clip-path: inset(0 0 0 0); }

/* 渐变流动字 */
.fx-shimmer {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #4a4640 18%, #f1ece2 42%, #ff5a36 52%, #f1ece2 62%, #4a4640 86%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}

/* 文章内的图片网格 */
.img-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 2em 0;
}
.img-row img { margin: 0; }

/* 引用式引言块 */
.pull {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.35;
  color: var(--cream);
  margin: 2.2em 0;
  padding: 0 0 0 1px;
  text-wrap: balance;
}
.pull span { color: var(--accent); font-style: italic; }

/* 实验室条目 */
.lab-item { margin-bottom: 56px; }
.lab-item h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.lab-item h3 .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
}
.lab-item > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 18px;
}
.lab-code {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  border-left: 1px solid var(--line-strong);
  padding: 2px 0 2px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.lab-code b { color: var(--accent-2); font-weight: 400; }

/* ---------- 12. 浮层 ---------- */
/* 光标手电筒 */
.spotlight {
  position: fixed;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 210, .055), transparent 62%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .8s;
  mix-blend-mode: screen;
  will-change: transform;
}
.spotlight.on { opacity: 1; }

/* 命令面板 */
.palette {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding-top: min(16vh, 150px);
  background: rgba(5, 5, 7, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.palette.is-open { opacity: 1; visibility: visible; }
.palette-box {
  width: min(560px, calc(100vw - 32px));
  background: #0c0c10;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
  transform: translateY(-12px) scale(.985);
  transition: transform .35s var(--ease);
}
.palette.is-open .palette-box { transform: none; }
.palette-input {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--cream);
}
.palette-input:focus { outline: none; }
.palette-input::placeholder { color: var(--faint); }
.palette-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.palette-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  cursor: pointer;
  border-radius: 2px;
  color: var(--cream-2);
}
.palette-item .p-kind {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 2px 6px;
  flex: none;
}
.palette-item .p-title { font-size: 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item[aria-selected="true"] { background: rgba(255, 90, 54, .12); }
.palette-item[aria-selected="true"] .p-title { color: var(--cream); }
.palette-foot {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
}
.palette-foot b { color: var(--muted); font-weight: 400; }

/* 图片灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(4, 4, 6, .94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  transform: scale(.96);
  transition: transform .4s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox-cap {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 11. 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: 28px;
  margin-top: clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 1;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: clamp(40px, 6vw, 70px);
}
.foot-big {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--cream);
}
.foot-big em { font-style: italic; color: var(--accent); }
.foot-note { margin-top: 22px; color: var(--muted); max-width: 34ch; font-size: 14px; line-height: 1.8; }

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-content: start;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--cream-2);
  padding-block: 5px;
  transition: color .3s, transform .3s var(--ease);
}
.foot-col a:hover { color: var(--accent); transform: translateX(3px); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}
.foot-bottom .mono { letter-spacing: .1em; }

/* ---------- 12. 动效 / 揭示 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.is-loading .page-day { transform: translateY(6px); }
.page-day {
  display: block;
  transition: transform .8s var(--ease), opacity .6s;
}

/* 页面进入淡出（View Transitions 支持时更顺滑） */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .4s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .article-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .featured { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .orb-wrap { max-width: 268px; order: -1; margin-bottom: 2px; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero-name { font-size: clamp(68px, 19vw, 150px); }
  .br-d { display: none; }
  .hero-foot { flex-wrap: wrap; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .nav-links { gap: 16px; }
  .nav-link { font-size: 10.5px; letter-spacing: .1em; }
  .cmdk-key { display: none; }
}

@media (max-width: 720px) {
  .post-row {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: start;
  }
  .post-tags { display: none; }
  .post-date { grid-column: 2; text-align: left; margin-top: 6px; font-size: 10.5px; }
  .post-arrow { grid-column: 3; grid-row: 1; }
  .post-row:hover { padding-left: 0; }
  .post-row:hover .post-arrow { opacity: .6; }
  .search-wrap { max-width: none; margin-left: 0; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { text-align: left; align-items: flex-start; }
  .foot-links { gap: 24px; }
  .fcard { min-height: 240px; }
  .marquee-track > span { font-size: 10.5px; letter-spacing: .2em; }
  .spotlight { display: none; }
  .article-title { font-size: clamp(28px, 8vw, 40px); }
  .prose { font-size: 16px; line-height: 1.9; }
  .prose pre { font-size: 12px; padding: 16px; }
  .prose table { display: block; width: 100%; overflow-x: auto; }
  .prose table th, .prose table td { white-space: nowrap; }
}

@media (max-width: 420px) {
  .hero-name { font-size: clamp(62px, 22vw, 110px); }
  .brand { font-size: 22px; }
  .foot-bottom { font-size: 10px; }
}

/* ---------- 14. 动效降级 ---------- */
/* 加 ?static=1 或系统开启减少动效时，全站静止 */
html.no-anim *,
html.no-anim *::before,
html.no-anim *::after {
  animation: none !important;
  transition: none !important;
}
html.no-anim [data-reveal],
html.no-anim .hero-name .ch { opacity: 1 !important; transform: none !important; }
html.no-anim .hero { min-height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-name .ch { transform: none; opacity: 1; }
  .spotlight { display: none; }
}

/* ---------- 15. MathJax 修正 ----------
   MathJax 的容器默认是 inline-block，但本站全局把 svg 设成了 block，
   再加上部分浏览器下 mjx-container 会被当作块级，行内公式就会独占一行。
   这里显式还原。 */
mjx-container {
  display: inline-block !important;
  margin: 0 .1em !important;
  font-size: 1.04em;
  vertical-align: baseline;
}
mjx-container[display="true"] {
  display: block !important;
  margin: 1.25em 0 !important;
  text-align: center;
}
mjx-container svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: baseline;
}
