/* ============================================================
   存在与座架 · 海德格尔读书站 · 全站样式
   视觉方向：黑森林松墨绿（遮蔽 / 大地）× 澄明光黄（去蔽 / Lichtung）
   林中有一块空地，光落进来——那块空地就是此在
   ============================================================ */

:root {
  --paper: #f3f1e9;
  --paper-deep: #e6e3d6;
  --ink: #1f2420;
  --muted: #626960;
  --accent: #2b4433;        /* 松墨绿 · 遮蔽 / 大地 / 森林 */
  --accent-deep: #17281c;
  --accent-wash: #dce6dc;
  --field: #b8891c;         /* 澄明光黄 · 去蔽 / 林中空地 */
  --field-deep: #7d5c0d;
  --field-wash: #f4e8c8;
  --caution: #9c3b28;       /* 陶土红 · 争议 / 断裂 */
  --caution-wash: #f3ded8;
  --line: #d6d1c1;
  --serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --latin: "Didot", "Bodoni 72", "Baskerville", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 241, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 58px;
}
.nav-brand {
  font-family: var(--latin);
  font-size: 14px; letter-spacing: 0.2em;
  color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap;
}
.nav-brand .clearing { color: var(--field); }
.nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.nav-links a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 6px 12px; border-radius: 2px; white-space: nowrap;
}
.nav-links a:hover { color: var(--accent-deep); background: var(--accent-wash); }
.nav-links a.active { color: var(--paper); background: var(--accent); }

/* ---------- 版面骨架 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 760px; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--latin);
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.3; }
h1 { font-size: clamp(34px, 5.5vw, 56px); letter-spacing: 0.02em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 20px; }
h3 { font-size: 20px; margin: 28px 0 10px; }
p { margin: 14px 0; }
.lede { font-size: 18px; color: var(--muted); max-width: 680px; }
strong { color: var(--accent-deep); }
em { font-style: normal; border-bottom: 2px solid var(--field); }
a.text-link { color: var(--field-deep); text-decoration: underline; text-underline-offset: 3px; }

/* 德文术语行内标注：Dasein / 此在 */
.de {
  font-family: var(--latin); font-style: italic;
  color: var(--accent-deep); letter-spacing: 0.02em;
}

blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: 18px 24px; margin: 22px 0;
  font-family: var(--serif); font-size: 17px;
}
blockquote.field { border-left-color: var(--field); background: var(--field-wash); }
blockquote cite {
  display: block; font-family: var(--latin);
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--muted); margin-top: 8px; font-style: normal;
}

.inscription {
  text-align: center; font-family: var(--latin);
  font-size: 13px; letter-spacing: 0.5em;
  color: var(--field-deep); text-transform: uppercase; margin: 8px 0 0;
}

