/* ============================================================
   火光 · 一个人的刊物  —  HUOGUANG.ART
   设计系统：暗夜 · 纯黑白灰（无彩色）
   记忆点不在颜色，而在明暗本身——
   黑夜里的一盏白光、黑底上反白拓印的印章。
   三声部排印：思源宋体(展示/正文) · Bodoni Moda(西文数字) · IBM Plex Mono(编辑部小字)
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 暗夜黑白灰 —— 靠明度分层，不用任何彩色 */
  --bg:          #0F0F0F;                 /* 近黑背景 */
  --bg-raised:   #181818;                 /* 分区 / 卡片，比背景稍亮一层 */
  --bg-deep:     #0A0A0A;                 /* 更深：播放框、代码块沉底 */
  --fg:          #ECECEA;                 /* 主文字，中性暖白 */
  --fg-soft:     rgba(236, 236, 234, .70);
  --fg-faint:    rgba(236, 236, 234, .44);
  --line:        rgba(236, 236, 234, .14); /* 发丝线 */

  /* 点缀色：陶土橙红（暗夜里的暖光，与浅色主题同一色） */
  --accent:      #D85A33;
  --accent-soft: rgba(216, 90, 51, .85);

  /* 三声部 */
  --serif:  "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --latin:  "Bodoni Moda", "Noto Serif SC", "Times New Roman", serif;
  --mono:   "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* 度量 */
  --measure: 800px;   /* 正文行宽：约 50 个汉字/行 */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1200px;

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. 重置与地基 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 极淡的颗粒，让深色不「死黑漆黑」 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
}
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* 滚动条 —— 细节即专业度 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(236,236,234,.18); border: 3px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(236,236,234,.32); }

/* ---------- 3. 编辑部小字（等宽体元信息） ---------- */
.meta {
  font-family: var(--mono);
  font-size: .70rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 400;
}
.meta--seal { color: var(--accent); }
.meta--ink { color: var(--fg); }
.meta b { color: var(--fg); font-weight: 500; }

/* 反白印章 —— 黑底上盖的一方白章，像暗房里的光斑 */
.seal {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 900;
  font-size: .95rem;
  line-height: 1.05;
  border-radius: .55rem .55rem .7rem .7rem;
  transform: rotate(-4deg);
  box-shadow:
    inset 0 0 0 1px rgba(15, 15, 15, .18),
    0 0 0 1px rgba(236, 236, 234, .12),
    0 2px 14px -4px rgba(0, 0, 0, .7);
  flex-shrink: 0;
  user-select: none;
}
.seal::after { /* 拓印的压感 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.28), transparent 45%);
  mix-blend-mode: overlay;
}
.seal--lg { width: 4.4rem; height: 4.4rem; font-size: 1.5rem; border-radius: .7rem .7rem .95rem .95rem; }
.seal--sm { width: 2.1rem; height: 2.1rem; font-size: .68rem; border-radius: .4rem .4rem .5rem .5rem; }

/* ---------- 4. 刊头 Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}
.masthead.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0,0,0,.9); }
.masthead__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead__right {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .12em;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .3em;
  color: var(--fg-faint);
  margin-top: .18rem;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.nav a {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: .35rem 0;
  position: relative;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .35s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { right: 0; }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after { right: 0; }

/* ---------- 5. 通用容器 ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(3.5rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

/* 栏目标题（杂志栏目页眉） */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--fg);
  padding-bottom: .8rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: .06em;
  margin: 0;
  line-height: 1.15;
}
.section-head .meta { padding-bottom: .2rem; }

