/* =======================================================
   历史抉择实验室  ——  视觉样式
   古风卷轴感 + 现代卡片交互
   ======================================================= */

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 色彩与变量 ---------- */
:root {
  /* 背景 */
  --bg-page: #F7F1E8;
  --bg-card: #FFFaf2;
  --bg-soft: #EFE4D2;
  --bg-split: #F3EADF;
  --bg-stage-inner: #FFFDF8;
  --bg-stage: #FBF6EF;

  /* 文字 */
  --t1: #2E2A26;
  --t2: #5B5148;
  --t3: #7A6E62;
  --t4: #A39A91;

  /* 主强调 */
  --brand: #8C2F39;
  --brand-hover: #74262E;
  --brand-active: #5E1F26;

  /* 金色 */
  --gold: #C08A3E;
  --gold-hover: #A8742F;
  --gold-light: #F2E3BF;

  /* 冷色 */
  --cool: #4E6A7A;
  --cool-light: #D9E5EA;

  /* 结果色 */
  --ok: #4D7C57;     --ok-bg: #DCECDF;
  --bad: #9C4F44;    --bad-bg: #F2DDDA;
  --mid: #A1783D;    --mid-bg: #F5E9CC;

  /* 线条 */
  --line: #D7C7B4;
  --line-deep: #BCA892;
  --divider: #E5D8C9;

  /* 阴影 */
  --sh-card: 0 6px 18px rgba(76, 60, 42, 0.08);
  --sh-card-hover: 0 10px 24px rgba(76, 60, 42, 0.14);
  --sh-pop: 0 12px 28px rgba(51, 39, 27, 0.18);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--t1);
  background: var(--bg-page);
  min-height: 100vh;
  line-height: 1.75;
  /* 轻微卷轴纹理：用径向渐变模拟老纸斑点 */
  background-image:
    radial-gradient(rgba(140, 110, 70, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(140, 110, 70, 0.03) 1px, transparent 1px);
  background-size: 32px 32px, 17px 17px;
  background-position: 0 0, 8px 11px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  transition: color .2s;
}
.nav-brand:hover { color: var(--brand); }
.nav-logo { display: inline-flex; }
.nav-title {
  font-family: "STKaiti", "KaiTi", "PingFang SC", serif;
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--t1);
}
.nav-brand:hover .nav-title { color: var(--brand); }

/* ---------- 页面切换 ---------- */
.main { min-height: calc(100vh - 72px); }
.page { display: none; }
.page.active { display: block; animation: pageIn .4s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
}
.page-head { text-align: center; margin-bottom: 32px; }
.page-title {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 30px;
  color: var(--t1);
  margin: 0 0 12px;
  letter-spacing: 2px;
}
.page-sub { color: var(--t2); font-size: 15px; margin: 0; }

.block-title {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
  color: var(--t1);
  margin: 0 0 12px;
  position: relative;
  padding-left: 14px;
  letter-spacing: 1px;
}
.block-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  background: var(--brand);
  border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 14px;
  transition: all .2s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); }
.btn-primary:disabled,
.btn-primary[disabled] {
  background: #C9B8A6;
  color: #FFFDF8;
  cursor: not-allowed;
  opacity: 0.72;
}
.btn-ghost {
  background: var(--bg-split);
  color: var(--t2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #E9DDCF; }
.btn-gold {
  background: var(--gold); color: #fff;
  height: 36px; padding: 0 16px;
  border-radius: 12px; font-size: 14px;
}
.btn-gold:hover { background: var(--gold-hover); }
.btn-block { width: 100%; }

/* ---------- 5.1 首页 ---------- */
.page-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 72px);
}
.page-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(56vh, 520px);
  background:
    radial-gradient(circle at 50% 0%, rgba(192, 138, 62, 0.16) 0%, rgba(192, 138, 62, 0.06) 36%, rgba(247, 241, 232, 0) 74%),
    linear-gradient(180deg, #E8D8C1 0%, rgba(247, 241, 232, 0.78) 48%, rgba(247, 241, 232, 0) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero,
.site-foot {
  position: relative;
  z-index: 1;
}
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  text-align: center;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold-light);
  color: #7B5420;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 28px;
  border: 1px solid #E6D2A1;
}
.hero-title {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 38px;
  line-height: 1.5;
  color: var(--t1);
  margin: 0 0 20px;
  letter-spacing: 1.5px;
  max-width: none;
}
.hero-title .hl { color: var(--brand); }
.hero-sub {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.85;
  margin: 0 0 24px;
}
.hero-actions { margin-top: 8px; }
.hero-actions .btn { height: 52px; padding: 0 36px; font-size: 16px; }

