/* 高朋数智研究院 · AI 分享路演评分系统 —— 蓝白品牌主题 */
:root {
  --brand: #0080c8;
  --brand-deep: #00619b;
  --brand-bright: #1b9fe8;
  --brand-tint: #e9f4fc;
  --ink: #16324a;
  --text: #33475c;
  --muted: #7a8ca3;
  --line: #dfeaf4;
  --bg: #f4f9fd;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0, 97, 155, 0.08);
}

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

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 420px at 85% -5%, rgba(27, 159, 232, 0.10), transparent 60%),
    radial-gradient(900px 400px at -10% 30%, rgba(0, 128, 200, 0.06), transparent 55%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.hidden { display: none !important; }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .22em; }

/* ===== 预览顶栏 ===== */
.preview-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.preview-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-logo.small { width: 34px; height: 34px; }
.preview-brand strong { display: block; color: var(--ink); font-size: 15px; }
.preview-brand small { color: var(--muted); font-size: 11px; }

.preview-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--brand-tint);
}
.preview-tab {
  padding: 8px 22px;
  border: 0;
  border-radius: 9px;
  color: var(--brand-deep);
  background: transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
}
.preview-tab.active { color: #fff; background: var(--brand); box-shadow: 0 4px 12px rgba(0, 128, 200, .3); }

.reset-button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}
.reset-button:hover { color: var(--brand); border-color: var(--brand-bright); }

