:root {
  --bg-deep: #0b1224;
  --pro-main: #2563eb;
  --pro-bright: #38bdf8;
  --pro-soft: rgba(56, 189, 248, 0.16);
  --pro-border: rgba(56, 189, 248, 0.34);
  --con-main: #e11d48;
  --con-bright: #fb7185;
  --con-soft: rgba(251, 113, 133, 0.16);
  --con-border: rgba(251, 113, 133, 0.34);
  --surface: rgba(15, 23, 42, 0.62);
  --surface-strong: rgba(15, 23, 42, 0.84);
  --line: rgba(255, 255, 255, 0.14);
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 红蓝对撞大屏光影舞台背景（干净纯粹，无杂色噪点） */
.stage-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 62% 85% at 14% 52%, rgba(37, 99, 235, 0.52) 0%, rgba(29, 78, 216, 0.14) 50%, transparent 78%),
    radial-gradient(ellipse 62% 85% at 86% 52%, rgba(225, 29, 72, 0.48) 0%, rgba(190, 18, 60, 0.14) 50%, transparent 78%),
    radial-gradient(circle at 50% 48%, rgba(124, 58, 237, 0.18) 0%, transparent 52%),
    linear-gradient(135deg, #071330 0%, #0d1326 48%, #220b1b 100%);
  pointer-events: none;
}

.stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.35) 0%, transparent 22%, transparent 82%, rgba(6, 11, 24, 0.5) 100%);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1640px;
  margin: 0 auto;
  padding: 18px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 顶部工具栏 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-sub);
  backdrop-filter: blur(12px);
}

.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.conn-pill.online .conn-dot {
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tool-btn:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.tool-btn:active {
  transform: scale(0.97);
}

.tool-btn.primary {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.tool-btn.primary:hover {
  background: rgba(56, 189, 248, 0.32);
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(12px);
}

.timer-readout {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  letter-spacing: 0.04em;
}

.timer-pill.urgent {
  border-color: rgba(251, 113, 133, 0.85);
  background: rgba(159, 18, 57, 0.45);
}

.timer-pill.urgent .timer-readout {
  color: #fecdd3;
}

.timer-mini-btn {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.92);
  color: #1e1b08;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.2s;
}

.timer-mini-btn:hover {
  opacity: 0.92;
}

.timer-mini-btn:active {
  transform: scale(0.95);
}

.timer-mini-btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* 辩题居中头部 */
.hero-header {
  text-align: center;
  padding: 2px 12px 4px;
}

.topic-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
}

.topic-stance {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
  flex-wrap: wrap;
  justify-content: center;
}

.stance-pro {
  color: #bae6fd;
}

.stance-con {
  color: #fecdd3;
}

.stance-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
}

/* 三段式红蓝 PK 核心舞台 */
.arena-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 470px;
}

.side-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  padding: 20px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.side-panel.pro {
  border-color: var(--pro-border);
  background: linear-gradient(155deg, rgba(16, 40, 88, 0.68) 0%, rgba(12, 22, 46, 0.72) 100%);
}

.side-panel.con {
  border-color: var(--con-border);
  background: linear-gradient(205deg, rgba(94, 20, 46, 0.66) 0%, rgba(28, 14, 30, 0.72) 100%);
}

.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.side-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-panel.pro .side-avatar {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.42);
}

.side-panel.con .side-avatar {
  background: linear-gradient(135deg, #e11d48, #fb7185);
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.42);
}

.side-badge {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.side-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-sub);
}

.lit-counter {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
}

.side-panel.pro .lit-counter strong {
  color: #7dd3fc;
}

.side-panel.con .lit-counter strong {
  color: #fda4af;
}

/* 关键词观点卡池 */
.kw-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.kw-card {
  position: relative;
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.22s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.kw-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.24);
}

.kw-card:active {
  transform: scale(0.985);
}

.kw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: background 0.25s, color 0.25s;
}

.kw-status {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.kw-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.64);
  line-height: 1.35;
  transition: color 0.25s;
}

.kw-desc {
  font-size: 13px;
  color: rgba(203, 213, 225, 0.52);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}

.kw-quote {
  margin-top: 2px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
}

/* 关键词被语音/AI点亮后的高亮状态 */
.side-panel.pro .kw-card.lit {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.42), rgba(56, 189, 248, 0.2));
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.side-panel.pro .kw-card.lit .kw-chip {
  background: #38bdf8;
  color: #082f49;
}

.side-panel.pro .kw-card.lit .kw-status {
  color: #bae6fd;
}

.side-panel.con .kw-card.lit {
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.42), rgba(251, 113, 133, 0.2));
  border-color: rgba(253, 164, 175, 0.85);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.side-panel.con .kw-card.lit .kw-chip {
  background: #fb7185;
  color: #4c0519;
}

.side-panel.con .kw-card.lit .kw-status {
  color: #fecdd3;
}

.kw-card.lit .kw-title {
  color: #ffffff;
}

.kw-card.lit .kw-desc {
  color: rgba(241, 245, 249, 0.88);
}

.kw-card.flash {
  animation: kwFlash 0.85s var(--ease);
}

@keyframes kwFlash {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  40% { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { transform: scale(1); }
}

/* 底部「开始发言」主按钮 */
.speak-cta {
  margin-top: 16px;
  height: 54px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.22s var(--ease), filter 0.2s;
}

.side-panel.pro .speak-cta {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.42);
}