.hero-section-title {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 56px 0 16px;
  padding-left: 4px;
  color: var(--brand);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
}
.hero-section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--gold);
}

.hero-hints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
  width: 100%;
}
.hint-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: var(--sh-card);
  transition: all .25s;
}
.hint-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--gold);
}
.hint-num {
  font-family: "STKaiti", serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 1px;
}
.hint-title {
  font-family: "STKaiti", serif;
  font-size: 18px;
  color: var(--t1);
  margin: 4px 0 6px;
}
.hint-desc { font-size: 13px; color: var(--t3); line-height: 1.7; }

.site-foot {
  text-align: center;
  color: var(--t3);
  font-size: 13px;
  padding: 32px 16px 24px;
}

/* ---------- 5.2 时间线 ---------- */
.timeline {
  position: relative;
  padding: 32px 16px 56px;
  height: 120px;
  margin-bottom: 24px;
}
.timeline-track {
  position: absolute;
  left: 5%; right: 5%;
  top: 56px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.timeline-track::before,
.timeline-track::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 8px; height: 8px;
  background: var(--line-deep);
  border-radius: 50%;
}
.timeline-track::before { left: -8px; }
.timeline-track::after { right: -8px; }

.timeline-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  height: 100%;
}
.tl-node {
  position: relative;
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding-top: 48px;
  user-select: none;
}
.tl-dot {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  background: #CBB8A2;
  border-radius: 50%;
  transition: all .25s;
  box-shadow: 0 0 0 6px var(--bg-page);
}
.tl-node:hover .tl-dot { background: var(--gold); }
.tl-node.active .tl-dot {
  background: var(--brand);
  width: 16px; height: 16px;
  box-shadow: 0 0 0 6px var(--bg-page), 0 0 0 8px var(--brand);
}
.tl-label {
  display: block;
  font-family: "STKaiti", serif;
  font-size: 15px;
  color: var(--t2);
  margin-top: 24px;
  letter-spacing: 1px;
}
.tl-node.active .tl-label { color: var(--t1); font-weight: 600; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid #DCCCB9;
  border-radius: 18px;
  padding: 24px;
  min-height: 220px;
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.6;
}
.event-card:hover {
  border-color: var(--gold);
  box-shadow: var(--sh-card-hover);
  transform: translateY(-3px);
}
.ec-era {
  display: inline-block;
  font-size: 12px;
  color: #6B5847;
  background: #E9DED0;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.ec-title {
  font-family: "STKaiti", serif;
  font-size: 22px;
  color: var(--t1);
  margin: 0 0 10px;
  letter-spacing: 1px;
}
.ec-bg {
  font-size: 14px;
  color: var(--t2);
  flex: 1;
  margin: 0 0 14px;
  line-height: 1.7;
}
.ec-task {
  font-size: 13px;
  color: var(--t3);
  padding-top: 12px;
  border-top: 1px dashed var(--divider);
  margin-bottom: 14px;
}
.ec-task b { color: var(--brand); font-weight: 600; margin-right: 4px; }
.ec-btn {
  align-self: flex-start;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}