/* ---------- 6. 封面（首页） ---------- */
.cover {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
  position: relative;
}
.cover__eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2.2rem;
}
.cover__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4.6rem, 15vw, 11.5rem);
  line-height: 1.02;
  letter-spacing: .04em;
  margin: 0 0 .2rem;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 2.6rem);
}
.cover__title .seal--lg { transform: rotate(-6deg); }
.cover__tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.75;
  color: var(--fg);
  max-width: 30em;
  margin: 1.4rem 0 0;
  font-weight: 500;
}
.cover__tagline em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 900;
}
.cover__note {
  margin-top: 2rem;
  color: var(--fg-soft);
  max-width: 42em;
  font-size: .95rem;
}
.cover__foot {
  margin-top: clamp(3rem, 8vh, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.cover__year {
  font-family: var(--latin);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: .9;
  color: var(--fg);
  letter-spacing: .02em;
}
.scroll-hint {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.scroll-hint::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: var(--fg-faint);
}

/* 封面 · 本期要目（杂志封面的目录小字） */
.cover__toc {
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.cover__toc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.cover__toc-head .meta { font-size: .62rem; }
.cover__toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
@media (max-width: 720px) { .cover__toc-grid { grid-template-columns: 1fr; gap: 1rem; } }
.cover__toc-label {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .7rem;
}
.cover__toc-item {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .42rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.5;
  letter-spacing: .02em;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.cover__toc-item:hover { color: var(--accent); padding-left: .4rem; }
.cover__toc-item .n {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .14em;
  color: var(--fg-faint);
  flex-shrink: 0;
}
.cover__toc-item:last-child { border-bottom: 0; }

/* ---------- 7. 目录索引（首页三栏） ---------- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
}
@media (max-width: 880px) {
  .index-grid { grid-template-columns: 1fr; }
}
.index-col { min-width: 0; }
.index-col__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: .7rem;
  margin-bottom: 1.2rem;
}
.index-col__head h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .1em;
  margin: 0;
}
.index-col__head .colnum {
  font-family: var(--latin);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--fg-faint);
  margin-right: .55rem;
  align-self: baseline;
}
.index-col__head .meta { font-size: .62rem; }

.index-item {
  display: block;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.index-item:hover { padding-left: .6rem; }
.index-item__num {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--accent-soft);
  display: block;
  margin-bottom: .3rem;
}
.index-item__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0 0 .25rem;
  transition: color .3s var(--ease);
}
.index-item:hover .index-item__title { color: var(--accent); }
.index-item__meta {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.index-item--work .index-item__thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: .9rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.index-more {
  margin-top: 1.3rem;
  display: inline-block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity .3s var(--ease);
}
.index-more:hover { opacity: .7; }

/* ---------- 8. 编者按 ---------- */
.editor-note {
  border-left: 2px solid var(--accent);
  padding: .4rem 0 .4rem clamp(1.2rem, 3vw, 2.2rem);
  max-width: 44em;
}
.editor-note p {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 2;
  margin: 0 0 .6rem;
  font-weight: 500;
}
.editor-note .meta { display: block; margin-top: .6rem; }

/* ---------- 9. 页眉（内页） ---------- */
.page-head {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head__crumb {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.6rem;
}
.page-head__crumb a:hover { color: var(--accent); }
.page-head__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.22;
  letter-spacing: .03em;
  margin: 0 0 1.2rem;
  max-width: 22em;
}
.page-head__sub {
  font-size: 1.08rem;
  color: var(--fg-soft);
  max-width: 40em;
  line-height: 1.9;
  margin: 0;
}

/* ---------- 10. 列表页条目 ---------- */
.list-block { padding: 0 0 clamp(3rem, 7vw, 5.5rem); }
.list-item {
  display: grid;
  grid-template-columns: clamp(6rem, 18vw, 13rem) 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.list-item:first-of-type { border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .list-item { grid-template-columns: 1fr; }
}
.list-item__thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  transition: transform .6s var(--ease-out);
}
.list-item:hover .list-item__thumb { transform: scale(1.015); }
.list-item__body { min-width: 0; }
.list-item__num {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--accent-soft);
  display: block;
  margin-bottom: .6rem;
}
.list-item__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: .02em;
  margin: 0 0 .5rem;
  transition: color .3s var(--ease);
}
.list-item:hover .list-item__title { color: var(--accent); }
.list-item__summary { color: var(--fg-soft); margin: 0 0 .8rem; line-height: 1.85; }
.list-item__meta {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.list-item__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.list-item__meta span::before { content: "·"; color: var(--accent-soft); }
.list-item__meta span:first-child::before { content: ""; }

/* ---------- 11. 正文排版（文章 / 作品） ---------- */
.prose-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
}
.prose { font-size: 1.06rem; line-height: 2.05; color: var(--fg); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.6em; }

/* 首字正常：不加粗、不放大，跟随正文字号 */

.prose h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .04em;
  margin: 2.6em 0 1em;
  line-height: 1.4;
  padding-top: .6em;
  border-top: 1px solid var(--line);
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  margin: 2.2em 0 .9em;
  letter-spacing: .03em;
}
.prose a {
  color: var(--fg);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.prose a:hover { background: rgba(255,255,255,.1); color: var(--accent); }
.prose strong { font-weight: 900; color: var(--accent); }
.prose em { color: var(--fg-soft); }
.prose blockquote {
  margin: 2.2em 0;
  padding: .2em 0 .2em clamp(1.1rem, 3vw, 1.8rem);
  border-left: 2px solid var(--accent);
  font-size: 1.12rem;
  line-height: 2;
  color: var(--fg);
}
.prose blockquote p { margin: 0 0 .6em; }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote footer {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: .8em;
}
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--fg-faint); font-family: var(--mono); font-size: .85em; }
.prose img {
  margin: 2.4em 0;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.prose figure { margin: 2.4em 0; }
.prose figcaption {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
  margin-top: .8em;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em auto;
  width: 4rem;
}
.prose code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--bg-raised);
  padding: .12em .4em;
  border-radius: 3px;
  color: var(--accent);
}
.prose pre {
  background: var(--bg-raised);
  color: var(--fg);
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.8;
  margin: 2em 0;
}
.prose pre code { background: none; color: inherit; padding: 0; }

