/* ============================================================
   君安舆情对抗演练系统 - 大屏指挥中心
   设计风格：政务蓝 + 金色点缀 · 美观大方·官方正式
   支持深蓝/浅蓝主题切换
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-base: #0a1020;
  --bg-panel: #0f1628;
  --bg-card: #15203a;
  --bg-hover: #1c2b4a;
  --bg-deep: #060c18;
  --border: rgba(64, 130, 200, 0.18);
  --border-strong: rgba(64, 130, 200, 0.35);
  --border-gold: rgba(212, 175, 55, 0.3);
  --text-primary: #e2e8f5;
  --text-secondary: #94a3bd;
  --text-muted: #5d6a85;
  --accent: #3b9eff;
  --accent-glow: rgba(59, 158, 255, 0.15);
  --gold: #d4af37;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --red: #e05858;
  --red-dim: rgba(224, 88, 88, 0.12);
  --blue: #3b9eff;
  --blue-dim: rgba(59, 158, 255, 0.12);
  --green: #3ec07a;
  --yellow: #e8b73a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(59, 158, 255, 0.15);
}

/* 浅蓝主题 - 君安一体化投诉处置风格，比深蓝稍浅的蓝色 */
body.light-theme {
  --bg-base: #1a2b54;
  --bg-panel: #1e3268;
  --bg-card: #243d76;
  --bg-hover: #2b4890;
  --bg-deep: #122048;
  --border: rgba(100, 170, 240, 0.22);
  --border-strong: rgba(100, 170, 240, 0.4);
  --border-gold: rgba(212, 175, 55, 0.3);
  --text-primary: #e8f0ff;
  --text-secondary: #a8c0e8;
  --text-muted: #7088b0;
  --accent: #5cb8ff;
  --accent-glow: rgba(92, 184, 255, 0.18);
  --gold: #e0c050;
  --gold-dim: rgba(224, 192, 80, 0.12);
  --red: #ff6868;
  --red-dim: rgba(255, 104, 104, 0.12);
  --blue: #5cb8ff;
  --blue-dim: rgba(92, 184, 255, 0.14);
  --green: #4ed88a;
  --yellow: #f0c850;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(92, 184, 255, 0.18);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  font-size: 14px;
}

/* ============================================================
   顶部状态栏
   ============================================================ */
#topbar {
  height: 60px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.topbar-left .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.phase-badge {
  background: var(--accent-glow);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.round-info {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ai-dot.ai-sim { background: var(--yellow); }
.ai-dot.ai-real { background: var(--green); box-shadow: 0 0 6px var(--green); }

.btn-icon {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

/* ============================================================
   Panel 切换
   ============================================================ */
.panel {
  display: none;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.panel.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

#battle-panel.active { overflow: hidden; }

.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-track { background: transparent; }
.panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.panel::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   按钮
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2580d4);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 0 16px rgba(59, 158, 255, 0.4);
  transform: translateY(-1px);
}
.btn-primary.btn-large { padding: 14px 40px; font-size: 16px; }
.btn-primary.btn-launch { box-shadow: 0 0 24px rgba(59, 158, 255, 0.25); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

/* ============================================================
   设置面板
   ============================================================ */
.setup-container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.setup-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.setup-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.setup-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 260px;
  text-align: center;
  transition: all 0.3s;
}
.setup-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.setup-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), var(--accent-glow));
}
.setup-card-icon { margin-bottom: 14px; display: flex; justify-content: center; }
.setup-card h3 { font-size: 17px; margin-bottom: 8px; }
.setup-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 18px; }

.setup-features {
  display: flex;
  gap: 32px;
  opacity: 0.5;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.feature-num { color: var(--accent); font-weight: 700; font-size: 15px; }

/* 方案列表内联 */
.setup-scenario-list {
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 700px;
}
.setup-scenario-list h3 { font-size: 15px; color: var(--accent); margin-bottom: 14px; }
#scenario-list { display: flex; flex-direction: column; gap: 10px; }

/* 方案卡片 */
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.scenario-card:hover { border-color: var(--accent); background: var(--bg-hover); }
.scenario-card.selected { border-color: var(--accent); background: var(--accent-glow); }
.scenario-card h4 { font-size: 15px; margin-bottom: 6px; }
.scenario-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.scenario-meta { display: flex; gap: 12px; margin-top: 10px; font-size: 11px; }
.scenario-meta-item { padding: 2px 8px; border-radius: 4px; }
.scenario-meta-red { background: var(--red-dim); color: var(--red); }
.scenario-meta-blue { background: var(--blue-dim); color: var(--blue); }

/* ============================================================
   二维码大厅
   ============================================================ */
.lobby-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px;
}

