/* 大屏开奖页 · 放射科阅片室风格 */
:root {
  --bg-0: #050b14;
  --bg-1: #0a1626;
  --bg-2: #0d2137;
  --cyan: #38d6f0;
  --cyan-dim: #1a7f99;
  --blue: #4aa8ff;
  --text: #d8eaf5;
  --muted: #6d8ba3;
  --line: rgba(56, 214, 240, .22);
  --glow: rgba(56, 214, 240, .55);
}
.screen-body {
  background: radial-gradient(ellipse at 50% 0%, #0d2137 0%, #08172a 42%, var(--bg-0) 100%);
  color: var(--text); overflow: hidden; height: 100vh;
  font-family: "SF Mono", "Consolas", "Microsoft YaHei", monospace;
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
}
.scan-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.screen-wrap { position: relative; height: 100%; display: flex; flex-direction: column; padding: 16px 26px 12px; z-index: 3; }

/* DICOM 顶部信息栏 */
.dicom-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.dicom-left { display: flex; flex-direction: column; gap: 8px; }
.dicom-logo { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cyan); letter-spacing: 2px; font-weight: 600; }
.logo-cross { font-size: 20px; color: var(--cyan); text-shadow: 0 0 10px var(--glow); }
.dicom-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; line-height: 1.3; }
.meta-item b { font-size: 9px; color: var(--muted); letter-spacing: 1px; font-weight: 500; }
.meta-item i { font-size: 12px; color: var(--blue); font-style: normal; }
.right-meta { justify-content: flex-end; }
.dicom-center { text-align: center; }
.dicom-center h1 {
  font-size: 30px; font-weight: 700; letter-spacing: 5px; color: #eaf6ff;
  text-shadow: 0 0 18px var(--glow);
}
.dicom-center p { font-size: 12px; color: var(--cyan-dim); margin-top: 4px; letter-spacing: 4px; }
.dicom-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.admin-link { font-size: 12px; color: var(--cyan); border: 1px solid var(--line); padding: 5px 14px; border-radius: 3px; background: rgba(56,214,240,.05); }
.admin-link:hover { background: rgba(56,214,240,.15); }

.screen-main { flex: 1; display: grid; grid-template-columns: 250px 1fr 295px; gap: 22px; padding: 16px 0; min-height: 0; }

