:root {
  --night: #09151a;
  --night2: #102b31;
  --mist: #d7e9e6;
  --bone: #eff3e9;
  --acid: #b8f269;
  --ember: #ff7446;
  --water: #78d4eb;
  --dim: #88a5a2;
  --line: rgba(215, 233, 230, 0.22);
  --card-bg: rgba(16, 43, 49, 0.65);
  --serif: "Noto Serif SC", Georgia, serif;
  --sans: "Space Grotesk", Arial, sans-serif;
  --mono: "DM Mono", monospace;
  --crt-green: #33ff77;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
  color: var(--bone);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  font-family: var(--sans);
}

button, textarea, input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.world-shell {
  overflow: hidden;
  position: relative;
}

.world-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  object-fit: cover;
  opacity: 0.43;
  mix-blend-mode: screen;
  filter: saturate(1.3) contrast(1.1);
  pointer-events: none;
}

.night-wash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 960px;
  background: linear-gradient(90deg, rgba(9, 21, 26, 0.97) 4%, rgba(9, 21, 26, 0.58) 63%, rgba(9, 21, 26, 0.95) 100%);
  pointer-events: none;
}

/* ================= 头部与导航 ================= */
.world-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 21, 26, 0.85);
  backdrop-filter: blur(14px);
}

.site-title {
  color: var(--bone);
  display: grid;
  grid-template-columns: 18px auto;
  grid-template-rows: auto auto;
  gap: 0 9px;
  text-decoration: none;
  font: 600 17px var(--serif);
}

.site-seed {
  grid-row: 1/3;
  color: var(--acid);
  font-size: 20px;
  align-self: center;
  text-shadow: 0 0 17px var(--acid);
}

.site-title small {
  font: 10px var(--mono);
  color: var(--dim);
}

.world-header nav {
  display: flex;
  gap: 22px;
  margin-left: 36px;
}

.world-header nav button {
  border: 0;
  background: transparent;
  color: #c2d3d0;
  font-size: 13px;
  padding: 7px 0;
  transition: color 0.2s;
}

.world-header nav button:hover {
  color: var(--acid);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.time-leap-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--acid);
  background: linear-gradient(135deg, rgba(184, 242, 105, 0.2), rgba(120, 212, 235, 0.15));
  color: var(--bone);
  padding: 8px 14px;
  font: 700 12px var(--sans);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(184, 242, 105, 0.25);
  transition: all 0.25s;
}

.time-leap-btn:hover {
  background: var(--acid);
  color: var(--night);
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--acid);
}

.warp-spark {
  font-size: 13px;
  animation: pulse-spin 2s infinite linear;
}

.badge-hot {
  background: var(--ember);
  color: #fff;
  font: 700 9px var(--mono);
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 2px;
}

.codex-btn {
  border: 1px solid rgba(120, 212, 235, 0.4);
  background: rgba(120, 212, 235, 0.08);
  color: var(--water);
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 4px;
  transition: all 0.2s;
}

.codex-btn:hover {
  background: rgba(120, 212, 235, 0.2);
  border-color: var(--water);
}

.return-button {
  border: 1px solid rgba(184, 242, 105, 0.4);
  background: rgba(184, 242, 105, 0.08);
  color: var(--bone);
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 4px;
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(184, 242, 105, 0.1), 0 0 17px var(--acid);
  margin-right: 6px;
}

/* ================= 首屏视觉 ================= */
.landing {
  position: relative;
  min-height: 720px;
  padding: 80px clamp(22px, 8vw, 150px) 60px;
}

.return-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font: 12px var(--serif);
}

.return-note p {
  margin: 0;
}

.return-note b {
  font-weight: 500;
  color: var(--acid);
}

.return-line {
  width: 40px;
  border-top: 1px solid var(--acid);
}

.landing-copy {
  position: relative;
  z-index: 1;
  width: min(580px, 100%);
  margin-top: 40px;
}

.chapter-mark, .overline {
  font: 11px var(--mono);
  letter-spacing: 0.09em;
  color: var(--acid);
  text-transform: uppercase;
}

.landing h1 {
  font: 900 clamp(44px, 6.2vw, 90px)/1.12 var(--serif);
  letter-spacing: -0.06em;
  margin: 16px 0 20px;
}

.landing-summary {
  max-width: 420px;
  color: #c4d6d3;
  font: 16px/1.8 var(--serif);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  align-items: center;
}

