/* ============================================================
   NOVA — 暗色 / 大排版 / 地形背景
   无外部依赖：字体走系统栈，动画用 CSS + Canvas
   ============================================================ */

:root {
  --bg: #08090A;
  --ink: #F4F1EB;
  --ink-2: rgba(244, 241, 235, .60);
  --ink-3: rgba(244, 241, 235, .32);
  --line: rgba(244, 241, 235, .14);
  --line-soft: rgba(244, 241, 235, .07);
  --hot: #FF5E1F;
  --hot-2: #FFB25E;
  --cool: #6FE9C8;

  --f-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
            -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-wide: 'Arial Black', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --f-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--hot); color: #0A0806; }

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

:focus-visible { outline: 2px solid var(--hot); outline-offset: 4px; }

/* ── 背景三层：地形 / 压暗 / 颗粒 ─────────────────────── */
#terrain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.6s ease .2s;
}
.js #terrain.on { opacity: 1; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* 左侧压暗，保住标题可读性；右侧留给地形发光 */
    linear-gradient(102deg, rgba(8, 9, 10, .88) 0%, rgba(8, 9, 10, .58) 32%, rgba(8, 9, 10, .12) 62%, transparent 82%),
    linear-gradient(180deg, rgba(8, 9, 10, .78) 0%, transparent 26%, transparent 72%, rgba(8, 9, 10, .55) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

main, .top, .foot { position: relative; z-index: 3; }

.skip {
  position: fixed; left: 16px; top: -70px; z-index: 99;
  padding: 10px 16px; background: var(--hot); color: #0A0806;
  font-size: 13px; transition: top .25s var(--out);
}
.skip:focus { top: 16px; }

/* ── 顶栏 ────────────────────────────────────────────── */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px var(--pad);
  mix-blend-mode: difference;
}
.js .top { animation: drop .9s var(--out) .9s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 700 15px/1 var(--f-wide);
  transition: background .3s, color .3s, transform .5s var(--out);
}
.brand:hover .brand__mark { background: var(--ink); color: var(--bg); transform: rotate(-12deg); }
.brand__name {
  font: 700 14px/1 var(--f-wide);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 14px;
  padding-bottom: 4px;
}
.nav__n { font: 500 10px/1 var(--f-mono); opacity: .55; }
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── 首屏 ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__ghost {
  position: absolute;
  left: 50%;
  bottom: -3vw;
  transform: translateX(-50%);
  z-index: -1;
  font-family: var(--f-wide);
  font-weight: 900;
  font-size: clamp(140px, 27vw, 460px);
  line-height: .78;
  letter-spacing: -.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 235, .26);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.js .hero__ghost { animation: ghost-in 2.2s var(--out) .3s both; }
@keyframes ghost-in {
  from { opacity: 0; letter-spacing: .04em; }
  to   { opacity: 1; letter-spacing: -.045em; }
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 4vh, 40px);
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.js .hero__kicker { animation: fade-up 1s var(--out) .25s both; }

.live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 12px var(--hot);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.hero__title {
  margin: 0;
  font-size: clamp(44px, 8.6vw, 148px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  max-width: none;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; will-change: transform; }
.js .hero__title .line > span {
  transform: translateY(115%);
  animation: rise 1.25s var(--out) forwards;
}
.js .hero__title .line:nth-child(1) > span { animation-delay: .35s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .5s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__title em {
  font-style: normal;
  color: var(--hot);
  position: relative;
}

.hero__side {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(28px, 5vh, 56px);
}
.js .hero__side { animation: fade-up 1.1s var(--out) 1s both; }

.hero__intro {
  margin: 0;
  max-width: 46ch;
  color: rgba(244, 241, 235, .76);
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.85;
  text-wrap: pretty;
  /* 地形线从文字后面穿过时，靠光晕把字托出来 */
  text-shadow: 0 1px 16px rgba(8, 9, 10, .95), 0 0 6px rgba(8, 9, 10, .85);
}

.scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em;
  color: var(--ink-2);
  transition: color .3s;
}
.scrollcue svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  animation: bob 2s ease-in-out infinite;
}
.scrollcue:hover { color: var(--hot); }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

