/* ============================================================
   孙宇晨在哪里 · Where Is Justin Sun
   设计语言：暗夜雷达 / 信号追踪 + 杂志式排版
   色板：深空黑 / TRON 红 / 金 / 灰
   ============================================================ */

:root {
  --bg: #08080c;
  --bg-2: #0d0d13;
  --panel: #12121a;
  --panel-2: #16161f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --red: #ff2e4d;
  --red-soft: rgba(255, 46, 77, 0.14);
  --gold: #e0b45f;
  --gold-soft: rgba(224, 180, 95, 0.14);
  --blue: #4da3ff;
  --blue-soft: rgba(77, 163, 255, 0.14);
  --green: #35e0a1;

  --text: #ececf1;
  --muted: #8b8b96;
  --muted-2: #5c5c66;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body.light {
  --bg: #f4f2ec;
  --bg-2: #ece9e0;
  --panel: #ffffff;
  --panel-2: #f7f5ef;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.20);
  --text: #17171c;
  --muted: #6b6b74;
  --muted-2: #a0a0a8;
  --red-soft: rgba(255, 46, 77, 0.10);
  --gold-soft: rgba(180, 140, 40, 0.12);
  --blue-soft: rgba(40, 110, 200, 0.10);
}

.mono { font-family: var(--mono); }

::selection { background: var(--red); color: #fff; }

/* 自定义滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--red), var(--panel-2));
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }

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

/* ============ 预加载 ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__radar {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  animation: spin 2.2s linear infinite;
}
.preloader__radar::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.preloader__radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 320deg, var(--red) 355deg, transparent 360deg);
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__text { font-family: var(--serif); font-size: 18px; letter-spacing: 0.2em; }
.preloader__sub { margin-top: 8px; font-size: 10px; letter-spacing: 0.3em; color: var(--muted); }

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; }
.nav__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red);
  animation: pulse-ring 2.4s var(--ease) infinite;
  align-self: center;
  margin-right: 2px;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--red-soft), 0 0 8px var(--red); }
  70% { box-shadow: 0 0 0 8px transparent, 0 0 8px var(--red); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 8px var(--red); }
}
.nav__title { font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: 0.04em; }
.nav__title-en { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__search, .nav__theme {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.nav__search:hover, .nav__theme:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.nav__search-hint { font-size: 10px; color: var(--muted); padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; }
.icon-sun { display: none; }
body.light .icon-sun { display: block; }
body.light .icon-moon { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin 60s linear infinite;
}
.hero__rings::before, .hero__rings::after {
  content: "";
  position: absolute; inset: 12%;
  border-radius: 50%; border: 1px solid var(--line);
}
.hero__rings::after { inset: 26%; border-color: var(--red-soft); }

.hero__status {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 28px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--panel);
  color: var(--text);
}
.status-pill__pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.5);
  animation: pulse-ring-green 2s var(--ease) infinite;
}
@keyframes pulse-ring-green {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.5); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.status-pill--dim { color: var(--muted); border-color: var(--line); }

.hero__title {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  font-size: clamp(52px, 11vw, 140px);
}
.hero__line { display: block; }
.hero__line--2 { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero__line--2 .hero__mark {
  color: var(--red);
  -webkit-text-stroke: 0;
  display: inline-block;
  animation: bob 3s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__sub {
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 560px;
}
.hero__sub em { color: var(--text); font-style: normal; border-bottom: 1px solid var(--gold); }

/* 信号卡 */
.signal-card {
  margin-top: 48px;
  width: min(680px, 92vw);
  text-align: left;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  position: relative;
}
.signal-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}
.signal-card__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.signal-card__field {
  background: var(--panel);
  padding: 20px 22px;
}
.signal-card__label { font-size: 9px; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 8px; }
.signal-card__value { font-family: var(--serif); font-weight: 700; font-size: clamp(16px, 2.4vw, 22px); }
.signal-card__value--accent { color: var(--green); }
.signal-card__meter {
  height: 6px; border-radius: 4px; background: var(--line);
  overflow: hidden; margin-top: 12px;
}
.signal-card__meter-bar {
  height: 100%; width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 1.4s var(--ease);
}
.signal-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.signal-card__link { color: var(--red); text-decoration: none; letter-spacing: 0.1em; }
.signal-card__link:hover { text-decoration: underline; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; font-size: 9px; letter-spacing: 0.25em;
}
.hero__scroll-line {
  width: 1px; height: 34px; background: var(--muted);
  overflow: hidden; position: relative;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--red);
  animation: scroll-line 1.8s var(--ease) infinite;
}
@keyframes scroll-line { to { top: 120%; } }