.action-main {
  border: 0;
  background: var(--acid);
  color: var(--night);
  min-height: 46px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.action-main:hover {
  background: #d1ff8e;
  box-shadow: 0 0 20px rgba(184, 242, 105, 0.4);
}

.action-secondary {
  border: 1px solid rgba(215, 233, 230, 0.4);
  background: rgba(9, 21, 26, 0.6);
  color: var(--bone);
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  transition: all 0.2s;
}

.action-secondary:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.action-quiet {
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 13px;
  border-bottom: 1px solid var(--water);
  padding: 8px 0;
  transition: color 0.2s;
}

.action-quiet:hover {
  color: var(--water);
}

.living-seed {
  position: absolute;
  z-index: 1;
  right: 8vw;
  bottom: 50px;
  width: 500px;
  height: 440px;
}

.seed-core {
  position: absolute;
  left: 220px;
  top: 200px;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 10%;
  background: var(--acid);
  transform: rotate(-35deg);
  box-shadow: 0 0 0 14px rgba(184, 242, 105, 0.07), 0 0 75px 17px rgba(184, 242, 105, 0.32);
}

.root {
  position: absolute;
  width: 1px;
  background: var(--acid);
  transform-origin: top;
  opacity: 0.7;
}

.root-one { height: 230px; left: 237px; top: 233px; transform: rotate(30deg); }
.root-two { height: 200px; left: 237px; top: 230px; transform: rotate(-38deg); }

.branch {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
}

.branch:before {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--water);
  transform-origin: left;
  opacity: 0.7;
}

.branch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--water);
  box-shadow: 0 0 0 5px rgba(120, 212, 235, 0.08);
  position: relative;
}

.branch b, .branch small { display: block; }
.branch b { font: 600 14px var(--serif); }
.branch small { font: 9px var(--mono); color: var(--dim); margin-top: 4px; }

.branch.active .branch-dot {
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 0 23px var(--acid);
}

.branch-left { left: 10px; top: 132px; }
.branch-left:before { width: 220px; left: 8px; top: 6px; transform: rotate(30deg); }
.branch-up { right: 18px; top: 35px; }
.branch-up:before { width: 210px; right: 100%; top: 7px; transform: rotate(137deg); }
.branch-right { right: 4px; bottom: 50px; }
.branch-right:before { width: 200px; right: 100%; top: 7px; transform: rotate(-144deg); }

.seed-caption {
  position: absolute;
  z-index: 1;
  bottom: 15px;
  right: 8vw;
  color: var(--dim);
  font: 12px var(--serif);
}

/* ================= 01 宏观演进图谱 (Worldline Trajectory) ================= */
.trajectory-section {
  position: relative;
  z-index: 2;
  background: #0d2025;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px clamp(22px, 8vw, 150px);
}

.world-trajectory-card {
  background: rgba(9, 21, 26, 0.7);
  border: 1px solid rgba(184, 242, 105, 0.28);
  border-radius: 8px;
  padding: 24px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.trajectory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.trajectory-header h2 {
  font: 700 22px var(--serif);
  margin: 4px 0 0;
  color: var(--bone);
}

.trajectory-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 242, 105, 0.1);
  border: 1px solid rgba(184, 242, 105, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font: 12px var(--sans);
  color: var(--acid);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: pulse-spin 2s infinite;
}

.trajectory-nodes {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 16px 0 24px;
  margin-bottom: 18px;
}

.t-node {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.t-node:hover {
  background: rgba(255, 255, 255, 0.06);
}

.node-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px var(--mono);
  background: rgba(215, 233, 230, 0.1);
  border: 1px solid rgba(215, 233, 230, 0.3);
  color: var(--mist);
  margin-bottom: 8px;
  transition: all 0.25s;
}

.t-node.completed .node-num {
  background: rgba(120, 212, 235, 0.2);
  border-color: var(--water);
  color: var(--water);
}

.t-node.is-current .node-num {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--night);
  box-shadow: 0 0 20px var(--acid);
}

.t-node.sprouted .node-num {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
  box-shadow: 0 0 20px var(--ember);
  animation: pulse-glow 1.5s infinite;
}

.node-title {
  display: block;
  font: 600 13px var(--serif);
  color: var(--bone);
  white-space: nowrap;
}

.node-author {
  display: block;
  font: 10px var(--mono);
  color: var(--dim);
  margin-top: 3px;
  white-space: nowrap;
}

.t-line {
  flex-grow: 1;
  min-width: 24px;
  height: 2px;
  background: rgba(215, 233, 230, 0.2);
  margin: 0 4px 28px;
}

.t-line.active {
  background: var(--water);
  box-shadow: 0 0 8px rgba(120, 212, 235, 0.5);
}

.t-line.sprouted {
  background: var(--ember);
  box-shadow: 0 0 8px rgba(255, 116, 70, 0.5);
}

.trajectory-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(215, 233, 230, 0.12);
  padding-top: 18px;
}

