/* 第十三人 · 介绍页 — accent-driven, same design family as hub/drama/malema.
   Single --accent (teal) drives all tones. 游戏本体在 /play.html(深色 CRT,另一套 styles.css)。 */
:root {
  color-scheme: light;
  --paper: #eef4f1;
  --paper-soft: #f7fbf9;
  --ink: #14201c;
  --ink-soft: #2c3e38;
  --muted: #5e7269;
  --line: rgba(38, 84, 70, 0.22);
  --line-soft: rgba(38, 84, 70, 0.12);
  --accent: #2f7d6b;
  --accent-deep: #1f5446;
  --accent-soft: #6fae9f;
  --rise: #1f7d65;
  --fall: #b94735;
  --card: rgba(247, 251, 249, 0.9);
  --shell: 1100px;
  --pad: clamp(14px, 1.4vw, 22px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8rem, rgba(47, 125, 107, 0.16), transparent 32rem),
    radial-gradient(circle at 86% 26%, rgba(111, 174, 159, 0.1), transparent 28rem),
    radial-gradient(circle at 10% 80%, rgba(185, 71, 53, 0.07), transparent 26rem),
    linear-gradient(rgba(20, 32, 28, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, 28px 28px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(circle, rgba(20, 32, 28, 0.18) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

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

.shell, .header-shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(38, 84, 70, 0.28);
  background: rgba(238, 244, 241, 0.92);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 60px; height: 40px; object-fit: contain; object-position: right center; }
.brand span { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand strong { font-size: 16px; letter-spacing: 0.04em; }
.brand em {
  font-style: normal; font-size: 12px; letter-spacing: 0.24em; color: var(--accent);
  font-family: "Inter", "Trebuchet MS", sans-serif; font-weight: 700;
}

nav { display: flex; gap: clamp(16px, 2.2vw, 28px); color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--accent-deep); }
nav a.cta { color: var(--accent-deep); font-weight: 700; }

.hero { position: relative; padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; pointer-events: none; }

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 16px; color: var(--accent); font-weight: 800; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-family: "Inter", "Trebuchet MS", sans-serif;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 22px; max-width: none;
  font-size: clamp(28px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.01em;
  word-break: normal; overflow-wrap: anywhere;
}

.summary { max-width: 600px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.78; }
.summary strong { color: var(--ink); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--line); border-radius: 10px;
  font-weight: 800; font-size: 15px; transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(31, 84, 70, 0.18); }
.button.primary { color: #f7fbf9; background: var(--accent); border-color: var(--accent); }
.button.ghost { color: var(--ink); background: rgba(255, 255, 255, 0.78); border-color: rgba(31, 84, 70, 0.28); }
.button.ghost:hover { background: #fff; border-color: rgba(31, 84, 70, 0.5); }

/* 作战室情报卡 (hero right) */
.intel {
  position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(231, 243, 239, 0.94)), var(--card);
  box-shadow: 0 32px 80px rgba(31, 84, 70, 0.16);
}
.intel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; color: var(--accent-deep); font-weight: 800; font-size: 13px;
}
.intel-head b {
  padding: 6px 10px; border: 1px solid rgba(47, 125, 107, 0.32); border-radius: 999px;
  color: var(--accent-deep); background: rgba(47, 125, 107, 0.1); font-size: 11px; letter-spacing: 0.12em;
}
.intel-claim {
  display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline;
  padding: 11px 0; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55;
}
.intel-claim:first-of-type { border-top: 0; }
.intel-claim .who { color: var(--accent-deep); font-weight: 700; }
.intel-claim .who.spy { color: var(--rise); }
.intel-claim .who.bait { color: var(--fall); }
.intel-claim .says { color: var(--ink-soft); }
.intel-foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* K线 mini */
.kline { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 14px; }
.kline i { flex: 1; border-radius: 2px; opacity: 0.85; min-height: 6px; }
.kline i.up { background: var(--rise); }
.kline i.down { background: var(--fall); }

.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-sub { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.7; }

h2 {
  max-width: 980px; margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.005em; word-break: keep-all;
}

.flow-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px;
}
.flow-grid li {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.flow-grid li:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(31, 84, 70, 0.12); }
.flow-num { font-family: "Inter", "Trebuchet MS", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--accent); }
.flow-grid strong { font-size: 20px; color: var(--accent-deep); }
.flow-grid p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 14px; flex: 1; }
.flow-grid em { font-style: normal; color: var(--accent-deep); font-size: 12px; font-weight: 600; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }

.npc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.npc-grid article {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.npc-grid article:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(31, 84, 70, 0.12); }
.npc-camp {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  font-family: "Inter", "Trebuchet MS", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent-deep); background: rgba(47, 125, 107, 0.12); border: 1px solid rgba(47, 125, 107, 0.28);
}
.npc-grid h3 { margin: 0; font-size: 22px; letter-spacing: 0.02em; color: var(--ink); }
.npc-grid p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 14px; }
.npc-grid em { font-style: normal; color: var(--accent-deep); font-weight: 600; }

.move-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto; }
.move-col { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.move-col h3 { margin: 0 0 14px; font-size: 16px; letter-spacing: 0.04em; color: var(--accent-deep); }
.move-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.move-col li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.move-col li b { color: var(--ink); font-weight: 700; min-width: 64px; }
.move-col li.hint { color: var(--muted); font-size: 13px; }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink);
}
.timeline .t-no { color: var(--accent); font-weight: 800; font-family: "Inter", "Trebuchet MS", sans-serif; font-size: 13px; letter-spacing: 0.14em; }
.timeline .t-date { color: var(--ink); font-weight: 700; }
.timeline .t-leg { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 680px; margin: 0 auto 28px; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; }
.cta-band strong { color: var(--ink); }

.note { background: rgba(247, 251, 249, 0.6); }
.note p { max-width: 820px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.75; text-align: center; }
.note strong { color: var(--ink); }

.footer { padding: 36px 0 30px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.footer-shell { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 40px); }
.footer-brand { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.footer-brand strong { font-size: 15px; letter-spacing: 0.04em; }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-nav { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 13px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-meta a { color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-shell { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .footer-shell { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { align-items: center; }
}
@media (max-width: 620px) {
  :root { --pad: 14px; }
  .header-shell { flex-wrap: wrap; gap: 12px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  .flow-grid, .npc-grid, .move-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 44px 1fr; }
  .timeline .t-leg { grid-column: 2; }
}

/* mobile overflow safety */
p, dd, em, strong, .summary, .section-sub, .intel-claim, .flow-grid p, .npc-grid p, .move-col li {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  :root { --pad: 12px; }
  h1 { font-size: clamp(26px, 7vw, 40px); }
  .intel { padding: 18px 16px; }
}