.hero__meta {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: clamp(32px, 6vh, 64px);
  font: 500 10px/1 var(--f-mono);
  letter-spacing: .24em;
  color: rgba(244, 241, 235, .48);
  text-shadow: 0 1px 12px rgba(8, 9, 10, .9);
}
.hero__meta span { display: inline-flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.hero__meta span + span::before { content: '/'; color: var(--ink-3); }
.js .hero__meta { animation: fade-up 1.1s var(--out) 1.25s both; }

@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ── 区块通用 ────────────────────────────────────────── */
.sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 13vh, 160px) var(--pad) 0;
}

.sec__head {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.6vw, 22px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vh, 56px);
}
.sec__num { font: 500 12px/1 var(--f-mono); color: var(--hot); }
.sec__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.sec__en {
  font: 500 10px/1 var(--f-mono);
  letter-spacing: .24em;
  color: var(--ink-3);
}
.sec__rule { flex: 1; }
.sec__count { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }

/* 滚动入场：用 CSS 滚动驱动动画，而不是 JS 隐藏内容。
   支持的浏览器有渐入效果；不支持的一律直接可见。
   任何情况下都不会出现「JS 没跑 → 整页空白」。 */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(46px); }
  to   { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec__head, .work, .stack__group, .about__grid, .contact__link, .notes__hint {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 2% entry 42%;
    }
    .note {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}

/* ── 项目 ────────────────────────────────────────────── */
.works__list { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 64px); }

.work {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.work:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.work:nth-child(even) .work__media { order: 2; }

.work__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0E0F11;
  transform-style: preserve-3d;
  transition: border-color .5s, box-shadow .6s var(--out);
  will-change: transform;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 1.2s var(--out), filter .6s;
  filter: brightness(.82) saturate(.9);
}
.work:hover .work__media {
  border-color: rgba(255, 94, 31, .55);
  box-shadow: 0 30px 90px -30px rgba(255, 94, 31, .35), 0 0 0 1px rgba(255, 94, 31, .18);
}
.work:hover .work__media img { transform: scale(1.12); filter: brightness(1) saturate(1.05); }

.work__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255, 94, 31, .16), transparent 55%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.work:hover .work__media::after { opacity: 1; }

.work__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(8, 9, 10, .72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font: 500 10px/1 var(--f-mono);
  letter-spacing: .16em;
  color: var(--ink-2);
}

.work__idx {
  display: block;
  font: 500 12px/1 var(--f-mono);
  color: var(--hot);
  margin-bottom: 18px;
}
.work__name {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.025em;
}
.work__name a { background-image: linear-gradient(var(--hot), var(--hot)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--out); }
.work:hover .work__name a { background-size: 100% 2px; }

.work__sub {
  margin: 0 0 20px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em;
  color: var(--ink-3);
}
.work__desc {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.85;
  max-width: 44ch;
}
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.work__tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  font: 500 11px/1.4 var(--f-mono);
  color: var(--ink-2);
  transition: border-color .3s, color .3s;
}
.work:hover .work__tags li { border-color: rgba(244, 241, 235, .3); color: var(--ink); }

.work__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.work__go i {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
  transition: background .35s, border-color .35s, transform .5s var(--out), color .35s;
}
.work:hover .work__go i { background: var(--hot); border-color: var(--hot); color: #0A0806; transform: rotate(-45deg); }

/* 没有截图的卡片：用网格纹理 + 描边大字当封面，不留空洞 */
.work__media--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 110% at 26% 0%, rgba(255, 94, 31, .13), transparent 64%),
    repeating-linear-gradient(90deg, rgba(244, 241, 235, .05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(244, 241, 235, .05) 0 1px, transparent 1px 32px),
    #0B0C0D;
}
.work__glyph {
  font: 900 clamp(76px, 11vw, 148px)/1 var(--f-wide);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 241, 235, .3);
  letter-spacing: -.04em;
  text-shadow: 0 0 60px rgba(255, 94, 31, .22);
  transition: -webkit-text-stroke-color .5s, transform .7s var(--out);
}
.work:hover .work__glyph {
  -webkit-text-stroke-color: var(--hot);
  transform: scale(1.04);
}