.trajectory-metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.metric-pill {
  background: rgba(16, 43, 49, 0.7);
  border: 1px solid rgba(215, 233, 230, 0.15);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
}

.pill-lbl {
  color: var(--dim);
  font: 10px var(--mono);
  margin-right: 6px;
}

.metric-pill b {
  color: var(--acid);
  font-family: var(--mono);
}

.forecast-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.forecast-label {
  font: 11px var(--mono);
  color: var(--water);
}

.forecast-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(215, 233, 230, 0.2);
  padding: 4px 8px;
  border-radius: 3px;
  font: 11px var(--serif);
  color: #c8dedb;
}

/* ================= 02 多维视界与全文溯源 ================= */
.story-section {
  position: relative;
  background: var(--bone);
  color: #152321;
  padding: 70px clamp(22px, 8vw, 150px) 100px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 260px;
  gap: clamp(24px, 4vw, 70px);
}

.section-stamp {
  font: 12px var(--mono);
  color: #6e8180;
}

.section-stamp span {
  display: block;
  color: var(--ember);
  font-size: 18px;
  margin-bottom: 12px;
}

.section-stamp p {
  font: 13px/1.6 var(--serif);
  margin: 0 0 20px;
}

.world-pulse-pill {
  border: 1px solid #cbdad7;
  background: #e4eeec;
  padding: 10px;
  border-radius: 4px;
}

.world-pulse-pill small {
  display: block;
  font: 9px var(--mono);
  color: #4f6966;
  margin-bottom: 6px;
}

.pulse-bar {
  height: 5px;
  background: #b5c7c4;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pulse-bar span {
  display: block;
  height: 100%;
  background: var(--ember);
  transition: width 0.4s;
}

.world-pulse-pill b {
  font: 600 11px var(--mono);
  color: #1a3532;
}

/* 阅读模式切换栏 */
.read-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid #cfdedb;
  padding-bottom: 14px;
}

.mode-tabs {
  display: flex;
  gap: 8px;
}

.read-mode-btn {
  border: 1px solid #c2d4d1;
  background: #e5efec;
  color: #274542;
  padding: 7px 14px;
  border-radius: 4px;
  font: 600 12px var(--sans);
  transition: all 0.2s;
}

.read-mode-btn.active {
  background: #173634;
  color: var(--bone);
  border-color: #173634;
}

.split-view-btn {
  border: 1px solid #1a627a;
  background: rgba(120, 212, 235, 0.15);
  color: #0f4a5c;
  padding: 7px 14px;
  border-radius: 4px;
  font: 700 12px var(--sans);
  transition: all 0.2s;
}

.split-view-btn:hover {
  background: #1a627a;
  color: #fff;
}

/* 强反差视界潜入栏 (POV Bar) */
.pov-bar {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  background: #102528;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pov-label {
  font: 700 11px var(--mono);
  color: var(--acid);
}

.pov-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
  color: var(--mist);
  padding: 8px 12px;
  border-radius: 4px;
  text-align: left;
  transition: all 0.25s;
}

.pov-icon {
  font-size: 18px;
}

.pov-btn b {
  display: block;
  font: 600 12px var(--sans);
}

.pov-btn small {
  display: block;
  font: 9px var(--mono);
  color: var(--dim);
}

.pov-btn:hover {
  border-color: var(--water);
}

.pov-btn.active.pov-shen {
  background: #17423c;
  border-color: var(--acid);
  color: var(--bone);
  box-shadow: 0 0 16px rgba(184, 242, 105, 0.3);
}

.pov-btn.active.pov-gu {
  background: #381f14;
  border-color: var(--ember);
  color: var(--bone);
  box-shadow: 0 0 16px rgba(255, 116, 70, 0.3);
}

.pov-btn.active.pov-archive {
  background: #071c18;
  border-color: var(--crt-green);
  color: var(--crt-green);
  box-shadow: 0 0 16px rgba(51, 255, 119, 0.3);
}

/* 正文头部 */
.story-header-box {
  border-bottom: 1px solid #bfceca;
  padding-bottom: 18px;
}

.header-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-tags p {
  font: 11px var(--mono);
  color: #365b59;
  margin: 0;
}

#pov-badge {
  font: 10px var(--mono);
  padding: 3px 8px;
  border-radius: 3px;
}

.story-header-box h2 {
  font: 700 clamp(28px, 3.6vw, 44px)/1.2 var(--serif);
  letter-spacing: -0.05em;
  margin: 12px 0;
}

.meta-tag-mini {
  background: #d4e5e1;
  color: #29504c;
  padding: 2px 6px;
  border-radius: 2px;
  font: 9px var(--mono);
}