/* 文章页眉的题记 */
.essay-head {
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
}
.essay-head__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.essay-head .meta-row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.essay-head .meta-row span { display: inline-flex; align-items: center; gap: .45rem; }
.essay-head .meta-row span::before { content: "·"; color: var(--accent-soft); }
.essay-head .meta-row span:first-child::before { content: ""; }

/* ---------- 12. 影像（视频播放页 / 图集） ---------- */
.player-frame {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.player-frame video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.player-frame__placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--fg);
  text-align: center;
  padding: 2rem;
}
.player-frame__placeholder .meta { color: var(--fg-soft); }
.film-head { padding-bottom: 0; border-bottom: 0; }
.film-head .player-frame { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.8rem, 2vw, 1.4rem);
}
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { border: 1px solid var(--line); background: var(--bg-raised); position: relative; overflow: hidden; }
.gallery-item img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform .7s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem .9rem .7rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  background: linear-gradient(transparent, rgba(10,10,10,.82));
}

/* ---------- 13. 作品页 ---------- */
.work-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 0;
  border-bottom: 1px solid var(--line);
}
.work-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 860px) { .work-hero__inner { grid-template-columns: 1fr; } }
.work-hero__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.2;
  letter-spacing: .03em;
  margin: 0 0 1rem;
}
.work-hero__meta { display: grid; gap: .5rem; border-left: 1px solid var(--line); padding-left: 1.4rem; }
.work-hero__meta div {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: .92rem;
}
.work-hero__meta dt {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  min-width: 4.6em;
}
.work-hero__meta dd { margin: 0; font-family: var(--latin); }

/* ---------- 14. 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 5rem);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  flex-shrink: 0;
}
.contact-list .value {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: right;
  word-break: break-all;
  position: relative;
}
.contact-list a.value::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.contact-list a.value:hover::after { right: 0; }

/* 公众号二维码卡片 */
.wechat-qr {
  margin-top: 1.8rem;
  display: flex;
  justify-content: flex-start;
}
.wechat-qr__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .9rem 1.1rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.wechat-qr__link:hover {
  border-color: var(--accent);
  background: rgba(216, 90, 51, .06);
}
.wechat-qr__img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.wechat-qr__label {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--fg);
  letter-spacing: .02em;
  line-height: 1.6;
}
.wechat-qr__label::before {
  content: "微信公众号";
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .3rem;
}