/* ============ 跑马灯 ============ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-block;
  padding: 12px 0;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; margin-right: 48px; font-size: 13px; color: var(--muted); }
.ticker__item b { color: var(--text); font-weight: 500; }
.ticker__item i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); font-style: normal; display: inline-block;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 通用 section ============ */
.section-head { max-width: var(--maxw); margin: 0 auto 40px; padding: 0 20px; }
.section-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  border-radius: 2px;
}
.section-desc { margin-top: 20px; color: var(--muted); max-width: 560px; font-size: 15px; }

/* ============ 地图 ============ */
.map-section { padding: 90px 20px; }
.map-panel {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.map-panel__hud {
  display: flex; gap: 22px; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 10px; letter-spacing: 0.16em; color: var(--muted);
  flex-wrap: wrap;
}
.hud-item--dim { margin-left: auto; color: var(--muted-2); }
.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background:
    radial-gradient(ellipse at center, var(--panel-2) 0%, var(--bg) 100%);
  overflow: hidden;
}
.map-stage__sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, transparent 340deg, rgba(255,46,77,0.05) 360deg);
  animation: spin 9s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
#mapSvg { position: relative; width: 100%; height: 100%; display: block; }
.map-stage__corner {
  position: absolute; width: 20px; height: 20px;
  border: 1px solid var(--red); opacity: 0.6;
}
.map-stage__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.map-stage__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.map-stage__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.map-stage__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.map-panel__legend {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px; color: var(--muted); letter-spacing: 0.08em;
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.legend-dot--red { background: var(--red); }
.legend-dot--gold { background: var(--gold); }
.legend-dot--blue { background: var(--blue); }
.legend-dot--dim { background: var(--muted); }

/* 地图 SVG 内元素 */
.map-dot { fill: var(--muted-2); opacity: 0.35; }
.map-pin { cursor: pointer; }
.map-pin circle.pin-halo { fill: none; stroke-width: 1; }
.map-pin .pin-core { transition: r 0.25s var(--ease); }
.map-pin:hover .pin-core { r: 6; }
.pin-pulse { transform-origin: center; transform-box: fill-box; animation: pinPulse 2.4s var(--ease) infinite; }
@keyframes pinPulse {
  0% { opacity: 0.7; transform: scale(0.5); }
  70% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(2.6); }
}
.map-arc { fill: none; stroke-width: 1.2; opacity: 0.5; stroke-dasharray: 4 5; animation: dashmove 2s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -18; } }
.map-label { font-family: var(--mono); font-size: 10px; fill: var(--muted); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.map-pin:hover .map-label { opacity: 1; }

/* ============ 统计 ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  background: var(--bg-2);
  padding: 44px 20px;
  text-align: center;
}
.stat__num {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg, var(--text), var(--muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }

/* ============ 时间线 ============ */
.timeline { padding: 90px 20px; }
.filters {
  max-width: var(--maxw); margin: 0 auto 40px; padding: 0 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.filters__group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip--active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.filters__count { font-size: 11px; color: var(--muted); align-self: flex-end; letter-spacing: 0.1em; }

.timeline__list {
  max-width: var(--maxw); margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline__list::before {
  content: "";
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--red), var(--line) 30%, var(--line) 70%, var(--gold));
  opacity: 0.5;
}

.event {
  position: relative;
  padding: 20px 0 20px 24px;
  cursor: pointer;
}
.event::before {
  content: "";
  position: absolute; left: -34px; top: 29px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted);
  transition: all 0.3s var(--ease);
}
.event:hover::before { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.event__card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.event__card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cat-color, var(--muted));
  opacity: 0; transition: opacity 0.35s;
}
.event:hover .event__card {
  transform: translateX(6px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
}
.event:hover .event__card::after { opacity: 1; }

.event__top {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.event__date {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--gold);
}
.event__cat {
  font-size: 11px; padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--cat-color, var(--line-strong));
  color: var(--cat-color, var(--muted));
  background: color-mix(in srgb, var(--cat-color, #fff) 10%, transparent);
}
.event__loc {
  font-size: 11px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.event__loc::before { content: "◈"; color: var(--muted-2); font-size: 9px; }

.event__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(17px, 2.4vw, 21px);
  margin-bottom: 8px;
}
.event__summary { color: var(--muted); font-size: 14px; }
.event__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.event__tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted-2);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px;
}
.event__more {
  margin-top: 14px;
  font-size: 12px; color: var(--red); letter-spacing: 0.08em;
  opacity: 0; transform: translateY(4px);
  transition: all 0.3s var(--ease);
}
.event:hover .event__more { opacity: 1; transform: translateY(0); }