/* ── 技术栈 ──────────────────────────────────────────── */
.stack { padding: clamp(80px, 13vh, 150px) 0 0; overflow: hidden; }

.marquee {
  position: relative;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(14px, 2.4vh, 28px) 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.marquee__track span {
  font-family: var(--f-wide);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 68px);
  letter-spacing: -.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 235, .34);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.marquee__track span:nth-child(3n) { color: var(--ink); -webkit-text-stroke-color: transparent; }
.marquee__track span:nth-child(5n) { color: var(--hot); -webkit-text-stroke-color: transparent; }
.marquee__track i { width: 8px; height: 8px; background: var(--hot); transform: rotate(45deg); flex: none; }

.stack__groups {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.stack__group h3 {
  margin: 0 0 16px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .2em;
  color: var(--ink-3);
}
.stack__group ul { margin: 0; padding: 0; list-style: none; }
.stack__group li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--ink-2);
  transition: color .3s, padding-left .4s var(--out);
}
.stack__group li:hover { color: var(--ink); padding-left: 8px; }

/* ── 随笔 ────────────────────────────────────────────── */
.notes__hint { margin: -18px 0 32px; color: var(--ink-3); font-size: 14px; }

.note {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3.4vh, 34px) clamp(12px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.note:first-child { border-top: 1px solid var(--line); }
.note::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--hot);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--out);
}
.note:hover::before { transform: scaleY(1); transform-origin: top; }

.note__date { font: 500 12px/1.4 var(--f-mono); color: var(--ink-3); transition: color .35s; }
.note__title {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  transition: color .35s, transform .5s var(--out);
}
.note__sum {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: rgba(244, 241, 235, .46);
  max-width: 60ch;
  transition: color .35s;
}
.note__arrow {
  font-size: 22px;
  color: var(--ink-3);
  transition: color .35s, transform .5s var(--out);
}
.note:hover .note__date,
.note:hover .note__sum,
.note:hover .note__arrow { color: rgba(10, 8, 6, .72); }
.note:hover .note__title { color: #0A0806; transform: translateX(10px); }
.note:hover .note__arrow { transform: translate(6px, -6px); color: #0A0806; }

/* 手动条目没有链接时，不给「可以点」的错觉 */
.note--static { cursor: default; }
.note--static::before { display: none; }
.note--static:hover .note__title { color: var(--ink); transform: none; }
.note--static:hover .note__date, .note--static:hover .note__sum { color: var(--ink-3); }

/* 远程抓来的文章，标题后带一个小橙点 */
.note--remote .note__title::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--hot);
  vertical-align: middle;
}

.notes__empty { padding: 24px 4px; color: var(--ink-3); font-size: 14px; margin: 0; }

.notes__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .14em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color .3s, border-color .3s;
}
.notes__more:hover { color: var(--hot); border-color: var(--hot); }

/* ── 关于 ────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 80px);
}
.about__text p {
  margin: 0 0 22px;
  font-size: clamp(17px, 1.8vw, 25px);
  line-height: 1.7;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 34ch;
}
.about__text p + p { color: var(--ink-2); font-size: clamp(15px, 1.4vw, 19px); }

.about__label { margin: 0 0 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; color: var(--ink-3); }
.about__now { margin: 0 0 32px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; }
.about__links a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--out);
}
.about__links a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-3px); }

/* ── 联系 ────────────────────────────────────────────── */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 16vh, 190px) var(--pad); }
.contact.is-hidden { display: none; }
.contact__link { display: block; }
.contact__small {
  display: block;
  margin-bottom: 16px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .26em;
  color: var(--ink-3);
}
.contact__big {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  font-size: clamp(56px, 13vw, 200px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  transition: color .4s;
}
.contact__big svg {
  width: clamp(40px, 8vw, 120px); height: clamp(40px, 8vw, 120px);
  fill: none; stroke: currentColor; stroke-width: 2.4;
  flex: none;
  transition: transform .7s var(--out);
}
.contact__link:hover .contact__big { color: var(--hot); }
.contact__link:hover .contact__big svg { transform: translate(18px, -18px) rotate(8deg); }
.contact__mail {
  display: inline-block;
  margin-top: 24px;
  font: 500 clamp(13px, 1.4vw, 17px)/1 var(--f-mono);
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color .3s, border-color .3s;
}
.contact__link:hover .contact__mail { color: var(--ink-2); border-color: var(--ink-3); }

/* ── 页脚 ────────────────────────────────────────────── */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--pad) 36px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font: 500 11px/1.6 var(--f-mono);
  letter-spacing: .06em;
  color: var(--ink-3);
}
.foot__right { display: flex; gap: 18px; align-items: center; }
.icp:hover { color: var(--ink-2); }