.lobby-teams-mode {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
  justify-content: center;
}
.lobby-head { text-align: center; }
.lobby-head h2 { font-size: 32px; margin-bottom: 6px; }
.lobby-hint { color: var(--text-secondary); font-size: 15px; margin-bottom: 8px; }
.lobby-total { font-size: 18px; color: var(--accent); font-weight: 700; }
.lobby-total small { font-size: 14px; color: var(--text-secondary); font-weight: 400; margin-left: 4px; }

.lobby-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.team-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.team-card.red { border: 2px solid rgba(224, 88, 88, 0.5); }
.team-card.blue { border: 2px solid rgba(59, 158, 255, 0.5); }

.team-card-head { display: flex; align-items: center; justify-content: space-between; }
.team-card-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.team-card.red .team-card-title { color: #e05858; }
.team-card.blue .team-card-title { color: var(--blue); }
.team-dot { width: 12px; height: 12px; border-radius: 50%; }
.team-card.red .team-dot { background: #e05858; }
.team-card.blue .team-dot { background: var(--blue); }
.team-card-count { font-size: 14px; color: var(--text-secondary); }
.team-card-count strong { font-size: 28px; font-weight: 700; color: var(--text-primary); }

.team-qr-zone { text-align: center; }
.qr-wrapper.qr-team { width: 200px; height: 200px; margin: 0 auto; padding: 8px; background: #fff; border-radius: 10px; position: relative; }
.qr-wrapper.qr-team img { width: 100%; height: 100%; display: block; }
.qr-corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--accent); }
.qr-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.qr-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.qr-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.qr-br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.team-card.red .qr-corner { border-color: #e05858; }
.team-card.blue .qr-corner { border-color: var(--blue); }
.team-qr-scan { margin-top: 8px; font-size: 16px; font-weight: 600; }
.team-card.red .team-qr-scan { color: #e07878; }
.team-card.blue .team-qr-scan { color: #6db4f0; }

.team-mission { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px 14px; }
.team-mission-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 4px; }
.team-card.red .team-mission-label { color: #e07878; }
.team-card.blue .team-mission-label { color: #6db4f0; }
.team-mission p { font-size: 14px; line-height: 1.5; color: var(--text-primary); margin: 0; }

.team-roles { display: flex; flex-direction: column; gap: 6px; }
.team-roles-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--text-secondary); }
.team-role-card { background: rgba(255,255,255,0.02); border-radius: 8px; padding: 8px 12px; }
.team-role-card.red { border-left: 3px solid #e05858; }
.team-role-card.blue { border-left: 3px solid var(--blue); }
.team-role-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.team-role-icon { font-size: 16px; }
.team-role-count { margin-left: auto; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 8px; background: rgba(62,192,122,0.12); color: var(--green); }
.team-role-count.full { background: rgba(224,88,88,0.12); color: #e07878; }
.team-role-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin: 4px 0 0; }
.team-role-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.team-role-action { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border); }
.team-role-empty { font-size: 14px; color: var(--text-muted); text-align: center; padding: 12px; }

.lobby-controls { text-align: center; margin-top: 10px; }

/* ============================================================
   简报面板
   ============================================================ */
.briefing-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
}
.briefing-banner { text-align: center; margin-bottom: 28px; }
.briefing-label { display: inline-block; background: var(--accent-glow); color: var(--accent); padding: 4px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 10px; }
.briefing-banner h1 { font-size: 32px; font-weight: 700; }
.briefing-body { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.briefing-description h3 { color: var(--accent); font-size: 16px; margin-bottom: 10px; }
.briefing-description p { font-size: 15px; line-height: 1.8; color: var(--text-primary); margin-bottom: 24px; }
.briefing-keypoints { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.keypoint-tag { background: var(--accent-glow); color: var(--accent); padding: 4px 12px; border-radius: 16px; font-size: 13px; border: 1px solid var(--border-strong); }
.briefing-roles { display: flex; gap: 16px; flex-wrap: wrap; }
.briefing-role-section { flex: 1; min-width: 280px; }
.briefing-role-section-header { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; }
.briefing-role-section-header.red { background: var(--red-dim); color: var(--red); }
.briefing-role-section-header.blue { background: var(--blue-dim); color: var(--blue); }
.briefing-role-list { display: flex; flex-direction: column; gap: 8px; }
.briefing-role-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-panel); border-radius: 8px; border: 1px solid var(--border); font-size: 13px; }
.briefing-role-item .role-actions-list { color: var(--text-muted); font-size: 11px; }
.briefing-role-item .role-qty { font-weight: 700; font-size: 14px; }
.briefing-controls { text-align: center; }
.briefing-ready { font-size: 16px; color: var(--text-secondary); padding: 8px 20px; border-radius: 8px; background: rgba(62,192,122,0.08); border: 1px solid rgba(62,192,122,0.3); display: inline-block; margin-bottom: 12px; }
.briefing-ready strong { color: var(--green); font-size: 20px; }

/* 简报-演练流程设计 */
.briefing-drillflow { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.briefing-flow-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.briefing-flow-header h3 { margin: 0; font-size: 16px; }
.flow-risk-badge { font-size: 11px; padding: 3px 10px; border-radius: 10px; background: var(--red-dim); color: var(--red); border: 1px solid rgba(224,88,88,0.3); }
.flow-analysis { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; padding-left: 10px; border-left: 3px solid var(--border-strong); }
.flow-stages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.flow-stage { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 12px 16px; }
.flow-stage-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flow-stage-num { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-deep); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; border: 1px solid var(--border-strong); }
.flow-stage-top strong { font-size: 15px; }
.flow-stage-type, .flow-stage-focus { font-size: 11px; color: var(--text-muted); padding: 2px 8px; background: var(--accent-glow); border-radius: 6px; }
.flow-stage-goals, .flow-win { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flow-goal { padding: 8px 12px; border-radius: 6px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.flow-goal.red { border-color: rgba(224,88,88,0.3); background: var(--red-dim); }
.flow-goal.blue { border-color: rgba(59,158,255,0.3); background: var(--blue-dim); }
.flow-goal span { display: block; font-size: 11px; margin-bottom: 3px; }
.flow-goal.red span { color: #e07878; }
.flow-goal.blue span { color: #6db4f0; }
.flow-rule { font-size: 12px; color: var(--text-muted); margin: 0; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ============================================================
   对战面板 - 三栏布局
   ============================================================ */
.battle-layout {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 1px;
  background: var(--border);
}

/* --- 左侧栏 --- */
.battle-sidebar {
  width: 260px;
  background: var(--bg-panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex-shrink: 0;
}

/* 比分板 */
.score-board {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}
.score-header {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.score-vs { display: flex; align-items: center; justify-content: space-between; }
.score-team { text-align: center; flex: 1; }
.score-team-name { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 600; }
.score-value { font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.score-team.red .score-value { color: var(--red); }
.score-team.blue .score-value { color: var(--blue); }
.score-members { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.score-bar-track { margin-top: 10px; height: 4px; background: var(--bg-deep); border-radius: 2px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 2px; transition: width 0.5s ease; }
.red-bar { background: linear-gradient(90deg, var(--red), #e07878); }
.blue-bar { background: linear-gradient(90deg, var(--blue), #6db4f0); }
.score-divider { font-size: 12px; color: var(--text-muted); font-weight: 700; padding: 0 6px; }

/* 拔河条 / 态势温度计 */
.tug-of-war {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
}
.tow-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.tow-label strong { color: var(--accent); margin-left: 6px; }
.tow-track { height: 10px; background: var(--bg-deep); border-radius: 5px; position: relative; overflow: visible; }
.tow-thermo { height: 12px; }
.tow-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--red) 0%, #7c4dff 50%, var(--blue) 100%); transition: width 0.5s ease; width: 50%; }
.tow-marker { position: absolute; top: -3px; width: 4px; height: 18px; background: #fff; border-radius: 2px; left: 50%; transform: translateX(-50%); transition: left 0.5s ease; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
.tow-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; font-weight: 600; }
.tow-red { color: var(--red); }
.tow-blue { color: var(--blue); }

/* 统计 */
.battle-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-item { background: var(--bg-card); border-radius: var(--radius-sm); padding: 10px; border: 1px solid var(--border); text-align: center; }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

/* 角色分布 */
.role-distribution { background: var(--bg-card); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); }
.role-distribution h4 { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }
.role-dist-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 12px; }
.role-dist-name { display: flex; align-items: center; gap: 6px; }
.role-dist-dot { width: 8px; height: 8px; border-radius: 50%; }
.role-dist-item.red .role-dist-dot { background: var(--red); }
.role-dist-item.blue .role-dist-dot { background: var(--blue); }
.role-dist-count { font-weight: 600; color: var(--text-secondary); font-size: 13px; }

/* --- 中央主区域 --- */
.battle-main {
  flex: 1;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.stage-progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.stage-progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all .3s;
  opacity: 0.35;
}
.stage-progress-step.active { opacity: 1; background: var(--accent-glow); }
.stage-progress-step.done { opacity: 0.6; }
.stage-progress-step .step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg-deep); border: 1px solid var(--border);
}
.stage-progress-step.active .step-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.stage-progress-step.done .step-num { background: var(--green); color: #fff; border-color: var(--green); }
.stage-progress-step .step-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.stage-progress-step.active .step-label { color: var(--accent); font-weight: 600; }
.step-connector { flex: 1; height: 2px; background: var(--border); margin: 0 2px; }

/* 场景栏 */
.scenario-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.scenario-bar-icon { color: var(--accent); }
.scenario-bar-text { display: flex; flex-direction: column; gap: 1px; }
.scenario-label { font-size: 11px; color: var(--text-muted); }
#battle-scenario-title { font-size: 14px; font-weight: 600; }

/* 环节横幅 */
.stage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15,22,40,0.8), rgba(21,32,58,0.6));
  border: 1px solid var(--border-strong);
  margin: 10px 12px 0;
  flex-shrink: 0;
}
.stage-banner-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stage-round-tag { font-size: 11px; padding: 3px 10px; border-radius: 16px; background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border-strong); white-space: nowrap; font-weight: 600; }
.stage-theme-box { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.stage-theme { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.stage-focus { font-size: 12px; color: var(--text-muted); }
.stage-type-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.stage-type-badge.type-commentBattle { background: var(--accent-glow); color: var(--accent); }
.stage-type-badge.type-opinionLeader { background: rgba(232,183,58,0.15); color: var(--yellow); }
.stage-type-badge.type-officialBulletin { background: rgba(62,192,122,0.15); color: var(--green); }

/* 环节目标 */
.stage-goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 12px 0;
  flex-shrink: 0;
}
.stage-goal { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 12px; border: 1px solid; }
.stage-goal.red { border-color: rgba(224,88,88,0.3); background: var(--red-dim); }
.stage-goal.blue { border-color: rgba(59,158,255,0.3); background: var(--blue-dim); }
.stage-goal span { display: block; font-size: 11px; margin-bottom: 2px; font-weight: 600; }
.stage-goal.red span { color: #e07878; }
.stage-goal.blue span { color: #6db4f0; }
.stage-goal p { margin: 0; color: var(--text-primary); line-height: 1.4; font-size: 13px; }

/* AI开篇研判（内联横幅） */
.round-opening-banner {
  margin: 8px 12px 0;
  flex-shrink: 0;
}
.round-opening-inner {
  background: linear-gradient(135deg, rgba(15,22,40,0.98), rgba(21,32,58,0.98));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-glow);
}
.round-opening-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.round-opening-header strong { font-size: 15px; color: var(--accent); }
.opening-src { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.opening-src.ai { background: var(--accent-glow); color: var(--accent); }
.opening-src.sim { background: rgba(93,106,133,0.15); color: var(--text-secondary); }
.round-opening-situation { font-size: 13px; line-height: 1.6; color: var(--text-primary); margin-bottom: 10px; }
.round-opening-advice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.round-opening-advice .advice { padding: 8px 12px; border-radius: 6px; }
.round-opening-advice .advice.red { background: var(--red-dim); border-left: 3px solid var(--red); }
.round-opening-advice .advice.blue { background: var(--blue-dim); border-left: 3px solid var(--blue); }
.round-opening-advice .advice span { font-size: 11px; color: var(--text-secondary); display: block; margin-bottom: 3px; }
.round-opening-advice .advice p { font-size: 12px; color: var(--text-primary); margin: 0; line-height: 1.5; }

/* 平台舆情内联区（已移至右侧栏） */

.platform-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-empty { font-size: 14px; color: var(--text-muted); text-align: center; padding: 30px 12px; }

/* 平台帖子卡片 */
.pf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.pf-card:hover { border-color: var(--border-strong); }
.pf-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pf-platform { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.pf-platform.dy { background: rgba(0,0,0,0.3); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.pf-platform.ks { background: rgba(255,102,0,0.12); color: #ff8c42; border: 1px solid rgba(255,102,0,0.4); }
.pf-platform.tt { background: var(--red-dim); color: #e07878; border: 1px solid rgba(224,88,88,0.4); }
.pf-platform.wb { background: rgba(230,50,60,0.12); color: #ff7a82; border: 1px solid rgba(230,50,60,0.4); }
.pf-platform.wx { background: rgba(62,192,122,0.12); color: #5fd58f; border: 1px solid rgba(62,192,122,0.4); }
.pf-platform.zh { background: rgba(0,102,204,0.12); color: #4da6ff; border: 1px solid rgba(0,102,204,0.4); }
.pf-platform.net { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border-strong); }
.pf-format { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--accent-glow); color: var(--accent); }
.pf-stance { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.pf-stance.stance-positive { background: rgba(62,192,122,0.12); color: var(--green); }
.pf-stance.stance-negative { background: var(--red-dim); color: var(--red); }
.pf-stance.stance-neutral { background: rgba(93,106,133,0.12); color: var(--text-secondary); }
.pf-heat { font-size: 11px; line-height: 1; }
.pf-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.pf-tag.article { background: rgba(232,183,58,0.12); color: var(--yellow); }
.pf-tag.bulletin { background: rgba(62,192,122,0.12); color: var(--green); }
.pf-time { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.pf-author-row { display: flex; align-items: center; gap: 6px; padding: 3px 0 2px; }
.pf-author { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.pf-author-id { font-size: 11px; color: var(--text-muted); font-style: normal; }
.pf-content { font-size: 13px; line-height: 1.55; margin: 0 0 6px; color: var(--text-primary); }
.pf-stats { display: flex; gap: 14px; font-size: 11px; color: var(--text-secondary); margin-bottom: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
.pf-comments { display: flex; flex-direction: column; gap: 6px; }
.pf-comment { background: rgba(255,255,255,0.02); border-radius: 6px; padding: 8px 12px; border-left: 3px solid transparent; }
.pf-comment.red { border-left-color: var(--red); }
.pf-comment.blue { border-left-color: var(--blue); }
.pf-comment.removed { border-left-color: #888; opacity: 0.7; }
.pf-comment.ambient { background: rgba(255,255,255,0.01); border-left: 3px solid var(--text-muted); }
.pf-comment-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); flex-wrap: wrap; }
.pf-comment-side { font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.pf-comment-side.red { background: var(--red-dim); color: #e07878; }
.pf-comment-side.blue { background: var(--blue-dim); color: #6db4f0; }
.pf-comment-score { margin-left: auto; font-size: 12px; padding: 1px 8px; border-radius: 4px; background: rgba(62,192,122,0.12); color: var(--green); font-weight: 600; }
.pf-comment-score.pending { background: rgba(232,183,58,0.1); color: var(--yellow); }
.pf-comment p { font-size: 13px; line-height: 1.5; margin: 4px 0 0; }
.pf-comment.removed p { color: var(--text-muted); font-style: italic; }
.pf-comment.ambient p { font-size: 12px; color: var(--text-secondary); }
.pf-comment-none { font-size: 12px; color: var(--text-muted); text-align: center; padding: 10px; }
.pf-comment-time { font-size: 10px; color: var(--text-muted); }

.pf-card.article-card { border-left: 3px solid var(--yellow); }
.pf-card.bulletin-card { border-left: 3px solid var(--green); background: rgba(62,192,122,0.03); }

/* --- 中央：动作流 + AI分析区 --- */
.action-stream-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 8px 0 0;
}
.action-stream-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  position: sticky;
  top: 0;
  background: var(--bg-base);
  z-index: 5;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.action-stream-head h3 { font-size: 14px; color: var(--accent); margin: 0; font-weight: 700; }
.action-stream-head small { font-size: 11px; color: var(--text-muted); }

.action-stream-body {
  flex: 1;
  display: flex;
  gap: 1px;
  min-height: 0;
  background: var(--border);
}

/* 动作流（中央左侧，可滚动） */
.action-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-base);
}
.action-stream::-webkit-scrollbar { width: 4px; }
.action-stream::-webkit-scrollbar-track { background: transparent; }
.action-stream::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* 分析面板（中央右侧，内嵌） */
.analytics-inline {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-panel);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.analytics-inline::-webkit-scrollbar { width: 4px; }
.analytics-inline::-webkit-scrollbar-track { background: transparent; }
.analytics-inline::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* --- 右侧：平台舆情栏（1/3屏宽） --- */
.battle-platform {
  width: 33.33%;
  background: var(--bg-panel);
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  min-width: 0;
}
.battle-platform .platform-inline-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 10px;
  position: sticky;
  top: 0;
  background: var(--bg-panel);
  z-index: 5;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.battle-platform .platform-inline-head h3 { font-size: 14px; color: var(--accent); margin: 0; font-weight: 700; }
.battle-platform .platform-inline-head small { font-size: 11px; color: var(--text-muted); }
.battle-platform .platform-feed-grid {
  flex: 1;
  overflow-y: auto;
  padding: 10px 2px 8px 4px;
}
.battle-platform .platform-feed-grid::-webkit-scrollbar { width: 4px; }
.battle-platform .platform-feed-grid::-webkit-scrollbar-track { background: transparent; }
.battle-platform .platform-feed-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.comment-stream-empty { margin: 20px auto; text-align: center; color: var(--text-muted); }
.comment-stream-empty p { margin-top: 8px; font-size: 13px; }

/* 动作卡片 */
.action-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid;
  display: flex;
  gap: 10px;
  transition: background 0.2s;
}
.action-card.red { border-left-color: var(--red); }
.action-card.blue { border-left-color: var(--blue); }
.action-card.system { border: 1px dashed rgba(232,183,58,0.3); background: rgba(232,183,58,0.04); border-left: 3px solid var(--yellow); }
.action-avatar {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; text-align: center; line-height: 1.2;
}
.action-card.red .action-avatar { background: var(--red-dim); color: var(--red); }
.action-card.blue .action-avatar { background: var(--blue-dim); color: var(--blue); }
.action-body { flex: 1; min-width: 0; }
.action-header { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.action-role-name { font-size: 12px; font-weight: 600; }
.action-type-tag { font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 600; background: var(--accent-glow); color: var(--accent); }
.action-type-tag.platform-tag { background: rgba(0,102,204,0.12); color: #4da6ff; }
.action-player { font-size: 10px; color: var(--text-muted); }
.action-time { font-size: 10px; color: var(--text-muted); margin-left: auto; }
.action-content { font-size: 13px; line-height: 1.5; color: var(--text-primary); margin-bottom: 6px; word-break: break-word; }

.action-eval { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
.eval-main { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.eval-score { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.eval-score.high { color: var(--green); background: rgba(62,192,122,0.1); }
.eval-score.mid { color: var(--yellow); background: rgba(232,183,58,0.1); }
.eval-score.low { color: var(--text-muted); background: rgba(93,106,133,0.1); }
.eval-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--bg-deep); color: var(--text-secondary); }
.eval-effectiveness { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.eval-effectiveness.effective { background: rgba(62,192,122,0.12); color: var(--green); }
.eval-effectiveness.normal { background: rgba(232,183,58,0.12); color: var(--yellow); }
.eval-effectiveness.invalid { background: var(--red-dim); color: var(--red); }
.eval-momentum { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.eval-momentum.red { color: #e07878; background: var(--red-dim); }
.eval-momentum.blue { color: #6db4f0; background: var(--blue-dim); }
.eval-dims { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.eval-dim { font-size: 10px; padding: 2px 6px; border-radius: 8px; border: 1px solid; }
.eval-dim.good { color: var(--green); border-color: rgba(62,192,122,0.3); background: rgba(62,192,122,0.06); }
.eval-dim.ok { color: var(--yellow); border-color: rgba(232,183,58,0.3); background: rgba(232,183,58,0.06); }
.eval-dim.bad { color: var(--red); border-color: rgba(224,88,88,0.3); background: var(--red-dim); }
.eval-comment { display: block; margin-top: 4px; font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.eval-loading { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.eval-loading::after { content: ''; width: 10px; height: 10px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 分析卡片 */
.analytics-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
}
.analytics-card h3 { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 600; }

/* 内嵌分析卡片（中央右侧） */
.analytics-inline .analytics-card { padding: 10px 12px; }
.analytics-inline .analytics-card h3 { font-size: 11px; margin-bottom: 8px; }
.analytics-inline .effectiveness-chart { height: 56px; }
.analytics-inline .strategy-item { font-size: 11px; }
.analytics-inline .top-comment-text { font-size: 11px; }

.strategy-list { display: flex; flex-direction: column; gap: 6px; }
.strategy-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.strategy-bar-track { flex: 1; height: 4px; background: var(--bg-deep); border-radius: 2px; margin: 0 6px; overflow: hidden; }
.strategy-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.5s ease; }
.strategy-count { font-weight: 600; color: var(--text-secondary); min-width: 20px; text-align: right; font-size: 12px; }

.effectiveness-chart { display: flex; gap: 8px; height: 70px; align-items: flex-end; }
.effectiveness-bar { flex: 1; border-radius: 4px 4px 0 0; position: relative; min-height: 4px; transition: height 0.5s ease; display: flex; align-items: flex-end; justify-content: center; }
.effectiveness-bar.effective { background: linear-gradient(180deg, var(--green), rgba(62,192,122,0.2)); }
.effectiveness-bar.normal { background: linear-gradient(180deg, var(--yellow), rgba(232,183,58,0.2)); }
.effectiveness-bar.invalid { background: linear-gradient(180deg, var(--red), rgba(224,88,88,0.2)); }
.effectiveness-bar span { position: absolute; bottom: -16px; font-size: 10px; color: var(--text-secondary); }
.effectiveness-bar strong { position: absolute; top: 2px; font-size: 11px; color: #fff; }

.top-comment { font-size: 12px; }
.top-comment-text { color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; padding: 6px 8px; background: var(--bg-deep); border-radius: 4px; font-size: 12px; }
.top-comment-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.top-comment-empty, .strategy-empty, .sentiment-empty { color: var(--text-muted); font-size: 12px; text-align: center; padding: 16px 0; }

/* 顶部栏环节控制按钮 */
.topbar-stage-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-topbar {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-topbar:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(59, 158, 255, 0.2);
}
.btn-topbar.btn-end {
  border-color: rgba(224, 88, 88, 0.4);
  color: #e07878;
}
.btn-topbar.btn-end:hover {
  background: var(--red-dim);
  border-color: var(--red);
  color: #ff6b5e;
}
.btn-topbar.btn-next {
  border-color: var(--border-strong);
  color: var(--accent);
}
.btn-topbar.btn-next:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: #5db4ff;
}

/* ============================================================
   环节结束面板
   ============================================================ */
#stageend-panel { display: none; }
#stageend-panel.active { display: flex; }

.roundend-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}
.roundend-container h1 { font-size: 32px; }
.roundend-scores { display: flex; align-items: center; gap: 50px; }
.roundend-team { text-align: center; }
.roundend-team-name { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
.roundend-team-score { font-size: 56px; font-weight: 800; }
.roundend-team.red .roundend-team-score { color: var(--red); }
.roundend-team.blue .roundend-team-score { color: var(--blue); }
.roundend-vs { font-size: 16px; color: var(--text-muted); }
.roundend-leader { font-size: 18px; color: var(--accent); }
.roundend-leader span { font-size: 22px; }

/* AI战报 */
.round-report { margin: 12px auto; max-width: 800px; width: 90%; }
.round-report-loading { text-align: center; color: var(--accent); padding: 24px; font-size: 14px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.round-report-box { background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px; }
.round-report-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.report-src { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.report-src.ai { background: var(--accent-glow); color: var(--accent); }
.report-src.sim { background: rgba(93,106,133,0.12); color: var(--text-secondary); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-item { padding: 10px 12px; border-radius: 8px; background: rgba(0,0,0,0.2); margin-bottom: 8px; }
.report-item.red { border-left: 3px solid var(--red); }
.report-item.blue { border-left: 3px solid var(--blue); }
.report-item.highlight { border-left: 3px solid var(--gold); background: var(--gold-dim); }
.report-item span { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.report-item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-primary); }

/* ============================================================
   结果面板
   ============================================================ */
.results-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}
.results-trophy { animation: bounce 1s ease; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.results-title { font-size: 32px; }
.results-winner { font-size: 24px; font-weight: 700; }
.results-scores { display: flex; gap: 50px; margin: 16px 0; }
.results-team { text-align: center; padding: 24px 40px; border-radius: var(--radius); border: 1px solid var(--border); }
.results-team.red { border-color: var(--red); background: var(--red-dim); }
.results-team.blue { border-color: var(--blue); background: var(--blue-dim); }
.results-team-name { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; }
.results-team-score { font-size: 48px; font-weight: 800; }
.results-team.red .results-team-score { color: var(--red); }
.results-team.blue .results-team-score { color: var(--blue); }
.results-team-members { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.results-stats { display: flex; gap: 28px; color: var(--text-secondary); font-size: 14px; }

/* AI最终总报告 */
.final-summary-box { margin: 16px auto; max-width: 800px; }
.final-summary-card {
  background: linear-gradient(135deg, rgba(15,22,40,0.98), rgba(21,32,58,0.98));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
}
.final-summary-title { font-size: 18px; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.final-winner { font-size: 26px; font-weight: bold; text-align: center; margin-bottom: 6px; }
.final-winner-reason { font-size: 14px; color: var(--text-secondary); text-align: center; margin-bottom: 16px; }
.final-summary-card .report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.final-summary-card .report-item { padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,0.03); }
.final-summary-card .report-item.red { border-left: 3px solid var(--red); }
.final-summary-card .report-item.blue { border-left: 3px solid var(--blue); }
.final-summary-card .report-item.highlight { border-left: 3px solid var(--gold); background: var(--gold-dim); }
.final-summary-card .report-item span { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.final-summary-card .report-item p { font-size: 14px; line-height: 1.6; color: var(--text-primary); }

/* ============================================================
   无弹窗兜底
   ============================================================ */
.modal-overlay { display: none !important; }

/* ============================================================
   主题切换按钮
   ============================================================ */
.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}
.btn-theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================================
   重连二维码区（左侧栏底部）
   ============================================================ */
.reconnect-qr {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
}
.reconnect-qr h4 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}
.reconnect-qr-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.reconnect-qr-item {
  text-align: center;
  flex: 1;
}
.reconnect-qr-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 4px;
  padding: 4px;
  background: #fff;
  border-radius: 6px;
}
.reconnect-qr-img img {
  width: 100%;
  height: 100%;
  display: block;
}
.reconnect-qr-item.red span {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
}
.reconnect-qr-item.blue span {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
}
.reconnect-tip {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  line-height: 1.3;
}