/* ================= 视角主题皮肤 (POV Themes) ================= */
.story-text {
  font: 19px/2.2 var(--serif);
  margin-top: 30px;
  padding: 20px;
  border-radius: 6px;
  transition: all 0.3s;
}

.story-text p {
  margin: 0 0 24px;
  text-indent: 2em;
  position: relative;
}

/* 1. 沈知微感官主题 */
.story-text.pov-theme-shen {
  background: #fbfdf9;
  border-left: 4px solid #3d7d74;
  color: #172825;
}

/* 2. 顾沉暗线机密主题 (涂黑解密) */
.story-text.pov-theme-gu {
  background: #141b1d;
  color: #e2ebe8;
  border-left: 4px solid var(--ember);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.story-text.pov-theme-gu p {
  color: #d1deda;
}

/* 机密涂黑文字交互 */
.redacted-secret {
  background: #000;
  color: transparent;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  display: inline;
  position: relative;
  text-indent: 0;
  border: 1px solid #38241b;
  transition: all 0.3s;
}

.redacted-secret:before {
  content: "█ 机密隐瞒 (点击解密) █";
  color: var(--ember);
  font: 10px var(--mono);
}

.redacted-secret.unredacted {
  background: rgba(255, 116, 70, 0.18);
  color: #ff9b7a;
  border-color: var(--ember);
  user-select: text;
}

.redacted-secret.unredacted:before {
  display: none;
}

/* 3. 档案馆监控 CRT 主题 */
.story-text.pov-theme-archive {
  background: #06110f;
  color: var(--crt-green);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.9;
  border-left: 4px solid var(--crt-green);
  text-shadow: 0 0 5px rgba(51, 255, 119, 0.4);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.story-text.pov-theme-archive p {
  text-indent: 0;
  margin-bottom: 16px;
}

.terminal-stamp {
  color: #79a69b;
  margin-right: 8px;
}

/* 多维并置对比容器 */
.split-compare-view {
  background: #09151a;
  border: 1px solid var(--water);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 30px 0;
  color: var(--bone);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.split-compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.split-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.split-col {
  background: rgba(16, 43, 49, 0.6);
  padding: 16px;
  border-radius: 4px;
  border-top: 3px solid var(--dim);
}

.split-col h4 {
  font: 700 13px var(--sans);
  margin: 0 0 10px;
}

.split-col p {
  font: 13px/1.7 var(--serif);
  color: #c9deda;
  margin: 0;
}

.col-shen { border-top-color: var(--acid); }
.col-gu { border-top-color: var(--ember); }
.col-archive { border-top-color: var(--crt-green); }

/* ================= 沉浸全文编年流 (Chronicle River) ================= */
.full-chronicle-view {
  background: #fbfdfa;
  border: 1px solid #cbdad7;
  border-radius: 6px;
  padding: 30px 36px;
  margin-top: 10px;
}

.chronicle-stream-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #1a3633;
  padding-bottom: 18px;
  margin-bottom: 30px;
}

.chronicle-stream-header h3 {
  font: 700 26px var(--serif);
  margin: 4px 0 6px;
}

.chronicle-stream-header p {
  font: 13px/1.6 var(--serif);
  color: #55706d;
  margin: 0;
}

.chronicle-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  padding-left: 30px;
  border-left: 2px dashed #b8ccc8;
}

.chapter-stream-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d5e2df;
  border-radius: 6px;
  padding: 22px 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.chapter-stream-card.highlight-new {
  border-color: var(--ember);
  box-shadow: 0 4px 20px rgba(255, 116, 70, 0.2);
}

.chapter-stream-node {
  position: absolute;
  left: -44px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #173634;
  color: var(--acid);
  display: grid;
  place-items: center;
  font: 700 11px var(--mono);
  box-shadow: 0 0 0 4px #fbfdfa;
}

.chapter-stream-node.sprouted-node {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 0 15px var(--ember);
}

.chapter-stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2ece9;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.chapter-stream-header h4 {
  font: 700 18px var(--serif);
  margin: 0;
  color: #173634;
}

.chapter-stream-meta {
  font: 10px var(--mono);
  color: #6a827e;
}

.chapter-stream-body {
  font: 16px/2 var(--serif);
  color: #2b423f;
}

.chapter-stream-body p {
  margin: 0 0 14px;
  text-indent: 2em;
}

.chapter-clues-tag {
  display: inline-block;
  background: #eef5f3;
  color: #27524e;
  padding: 4px 10px;
  border-radius: 3px;
  font: 11px var(--mono);
  margin-top: 10px;
}

/* Book-OS 状态实体透镜锚点 */
.lens-token {
  text-indent: 0;
  display: inline;
  color: #0b453e;
  border-bottom: 2px solid var(--ember);
  padding: 0 4px;
  cursor: pointer;
  background: rgba(255, 116, 70, 0.09);
  border-radius: 2px;
  font-weight: 600;
  transition: all 0.2s;
}

.lens-token:hover {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 116, 70, 0.3);
}

