/* =========================================================
   已读不回研究中心 · Center for Read Receipt Silence
   Aesthetic: midnight research institute × chat green irony
   ========================================================= */

:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --bg-panel: #162033;
  --bg-soft: #1a2740;
  --line: rgba(232, 220, 196, 0.12);
  --line-strong: rgba(232, 220, 196, 0.22);
  --text: #e8dcc4;
  --text-dim: rgba(232, 220, 196, 0.62);
  --text-faint: rgba(232, 220, 196, 0.38);
  --accent: #3ecf8e; /* read-receipt green, weaponized */
  --accent-dim: rgba(62, 207, 142, 0.18);
  --accent-glow: rgba(62, 207, 142, 0.35);
  --danger: #e07a6a;
  --danger-dim: rgba(224, 122, 106, 0.15);
  --warn: #e0b35a;
  --ok: #6ec8e0;
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --display: 'Instrument Serif', 'Noto Serif SC', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Atmosphere ---------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  opacity: 0.03;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.45), transparent 70%);
}

.orb-b {
  width: 520px;
  height: 520px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(110, 200, 224, 0.22), transparent 70%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 18, 32, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.05rem;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 0.25rem 1.25rem;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hall-index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  letter-spacing: 0.12em;
}

.hall-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hall-desc {
  margin: 0;
  max-width: 40rem;
  color: var(--text-dim);
  font-size: 1.02rem;
}

.hall-header {
  margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #062016;
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
}

.btn-text {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  font-family: var(--mono);
}

.btn-text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  min-height: calc(100vh - var(--header-h));
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}

.meta-dot {
  opacity: 0.5;
}

.hero-title {
  margin: 0 0 1.25rem;
}

