/* ============================================================
   乌金典藏 · Black-Gold Private Edition
   Design system for 李先生 · 长期系统论 personal blog
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink-0: #0B0A08;
  --ink-1: #12100B;
  --ink-2: #191510;
  --gold: #C8A24B;
  --gold-bright: #E9CE7E;
  --gold-deep: #7A612A;
  --ivory: #F1ECDF;
  --muted: #A89D85;
  --faint: #857B66;
  --seal: #B03A2E;
  --hairline: rgba(200, 162, 75, 0.22);
  --hairline-soft: rgba(200, 162, 75, 0.12);
  --serif-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --latin: "Marcellus", "Times New Roman", serif;
  --sans-cn: "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --frame-gap: 18px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--ink-0);
  color: var(--ivory);
  font-family: var(--serif-cn);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body.is-locked { overflow: hidden; }

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

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

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

::selection { background: rgba(200, 162, 75, 0.85); color: var(--ink-0); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--ink-0);
  font-family: var(--sans-cn);
  font-size: 13px;
  letter-spacing: 0.2em;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Certificate inner frame ---------- */
.frame {
  position: fixed;
  inset: var(--frame-gap);
  z-index: 55;
  pointer-events: none;
  border: 1px solid transparent;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) 0.35s;
}
.frame::before { left: 0; right: 0; top: 0; height: 1px; transform-origin: left center; }
.frame::after { left: 0; right: 0; bottom: 0; height: 1px; transform-origin: right center; }
.frame .frame-side {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline), transparent);
  transform: scaleY(0);
  transition: transform 1.6s var(--ease-out) 0.55s;
}
.frame .frame-side.left { left: 0; transform-origin: center top; }
.frame .frame-side.right { right: 0; transform-origin: center bottom; }
body.hero-revealed .frame::before,
body.hero-revealed .frame::after { transform: scaleX(1); }
body.hero-revealed .frame .frame-side { transform: scaleY(1); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold-bright);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s ease, opacity 0.3s ease;
}
.cursor-ring.is-active {
  width: 52px; height: 52px;
  border-color: rgba(200, 162, 75, 0.55);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
body:not(.has-custom-cursor) .cursor-dot,
body:not(.has-custom-cursor) .cursor-ring { display: none; }

/* ---------- Preloader curtain ---------- */
/* JS 不可用时幕帘必须让位，否则整页被黑幕盖死 */
html:not(.js) .curtain { display: none; }
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.curtain .curtain-panel {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: #080706;
}
.curtain .curtain-panel.top { top: 0; transform-origin: top; }
.curtain .curtain-panel.bottom { bottom: 0; transform-origin: bottom; }
.curtain .curtain-mark {
  position: relative;
  z-index: 1;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.curtain.is-loading .curtain-mark { opacity: 1; }
.curtain.is-open .curtain-mark { opacity: 0; }
.curtain.is-open .curtain-panel.top { animation: curtainUp 1s var(--ease-inout) forwards; }
.curtain.is-open .curtain-panel.bottom { animation: curtainDown 1s var(--ease-inout) forwards; }
.curtain.is-done { display: none; }

@keyframes curtainUp   { to { transform: translateY(-101%); } }
@keyframes curtainDown { to { transform: translateY(101%); } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}

.latin-label {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--faint);
  text-transform: uppercase;
}

.gold-text {
  background: linear-gradient(105deg, var(--gold-deep) 0%, var(--gold) 30%, var(--gold-bright) 50%, var(--gold) 70%, var(--gold-deep) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.2s var(--ease-out);
}
.gold-text:hover { background-position: 100% 0; }
/* 兼容性兜底：不支持渐变裁切文字的浏览器，退化为实色金（否则文字彻底隐形） */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text {
    background: none;
    color: var(--gold-bright);
  }
}

.rule {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, var(--hairline), rgba(200, 162, 75, 0.04));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out);
}
.rule.is-drawn { transform: scaleX(1); }