/* 句间时空回声（Ghost Sentences） */
.ghost-sentence {
  border: 0;
  background: rgba(120, 212, 235, 0.18);
  border-bottom: 1.5px dashed #206c82;
  color: #0f495a;
  font: inherit;
  padding: 0 4px;
  margin: 0 2px;
  display: inline;
  position: relative;
  cursor: pointer;
}

.ghost-sentence:hover {
  background: rgba(120, 212, 235, 0.35);
}

.ghost-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: min(320px, 80vw);
  background: #09151a;
  color: var(--bone);
  padding: 14px 16px;
  font: 13px/1.7 var(--serif);
  text-indent: 0;
  border: 1px solid var(--water);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 15;
  border-radius: 4px;
}

.bubble-label {
  display: block;
  font: 9px var(--mono);
  color: var(--water);
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.ghost-sentence[aria-expanded="true"] .ghost-bubble,
.ghost-sentence:focus .ghost-bubble {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 段落旁星火共鸣 */
.para-spark {
  display: inline-block;
  margin-left: 8px;
  font: 11px var(--mono);
  color: #6a827e;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
  background: #e2ece9;
  vertical-align: middle;
  text-indent: 0;
  transition: all 0.2s;
}

.para-spark:hover {
  background: #173634;
  color: var(--acid);
}

.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #bfceca;
  margin-top: 40px;
  padding-top: 20px;
}

.linger-button {
  border: 0;
  background: transparent;
  color: #375653;
  font: 12px var(--sans);
  padding: 0;
}

.linger-button span {
  font-size: 18px;
  color: var(--ember);
  vertical-align: middle;
}

.continue-button, .text-link {
  border: 0;
  background: transparent;
  color: #174d68;
  font-weight: 600;
  font-size: 12px;
  padding: 0;
}

.continue-button:hover, .text-link:hover {
  color: #0b2b3b;
}

/* 因果微干预沙盒 (Causal Micro-Intervention) */
.inline-sandbox-card {
  margin-top: 36px;
  background: #102b31;
  color: var(--bone);
  border: 1px solid rgba(184, 242, 105, 0.35);
  border-radius: 6px;
  padding: 20px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sandbox-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 13px var(--sans);
}

.sandbox-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}

.sandbox-body {
  margin-top: 18px;
  border-top: 1px solid rgba(215, 233, 230, 0.15);
  padding-top: 18px;
}

.sandbox-hint {
  font: 13px/1.6 var(--serif);
  color: #b7cbca;
  margin: 0 0 14px;
}

/* 命运盲盒 */
.fate-dice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fate-label {
  font: 11px var(--mono);
  color: var(--dim);
}

.fate-pill {
  border: 1px solid var(--water);
  background: rgba(120, 212, 235, 0.12);
  color: var(--water);
  padding: 6px 12px;
  font: 700 11px var(--sans);
  border-radius: 20px;
  transition: all 0.2s;
}

.fate-pill:hover {
  background: var(--water);
  color: var(--night);
}

.active-affix {
  background: rgba(255, 116, 70, 0.2);
  border: 1px solid var(--ember);
  color: var(--ember);
  padding: 4px 10px;
  font: 11px var(--mono);
  border-radius: 12px;
  animation: pulse-glow 1.5s infinite;
}

.inline-sandbox-card textarea {
  width: 100%;
  border: 1px solid rgba(215, 233, 230, 0.25);
  background: rgba(9, 21, 26, 0.5);
  color: var(--bone);
  resize: vertical;
  min-height: 70px;
  padding: 12px 14px;
  font: 14px/1.6 var(--serif);
  border-radius: 4px;
}

.sandbox-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

#sandbox-chars {
  font: 10px var(--mono);
  color: var(--dim);
}

