/* ===== 科技蓝白主题 - 亮色科技感 ===== */
:root {
  --primary: #0b1a2e;
  --secondary: #132d4f;
  --accent: #00b4d8;
  --accent2: #ff6b35;
  --gold: #ffc107;
  --silver: #adb5bd;
  --bronze: #cd7f32;
  --green: #06d6a0;
  --red: #ef476f;
  --text: #eaf4ff;
  --text-dim: rgba(234,244,255,0.55);
  --card-bg: rgba(19, 45, 79, 0.75);
  --card-bg-solid: #132d4f;
  --glow: 0 0 24px rgba(0,180,216,0.3);
  --border: rgba(0,180,216,0.2);
  --border-light: rgba(255,255,255,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
  background: var(--primary);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
/* 图标字体回退，解决Windows浏览器emoji显示方块 */
.icon, .nav-icon, .login-title .icon, .section-title, .card-title, .qs-icon, .stat-item .icon {
  font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Apple Color Emoji', 'Android Emoji', emoji, sans-serif;
}
.page { display: none; min-height: 100vh; position: relative; z-index: 1; }
.page.active { display: flex; flex-direction: column; }

/* ===== 按钮 ===== */
.btn { padding: 11px 24px; border: none; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600; transition: all 0.25s; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: linear-gradient(135deg, #00b4d8, #0077b6); color: #fff; box-shadow: 0 4px 16px rgba(0,180,216,0.3); }
.btn-success { background: linear-gradient(135deg, #06d6a0, #00b386); color: #0b1a2e; }
.btn-danger, .btn-red { background: linear-gradient(135deg, #ef476f, #d62246); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #ffc107, #ff8800); color: #0b1a2e; font-size: 17px; padding: 14px 36px; }
.btn-orange { background: rgba(255,107,53,0.18); color: var(--accent2); border: 1px solid rgba(255,107,53,0.4); }
.btn-accent { background: rgba(0,180,216,0.15); color: var(--accent); border: 1px solid rgba(0,180,216,0.35); }
.btn-ghost { background: rgba(255,255,255,0.08); color: rgba(234,244,255,0.6); border: 1px solid var(--border-light); }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ===== 表单 ===== */
.input-field { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 15px; outline: none; transition: all 0.25s; }
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,180,216,0.15); background: rgba(255,255,255,0.12); }
.input-field::placeholder { color: rgba(234,244,255,0.38); }
textarea.input-field { resize: vertical; }
select.input-field option { background: #132d4f; }

/* ===== 通用组件 ===== */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; backdrop-filter: blur(12px); }
.card-title { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; color: rgba(234,244,255,0.65); font-size: 13px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-tip { background: rgba(255,193,7,0.08); border: 1px solid rgba(255,193,7,0.2); border-radius: 10px; padding: 12px 16px; font-size: 13px; color: rgba(234,244,255,0.65); margin-bottom: 14px; }

/* ===== 粒子背景 ===== */
#particles-canvas { position: fixed; inset: 0; pointer-events: none; z-index: -1; }

/* ===== Toast ===== */
.toast { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 9999; animation: slideIn 0.35s ease; display: none; box-shadow: 0 4px 20px rgba(0,0,0,0.3); max-width: 90vw; text-align: center; }
.toast.show { display: block; }
.toast-info { background: rgba(0,180,216,0.97); color: #fff; }
.toast-success { background: rgba(6,214,160,0.97); color: #0b1a2e; }
.toast-error { background: rgba(239,71,111,0.97); color: #fff; }

/* ===== 抢答覆盖层 ===== */
.buzz-winner-overlay { position: fixed; inset: 0; background: rgba(255,193,7,0.15); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 200; }
.buzz-winner-overlay.show { display: flex; animation: fadeIn 0.2s; }
.buzz-winner-card { background: linear-gradient(135deg, #ffc107, #ff8800); color: #0b1a2e; padding: 40px 64px; border-radius: 20px; text-align: center; box-shadow: 0 0 80px rgba(255,193,7,0.6), 0 20px 60px rgba(0,0,0,0.4); animation: bounceIn 0.4s ease; }
.buzz-winner-name { font-size: 48px; font-weight: 900; }

/* ========================================== */
/*             导航首页                        */
/* ========================================== */
#page-home {
  background: linear-gradient(160deg, #0f2744 0%, #0b1a2e 30%, #162d50 65%, #0d2240 100%);
  justify-content: center; align-items: center; position: relative;
}
#page-home::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,180,216,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6,214,160,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.nav-content { text-align: center; max-width: 920px; padding: 40px 20px; position: relative; z-index: 1; }
.nav-logo {
  font-size: 52px; font-weight: 900;
  background: linear-gradient(135deg, #00b4d8, #90e0ef 45%, #ffc107 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,180,216,0.3));
  margin-bottom: 10px;
}
.nav-sub { font-size: 15px; color: var(--text-dim); margin-bottom: 52px; letter-spacing: 6px; }
.nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 40px; }
.nav-card {
  background: linear-gradient(145deg, rgba(19,45,79,0.85), rgba(11,26,46,0.85));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 36px 28px; cursor: pointer; transition: all 0.3s; position: relative;
  backdrop-filter: blur(8px);
}
.nav-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,180,216,0.2); }
.nav-card.nav-disabled { cursor: default; opacity: 0.5; }
.nav-card.nav-disabled:hover { border-color: var(--border); transform: none; box-shadow: none; }
.nav-icon { font-size: 44px; margin-bottom: 14px; }
.nav-title { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.nav-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.nav-badge { position: absolute; top: 14px; right: 14px; background: rgba(255,107,53,0.18); color: var(--accent2); font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.nav-footer { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========================================== */
/*             登录/注册页                     */
/* ========================================== */
.login-bg {
  flex: 1; display: flex; justify-content: center; align-items: center;
  background: linear-gradient(160deg, #0f2744 0%, #0b1a2e 50%, #132d4f 100%);
  padding: 20px; position: relative; z-index: 1;
}
.login-box { width: 100%; max-width: 420px; }
.login-title { font-size: 28px; font-weight: 900; color: var(--accent); text-align: center; margin-bottom: 8px; }
.login-sub { text-align: center; color: var(--text-dim); font-size: 13px; margin-bottom: 30px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.login-switch a { color: var(--accent); cursor: pointer; font-weight: 600; }
.error-msg { color: var(--red); font-size: 13px; text-align: center; padding: 6px; display: none; }
.error-msg.show { display: block; }

/* ===== 宽版登录（手机号+企业+验证码+公众号二维码） ===== */
.login-box-wide { max-width: 680px; }
.login-main-row {
  display: flex; gap: 32px; align-items: flex-start;
}
.login-form-col { flex: 1; min-width: 0; }
.login-qr-col {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding-top: 4px;
}
.login-qr-box {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 16px;
}
.login-qr-img {
  width: 130px; height: 130px; border-radius: 10px; display: block;
  object-fit: cover; background: rgba(255,255,255,0.05);
}
.login-qr-hint {
  font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.8;
}
@media (max-width: 600px) {
  .login-box-wide { max-width: 100%; }
  .login-main-row { flex-direction: column; gap: 20px; }
  .login-qr-col { width: 100%; }
  .login-qr-box { flex-direction: row; gap: 14px; padding: 14px; }
  .login-qr-img { width: 90px; height: 90px; }
  .login-qr-hint { font-size: 11px; text-align: left; }
}

/* ========================================== */
/*             管理员端                        */
/* ========================================== */
#page-admin { background: linear-gradient(145deg, #0b1a2e, #0f2744, #132d4f); }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(11,26,46,0.92); border-bottom: 1px solid var(--border);
  position: relative; z-index: 1; backdrop-filter: blur(10px);
}
.admin-header h1 { font-size: 19px; color: var(--accent); }
.admin-body { flex: 1; display: grid; grid-template-columns: 260px 1fr; overflow: hidden; position: relative; z-index: 1; }
.admin-sidebar {
  background: rgba(11,26,46,0.95); border-right: 1px solid var(--border);
  padding: 20px 12px; overflow-y: auto; backdrop-filter: blur(8px);
}
.sidebar-nav { list-style: none; }
.sidebar-nav li {
  padding: 12px 14px; border-radius: 10px; cursor: pointer; margin-bottom: 4px;
  transition: all 0.2s; display: flex; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 14px;
}
.sidebar-nav li:hover { background: rgba(0,180,216,0.1); color: var(--accent); }
.sidebar-nav li.active { background: rgba(0,180,216,0.14); color: var(--accent); border-left: 3px solid var(--accent); font-weight: 600; }
.admin-main { padding: 24px 28px; overflow-y: auto; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.section-title { font-size: 21px; font-weight: 700; color: var(--accent); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-item {
  background: linear-gradient(145deg, rgba(19,45,79,0.6), rgba(11,26,46,0.6));
  border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center;
  backdrop-filter: blur(6px);
}
.stat-num { font-size: 34px; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.quickstart-list { display: flex; flex-direction: column; gap: 12px; }
.qs-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: rgba(0,0,0,0.15); border-radius: 12px; border: 1px solid var(--border-light);
}
.qs-icon { font-size: 24px; flex-shrink: 0; }
.qs-sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.qs-item > div { flex: 1; }

/* ===== 题库管理 ===== */
.upload-zone {
  border: 2px dashed rgba(0,180,216,0.35); border-radius: 16px;
  padding: 48px 28px; text-align: center; cursor: pointer; transition: all 0.3s;
  background: rgba(0,180,216,0.03);
}
.upload-zone:hover { border-color: var(--accent); background: rgba(0,180,216,0.08); }
.question-list { background: rgba(0,0,0,0.15); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light); }
.question-item {
  display: grid; grid-template-columns: 40px 1fr 72px 72px 56px 36px; gap: 8px;
  align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border-light); font-size: 13px; transition: background 0.2s;
}
.question-item:hover { background: rgba(0,180,216,0.05); }
.question-item:last-child { border-bottom: none; }
.question-header { font-size: 11px; color: var(--text-dim); font-weight: 700; letter-spacing: 1px; background: rgba(0,0,0,0.2); }
.tag { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 15px; font-weight: 700; }
.tag-single { background: rgba(0,180,216,0.2); color: var(--accent); }
.tag-multi { background: rgba(255,107,53,0.2); color: var(--accent2); }
.tag-judge { background: rgba(6,214,160,0.2); color: var(--green); }
.tag-fill { background: rgba(255,193,7,0.2); color: var(--gold); }

/* ===== 房间管理 ===== */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.room-card {
  background: linear-gradient(145deg, rgba(19,45,79,0.85), rgba(11,26,46,0.85));
  border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: all 0.3s; backdrop-filter: blur(6px);
}
.room-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,180,216,0.2); }
.room-code { font-size: 36px; font-weight: 900; color: var(--accent); letter-spacing: 6px; margin: 12px 0; text-shadow: 0 0 20px rgba(0,180,216,0.3); }
.room-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; margin-bottom: 14px; font-weight: 600; }
.status-waiting { background: rgba(0,180,216,0.18); color: var(--accent); }
.status-running { background: rgba(6,214,160,0.18); color: var(--green); }
.status-ended { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.progress-bar-wrap { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #0077b6); border-radius: 3px; transition: width 1s linear; }

/* ========================================== */
/*       大屏展示端 - 亮色科技主题              */
/* ========================================== */
#page-screen {
  background: linear-gradient(160deg, #e8f4fd 0%, #d0e8f7 30%, #c5dff2 60%, #daeaf8 100%);
  overflow: hidden;
  color: #1a2a3a;
}
.screen-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 36px;
  background: rgba(255,255,255,0.85); border-bottom: 2px solid rgba(0,119,182,0.25);
  z-index: 1; backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,100,180,0.08);
}
.screen-title { font-size: 34px; font-weight: 900; color: #0077b6; text-shadow: none; }
.screen-room-badge { font-size: 16px; color: #4a6a80; background: rgba(0,119,182,0.08); padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(0,119,182,0.15); }
/* 大屏页面上的ghost按钮需要深色适配 */
#page-screen .btn-ghost { background: rgba(0,100,180,0.06); color: #4a6a80; border: 1px solid rgba(0,100,180,0.15); }
#page-screen .btn-ghost:hover { background: rgba(0,100,180,0.12); color: #0077b6; }

/* ===== 等待大屏 ===== */
.waiting-screen { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 14px; padding: 16px 24px; max-height: calc(100vh - 60px); overflow: hidden; }
.waiting-title { font-size: 38px; font-weight: 900; color: #0077b6; text-shadow: none; letter-spacing: 4px; margin-bottom: 2px; }
.waiting-sub { font-size: 18px; color: #5a7a8a; margin-top: 2px; }
.qr-big { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 6px 30px rgba(0,100,180,0.1); width: 260px; flex-shrink: 0; }
.qr-big canvas, .qr-big img { width: 100% !important; height: auto !important; display: block; }
.join-hint { font-size: 16px; color: #2a4a5a; text-align: center; line-height: 2.0; }
.screen-url-box {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(0,119,182,0.06); border: 1px solid rgba(0,119,182,0.15);
  border-radius: 12px; padding: 10px 18px;
}
.screen-url-box span { color: #0077b6; }

/* 等待页双栏布局 */
.waiting-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; width: 100%; max-width: 1200px; flex: 1; min-height: 0; align-items: stretch; }
.waiting-left { display: flex; flex-direction: column; align-items: center; gap: 14px; justify-content: center; }
.waiting-right {
  background: rgba(255,255,255,0.9); border: 1px solid rgba(0,119,182,0.15);
  border-radius: 18px; padding: 20px; display: flex; flex-direction: column;
  backdrop-filter: blur(8px); box-shadow: 0 4px 24px rgba(0,100,180,0.06);
}
.waiting-right-header {
  font-size: 18px; font-weight: 700; color: #0077b6; margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid rgba(0,119,182,0.1);
}
.waiting-player-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.waiting-player-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(0,119,182,0.04); border-radius: 12px; font-size: 15px; color: #2a3a4a;
  border: 1px solid rgba(0,119,182,0.08);
}
.waiting-player-item .wp-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #0077b6, #00b4d8);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.waiting-player-count { font-size: 14px; color: #5a7a8a; background: rgba(0,119,182,0.08); padding: 4px 12px; border-radius: 10px; }

/* 大屏答题结果大横幅 */
.answer-result-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: none;
  justify-content: center; align-items: center;
  padding: 18px 40px;
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}
.answer-result-banner.correct {
  background: linear-gradient(180deg, rgba(6,214,160,0.95), rgba(6,214,160,0.85));
  border-bottom: 4px solid #059669;
  box-shadow: 0 8px 30px rgba(6,214,160,0.4);
}
.answer-result-banner.wrong {
  background: linear-gradient(180deg, rgba(239,71,111,0.95), rgba(239,71,111,0.85));
  border-bottom: 4px solid #be123c;
  box-shadow: 0 8px 30px rgba(239,71,111,0.4);
}
.answer-result-content {
  display: flex; align-items: center; gap: 16px;
  font-size: 28px; font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.answer-result-icon {
  font-size: 48px;
  animation: pulse 1s ease-in-out infinite;
}
.answer-result-text {
  letter-spacing: 2px;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* 大屏显示选手作答 */
.player-answer-banner {
  display: none; margin-top: 14px; padding: 14px 24px;
  background: rgba(255,193,7,0.1); border: 1px solid rgba(255,193,7,0.3);
  border-radius: 14px; text-align: center; font-size: 18px; color: #b8860b; font-weight: 600;
}
.player-answer-banner.show { display: block; animation: fadeIn 0.3s; }
.player-answer-typing {
  margin-top: 10px; padding: 10px 18px; background: rgba(0,180,216,0.08); border: 1px solid rgba(0,180,216,0.2);
  border-radius: 12px; text-align: center; font-size: 16px; color: #0077b6; font-weight: 600; display: none;
}
.player-answer-typing.show { display: block; animation: fadeIn 0.3s; }

/* 大屏答题超时控制 */
.timeout-ctrl {
  margin-top: 14px; padding: 14px 18px;
  background: rgba(239,71,111,0.06); border: 1px solid rgba(239,71,111,0.15);
  border-radius: 14px; text-align: center;
}
.timeout-ctrl-title {
  font-size: 16px; font-weight: 700; color: var(--red); margin-bottom: 6px;
}
.timeout-ctrl-desc {
  font-size: 14px; color: #5a7a8a; margin-bottom: 10px;
}
.timeout-ctrl-btns {
  display: flex; flex-direction: column; gap: 8px;
}
.timeout-ctrl-btns .btn { width: 100%; justify-content: center; }

/* 大屏玩家进出通知条 */
.player-event-bar {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; max-width: 90%;
}
.player-event-item {
  padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  white-space: nowrap; animation: eventSlideIn 0.3s ease-out;
  backdrop-filter: blur(8px);
}
.player-event-item.join { background: rgba(6,214,160,0.2); color: #06d6a0; border: 1px solid rgba(6,214,160,0.3); }
.player-event-item.rejoin { background: rgba(0,180,216,0.15); color: #00b4d8; border: 1px solid rgba(0,180,216,0.3); }
.player-event-item.leave { background: rgba(239,71,111,0.15); color: #ef476f; border: 1px solid rgba(239,71,111,0.25); }
@keyframes eventSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 竞赛大屏 ===== */
.screen-body { flex: 1; display: grid; grid-template-columns: 280px 1fr 270px; grid-template-rows: minmax(0, 1fr); gap: 14px; padding: 12px 20px; overflow: hidden; }
.score-panel {
  background: rgba(255,255,255,0.88); border: 1px solid rgba(0,119,182,0.15);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,100,180,0.06);
  min-height: 0;
}
.score-panel-title {
  padding: 12px 16px; background: linear-gradient(135deg, #0077b6, #00b4d8);
  font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 2px;
  border-bottom: none;
}
.score-list { flex: 1; overflow-y: auto; padding: 8px; }
.score-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 5px;
  transition: all 0.5s; background: rgba(0,100,180,0.04); border: 1px solid transparent;
  color: #2a3a4a;
}
.score-item.top1 { background: rgba(255,193,7,0.1); border-color: rgba(255,193,7,0.25); }
.score-item.top2 { background: rgba(173,181,189,0.08); border-color: rgba(173,181,189,0.18); }
.score-item.top3 { background: rgba(205,127,50,0.08); border-color: rgba(205,127,50,0.18); }
.score-rank { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rank-1 { background: var(--gold); color: #0b1a2e; }
.rank-2 { background: var(--silver); color: #0b1a2e; }
.rank-3 { background: var(--bronze); color: #fff; }
.rank-n { background: rgba(0,100,180,0.1); color: #5a7a8a; }
.score-name { flex: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2a3a4a; font-weight: 600; }
.score-pts { font-size: 22px; font-weight: 900; color: #0077b6; }

.question-panel { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow: hidden; }
.question-box {
  background: rgba(255,255,255,0.92); border: 2px solid rgba(0,119,182,0.2);
  border-radius: 18px; padding: 22px 26px; flex: 1;
  display: flex; flex-direction: column; position: relative; overflow-y: auto;
  backdrop-filter: blur(8px); min-height: 0;
  box-shadow: 0 4px 24px rgba(0,100,180,0.06);
}
.question-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, #0077b6, transparent);
  animation: scan 2.5s linear infinite;
}
.q-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.q-num { font-size: 15px; color: #5a7a8a; background: rgba(0,119,182,0.08); padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(0,119,182,0.15); font-weight: 600; }
/* 大屏题目文字用深色 */
#page-screen .q-text { font-size: 28px; font-weight: 700; line-height: 1.6; color: #1a2a3a; margin-bottom: 18px; }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: rgba(0,100,180,0.04);
  border: 1px solid rgba(0,100,180,0.12); border-radius: 12px;
  font-size: 19px; transition: all 0.3s; color: #2a3a4a;
}
.q-option.correct { background: rgba(6,214,160,0.1); border-color: var(--green); color: #0a6a4a; }
.q-option.wrong { background: rgba(239,71,111,0.08); border-color: var(--red); color: #8a2a3a; }
.q-option-letter {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,119,182,0.12);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; font-size: 17px; color: #0077b6;
}

.countdown-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.88); border: 1px solid rgba(0,119,182,0.15);
  border-radius: 14px; padding: 14px; min-height: 100px; gap: 6px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0,100,180,0.06);
  flex-shrink: 0;
}
.countdown-number { font-size: 64px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-number.normal { color: #0077b6; }
.countdown-number.warning { color: #d4880f; animation: pulse 0.6s infinite; }
.countdown-number.danger { color: #ef476f; animation: pulse 0.35s infinite; }
.countdown-label { font-size: 16px; color: #7a9aaa; letter-spacing: 1px; font-weight: 600; }

.random-call-hint {
  display: none;
  font-size: 16px; font-weight: 700; color: #f59e0b;
  text-align: center; margin-top: 4px;
  animation: pulse-hint 0.8s ease-in-out infinite alternate;
}
.random-call-hint.show { display: block; }

@keyframes pulse-hint {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.control-panel {
  background: rgba(255,255,255,0.88); border: 1px solid rgba(0,119,182,0.15);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,100,180,0.06);
  color: #2a3a4a;
  min-height: 0;
}
.ctrl-title { font-size: 12px; color: #7a9aaa; letter-spacing: 1px; margin-bottom: 4px; text-transform: uppercase; font-weight: 600; }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.qr-box canvas, .qr-box img { width: 100% !important; height: auto !important; display: block; }
.online-count { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #2a3a4a; font-weight: 600; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: blink 1.2s infinite; flex-shrink: 0; }
.ctrl-btns { display: flex; flex-direction: column; gap: 8px; }
/* 大屏控制面板内按钮适配 */
#page-screen .control-panel .btn-primary { background: linear-gradient(135deg, #0077b6, #005a8c); }
#page-screen .control-panel .btn-red { background: linear-gradient(135deg, #ef476f, #c0392b); }
#page-screen .control-panel .btn-orange { background: rgba(255,107,53,0.08); color: #d35400; border: 1px solid rgba(255,107,53,0.25); }
.buzzed-info { background: rgba(255,193,7,0.1); border: 1px solid rgba(255,193,7,0.3); border-radius: 14px; padding: 18px; text-align: center; display: none; }
.buzzed-info.show { display: block; animation: fadeIn 0.3s; }
.buzzed-name { font-size: 28px; font-weight: 900; color: #d4880f; }

/* ========================================== */
/*             手机端                          */
/* ========================================== */
#page-mobile {
  background: linear-gradient(175deg, #0f2744 0%, #0b1a2e 50%, #132d4f 100%);
  justify-content: flex-start; align-items: center; padding: 4px 4px;
  min-height: 100vh; overflow-y: auto;
}
.mobile-wrap { width: 100%; max-width: 430px; display: flex; flex-direction: column; gap: 6px; padding: 0 2px; box-sizing: border-box; }
.mobile-header { text-align: center; padding: 4px 0 0; }
.mobile-title { font-size: 20px; font-weight: 900; color: var(--accent); }
.mobile-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.join-form { display: flex; flex-direction: column; gap: 10px; }
.demo-hint { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; }
.pulse-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,180,216,0.1); border: 2px solid var(--accent);
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; animation: pulse 2s infinite;
}
.join-info-box { margin-top: 10px; padding: 10px; background: rgba(0,0,0,0.15); border-radius: 10px; font-size: 13px; border: 1px solid var(--border-light); }
.buzz-section { padding-bottom: 6px; }
.mobile-status-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; margin-bottom: 2px; font-size:13px; }
.my-score { font-size: 20px; font-weight: 900; color: var(--accent); }
.buzz-question {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  padding: 8px 10px; background: rgba(0,180,216,0.06);
  border-radius: 8px; border: 1px solid var(--border); margin-bottom: 4px;
}
.buzz-btn {
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8080, #cc0000, #800000);
  border: 4px solid rgba(255,100,100,0.45); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px; margin: 0 auto;
  transition: all 0.1s;
  box-shadow: 0 0 40px rgba(255,0,0,0.35), 0 8px 24px rgba(0,0,0,0.4), inset 0 -4px 10px rgba(0,0,0,0.25);
  user-select: none; -webkit-tap-highlight-color: transparent;
  animation: buzz-glow 1.8s infinite;
  color: #fff;
}
.buzz-btn:active { transform: scale(0.9); box-shadow: 0 0 20px rgba(255,0,0,0.25); }
.buzz-btn.disabled { background: radial-gradient(circle at 35% 30%, #555, #333, #111); animation: none; cursor: not-allowed; box-shadow: none; color: #888; }
.answer-q {
  font-size: 14px; line-height: 1.5; margin-bottom: 10px;
  padding: 10px 12px; background: rgba(0,180,216,0.06);
  border-radius: 10px; border: 1px solid var(--border);
}
.answer-options { display: flex; flex-direction: column; gap: 6px; }
.answer-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(0,0,0,0.18);
  border: 2px solid var(--border-light); border-radius: 10px;
  cursor: pointer; transition: all 0.2s; font-size: 14px;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.answer-opt:hover { border-color: rgba(0,180,216,0.4); background: rgba(0,180,216,0.06); }
.answer-opt:active { transform: scale(0.98); }
.answer-opt.selected { border-color: var(--accent); background: rgba(0,180,216,0.14); }
.answer-opt.correct { border-color: var(--green); background: rgba(6,214,160,0.14); }
.answer-opt.wrong { border-color: var(--red); background: rgba(239,71,111,0.14); }
.opt-key {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,180,216,0.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.submit-row { text-align: center; margin-top: 10px; }
.result-display {
  padding: 14px; border-radius: 12px; text-align: center;
  font-size: 18px; font-weight: 900; margin-top: 10px; display: none;
}
.result-display.correct { background: rgba(6,214,160,0.14); border: 2px solid var(--green); color: var(--green); }
.result-display.wrong { background: rgba(239,71,111,0.14); border: 2px solid var(--red); color: var(--red); }
.result-display.show { display: block; animation: fadeIn 0.4s; }

/* 手机端卡片紧凑 */
#page-mobile .card { padding: 14px 12px; border-radius: 12px; }
#page-mobile .input-field { padding: 10px 12px; font-size: 15px; }
#page-mobile .btn-lg { padding: 12px 24px; font-size: 15px; }
/* 填空输入框 */
.fill-input { width: 100%; box-sizing: border-box; }

/* ========================================== */
/*             颁奖页                          */
/* ========================================== */
#page-award {
  background: radial-gradient(ellipse at center, #1a1400 0%, #0f0d05 60%, #0b0a08 100%);
  justify-content: flex-start; align-items: center; overflow-y: auto; overflow-x: hidden;
  padding-bottom: 60px;
}
#page-award::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,193,7,0.08) 0%, transparent 60%);
  pointer-events: none;
}
#confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.award-content { text-align: center; position: relative; z-index: 1; padding: 40px 20px; width: 100%; max-width: 960px; margin: 0 auto; }
.award-header { margin-bottom: 30px; }
.award-title {
  font-size: 54px; font-weight: 900;
  background: linear-gradient(135deg, #ffc107, #ff8800, #ffc107);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,193,7,0.4));
}
.award-sub { font-size: 16px; color: var(--text-dim); margin-top: 8px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 20px; margin-bottom: 40px; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transition: opacity 0.5s; }
.podium-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.pa-1 { background: linear-gradient(135deg, #ffc107, #ff8800); box-shadow: 0 0 32px rgba(255,193,7,0.5); }
.pa-2 { background: linear-gradient(135deg, #adb5bd, #6c757d); box-shadow: 0 0 20px rgba(173,181,189,0.35); }
.pa-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); box-shadow: 0 0 20px rgba(205,127,50,0.35); }
.podium-name { font-size: 16px; font-weight: 700; }
.podium-score { font-size: 13px; color: rgba(232,244,253,0.5); }
.podium-base { display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; border-radius: 8px 8px 0 0; color: rgba(255,255,255,0.6); }
.pb-1 { width: 140px; height: 165px; background: linear-gradient(180deg, #c79200, #8b6914); }
.pb-2 { width: 120px; height: 120px; background: linear-gradient(180deg, #888, #555); }
.pb-3 { width: 110px; height: 95px; background: linear-gradient(180deg, #8b5a1a, #5a3a0a); }

/* 全量排行榜（科技感，仿竞赛大屏） */
.award-ranking {
  margin: 0 auto 30px;
  max-width: 700px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.award-ranking-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0,119,182,0.3), rgba(0,180,216,0.2));
  font-size: 15px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  letter-spacing: 1px;
}
.award-ranking-count { font-size: 12px; color: rgba(232,244,253,0.5); font-weight: 400; }
.award-ranking-list { max-height: 420px; overflow-y: auto; padding: 8px 12px; }
.award-rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 4px;
  background: rgba(0,100,180,0.04); border: 1px solid transparent;
  transition: all 0.4s;
}
.award-rank-item.rank-top1 { background: rgba(255,193,7,0.1); border-color: rgba(255,193,7,0.25); }
.award-rank-item.rank-top2 { background: rgba(173,181,189,0.08); border-color: rgba(173,181,189,0.18); }
.award-rank-item.rank-top3 { background: rgba(205,127,50,0.08); border-color: rgba(205,127,50,0.18); }
.award-rank-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.award-rank-num.r1 { background: #ffc107; color: #0b1a2e; }
.award-rank-num.r2 { background: #adb5bd; color: #0b1a2e; }
.award-rank-num.r3 { background: #cd7f32; color: #fff; }
.award-rank-num.rn { background: rgba(0,180,216,0.12); color: rgba(232,244,253,0.5); }
.award-rank-name { flex: 1; font-size: 15px; color: #e8f4fd; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-rank-score {
  font-size: 20px; font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #0077b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* 按钮组 */
.award-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px;
}
.btn-export {
  background: linear-gradient(135deg, #00b894, #00cec9); color: #fff; border: none;
  padding: 12px 28px; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,184,148,0.3);
}
.btn-export:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,184,148,0.45); }
.btn-cert {
  background: linear-gradient(135deg, #e17055, #d63031); color: #fff; border: none;
  padding: 12px 28px; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 16px rgba(214,48,49,0.3);
}
.btn-cert:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(214,48,49,0.45); }

@media (max-width: 768px) {
  .award-title { font-size: 36px; }
  .award-ranking { margin: 0 10px 24px; }
  .award-ranking-list { max-height: 300px; }
  .podium { gap: 10px; }
  .pb-1 { width: 110px; height: 130px; }
  .pb-2 { width: 95px; height: 100px; }
  .pb-3 { width: 85px; height: 75px; }
  .award-actions { flex-direction: column; align-items: center; }
}

/* ========================================== */
/*             动画                            */
/* ========================================== */
@keyframes glow-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.8; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes buzz-glow {
  0%,100% { box-shadow: 0 0 50px rgba(255,0,0,0.35), 0 10px 30px rgba(0,0,0,0.4), inset 0 -4px 10px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 0 80px rgba(255,0,0,0.55), 0 10px 30px rgba(0,0,0,0.4), inset 0 -4px 10px rgba(0,0,0,0.25); }
}
@keyframes bounceIn { 0% { transform: scale(0.2); opacity: 0; } 55% { transform: scale(1.08); opacity: 1; } 75% { transform: scale(0.94); } 100% { transform: scale(1); } }
@keyframes score-pop { 0% { transform: scale(1); } 50% { transform: scale(1.45); color: var(--gold); } 100% { transform: scale(1); } }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,180,216,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,180,216,0.5); }

/* ===== 响应式 ===== */
@media (max-width: 1300px) { .screen-body { grid-template-columns: 240px 1fr 240px; gap: 12px; } .waiting-layout { grid-template-columns: 1fr 300px; gap: 20px; } }
@media (max-width: 1150px) { .screen-body { grid-template-columns: 200px 1fr 210px; gap: 10px; } }
@media (max-width: 960px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-body { grid-template-columns: 1fr; overflow-y: auto; max-height: none; }
  .nav-grid { grid-template-columns: 1fr; }
  .waiting-layout { grid-template-columns: 1fr; }
  .waiting-title { font-size: 28px; }
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .nav-logo { font-size: 34px; }
  .waiting-title { font-size: 24px; }
  .screen-body { padding: 6px; gap: 6px; }
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.65); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}
.modal-box {
  background: linear-gradient(145deg, #132d4f, #0f2744);
  border: 1px solid rgba(0,180,216,0.25); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  color: var(--text);
}

/* ===== 欢迎介绍弹窗 ===== */
.welcome-box {
  position: relative;
  background: linear-gradient(150deg, #071526 0%, #0b2040 55%, #0d2845 100%);
  border: 1px solid rgba(0,180,216,0.25);
  border-radius: 20px;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,180,216,0.08) inset, 0 0 80px rgba(0,180,216,0.06);
  max-width: 580px;
  width: 92%;
  overflow: hidden;
  animation: welcomeSlideIn 0.45s cubic-bezier(0.22,1,0.36,1);
  color: var(--text);
}
@keyframes welcomeSlideIn {
  from { opacity: 0; transform: translateY(36px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 顶部光带 */
.welcome-glow-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #00b4d8 30%, #7df4ff 50%, #00b4d8 70%, transparent 100%);
  border-radius: 3px 3px 0 0;
}

/* 关闭按钮 */
.welcome-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; color: rgba(232,244,253,0.4);
  cursor: pointer; transition: background 0.2s, color 0.2s;
  padding: 0;
}
.welcome-close-btn:hover { background: rgba(255,255,255,0.12); color: rgba(232,244,253,0.9); }

/* 头部 */
.welcome-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 28px 18px;
}
.welcome-header-logo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(0,180,216,0.1); border: 1px solid rgba(0,180,216,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.welcome-header-logo img { width: 40px; height: 40px; object-fit: contain; }
.welcome-header-text { flex: 1; }
.welcome-subtitle {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 4px; opacity: 0.85;
}
.welcome-title {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(90deg, #e8f4fd 0%, #a0d8ef 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.welcome-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
  color: #000; font-size: 11px; font-weight: 900; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 20px;
  box-shadow: 0 2px 12px rgba(255,193,7,0.4);
}

/* 分隔线 */
.welcome-divider {
  height: 1px; margin: 0 28px;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.2) 30%, rgba(0,180,216,0.2) 70%, transparent);
}

/* 功能亮点 */
.welcome-features {
  padding: 18px 28px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.welcome-feat-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(0,180,216,0.04); border: 1px solid rgba(0,180,216,0.1);
  border-radius: 10px; padding: 10px 14px;
  transition: background 0.2s;
}
.welcome-feat-item:hover { background: rgba(0,180,216,0.08); }
.welcome-feat-icon {
  font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px;
}
.welcome-feat-text {
  font-size: 13.5px; line-height: 1.6; color: rgba(232,244,253,0.8);
}
.welcome-feat-text strong { color: #e8f4fd; }

/* 链接卡片 */
.welcome-url-card {
  display: flex; align-items: center; gap: 10px;
  margin: 0 28px 12px;
  background: rgba(0,180,216,0.07); border: 1px solid rgba(0,180,216,0.2);
  border-radius: 10px; padding: 10px 16px;
  text-decoration: none; color: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.welcome-url-card:hover { background: rgba(0,180,216,0.14); border-color: rgba(0,180,216,0.4); }
.welcome-url-label {
  font-size: 11px; color: rgba(232,244,253,0.4); white-space: nowrap; flex-shrink: 0;
}
.welcome-url-link {
  flex: 1; font-size: 13px; font-weight: 700; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.welcome-url-arrow { flex-shrink: 0; color: var(--accent); opacity: 0.6; }

/* 福利提示 */
.welcome-promo {
  display: flex; align-items: center; gap: 10px;
  margin: 0 28px 18px;
  background: linear-gradient(90deg, rgba(255,193,7,0.08), rgba(255,140,0,0.06));
  border: 1px solid rgba(255,193,7,0.22);
  border-radius: 10px; padding: 11px 16px;
  font-size: 13px; color: #ffd35b; line-height: 1.5;
}
.welcome-promo-icon { font-size: 18px; flex-shrink: 0; }
.welcome-promo strong { color: #ffd35b; }

/* 底部 */
.welcome-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,0.025); border-top: 1px solid rgba(255,255,255,0.05);
  padding: 14px 28px;
}
.welcome-noshow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(232,244,253,0.45); cursor: pointer;
  user-select: none;
}
.welcome-noshow input[type="checkbox"] { display: none; }
.welcome-noshow-track {
  width: 32px; height: 17px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  position: relative; transition: background 0.2s;
}
.welcome-noshow-track::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(232,244,253,0.4);
  transition: transform 0.2s, background 0.2s;
}
.welcome-noshow input:checked ~ .welcome-noshow-track { background: rgba(0,180,216,0.5); border-color: var(--accent); }
.welcome-noshow input:checked ~ .welcome-noshow-track::after { transform: translateX(15px); background: #fff; }

.welcome-confirm-btn {
  background: linear-gradient(135deg, #0096b4 0%, #00b4d8 50%, #00cfee 100%);
  color: #fff; font-size: 14px; font-weight: 700;
  border: none; border-radius: 10px;
  padding: 9px 28px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,180,216,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.04em;
}
.welcome-confirm-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,180,216,0.5); }
.welcome-confirm-btn:active { transform: translateY(0); }

.comp-detail-header {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.comp-detail-stat {
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 16px; text-align: center;
  border: 1px solid var(--border-light);
}
.comp-detail-stat .num { font-size: 28px; font-weight: 900; color: var(--accent); }
.comp-detail-stat .label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.comp-player-row {
  display: flex; align-items: center; padding: 10px 14px; border-radius: 8px;
  margin-bottom: 6px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
}
.comp-player-row .rank { font-weight: 900; font-size: 18px; width: 36px; text-align: center; }
.comp-player-row .pname { flex: 1; font-weight: 600; }
.comp-player-row .pscore { font-weight: 900; color: var(--gold); font-size: 16px; }
.comp-record {
  padding: 8px 12px; border-radius: 8px; margin-bottom: 4px; font-size: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
}
.comp-record.correct { border-left: 3px solid var(--green); }
.comp-record.wrong { border-left: 3px solid var(--red); }
.tab-btns { display: flex; gap: 8px; margin-bottom: 16px; }
.tab-btn {
  padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border-light);
  background: transparent; color: var(--text-dim); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.tab-btn.active { background: rgba(0,180,216,0.15); color: var(--accent); border-color: rgba(0,180,216,0.3); }