/* ---------- 图框（SVG） ---------- */
.figure {
  border: 1.5px solid var(--ink);
  background: #fbfaf6;
  padding: 28px 24px 18px; margin: 28px 0;
}
.figure svg { display: block; width: 100%; height: auto; }
.figcap {
  font-family: var(--latin); font-size: 12px; color: var(--muted);
  letter-spacing: 0.1em; margin-top: 14px;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.figcap b { color: var(--accent); font-weight: 700; }

/* ---------- 图版系统（照片） ----------
   .plate       单张图版，带题注与出处
   .plate-grid  图版网格，cols-2 / cols-3
   所有图片均取自 Wikimedia Commons，PD 或 CC 授权，
   出处与许可逐页在 #img-credits 节列明               */
.plate { margin: 28px 0; }
.plate figure { margin: 0; border: 1.5px solid var(--ink); background: #fbfaf6; padding: 10px; }
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption,
.plate-grid figcaption {
  font-size: 13.5px; color: var(--muted); line-height: 1.65;
  margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px;
}
.plate figcaption b,
.plate-grid figcaption b { color: var(--accent-deep); font-weight: 700; }
.plate figcaption .cred,
.plate-grid figcaption .cred {
  display: block; font-family: var(--latin);
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px;
}

.plate-grid { display: grid; gap: 20px; margin: 28px 0; }
.plate-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.plate-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .plate-grid.cols-2, .plate-grid.cols-3 { grid-template-columns: 1fr; } }
.plate-grid figure { margin: 0; border: 1.5px solid var(--ink); background: #fbfaf6; padding: 8px; }
.plate-grid img { display: block; width: 100%; height: auto; }

/* 定高图版：让并排照片的视觉高度一致 */
.plate-grid.even img { height: 210px; object-fit: cover; }
.plate.tall img { max-height: 520px; object-fit: contain; background: #fff; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  border: 1.5px solid var(--ink);
  background: #fdfcf8;
  padding: 24px; position: relative;
  box-shadow: 4px 4px 0 var(--accent-wash);
}
.card h3 { margin-top: 0; }
.card .tag {
  display: inline-block; font-family: var(--latin);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--paper); background: var(--accent);
  padding: 2px 9px; margin-bottom: 12px; text-transform: uppercase;
}
.card .tag.gold { background: var(--field); color: #2a2003; }
.card .tag.clay { background: var(--caution); }
.card p { font-size: 15px; color: #41463f; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--accent-wash); }
.card img.portrait {
  float: right; width: 76px; height: 76px; object-fit: cover;
  border: 1.5px solid var(--ink); margin: 0 0 10px 14px; background: #fff;
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; margin: 36px 0; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--accent);
}
.t-item { position: relative; padding: 0 0 34px; }
.t-item::before {
  content: ""; position: absolute; left: -32px; top: 8px;
  width: 12px; height: 12px; background: var(--paper);
  border: 3px solid var(--accent); border-radius: 50%;
}
.t-item.milestone::before { background: var(--field); border-color: var(--field); }
.t-item.rupture::before { background: var(--caution); border-color: var(--caution); }
.t-year { font-family: var(--latin); font-weight: 700; font-size: 15px; color: var(--accent-deep); letter-spacing: 0.08em; }
.t-item.rupture .t-year { color: var(--caution); }
.t-item h3 { margin: 4px 0 6px; font-size: 18px; }
.t-item p { margin: 0; font-size: 15px; color: #41463f; max-width: 640px; }

/* ---------- 精读块 ---------- */
.chapter { border-left: 4px solid var(--accent); padding: 8px 0 8px 26px; margin: 44px 0; }
.chapter.gold { border-left-color: var(--field); }
.chapter .ch-no { font-family: var(--latin); font-size: 12px; letter-spacing: 0.26em; color: var(--accent); text-transform: uppercase; }
.chapter.gold .ch-no { color: var(--field-deep); }
.chapter h3 { margin-top: 6px; font-size: 24px; }
.chapter ul { margin: 12px 0 12px 22px; }
.chapter li { margin: 8px 0; font-size: 15.5px; }
.keybox { background: var(--paper-deep); border: 1px solid var(--line); padding: 14px 18px; margin: 16px 0; font-size: 15px; }
.keybox b { font-family: var(--latin); font-size: 12px; letter-spacing: 0.2em; color: var(--field-deep); display: block; margin-bottom: 6px; text-transform: uppercase; }

.difficulty { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 10px; }
.difficulty i { width: 9px; height: 9px; border: 1.5px solid var(--accent); border-radius: 50%; display: inline-block; }
.difficulty i.on { background: var(--accent); }
.difficulty.hard i { border-color: var(--caution); }
.difficulty.hard i.on { background: var(--caution); }

/* ---------- 适用边界 / 争议块 ---------- */
.keybox.bound {
  border: 1.5px dashed var(--accent);
  background: var(--accent-wash);
  padding: 16px 20px; margin: 22px 0; font-size: 14.5px; color: #37402f;
}
.keybox.bound b {
  font-family: var(--latin); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--accent-deep);
}
.keybox.controversy {
  border: 1.5px solid var(--caution);
  border-left-width: 5px;
  background: var(--caution-wash);
  padding: 16px 20px; margin: 24px 0; font-size: 15px; color: #4d2820;
}
.keybox.controversy b {
  font-family: var(--latin); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--caution);
}

/* ---------- Hero（林中光柱） ---------- */
.hero {
  padding: 84px 0 64px;
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(105deg, rgba(184, 137, 28, 0.12) 0 8%, transparent 8% 18%,
      rgba(184, 137, 28, 0.08) 18% 23%, transparent 23% 100%),
    repeating-linear-gradient(92deg,
      rgba(43, 68, 51, 0.055) 0 2px, transparent 2px 26px),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .lede { margin-top: 20px; }

/* ---------- 签名交互：上手 ↔ 在手 断裂实验台 ---------- */
.toollab {
  border: 2px solid var(--ink);
  background: #fdfcf8;
  padding: 26px; margin: 30px 0;
  box-shadow: 6px 6px 0 var(--accent-wash);
}
.toollab-title { font-family: var(--latin); font-size: 13px; letter-spacing: 0.22em; color: var(--accent); margin-bottom: 6px; text-transform: uppercase; }
.toollab-sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

/* 状态舞台：工具从"透明"到"凸显" */
.tl-stage {
  border: 1px solid var(--line); background: var(--paper);
  padding: 18px; min-height: 232px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background .35s ease, border-color .35s ease;
}
.tl-stage[data-mode="zuhanden"] { background: var(--accent-wash); border-color: var(--accent); }
.tl-stage[data-mode="vorhanden"] { background: var(--field-wash); border-color: var(--field); }
.tl-stage svg { width: 100%; max-width: 420px; height: auto; }

.tl-state {
  font-family: var(--latin); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 10px; color: var(--muted);
}
.tl-stage[data-mode="zuhanden"] .tl-state { color: var(--accent-deep); }
.tl-stage[data-mode="vorhanden"] .tl-state { color: var(--field-deep); }

.tl-readout { margin-top: 18px; min-height: 150px; font-size: 15px; line-height: 1.8; }
.tl-readout .head { display: block; font-family: var(--serif); font-weight: 900; font-size: 19px; margin-bottom: 8px; }
.tl-readout[data-mode="zuhanden"] .head { color: var(--accent-deep); }
.tl-readout[data-mode="vorhanden"] .head { color: var(--field-deep); }
.tl-readout .term {
  display: block; font-family: var(--latin); font-size: 13px;
  letter-spacing: 0.06em; color: var(--ink);
  background: var(--paper-deep); border-left: 3px solid var(--field);
  padding: 8px 12px; margin: 10px 0;
}
.tl-readout .why { color: #41463f; }

.tl-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.tl-btns button {
  font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  padding: 10px 16px; cursor: pointer;
  border: 2px solid var(--ink); background: #fff;
  transition: transform .1s ease;
}
.tl-btns button:hover { transform: translateY(-2px); }
.tl-btns button:disabled { opacity: .4; cursor: default; transform: none; }
.tl-btns .btn-use { border-color: var(--accent); color: var(--accent-deep); }
.tl-btns .btn-break { border-color: var(--field); color: var(--field-deep); }
.tl-btns .btn-reset { border-color: var(--muted); color: var(--muted); }
.tl-progress {
  font-family: var(--latin); font-size: 12px; letter-spacing: 0.15em;
  color: var(--muted); text-align: center; margin-top: 16px;
  border-top: 1px solid var(--line); padding-top: 12px;
}
.tl-progress i { font-style: normal; color: var(--field-deep); font-weight: 700; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 2px solid var(--ink); margin-top: 40px;
  padding: 36px 0 48px; background: var(--paper-deep);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; }
footer p, footer a { font-family: var(--latin); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

.page-head { padding: 64px 0 48px; border-bottom: 2px solid var(--ink); }
.page-head .lede { margin-top: 16px; }
.concept { margin: 56px 0; }

table.terms { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
table.terms th, table.terms td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
table.terms th { background: var(--accent-wash); font-family: var(--latin); font-size: 12px; letter-spacing: 0.15em; color: var(--accent-deep); text-transform: uppercase; }
table.terms td:first-child { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---------- 行内校注 ---------- */
.note-inline { color: var(--muted); font-size: 0.9em; border-bottom: 1px dotted var(--line); }

/* ---------- 图片版权说明 ---------- */
#img-credits p { font-size: 13.5px; color: var(--muted); }

:focus-visible { outline: 3px solid var(--field); outline-offset: 2px; }
