/* ==========================================================================
   阿落的技术笔记 · 样式表
   极简 · 纸墨 · 一点青绿
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #f5f3ee;
  --bg-soft: #ece9e2;
  --surface: #fbfaf6;
  --surface-2: #f1efe9;
  --ink: #17191b;
  --ink-soft: #3b3f43;
  --muted: #606763;
  --faint: #696e69;
  --globe-shade: #c6d5c9;
  --line: rgba(23, 25, 27, 0.13);
  --line-soft: rgba(23, 25, 27, 0.075);
  --accent: #17685c;
  --accent-deep: #0d4b43;
  --accent-soft: rgba(23, 104, 92, 0.085);
  --accent-line: rgba(23, 104, 92, 0.32);
  --code-bg: #141617;
  --code-ink: #d8d4cb;
  --shadow-card: 0 1px 1px rgba(20, 22, 24, 0.03), 0 18px 44px -26px rgba(20, 22, 24, 0.28);
  --shadow-lift: 0 2px 4px rgba(20, 22, 24, 0.04), 0 30px 60px -32px rgba(20, 22, 24, 0.34);
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC",
    "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SF Mono", "JetBrains Mono", "Fira Code", Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1232px;
  --pad: clamp(20px, 5.4vw, 76px);
  --nav-h: 70px;
}

[data-theme="dark"] {
  --bg: #0f1011;
  --bg-soft: #161819;
  --surface: #17191a;
  --surface-2: #1d2021;
  --ink: #ebe8e1;
  --ink-soft: #c7c4bd;
  --muted: #8f938f;
  --faint: #949b95;
  --globe-shade: #2e4b43;
  --line: rgba(235, 232, 225, 0.13);
  --line-soft: rgba(235, 232, 225, 0.07);
  --accent: #86cdbc;
  --accent-deep: #a6decf;
  --accent-soft: rgba(134, 205, 188, 0.09);
  --accent-line: rgba(134, 205, 188, 0.38);
  --code-bg: #090a0a;
  --code-ink: #d8d4cb;
  --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.18), 0 18px 44px -26px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.24), 0 30px 60px -32px rgba(0, 0, 0, 0.85);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

body.is-loading { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }

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

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

button { font: inherit; color: inherit; }

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

h1, h2, h3, h4, p, ul, ol, blockquote { margin: 0; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ---------- 环境质感 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .grain { opacity: 0.05; mix-blend-mode: screen; }

.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: transform;
}
body.entered .glow { opacity: 1; }

/* ==========================================================================
   进入加载画面
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121314;
  color: #efece6;
  transform: translateY(0);
  transition: transform 1.05s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}

.loader.done { transform: translateY(-100%); }
.loader.is-hidden { display: none; }

.loader__noise {
  position: absolute;
  inset: -40%;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.loader__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  transition: transform 1.05s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.5s ease 0.15s;
}
.loader.done .loader__inner {
  transform: translateY(-26%);
  opacity: 0;
}

.loader__mark { color: #efece6; margin-bottom: 42px; }
.loader__mark svg { width: 92px; height: 92px; overflow: visible; }

.loader__mark .mark-ring {
  stroke-dasharray: 186;
  stroke-dashoffset: 186;
  opacity: 0.55;
  animation: draw-ring 1.6s var(--ease-out) 0.15s forwards;
}
.loader__mark .mark-a {
  stroke-dasharray: 78;
  stroke-dashoffset: 78;
  animation: draw-line 1.2s var(--ease-out) 0.75s forwards;
}
.loader__mark .mark-bar {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  color: #86cdbc;
  animation: draw-line 0.7s var(--ease-out) 1.45s forwards;
}
.loader__mark .mark-bar { stroke: #86cdbc; }

@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.loader__kicker {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(239, 236, 230, 0.42);
  margin-bottom: 22px;
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.35s forwards;
}

.loader__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 46px);
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  line-height: 1.3;
  opacity: 0;
  animation: rise 1.1s var(--ease-out) 1.55s forwards;
}

.loader__sub {
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(239, 236, 230, 0.4);
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.85s forwards;
}

.loader__bar {
  position: relative;
  width: min(260px, 58vw);
  height: 1px;
  margin-top: 54px;
  background: rgba(239, 236, 230, 0.16);
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0;
  display: block;
  width: 0%;
  background: #efece6;
  box-shadow: 0 0 12px rgba(239, 236, 230, 0.5);
  transition: width 0.35s var(--ease);
}

.loader__meta {
  width: min(260px, 58vw);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(239, 236, 230, 0.42);
}
.loader__pct {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: rgba(239, 236, 230, 0.8);
  letter-spacing: 0.08em;
}

.enter {
  position: relative;
  margin-top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 30px;
  border: 1px solid rgba(239, 236, 230, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #efece6;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out),
    background-color 0.4s ease, border-color 0.4s ease;
}
.enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #efece6;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}
.enter:hover { color: #121314; border-color: #efece6; }
.enter:hover::before { transform: translateY(0); }
.enter__arrow {
  font-family: var(--sans);
  letter-spacing: 0;
  text-indent: 0;
  transition: transform 0.4s var(--ease);
}
.enter:hover .enter__arrow { transform: translateX(5px); }

.loader.ready .enter {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.loader.ready .loader__bar i { box-shadow: 0 0 14px rgba(134, 205, 188, 0.6); }

.loader__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(20px, 4.5vw, 56px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(239, 236, 230, 0.24);
  z-index: 2;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   导航
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: calc(max(0px, (100% - var(--max)) / 2) + var(--pad));
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out),
    border-color 0.4s ease;
}
body.entered .nav { opacity: 1; transform: translateY(0); }
body.scrolled .nav { border-bottom-color: var(--line); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.nav__logo {
  width: 30px;
  height: 30px;
  color: var(--ink);
  transition: transform 0.8s var(--ease);
}
.nav__brand:hover .nav__logo { color: var(--accent); }
.nav__brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav__brandtext b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.12em;
}
.nav__brandtext i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  margin-left: auto;
}
.nav__links a {
  position: relative;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.active { color: var(--accent); }

.nav__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.nav__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-line); }
  50% { opacity: 0.55; box-shadow: 0 0 0 4px transparent; }
}

.theme-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.5s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-soft); transform: rotate(20deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* 阅读进度条 */
.readbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.readbar.on { opacity: 1; }
.readbar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform-origin: left;
}