.container {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.reading-width { max-width: 660px; margin-inline: auto; }

section { position: relative; }

.section-pad { padding-block: clamp(88px, 13vh, 160px); }

/* Section head with ghost numeral */
.section-head {
  position: relative;
  margin-bottom: clamp(48px, 7vh, 84px);
}
.section-head .ghost-numeral {
  position: absolute;
  top: -0.62em;
  left: -0.04em;
  z-index: -1;
  font-family: var(--latin);
  font-size: clamp(110px, 16vw, 190px);
  line-height: 1;
  color: rgba(200, 162, 75, 0.08);
  user-select: none;
}
@supports (-webkit-text-stroke: 1px red) {
  .section-head .ghost-numeral {
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 162, 75, 0.14);
  }
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-top: 10px;
}
.section-head .head-row {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
}
.section-head .head-row .latin-label { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 34px;
  font-family: var(--sans-cn);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  border: 1px solid var(--hairline);
  color: var(--ivory);
  overflow: hidden;
  transition: color 0.45s ease, border-color 0.45s ease, background-color 0.45s ease;
  will-change: transform;
}
.btn .btn-arrow {
  width: 26px;
  height: 8px;
  flex: none;
  stroke: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(6px); }
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(233, 206, 126, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn--solid {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-bright));
  border-color: transparent;
  color: #171204;
  font-weight: 600;
}
.btn--solid:hover { filter: brightness(1.06); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(11, 10, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline-soft);
}
.nav-inner {
  width: min(1320px, calc(100% - 72px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: center 18%;
  flex: none;
  border: 1px solid var(--hairline);
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}
.brand:hover .brand-avatar { border-color: var(--gold); transform: scale(1.05); }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.brand-name b { font-size: 16px; font-weight: 700; letter-spacing: 0.22em; }
.brand-name span {
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
}
.nav-links a {
  position: relative;
  font-family: var(--sans-cn);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Mobile menu button */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 4px;
}
.menu-btn i {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 10, 8, 0.97);
    border-bottom: 1px solid var(--hairline-soft);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease-inout);
    padding: 8px 28px 20px;
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); }
  .nav-links a {
    width: 100%;
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-inner { height: 68px; width: calc(100% - 40px); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#dust {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 900px;
  height: 900px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 162, 75, 0.07), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 90px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.hero-eyebrow::before {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-weight: 900;
  font-size: clamp(52px, 11vw, 148px);
  line-height: 1.12;
  letter-spacing: 0.04em;
  max-width: 12em;
}
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
body.hero-revealed .hero-title .char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.hero-sub {
  margin-top: clamp(26px, 4vh, 40px);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-sub .byline {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.3em;
}
.hero-sub .divider {
  width: 1px;
  height: 20px;
  background: var(--hairline);
  align-self: center;
}
.hero-lede {
  margin-top: 18px;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
  line-height: 2.1;
}
.hero-actions {
  margin-top: clamp(36px, 6vh, 56px);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: clamp(48px, 8vh, 84px);
  display: flex;
  gap: clamp(36px, 6vw, 84px);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 30px;
  max-width: 760px;
}
.stat b {
  display: block;
  font-family: var(--latin);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--faint);
}
.hero-side-vertical {
  position: absolute;
  right: clamp(30px, 5vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.6em;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-side-vertical::after {
  content: "";
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(var(--frame-gap) + 22px);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans-cn);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--faint);
}
.scroll-cue .cue-line {
  width: 1px;
  height: 46px;
  background: var(--hairline);
  overflow: hidden;
  position: relative;
}
.scroll-cue .cue-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold-bright));
  animation: cueDrop 2.2s var(--ease-inout) infinite;
}
@keyframes cueDrop {
  0% { top: -100%; }
  60%, 100% { top: 110%; }
}