/* ---------- 5.3 事件任务页 ---------- */
.event-layout {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 32px;
}
.event-left {
  background: var(--bg-card);
  border: 1px solid #DCCCB9;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--sh-card);
  align-self: start;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.tag-era { background: #E9DED0; color: #6B5847; }
.tag-conf { background: var(--gold-light); color: #7B5420; }
.tag-learn { background: var(--cool-light); color: #365362; }

.event-title {
  font-family: "STKaiti", serif;
  font-size: 30px;
  color: var(--t1);
  margin: 0 0 20px;
  letter-spacing: 2px;
}
.event-bg { color: var(--t2); margin: 0 0 24px; font-size: 15px; }

.event-right { display: flex; flex-direction: column; gap: 24px; }

.task-card {
  background: #F8F1E5;
  border: 1px solid #CDB79B;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  box-shadow: var(--sh-card);
}
.task-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 18px 18px 0 0;
}
.task-label {
  display: inline-block;
  font-size: 12px;
  color: #7B5420;
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.task-text {
  font-family: "STKaiti", serif;
  font-size: 22px;
  color: var(--t1);
  line-height: 1.6;
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.task-hint {
  font-size: 14px;
  color: var(--t3);
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--bg-page);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}
.actions-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.soft-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--sh-card);
}
.event-reflect { color: var(--t2); margin: 0; font-size: 15px; }

/* ---------- 5.4 人物选择 ---------- */
.summary-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}
.sum-inner {
  padding: 16px 32px !important;
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.sum-col {}
.sum-label {
  font-size: 12px;
  color: var(--t3);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.sum-val {
  font-family: "STKaiti", serif;
  font-size: 17px;
  color: var(--t1);
  letter-spacing: 1px;
}

.chars-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
}
.chars-left { position: sticky; top: 96px; align-self: start; }
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--sh-card);
  min-height: 420px;
}
.preview-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E9DED0, #D7C7B4);
  color: var(--brand);
  font-family: "STKaiti", serif;
  font-size: 38px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
  letter-spacing: 0;
}
.preview-name {
  font-family: "STKaiti", serif;
  font-size: 24px;
  color: var(--t1);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 2px;
}
.preview-era {
  font-size: 13px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.preview-bio {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--divider);
}
.preview-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--cool);
  background: var(--cool-light);
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.7;
}
.preview-hint .dot {
  width: 6px; height: 6px;
  background: var(--cool);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.char-card {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98) 0%, rgba(248, 241, 229, 0.96) 100%);
  border: 1px solid #DCCCB9;
  border-radius: 18px;
  padding: 24px 22px 22px;
  min-height: 300px;
  box-shadow: var(--sh-card);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.char-card:hover {
  box-shadow: var(--sh-card-hover);
  transform: translateY(-2px);
  border-color: var(--gold);
}
.char-card.selected {
  border: 2px solid var(--brand);
  padding: 23px 21px 21px;
}
.cc-flag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(192, 138, 62, 0.12);
  color: #7B5420;
  font-size: 12px;
  letter-spacing: 1px;
}
.cc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cc-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E9DED0, #D7C7B4);
  color: var(--brand);
  font-family: "STKaiti", serif;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
}
.cc-name {
  font-family: "STKaiti", serif;
  font-size: 20px;
  color: var(--t1);
  letter-spacing: 1px;
}
.cc-era {
  font-size: 12px;
  color: #6B5847;
  background: #E9DED0;
  padding: 2px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 2px;
}
.cc-one {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  margin: 0 0 12px;
}
.cc-tip {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(217, 229, 234, 0.45);
  color: #365362;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.cc-pick {
  margin-top: auto;
  width: 100%;
  height: 42px;
  border-radius: 12px;
  font-family: "SimSun", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ---------- 5.5 推演 ---------- */
.stage-layout {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 32px;
}
.stage-left { align-self: start; position: sticky; top: 96px; }
.stage-left .soft-card {
  background: #F8F1E5;
  border-color: var(--line);
}
.mini-label {
  font-size: 12px;
  color: var(--t3);
  letter-spacing: 1px;
  margin: 16px 0 6px;
}
.mini-label:first-child { margin-top: 0; }
.stage-char { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stage-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F9E3E0, #E9BBB6);
  color: var(--brand);
  font-family: "STKaiti", serif;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand);
  flex-shrink: 0;
}
.stage-name {
  font-family: "STKaiti", serif;
  font-size: 20px;
  color: var(--t1);
  letter-spacing: 1px;
}
.stage-era { font-size: 12px; color: var(--gold); margin-top: 2px; }
.stage-bio { font-size: 13px; color: var(--t2); margin: 0 0 8px; line-height: 1.7; }
.stage-task {
  font-family: "STKaiti", serif;
  font-size: 15px;
  color: var(--t1);
  margin: 0 0 20px;
  line-height: 1.7;
  padding: 12px 14px;
  background: var(--bg-page);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
}

