:root {
  --bg: #0b1020;
  --bg-2: #101830;
  --card: rgba(19, 28, 52, 0.78);
  --card-2: rgba(28, 39, 70, 0.72);
  --line: rgba(148, 181, 255, 0.18);
  --text: #eaf1ff;
  --muted: #9fb0d0;
  --accent: #7cc7ff;
  --accent-2: #a78bfa;
  --good: #5ee2a0;
  --warn: #ffd166;
  --bad: #ff7b8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  background:
    radial-gradient(1100px 700px at 78% -10%, rgba(124, 199, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(167, 139, 250, 0.14), transparent 60%),
    linear-gradient(160deg, #080d1b 0%, var(--bg) 45%, #0c1326 100%);
  min-height: 100vh; line-height: 1.7;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #bfe4ff; }
.bg-glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; z-index: 0; }
.bg-glow-a { width: 420px; height: 420px; background: #3c7dff; top: -120px; right: -80px; }
.bg-glow-b { width: 360px; height: 360px; background: #8b5cf6; bottom: 8%; left: -120px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 18px 24px;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(11, 16, 32, .86), rgba(11, 16, 32, .45));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .04em; }
.brand-mark { font-size: 24px; filter: drop-shadow(0 4px 12px rgba(124,199,255,.45)); }
.brand small { color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: .1em; }
.topbar nav { display: flex; gap: 18px; font-size: 14px; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover { color: var(--text); }

main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 24px 24px 80px; }
.hero { padding: 76px 0 56px; text-align: center; }
.hero-avatar {
  width: 112px; height: 112px; margin: 0 auto 22px;
  display: grid; place-items: center; font-size: 58px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(124,199,255,.26), rgba(167,139,250,.18));
  border: 1px solid rgba(160, 205, 255, .35);
  box-shadow: 0 18px 60px rgba(80, 140, 255, .28), inset 0 1px 0 rgba(255,255,255,.2);
}
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; letter-spacing: .24em; font-weight: 700; }
h1 { margin: 0 auto 20px; max-width: 780px; font-size: clamp(34px, 6vw, 58px); line-height: 1.18; letter-spacing: -.02em; }
.hero-lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin: 28px 0 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: .2s ease;
}
.btn.primary { color: #041022; background: linear-gradient(135deg, #9bd7ff, #b7a6ff); box-shadow: 0 10px 30px rgba(124,199,255,.25); }
.btn.primary:hover { transform: translateY(-1px); color: #041022; }
.btn.ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.03); }
.btn.ghost:hover { border-color: rgba(160,205,255,.5); }
.mood-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.mood-pill b { color: var(--text); }

.section { padding: 54px 0 10px; }
.section-head { margin-bottom: 22px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; }
h3 { margin: 0 0 10px; font-size: 17px; }
.section-lead { max-width: 760px; color: var(--muted); margin: -8px 0 24px; font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1.35fr .9fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.card {
  background: linear-gradient(180deg, var(--card), rgba(15, 23, 44, .72));
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow);
}
.card p { margin: 0 0 12px; color: #d8e2f7; font-size: 14.5px; }
.card p:last-child { margin-bottom: 0; }
.card.mini { padding: 20px; transition: transform .2s ease, border-color .2s ease; }
.card.mini:hover { transform: translateY(-2px); border-color: rgba(160,205,255,.42); }
.card.mini .icon { font-size: 24px; margin-bottom: 10px; }
.card.mini p { font-size: 13.5px; color: var(--muted); }
.story p { color: #dbe5f8; }
.muted { color: var(--muted) !important; }
.small { font-size: 12.5px !important; }
ul.clean { list-style: none; margin: 0; padding: 0; }
ul.clean li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(148,181,255,.12); font-size: 14px; }
ul.clean li:last-child { border-bottom: 0; }
ul.clean b { color: var(--text); font-weight: 600; }
ul.clean span { color: var(--muted); }
.boundary { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; background: rgba(255,255,255,.025); }

.stat-pills { display: flex; gap: 8px; }
.stat-pills span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); background: rgba(255,255,255,.03); }

.intimacy-list { display: flex; flex-direction: column; gap: 8px; }
.person {
  display: grid; grid-template-columns: 1.4fr 70px 56px 1fr auto;
  align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 15px;
  background: rgba(17, 26, 48, .72); border: 1px solid rgba(148,181,255,.12);
}
.person .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .aliases { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.person .score { font-weight: 800; font-size: 18px; text-align: right; }
.person .stage { font-size: 12px; color: var(--muted); text-align: center; }
.person .last { font-size: 11.5px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person button {
  border: 1px solid var(--line); color: var(--accent); background: rgba(124,199,255,.07);
  padding: 5px 10px; border-radius: 999px; font-size: 12px; cursor: pointer;
}
.person button:hover { background: rgba(124,199,255,.15); }
.person-logs { grid-column: 1 / -1; margin: 6px 0 2px; border-top: 1px dashed rgba(148,181,255,.18); padding-top: 8px; }
.log-item { display: flex; gap: 10px; padding: 4px 0; font-size: 12.5px; color: var(--muted); }
.log-item .delta { color: var(--good); width: 30px; flex: 0 0 30px; font-weight: 700; }
.log-item .when { width: 100px; flex: 0 0 100px; opacity: .8; }
.log-item .reason { flex: 1; color: #cdd9ee; }

.mood-hero { display: flex; align-items: center; gap: 28px; margin-bottom: 20px; }
.mood-score { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.mood-score small { font-size: 20px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.mood-meta p { margin: 0 0 4px; color: #dbe5f8; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(148,181,255,.12); }
.tl-time { flex: 0 0 120px; color: var(--muted); font-size: 12.5px; }
.tl-body { flex: 1; }
.tl-reason { color: #dbe5f8; font-size: 14px; }
.tl-evidence { color: var(--muted); font-size: 12px; margin-top: 3px; padding-left: 10px; border-left: 2px solid rgba(124,199,255,.35); }
.tl-delta { font-weight: 800; width: 38px; flex: 0 0 38px; }
.pos { color: var(--good); } .neg { color: var(--bad); } .zero { color: var(--muted); }
.loading { color: var(--muted); padding: 14px 0; }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

footer { position: relative; z-index: 1; text-align: center; padding: 28px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 2px 0; }

@media (max-width: 820px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1.3fr 54px 44px auto; }
  .person .last { display: none; }
  .person .aliases { white-space: normal; }
  .mood-hero { gap: 18px; }
  .mood-score { font-size: 52px; }
  .tl-time { flex: 0 0 86px; }
  .topbar { padding: 14px 16px; }
  .topbar nav { gap: 12px; font-size: 13px; }
  main { padding: 12px 16px 60px; }
}
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr 48px auto; gap: 8px; }
  .person .stage { display: none; }
  .hero { padding: 48px 0 32px; }
  .hero-avatar { width: 92px; height: 92px; font-size: 48px; }
}