/* Hero entrance choreography */
.boot {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
body.hero-revealed .boot {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
body.hero-revealed .boot.d1 { transition-delay: 0.55s; }
body.hero-revealed .boot.d2 { transition-delay: 0.7s; }
body.hero-revealed .boot.d3 { transition-delay: 0.85s; }
body.hero-revealed .boot.d4 { transition-delay: 1.0s; }
body.hero-revealed .boot.d5 { transition-delay: 1.15s; }

/* ---------- Featured article ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: stretch;
}
.featured-left {
  position: relative;
  border: 1px solid var(--hairline-soft);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: hidden;
  transition: border-color 0.5s ease;
}
.featured-left:hover { border-color: var(--hairline); }
.featured-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  filter: grayscale(0.85) sepia(0.32) saturate(1.5) contrast(1.06) brightness(0.62);
  transition: transform 1.2s var(--ease-out), filter 0.8s ease;
}
.featured-left:hover .featured-cover {
  transform: scale(1.045);
  filter: grayscale(0.7) sepia(0.28) saturate(1.5) contrast(1.06) brightness(0.7);
}
.featured-left::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 10, 8, 0.25), rgba(11, 10, 8, 0.88) 82%);
}
.featured-left > * { position: relative; z-index: 2; }
.featured-left::after,
.author-card::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 40%;
  z-index: 3;
  background: linear-gradient(105deg, transparent, rgba(233, 206, 126, 0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ease-out);
  pointer-events: none;
}
.featured-left:hover::after,
.author-card:hover::after { left: 130%; }
.featured-left .featured-numeral {
  font-family: var(--serif-cn);
  font-size: clamp(110px, 13vw, 190px);
  font-weight: 900;
  line-height: 0.9;
  color: rgba(200, 162, 75, 0.14);
  user-select: none;
}
@supports (-webkit-text-stroke: 1px red) {
  .featured-left .featured-numeral {
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 162, 75, 0.28);
  }
}
.featured-left .featured-caption {
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--muted);
  line-height: 2.2;
}
.featured-right { display: flex; flex-direction: column; justify-content: center; }
.featured-tag-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.tag-chip {
  font-family: var(--sans-cn);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold);
  border: 1px solid var(--hairline);
  padding: 5px 14px;
}
.featured-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.featured-excerpt {
  margin-top: 20px;
  color: var(--muted);
  max-width: 36em;
}
.featured-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--faint);
}
.featured-meta i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-deep);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-family: var(--sans-cn);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold);
}
.text-link svg { width: 30px; height: 8px; stroke: currentColor; transition: transform 0.4s var(--ease-out); }
.text-link:hover svg { transform: translateX(6px); }

/* ---------- Archive / filters ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vh, 56px);
}
.filter-tab {
  position: relative;
  font-family: var(--sans-cn);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--faint);
  padding-bottom: 10px;
  transition: color 0.35s ease;
}
.filter-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
.filter-tab:hover { color: var(--muted); }
.filter-tab.is-active { color: var(--gold); }
.filter-tab.is-active::after { transform: scaleX(1); }
.filter-count {
  margin-left: auto;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--faint);
}

.article-list { border-top: 1px solid var(--hairline-soft); transition: height 0.45s var(--ease-out); }
.article-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 118px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
  padding: clamp(20px, 3vh, 28px) 10px;
  border-bottom: 1px solid var(--hairline-soft);
  transition: background-color 0.45s ease, transform 0.45s var(--ease-out), opacity 0.45s ease;
}
.article-row:hover {
  background: rgba(200, 162, 75, 0.03);
  transform: translateX(8px);
}
.article-row.is-hidden { display: none; }
.row-numeral {
  font-family: var(--serif-cn);
  font-size: 23px;
  font-weight: 700;
  color: rgba(200, 162, 75, 0.42);
}
@supports (-webkit-text-stroke: 1px red) {
  .row-numeral {
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 162, 75, 0.45);
  }
}
.row-cat {
  font-family: var(--sans-cn);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--muted);
}
.row-main { min-width: 0; }
.row-title {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.article-row:hover .row-title { color: var(--gold-bright); }
.row-date {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--faint);
  white-space: nowrap;
}
.row-arrow {
  width: 34px;
  height: 10px;
  stroke: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.article-row:hover .row-arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 1024px) {
  .article-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .row-cat { grid-column: 2; order: 4; }
  .row-date { display: none; }
  .article-row { row-gap: 6px; }
  .row-numeral { font-size: 18px; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: start;
}
.about-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--hairline-soft);
  z-index: 2;
  pointer-events: none;
}
.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(0.12) contrast(1.03) brightness(0.97);
}
.about-portrait::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 8, 0.88));
  pointer-events: none;
}
.author-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center 18%;
  flex: none;
  border: 1px solid var(--hairline);
}
.about-monogram {
  font-size: clamp(90px, 9vw, 140px);
  font-weight: 900;
  line-height: 1;
}
.about-portrait .portrait-caption {
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
}
.about-seal {
  position: absolute;
  right: 22px;
  bottom: 60px;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--seal);
  color: #F6EFE2;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  border-radius: 4px 6px 5px 7px;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px rgba(246, 239, 226, 0.32);
}
.about-name {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 0.14em;
}
.about-role {
  margin-top: 10px;
}
.about-bio {
  margin-top: 26px;
  color: var(--muted);
  max-width: 40em;
}
.pillars {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--hairline-soft);
}
.pillar {
  padding: 22px 10px;
  text-align: center;
  border-right: 1px solid var(--hairline-soft);
  transition: background-color 0.4s ease;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(200, 162, 75, 0.05); }
.pillar b {
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.1em;
}
.pillar span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans-cn);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--faint);
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 340px; }
  .pillars { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-bottom: 1px solid var(--hairline-soft); }
  .pillar:nth-child(2n) { border-right: none; }
  .pillar:nth-last-child(-n+2) { border-bottom: none; }
  .hero-stats { gap: 26px; }
  .stat span { font-size: 10px; letter-spacing: 0.18em; white-space: nowrap; }
}

/* ---------- Quote band ---------- */
.quote-band {
  border-block: 1px solid var(--hairline-soft);
  padding-block: clamp(64px, 9vh, 110px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band blockquote {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 2;
  max-width: 26em;
  margin-inline: auto;
}
.quote-band cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(56px, 8vh, 90px) 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 2.4fr) minmax(0, 2.8fr) minmax(0, 2.6fr);
  gap: clamp(36px, 5vw, 72px);
}
.footer-brand p {
  margin-top: 18px;
  color: var(--faint);
  font-size: 14px;
  max-width: 30em;
}
.footer h4 {
  font-family: var(--sans-cn);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 22px;
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 12px; }
.footer li a {
  font-family: var(--sans-cn);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.3s ease;
}
.footer li a:hover { color: var(--gold-bright); }
.footer-base {
  margin-top: clamp(48px, 7vh, 70px);
  padding-top: 26px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--faint);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Article page ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 80;
  background: transparent;
}
.progress-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left center;
}
.article-hero {
  padding-top: clamp(150px, 20vh, 210px);
  padding-bottom: clamp(40px, 6vh, 70px);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--sans-cn);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--faint);
}
.crumb a { color: var(--muted); transition: color 0.3s ease; }
.crumb a:hover { color: var(--gold-bright); }
.crumb i { font-style: normal; color: var(--gold-deep); }
.article-hero .tag-chip { margin-bottom: 26px; display: inline-block; }
.article-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 22em;
}
.article-meta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.article-meta i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-deep);
}
.article-hero .rule { margin-top: 40px; }
.article-lede {
  margin: 44px auto 0;
  max-width: 32em;
  text-align: center;
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 2;
  color: var(--gold-bright);
}