/* ── 文章页 ──────────────────────────────────────────── */
.post { max-width: 780px; margin: 0 auto; padding: clamp(140px, 20vh, 200px) var(--pad) 80px; }
.post__back {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em;
  color: var(--ink-3); margin-bottom: 40px;
  transition: color .3s, gap .3s;
}
.post__back:hover { color: var(--hot); gap: 14px; }
.post__date { font: 500 12px/1 var(--f-mono); color: var(--hot); letter-spacing: .16em; }
.post__title { margin: 16px 0 28px; font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.post__body { font-size: 16.5px; line-height: 1.95; color: rgba(244, 241, 235, .82); }
.post__body h2 { margin: 48px 0 18px; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.post__body h3 { margin: 36px 0 14px; font-size: 19px; font-weight: 700; color: var(--ink); }
.post__body p { margin: 0 0 22px; }
.post__body a { color: var(--hot-2); border-bottom: 1px solid rgba(255, 178, 94, .35); }
.post__body ul, .post__body ol { margin: 0 0 22px; padding-left: 22px; }
.post__body li { margin-bottom: 8px; }
.post__body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--hot); color: var(--ink-2); font-style: normal;
}
.post__body code {
  font-family: var(--f-mono); font-size: .88em;
  background: rgba(244, 241, 235, .08); padding: 2px 6px; border-radius: 3px;
}
.post__body pre {
  margin: 0 0 24px; padding: 20px 22px;
  background: #0E1012; border: 1px solid var(--line-soft);
  overflow-x: auto; border-radius: 4px;
}
.post__body pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.75; }
.post__body img { max-width: 100%; height: auto; display: block; margin: 28px 0; border: 1px solid var(--line-soft); }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.post__body strong { color: var(--ink); font-weight: 700; }

/* ── 响应式 ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .work, .work:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .work:nth-child(even) .work__media { order: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__text p { max-width: 100%; }
  .stack__groups { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .top { padding: 18px var(--pad); gap: 12px; }
  .nav { gap: 14px; flex: none; }
  .nav a { font-size: 12px; white-space: nowrap; }
  .nav__n { display: none; }
  .brand__name { display: none; }
  .brand__mark { width: 28px; height: 28px; font-size: 13px; }
  .hero { padding-top: 108px; min-height: 92svh; }
  .hero__title { font-size: clamp(28px, 8.6vw, 60px); letter-spacing: -.035em; }
  .hero__kicker { font-size: 10px; letter-spacing: .2em; }
  .hero__side { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__intro { font-size: 14px; }
  /* 水印在小屏只会挤占空间，撤掉 */
  .hero__ghost { display: none; }
  .hero__meta { font-size: 9px; letter-spacing: .14em; gap: 12px; }
  .hero__meta span { gap: 12px; }
  .note { grid-template-columns: 1fr auto; gap: 10px; }
  .note__date { grid-column: 1 / -1; font-size: 11px; }
  .note__sum { display: none; }
  .stack__groups { grid-template-columns: 1fr; }
  .contact__big { gap: 14px; }
  .foot { font-size: 10px; }
}

/* ── 降级：尊重「减少动态效果」───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .hero__title .line > span { transform: none; }
  .marquee__track { animation: none; }
  .grain { display: none; }
}