.toast {
  position: fixed;
  z-index: 500;
  bottom: 34px;
  left: 50%;
  padding: 12px 24px;
  border-radius: 12px;
  color: #fff;
  background: rgba(8, 61, 99, 0.94);
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 观众端 ===== */
.phone-stage {
  display: flex;
  min-height: calc(100vh - 65px);
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 36px 24px;
}
.phone {
  width: min(400px, 100%);
  min-height: 720px;
  padding: 14px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 97, 155, 0.14);
}
.phone-status { display: flex; justify-content: space-between; padding: 4px 10px 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mini-nav strong { font-size: 16px; }
.rules-fab {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1.5px solid var(--brand-bright);
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}
.rules-fab:hover { color: #fff; background: var(--brand); }

.audience-simple { display: flex; min-height: 600px; flex-direction: column; justify-content: center; padding: 12px 2px 0; }
.simple-status-row { display: flex; align-items: center; justify-content: space-between; }
.live-pill {
  padding: 5px 14px;
  border-radius: 20px;
  color: var(--brand-deep);
  background: var(--brand-tint);
  font-size: 12px;
  font-weight: 800;
}
.live-pill::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--brand-bright); vertical-align: 1px; }
.live-pill.ended { color: var(--muted); background: #eef2f6; }
.live-pill.ended::before { background: #b6c3d2; }
.burst-left-chip {
  padding: 5px 13px;
  border-radius: 20px;
  color: var(--brand);
  background: var(--brand-tint);
  font-size: 12px;
  font-weight: 800;
}

.speaker-hero {
  margin: 20px 0;
  padding: 30px 24px 28px;
  border: 1px solid #cfe6f6;
  border-radius: 24px;
  background: linear-gradient(160deg, #f2f9ff, #ffffff 70%);
  text-align: center;
}
.hero-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(0, 128, 200, .22); }
.hero-kicker { margin: 14px 0 4px; color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .3em; }
.speaker-hero h2 { color: var(--ink); font-size: 36px; font-weight: 950; line-height: 1.3; }
.hero-topic { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.action-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.action-stack .vote-button {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 17px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  box-shadow: 0 10px 24px rgba(0, 128, 200, .28);
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
}
.action-stack .vote-button span { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 800; }
.action-stack .vote-button:active { transform: scale(.98); }
.action-stack .vote-button:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .55; box-shadow: none; }

.hero-burst {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 17px;
  border: 2px solid var(--brand);
  border-radius: 16px;
  color: var(--brand-deep);
  background: var(--brand-tint);
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
}
.hero-burst span { color: var(--brand-bright); font-size: 13px; font-weight: 800; }
.hero-burst:active { transform: scale(.98); }
.hero-burst:disabled { cursor: not-allowed; opacity: .45; }

.submitted {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 15px;
  border: 1.5px dashed #b9d8ee;
  border-radius: 16px;
  color: var(--brand-deep);
  background: #f6fbff;
  font-size: 14.5px;
}
.submitted i { color: var(--brand); font-style: normal; font-weight: 900; }

.state-hint { margin-top: 16px; color: var(--muted); font-size: 12px; text-align: center; }

/* 观众端：即将上场提示 + 下一位跳过 */
.upcoming-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 22px 18px;
  border: 1.5px dashed #a8d3ef;
  border-radius: 16px;
  background: #f4faff;
  text-align: center;
}
.upcoming-mark { color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .18em; }
.upcoming-card p { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.back-button {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
}
.back-button:active { transform: scale(.97); }
.skip-button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: 1.5px solid #cfe6f6;
  border-radius: 14px;
  color: var(--brand-deep);
  background: #fff;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 800;
}
.skip-button:active { background: var(--brand-tint); }
.skip-button:disabled { cursor: not-allowed; color: #b6c3d2; border-color: #e6edf4; }

/* 管理员：投票进度 */
.audience-count-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid #e2eef8; border-radius: 12px; background: #fbfdff; flex-wrap: wrap; }
.audience-count-row label { color: var(--ink); font-size: 12.5px; font-weight: 800; }
.audience-count-row input { width: 92px; padding: 7px 10px; border: 1px solid #d7e4f0; border-radius: 8px; font-size: 13px; color: var(--ink); background: #fff; }
.audience-count-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 128, 200, .12); }
.audience-count-row .count-hint { color: var(--muted); font-size: 11px; }
.vote-progress {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #e2eef8;
  border-radius: 14px;
  background: #fff;
}
.progress-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11.5px; }
.progress-head b { color: var(--brand-deep); font-size: 13px; }
.progress-track { height: 8px; margin-top: 10px; border-radius: 8px; background: #e9f0f7; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand-bright), var(--brand)); transition: width .4s ease; }
.progress-meta { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.home-indicator { width: 110px; height: 4px; margin: 18px auto 2px; border-radius: 4px; background: #e2e9f0; }

.stage-note { width: 220px; color: var(--muted); }
.note-index { display: block; color: #cfe0ee; font-size: 40px; font-weight: 950; }
.stage-note h2 { margin: 8px 0; color: var(--ink); font-size: 17px; }
.stage-note p { font-size: 12.5px; line-height: 1.7; }

/* ===== 弹窗（规则 / 改分） ===== */
.modal-mask {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 42, 66, 0.45);
  backdrop-filter: blur(4px);
}
.rules-sheet {
  width: min(360px, 88vw);
  padding: 24px 22px 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 61, 99, .3);
}
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.editor-title { color: var(--ink); font-size: 17px; font-weight: 900; }
.editor-close { color: #a9b8c8; cursor: pointer; font-size: 26px; line-height: 1; }
.editor-close:hover { color: var(--ink); }
.rules-list { margin-top: 10px; list-style: none; }
.rules-list li { display: flex; flex-direction: column; gap: 4px; padding: 13px 0; border-bottom: 1px solid #eef4fa; }
.rules-list li:last-child { border-bottom: 0; }
.rules-list b { color: var(--brand-deep); font-size: 14px; }
.rules-list span { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.score-dialog {
  width: min(420px, 92vw);
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 61, 99, .3);
}
.score-speaker-name { margin-top: 4px; color: var(--muted); font-size: 13px; }
.score-authority-tip {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--brand-deep);
  background: var(--brand-tint);
  font-size: 11.5px;
}
.score-base-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  background: #f4f8fc;
  font-size: 13px;
}
.score-base-row strong { color: var(--ink); font-size: 17px; }
.form-label { margin: 12px 0 6px; color: var(--text); font-size: 12px; font-weight: 800; }
.score-form-input, .score-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.score-form-input:focus, .score-form-textarea:focus { border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(27, 159, 232, .12); }
.score-form-textarea { height: 76px; resize: none; }
.dialog-actions { display: flex; gap: 12px; margin-top: 20px; }
.dialog-actions button { flex: 1; padding: 12px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 800; }
.primary-button { border: 0; color: #fff; background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep)); }
.secondary-button { border: 1px solid var(--line); color: var(--muted); background: #fff; }

/* ===== 管理员 ===== */
.dashboard-stage { display: grid; min-height: calc(100vh - 65px); place-items: center; padding: 28px 20px; }
.dashboard-window {
  display: grid;
  width: min(1160px, 100%);
  min-height: 700px;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 97, 155, .12);
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px;
  background: linear-gradient(170deg, #0a5c8f, #074a76 70%, #063b60);
}
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand strong { display: block; color: #fff; font-size: 13px; }
.admin-brand small { color: rgba(255, 255, 255, .55); font-size: 10px; letter-spacing: .14em; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.admin-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
}
.admin-nav i { font-style: normal; font-size: 12px; }
.admin-nav.active { color: #fff; background: rgba(255, 255, 255, .16); }
.admin-nav:hover:not(.active) { background: rgba(255, 255, 255, .07); }
.admin-user { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.admin-user span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-deep);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}
.admin-user strong { display: block; color: #fff; font-size: 12.5px; }
.admin-user small { color: rgba(255, 255, 255, .5); font-size: 10.5px; }
.admin-logout {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}
.admin-logout:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.admin-login-stage {
  display: grid;
  min-height: calc(100vh - 65px);
  place-items: center;
  padding: 24px;
}
.admin-login-card {
  width: min(420px, 100%);
  padding: 38px 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 97, 155, .14);
}
.admin-login-card > img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 8px 22px rgba(0, 128, 200, .22); }
.admin-login-card .eyebrow { margin-top: 20px; }
.admin-login-card h1 { margin-top: 6px; color: var(--ink); font-size: 28px; }
.admin-login-tip { margin: 8px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.admin-login-card label { display: block; margin-bottom: 7px; color: var(--text); font-size: 12px; font-weight: 800; }
.admin-login-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.admin-login-card input:focus { border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(27, 159, 232, .12); }
.admin-login-error { min-height: 20px; margin-top: 8px; color: #c0392b; font-size: 12px; }
.admin-login-card button {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}
.admin-login-card button:disabled { cursor: wait; opacity: .65; }

.admin-main { padding: 26px 30px; background: #f8fbfe; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-top h1 { color: var(--ink); font-size: 22px; }
#adminClock { color: var(--muted); font-size: 12px; }

.current-panel {
  padding: 22px 24px;
  border: 1px solid #cfe6f6;
  border-radius: 18px;
  background: linear-gradient(150deg, #f2f9ff, #ffffff 65%);
  box-shadow: var(--shadow);
}
.panel-status { display: flex; align-items: center; justify-content: space-between; }
.status-chip {
  padding: 4px 13px;
  border-radius: 20px;
  color: #fff;
  background: var(--brand);
  font-size: 11.5px;
  font-weight: 800;
}
.panel-status small { color: var(--muted); font-size: 12px; }
.current-panel h2 { margin-top: 10px; color: var(--ink); font-size: 26px; }
.current-panel > p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.admin-stats { display: flex; gap: 14px; margin-top: 18px; }
.admin-stats > div {
  flex: 1;
  padding: 14px;
  border: 1px solid #e2eef8;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.admin-stats b { display: block; color: var(--brand-deep); font-size: 24px; font-weight: 950; }
.admin-stats b.amber { color: var(--brand-bright); }
.admin-stats span { color: var(--muted); font-size: 11.5px; }
.score-admin-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef4fa;
}
.adjustment-chip { padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.adjustment-chip.positive { color: #0c7c54; background: #e4f6ee; }
.adjustment-chip.negative { color: #c0392b; background: #fdecea; }
.score-edit-link { color: var(--brand); cursor: pointer; font-size: 13px; font-weight: 800; }
.score-edit-link:hover { text-decoration: underline; }

.admin-actions { display: flex; gap: 12px; margin: 16px 0; }
.admin-actions button {
  flex: 1;
  padding: 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}
.start-action { background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep)); }
.end-action { background: linear-gradient(145deg, #4a6785, #2c4258); }
.next-action { background: linear-gradient(145deg, #0d8fd6, #0a6aa3); }
.admin-actions button:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .5; }

.next-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 1.5px dashed #a8d3ef;
  border-radius: 16px;
  background: #f4faff;
}
.next-label { color: var(--brand); font-size: 10.5px; font-weight: 900; letter-spacing: .12em; }
.next-name { color: var(--ink); font-size: 19px; font-weight: 800; }
.next-topic { color: var(--muted); font-size: 12.5px; }
.next-empty { color: var(--muted); font-size: 13px; }

.list-title { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 10px; }
.list-title h3 { color: var(--ink); font-size: 15px; }
.list-title span { color: var(--muted); font-size: 11.5px; }
.progress-table { display: flex; flex-direction: column; gap: 8px; }
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e7f0f8;
  border-radius: 13px;
  background: #fff;
}
.progress-row.active { border-color: var(--brand-bright); background: #f2f9ff; box-shadow: 0 4px 14px rgba(0, 128, 200, .1); }
.progress-row.dragging, .manage-card.dragging { opacity: .5; border-style: dashed; }
.drag-handle {
  display: grid;
  width: 24px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 8px;
  color: #b3c4d6;
  cursor: grab;
  font-size: 15px;
  font-weight: 900;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.drag-handle:hover { color: var(--brand); background: var(--brand-tint); }
.progress-order {
  display: grid;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-deep);
  background: var(--brand-tint);
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}
.progress-name { flex: 1; min-width: 0; }
.progress-name strong { display: block; color: var(--ink); font-size: 14px; }
.progress-name span { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.progress-state {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 14px;
  color: var(--muted);
  background: #eef2f6;
  font-size: 10.5px;
  font-weight: 800;
}
.progress-state.live { color: #fff; background: var(--brand); }
.progress-score { flex-shrink: 0; color: var(--brand-deep); font-size: 13px; font-weight: 900; }

.manager-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.manager-head h2 { color: var(--ink); font-size: 18px; }
.manager-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.small-action {
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
}
.speaker-manage-list { display: flex; flex-direction: column; gap: 10px; }
.manage-card {
  display: grid;
  align-items: center;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e7f0f8;
  border-radius: 14px;
  background: #fff;
}
.manage-card > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-deep);
  background: var(--brand-tint);
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}
.manage-info { min-width: 0; }
.manage-info h3 { color: var(--ink); font-size: 15px; }
.manage-info p { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.manage-info small { color: #a9b8c8; font-size: 11px; }
.score-action {
  padding: 7px 12px;
  border: 1px solid #bcdcf1;
  border-radius: 9px;
  color: var(--brand);
  background: #f4faff;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.score-action:hover { color: #fff; background: var(--brand); }
.manage-score { color: var(--brand-deep); font-size: 15px; font-weight: 950; white-space: nowrap; }

.ranking-note { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.publish-card {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #cfe6f6;
  border-radius: 16px;
  background: linear-gradient(150deg, #f2f9ff, #fff 70%);
}
.publish-head { display: flex; justify-content: space-between; gap: 14px; }
.publish-head h2 { color: var(--ink); font-size: 16px; }
.publish-head p { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.publish-state {
  flex-shrink: 0;
  height: 24px;
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--muted);
  background: #eef2f6;
  font-size: 11px;
  font-weight: 800;
}
.publish-state.on { color: #fff; background: var(--brand); }
.publish-button {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 900;
}
.publish-button:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .55; }
.publish-button.withdraw { border: 1px solid #f0c4bd; color: #c0392b; background: #fdf1ef; }

.admin-ranks { display: flex; flex-direction: column; gap: 10px; }
.admin-rank {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e7f0f8;
  border-radius: 14px;
  background: #fff;
}
.admin-medal {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  font-size: 14px;
  font-weight: 950;
  font-style: normal;
}
.admin-rank h3 { color: var(--ink); font-size: 15px; }
.admin-rank p { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.rank-reason { color: #a9b8c8 !important; font-size: 11px !important; }
.rank-right { display: flex; align-items: center; gap: 12px; }
.rank-right strong { color: var(--brand-deep); font-size: 20px; font-weight: 950; }
.rank-right strong span { color: var(--muted); font-size: 11px; font-weight: 700; }
.rank-edit { color: var(--brand); cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; }
.export-action {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-bright), var(--brand-deep));
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

/* ===== 现场大屏（蓝白） ===== */
.big-screen {
  position: relative;
  display: flex;
  min-height: calc(100vh - 65px);
  flex-direction: column;
  overflow: hidden;
  padding: 4vh 5vw;
  background:
    radial-gradient(60vw 40vh at 80% 0%, rgba(27, 159, 232, 0.14), transparent 60%),
    radial-gradient(50vw 36vh at 8% 100%, rgba(0, 128, 200, 0.10), transparent 55%),
    linear-gradient(180deg, #fdfeff, #eef6fc);
}
.screen-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.screen-glow.one { top: -10%; right: -6%; width: 34vw; height: 34vw; background: rgba(27, 159, 232, .12); }
.screen-glow.two { bottom: -14%; left: -8%; width: 30vw; height: 30vw; background: rgba(0, 128, 200, .10); }

.screen-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-brand { display: flex; align-items: center; gap: 16px; }
.screen-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 24px rgba(0, 128, 200, .25); }
.screen-head h1 { color: var(--ink); font-size: 4vh; font-weight: 950; }
.screen-live {
  padding: 8px 20px;
  border-radius: 30px;
  color: #fff;
  background: var(--brand);
  font-size: 1.8vh;
  font-weight: 800;
}

.screen-grid { position: relative; z-index: 2; display: grid; flex: 1; grid-template-columns: 1fr auto; align-items: center; gap: 5vw; }
.screen-speaker { text-align: center; }
.screen-speaker h2 { margin-top: 2vh; color: var(--ink); font-size: 9.5vh; font-weight: 950; line-height: 1.15; }
.screen-speaker p:not(.eyebrow) { margin-top: 2vh; color: #4a6785; font-size: 3vh; line-height: 1.5; }
.screen-speaker small { display: block; margin-top: 1.2vh; color: #8ba2b9; font-size: 2vh; }
.screen-private-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 5vh;
  padding: 14px 26px;
  border: 1px solid #cfe6f6;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  text-align: left;
}
.screen-private-card i { color: var(--brand); font-size: 2.4vh; font-style: normal; }
.screen-private-card strong { display: block; color: var(--brand-deep); font-size: 1.9vh; }
.screen-private-card span { color: var(--muted); font-size: 1.6vh; }

/* 大屏右侧栏：扫码评分 + 下一位预告 */
.screen-side { display: flex; width: min(24vw, 340px); flex-direction: column; gap: 3vh; }
.screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2vh;
  padding: 3vh 1.8vw;
  border: 1px solid #cfe6f6;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  text-align: center;
}
.screen-card .eyebrow { margin-bottom: .6vh; }
.screen-qr {
  width: min(15vw, 210px);
  height: auto;
  padding: 6px;
  border: 1px solid #d8e9f6;
  border-radius: 14px;
  background: #fff;
}
.qr-card strong { color: var(--ink); font-size: 2vh; font-weight: 900; }
.qr-card span { color: var(--muted); font-size: 1.6vh; }
.next-fill { display: flex; flex-direction: column; gap: .6vh; }
.next-fill strong { color: var(--ink); font-size: 3.2vh; font-weight: 900; line-height: 1.3; }
.next-fill span { color: #4a6785; font-size: 1.8vh; line-height: 1.5; }
.next-fill small { color: #8ba2b9; font-size: 1.5vh; }
.next-empty { color: var(--muted); font-size: 1.8vh; padding: 1vh 0; }

/* 揭晓态 */
.screen-reveal {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.reveal-label { font-size: 2vh; }
.reveal-heading { margin-top: 1.5vh; color: var(--ink); font-size: 7.5vh; font-weight: 950; letter-spacing: 1vh; }
.reveal-podium { display: flex; align-items: flex-end; justify-content: center; gap: 3vw; margin-top: 5vh; }
.reveal-item {
  display: flex;
  min-width: 20vw;
  max-width: 26vw;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 3.2vh 1.6vw;
  border: 1px solid #d8e9f6;
  border-radius: 20px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 18px 44px rgba(0, 97, 155, .10);
  text-align: center;
}
.reveal-2 { order: 1; }
.reveal-1 {
  order: 2;
  padding: 5vh 1.6vw 4vh;
  border: 0;
  background: linear-gradient(160deg, var(--brand-bright), var(--brand-deep));
  box-shadow: 0 26px 60px rgba(0, 128, 200, .35);
}
.reveal-3 { order: 3; }
.reveal-medal { font-size: 5vh; line-height: 1; }
.reveal-1 .reveal-medal { font-size: 7.5vh; }
.reveal-rank { margin-top: 1vh; color: var(--brand); font-size: 1.7vh; font-weight: 900; letter-spacing: .12em; }
.reveal-1 .reveal-rank { color: rgba(255, 255, 255, .85); }
.reveal-name { overflow: hidden; max-width: 100%; margin-top: .8vh; color: var(--ink); font-size: 3.2vh; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.reveal-1 .reveal-name { color: #fff; font-size: 4.4vh; }
.reveal-topic { overflow: hidden; margin-top: 1vh; max-width: 100%; color: #58748f; font-size: 1.8vh; line-height: 1.5; }
.reveal-1 .reveal-topic { color: rgba(255, 255, 255, .85); }
.reveal-dept { margin-top: .6vh; color: #8ba2b9; font-size: 1.5vh; }
.reveal-1 .reveal-dept { color: rgba(255, 255, 255, .65); }
.reveal-score { margin-top: 2vh; color: var(--brand-deep); font-size: 4.6vh; font-weight: 950; line-height: 1; }
.reveal-1 .reveal-score { color: #fff; font-size: 6.4vh; }
.reveal-score span { color: #8ba2b9; font-size: 1.7vh; font-weight: 800; }
.reveal-1 .reveal-score span { color: rgba(255, 255, 255, .7); }
.reveal-footer { margin-top: auto; padding-top: 3vh; color: #8ba2b9; font-size: 1.8vh; }

/* 爆灯动画 */
.burst-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(233, 244, 252, 0.55);
  backdrop-filter: blur(3px);
}
.energy-ring { position: absolute; width: 46vh; height: 46vh; border: 3px solid rgba(0, 128, 200, .45); border-radius: 50%; animation: ring 2.4s ease-out infinite; }
.energy-ring.r2 { width: 64vh; height: 64vh; border-color: rgba(27, 159, 232, .25); animation-delay: .4s; }
@keyframes ring { 0% { transform: scale(.55); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.burst-pop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 7vw;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(150deg, var(--brand-bright), var(--brand-deep));
  box-shadow: 0 40px 110px rgba(0, 128, 200, .5);
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.burst-pop span { font-size: 7vh; }
.burst-pop strong { margin-top: 1vh; font-size: 5vh; letter-spacing: 1vh; }
.burst-pop b { color: #d5efff; font-size: 3vh; }
.burst-pop small { margin-top: 1vh; color: rgba(255, 255, 255, .8); font-size: 1.8vh; }
.screen-demo-button {
  position: absolute;
  z-index: 5;
  right: 3vw;
  bottom: 3vh;
  padding: 10px 18px;
  border: 1px solid #cfe6f6;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .85);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.screen-demo-button:hover { color: var(--brand); border-color: var(--brand-bright); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .stage-note { display: none; }
  .dashboard-window { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .admin-sidebar nav { flex-direction: row; }
  .admin-user { margin-top: 0; margin-left: auto; }
  .reveal-podium { flex-direction: column; gap: 12px; }
  .reveal-item, .reveal-1, .reveal-2, .reveal-3 { order: 0; width: 100%; min-width: 0; max-width: none; padding: 16px; }
  .screen-grid { grid-template-columns: 1fr; gap: 3vh; padding: 3vh 0; }
  .screen-side { width: min(300px, 90vw); }
  .screen-qr { width: 200px; }
}
@media (max-width: 700px) {
  .preview-bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .speaker-hero h2 { font-size: 28px; }
  .manage-card { grid-template-columns: auto auto 1fr auto; }
}

/* ===== 现场模式（本机服务下启用）：三端独立全屏，隐藏预览工具栏 ===== */
body.live-mode .preview-bar { display: none; }
body.live-mode .phone-stage { min-height: 100vh; padding: 0; gap: 0; }
body.live-mode .phone {
  width: 100%;
  min-height: 100vh;
  max-width: 560px;
  padding: 10px 20px 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.live-mode .stage-note { display: none; }
body.live-mode .dashboard-stage { min-height: 100vh; padding: 0; }
body.live-mode .dashboard-window { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
body.live-mode .screen-demo-button { display: none; }

/* ===== 三端入口页（现场模式无 view 参数时展示） ===== */
.landing {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.landing-logo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 34px rgba(0, 128, 200, .28); }
.landing-eyebrow { margin-top: 22px; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .3em; }
.landing h1 { margin-top: 8px; color: var(--ink); font-size: 34px; font-weight: 950; }
.landing-sub { margin-top: 10px; color: var(--muted); font-size: 14px; }
.landing-cards {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.landing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.landing-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 97, 155, .16); }
.landing-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 20px; background: var(--brand-tint); font-size: 30px; font-style: normal; }
.landing-icon.adm { background: #eef2f6; }
.landing-icon.scr { background: #e6f4fe; }
.landing-card strong { display: block; color: var(--ink); font-size: 19px; font-weight: 900; }
.landing-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.landing-card em { margin-top: 8px; color: var(--brand); font-size: 13px; font-style: normal; font-weight: 800; }
.landing-tip { margin-top: 34px; color: var(--muted); font-size: 12.5px; }
.landing-urls { width: min(720px, 100%); margin-top: 26px; padding: 18px 20px; border: 1px dashed rgba(0, 128, 200, .35); border-radius: 14px; background: rgba(255, 255, 255, .75); text-align: left; }
.landing-url-title { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.landing-url-row { display: flex; align-items: center; gap: 12px; margin: 7px 0; }
.landing-url-row span { width: 56px; color: var(--ink); font-size: 12.5px; font-weight: 700; flex: none; }
.landing-url-row code { flex: 1; padding: 5px 10px; border-radius: 7px; background: #eef4f8; color: var(--brand-deep); font-size: 12.5px; word-break: break-all; user-select: all; }
.landing-net-badge { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: #eef2f6; color: var(--muted); font-size: 11.5px; }
.landing-net-badge.public { background: #e6f6ec; color: #16794c; font-weight: 700; }
@media (max-width: 760px) {
  .landing-cards { grid-template-columns: 1fr; }
  .landing-card { flex-direction: row; align-items: center; text-align: left; }
  .landing-card em { margin-left: auto; }
  .landing-url-row { flex-wrap: wrap; }
  .landing-url-row code { flex-basis: 100%; }
}