.prose {
  padding-block: clamp(30px, 5vh, 60px) 0;
  font-size: 17.5px;
  line-height: 2.0;
  color: rgba(241, 236, 223, 0.92);
  font-family: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}
.prose > p { margin-bottom: 0.9em; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 1;
  font-weight: 900;
  padding: 8px 14px 0 0;
  color: var(--gold);
}
@supports (-webkit-background-clip: text) {
  .prose > p:first-of-type::first-letter {
    background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.prose h2 {
  margin: 2.2em 0 1em;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.prose h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-soft), transparent);
  transform: translateY(-0.35em);
}
.prose h2 .sec-no {
  font-family: var(--latin);
  font-size: 0.55em;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.28em;
  opacity: 0.9;
  white-space: nowrap;
}
.prose blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 32px;
  border-left: 1px solid var(--gold);
  position: relative;
}
.prose blockquote::before {
  content: "";
  position: absolute;
  left: 5px; top: 0; bottom: 0;
  width: 1px;
  background: var(--hairline-soft);
}
.prose blockquote p {
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.95;
  color: var(--ivory);
}
.prose ul, .prose ol {
  margin: 0 0 1.8em 1.4em;
}
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--gold-bright); font-weight: 700; }
.end-mark {
  display: grid;
  place-items: center;
  margin: 3.4em auto 0;
  width: 54px;
  height: 54px;
  background: var(--seal);
  color: #F6EFE2;
  font-size: 20px;
  font-weight: 700;
  border-radius: 4px 6px 5px 7px;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(246, 239, 226, 0.32);
}
.author-card {
  position: relative;
  overflow: hidden;
  margin-top: clamp(60px, 9vh, 90px);
  border: 1px solid var(--hairline-soft);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}
