/* ===== 大屏端主题 v2（庄重红金 · 玻璃质感） ===== */
:root {
  --gold-1: #fdf3d7;
  --gold-2: #f0cf8a;
  --gold-3: #d4a95c;
  --gold-4: #a8823e;
  --line:   rgba(240, 207, 138, .32);
  --line-strong: rgba(240, 207, 138, .55);
  --panel:  rgba(26, 2, 2, .38);
  --num-font: Bahnschrift, "DIN Alternate", "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(214, 48, 32, .55) 0%, rgba(150, 18, 12, 0) 55%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(90, 6, 6, .9) 0%, rgba(60, 3, 3, 0) 60%),
    linear-gradient(180deg, #8f1010 0%, #6e0909 40%, #420404 100%);
  background-size: cover;
  background-position: center;
}
/* 自定义背景图时加暗色遮罩保证可读性（控制台页除外） */
body[style*="background-image"]:not(.page-home)::before {
  content: ""; position: fixed; inset: 0;
  background: rgba(40, 2, 2, .58); z-index: 0;
}
.glow { position: fixed; border-radius: 50%; filter: blur(130px); opacity: .28; z-index: 0; pointer-events: none; }
.g1 { width: 720px; height: 720px; background: #ff6a3d; top: -320px; left: -220px; }
.g2 { width: 620px; height: 620px; background: #d4a017; bottom: -280px; right: -190px; }
::-webkit-scrollbar { display: none; }

/* ---------- 返回首页（三个功能大屏左上角） ---------- */
.sc-back {
  position: fixed; left: 22px; top: 26px; z-index: 9;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-2); text-decoration: none;
  font-size: 17px; letter-spacing: 2px;
  padding: 8px 20px; border-radius: 40px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  opacity: .75; transition: opacity .2s, background .2s;
}
.sc-back:hover { opacity: 1; background: rgba(0, 0, 0, .4); }
.sc-back svg { width: 17px; height: 17px; }

/* ---------- 头部 ---------- */
.sc-head { position: relative; z-index: 2; flex: none; text-align: center; padding: 24px 280px 0; }
.sc-head-min { padding: 14px 40px 0; min-height: 0; }
.sc-logo { position: absolute; left: 170px; top: 28px; height: 60px; }
.sc-head-tt h1 {
  font-size: 42px; font-weight: 800; letter-spacing: 4px;
  background: linear-gradient(180deg, var(--gold-1) 8%, var(--gold-2) 55%, var(--gold-4) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.sc-head-tt h2 {
  font-size: 21px; font-weight: 400; color: var(--gold-2);
  opacity: .88; margin-top: 9px; letter-spacing: 3px;
}
.sc-module {
  position: absolute; right: 54px; top: 36px;
  border: 1px solid var(--line-strong); color: var(--gold-2);
  font-size: 20px; padding: 8px 26px; border-radius: 40px; letter-spacing: 5px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.sc-head-min .sc-module { position: static; display: inline-block; }
/* 金色分隔线：两侧渐隐 + 中心菱形 */
.sc-line { position: relative; height: 1px; margin: 20px auto 0; width: 84%;
  background: linear-gradient(90deg, transparent, var(--gold-3) 26%, var(--gold-3) 74%, transparent); }
.sc-line i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  box-shadow: 0 0 12px rgba(240, 207, 138, .8); }

/* ---------- 主体布局 ---------- */
.sc-body {
  position: relative; z-index: 1; flex: 1; min-height: 0;
  display: flex; gap: 30px;
  padding: 22px 50px 30px;
}
.sc-side { width: 460px; flex: none; display: flex; align-items: center; justify-content: center; }
.qr-box {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px; padding: 36px 42px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 50px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
}
/* 卡片四角金色角饰 */
.qr-box::before, .qr-box::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  border: 2px solid var(--gold-3);
}
.qr-box::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 24px 0 0 0; }
.qr-box::after  { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 24px 0; }
.qr-tt { font-size: 29px; font-weight: 700; color: var(--gold-2); letter-spacing: 5px; margin-bottom: 22px; }
.qr-box .qr {
  background: #fff; padding: 16px; border-radius: 14px; display: inline-block; font-size: 0;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 30px rgba(0, 0, 0, .4);
}
.qr-box .qr img, .qr-box .qr canvas { max-width: 100%; height: auto; }
.qr-tip { margin-top: 20px; font-size: 19px; color: #ffe9c8; letter-spacing: 2px; opacity: .92; }

/* ---------- 签到 ---------- */
.sign-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sign-stat { font-size: 27px; margin-bottom: 14px; color: #ffe9c8; letter-spacing: 2px; }
.sign-stat b {
  color: var(--gold-2); font-size: 56px; font-weight: 700; margin: 0 8px;
  font-family: var(--num-font);
}
.wall {
  flex: 1; overflow-y: auto; padding: 8px 4px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 20px 10px; align-content: start;
}
.wu { text-align: center; min-width: 0; }
.wu-av {
  width: 82px; height: 82px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 0 3px rgba(240, 207, 138, .18), 0 6px 16px rgba(0, 0, 0, .45);
  display: block; margin: 0 auto; background: #5a0808;
}
.wu-av.gen { display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; }
.wu-nm { margin-top: 9px; font-size: 16.5px; color: #ffeedd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wu.pop { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.ticker {
  height: 56px; margin-top: 14px; flex: none;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; display: flex; align-items: center; padding: 0 26px;
  font-size: 24px; color: var(--gold-2); letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}

/* ---------- 打分 ---------- */
.score-cur { width: 45%; flex: none; display: flex; flex-direction: column; min-width: 0; }
.cur-wait { font-size: 36px; opacity: .6; text-align: center; padding: 90px 0 40px; letter-spacing: 6px; }
.cur-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 26px 34px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 50px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
}
.cur-no {
  display: inline-block; background: linear-gradient(180deg, var(--gold-1), var(--gold-3));
  color: #5c0808; font-weight: 800; font-size: 26px; padding: 5px 30px; border-radius: 40px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  font-family: var(--num-font); letter-spacing: 1px;
}
.cur-name { font-size: 52px; font-weight: 800; margin-top: 14px; letter-spacing: 3px; }
.cur-unit { font-size: 22px; color: var(--gold-2); margin-top: 7px; letter-spacing: 2px; }
.cur-title { font-size: 24px; opacity: .94; margin-top: 11px; }
.cur-judges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; min-height: 46px; }
.jchip {
  background: rgba(0, 0, 0, .32); border: 1px solid var(--line);
  border-radius: 12px; padding: 7px 16px; font-size: 19px;
  animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.jchip i { font-style: normal; opacity: .78; margin-right: 10px; }
.jchip b { color: var(--gold-2); font-size: 23px; font-family: var(--num-font); }
.cur-final { margin-top: 14px; }
.cf-label { font-size: 18px; color: #ffe0ad; opacity: .9; letter-spacing: 1px; }
.cf-num {
  font-size: 96px; font-weight: 700; line-height: 1.12;
  font-family: var(--num-font);
  background: linear-gradient(180deg, var(--gold-1) 10%, var(--gold-2) 55%, var(--gold-4));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .4));
}
.score-rule { margin-top: 12px; font-size: 16px; opacity: .7; text-align: center; letter-spacing: 1px; }
.qr-mini { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.qr-mini .qr {
  background: #fff; padding: 10px; border-radius: 12px; font-size: 0; flex: none;
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 22px rgba(0, 0, 0, .4);
}
.qr-mini .qr-tip { margin: 0; font-size: 19px; }

.score-rank {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 16px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
}
.rank-hd, .rank-row { display: grid; grid-template-columns: 78px 88px 1fr 158px; align-items: center; }
.rank-hd {
  font-size: 18px; color: var(--gold-2); padding: 4px 10px 13px; letter-spacing: 2px;
  border-bottom: 1px solid var(--line-strong);
}
.rank-hd span:last-child { text-align: right; }
.rank-list { flex: 1; overflow-y: auto; }
.rank-row { padding: 8px 10px; font-size: 21px; border-bottom: 1px dashed rgba(255, 255, 255, .07); }
.rr-rk { font-size: 24px; font-weight: 700; opacity: .92; font-family: var(--num-font); }
.rank-row.top1 .rr-rk { color: #ffd700; }
.rank-row.top2 .rr-rk { color: #e8e8e8; }
.rank-row.top3 .rr-rk { color: #f0a45c; }
.rank-row.top1 { background: linear-gradient(90deg, rgba(255, 215, 0, .12), transparent 70%); }
.rank-row.top2 { background: linear-gradient(90deg, rgba(232, 232, 232, .07), transparent 70%); }
.rank-row.top3 { background: linear-gradient(90deg, rgba(240, 164, 92, .08), transparent 70%); }
.rr-no { color: var(--gold-2); font-family: var(--num-font); }
.rr-nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 1px; }
.rr-nm em { font-style: normal; font-size: 14px; opacity: .58; margin-left: 12px; letter-spacing: 0; }
.rr-sc { font-size: 27px; font-weight: 700; color: var(--gold-2); text-align: right; font-family: var(--num-font); }

/* ---------- 投票 ---------- */
.vote-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vote-stat { display: flex; align-items: center; gap: 22px; margin-bottom: 14px; flex: none; }
.vs-pill {
  font-size: 22px; padding: 9px 30px; border-radius: 40px; letter-spacing: 3px;
  border: 1px solid transparent;
}
.vs-pill.wait { background: rgba(255, 255, 255, .1); color: #eee; border-color: rgba(255, 255, 255, .2); }
.vs-pill.live { background: linear-gradient(135deg, #2ebd68, #1a8747); animation: breath 1.8s infinite; }
.vs-pill.lock { background: linear-gradient(135deg, var(--gold-3), var(--gold-4)); color: #3d2800; font-weight: 700; }
@keyframes breath { 50% { box-shadow: 0 0 26px rgba(46, 204, 113, .8); } }
.vs-ctrl { display: flex; gap: 14px; }
.scr-btn {
  border: 1px solid var(--line-strong); border-radius: 40px; cursor: pointer;
  font-size: 19px; padding: 9px 26px; letter-spacing: 2px; color: #fff;
  background: rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}
.scr-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.scr-btn.ok   { background: linear-gradient(135deg, #2ebd68, #1a8747); border-color: rgba(255, 255, 255, .25); }
.scr-btn.warn { background: linear-gradient(135deg, #e08a1e, #b05f0a); border-color: rgba(255, 255, 255, .25); }
.scr-btn:disabled { opacity: .45; cursor: not-allowed; }
.vs-login { color: rgba(255, 255, 255, .35); font-size: 22px; text-decoration: none; margin-left: 4px; }
.vs-login:hover { color: var(--gold-2); }
.vote-board { flex: 1; position: relative; min-width: 0; }
.vrow {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--panel); border: 1px solid rgba(240, 207, 138, .16);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.vr-rk {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; font-family: var(--num-font);
}
.vr-rk.t1 { background: linear-gradient(180deg, #ffe9a0, #cf9b28); color: #4d3000; border-color: #ffe9a0; box-shadow: 0 0 14px rgba(255, 215, 0, .45); }
.vr-rk.t2 { background: linear-gradient(180deg, #f4f4f4, #97a1aa); color: #2c3338; border-color: #f4f4f4; }
.vr-rk.t3 { background: linear-gradient(180deg, #f3c197, #a5652f); color: #3d1e00; border-color: #f3c197; }
.vr-no { font-size: 16px; color: var(--gold-2); width: 48px; flex: none; font-family: var(--num-font); }
.vr-info { flex: 1; min-width: 0; }
.vr-nm { font-size: 20px; font-weight: 700; margin-right: 10px; letter-spacing: 1px; }
.vr-un { font-size: 13px; opacity: .55; font-style: normal; }
.vr-bar { display: block; height: 6px; background: rgba(255, 255, 255, .1); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.vr-fill {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-2), #ff9c4a);
  box-shadow: 0 0 10px rgba(240, 207, 138, .5);
  transition: width .8s;
}
.vr-vt { font-size: 23px; font-weight: 700; color: var(--gold-2); flex: none; min-width: 82px; text-align: right; font-family: var(--num-font); }

/* ---------- 控制台（无标题 · 入口沉底） ---------- */
.page-home { display: flex; flex-direction: column; }
.home-wrap { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.home-spacer { flex: 1; }
.picker { display: flex; gap: 34px; justify-content: center; padding: 0 60px 56px; }
.pick {
  width: 300px; text-decoration: none; color: #fff; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 24px 26px;
  transition: transform .25s, background .25s, box-shadow .25s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 40px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
}
.pick:hover {
  transform: translateY(-8px);
  background: rgba(60, 6, 6, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 22px 55px rgba(0, 0, 0, .45);
}
.pick-ic { display: inline-flex; width: 58px; height: 58px; color: var(--gold-2); }
.pick-ic svg { width: 100%; height: 100%; }
.pick-tt { display: block; font-size: 27px; font-weight: 800; color: var(--gold-2); margin-top: 14px; letter-spacing: 4px; }
.pick-sub { display: block; font-size: 15px; opacity: .65; margin-top: 9px; letter-spacing: 1px; }