.side-panel.con .speak-cta {
  background: linear-gradient(90deg, #e11d48 0%, #fb7185 100%);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.42);
}

.speak-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.speak-cta:active {
  transform: scale(0.98);
}

/* 中间 C 位大圆按钮：总结观点 */
.center-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.vs-pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.summary-orb {
  position: relative;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 2px solid rgba(216, 180, 254, 0.72);
  background: radial-gradient(circle at 32% 28%, #60a5fa 0%, #4f46e5 48%, #9333ea 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow:
    0 0 0 10px rgba(99, 102, 241, 0.16),
    0 18px 46px rgba(79, 70, 229, 0.56);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), filter 0.2s;
}

.summary-orb:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 15px rgba(129, 140, 248, 0.22),
    0 24px 56px rgba(99, 102, 241, 0.68);
}

.summary-orb:active {
  transform: scale(0.97);
}

.summary-orb.loading {
  animation: orbPulse 1.3s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(129, 140, 248, 0.2), 0 18px 46px rgba(79, 70, 229, 0.56); }
  50% { box-shadow: 0 0 0 22px rgba(129, 140, 248, 0.08), 0 22px 58px rgba(147, 51, 234, 0.72); }
}

.summary-orb-label {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.summary-orb-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.hub-stats {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 底部最新发言动态条 */
.feed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.feed-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.feed-side-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.feed-side-tag.pro {
  background: rgba(56, 189, 248, 0.24);
  color: #bae6fd;
}

.feed-side-tag.con {
  background: rgba(251, 113, 133, 0.24);
  color: #fecdd3;
}

.feed-text {
  min-width: 0;
  flex: 1;
  font-size: 15px;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.feed-kw {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* 弹窗公共遮罩 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 10, 24, 0.66);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  border-radius: 26px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.45);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.26s var(--ease);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

/* 小红书同款：同学正在发言白卡片 */
.speaking-card {
  max-width: 860px;
  padding: 30px 34px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.speaking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.speaking-who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.speaking-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.speaking-icon.pro {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.speaking-icon.con {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}

.speaking-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.speaking-sub {
  margin-top: 3px;
  font-size: 13px;
  color: #64748b;
}

.wave-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.wave-bars i {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: #2563eb;
  animation: waveBar 0.9s ease-in-out infinite;
}

.wave-bars i:nth-child(2) { animation-delay: 0.18s; }
.wave-bars i:nth-child(3) { animation-delay: 0.36s; }

@keyframes waveBar {
  0%, 100% { height: 5px; }
  50% { height: 14px; }
}

.speaking-editor {
  margin-top: 22px;
  width: 100%;
  min-height: 210px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font: inherit;
  font-size: 22px;
  line-height: 1.65;
  color: #0f172a;
  resize: vertical;
  transition: border-color 0.2s;
}

.speaking-editor:focus {
  outline: none;
  border-color: #3b82f6;
}

.speaking-hint-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}

.speaking-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dark-pill-btn {
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s var(--ease), background 0.2s;
}

.dark-pill-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.dark-pill-btn:active {
  transform: scale(0.97);
}

.dark-pill-btn.recording {
  background: #dc2626;
}

.light-pill-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s, transform 0.16s var(--ease);
}

.light-pill-btn:hover {
  background: #f1f5f9;
}

/* 小红书同款：把双方的想法，放在一起看（全屏总结分析展板） */
.summary-card {
  max-width: 1180px;
  padding: 32px 38px 34px;
  background: #f8fafc;
}

.summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.summary-headline {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  color: #0f172a;
}

.summary-topic {
  margin-top: 6px;
  font-size: 15px;
  color: #64748b;
}

.summary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.summary-col-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.summary-col.pro .summary-col-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.summary-col.con .summary-col-badge {
  background: #ffe4e6;
  color: #be123c;
}

.summary-col-heading {
  margin: 12px 0 16px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.summary-item-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-item {
  border-radius: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.summary-item-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.summary-item-detail {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
}

.summary-item-tag {
  margin-top: 10px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.summary-col.pro .summary-item-tag {
  background: #eff6ff;
  color: #2563eb;
}

.summary-col.con .summary-item-tag {
  background: #fff1f2;
  color: #e11d48;
}

.summary-conclusion {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eff6ff 0%, #f5f3ff 50%, #fff1f2 100%);
  border: 1px solid #e2e8f0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.6;
}

/* 二维码扫码弹窗 */
.qr-card {
  max-width: 440px;
  padding: 28px 30px;
  text-align: center;
}

.qr-box {
  margin: 18px auto 14px;
  width: 244px;
  height: 244px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box canvas, .qr-box img {
  width: 212px;
  height: 212px;
  image-rendering: pixelated;
}

.qr-url {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 12px;
  color: #475569;
  word-break: break-all;
}

/* 设置与全部发言弹窗 */
.settings-card {
  max-width: 960px;
  padding: 28px 32px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.kw-editor-cols {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kw-editor-box {
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.kw-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kw-editor-item {
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kw-editor-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
}

.icon-del {
  height: 34px;
  width: 32px;
  border-radius: 8px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #e11d48;
  cursor: pointer;
  font-weight: 800;
}

.history-card {
  max-width: 780px;
  padding: 26px 30px;
}

.history-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.history-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 80;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1120px) {
  .arena-grid {
    grid-template-columns: 1fr;
  }
  .center-hub {
    flex-direction: row;
    padding: 8px 0;
  }
  .summary-columns, .kw-editor-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 14px;
  }
  .kw-list {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