/* ==========================================================================
   主视图
   ========================================================================== */
.view {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--nav-h) - 220px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
body.entered .view { opacity: 1; }

.view.leaving { opacity: 0; transform: translateY(8px); }
.view.leaving, .view { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }

.page { animation: page-in 0.7s var(--ease-out) both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.45s var(--ease), background-color 0.45s ease,
    color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px var(--accent-line);
}
.btn:hover .arrow { transform: translateX(5px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  box-shadow: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.3s ease, gap 0.4s var(--ease);
}
.link-arrow::after { content: "→"; font-size: 14px; transition: transform 0.4s var(--ease); }
.link-arrow:hover { color: var(--accent); gap: 14px; }
.link-arrow:hover::after { transform: translateX(2px); }

/* ==========================================================================
   首页 · Hero
   ========================================================================== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 82px) var(--pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vh, 52px) clamp(24px, 4vw, 60px);
}

.hero__main { min-width: 0; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(18px, 2.6vh, 26px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
}
.hero__kicker::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--line);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(50px, 6.4vw, 88px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: clamp(18px, 2.7vh, 28px);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.15s var(--ease-out);
}
body.entered .hero__title .line > span { transform: translateY(0); }
body.entered .hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__title .dot {
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.12em;
  vertical-align: 0.3em;
}

.hero__lead {
  max-width: 32em;
  font-size: clamp(15px, 1.18vw, 16px);
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 25px;
}
.hero__lead strong { font-weight: 600; color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 23px;
}
.hero__actions .btn { padding: 11px 24px; }
.hero__actions .btn--ghost {
  padding: 6px 1px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.hero__actions .btn--ghost:hover { background: transparent; border-color: var(--accent); }

.hero__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 19px 0;
  border-block: 1px solid var(--line);
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 13px;
  min-width: 0;
  padding: 0 clamp(16px, 2.4vw, 34px);
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: normal;
  line-height: 1.6;
}

/* 右侧几何图形 */
.hero__aside {
  justify-self: end;
  width: min(100%, 440px);
  margin: 0;
}
.orbit {
  width: 100%;
  height: auto;
  color: var(--ink-soft);
}
.orbit__spin { animation: spin 100s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__label {
  display: flex;
  justify-content: space-between;
  margin: 5px 2.5% 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

/* ==========================================================================
   区块
   ========================================================================== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) var(--pad);
}
.section--tight { padding-top: clamp(30px, 4vh, 48px); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.section__title::before {
  content: "";
  display: inline-block;
  width: .56em;
  height: 2px;
  background: var(--accent);
  margin-right: .44em;
  vertical-align: middle;
}
.section__side { flex: none; padding-bottom: 4px; }

/* 精选卡片 */
.featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
    border-color 0.4s ease, background-color 0.4s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.card:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lift);
}
.card:is(:hover, :focus-visible)::before { transform: scaleX(1); }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--faint);
}
.card__cat {
  border-left: 2px solid var(--accent);
  padding-left: 9px;
  font-weight: 600;
  color: var(--accent);
}
.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 26px;
}
.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.card__foot .go {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.card:hover .card__foot .go { color: var(--accent); transform: translate(3px, -3px); }

/* 分类卡 */
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  transition: background-color 0.45s ease, border-color 0.45s ease,
    transform 0.55s var(--ease);
}
.cat:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.cat__name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.cat__meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.cat__arrow {
  position: absolute;
  right: clamp(20px, 2.4vw, 30px);
  top: clamp(20px, 2.4vw, 30px);
  color: var(--muted);
  transition: transform 0.5s var(--ease), color 0.3s ease;
}
.cat:hover .cat__arrow { transform: translate(4px, -4px); color: var(--accent); }