.author-card .brand-seal { width: 54px; height: 54px; font-size: 24px; }
.author-card h3 { font-size: 19px; font-weight: 700; letter-spacing: 0.16em; }
.author-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.prev-next {
  margin-top: clamp(48px, 7vh, 70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline-soft);
}
.prev-next a {
  padding: clamp(22px, 3vh, 34px) clamp(22px, 3vw, 38px);
  transition: background-color 0.4s ease;
}
.prev-next a:hover { background: rgba(200, 162, 75, 0.05); }
.prev-next a + a { border-left: 1px solid var(--hairline-soft); text-align: right; }
.prev-next small {
  display: block;
  font-family: var(--sans-cn);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--faint);
  margin-bottom: 10px;
}
.prev-next b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
@media (max-width: 560px) {
  .prev-next { grid-template-columns: 1fr; }
  .prev-next a + a { border-left: none; border-top: 1px solid var(--hairline-soft); text-align: left; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
  will-change: opacity, transform, filter;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger children helper */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal-group].is-visible > * {
  opacity: 1;
  transform: none;
}
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* Filter swap animation */
.article-list.is-swapping .article-row { opacity: 0; transform: translateY(14px); }
.article-row { transition-property: background-color, transform, opacity; }

/* ---------- Responsive frame ---------- */
@media (max-width: 720px) {
  :root { --frame-gap: 10px; }
  .container { width: calc(100% - 56px); }
  .hero-side-vertical { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-left { min-height: 260px; }
  body { font-size: 16px; }
}

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
::view-transition-old(root) { animation: vtOut 0.25s var(--ease-inout) both; }
::view-transition-new(root) { animation: vtIn 0.4s var(--ease-out) both; }
body.leaving {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

/* ---------- Floating TOC ---------- */
.toc {
  position: fixed;
  left: calc(50% + 368px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 216px;
  display: none;
}
@media (min-width: 1380px) {
  .toc { display: block; }
}
.toc .latin-label { display: block; margin-bottom: 14px; }
.toc ul { list-style: none; }
.toc li a {
  display: block;
  padding: 7px 0 7px 18px;
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--faint);
  border-left: 1px solid var(--hairline-soft);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.toc li a:hover { color: var(--muted); }
.toc li a.is-current {
  color: var(--gold);
  border-left-color: var(--gold);
}

/* ---------- Search overlay ---------- */
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans-cn);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.search-trigger:hover { color: var(--gold-bright); }
.search-trigger kbd {
  font-family: var(--latin);
  font-size: 10px;
  border: 1px solid var(--hairline-soft);
  padding: 1px 7px;
  color: var(--faint);
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: start center;
  padding: 16vh 24px 24px;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(640px, 100%);
  background: var(--ink-1);
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.search-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--ivory);
  font-family: var(--serif-cn);
  font-size: 17px;
  letter-spacing: 0.04em;
  padding: 15px 0;
}
.search-input::placeholder { color: var(--faint); }
.search-close {
  color: var(--faint);
  font-size: 16px;
  padding: 8px;
  transition: color 0.3s ease;
}
.search-close:hover { color: var(--ivory); }
.search-results { list-style: none; max-height: 52vh; overflow: auto; }
.search-results a {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  transition: background-color 0.3s ease;
}
.search-results a:hover, .search-results a.sr-sel { background: rgba(200, 162, 75, 0.07); }
.search-results a.sr-sel { box-shadow: inset 2px 0 0 var(--gold); }
.sr-title {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ivory);
}
.sr-meta {
  display: block;
  margin-top: 5px;
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.sr-snippet {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.sr-snippet mark { background: none; color: var(--gold-bright); }
.search-empty {
  padding: 24px 20px;
  text-align: center;
  font-family: var(--sans-cn);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

/* ---------- Share poster ---------- */
.share-row {
  margin-top: clamp(40px, 6vh, 60px);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.btn--poster { padding: 13px 28px; font-size: 12px; }
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8, 7, 6, 0.93);
  display: grid;
  place-items: center;
  padding: 24px;
}
.poster-panel {
  background: var(--ink-1);
  border: 1px solid var(--hairline-soft);
  padding: 18px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.poster-panel .latin-label { letter-spacing: 0.4em; }
.poster-panel img { max-height: 62vh; display: block; border: 1px solid var(--hairline-soft); }
.poster-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: calc(var(--frame-gap) + 14px);
  bottom: calc(var(--frame-gap) + 14px);
  z-index: 65;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  background: rgba(11, 10, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), border-color 0.3s ease, color 0.3s ease;
}
.back-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { border-color: var(--gold); color: var(--gold-bright); }
.back-top svg { width: 14px; height: 18px; stroke: currentColor; }

/* ---------- Related（同辑延伸） ---------- */
.related {
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--hairline-soft);
}
.related-heading {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-top: 14px;
}
.related-rows { margin-top: 18px; }
.related-row {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 26px);
  padding: 16px 8px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ivory);
  transition: background-color 0.35s ease, transform 0.35s var(--ease-out);
}
.related-row:hover {
  color: var(--ivory);
  text-decoration: none;
  background: rgba(200, 162, 75, 0.03);
  transform: translateX(6px);
}
.rel-num {
  font-family: var(--serif-cn);
  font-size: 17px;
  font-weight: 700;
  color: rgba(200, 162, 75, 0.42);
  flex: none;
}
.rel-cat {
  font-family: var(--sans-cn);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  flex: none;
}
.rel-title {
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 1.7;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.related-row:hover .rel-title { color: var(--gold-bright); }

/* ---------- Print（精装书页：一篇文章 = 一份私人报告） ---------- */
@media print {
  @page { margin: 20mm 18mm; }
  html { font-size: 12pt; }
  body {
    background: #fff !important;
    color: #16130e;
    font-size: 12pt;
    line-height: 1.95;
  }
  body::after, .frame, .nav, .toc, .progress-bar, .curtain, #dust, .hero-glow,
  .scroll-cue, .hero-actions, .hero-stats, .search-overlay, .poster-modal,
  .footer-grid, .share-row, .prev-next, .menu-btn, .back-top,
  .hero-side-vertical, .filter-bar, .cursor-dot, .cursor-ring,
  .brand-avatar, .author-avatar { display: none !important; }
  .skip-link { display: none !important; }

  /* 标题页 */
  .article-hero { padding-top: 24pt; text-align: center; }
  .article-hero .rule { margin: 22pt auto 0; max-width: 40%; }
  .crumb { display: none; }
  .tag-chip { color: #6b5c33; border-color: #b9a86f; margin-bottom: 10pt; }
  .article-title { color: #000; font-size: 26pt; line-height: 1.5; }
  .article-meta { color: #5a5344; justify-content: center; }
  .article-lede { color: #55503f; font-size: 13pt; }

  /* 正文 */
  .prose { color: #16130e; max-width: 100%; font-size: 12pt; }
  .prose p { orphans: 3; widows: 3; }
  .prose h2 {
    color: #000;
    page-break-after: avoid;
    break-after: avoid;
    margin-top: 1.6em;
  }
  .sec-no { color: #6b5c33; }
  .prose strong { color: #000; }
  .prose a { color: #16130e; text-decoration: underline; }
  .prose blockquote {
    border-left-color: #999;
    page-break-inside: avoid;
  }
  .prose blockquote::before { display: none; }
  .prose li { page-break-inside: avoid; }

  /* 「终」印保留，转为描边钤印 */
  .end-mark {
    display: grid;
    place-items: center;
    width: 40pt;
    height: 40pt;
    margin: 28pt auto 0;
    border: 2pt solid #8e3328;
    color: #8e3328;
    background: none;
    transform: rotate(-3deg);
    font-size: 16pt;
  }

  /* 作者卡与同辑延伸作为卷尾 */
  .author-card {
    border: 1pt solid #b9a86f;
    background: none;
    color: #33302a;
    page-break-inside: avoid;
  }
  .author-card h3 { color: #000; }
  .related { page-break-before: auto; border-top-color: #b9a86f; }
  .related-heading { color: #000; }
  .related-row { color: #22201b; border-bottom-color: #ccc5ae; }
  .rel-num, .rel-cat { color: #6b5c33; }

  /* 页脚只留版权线 */
  .footer { border-top: 0.5pt solid #b9a86f; }
  .footer-base { color: #5a5344; justify-content: center; display: flex; gap: 2em; }
}

/* ---------- Reduced motion ---------- */
@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;
    transition-delay: 0ms !important;
  }
  [data-reveal], [data-reveal-group] > *, .boot, .hero-title .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .rule { transform: scaleX(1) !important; }
  .frame::before, .frame::after { transform: scaleX(1) !important; }
  .frame .frame-side { transform: scaleY(1) !important; }
  .curtain { display: none !important; }
  #dust { display: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  body.leaving { opacity: 1 !important; transform: none !important; }
}

/* ---------- Footer plain line（非链接条目，如公众号名） ---------- */
.footer .li-plain { color: var(--muted); }

/* ---------- �������両�� ---------- */
.resume-pill {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 170; font-family: inherit; font-size: 13px; letter-spacing: .04em;
  color: #f1ecdf; background: rgba(20, 18, 14, .92);
  border: 1px solid rgba(200, 162, 75, .5); border-radius: 999px;
  padding: 10px 22px; cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  transition: transform .25s, border-color .25s;
}
.resume-pill:hover { transform: translateX(-50%) translateY(-2px); border-color: rgba(200,162,75,.9); }