.sandbox-preview {
  margin-top: 18px;
  background: rgba(9, 21, 26, 0.7);
  border-left: 3px solid var(--acid);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sim-tag {
  font: 9px var(--mono);
  background: var(--acid);
  color: var(--night);
  padding: 2px 6px;
  font-weight: 700;
  border-radius: 2px;
}

.preview-text {
  font: 14px/1.8 var(--serif);
  color: #d1e2df;
  margin: 0 0 10px;
}

.preview-note {
  font: 11px var(--mono);
  color: var(--water);
  margin: 0;
}

/* 侧边异动简讯 */
.change-card {
  align-self: start;
  border-top: 2px solid var(--night);
  padding-top: 18px;
}

.change-icon {
  color: var(--ember);
  font-size: 22px;
}

.change-card h3 {
  font: 600 22px var(--serif);
  letter-spacing: -0.04em;
  margin: 8px 0 16px;
}

.change-card ol {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: item;
}

.change-card li {
  counter-increment: item;
  padding: 10px 0;
  border-top: 1px solid #cbd6d2;
  color: #536866;
  font: 12px/1.5 var(--serif);
}

.change-card li:before {
  content: "0" counter(item);
  font: 9px var(--mono);
  color: var(--ember);
  margin-right: 9px;
}

.change-card b {
  color: #1f3431;
  font-weight: 600;
}

.lens-quick-guide {
  background: #e2ece9;
  border: 1px solid #cbd6d2;
  padding: 14px;
  border-radius: 4px;
}

.guide-tip {
  font: 12px/1.6 var(--serif);
  color: #3b5c58;
  margin: 6px 0 0;
}

.guide-token {
  color: var(--ember);
  font-weight: 700;
  text-decoration: underline;
}

.guide-redacted {
  color: var(--ember);
  background: #000;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 10px;
}

/* ================= 03 生长年轮 ================= */
.tree-section {
  background: var(--night2);
  padding: 100px clamp(22px, 8vw, 150px);
  min-height: 750px;
  display: grid;
  grid-template-columns: 360px minmax(500px, 1fr);
  gap: 60px;
  position: relative;
}

.tree-intro h2, .campfire-intro h2 {
  font: 700 clamp(30px, 3.6vw, 50px)/1.22 var(--serif);
  letter-spacing: -0.06em;
  margin: 16px 0 18px;
}

.tree-intro > p:last-child, .campfire-intro > p:last-child {
  color: #a7c0bc;
  font: 15px/1.8 var(--serif);
  max-width: 330px;
}

.tree-stage {
  height: 465px;
  position: relative;
  border-left: 1px solid rgba(184, 242, 105, 0.17);
}

.tree-trunk {
  position: absolute;
  left: 66px;
  top: 140px;
  width: 2px;
  height: 265px;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(184, 242, 105, 0.6);
}

.ring {
  position: absolute;
  border: 1px solid rgba(184, 242, 105, 0.28);
  border-radius: 50%;
  left: -42px;
  top: -39px;
}

.ring-one { width: 84px; height: 84px; }
.ring-two { width: 124px; height: 124px; left: -62px; top: -59px; }
.ring-three { width: 178px; height: 178px; left: -89px; top: -86px; border-color: rgba(184, 242, 105, 0.12); }

.tree-path {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--mist);
  border: 0;
  background: transparent;
  text-align: left;
}

.tree-path:before {
  content: "";
  position: absolute;
  height: 1px;
  background: rgba(120, 212, 235, 0.75);
  left: 7px;
  top: 9px;
  transform-origin: left;
}

.tree-path .path-node {
  width: 16px;
  height: 16px;
  z-index: 1;
  background: var(--night2);
  border: 2px solid var(--water);
  border-radius: 50%;
}

.tree-path.is-current .path-node {
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 0 21px var(--acid);
}

.tree-path span + span > * {
  display: block;
}

.tree-path small {
  font: 10px var(--mono);
  color: var(--water);
}

.tree-path b {
  font: 600 17px var(--serif);
  margin: 4px 0;
}

.tree-path em {
  font: 10px var(--mono);
  color: var(--dim);
  font-style: normal;
}

.tree-path { left: 66px; top: 142px; }
.tree-path:before { width: 142px; transform: rotate(-32deg); }
.tree-path > span:last-child { margin-left: 136px; margin-top: -88px; }

.path-door { left: 66px; top: 145px; }
.path-door:before { width: 242px; transform: rotate(-63deg); }
.path-door > span:last-child { margin-left: 235px; margin-top: -212px; }

.path-name { left: 66px; top: 315px; }
.path-name:before { width: 235px; transform: rotate(30deg); }
.path-name > span:last-child { margin-left: 225px; margin-top: 110px; }

.plant-button {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  text-align: left;
  gap: 10px;
  background: transparent;
  color: var(--bone);
  border: 1px dashed rgba(184, 242, 105, 0.54);
  padding: 14px 18px;
  border-radius: 4px;
}

.plant-button > span:first-child {
  color: var(--acid);
  font-size: 25px;
}

.plant-button b, .plant-button small {
  display: block;
}

.plant-button b {
  font: 600 13px var(--serif);
}

.plant-button small {
  font: 9px var(--mono);
  color: var(--dim);
  margin-top: 3px;
}

