/* 安全中枢页面样式 */
.sec-hero { text-align: center; padding: 10px 0 26px; }
.sec-hero h1 {
  font-size: 40px; margin: 18px 0 10px; letter-spacing: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-hero p { color: var(--muted); font-size: 14px; max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* 机器人 */
.robot-zone { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.radar {
  position: absolute; left: 50%; top: 50%; border: 1px solid rgba(56,189,248,.55);
  border-radius: 50%; transform: translate(-50%,-50%);
}
.radar.r1 { width: 90px; height: 90px; animation: radar 2.6s ease-out infinite; }
.radar.r2 { width: 90px; height: 90px; animation: radar 2.6s ease-out 1.3s infinite; }
@keyframes radar {
  0% { width: 80px; height: 80px; opacity: .9; }
  100% { width: 180px; height: 180px; opacity: 0; }
}
.robot { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 96px; animation: floaty 3.2s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translate(-50%, calc(-50% - 4px)); }
  50% { transform: translate(-50%, calc(-50% + 6px)); }
}
.antenna { width: 4px; height: 16px; background: #64748b; margin: 0 auto; border-radius: 2px; position: relative; }
.antenna i { position: absolute; left: 50%; top: -8px; width: 10px; height: 10px; border-radius: 50%; background: #38bdf8; transform: translateX(-50%); box-shadow: 0 0 10px #38bdf8; }
.head {
  position: relative; width: 84px; height: 66px; margin: 0 auto;
  background: linear-gradient(160deg,#e2e8f0,#94a3b8); border-radius: 20px;
}
.ear { position: absolute; top: 20px; width: 10px; height: 22px; background: #64748b; border-radius: 5px; }
.ear.l { left: -9px; } .ear.r { right: -9px; }
.face { position: absolute; inset: 10px 12px; background: #0b1226; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.eye { width: 12px; height: 12px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 8px #38bdf8; animation: blink 4s infinite; }
@keyframes blink { 0%,92%,100% { transform: scaleY(1);} 95% { transform: scaleY(.1);} }
.mouth { position: absolute; bottom: 10px; width: 18px; height: 4px; border-radius: 2px; background: #38bdf8; }
.neck { width: 26px; height: 8px; margin: 0 auto; background: #64748b; border-radius: 3px; }
.body-bot {
  width: 70px; height: 44px; margin: 0 auto; border-radius: 14px 14px 18px 18px;
  background: linear-gradient(160deg,#cbd5e1,#7c8aa5); display: flex; align-items: center; justify-content: center;
}
.core { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle,#7dd3fc,#2563eb); box-shadow: 0 0 12px #38bdf8; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.18);} }

/* 扫描状态卡 */
.scan-card {
  border: 1px solid rgba(56,189,248,.25); border-radius: 18px; padding: 22px;
  background: rgba(15,23,42,.55); box-shadow: 0 0 40px rgba(56,189,248,.08);
  backdrop-filter: blur(8px); margin-bottom: 26px;
}
.scan-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.scan-state { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.state-dot { width: 12px; height: 12px; border-radius: 50%; background: #94a3b8; }
.state-dot.live { background: #34d399; box-shadow: 0 0 12px #34d399; animation: pulse 1.2s infinite; }
.state-dot.idle { background: #38bdf8; }
.scan-meta { text-align: right; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.scan-meta b { color: #e2e8f0; font-family: ui-monospace,monospace; }
.countdown { color: #38bdf8; font-family: ui-monospace,monospace; }
.scan-stats { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.scan-stats > div {
  flex: 1; min-width: 130px; text-align: center; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 8px; background: rgba(255,255,255,.03);
}
.scan-stats b { display: block; font-size: 26px; color: #38bdf8; font-family: ui-monospace,monospace; }
.scan-stats span { font-size: 12px; color: var(--muted); }

.verify-banner {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); font-size: 13.5px;
}
.verify-banner[hidden] { display: none; }
/* 随机位置浮卡模式：坐标由 JS 每次随机生成，不固定 DOM 位置 */
.verify-banner.float {
  position: fixed; z-index: 750; margin: 0; width: min(360px, calc(100vw - 32px));
  background: rgba(13,20,38,.96); backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(56,189,248,.18);
  animation: vb-in .35s ease;
}
@keyframes vb-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; } }
@media (max-width: 640px) {
  .verify-banner.float { width: calc(100vw - 24px); }
}

/* 通用区块 */
.panel-block { margin-bottom: 26px; }
.panel-title {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px;
  margin-bottom: 14px; letter-spacing: 1px;
}
.panel-title .bar { width: 5px; height: 18px; border-radius: 3px; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.title-hint { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: auto; }

/* 汇总卡片 + 单行终端 */
.scan-summary { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.scan-summary > div {
  flex: 1; min-width: 130px; text-align: center; border: 1px solid rgba(56,189,248,.2);
  border-radius: 14px; padding: 14px 8px; background: rgba(56,189,248,.05);
}
.scan-summary b { display: block; font-size: 26px; color: #38bdf8; font-family: ui-monospace,monospace; }
.scan-summary span { font-size: 12px; color: var(--muted); }

/* 单行终端：固定一行，原地刷新用户名 */
.terminal {
  border-radius: 14px; border: 1px solid rgba(255,255,255,.1); padding: 0 18px;
  background: #070b18; height: 58px; display: flex; align-items: center;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 14px;
}
.term-label { color: #7dd3fc; letter-spacing: 1px; }
.term-label.alert { color: #f87171; }
.term-label.done { color: #86efac; }
.term-user { color: #e2e8f0; margin-left: 6px; font-weight: 700; }
.term-user.term-flash { animation: termflash .28s ease-out; }
@keyframes termflash {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}
/* 闪烁光标跟随用户名 */
.term-user::after {
  content: ''; display: inline-block; width: 8px; height: 15px; margin-left: 6px;
  background: #38bdf8; vertical-align: -2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 公告板 */
.bulletin { display: flex; flex-direction: column; gap: 12px; }
.bulletin-item {
  border: 1px solid rgba(248,113,113,.3); border-left: 4px solid #f87171;
  border-radius: 12px; padding: 14px 16px; background: rgba(248,113,113,.06);
  animation: dropin .45s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes dropin { from { opacity: 0; transform: translateY(-14px) scale(.97);} to { opacity: 1; transform: none;} }
.bulletin-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bulletin-name { font-weight: 800; font-size: 16px; color: #fecaca; font-family: ui-monospace,monospace; }
.bulletin-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: rgba(56,189,248,.14); color: #7dd3fc; border: 1px solid rgba(56,189,248,.3);
}
.tag.red { background: rgba(248,113,113,.14); color: #fca5a5; border-color: rgba(248,113,113,.35); }
.bulletin-meta { margin-top: 8px; font-size: 12px; color: var(--muted); font-family: ui-monospace,monospace; }
.bulletin .empty { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 0; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; }

/* ==========================================================================
   新年皮肤覆盖：绛红宫墙 + 鎏金（body.newyear 由 newyear.js 注入）
   ========================================================================== */
body.newyear .sec-hero h1 {
  background: linear-gradient(90deg, #f5d061, #fff0c2, #e8b94a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.newyear .radar { border-color: rgba(245,208,97,.6); }
body.newyear .antenna i,
body.newyear .eye,
body.newyear .mouth { background: #f5d061; box-shadow: 0 0 10px rgba(245,208,97,.8); }
body.newyear .core { background: radial-gradient(circle,#fff0c2,#c98a24); box-shadow: 0 0 12px rgba(245,208,97,.8); }
body.newyear .scan-card {
  border-color: rgba(245,208,97,.35);
  background: rgba(42,10,12,.6); box-shadow: 0 0 40px rgba(245,208,97,.1);
}
body.newyear .state-dot.idle { background: #f5d061; }
body.newyear .scan-meta b { color: #fff0c2; }
body.newyear .countdown { color: #f5d061; }
body.newyear .scan-stats > div { border-color: rgba(245,208,97,.22); background: rgba(245,208,97,.06); }
body.newyear .scan-stats b { color: #f5d061; }
body.newyear .scan-summary > div { border-color: rgba(245,208,97,.25); background: rgba(245,208,97,.07); }
body.newyear .scan-summary b { color: #f5d061; }
body.newyear .terminal {
  border-color: rgba(245,208,97,.25); background: #1a0709;
}
body.newyear .term-label { color: #f5d061; }
body.newyear .term-label.alert { color: #ff8a7a; }
body.newyear .term-label.done { color: #b7f0a0; }
body.newyear .term-user::after { background: #f5d061; }
body.newyear .panel-title .bar { background: #f5d061; box-shadow: 0 0 10px rgba(245,208,97,.7); }
body.newyear .bulletin-item {
  border-color: rgba(245,208,97,.3); border-left-color: #e8b94a;
  background: rgba(245,208,97,.07);
}
body.newyear .bulletin-name { color: #fff0c2; }
body.newyear .tag {
  background: rgba(245,208,97,.14); color: #f5d061; border-color: rgba(245,208,97,.35);
}
body.newyear .tag.red { background: rgba(232,52,44,.22); color: #ffb3a8; border-color: rgba(232,52,44,.45); }
body.newyear .verify-banner {
  background: rgba(245,208,97,.12); border-color: rgba(245,208,97,.45);
}