/* 最新列表 */
.latest__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 130px 60px;
  gap: 20px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.45s var(--ease), background-color 0.4s ease;
}
.latest__row:hover { padding-left: 14px; background: var(--accent-soft); }
.latest__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.latest__title {
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: color 0.3s ease;
}
.latest__row:hover .latest__title { color: var(--accent); }
.latest__cat {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.latest__go {
  font-size: 15px;
  color: var(--faint);
  justify-self: end;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.latest__row:hover .latest__go { transform: translateX(4px); color: var(--accent); }

/* ==========================================================================
   笔记列表页
   ========================================================================== */
.pagehead {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(54px, 8vh, 92px) var(--pad) clamp(34px, 4.5vh, 52px);
}
.pagehead__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 18px 0 22px;
}
.pagehead__desc {
  max-width: 540px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.filters {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 26px;
}
.tabs {
  display: flex;
  gap: 4px;
  position: relative;
  flex-wrap: wrap;
}
.tab {
  position: relative;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); }
.tab::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.tab.active::after { transform: scaleX(1); }
.tab sup {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
  margin-left: 4px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  flex: 0 1 260px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 9px 12px;
  transition: border-color 0.3s ease;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  outline: none;
}
.search input::placeholder { color: var(--faint); }

.notes-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(70px, 10vh, 120px);
}
.notes-list > :first-child { border-top: 1px solid var(--line); }

.note-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 120px;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 34px) 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.4s ease, padding-left 0.45s var(--ease);
}
.note-row:hover { background: var(--accent-soft); padding-left: 14px; }
.note-row__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}
.note-row__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.note-row:hover .note-row__title { color: var(--accent); }
.note-row__excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 620px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 10px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.note-row:hover .tag { border-color: var(--accent-line); color: var(--accent); }
.note-row__meta {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
  line-height: 2.2;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}

/* ==========================================================================
   文章页
   ========================================================================== */
.article {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 70px) var(--pad) clamp(80px, 11vh, 130px);
  display: grid;
  grid-template-columns: minmax(0, 700px) 210px;
  gap: 0 clamp(40px, 6vw, 86px);
  justify-content: center;
}

.article { grid-template-rows: auto 1fr; }
.article__head { grid-column: 1; grid-row: 1; max-width: 700px; margin-bottom: clamp(26px, 4vh, 42px); }
.article__body { grid-column: 1; grid-row: 2; min-width: 0; }
.article.no-toc { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article.no-toc .toc { display: none; }

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 26px;
}
.crumb a { transition: color 0.3s ease; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.5; }

.article__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.article__meta .meta-cat { color: var(--accent); }
.article__meta .dotsep { color: var(--faint); }

.article__body { min-width: 0; }

/* 正文排版 */
.prose {
  font-size: 16.5px;
  line-height: 2;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }
.prose > hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line-soft); }
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  margin: 2.3em 0 0;
  letter-spacing: 0.01em;
  scroll-margin-top: 100px;
}
.prose h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 18px;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin: 1.9em 0 0;
  scroll-margin-top: 100px;
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }

.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: 0.35em 0; padding-left: 0.25em; }
.prose li::marker { color: var(--accent); }

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 12px 20px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-style: normal;
}
.prose blockquote p { color: inherit; }

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 0.18em 0.42em;
  border-radius: 3px;
  word-break: break-word;
}

.prose pre {
  position: relative;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 4px;
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.9;
  margin: 1.6em 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.6);
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
  word-break: normal;
}
.prose pre::after {
  content: attr(data-lang);
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: rgba(216, 212, 203, 0.32);
  text-transform: uppercase;
}
.prose pre code::-webkit-scrollbar { height: 6px; }

/* 代码高亮配色 */
.tok-key { color: #8fd3c3; }
.tok-str { color: #d9b98a; }
.tok-com { color: #6f7672; font-style: italic; }
.tok-num { color: #c9a2d8; }
.tok-fn { color: #9dbbe0; }

/* 文章结尾 */
.article__end {
  margin-top: clamp(56px, 8vh, 80px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.article__end .fin { color: var(--accent); }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  transition: border-color 0.4s ease, background-color 0.4s ease,
    transform 0.5s var(--ease);
}
.pager a:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.pager a.next { text-align: right; align-items: flex-end; }
.pager .pager__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.pager .pager__title {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  transition: color 0.3s ease;
}
.pager a:hover .pager__title { color: var(--accent); }

/* 目录 */
.toc {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 38px);
  padding-top: 10px;
}
.toc__title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--faint);
  margin-bottom: 18px;
}
.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line-soft);
}
.toc__list a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, padding-left 0.3s ease;
}
.toc__list a:hover { color: var(--ink); padding-left: 19px; }
.toc__list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 19px;
}