.stage-right { min-width: 0; }
.stage-head {
  background: var(--bg-stage-inner);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
}
.stage-head::before {
  content: "";
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.scene-title {
  font-family: "STKaiti", serif;
  font-size: 22px;
  color: var(--t1);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.scene-desc { font-size: 14px; color: var(--t2); line-height: 1.75; }

.stage-chat {
  background: var(--bg-split);
  border-radius: 18px;
  padding: 20px;
  height: 600px;
  overflow-y: auto;
  border: 1px solid var(--line);
  scroll-behavior: smooth;
}
.stage-chat::-webkit-scrollbar { width: 8px; }
.stage-chat::-webkit-scrollbar-track { background: transparent; }
.stage-chat::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.msg {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  animation: msgIn .3s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "STKaiti", serif;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.msg-body { max-width: 72%; min-width: 0; }
.msg-name { font-size: 13px; color: var(--t3); margin-bottom: 4px; font-weight: 500; }
.msg-bubble {
  border-radius: 14px;
  padding: 12px 14px;
  position: relative;
}
.msg-ci {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 18px;
  line-height: 1.9;
  color: #3A2E25;
  letter-spacing: 1px;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-baihua {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(122, 110, 98, 0.3);
  font-size: 13px;
  color: var(--t3);
  line-height: 1.7;
  opacity: 0;
  transition: opacity .4s ease;
}
.msg-baihua.show { opacity: 1; }
.msg-baihua::before { content: "白话："; color: var(--gold); font-weight: 600; }

/* 右侧 —— 用户派出的人物 */
.msg.msg-right { flex-direction: row-reverse; }
.msg.msg-right .msg-body { align-items: flex-end; display: flex; flex-direction: column; }
.msg.msg-right .msg-name { text-align: right; }
.msg.msg-right .msg-avatar { background: var(--brand); }
.msg.msg-right .msg-bubble {
  background: #F9E3E0;
  color: var(--brand-active);
  border-bottom-right-radius: 4px;
}
.msg.msg-right .msg-ci { color: var(--brand-active); }

/* 左侧 —— 事件原有人物 */
.msg.msg-left .msg-avatar { background: var(--gold); }
.msg.msg-left .msg-bubble {
  background: var(--bg-card);
  border: 1px solid #DCCCB9;
  border-bottom-left-radius: 4px;
}

/* 旁白 */
.msg.msg-narrator .msg-avatar { background: var(--cool); font-size: 12px; }
.msg.msg-narrator .msg-bubble {
  background: var(--cool-light);
  color: #365362;
  border-bottom-left-radius: 4px;
}
.msg.msg-narrator .msg-ci {
  font-size: 14px;
  color: #365362;
  font-family: "PingFang SC", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  font-style: italic;
}

/* 回合标题 */
.round-title {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  color: var(--gold);
  font-family: "STKaiti", serif;
  font-size: 15px;
  letter-spacing: 2px;
}
.round-title::before,
.round-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.caret {
  display: inline-block;
  width: 2px;
  background: var(--brand);
  height: 1em;
  vertical-align: -2px;
  margin-left: 1px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.stage-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

/* ---------- 5.6 结果复盘 ---------- */
.result-head {
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.result-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(140,110,70,.08) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.7;
  pointer-events: none;
}
.result-head.ok   { background: var(--ok-bg); border-color: #B8D4BF; }
.result-head.mid  { background: var(--mid-bg); border-color: #E0CFA1; }
.result-head.bad  { background: var(--bad-bg); border-color: #E4B5AC; }

.result-kind {
  display: inline-block;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #fff;
}
.result-head.ok  .result-kind { background: var(--ok); }
.result-head.mid .result-kind { background: var(--mid); }
.result-head.bad .result-kind { background: var(--bad); }

.result-title {
  font-family: "STKaiti", serif;
  font-size: 34px;
  color: var(--t1);
  margin: 0 0 12px;
  letter-spacing: 2px;
}
.result-sub { color: var(--t2); margin: 0; font-size: 15px; max-width: 640px; margin: 0 auto; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.dot-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  border-bottom: 1px dashed var(--divider);
}
.dot-list li:last-child { border-bottom: none; }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.takeaway-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  position: relative;
  padding-left: 44px;
}
.takeaway-item::before {
  content: attr(data-num);
  position: absolute;
  left: 16px; top: 20px;
  font-family: "STKaiti", serif;
  color: var(--gold);
  font-size: 20px;
}

.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-bottom: 16px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .event-layout,
  .chars-layout,
  .stage-layout,
  .result-grid { grid-template-columns: 1fr; }
  .chars-left,
  .stage-left { position: static; }
  .hero-hints { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .hero { padding-top: 48px; min-height: auto; }
  .nav-inner, .container { padding-left: 20px; padding-right: 20px; }
  .sum-inner { gap: 20px; padding: 14px 20px !important; }
}