.branch-detail {
  grid-column: 2;
  background: rgba(9, 21, 26, 0.55);
  border-left: 3px solid var(--acid);
  padding: 24px 28px;
  margin-top: -50px;
  max-width: 580px;
  border-radius: 0 6px 6px 0;
}

.branch-detail h3 {
  font: 600 24px var(--serif);
  margin: 10px 0;
}

.branch-detail > p:not(.overline) {
  font: 13px/1.7 var(--serif);
  color: #c1d7d3;
}

.branch-detail > div {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 18px;
  font: 10px var(--mono);
  color: var(--water);
}

.branch-detail button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--acid);
  font: 600 12px var(--sans);
}

/* ================= 04 枝杈夜谈 ================= */
.campfire-section {
  background: #173238;
  color: var(--bone);
  padding: 100px clamp(22px, 8vw, 150px);
  display: grid;
  grid-template-columns: 310px minmax(0, 680px);
  justify-content: space-between;
  gap: 70px;
}

.discussion-shell {
  background: rgba(9, 21, 26, 0.45);
  padding: 28px 32px;
  border-radius: 6px;
}

.discussion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.branch-switcher {
  display: flex;
  gap: 16px;
}

.branch-switcher button {
  border: 0;
  background: transparent;
  color: var(--dim);
  padding: 0 0 5px;
  font-size: 12px;
}

.branch-switcher button.active {
  color: var(--acid);
  border-bottom: 2px solid var(--acid);
}

#discussion-count {
  font: 10px var(--mono);
  color: var(--dim);
}

.discussion-list {
  padding: 8px 0;
}

.comment {
  padding: 16px 0;
  border-bottom: 1px solid rgba(215, 233, 230, 0.13);
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 14px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 13px var(--serif);
  background: var(--water);
  color: var(--night);
}

.comment:nth-child(2n) .comment-avatar {
  background: var(--ember);
}

.comment-name {
  font: 600 12px var(--sans);
}

.comment-time {
  font: 9px var(--mono);
  color: var(--dim);
  margin-left: 8px;
}

.comment p {
  font: 14px/1.65 var(--serif);
  margin: 7px 0 0;
  color: #d6e5e2;
}

.comment-like {
  border: 0;
  background: transparent;
  color: var(--water);
  font: 11px var(--mono);
  padding: 6px 0 0;
}

.thought-form {
  padding-top: 24px;
}

.thought-form label {
  display: block;
  font: 11px var(--mono);
  color: var(--acid);
  margin-bottom: 10px;
}

.thought-form textarea, .modal-card textarea {
  width: 100%;
  border: 1px solid rgba(215, 233, 230, 0.22);
  background: rgba(9, 21, 26, 0.4);
  color: var(--bone);
  resize: vertical;
  min-height: 80px;
  padding: 13px;
  font: 14px/1.6 var(--serif);
  border-radius: 4px;
}

.thought-form textarea::placeholder, .modal-card textarea::placeholder {
  color: #75928e;
}

.thought-form > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.thought-form > div span {
  font: 10px var(--mono);
  color: var(--dim);
}

.thought-form > div button {
  border: 0;
  background: var(--water);
  color: var(--night);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
}

/* ================= 侧边抽屉：Book-OS 状态透镜 ================= */
.state-lens-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 90vw);
  height: 100%;
  background: rgba(9, 21, 26, 0.96);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(184, 242, 105, 0.3);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  z-index: 60;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.state-lens-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 55;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title-group h3 {
  font: 700 24px var(--serif);
  margin: 4px 0 0;
  color: var(--bone);
}

.close-drawer-btn {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 28px;
  line-height: 1;
}

.drawer-content {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lens-meta-card, .lens-metric-card, .lens-clues-card, .lens-world-impact {
  background: rgba(16, 43, 49, 0.6);
  border: 1px solid rgba(215, 233, 230, 0.15);
  border-radius: 6px;
  padding: 16px;
}

.lens-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.lens-row:last-child {
  margin-bottom: 0;
}

.lens-row span {
  color: var(--dim);
  font: 11px var(--mono);
}

.status-live {
  color: var(--acid);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.metric-header span {
  font: 11px var(--mono);
  color: var(--dim);
}

.metric-header b {
  font: 700 16px var(--mono);
  color: var(--acid);
}

.metric-bar-bg {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--water), var(--acid));
  transition: width 0.4s ease;
}

.heartbeat-wave {
  height: 32px;
  overflow: hidden;
}

.wave-svg {
  width: 100%;
  height: 100%;
}

.wave-path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 2;
  stroke-dasharray: 200;
  animation: wave-dash 2s infinite linear;
}