/* ==========================================================================
   关于页
   ========================================================================== */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(54px, 8vh, 92px) var(--pad) clamp(80px, 11vh, 120px);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.about__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 82px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 18px 0 30px;
}
.about__prose p {
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
  max-width: 560px;
}
.about__prose strong { color: var(--ink); font-weight: 600; }
.about__prose .accent { color: var(--accent); }

.profile {
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--surface);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.profile__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.profile__row:last-child { border-bottom: 0; }
.profile__row dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
  padding-top: 2px;
}
.profile__row dd { margin: 0; color: var(--ink); text-align: right; }

.skills { margin-top: clamp(54px, 8vh, 84px); }
.skills__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.skills__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.03em;
}
.skills__head span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skills__grid span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 15px;
  transition: border-color 0.35s ease, color 0.35s ease, background-color 0.35s ease;
}
.skills__grid span:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.timeline { margin-top: clamp(54px, 8vh, 84px); }
.timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.timeline__year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.timeline__what {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.timeline__note {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

.about__foot {
  margin-top: clamp(54px, 8vh, 84px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(100px, 18vh, 220px) var(--pad);
  text-align: center;
}
.notfound__code {
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 1;
  color: var(--line);
  letter-spacing: 0.06em;
}
.notfound h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 20px 0 14px;
}
.notfound p { color: var(--muted); margin-bottom: 30px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 8vh, 90px);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px var(--pad) 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand svg { width: 34px; height: 34px; color: var(--muted); flex: none; }
.footer__brand p {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.footer__brand p span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.footer__meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 2.1;
}
.footer__meta .footer__muted { color: var(--faint); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 980px) {
  .article { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .latest__row { grid-template-columns: 84px minmax(0, 1fr) 40px; }
  .latest__cat { display: none; }
  .note-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .note-row__tags { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}

@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .hero { padding-top: 36px; }
  .featured { grid-template-columns: 1fr; }
  .section__head { gap: 10px; align-items: center; padding-bottom: 14px; }
  .section__side { padding-bottom: 0; }
  .filters { flex-direction: column; align-items: stretch; }
  .search { flex: none; }
  .nav__status { display: none; }
  .nav__links { gap: 18px; }
  .nav__brandtext i { display: none; }
  .article__head { margin-bottom: 30px; }
  .article__meta { gap: 5px 10px; }
  .pager { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 90px minmax(0, 1fr); }
  .timeline__note { display: none; }
  .footer__inner { padding: 36px var(--pad) 42px; }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 31%;
    gap: 0 8px;
  }
  .hero__main { display: contents; }
  .hero__kicker { grid-column: 1 / -1; margin-bottom: 20px; }
  .hero__title { grid-area: 2 / 1; font-size: clamp(36px, 11.5vw, 60px); margin: 0; }
  .hero__aside { grid-area: 2 / 2; align-self: center; }
  .orbit__label { display: none; }
  .hero__lead, .hero__actions { grid-column: 1 / -1; }
  .hero__lead { margin: 20px 0; }
  .hero__stats { margin-top: 28px; padding: 14px 0; }
  .stat { flex-direction: column; gap: 3px; padding-inline: 14px; }
  .stat__label { font-size: 11px; }
  .cats { grid-template-columns: 1fr; gap: 0; }
  .cat {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 18px 30px 18px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .cat__arrow { right: 6px; top: 20px; }
  .latest__row {
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 4px 12px;
    padding-block: 16px;
  }
  .latest__date { grid-area: 1 / 1; }
  .latest__title { grid-area: 2 / 1; }
  .latest__go { grid-area: 1 / 2 / span 2; align-self: center; }
  .note-row { grid-template-columns: 26px minmax(0, 1fr); gap: 8px 12px; }
  .note-row__meta {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 14px;
    padding: 0;
    text-align: left;
  }
  .tab { padding-inline: 9px; min-height: 40px; }
  .tab::after { inset-inline: 9px; }
  .nav { gap: 10px; }
  .nav__brand { gap: 7px; }
  .nav__links { gap: 12px; }
  .nav__links a { padding-block: 10px; }
  .nav__links a::after { bottom: 4px; }
  .theme-toggle { width: 38px; height: 38px; }
  .link-arrow { letter-spacing: .04em; }
}

@media (max-width: 520px) {
  .pagehead__title { font-size: 42px; }
  .loader__sub { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