/* 揭示动画 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.timeline__empty {
  max-width: var(--maxw); margin: 60px auto 0; text-align: center; color: var(--muted);
}
.timeline__empty-mark { font-family: var(--serif); font-size: 60px; opacity: 0.3; }
.btn-ghost {
  margin-top: 18px;
  font-family: var(--sans); font-size: 13px;
  padding: 9px 20px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer;
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ============ 关于 ============ */
.about { padding: 60px 20px 100px; }
.about__card {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px clamp(24px, 5vw, 56px);
}
.about__text { color: var(--muted); margin-top: 18px; font-size: 15px; max-width: 720px; }
.about__text strong { color: var(--text); }
.about__text code { color: var(--gold); background: var(--bg); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.about__tags { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted-2); }

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 30px 20px;
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; }
.footer__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.footer__meta { font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; }

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal__panel {
  position: relative;
  width: min(680px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.modal__close {
  position: sticky; top: 14px; float: right;
  z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  cursor: pointer; margin-right: 14px;
  transition: all 0.25s;
}
.modal__close:hover { border-color: var(--red); color: var(--red); transform: rotate(90deg); }
.modal__body { padding: 8px 28px 32px; }
.modal__date { font-family: var(--mono); color: var(--gold); font-size: 13px; letter-spacing: 0.08em; }
.modal__title { font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 4vw, 32px); margin: 12px 0 16px; line-height: 1.3; }
.modal__detail { color: var(--text); font-size: 15px; }
.modal__detail p { margin-bottom: 14px; }
.modal__detail p:first-child::first-letter {
  font-family: var(--serif); font-size: 44px; float: left; line-height: 1; margin: 4px 10px 0 0; color: var(--red);
}
.modal__meta {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  margin: 24px 0; padding: 18px 20px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  font-size: 13px;
}
.modal__meta dt { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.modal__meta dd { margin: 0; color: var(--text); }
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal__tag { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 100px; }
.modal__source { margin-top: 24px; font-size: 12px; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: 14px; }

/* ============ 搜索 ============ */
.search { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.search[hidden] { display: none; }
.search__panel {
  width: min(600px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.35s var(--ease);
}
.search__input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search__input-wrap input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-family: var(--sans); font-size: 17px;
}
.search__input-wrap input::placeholder { color: var(--muted-2); }
.search__input-wrap kbd { font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 3px 6px; border-radius: 4px; }
.search__hint { padding: 12px 20px; font-size: 11px; color: var(--muted-2); }
.search__results { max-height: 50vh; overflow-y: auto; }
.search__result {
  padding: 16px 20px; cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.search__result:last-child { border-bottom: 0; }
.search__result:hover, .search__result.active { background: var(--panel-2); }
.search__result-title { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.search__result-title mark { background: var(--gold-soft); color: var(--gold); padding: 0 2px; border-radius: 2px; }
.search__result-meta { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.search__result-empty { padding: 30px 20px; text-align: center; color: var(--muted); }

/* ============ 人物简介 ============ */
.bio { padding: 90px 20px; }
.bio-card {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.bio-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}
.bio-card::after {
  content: "档案"; position: absolute; right: -10px; bottom: -30px;
  font-family: var(--serif); font-weight: 900; font-size: 160px;
  color: var(--text); opacity: 0.03; line-height: 1; pointer-events: none;
}
.bio-card__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); position: relative; z-index: 1; }
.bio-card__name { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 6vw, 58px); line-height: 1.1; }
.bio-card__name-en { font-family: var(--mono); color: var(--muted); letter-spacing: 0.22em; font-size: 12px; margin-top: 8px; }
.bio-card__bio { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.bio-card__labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bio-label { font-size: 12px; padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--text); }
.bio-card__archive { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; }
.bio-row { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bio-row:last-child { border-bottom: 0; }
.bio-row dt { flex: 0 0 58px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); padding-top: 2px; }
.bio-row dd { margin: 0; font-size: 14px; color: var(--text); line-height: 1.6; }
.bio-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bio-list span { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; font-size: 12px; }

/* ============ 作文板块 ============ */
.writings { padding: 90px 20px; }
.writings__list { max-width: var(--maxw); margin: 0 auto; }
.writing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.quote-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.writings__subhead {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--muted);
  margin: 28px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.writings__subhead:first-child { margin-top: 0; }
.writings__subhead::before { content: ""; width: 20px; height: 2px; background: var(--red); }

.writing-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.writing-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 20px 50px -24px rgba(0,0,0,0.6); }
.writing-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--w-color, var(--red)); }
.writing-card__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.writing-badge { font-size: 11px; padding: 3px 11px; border-radius: 100px; border: 1px solid var(--w-color, var(--red)); color: var(--w-color, var(--red)); background: color-mix(in srgb, var(--w-color, #fff) 10%, transparent); }
.writing-date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.writing-title { font-family: var(--serif); font-weight: 700; font-size: 19px; margin-bottom: 10px; line-height: 1.4; }
.writing-content { color: var(--muted); font-size: 14px; line-height: 1.85; }
.writing-note { margin-top: 12px; font-size: 12px; color: var(--muted-2); font-style: italic; }
.writing-source { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.writing-link { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--red); text-decoration: none; letter-spacing: 0.06em; }
.writing-link:hover { text-decoration: underline; }
.writing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.writing-tag { font-family: var(--mono); font-size: 10px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }

.quote-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.quote-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.quote-card__mark { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--red); opacity: 0.4; height: 30px; }
.quote-card__text { font-family: var(--serif); font-size: 16px; line-height: 1.85; margin: 6px 0 16px; }
.quote-card__cat {
  margin-top: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--gold); display: inline-flex; align-items: center; gap: 6px;
}
.quote-card__cat::before { content: ""; width: 16px; height: 1px; background: var(--gold); }

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .nav__title-en { display: none; }
  .signal-card__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline__list { padding-left: 30px; }
  .event { padding-left: 16px; }
  .event::before { left: -24px; }
  .hud-item--dim { margin-left: 0; width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .bio-card__grid { grid-template-columns: 1fr; }
  .bio-card__archive { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .writing-grid { grid-template-columns: 1fr; }
  .quote-wall { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .quote-wall { grid-template-columns: 1fr; }
}