.clues-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.clues-list li {
  font: 13px/1.6 var(--serif);
  color: #d1e2df;
  padding: 8px 0;
  border-bottom: 1px solid rgba(215, 233, 230, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clues-list li:last-child {
  border-bottom: 0;
}

.clue-progress {
  font: 9px var(--mono);
  background: rgba(184, 242, 105, 0.15);
  color: var(--acid);
  padding: 2px 6px;
  border-radius: 10px;
}

.impact-desc {
  font: 13px/1.7 var(--serif);
  color: #b7cbca;
  margin: 8px 0 0;
}

/* ================= 全屏时空穿梭 (Time-Leap Warp) ================= */
.time-leap-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at center, #102b31 0%, #09151a 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  text-align: center;
}

.warp-clock-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid rgba(184, 242, 105, 0.3);
  position: relative;
  margin-bottom: 30px;
  box-shadow: 0 0 50px rgba(184, 242, 105, 0.3);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  height: 52px;
  background: var(--acid);
  transform-origin: bottom center;
  animation: clock-spin 0.4s infinite linear;
}

.warp-content {
  max-width: 480px;
  padding: 0 20px;
}

.warp-subtitle {
  font: 12px var(--mono);
  color: var(--water);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.warp-content h2 {
  font: 700 36px var(--serif);
  margin: 0 0 24px;
}

.warp-progress {
  width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 16px;
}

#warp-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--acid);
  transition: width 0.1s linear;
}

.warp-log {
  font: 12px var(--mono);
  color: var(--dim);
}

/* ================= 72 小时结算弹窗与星图 ================= */
.chronicle-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
}

.modal-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.chronicle-card, .codex-card {
  position: relative;
  width: min(640px, calc(100% - 32px));
  margin: 8vh auto;
  background: #102b31;
  border: 1px solid rgba(184, 242, 105, 0.4);
  padding: 36px 40px;
  color: var(--bone);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  max-height: 85vh;
  overflow-y: auto;
}

.chronicle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 11px var(--mono);
  color: var(--acid);
  background: rgba(184, 242, 105, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.chronicle-card h2, .codex-card h2 {
  font: 700 28px/1.3 var(--serif);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.chronicle-subtitle {
  font: 14px/1.7 var(--serif);
  color: #b9d0cc;
  margin: 0 0 24px;
}

.chronicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.chronicle-item {
  background: rgba(9, 21, 26, 0.6);
  border: 1px solid rgba(215, 233, 230, 0.15);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  gap: 14px;
}

.item-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.chronicle-item b {
  display: block;
  font: 600 14px var(--serif);
  margin-bottom: 6px;
  color: var(--bone);
}

.chronicle-item p {
  font: 12px/1.6 var(--serif);
  color: #a7c2be;
  margin: 0;
}

.item-highlight {
  border-color: var(--acid);
  background: rgba(184, 242, 105, 0.08);
}

.item-highlight b {
  color: var(--acid);
}

.item-reward {
  border-color: var(--ember);
  background: rgba(255, 116, 70, 0.08);
}

.item-reward b {
  color: var(--ember);
}

.chronicle-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* 旅者星图 (Codex) */
.codex-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(9, 21, 26, 0.6);
  border: 1px solid rgba(215, 233, 230, 0.15);
  padding: 14px;
  border-radius: 6px;
  text-align: center;
}

.stat-num {
  display: block;
  font: 700 20px var(--mono);
  color: var(--acid);
  margin-bottom: 4px;
}

.stat-lbl {
  font: 10px var(--mono);
  color: var(--dim);
}

.codex-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.codex-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(215, 233, 230, 0.1);
  font: 13px var(--serif);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--water);
}

.dot-sprout {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
}

.codex-list small {
  margin-left: auto;
  font: 10px var(--mono);
  color: var(--dim);
}

/* 原有弹窗与通用 */
.plant-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
}

.modal-card {
  position: relative;
  width: min(520px, calc(100% - 38px));
  margin: 12vh auto;
  background: #18383b;
  padding: 38px;
  color: var(--bone);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

.modal-card h2 {
  font: 700 33px/1.3 var(--serif);
  letter-spacing: -0.05em;
  margin: 14px 0;
}

.modal-card > p:not(.overline) {
  font: 14px/1.75 var(--serif);
  color: #b9d0cc;
  margin-bottom: 25px;
}

.close-modal {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 26px;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 25px);
  background: var(--acid);
  color: var(--night);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

[hidden] {
  display: none !important;
}

/* 动效 */
@keyframes clock-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wave-dash {
  to { stroke-dashoffset: -200; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 116, 70, 0.3); }
  50% { box-shadow: 0 0 16px rgba(255, 116, 70, 0.7); }
}

@keyframes pulse-spin {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