.title-en {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.title-zh {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.4;
}

/* Fake phone */
.hero-chat {
  display: flex;
  justify-content: center;
}

.fake-phone {
  width: min(100%, 300px);
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(62, 207, 142, 0.08);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.phone-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.phone-dots {
  display: flex;
  gap: 4px;
}

.phone-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.phone-dots i:nth-child(1) { background: #e07a6a; }
.phone-dots i:nth-child(2) { background: #e0b35a; }
.phone-dots i:nth-child(3) { background: #3ecf8e; }

.phone-title {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.phone-status {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  text-align: right;
  letter-spacing: 0.04em;
}

.phone-body {
  padding: 1.1rem 0.9rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 320px;
  background:
    radial-gradient(ellipse at top, rgba(62, 207, 142, 0.06), transparent 55%),
    var(--bg-soft);
}

.bubble {
  max-width: 88%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.bubble.them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble.me {
  align-self: flex-end;
  background: linear-gradient(145deg, #2f9e6a, #3ecf8e);
  color: #062016;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.bubble.me.long {
  max-width: 92%;
}

.receipt {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.receipt.static {
  margin-top: 0.35rem;
}

.receipt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.receipt-time {
  color: var(--text-faint);
  margin-left: 0.25rem;
}

/* ---------- Fade up ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Plaque ---------- */
.plaque {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.plaque-inner {
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(62, 207, 142, 0.06), transparent 40%),
    var(--bg-elev);
  position: relative;
}

.plaque-inner::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.plaque h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
}

.plaque blockquote {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  font-size: 1.08rem;
  color: var(--text-dim);
  line-height: 1.85;
}

.plaque-sign {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ---------- Halls ---------- */
.hall,
.lab {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}

.hall-alt {
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.55), transparent);
  border-block: 1px solid var(--line);
  max-width: none;
  padding-left: max(clamp(1rem, 4vw, 2.5rem), calc((100% - var(--max)) / 2 + clamp(1rem, 4vw, 2.5rem)));
  padding-right: max(clamp(1rem, 4vw, 2.5rem), calc((100% - var(--max)) / 2 + clamp(1rem, 4vw, 2.5rem)));
}

.hall-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.tl-card {
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-top: 2px solid color-mix(in srgb, var(--accent) calc(var(--i, 0) * 12% + 30%), var(--danger));
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.tl-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.tl-range {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.tl-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.tl-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.tl-tip {
  margin-top: 0.75rem !important;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line);
  color: var(--text-faint) !important;
  font-size: 0.8rem !important;
}

/* Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.panel-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-dim);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.panel-note {
  margin: 0 0 1.25rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* Wait lab */
.wait-lab {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.clock-face {
  --heat: 0;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 50% 30%,
      color-mix(in srgb, var(--danger) calc(var(--heat) * 35%), transparent),
      transparent 60%
    ),
    var(--bg-soft);
  text-align: center;
  margin-bottom: 1rem;
  transition: background 0.4s;
}

.clock-face.running {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--danger) calc(var(--heat) * 100%));
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent-glow) calc((1 - var(--heat)) * 100%), var(--danger-dim));
}

.clock-time {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.clock-phase {
  font-size: 0.95rem;
  color: var(--accent);
}

.clock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.wait-verdict {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.verdict-label {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.verdict-text {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.verdict-tips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.verdict-tips li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.verdict-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  top: 0.5rem;
}

/* Brain grid */
.brain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.brain-dir {
  padding: 1.25rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.brain-dir:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.brain-icon {
  display: block;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--mono);
}

.brain-en {
  margin: 0 0 0.25rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.brain-dir h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.brain-dir p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.brain-note {
  margin-top: 0.85rem !important;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem !important;
  color: var(--text-faint) !important;
}

.brain-sim {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.field select {
  appearance: none;
  padding: 0.7rem 2rem 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233ecf8e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
      right 0.75rem center / 10px no-repeat,
    var(--bg-soft);
  color: var(--text);
  cursor: pointer;
}

.field select:focus {
  outline: 2px solid var(--accent-dim);
  border-color: var(--accent);
}

.brain-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.brain-results.pop {
  animation: fadeUp 0.5s var(--ease);
}

.brain-card {
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.brain-card header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
}

.brain-card header span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brain-card header strong {
  font-size: 1rem;
}

.brain-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.brain-card.bad {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}
.brain-card.bad header span { color: var(--danger); }

.brain-card.mid {
  border-color: color-mix(in srgb, var(--warn) 40%, var(--line));
}
.brain-card.mid header span { color: var(--warn); }

.brain-card.good {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.brain-card.good header span { color: var(--accent); }

.brain-footnote {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
  font-style: italic;
}

/* Recall */
.recall-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.bar-row {
  margin-bottom: 1rem;
}

.bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.bar-meta strong {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
}

.bar-meta em {
  font-style: normal;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

.bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--danger)));
  transition: width 1s var(--ease);
}

.bar-row.in .bar-fill {
  width: var(--pct);
}

.bar-pct {
  position: absolute;
  right: 0;
  top: -1.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.chat-sim {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.chat-sim-log {
  min-height: 200px;
  max-height: 260px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-sim-log:empty::after {
  content: '发出去的字会出现在这里。撤回后，变成档案。';
  color: var(--text-faint);
  font-size: 0.88rem;
  text-align: center;
  margin: auto;
  padding: 2rem 1rem;
}

.sim-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.sim-msg .bubble.me {
  max-width: 90%;
}

.sim-actions {
  opacity: 0.7;
}

.sim-msg.recalled {
  align-items: center;
  width: 100%;
}

.recalled-bubble {
  align-self: center !important;
  background: transparent !important;
  color: var(--text-faint) !important;
  border: 1px dashed var(--line-strong);
  font-size: 0.82rem !important;
  font-weight: 400 !important;
}

.recalled-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--danger);
  font-family: var(--mono);
}

.chat-sim-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.chat-sim-compose input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  outline: none;
}

.chat-sim-compose input:focus {
  border-color: var(--accent);
}

.recall-counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.recall-counter strong {
  color: var(--accent);
  font-family: var(--mono);
}

.recall-rank {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* Open observatory */
.open-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: start;
}

.obs-phone {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 320px;
}

.obs-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.obs-row:hover,
.obs-row.active {
  background: rgba(62, 207, 142, 0.06);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f9e6a, #3ecf8e);
  color: #062016;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.avatar.muted {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.obs-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.obs-info strong {
  font-size: 0.95rem;
}

.obs-info em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obs-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #062016;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.obs-thread-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.obs-thread-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 240px;
}

.obs-empty {
  align-self: center;
  text-align: center;
  margin: auto 0 0;
  padding: 1.5rem 1rem;
  color: var(--text-faint);
  font-size: 0.92rem;
  line-height: 1.7;
}

.obs-empty strong {
  color: var(--accent);
  font-family: var(--mono);
}

.open-meter {
  margin-top: 1.15rem;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.meter-label strong {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
}

.meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--warn), var(--danger));
  border-radius: inherit;
  transition: width 0.35s var(--ease);
}

.meter-verdict {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.data-table td {
  color: var(--text-dim);
}

.data-table code {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.82rem;
}

.data-table tbody tr:hover td {
  background: rgba(62, 207, 142, 0.04);
}

/* Lab / diagnosis */
.lab {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62, 207, 142, 0.08), transparent 55%),
    transparent;
}

.lab-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.diag-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.diag-q {
  margin: 0;
  padding: 0;
  border: 0;
}

.diag-q legend {
  padding: 0;
  margin-bottom: 0.85rem;
  font-weight: 600;
  font-size: 1.02rem;
}

.diag-q label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: border-color 0.2s, background 0.2s;
}

.diag-q label:hover {
  border-color: var(--line-strong);
}

.diag-q input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.diag-q label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.report {
  position: relative;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.report-seal {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.5;
  transform: rotate(12deg);
}

.report-id {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.report h3 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
}

.report-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.score-num {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.score-unit {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.report-body {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: left;
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.report-tags li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.report-foot {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* Citations */
.citations {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

.citations h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
}

.cite-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.cite-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.35rem;
}

.cite-list em {
  color: var(--text);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-inner strong {
  display: block;
  margin-bottom: 0.25rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-note {
  max-width: 28rem;
  text-align: right;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.5rem;
  }

  .hero-chat {
    order: -1;
  }

  .fake-phone {
    transform: none;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brain-sim {
    grid-template-columns: 1fr;
  }

  .brain-results {
    grid-template-columns: 1fr;
  }

  .wait-lab,
  .recall-layout,
  .open-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .timeline,
  .brain-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .footer-note {
    text-align: left;
  }

  .brand-text em {
    display: none;
  }

  .report-seal {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .reveal,
  .brain-results.pop {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .receipt-dot {
    animation: none;
  }
}