/* 页尾微信：可点击复制 */
.copy-wechat {
  cursor: pointer;
  border-bottom: 1px dashed var(--fg-faint);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.copy-wechat:hover { color: var(--accent); border-color: var(--accent); }
.copy-wechat.is-copied { color: var(--accent); border-color: var(--accent); }

/* ---------- 15. 版权页 Colophon（页脚） ---------- */
.colophon {
  border-top: 1px solid var(--fg);
  margin-top: clamp(4rem, 10vw, 8rem);
}
.colophon__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
}
@media (max-width: 760px) { .colophon__inner { grid-template-columns: 1fr; } }
.colophon h4 {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 1rem;
}
.colophon__brand { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.colophon__brand .name {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .14em;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon ul li { margin-bottom: .55rem; }
.colophon ul a {
  font-size: .98rem;
  color: var(--fg-soft);
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.colophon ul a:hover { color: var(--accent); border-color: var(--accent); }
.colophon__fineprint {
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.3rem var(--gutter) 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.colophon__fineprint a { color: var(--fg-soft); }
.colophon__fineprint a:hover { color: var(--accent); }

/* ---------- 16. 页码（内页页脚） ---------- */
.pagination {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.pagination a {
  flex: 1;
  border: 1px solid var(--line);
  padding: 1rem 1.2rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.pagination a:hover { border-color: var(--accent); background: rgba(255,255,255,.05); }
.pagination .dir {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .4rem;
}
.pagination .t {
  font-family: var(--serif);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.5;
  display: block;
}

/* ---------- 17. 丁达尔光（从 logo 射下的光束 + 鼠标光斑） ---------- */
/* 环境底光：整页被左上角 logo 微微照亮 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(1000px 700px at 6% 0%, rgba(255, 255, 255, .05), transparent 70%);
}
.light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 59;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.light.is-on { opacity: 1; }
.light__beam {
  position: absolute;
  left: 0;
  top: 0;
  width: 1600px;
  height: 720px;
  transform-origin: 0 50%;
  transform: translate(0, -50%) rotate(1.05rad);
  /* 纯径向渐变塑形，天生无硬边：光源在左端中心，向外拉伸成柔光柱 */
  background: radial-gradient(1500px 340px at 0% 50%,
    rgba(255, 255, 255, .32) 0%,
    rgba(255, 255, 255, .13) 38%,
    rgba(255, 255, 255, .05) 62%,
    transparent 100%);
  filter: blur(14px);
  will-change: transform;
}

/* ---------- 18. 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- 19. 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.2rem;
  padding: 4rem var(--gutter);
}
.notfound .big {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  margin: 0;
}
.notfound .big span { color: var(--fg-soft); }

/* 打印 —— 文章值得被纸带走（打印时反白成亮底黑字） */
@media print {
  .masthead, .colophon, .pagination, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .prose-wrap { padding: 0; max-width: none; }
  a { border-bottom: none !important; }
  .prose strong, .cover__tagline em, .meta--seal { color: #000 !important; }
}

/* ============================================================
   20. 浅色主题 · 白底黑字 + 一点橙红缀色
   ============================================================ */
[data-theme="light"] {
  --bg:          #FFFFFF;                /* 纯白，回应「白色背景」 */
  --bg-raised:   #F3F3F1;                /* 分区灰，偏冷，绝非米色 */
  --bg-deep:     #111111;                /* 播放框 / 代码沉底仍用深色，形成对比 */
  --fg:          #141413;                /* 近黑正文 */
  --fg-soft:     rgba(20, 20, 19, .66);
  --fg-faint:    rgba(20, 20, 19, .42);
  --line:        rgba(20, 20, 19, .15);
  --accent:      #C23D1B;                /* 唯一点缀：陶土橙红，极小面积 */
  --accent-soft: rgba(194, 61, 27, .82);
}

/* 浅色 · 覆盖硬编码深色细节 */
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(20,20,19,.18); border-color: var(--bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(20,20,19,.30); }
[data-theme="light"] .masthead.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0,0,0,.25); }
[data-theme="light"] .cover__title { color: var(--fg); }
[data-theme="light"] .cover__year { color: var(--fg); }

/* 浅色 · 印章：橙红底白字（白纸上的唯一大块缀色） */
[data-theme="light"] .seal {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 1px 4px -1px rgba(194, 61, 27, .4);
}

/* 浅色 · 播放框内文字强制亮色（播放框仍是深底） */
[data-theme="light"] .player-frame__placeholder { color: #ECECEA; }
[data-theme="light"] .player-frame__placeholder .meta { color: rgba(236,236,234,.6); }

/* 浅色 · 关闭丁达尔光与环境底光 */
[data-theme="light"] .light,
[data-theme="light"] body::before { display: none; }

/* ---------- 20a. 红光粒子画布（浅色专属） ---------- */
.particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 58;
  display: none;
}
[data-theme="light"] .particle-canvas { display: block; }

/* ---------- 20b. 主题切换按钮 ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: .4rem;
  padding: .4rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--fg); }
.theme-toggle__swatch {
  width: .82em;
  height: .82em;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
[data-theme="light"] .theme-toggle__swatch { background: var(--bg); border: 1px solid var(--line); }