/* 左侧 X光胶片 */
.panel-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.film-box {
  background: #04070d; border: 1px solid #2a3a4a; border-radius: 4px;
  padding: 10px; position: relative; box-shadow: inset 0 0 24px rgba(0,0,0,.8);
}
.film-label { font-size: 9px; color: var(--muted); letter-spacing: 2px; margin-bottom: 8px; }
.film-window { position: relative; background: #fff; padding: 6px; border-radius: 2px; overflow: hidden; }
.film-window img { width: 100%; display: block; border-radius: 2px; }
.film-scanline {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .7; animation: filmScan 3.5s linear infinite;
}
@keyframes filmScan { 0% { top: 0; } 100% { top: 100%; } }
.film-footer { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.film-id { font-size: 9px; color: var(--blue); word-break: break-all; }
.film-id b { font-weight: 500; }
.film-tag { font-size: 11px; color: var(--cyan); letter-spacing: 2px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item {
  background: rgba(56,214,240,.05); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 6px; text-align: center;
}
.stat-num { font-size: 30px; font-weight: 700; color: var(--cyan); line-height: 1; text-shadow: 0 0 12px var(--glow); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 9px; color: var(--muted); margin-top: 6px; letter-spacing: .5px; }

.prize-progress {
  background: rgba(56,214,240,.04); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px; flex: 1 1 auto; min-height: 90px; overflow: auto;
}
.left-hint {
  font-size: 10px; color: var(--muted); line-height: 1.7;
  border: 1px dashed var(--line); border-radius: 4px; padding: 10px 12px;
}
.left-hint b { color: var(--cyan); font-weight: 600; }
.progress-title { font-size: 11px; color: var(--cyan); margin-bottom: 12px; letter-spacing: 1px; }
.prog-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; }
.prog-name { width: 48px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-bar { flex: 1; height: 5px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); border-radius: 2px; transition: width .4s; box-shadow: 0 0 6px var(--glow); }
.prog-num { width: 32px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 影像史话轮播卡片（大屏中央展示） */
.knowledge-show {
  width: 100%; max-width: 860px; z-index: 3; margin-top: -10px;
  display: flex; flex-direction: column; transition: opacity .45s, transform .45s;
}
.knowledge-show.km-hidden { opacity: 0; transform: scale(.97); pointer-events: none; }
.ks-head {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; margin-bottom: 14px; padding: 0 4px;
}
.ks-badge { font-size: 13px; letter-spacing: 2px; color: var(--cyan); text-shadow: 0 0 8px var(--glow); font-weight: 600; }
.ks-more { font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: 1px; }
.ks-more:hover { color: var(--cyan); }
.ks-body { display: grid; grid-template-columns: minmax(260px, 46%) 1fr; gap: 24px; width: 100%; align-items: center; }

.ks-figure { position: relative; }
.ks-figure-inner {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: #04070d; border: 1px solid rgba(56,214,240,.45); border-radius: 4px;
  box-shadow: 0 0 28px rgba(56,214,240,.16), inset 0 0 30px rgba(0,0,0,.6);
}
.ks-figure-inner::before, .ks-figure-inner::after {
  content: ''; position: absolute; width: 20px; height: 20px; z-index: 3; pointer-events: none;
}
.ks-figure-inner::before { top: 6px; left: 6px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.ks-figure-inner::after { bottom: 6px; right: 6px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.ks-figure-inner img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.ks-figure-scan {
  position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px 2px var(--glow); opacity: .6;
  animation: filmScan 3.2s linear infinite;
}
.ks-figure-tag {
  position: absolute; left: 0; bottom: -1px; transform: translateY(100%);
  background: var(--cyan); color: #04121c; font-size: 10px; font-weight: 700;
  padding: 3px 12px; letter-spacing: 1px; border-radius: 0 0 3px 3px;
}

.ks-content { text-align: left; min-width: 0; }
.ks-year {
  font-size: clamp(56px, 6vw, 92px); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #8df0ff, #38d6f0 55%, #4aa8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(56,214,240,.5)); font-variant-numeric: tabular-nums;
}
.ks-title {
  font-size: clamp(22px, 2.1vw, 34px); font-weight: 700; color: #eaf8ff;
  margin-top: 12px; letter-spacing: 1px; line-height: 1.35;
  text-shadow: 0 0 16px var(--glow); word-break: break-word;
}
.ks-text {
  font-size: clamp(13px, 1.25vw, 19px); color: #b7d4e6; line-height: 1.75;
  margin-top: 16px; max-width: 460px; letter-spacing: .5px;
}
.ks-dots { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.km-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(56,214,240,.25);
  transition: all .3s; cursor: pointer;
}
.km-dot.active { background: var(--cyan); box-shadow: 0 0 8px var(--glow); width: 22px; border-radius: 4px; }
.ks-fade .ks-year, .ks-fade .ks-title, .ks-fade .ks-text { animation: ksIn .6s ease; }
@keyframes ksIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 中间阅片舞台 */
.stage {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(56,214,240,.07), transparent 70%);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; min-height: 0;
}
.recon-deco { position: absolute; inset: 0; pointer-events: none; opacity: .3; }
.recon-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 1px solid var(--cyan); border-radius: 50%; }
.recon-ring.r1 { width: 200px; height: 200px; animation: reconPulse 4s ease-in-out infinite; }
.recon-ring.r2 { width: 340px; height: 340px; border-style: dashed; opacity: .5; animation: reconSpin 30s linear infinite; }
.recon-ring.r3 { width: 480px; height: 480px; opacity: .25; }
@keyframes reconPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .3; } 50% { transform: translate(-50%,-50%) scale(1.06); opacity: .6; } }
@keyframes reconSpin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.recon-axis { position: absolute; background: var(--cyan); opacity: .25; }
.recon-axis.ax { top: 50%; left: 0; right: 0; height: 1px; }
.recon-axis.ay { left: 50%; top: 0; bottom: 0; width: 1px; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px; top: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px 4px var(--glow); opacity: .55;
  animation: stageScan 5s linear infinite;
}
@keyframes stageScan { 0% { top: 0; } 100% { top: 100%; } }
.stage-label { position: absolute; top: 16px; left: 18px; font-size: 11px; letter-spacing: 2px; color: var(--cyan-dim); }
.stage-corner { position: absolute; font-size: 9px; color: var(--muted); letter-spacing: 1px; }
.stage-corner.tl { top: 16px; right: 18px; } .stage-corner.tr { top: 32px; right: 18px; }
.stage-corner.bl { bottom: 16px; left: 18px; font-size: 16px; color: var(--cyan-dim); }
.stage-corner.br { bottom: 16px; right: 18px; font-size: 16px; color: var(--cyan-dim); }

.rolling-area { text-align: center; padding: 20px; min-height: 180px; display: flex; align-items: center; justify-content: center; z-index: 3; }
.rolling-name {
  font-size: clamp(40px, 5.8vw, 82px); font-weight: 700; color: #eaf8ff;
  text-shadow: 0 0 30px var(--glow), 0 0 60px rgba(56,214,240,.25); letter-spacing: 5px;
  white-space: nowrap; transition: transform .05s;
}
.rolling-name.rolling { animation: jitter .08s infinite; }
@keyframes jitter { 0% { transform: translateY(-2px); } 100% { transform: translateY(2px); } }
.draw-info { font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: 2px; z-index: 3; }

.result-area { text-align: center; animation: imageReveal .7s ease; z-index: 4; }
@keyframes imageReveal {
  0% { opacity: 0; filter: blur(12px) brightness(2); transform: scale(1.04); }
  100% { opacity: 1; filter: blur(0) brightness(1); transform: scale(1); }
}
.result-crown { font-size: 14px; color: var(--cyan); letter-spacing: 5px; margin-bottom: 14px; text-shadow: 0 0 10px var(--glow); }
.result-prize {
  font-size: clamp(38px, 5vw, 68px); font-weight: 700; color: #eaf8ff;
  text-shadow: 0 0 26px var(--glow), 0 0 50px rgba(56,214,240,.3); margin-bottom: 20px; letter-spacing: 4px;
}
.result-winners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.winner-chip {
  background: rgba(56,214,240,.1); border: 1px solid var(--cyan); border-radius: 3px;
  padding: 12px 24px; font-size: 24px; font-weight: 600; color: #eaf8ff;
  box-shadow: 0 0 18px rgba(56,214,240,.2), inset 0 0 12px rgba(56,214,240,.08);
  text-shadow: 0 0 12px var(--glow);
}
.winner-chip small { display: block; font-size: 11px; color: var(--cyan-dim); margin-top: 3px; font-weight: 400; text-shadow: none; }
.result-hint { margin-top: 22px; font-size: 11px; color: var(--muted); letter-spacing: 1px; opacity: .8; }

/* 右侧控制台 */
.panel-right { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.control-box { background: rgba(56,214,240,.04); border: 1px solid var(--line); border-radius: 4px; padding: 14px; }
.control-title { font-size: 12px; font-weight: 600; color: var(--cyan); margin-bottom: 12px; letter-spacing: 1px; }
.control-label { display: block; font-size: 10px; color: var(--muted); margin: 10px 0 5px; letter-spacing: 1px; }
.muted { color: #4a6478; font-size: 9px; }
.control-box select, .control-box input {
  width: 100%; height: 36px; background: rgba(5,11,20,.7); border: 1px solid var(--line);
  border-radius: 3px; color: var(--text); padding: 0 10px; font-size: 13px;
}
.control-box select option { background: #0a1626; }
.control-box input::placeholder { color: #4a6478; }
.btn-draw {
  width: 100%; height: 44px; border-radius: 3px; margin-top: 14px;
  background: linear-gradient(135deg, #1a8fae, #38d6f0); color: #04121c;
  font-size: 15px; font-weight: 700; letter-spacing: 3px;
  box-shadow: 0 0 20px rgba(56,214,240,.3);
}
.btn-draw:disabled { opacity: .5; box-shadow: none; }
.btn-reset { width: 100%; height: 30px; border-radius: 3px; margin-top: 8px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 11px; border: 1px solid var(--line); }
.password-hint { font-size: 10px; color: #4a6478; margin-top: 10px; margin-bottom: 4px; }
.pwd-input { height: 30px !important; font-size: 11px !important; }

.winner-board {
  flex: 1; background: rgba(56,214,240,.03); border: 1px solid var(--line);
  border-radius: 4px; padding: 14px; overflow: hidden; display: flex; flex-direction: column; min-height: 0;
}
.board-title { font-size: 12px; font-weight: 600; color: var(--cyan); margin-bottom: 10px; letter-spacing: 1px; }
.board-title span { font-size: 10px; color: var(--muted); font-weight: 400; }
.board-list { flex: 1; overflow-y: auto; }
.board-empty { text-align: center; color: #4a6478; font-size: 12px; padding: 26px 0; }
.board-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 3px;
  background: rgba(56,214,240,.05); border-left: 2px solid var(--cyan-dim);
  margin-bottom: 5px; font-size: 12px;
}
.board-item .b-prize { color: var(--cyan); font-size: 10px; min-width: 46px; }
.board-item .b-name { color: var(--text); flex: 1; }
.board-item .b-phone { color: var(--muted); font-size: 10px; }

.screen-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 10px;
  font-size: 11px; color: var(--muted); letter-spacing: 1px;
}
.clock { font-variant-numeric: tabular-nums; color: var(--cyan-dim); }

@media (max-width: 1100px) {
  .screen-main { grid-template-columns: 200px 1fr 240px; gap: 12px; }
  .dicom-center h1 { font-size: 22px; }
  .dicom-meta { gap: 10px; }
}
