/* =========================================================================
   DELTA TIER · 设计系统
   ========================================================================= */

:root {
  --bg: #080a0e;
  --bg-soft: #0d1016;
  --panel: rgba(17, 21, 28, 0.82);
  --panel-solid: #11151c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf5;
  --text-dim: #98a2b3;
  --text-faint: #667085;
  --cyan: #22d3ee;
  --amber: #f5b700;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* 确保 hidden 属性优先级高于 .btn 等 display 规则 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 15% -10%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(800px 480px at 95% 0%, rgba(245, 183, 0, 0.07), transparent 70%),
    linear-gradient(180deg, #0a0d13 0%, #080a0e 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------- 公告条 ------------------------------- */

.announce-bar {
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.05));
}

.announce-bar.warn {
  border-bottom-color: rgba(245, 183, 0, 0.34);
  background: linear-gradient(90deg, rgba(245, 183, 0, 0.16), rgba(245, 183, 0, 0.05));
}

.announce-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
}

.announce-tag {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(34, 211, 238, 0.18);
  color: #a5f3fc;
  font-weight: 700;
}

.announce-bar.warn .announce-tag {
  background: rgba(245, 183, 0, 0.2);
  color: #ffe08a;
}

.announce-text { color: var(--text-dim); }

/* ------------------------------- 顶栏 ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 10, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 17px;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.22), rgba(245, 183, 0, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 15px;
  font-weight: 900;
}

.brand span.accent { color: var(--amber); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: var(--cyan); background: rgba(34, 211, 238, 0.10); }

.header-cta { margin-left: 6px; }

/* ------------------------------- 按钮 ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #ffc52e, #f5b700);
  color: #17130a;
  box-shadow: 0 8px 22px rgba(245, 183, 0, 0.22);
}

.btn-primary:hover { box-shadow: 0 10px 28px rgba(245, 183, 0, 0.34); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }

.btn-cyan {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.45);
  color: #a5f3fc;
}

.btn-cyan:hover { background: rgba(34, 211, 238, 0.2); }

.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ------------------------------- 首屏 ------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 360px at 30% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 360px at 30% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 26px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: livePulse 1.9s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hero-title {
  font-size: clamp(46px, 8vw, 84px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero-title .accent {
  color: var(--amber);
  text-shadow: 0 0 34px rgba(245, 183, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-actions .btn { height: 48px; padding: 0 26px; font-size: 15px; }

/* ============================ 1v1 分割首屏 ============================ */

.duel {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #06090d;
  --seam: 18deg;
}

.duel-bg { position: absolute; inset: 0; pointer-events: none; }

.duel-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 63%;
  overflow: hidden;
}

.duel-left {
  left: 0;
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
  background:
    radial-gradient(600px 420px at 18% 12%, rgba(34, 211, 238, 0.16), transparent 70%),
    linear-gradient(120deg, #08222c 0%, #06090d 62%);
}

.duel-right {
  right: 0;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
  background:
    radial-gradient(600px 420px at 86% 84%, rgba(245, 183, 0, 0.14), transparent 70%),
    linear-gradient(300deg, #2a2110 0%, #06090d 62%);
}

/* 两侧巨大的干员脸（低透明度，做对战氛围） */
.duel-face {
  position: absolute;
  width: 620px;
  height: 620px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.09;
  filter: grayscale(0.25) blur(1px);
}

.duel-left .duel-face { left: -130px; top: -120px; }
.duel-right .duel-face { right: -150px; bottom: -170px; }

/* 斜分割光缝：直接用与分割线相同的多边形画一条 2px 斜带，保证永远贴合 */
.duel-seam {
  position: absolute;
  inset: 0;
  clip-path: polygon(
    calc(58% - 2px) 0%,
    58% 0%,
    42% 100%,
    calc(42% - 2px) 100%
  );
  background: linear-gradient(180deg,
    rgba(34, 211, 238, 0.05) 0%,
    rgba(34, 211, 238, 0.55) 22%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(245, 183, 0, 0.6) 78%,
    rgba(245, 183, 0, 0.05) 100%);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.55)) drop-shadow(0 0 18px rgba(245, 183, 0, 0.35));
  opacity: 0.9;
  pointer-events: none;
}

.duel-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: none;   /* 居中交给 margin，transform 留给脉冲动画 */
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #06121a;
  background: linear-gradient(150deg, #a5f3fc 0%, #22d3ee 45%, #f5b700 55%, #ffe9a3 100%);
  box-shadow: 0 0 0 6px rgba(6, 9, 13, 0.9), 0 0 42px rgba(34, 211, 238, 0.45);
}

.duel-tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.55);
  white-space: nowrap;
}

.duel-tag-left { left: 6%; top: 16%; }
.duel-tag-right { right: 6%; bottom: 16%; color: rgba(255, 233, 163, 0.55); }

/* 内容层 */
.duel-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 100px;
}

.duel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}

.duel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: livePulse 1.9s infinite;
}

.duel-title {
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.duel-title span {
  color: var(--amber);
  text-shadow: 0 0 40px rgba(245, 183, 0, 0.35);
}

.duel-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0 0 30px;
  max-width: 520px;
}

.duel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

.duel-meta b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.duel-meta i { width: 1px; height: 12px; background: var(--line-strong); }

/* 擂主卡 */
.duel-champ {
  background: rgba(10, 14, 20, 0.72);
  border: 1px solid rgba(245, 183, 0, 0.28);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.duel-champ-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e7c96a;
  margin-bottom: 12px;
}

.champ-row { display: flex; align-items: center; gap: 12px; }
.champ-row .avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }
.champ-name { font-weight: 800; font-size: 17px; }
.champ-sub { font-size: 12px; color: var(--text-faint); }
.champ-points { margin-left: auto; text-align: right; }
.champ-points b { font-size: 26px; font-weight: 900; color: #ffe9a3; font-variant-numeric: tabular-nums; }
.champ-points span { font-size: 11px; color: var(--text-faint); display: block; }
.champ-grades { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ============================ 定级流程 ============================ */

.flow { padding: 54px 0 10px; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.flow-step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.flow-step::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
}

.flow-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.8;
}

.flow-step h3 { margin: 10px 0 8px; font-size: 16px; font-weight: 800; }
.flow-step p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.7; }

.cta-panel { padding: 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .duel-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; gap: 26px; }
  .duel-champ { max-width: 420px; }
  .flow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .duel { --seam: 0deg; }
  .duel-left, .duel-right { width: 100%; clip-path: none; }
  .duel-left { background: linear-gradient(180deg, rgba(34, 211, 238, 0.14), transparent 55%), #06090d; }
  .duel-right { background: linear-gradient(0deg, rgba(245, 183, 0, 0.12), transparent 55%), transparent; }
  .duel-face, .duel-seam, .duel-vs, .duel-tag { display: none; }
  .duel-inner { padding-top: 48px; padding-bottom: 48px; }
}

/* ------------------------------- 规则页 ------------------------------- */

.page-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  opacity: 0.85;
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.page-sub {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 8px;
  max-width: 720px;
}

.rule-block { margin-top: 44px; }

.rule-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
}

.rule-title span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 6px;
  padding: 2px 7px;
  opacity: 0.9;
}

.rule-desc { color: var(--text-dim); font-size: 13.5px; margin: 0 0 16px; line-height: 1.8; }

.rule-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rule-table th {
  text-align: left; padding: 11px 16px; font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--line);
}
.rule-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); color: var(--text-dim); }
.rule-table td:first-child { color: var(--text); font-weight: 700; width: 130px; }
.rule-table td.num { font-variant-numeric: tabular-nums; width: 110px; color: #a5f3fc; }
.rule-table tfoot td { border-bottom: 0; font-weight: 800; color: var(--text); }
.rule-table tfoot td.total { color: #ffe08a; font-size: 15px; }

.grade-convert { display: grid; gap: 8px; }

.convert-row {
  display: grid;
  grid-template-columns: 110px 70px 1fr 90px;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.convert-range { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.convert-desc { font-size: 13px; color: var(--text-faint); }
.convert-points { font-size: 12px; color: #ffe9a3; text-align: right; font-variant-numeric: tabular-nums; }

.rule-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245, 183, 0, 0.25);
  background: rgba(245, 183, 0, 0.06);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
}

.rule-note b { color: #ffe08a; }
.rule-note strong { color: var(--text); }

.rule-text p { margin: 0 0 10px; color: var(--text-dim); font-size: 13.5px; line-height: 1.85; }
.rule-text b { color: var(--text); }

.points-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.point-cell {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.point-value { font-weight: 900; font-variant-numeric: tabular-nums; color: #ffe9a3; font-size: 15px; }

.rule-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rule-hint { font-size: 12.5px; color: var(--text-faint); }

.rule-foot {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
}

.rule-foot b { color: var(--text-dim); }
.rule-foot a { color: var(--cyan); }

.hist-arrow { color: var(--text-faint); margin: 0 4px; }
.hist-new {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.30);
}
.hist-del { color: #fca5a5; font-size: 11.5px; margin-left: 6px; }
.hist-meta { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); min-width: 150px; text-align: right; }

.cert-code-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 5px;
  padding: 1px 6px;
  margin-left: 6px;
}

/* ------------------------------- 证书查验 ------------------------------- */

.verify-box { padding: 26px; margin-top: 26px; }
.verify-form { display: flex; gap: 10px; }
.verify-form .input { flex: 1; height: 46px; font-family: var(--mono); letter-spacing: 0.06em; }
.verify-hint { margin-top: 10px; font-size: 12px; color: var(--text-faint); }
.verify-hint code, .verify-result code { font-family: var(--mono); color: #a5f3fc; }

.verify-result { padding: 24px; margin-top: 18px; border-color: rgba(255, 255, 255, 0.1); }
.verify-result.ok { border-color: rgba(74, 222, 128, 0.4); box-shadow: 0 0 40px rgba(74, 222, 128, 0.06); }
.verify-result.bad { border-color: rgba(248, 113, 113, 0.4); }

.verify-status { font-size: 15px; font-weight: 900; letter-spacing: 0.04em; margin-bottom: 16px; }
.verify-status.ok { color: #86efac; }
.verify-status.bad { color: #fca5a5; }

.verify-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.verify-grid > div { display: flex; flex-direction: column; gap: 4px; }
.verify-grid span { font-size: 11.5px; color: var(--text-faint); }
.verify-grid b { font-size: 15px; font-weight: 800; }
.verify-line { font-size: 13.5px; color: var(--text-dim); line-height: 1.8; }
.verify-line.dim { color: var(--text-faint); }

.cert-scores { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-score {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 5px 10px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
}
.cert-score i { font-style: normal; color: var(--text-faint); }
.cert-score b { font-weight: 900; color: #e8edf5; font-variant-numeric: tabular-nums; }
.cert-score em { font-style: normal; color: var(--text-faint); font-size: 10.5px; }

.verify-foot {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-faint);
}
.verify-foot b { color: #ffe9a3; font-family: var(--mono); letter-spacing: 0.08em; }
.verify-revoked { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: rgba(248,113,113,.12); color: #fca5a5; font-size: 13px; }
.verify-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }

/* ------------------------------- 证书本体 ------------------------------- */

.cert-page main { padding: 26px 20px 70px; }
.cert-toolbar {
  max-width: 1000px; margin: 0 auto 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cert-tip { font-size: 12px; color: var(--text-faint); }

.cert {
  max-width: 1000px;
  margin: 0 auto;
  --gold: #d8b45a;
  --gold-2: #f3d99b;
}

.cert-frame {
  position: relative;
  aspect-ratio: 1.414 / 1;
  padding: 30px 38px;
  border-radius: 14px;
  overflow: hidden;
  color: #eef2f8;
  border: 1px solid rgba(216, 180, 90, 0.45);
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(34, 211, 238, 0.10), transparent 65%),
    radial-gradient(700px 380px at 95% 100%, rgba(216, 180, 90, 0.12), transparent 65%),
    linear-gradient(160deg, #0b0f16 0%, #070a0f 55%, #0a0d13 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* 防伪底纹 */
.cert-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(216, 180, 90, 0.035) 0 1px, transparent 1px 11px);
  opacity: 0.9;
  pointer-events: none;
}

.cert-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(216, 180, 90, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.cert-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--gold);
  opacity: 0.75;
  z-index: 3;
}
.cert-corner.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.cert-corner.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.cert-corner.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.cert-corner.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.cert-watermark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 150px;
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.028);
  text-align: right;
  pointer-events: none;
}

.cert-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }

.cert-brand {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
}
.cert-brand i { font-style: normal; color: var(--gold); }
.cert-logo {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: var(--cyan);
  font-size: 14px;
  margin-right: 6px;
  vertical-align: -5px;
}

.cert-no { text-align: right; font-size: 10.5px; letter-spacing: 0.14em; color: rgba(238, 242, 248, 0.45); }
.cert-no b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 14px; color: var(--gold-2); letter-spacing: 0.08em; }

.cert-title {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  background: linear-gradient(180deg, #fff 20%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cert-subtitle {
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: rgba(238, 242, 248, 0.35);
  margin-top: 4px;
}

.cert-main {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
}

.cert-name {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #fff;
}

.cert-line { font-size: 12.5px; color: rgba(238, 242, 248, 0.55); margin-top: 8px; letter-spacing: 0.04em; }

.cert-op { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.cert-op img {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(216, 180, 90, 0.7);
}
.cert-op span { font-size: 17px; font-weight: 800; color: var(--gold-2); }

.cert-grade-box { text-align: center; }
.cert-grade {
  font-size: 96px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff6d8 10%, var(--gold) 55%, #9a7a2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(216, 180, 90, 0.28));
}
.cert-total { font-size: 11.5px; letter-spacing: 0.16em; color: rgba(238, 242, 248, 0.45); margin-top: 6px; }

.cert-scores {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid rgba(216, 180, 90, 0.22);
  border-bottom: 1px solid rgba(216, 180, 90, 0.22);
}
.cert .cs { text-align: center; }
.cert .cs span { display: block; font-size: 10.5px; color: rgba(238, 242, 248, 0.45); letter-spacing: 0.08em; }
.cert .cs b { font-size: 19px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }

.cert-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  margin-top: 20px;
}
.cert-sign-line { font-size: 12.5px; color: rgba(238, 242, 248, 0.6); margin-bottom: 6px; }
.cert-sign-line b { color: #fff; font-size: 14px; }

.cert-seal { display: grid; place-items: center; }
.seal-ring {
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 2px solid rgba(216, 180, 90, 0.75);
  box-shadow: inset 0 0 0 4px rgba(216, 180, 90, 0.12), 0 0 24px rgba(216, 180, 90, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transform: rotate(-8deg);
  text-align: center;
  color: rgba(216, 180, 90, 0.85);
}
.seal-ring span { font-size: 6.5px; letter-spacing: 0.2em; line-height: 1.2; }
.seal-ring b { font-size: 16px; letter-spacing: 0.08em; color: var(--gold-2); line-height: 1.2; }

.cert-verify { text-align: right; font-size: 10.5px; color: rgba(238, 242, 248, 0.4); line-height: 1.9; }
.cert-verify code { display: block; font-family: var(--mono); font-size: 11px; color: rgba(238, 242, 248, 0.6); }
.cert-verify b { color: var(--gold-2); font-family: var(--mono); letter-spacing: 0.1em; }

.cert.is-revoked .cert-frame { filter: grayscale(0.85) brightness(0.75); }
.cert-revoked {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 900; letter-spacing: 0.2em;
  color: rgba(248, 113, 113, 0.85);
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 760px) {
  .cert-frame { aspect-ratio: auto; padding: 22px; }
  .cert-main { grid-template-columns: 1fr; }
  .cert-grade { font-size: 64px; }
  .cert-title { font-size: 20px; }
  .cert-name { font-size: 26px; }
  .cert-scores { grid-template-columns: repeat(3, 1fr); }
  .cert-foot { grid-template-columns: 1fr; }
  .cert-verify { text-align: left; }
  .cert-watermark { font-size: 90px; }
}

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  .cert-page { background: #fff !important; }
  .cert-page .site-header,
  .cert-page .site-footer,
  .cert-page .cert-toolbar { display: none !important; }
  .cert-page main { padding: 0; }
  .cert { max-width: none; }
  .cert-frame {
    aspect-ratio: 1.414 / 1;
    box-shadow: none;
    border-radius: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ------------------------------- 访问统计 ------------------------------- */

.gate-box { max-width: 420px; margin: 60px auto; padding: 26px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.kpi-label { font-size: 12.5px; color: var(--text-dim); }
.kpi-value { font-size: 34px; font-weight: 900; line-height: 1.2; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: 11.5px; color: var(--text-faint); }

.stat-panel { padding: 18px; margin-bottom: 16px; }
.stat-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* 趋势柱状图 */
.trend {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 170px;
  padding-top: 8px;
}

.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }

.trend-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.trend-bar {
  width: 70%;
  max-width: 34px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #22d3ee, rgba(34, 211, 238, 0.25));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.18);
  transition: height 0.3s ease;
}

.trend-num { font-size: 11px; color: var(--text-dim); margin-top: 6px; font-variant-numeric: tabular-nums; }
.trend-day { font-size: 10px; color: var(--text-faint); font-family: var(--mono); }

.dist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.bar-list { display: grid; gap: 10px; }

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.bar-label { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}
.bar-value { text-align: right; color: var(--text-faint); font-variant-numeric: tabular-nums; font-size: 11.5px; }

.isp-tag {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* 安全提醒 */
.sec-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: 1px;
}
.sec-badge.ok { background: rgba(74, 222, 128, 0.14); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.35); }
.sec-badge.warn { background: rgba(245, 183, 0, 0.14); color: #ffe08a; border: 1px solid rgba(245, 183, 0, 0.4); }
.sec-badge.danger { background: rgba(248, 113, 113, 0.16); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.45); }

.sec-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.sec-kpi {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sec-kpi span { font-size: 12px; color: var(--text-faint); }
.sec-kpi b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--text); }
.sec-kpi.warn { border-color: rgba(245, 183, 0, 0.35); background: rgba(245, 183, 0, 0.06); }
.sec-kpi.warn b { color: #ffe08a; }
.sec-kpi.danger { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.07); }
.sec-kpi.danger b { color: #fca5a5; }

.sec-ips { margin-bottom: 14px; }
.sec-ips-title { font-size: 11px; letter-spacing: 0.14em; color: var(--text-faint); text-transform: uppercase; margin-bottom: 8px; }
.sec-ip {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  margin: 0 8px 8px 0;
  border-radius: 9px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.05);
  font-size: 11.5px;
}
.sec-ip b { font-family: var(--mono); font-size: 12.5px; color: #fecaca; }
.sec-ip i { font-style: normal; color: var(--text-faint); }
.sec-ip em { font-style: normal; color: var(--text-faint); font-size: 10.5px; }
.sec-ok { font-size: 12.5px; color: #86efac; }

.sec-row { align-items: center; gap: 10px; }
.sec-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-faint); }
.sec-row.lv-info .sec-dot { background: #60a5fa; }
.sec-row.lv-warn .sec-dot { background: #f5b700; box-shadow: 0 0 8px rgba(245, 183, 0, 0.6); }
.sec-row.lv-danger .sec-dot { background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.7); }
.sec-type { flex: none; font-size: 11.5px; color: var(--text-dim); min-width: 64px; }
.sec-path { font-family: var(--mono); font-size: 11px; color: #fca5a5; background: rgba(248, 113, 113, 0.1); padding: 1px 5px; border-radius: 4px; }
.sec-ip-mini { font-family: var(--mono); font-size: 11px; color: var(--text-faint); min-width: 150px; text-align: right; }

@media (max-width: 900px) {
  .sec-kpis { grid-template-columns: repeat(2, 1fr); }
  .sec-ip-mini { display: none; }
}

.ban-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: #fecaca;
  font-weight: 700;
  vertical-align: 1px;
}

.ip-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--line);
  background: #0d1219;
}

.ip-ban-btn {
  border-color: rgba(248, 113, 113, 0.5) !important;
  color: #fca5a5 !important;
}
.ip-ban-btn:hover {
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.8) !important;
}

/* IP 标红与画像弹窗 */
.ip-cell { white-space: nowrap; }
.ip-btn {
  font-family: var(--mono);
  font-size: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
}
.ip-btn:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.ip-btn.risky { color: #fca5a5; border-bottom-color: rgba(248, 113, 113, 0.5); }
.ip-btn.risky:hover { color: #fecaca; }

.risk-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
  vertical-align: 1px;
}
.risk-tag.big { font-size: 11.5px; padding: 2px 8px; margin-left: 10px; }
.row-risk td { background: rgba(248, 113, 113, 0.045); }
.row-risk:hover td { background: rgba(248, 113, 113, 0.08); }

.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-mask { position: absolute; inset: 0; background: rgba(3, 6, 10, 0.72); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #0d1219;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.ip-head { margin-bottom: 16px; padding-right: 34px; }
.ip-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ip-title code { font-family: var(--mono); font-size: 19px; font-weight: 800; color: #fff; }
.ip-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

.ip-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.ip-stats > div {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.ip-stats span { display: block; font-size: 11.5px; color: var(--text-faint); }
.ip-stats b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ip-stats b.bad { color: #fca5a5; }

.ip-times { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-faint); margin-bottom: 14px; }

.ip-timeline { display: grid; gap: 6px; max-height: 44vh; overflow: auto; padding-right: 4px; }
.ip-row {
  display: grid;
  grid-template-columns: 128px 84px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}
.ip-row-time { color: var(--text-faint); font-family: var(--mono); font-size: 11px; }
.ip-row-badge { font-size: 11px; color: var(--text-dim); text-align: center; border-radius: 4px; padding: 1px 0; }
.ip-row-badge.bad { color: #fca5a5; background: rgba(248, 113, 113, 0.12); }
.ip-row-main { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
.ip-row-main code { font-family: var(--mono); color: var(--text); font-size: 11.5px; }
.ip-row-main i { font-style: normal; display: block; color: var(--text-faint); font-size: 11px; }
.ip-row.event.lv-warn { border-left: 2px solid rgba(245, 183, 0, 0.6); }
.ip-row.event.lv-danger { border-left: 2px solid rgba(248, 113, 113, 0.8); }

@media (max-width: 700px) {
  .ip-stats { grid-template-columns: repeat(2, 1fr); }
  .ip-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 18px; }
}

.visits-table { min-width: 820px; }
.visits-table thead th {
  position: static !important;
  top: auto !important;
  background: #0f141b;
  backdrop-filter: none;
}
.visits-table td { font-size: 12.5px; }
.visits-table tbody tr:first-child td { border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dist-grid { grid-template-columns: 1fr; }
  .trend { height: 130px; gap: 4px; }
  .bar-row { grid-template-columns: 84px 1fr 74px; }
}

/* ------------------------------- 统计条 ------------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-cell {
  background: var(--bg);
  padding: 22px 20px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stat-value .unit { font-size: 13px; font-weight: 600; color: var(--text-faint); margin-left: 4px; }

/* ------------------------------- 面板 ------------------------------- */

.section { padding: 46px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-title { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: 0.01em; }
.section-desc { font-size: 13px; color: var(--text-faint); margin: 4px 0 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* --------------------------- 排行榜布局 --------------------------- */

.board-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.side-panel { padding: 8px; position: sticky; top: 84px; }

.side-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 12px 8px;
  font-weight: 700;
}

.side-list { display: flex; flex-direction: column; gap: 2px; }

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.side-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.side-item.is-active {
  background: rgba(245, 183, 0, 0.10);
  border-color: rgba(245, 183, 0, 0.35);
  color: #ffe08a;
  font-weight: 700;
}

.side-item .count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.side-item.is-active .count { color: #e7c96a; }

.side-sep { height: 1px; background: var(--line); margin: 8px 6px; }

/* ------------------------------ 表格 ------------------------------ */

.board-panel { overflow: hidden; }

.board-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.board-title { font-size: 20px; font-weight: 900; margin: 0; letter-spacing: -0.01em; }
.board-sub { font-size: 12.5px; color: var(--text-faint); margin: 3px 0 0; }

.board-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  min-width: 200px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
}

.search-box input::placeholder { color: var(--text-faint); }
.search-box svg { flex: none; opacity: 0.55; }

.rank-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.rank-table thead th {
  position: sticky;
  top: 64px;
  z-index: 5;
  background: rgba(13, 16, 22, 0.96);
  backdrop-filter: blur(8px);
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.rank-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

.rank-table tbody tr { transition: background 0.14s; }
.rank-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.rank-table tbody tr:last-child td { border-bottom: 0; }

.col-rank { width: 76px; }
.col-points { width: 92px; }
.col-grades { width: auto; }

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 27px;
  padding: 0 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
}

.rank-medal.top1 { background: linear-gradient(160deg, #ffd166, #e0a100); color: #241a00; box-shadow: 0 4px 16px rgba(245, 183, 0, 0.3); }
.rank-medal.top2 { background: linear-gradient(160deg, #e2e8f0, #a8b3c2); color: #1a1f27; }
.rank-medal.top3 { background: linear-gradient(160deg, #f0b27a, #c97b3d); color: #241400; }

.points-cell {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: #ffe9a3;
}

.player-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  color: #06080b;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.player-meta { min-width: 0; }
.player-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-tag { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); }

.grades-row { display: flex; flex-wrap: wrap; gap: 7px; }

.grade-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 42px;
}

.op-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #06080b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  flex: none;
}

/* 干员头像版本 */
.op-dot-img {
  background: #0d1117;
  overflow: hidden;
  box-shadow: none;
}
.op-dot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ------------------------------ 等级徽章 ------------------------------ */

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 25px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0a0c10;
  background: #98a2b3;
  font-variant-numeric: tabular-nums;
}

.grade-badge[data-grade="S+"] { background: #ffd166; }
.grade-badge[data-grade="S"]  { background: #f7b32b; }
.grade-badge[data-grade="A+"] { background: #74e0a1; }
.grade-badge[data-grade="A"]  { background: #4ade80; }
.grade-badge[data-grade="A-"] { background: #34d399; }
.grade-badge[data-grade="B+"] { background: #7dd3fc; }
.grade-badge[data-grade="B"]  { background: #60a5fa; }
.grade-badge[data-grade="B-"] { background: #93c5fd; }
.grade-badge[data-grade="C+"] { background: #fcd34d; }
.grade-badge[data-grade="C"]  { background: #fbbf24; }
.grade-badge[data-grade="C-"] { background: #f59e0b; }
.grade-badge[data-grade="D+"] { background: #cbd5e1; }
.grade-badge[data-grade="D"]  { background: #b6c2cf; }
.grade-badge[data-grade="D-"] { background: #9aa5b1; }

.grade-badge.lg { min-width: 52px; height: 34px; font-size: 15px; border-radius: 9px; }

/* ---------------------------- 空状态 / 加载 ---------------------------- */

.empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--text-faint);
}

.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 22px;
}

.empty-title { color: var(--text-dim); font-weight: 700; margin-bottom: 6px; }
.empty-desc { font-size: 13px; }

.skeleton-row { height: 44px; border-radius: 9px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin: 10px 16px; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ------------------------------ 选手页 ------------------------------ */

.player-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  flex-wrap: wrap;
}

.player-hero .avatar { width: 68px; height: 68px; border-radius: 18px; font-size: 26px; }
.player-hero h1 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -0.01em; }
.player-hero .tag { color: var(--text-faint); font-family: var(--mono); font-size: 13px; }
.player-hero .bio { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; max-width: 560px; }

.player-badges { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.player-badge-label { font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.06em; }
.player-badge-value { font-size: 25px; font-weight: 900; color: #ffe9a3; font-variant-numeric: tabular-nums; }

.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 12px; }

.op-card { padding: 16px; display: flex; gap: 13px; align-items: flex-start; }
.op-card .op-dot { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; flex: none; }
.op-card .op-dot-img { border-radius: 50%; }
.op-card-name { font-weight: 800; font-size: 15px; }
.op-card-sub {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-card .grade-badge { margin-left: auto; flex: none; }

.score-bars { margin-top: 10px; display: grid; gap: 5px; }
.score-bar { display: grid; grid-template-columns: 52px 1fr 42px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text-faint); }
.score-bar > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.score-track { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.score-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0891b2, var(--cyan)); }

/* ------------------------------ 后台 ------------------------------ */

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }

.input, .select, textarea.input {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
  width: 100%;
}

textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 64px; }

.input:focus, .select:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2398a2b3' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.select option { background: #11151c; color: var(--text); }

.grade-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}

.grade-preview .total { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.grade-preview .hint { font-size: 12px; color: var(--text-faint); }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 11px;
  background: #0f141b;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}

.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(74, 222, 128, 0.45); }
.toast.err { border-color: rgba(248, 113, 113, 0.5); }

.tabs { display: flex; gap: 6px; padding: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 11px; }
.tab { padding: 8px 15px; border-radius: 8px; border: 0; background: transparent; color: var(--text-dim); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tab.is-active { background: rgba(34, 211, 238, 0.13); color: #a5f3fc; }

/* 待签发队列 */
.tab-badge {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: #f5b700;
  color: #1a1206;
  font-size: 10.5px;
  font-weight: 900;
  text-align: center;
  vertical-align: 1px;
}
.pending-panel {
  padding: 18px;
  margin-bottom: 16px;
  border-color: rgba(245, 183, 0, 0.32);
  background: linear-gradient(180deg, rgba(245, 183, 0, 0.05), rgba(255, 255, 255, 0.012));
}
.pending-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(245, 183, 0, 0.16);
  border: 1px solid rgba(245, 183, 0, 0.4);
  color: #ffe08a;
  font-size: 12px;
  font-weight: 900;
  vertical-align: 2px;
}
.pending-meta { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.mini-list { display: grid; gap: 6px; }
.mini-list.scroll { max-height: 620px; overflow-y: auto; padding-right: 4px; }
.mini-list.scroll::-webkit-scrollbar { width: 6px; }
.mini-list.scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 3px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: rgba(255,255,255,0.03); font-size: 13.5px; }
.mini-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------ 页脚 ------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--text-faint);
  font-size: 12.5px;
}

.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--cyan); }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 900px) {
  .board-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .side-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; gap: 6px; }
  .side-list .side-title { display: none; }
  .side-item { white-space: nowrap; width: auto; }
  .side-sep { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .rank-table thead th { top: 0; }
  .board-panel { overflow-x: auto; }
  .rank-table { min-width: 640px; }
}

.scroll-hint { display: none; }

@media (max-width: 640px) {
  .scroll-hint {
    display: block;
    padding: 8px 16px;
    font-size: 11.5px;
    color: var(--text-faint);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
  }
  .container { padding-left: 14px; padding-right: 14px; }
  .header-inner { height: 58px; gap: 8px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
  .nav { gap: 2px; }
  .nav-link { padding: 7px 9px; font-size: 13px; }
  .nav-link.hide-sm { display: none; }
  .header-cta { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
  .header-cta .cta-extra { display: none; }
  .hero { padding: 52px 0 46px; }
  .hero-actions .btn { width: 100%; }
  .col-points { width: 72px; }
  .col-rank { width: 58px; }
  .rank-table tbody td, .rank-table thead th { padding-left: 12px; padding-right: 12px; }
  .grade-chip { min-width: 36px; }
  .grade-chip .op-dot { width: 22px; height: 22px; font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .player-badges { margin-left: 0; }
  .op-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   首页下半区氛围升级（2026-11-18）
   目的：上半屏很亮，下半屏死黑，这里补光 + 卡片质感
   ============================================================ */

main { position: relative; isolation: isolate; }

/* 大面积柔光：让主内容区不再是纯黑 */
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 8% 2%, rgba(34, 211, 238, 0.20), transparent 60%),
    radial-gradient(1000px 620px at 96% 18%, rgba(245, 183, 0, 0.14), transparent 62%),
    radial-gradient(900px 600px at 30% 62%, rgba(56, 189, 248, 0.10), transparent 68%),
    radial-gradient(1000px 640px at 50% 104%, rgba(124, 58, 237, 0.10), transparent 70%),
    linear-gradient(180deg, #070b11 0%, #080d14 42%, #06090e 100%);
}

/* 极淡网格，只在视觉中心若隐若现 */
main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 72% 42% at 50% 26%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 42% at 50% 26%, #000 18%, transparent 76%);
  opacity: 0.6;
}

/* 区块之间的渐变分隔线 */
.section, .flow { position: relative; }

/* 一条斜向光带，呼应首屏的 1v1 分割线 */
.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg,
    transparent 34%,
    rgba(34, 211, 238, 0.055) 47%,
    rgba(245, 183, 0, 0.045) 53%,
    transparent 66%);
}

.section + .section::before,
.flow + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 92%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.10) 18%,
    rgba(34, 211, 238, 0.30) 50%,
    rgba(255, 255, 255, 0.10) 82%,
    transparent);
}

/* 流程卡：玻璃质感 + 渐变描边 + 悬浮 */
.flow-step {
  padding: 26px 24px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.012) 62%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.flow-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg,
    rgba(34, 211, 238, 0.55),
    rgba(34, 211, 238, 0) 42%,
    rgba(245, 183, 0, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.flow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(34, 211, 238, 0.10);
}

.flow-num {
  font-size: 13px;
  font-weight: 800;
  color: #67e8f9;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.flow-step h3 { margin: 12px 0 8px; }

/* 前三卡片：按名次给不同描边光 */
.op-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012) 66%);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.op-card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42); }
.op-card:has(.rank-medal.top1) { border-color: rgba(245, 183, 0, 0.36); box-shadow: 0 18px 44px rgba(245, 183, 0, 0.13); }
.op-card:has(.rank-medal.top2) { border-color: rgba(203, 213, 225, 0.26); }
.op-card:has(.rank-medal.top3) { border-color: rgba(251, 146, 60, 0.30); }

/* 最新定级面板 */
.section .panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)); }

/* 底部 CTA 面板：双色氛围 */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(34, 211, 238, 0.22);
  background:
    radial-gradient(560px 220px at 6% 0%, rgba(34, 211, 238, 0.18), transparent 68%),
    radial-gradient(520px 240px at 94% 100%, rgba(245, 183, 0, 0.13), transparent 70%),
    linear-gradient(120deg, rgba(10, 16, 22, 0.92), rgba(12, 20, 28, 0.92));
}

/* 窄屏收敛 */
@media (max-width: 900px) {
  main::after { opacity: 0.35; }
  .flow-step { padding: 22px 20px; }
}

/* ============================================================
   2026-11-18 第二轮：提亮基础色 + 统一竖向节奏 + 移动端导航
   ============================================================ */

:root {
  --bg: #131c27;
  --bg-soft: #18222f;
  --panel: rgba(32, 43, 57, 0.86);
  --panel-solid: #1d2836;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #eaf0f8;
  --text-dim: #a3aebd;
  --text-faint: #74808f;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 560px at 12% -8%, rgba(34, 211, 238, 0.13), transparent 70%),
    radial-gradient(900px 520px at 96% 0%, rgba(245, 183, 0, 0.09), transparent 70%),
    linear-gradient(180deg, #1a2533 0%, #151f2b 50%, #101821 100%);
}

/* 页头 / 页脚跟着提亮 */
.site-header { background: rgba(13, 20, 28, 0.82); }
.site-footer { background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(0, 0, 0, 0.12)); }

/* 面板整体抬一档，避免大片纯黑 */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.03));
  border-color: var(--line);
}

/* 主内容区的环境光再亮一点 */
main::before {
  background:
    radial-gradient(1300px 720px at 8% 2%, rgba(34, 211, 238, 0.20), transparent 62%),
    radial-gradient(1100px 640px at 96% 16%, rgba(245, 183, 0, 0.14), transparent 64%),
    radial-gradient(900px 600px at 32% 58%, rgba(56, 189, 248, 0.09), transparent 68%),
    radial-gradient(1000px 640px at 50% 104%, rgba(124, 58, 237, 0.09), transparent 72%),
    linear-gradient(180deg, #18222f 0%, #131c27 45%, #0f1620 100%);
}

/* ---------- 统一竖向节奏 ---------- */
.section { padding: 56px 0 38px; }
.section + .section { padding-top: 38px; }
.flow { padding: 64px 0 26px; }
.section .section-head { margin-bottom: 20px; }

/* ---------- 移动端导航：横滑，不再被挤掉 ---------- */
@media (max-width: 780px) {
  .header-inner { height: 58px; gap: 10px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 7px 10px; font-size: 13px; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .section { padding: 42px 0 28px; }
  .flow { padding: 46px 0 20px; }
}

/* 面板不透明度：避免背景光斑透过表格 */
.panel {
  background: linear-gradient(180deg, rgba(40, 52, 67, 0.94), rgba(28, 37, 49, 0.96));
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

/* 表格行也压暗一点，防止光带干扰阅读 */
.rank-table tbody tr { background: rgba(20, 27, 36, 0.55); }
.rank-table tbody tr:hover { background: rgba(34, 45, 59, 0.72); }

/* 移动端音乐按钮小一点，少挡内容 */
@media (max-width: 780px) {
  .bgm-toggle { width: 46px; height: 46px; opacity: 0.82; }
}

/* ============================================================
   2026-11-18 第三轮：品牌改名 + logo + 擂主卡/前三强重做
   ============================================================ */

/* ---------- 品牌 logo ---------- */
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: block;
}

/* ---------- 首屏标题后缀 ---------- */
.duel-title-tail {
  display: inline-block;
  font-style: normal;
  font-size: 0.28em;
  letter-spacing: 0.34em;
  vertical-align: 0.62em;
  margin-left: 0.3em;
  color: rgba(232, 237, 245, 0.72);
  font-weight: 800;
}

/* ---------- 擂主卡（重做） ---------- */
.duel-champ {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.champ-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: radial-gradient(130% 120% at 18% 0%, rgba(245, 183, 0, 0.20), rgba(14, 19, 26, 0.94) 58%);
  border: 1px solid rgba(245, 183, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 183, 0, 0.12) inset, 0 26px 70px rgba(245, 183, 0, 0.16),
    0 30px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.champ-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(245, 183, 0, 0.2) inset, 0 32px 80px rgba(245, 183, 0, 0.22);
}

.champ-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: champShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes champShine {
  0% { left: -60%; }
  55% { left: 120%; }
  100% { left: 120%; }
}

.champ-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.champ-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #ffe08a;
  font-weight: 800;
}

.champ-eyebrow svg {
  color: #ffd166;
  filter: drop-shadow(0 0 6px rgba(245, 183, 0, 0.6));
}

.champ-no {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(245, 183, 0, 0.18);
  border: 1px solid rgba(245, 183, 0, 0.55);
  color: #ffe08a;
  font-weight: 800;
}

.champ-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.champ-avatar .avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 24px;
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.3), 0 10px 30px rgba(245, 183, 0, 0.25);
}

.champ-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.champ-name { font-size: 27px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; }
.champ-sub { font-size: 12px; color: var(--text-faint); }

.champ-score { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }

.champ-score b {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6cf, #f5b700 70%, #d98c00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.champ-score i { font-style: normal; font-size: 11px; letter-spacing: 0.2em; color: var(--text-faint); margin-top: 4px; }

.champ-grades { position: relative; z-index: 1; }

/* ---------- 前三强（重做） ---------- */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  gap: 16px;
  align-items: end;
  padding-top: 18px;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 26px 18px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.podium-card:hover { transform: translateY(-4px); }

.podium-card.rank-1 {
  transform: translateY(-14px);
  padding-top: 40px;
  background: radial-gradient(130% 100% at 50% -10%, rgba(245, 183, 0, 0.28), rgba(16, 22, 30, 0.94) 62%);
  border-color: rgba(245, 183, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 183, 0, 0.18) inset, 0 30px 70px rgba(245, 183, 0, 0.18);
}

.podium-card.rank-1:hover { transform: translateY(-18px); }
.podium-card.rank-2 { border-color: rgba(203, 213, 225, 0.3); }
.podium-card.rank-3 { border-color: rgba(251, 146, 60, 0.32); }

.podium-crown {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a1206;
  background: linear-gradient(160deg, #ffd166, #e0a100);
  box-shadow: 0 6px 22px rgba(245, 183, 0, 0.5);
}

.podium-crown svg { width: 19px; height: 19px; }

.podium-badge {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.rank-1 .podium-badge { background: rgba(245, 183, 0, 0.2); color: #ffe08a; border: 1px solid rgba(245, 183, 0, 0.5); }
.rank-2 .podium-badge { background: rgba(203, 213, 225, 0.14); color: #e2e8f0; }
.rank-3 .podium-badge { background: rgba(251, 146, 60, 0.16); color: #fdba74; }

.podium-avatar { margin-top: 10px; }
.podium-avatar .avatar { width: 54px; height: 54px; border-radius: 16px; font-size: 21px; }
.rank-1 .podium-avatar .avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 28px;
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.35), 0 12px 34px rgba(245, 183, 0, 0.3);
}

.podium-name { font-size: 19px; font-weight: 900; margin-top: 6px; }
.rank-1 .podium-name { font-size: 24px; }
.podium-sub { font-size: 11.5px; color: var(--text-faint); }

.podium-points { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.podium-points b { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rank-1 .podium-points b {
  font-size: 46px;
  background: linear-gradient(180deg, #fff6cf, #f5b700);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.podium-points i { font-style: normal; font-size: 11px; color: var(--text-faint); }

.podium-grades { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }

@media (max-width: 900px) {
  .podium-grid { grid-template-columns: 1fr; padding-top: 8px; }
  .podium-card.rank-1 { transform: none; order: -1; }
  .podium-card.rank-1:hover { transform: translateY(-3px); }
  .champ-score b { font-size: 40px; }
  .champ-name { font-size: 23px; }
}



/* 标题后缀收紧，避免压到 VS */
.duel-title { font-size: clamp(44px, 7vw, 84px); }
.duel-title-tail { font-size: 0.24em; letter-spacing: 0.26em; vertical-align: 0.7em; margin-left: 0.18em; }

/* 前三卡加一层大号名次水印，填掉空白 */
.podium-card::after {
  content: attr(data-rank);
  position: absolute;
  right: 16px;
  bottom: 4px;
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.podium-card.rank-1::after { color: rgba(245, 183, 0, 0.14); font-size: 92px; }


/* ============================================================
   评分明细卡（2026-11-18）
   ============================================================ */

.score-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tone, #22d3ee);
  border-radius: 16px;
  padding: 18px 20px 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  animation: scoreIn 0.45s ease both;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.score-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(160px 110px at 0% 0%, var(--tone, #22d3ee), transparent 72%);
  opacity: 0.16;
}

.score-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.score-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-op { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 800; }

.score-total { margin-left: auto; display: flex; align-items: baseline; gap: 5px; }

.score-total b {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--tone, #22d3ee);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px var(--tone, #22d3ee);
}

.score-total i { font-style: normal; font-size: 12px; color: var(--text-faint); }

.score-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
  margin-top: 16px;
}

.score-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: pipIn 0.38s ease forwards;
}

.score-label { font-size: 12.5px; color: var(--text-dim); }
.score-pips { display: flex; gap: 3px; }

.pip {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.075);
  transition: background 0.2s ease;
}

.pip.on {
  background: var(--tone, #22d3ee);
  box-shadow: 0 0 9px var(--tone, #22d3ee);
  opacity: 0.92;
}

.score-num { text-align: right; font-size: 12px; white-space: nowrap; }
.score-num b { font-size: 14px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.score-num i { font-style: normal; font-size: 11px; color: var(--text-faint); }
.score-item.is-full .score-num b { color: var(--tone, #22d3ee); }

.score-note {
  position: relative;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}

@keyframes scoreIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes pipIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .score-grid { grid-template-columns: 1fr; gap: 8px; }
  .score-total b { font-size: 26px; }
}


/* 评分卡可读性微调 */
.pip { height: 10px; border-radius: 3px; }
.pip.on { opacity: 1; box-shadow: 0 0 11px var(--tone, #22d3ee), 0 0 2px rgba(255, 255, 255, 0.4) inset; }
.score-total b { color: #ffffff; text-shadow: 0 0 26px var(--tone, #22d3ee); }
.score-total b::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--tone, #22d3ee);
  box-shadow: 0 0 12px var(--tone, #22d3ee);
  opacity: 0.9;
}
.score-num i { margin-left: 2px; }
.score-item:hover .score-label { color: #fff; }


/* 环形总分 */
.score-ring {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--tone, #22d3ee) var(--pct, 0%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #141c26;
}
.score-ring b {
  position: relative;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px var(--tone, #22d3ee);
  font-variant-numeric: tabular-nums;
}
.score-ring i {
  position: absolute;
  bottom: 12px;
  font-style: normal;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.score-head { gap: 14px; }
.score-total, .score-total b::after { display: none !important; }


/* 环形总分靠右，跟等级徽章并排 */
.score-ring {
  margin-left: auto;
  width: 84px;
  height: 84px;
}
.score-ring b { font-size: 26px; }
.score-ring i { bottom: 14px; }
.score-head .grade-badge { margin-left: 12px; }
.score-num { width: auto; min-width: 52px; }
.score-num i { margin-left: 3px; }
.score-item { grid-template-columns: 52px minmax(0, 1fr) 52px; }


/* 页脚免责声明 */
.footer-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--text-faint);
}
.footer-note b { color: var(--text-dim); font-weight: 700; }

/* ============================================================
   证书 v2（2026-11-18）：更有仪式感 + 作废状态更专业
   ============================================================ */

.cert-v2 .cert-frame {
  padding: 34px 42px 30px;
  border: 1px solid rgba(216, 180, 90, 0.55);
  background:
    radial-gradient(900px 460px at 12% -6%, rgba(216, 180, 90, 0.16), transparent 62%),
    radial-gradient(760px 420px at 96% 104%, rgba(34, 211, 238, 0.10), transparent 66%),
    linear-gradient(158deg, #0c1017 0%, #080b11 52%, #0b0e15 100%);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(216, 180, 90, 0.10);
}

/* 金色双线内框 */
.cert-v2 .cert-frame::after {
  inset: 14px;
  border: 1px solid rgba(216, 180, 90, 0.4);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.35), inset 0 0 0 5px rgba(216, 180, 90, 0.14);
}

/* 防伪波纹 */
.cert-guilloche {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-radial-gradient(circle at 50% 120%, rgba(216, 180, 90, 0.06) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 10px);
}

.cert-v2 .cert-head { z-index: 2; align-items: center; }

.cert-v2 .cert-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: 0.1em;
}
.cert-v2 .cert-brand img { width: 26px; height: 26px; border-radius: 7px; }

.cert-v2 .cert-no {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cert-v2 .cert-no b { font-size: 15px; letter-spacing: 0.1em; }

/* 标题区 */
.cert-v2 .cert-hero {
  position: relative;
  text-align: center;
  margin-top: 18px;
  z-index: 2;
}

.cert-v2 .cert-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: rgba(216, 180, 90, 0.72);
  text-transform: uppercase;
}

.cert-v2 .cert-title {
  margin: 8px 0 6px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #fff6d8 0%, #f3d99b 42%, #c99a3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 44px rgba(216, 180, 90, 0.28);
}

.cert-v2 .cert-note {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(238, 242, 248, 0.42);
}

/* 主体：左人右等级 */
.cert-v2 .cert-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 22px;
}

.cert-v2 .cert-person { flex: 1; min-width: 0; }

.cert-v2 .cert-label {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: rgba(238, 242, 248, 0.35);
  text-transform: uppercase;
}

.cert-v2 .cert-name {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.cert-v2 .cert-op { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cert-v2 .cert-op-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(238, 242, 248, 0.4);
  border: 1px solid rgba(238, 242, 248, 0.16);
  border-radius: 4px;
  padding: 2px 6px;
}
.cert-v2 .cert-op img { width: 30px; height: 30px; border-radius: 9px; }
.cert-v2 .cert-op > span:last-child { font-size: 19px; font-weight: 800; color: var(--gold-2); }

.cert-v2 .cert-rank {
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(238, 242, 248, 0.5);
  letter-spacing: 0.06em;
}
.cert-v2 .cert-rank b { color: var(--gold-2); font-size: 14px; }

/* 等级大字 */
.cert-v2 .cert-gradebox { text-align: center; flex: none; padding-right: 8px; }

.cert-v2 .cert-grade {
  font-size: 108px;
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(170deg, #fff8e0 0%, #f3d99b 40%, #c4922f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(216, 180, 90, 0.4));
}

.cert-v2 .cert-total {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(238, 242, 248, 0.45);
}
.cert-v2 .cert-total b { color: var(--gold-2); font-size: 15px; letter-spacing: 0; }

/* 六项分 */
.cert-v2 .cert-scores {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 24px;
  padding: 14px 18px;
  border-top: 1px solid rgba(216, 180, 90, 0.22);
  border-bottom: 1px solid rgba(216, 180, 90, 0.22);
  background: linear-gradient(180deg, rgba(216, 180, 90, 0.05), transparent);
}

.cert-v2 .cs { text-align: center; }
.cert-v2 .cs span { display: block; font-size: 10px; letter-spacing: 0.12em; color: rgba(238, 242, 248, 0.42); }
.cert-v2 .cs b {
  display: block;
  margin-top: 3px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cert-v2 .cs b i { font-style: normal; font-size: 11px; color: rgba(238, 242, 248, 0.35); margin-left: 2px; }
.cert-v2 .cs em {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cert-v2 .cs em u { display: block; height: 100%; background: linear-gradient(90deg, #c4922f, #f3d99b); }

/* 页脚 */
.cert-v2 .cert-foot {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.cert-v2 .cert-sign { flex: 1; }
.cert-v2 .cert-sign-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: rgba(238, 242, 248, 0.55);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.cert-v2 .cert-sign-line span { font-size: 9.5px; letter-spacing: 0.22em; color: rgba(238, 242, 248, 0.35); }
.cert-v2 .cert-sign-line b { color: #fff; font-size: 15px; letter-spacing: 0.02em; }

.cert-v2 .cert-seal { flex: none; }

.cert-v2 .seal-ring {
  width: 96px;
  height: 96px;
  border: 2px solid rgba(216, 180, 90, 0.85);
  background: radial-gradient(circle at 50% 30%, rgba(216, 180, 90, 0.18), transparent 70%);
  box-shadow: inset 0 0 0 4px rgba(216, 180, 90, 0.14), 0 0 26px rgba(216, 180, 90, 0.28);
}
.cert-v2 .seal-ring b { font-size: 17px; }

.cert-v2 .cert-verify {
  flex: 1;
  text-align: right;
  font-size: 10px;
  line-height: 1.9;
  color: rgba(238, 242, 248, 0.4);
}
.cert-v2 .cert-verify code { font-size: 10.5px; }

/* ================= 作废状态 ================= */
.cert-v2.is-revoked .cert-frame {
  filter: grayscale(0.92) brightness(0.62);
  border-color: rgba(248, 113, 113, 0.45);
}

.cert-v2.is-revoked .cert-grade {
  background: linear-gradient(170deg, #e5e7eb, #9ca3af 60%, #6b7280);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}

/* 斜向作废印章 */
.cert-void {
  position: absolute;
  right: -46px;
  top: 58px;
  transform: rotate(-18deg);
  width: 300px;
  text-align: center;
  padding: 8px 0;
  border-top: 4px solid rgba(248, 113, 113, 0.85);
  border-bottom: 4px solid rgba(248, 113, 113, 0.85);
  background: rgba(20, 8, 10, 0.55);
  z-index: 4;
}
.cert-void span {
  display: block;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.4em;
  color: rgba(248, 113, 113, 0.95);
  text-indent: 0.4em;
}
.cert-void em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: rgba(248, 113, 113, 0.75);
  margin-top: 2px;
}

.cert-void-note {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 26px;
  z-index: 4;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

@media print {
  .cert-v2 .cert-frame { box-shadow: none; }
  .cert-void { background: rgba(255, 255, 255, 0.7); }
}

@media (max-width: 900px) {
  .cert-v2 .cert-title { font-size: 26px; letter-spacing: 0.1em; }
  .cert-v2 .cert-name { font-size: 32px; }
  .cert-v2 .cert-grade { font-size: 68px; }
  .cert-v2 .cert-scores { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cert-v2 .cert-foot { flex-wrap: wrap; }
  .cert-void { right: -70px; top: 40px; width: 240px; }
  .cert-void span { font-size: 26px; }
}



/* 六项分的进度条居中、轨道可见 */
.cert-v2 .cs em {
  width: 64%;
  margin: 7px auto 0;
  background: rgba(255, 255, 255, 0.14);
}
.cert-v2 .cs em u { background: linear-gradient(90deg, #c4922f, #ffe9a3); }


/* 作废印章位置下移，避免压住证书编号 */
.cert-void {
  top: 148px;
  right: -58px;
  width: 280px;
  transform: rotate(-16deg);
  pointer-events: none;
}


/* 证书二维码 */
.cert-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.cert-qr img {
  width: 78px;
  height: 78px;
  padding: 5px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.cert-qr span {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(238, 242, 248, 0.4);
}
.cert-v2 .cert-verify { display: flex; flex-direction: column; align-items: flex-end; }
.cert-v2.is-revoked .cert-qr img { filter: grayscale(1) opacity(0.5); }

/* ============================================================
   证书 v3（2026-11-18）：极简高端版
   去掉分数明细、排名，只保留：品牌 / 编号 / 持证人 / 干员 / 等级 / 考官 / 日期 / 钢印 / 二维码
   ============================================================ */

.cert-v3 .cert-frame {
  padding: 46px 54px 38px;
  border: 1px solid rgba(216, 180, 90, 0.42);
  border-radius: 10px;
  background:
    radial-gradient(1000px 520px at 14% -10%, rgba(216, 180, 90, 0.13), transparent 60%),
    radial-gradient(820px 460px at 100% 108%, rgba(34, 211, 238, 0.08), transparent 62%),
    linear-gradient(160deg, #0b0f15 0%, #07090e 55%, #0a0d13 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(216, 180, 90, 0.08);
}

/* 细金线内框，靠内 18px */
.cert-v3 .cert-frame::after {
  inset: 18px;
  border: 1px solid rgba(216, 180, 90, 0.26);
  box-shadow: none;
}

.cert-v3 .cert-frame::before { display: none; }

/* 极淡的斜纹纸感 */
.cert-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.014) 0 1px,
    transparent 1px 14px
  );
}

/* 顶部一道金色细线，像烫金压边 */
.cert-hairline {
  position: absolute;
  left: 54px;
  right: 54px;
  top: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.55) 18%, rgba(216, 180, 90, 0.55) 82%, transparent);
}

.cert-v3 .cert-watermark {
  right: -10px;
  bottom: -46px;
  font-size: 168px;
  color: rgba(255, 255, 255, 0.022);
  letter-spacing: -0.05em;
}

/* 页眉 */
.cert-v3 .cert-head {
  position: relative;
  z-index: 2;
  align-items: center;
  margin-top: 14px;
}

.cert-v3 .cert-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: rgba(238, 242, 248, 0.82);
}
.cert-v3 .cert-brand img { width: 24px; height: 24px; border-radius: 6px; }
.cert-v3 .cert-brand i { font-style: normal; color: var(--gold); }

.cert-v3 .cert-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(238, 242, 248, 0.35);
}
.cert-v3 .cert-no b { color: rgba(216, 180, 90, 0.85); font-weight: 700; margin-left: 6px; }

/* 标题区 */
.cert-v3 .cert-hero {
  position: relative;
  z-index: 2;
  margin-top: 54px;
}

.cert-v3 .cert-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: rgba(216, 180, 90, 0.62);
  text-transform: uppercase;
}

.cert-v3 .cert-title {
  margin: 12px 0 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: #f4efe4;
  text-indent: 0.42em;
}

/* 主体 */
.cert-v3 .cert-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 56px;
}

.cert-v3 .cert-person { min-width: 0; }

.cert-v3 .cert-label {
  font-size: 9px;
  letter-spacing: 0.36em;
  color: rgba(238, 242, 248, 0.3);
  text-transform: uppercase;
}

.cert-v3 .cert-name {
  margin-top: 10px;
  font-size: 62px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.cert-v3 .cert-op {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}
.cert-v3 .cert-op-tag {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(238, 242, 248, 0.34);
}
.cert-v3 .cert-op img { width: 26px; height: 26px; border-radius: 8px; }
.cert-v3 .cert-op > span:last-child {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(243, 217, 155, 0.95);
}

/* 等级：整张证书的主角 */
.cert-v3 .cert-grade-wrap { text-align: right; flex: none; }

.cert-v3 .cert-grade {
  font-size: 158px;
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(168deg, #fffdf5 0%, #f3d99b 38%, #c4922f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 44px rgba(216, 180, 90, 0.35));
}

.cert-v3 .cert-grade-label {
  margin-top: 14px;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  color: rgba(216, 180, 90, 0.55);
  text-transform: uppercase;
}

/* 页脚 */
.cert-v3 .cert-foot {
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 180, 90, 0.16);
}

.cert-v3 .cert-sign { flex: 1; }
.cert-v3 .cert-sign-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(238, 242, 248, 0.5);
}
.cert-v3 .cert-sign-line span {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(238, 242, 248, 0.28);
}
.cert-v3 .cert-sign-line b { color: #ffffff; font-weight: 700; letter-spacing: 0.04em; }

.cert-v3 .cert-seal { flex: none; }
.cert-v3 .seal-ring {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(216, 180, 90, 0.55);
  box-shadow: inset 0 0 0 3px rgba(216, 180, 90, 0.1), 0 0 30px rgba(216, 180, 90, 0.12);
  background: radial-gradient(circle at 50% 30%, rgba(216, 180, 90, 0.12), transparent 72%);
}
.cert-v3 .seal-ring b { font-size: 15px; letter-spacing: 0.14em; }

.cert-v3 .cert-verify { flex: none; }
.cert-v3 .cert-qr img {
  width: 72px;
  height: 72px;
  padding: 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.cert-v3 .cert-qr span { font-size: 8px; letter-spacing: 0.3em; color: rgba(238, 242, 248, 0.32); }

/* 作废 */
.cert-v3.is-revoked .cert-frame {
  filter: grayscale(0.95) brightness(0.6);
  border-color: rgba(248, 113, 113, 0.32);
}
.cert-v3.is-revoked .cert-grade {
  background: linear-gradient(170deg, #e5e7eb, #9ca3af 62%, #6b7280);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}
.cert-v3 .cert-void {
  top: 170px;
  right: -52px;
  width: 300px;
}
.cert-v3 .cert-void span { font-size: 38px; }

@media print {
  .cert-v3 .cert-frame { box-shadow: none; }
}

@media (max-width: 900px) {
  .cert-v3 .cert-frame { padding: 30px 26px 26px; }
  .cert-v3 .cert-hero { margin-top: 30px; }
  .cert-v3 .cert-title { font-size: 24px; letter-spacing: 0.26em; text-indent: 0.26em; }
  .cert-v3 .cert-core { margin-top: 30px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .cert-v3 .cert-name { font-size: 38px; }
  .cert-v3 .cert-grade-wrap { text-align: left; }
  .cert-v3 .cert-grade { font-size: 96px; }
  .cert-v3 .cert-foot {
    position: static;
    margin-top: 28px;
    left: auto;
    right: auto;
    bottom: auto;
    flex-wrap: wrap;
  }
  .cert-v3 .cert-hairline { left: 26px; right: 26px; top: 20px; }
}



/* ---------- v3 布局修正：整张卡纵向分配，避免空洞 ---------- */
.cert-v3 .cert-frame {
  display: flex;
  flex-direction: column;
  padding: 44px 56px 36px;
}

.cert-v3 .cert-hairline { left: 56px; right: 56px; top: 28px; }

.cert-v3 .cert-hero {
  margin-top: 46px;
  text-align: center;
}

.cert-v3 .cert-eyebrow {
  text-align: center;
}

.cert-v3 .cert-title {
  margin: 14px 0 0;
  text-align: center;
  text-indent: 0;
  font-size: 30px;
  letter-spacing: 0.5em;
  color: #f3eee2;
}

.cert-v3 .cert-core {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 26px;
  padding: 10px 0;
}

.cert-v3 .cert-name { font-size: 56px; }

.cert-v3 .cert-grade { font-size: 136px; }

.cert-v3 .cert-foot {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 180, 90, 0.16);
}

.cert-v3 .cert-sign { flex: 1; }

.cert-v3 .cert-seal { margin-left: auto; margin-right: 28px; }
.cert-v3 .cert-verify { flex: none; }


/* v3 细节：中间竖向金线分隔 + 水印更淡 */
.cert-v3 .cert-core { position: relative; }
.cert-v3 .cert-core::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translateY(-50%);
  width: 1px;
  height: 62%;
  background: linear-gradient(180deg, transparent, rgba(216, 180, 90, 0.28), transparent);
}
.cert-v3 .cert-watermark { color: rgba(255, 255, 255, 0.018); }
.cert-v3 .cert-grade-wrap { padding-left: 40px; }
.cert-v3 .cert-seal { margin-right: 22px; }


/* v3 作废状态：印章居中斜盖，原因条放在页脚上方 */
.cert-v3 .cert-void {
  top: 400px;
  left: 50%;
  right: auto;
  width: 340px;
  transform: translate(-50%, -50%) rotate(-14deg);
  border-top-width: 3px;
  border-bottom-width: 3px;
}
.cert-v3 .cert-void span { font-size: 34px; letter-spacing: 0.5em; }
.cert-v3 .cert-void-note {
  top: auto;
  bottom: 104px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  padding: 7px 18px;
}


/* 作废时只灰化内容，保留印章的红色 */
.cert-v3.is-revoked .cert-frame { filter: none !important; }
.cert-v3.is-revoked .cert-head,
.cert-v3.is-revoked .cert-hero,
.cert-v3.is-revoked .cert-core,
.cert-v3.is-revoked .cert-foot,
.cert-v3.is-revoked .cert-watermark { filter: grayscale(0.92) brightness(0.7); }
.cert-v3.is-revoked .cert-void { filter: none; opacity: 0.92; }

/* ============================================================
   证书 v4（2026-11-18）：奖章构图
   中间用等级徽章 + 持证人撑满，四周放射金线，底部信息栏
   ============================================================ */

.cert-v4 .cert-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 46px 30px;
  border: 1px solid rgba(216, 180, 90, 0.5);
  border-radius: 6px;
  background:
    radial-gradient(760px 420px at 50% 42%, rgba(216, 180, 90, 0.14), transparent 66%),
    radial-gradient(900px 500px at 12% -8%, rgba(34, 211, 238, 0.08), transparent 60%),
    linear-gradient(165deg, #0b0f16 0%, #070a10 52%, #0a0d13 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(216, 180, 90, 0.08);
  overflow: hidden;
}

/* 双线内框 */
.cert-v4 .cert-frame::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(216, 180, 90, 0.22);
  border-radius: 3px;
  pointer-events: none;
}

/* 四角花饰 */
.cert-v4 .cert-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0;
  z-index: 3;
  opacity: 1;
}
.cert-v4 .cert-corner::before,
.cert-v4 .cert-corner::after {
  content: "";
  position: absolute;
  background: rgba(216, 180, 90, 0.65);
}
.cert-v4 .cert-corner::before { width: 34px; height: 1px; }
.cert-v4 .cert-corner::after { width: 1px; height: 34px; }
.cert-v4 .cert-corner.tl { left: 22px; top: 22px; }
.cert-v4 .cert-corner.tl::before { left: 0; top: 0; }
.cert-v4 .cert-corner.tl::after { left: 0; top: 0; }
.cert-v4 .cert-corner.tr { right: 22px; top: 22px; }
.cert-v4 .cert-corner.tr::before { right: 0; top: 0; }
.cert-v4 .cert-corner.tr::after { right: 0; top: 0; }
.cert-v4 .cert-corner.bl { left: 22px; bottom: 22px; }
.cert-v4 .cert-corner.bl::before { left: 0; bottom: 0; }
.cert-v4 .cert-corner.bl::after { left: 0; bottom: 0; }
.cert-v4 .cert-corner.br { right: 22px; bottom: 22px; }
.cert-v4 .cert-corner.br::before { right: 0; bottom: 0; }
.cert-v4 .cert-corner.br::after { right: 0; bottom: 0; }

/* 中央放射光 */
.cert-rays {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 1200px;
  height: 1200px;
  margin-left: -600px;
  margin-top: -600px;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(216, 180, 90, 0.055) 0deg 0.6deg,
    transparent 0.6deg 7deg
  );
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 12%, #000 34%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 12%, #000 34%, transparent 68%);
}

.cert-v4 .cert-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 15px);
}

.cert-v4 .cert-watermark {
  right: -6px;
  bottom: -48px;
  font-size: 150px;
  color: rgba(255, 255, 255, 0.02);
}

/* 页眉 */
.cert-v4 .cert-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cert-v4 .cert-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(238, 242, 248, 0.8);
}
.cert-v4 .cert-brand img { width: 22px; height: 22px; border-radius: 6px; }
.cert-v4 .cert-brand i { font-style: normal; color: var(--gold); }
.cert-v4 .cert-no {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(238, 242, 248, 0.32);
}
.cert-v4 .cert-no b { color: rgba(216, 180, 90, 0.85); margin-left: 6px; }

/* 标题 */
.cert-v4 .cert-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 26px;
}
.cert-v4 .cert-eyebrow {
  font-size: 9px;
  letter-spacing: 0.44em;
  color: rgba(216, 180, 90, 0.6);
  text-transform: uppercase;
}
.cert-v4 .cert-title {
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: #f5f0e4;
}

/* 奖章 */
.cert-v4 .cert-medal-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 6px;
}

.cert-v4 .cert-medal {
  position: relative;
  width: 214px;
  height: 214px;
  display: grid;
  place-items: center;
}

.cert-medal-ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(216, 180, 90, 0.55) 0deg 0.5deg,
    transparent 0.5deg 6deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%);
  mask-image: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%);
  opacity: 0.9;
}

.cert-v4 .cert-medal-ring {
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(216, 180, 90, 0.62);
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 180, 90, 0.16), transparent 66%),
    linear-gradient(180deg, rgba(20, 26, 34, 0.9), rgba(10, 14, 20, 0.95));
  box-shadow: inset 0 0 0 5px rgba(216, 180, 90, 0.1), 0 0 42px rgba(216, 180, 90, 0.18);
}

.cert-v4 .cert-medal-top,
.cert-v4 .cert-medal-bot {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.34em;
  color: rgba(216, 180, 90, 0.62);
  text-transform: uppercase;
}

.cert-v4 .cert-grade {
  font-size: 84px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(168deg, #fffdf5 0%, #f3d99b 40%, #c4922f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(216, 180, 90, 0.45));
}

/* 持证人 */
.cert-v4 .cert-who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.cert-v4 .cert-name {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.cert-v4 .cert-op {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(216, 180, 90, 0.25);
}
.cert-v4 .cert-op-tag {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(238, 242, 248, 0.3);
}
.cert-v4 .cert-op img { width: 22px; height: 22px; border-radius: 7px; }
.cert-v4 .cert-op > span:last-child {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(243, 217, 155, 0.95);
}

.cert-v4 .cert-statement {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(238, 242, 248, 0.34);
}

/* 页脚 */
.cert-v4 .cert-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 180, 90, 0.16);
}

.cert-v4 .cert-sign-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: rgba(238, 242, 248, 0.5);
}
.cert-v4 .cert-sign-line span {
  font-size: 8.5px;
  letter-spacing: 0.28em;
  color: rgba(238, 242, 248, 0.26);
}
.cert-v4 .cert-sign-line b { color: #fff; font-weight: 700; letter-spacing: 0.04em; }

.cert-v4 .cert-seal { margin: 0 auto; }
.cert-v4 .seal-ring {
  width: 74px;
  height: 74px;
  border: 1px solid rgba(216, 180, 90, 0.55);
  background: radial-gradient(circle at 50% 30%, rgba(216, 180, 90, 0.12), transparent 72%);
  box-shadow: inset 0 0 0 3px rgba(216, 180, 90, 0.1), 0 0 24px rgba(216, 180, 90, 0.12);
}
.cert-v4 .seal-ring span { font-size: 5.6px; letter-spacing: 0.16em; }
.cert-v4 .seal-ring b { font-size: 13px; letter-spacing: 0.12em; }

.cert-v4 .cert-qr img {
  width: 66px;
  height: 66px;
  padding: 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.cert-v4 .cert-qr span { font-size: 7.5px; letter-spacing: 0.26em; color: rgba(238, 242, 248, 0.3); }

/* 作废 */
.cert-v4.is-revoked .cert-frame { filter: none; border-color: rgba(248, 113, 113, 0.32); }
.cert-v4.is-revoked .cert-head,
.cert-v4.is-revoked .cert-hero,
.cert-v4.is-revoked .cert-medal-wrap,
.cert-v4.is-revoked .cert-foot,
.cert-v4.is-revoked .cert-watermark { filter: grayscale(0.93) brightness(0.68); }

.cert-v4.is-revoked .cert-grade {
  background: linear-gradient(170deg, #e5e7eb, #9ca3af 62%, #6b7280);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}

.cert-v4 .cert-void {
  top: 52%;
  left: 50%;
  right: auto;
  width: 330px;
  transform: translate(-50%, -50%) rotate(-13deg);
  z-index: 6;
}
.cert-v4 .cert-void span { font-size: 33px; letter-spacing: 0.46em; }

.cert-v4 .cert-void-note {
  top: auto;
  left: 50%;
  right: auto;
  bottom: 96px;
  transform: translateX(-50%);
  padding: 6px 16px;
  white-space: nowrap;
  z-index: 6;
}

@media print {
  .cert-v4 .cert-frame { box-shadow: none; }
  .cert-rays { opacity: 0.35; }
}

@media (max-width: 900px) {
  .cert-v4 .cert-frame { padding: 24px 22px 22px; }
  .cert-v4 .cert-title { font-size: 22px; letter-spacing: 0.28em; text-indent: 0.28em; }
  .cert-v4 .cert-medal { width: 168px; height: 168px; }
  .cert-v4 .cert-medal-ring { width: 136px; height: 136px; }
  .cert-v4 .cert-grade { font-size: 64px; }
  .cert-v4 .cert-name { font-size: 24px; }
  .cert-v4 .cert-who { flex-direction: column; gap: 8px; }
  .cert-v4 .cert-op { padding-left: 0; border-left: 0; }
  .cert-v4 .cert-foot { flex-wrap: wrap; }
  .cert-v4 .cert-seal { margin: 0; }
}



/* v4 细节：奖章外圈纹理 + 名字更大 */
.cert-v4 .cert-medal::before {
  content: "";
  position: absolute;
  inset: -54px;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(216, 180, 90, 0.12) 0 1px,
    transparent 1px 13px
  );
  -webkit-mask-image: radial-gradient(circle, #000 26%, transparent 74%);
  mask-image: radial-gradient(circle, #000 26%, transparent 74%);
  opacity: 0.65;
}

.cert-v4 .cert-name { font-size: 40px; letter-spacing: 0.08em; }
.cert-v4 .cert-who { margin-top: 22px; }
.cert-v4 .cert-statement { margin-top: 14px; letter-spacing: 0.34em; }

.cert-v4 .cert-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.7), transparent);
}

/* ============================================================
   证书 v4 等级配色（2026-11-18）
   金 / 铂 / 铜 / 钢 四套，证书整体跟着等级换色
   ============================================================ */

/* 默认（钢） */
.cert-v4 {
  --cert-a: #a9bccd;
  --cert-b: #6b7f93;
  --cert-glow: rgba(169, 188, 205, 0.22);
}

.cert-v4.tier-gold {
  --cert-a: #ffe9a3;
  --cert-b: #b8860b;
  --cert-glow: rgba(216, 180, 90, 0.3);
}

.cert-v4.tier-platinum {
  --cert-a: #f1f5fb;
  --cert-b: #8fa1b5;
  --cert-glow: rgba(203, 213, 225, 0.26);
}

.cert-v4.tier-bronze {
  --cert-a: #f0c39a;
  --cert-b: #a9683f;
  --cert-glow: rgba(217, 154, 108, 0.26);
}

.cert-v4.tier-steel {
  --cert-a: #cfdae6;
  --cert-b: #6b7f93;
  --cert-glow: rgba(159, 179, 200, 0.22);
}

/* 外框与背景光跟着等级 */
.cert-v4 .cert-frame {
  border-color: color-mix(in srgb, var(--cert-a) 42%, transparent);
  background:
    radial-gradient(760px 420px at 50% 42%, var(--cert-glow), transparent 66%),
    radial-gradient(900px 500px at 12% -8%, rgba(34, 211, 238, 0.07), transparent 60%),
    linear-gradient(165deg, #0b0f16 0%, #070a10 52%, #0a0d13 100%);
}

.cert-v4 .cert-frame::after {
  border-color: color-mix(in srgb, var(--cert-a) 20%, transparent);
}

/* 四角花饰 / 标题线 */
.cert-v4 .cert-corner::before,
.cert-v4 .cert-corner::after { background: color-mix(in srgb, var(--cert-a) 62%, transparent); }

.cert-v4 .cert-title::after {
  background: linear-gradient(90deg, transparent, var(--cert-a), transparent);
}

/* 放射光 */
.cert-rays {
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    color-mix(in srgb, var(--cert-a) 6%, transparent) 0deg 0.6deg,
    transparent 0.6deg 7deg
  );
}

/* 奖章刻度 + 圆环 */
.cert-medal-ticks {
  background: repeating-conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--cert-a) 58%, transparent) 0deg 0.5deg,
    transparent 0.5deg 6deg
  );
}

.cert-v4 .cert-medal-ring {
  border-color: color-mix(in srgb, var(--cert-a) 55%, transparent);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--cert-a) 16%, transparent), transparent 66%),
    linear-gradient(180deg, rgba(20, 26, 34, 0.92), rgba(10, 14, 20, 0.96));
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--cert-a) 9%, transparent), 0 0 46px var(--cert-glow);
}

.cert-v4 .cert-medal-top,
.cert-v4 .cert-medal-bot { color: color-mix(in srgb, var(--cert-a) 62%, transparent); }

/* 等级大字 */
.cert-v4 .cert-grade {
  background: linear-gradient(168deg, #ffffff 0%, var(--cert-a) 42%, var(--cert-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px var(--cert-glow));
}

/* 干员名、段位标签 */
.cert-v4 .cert-op > span:last-child { color: color-mix(in srgb, var(--cert-a) 92%, white); }

.cert-v4 .cert-tier {
  margin-top: 14px;
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: color-mix(in srgb, var(--cert-a) 85%, white);
  border: 1px solid color-mix(in srgb, var(--cert-a) 38%, transparent);
  background: color-mix(in srgb, var(--cert-a) 8%, transparent);
}

.cert-v4 .cert-next {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(238, 242, 248, 0.42);
}
.cert-v4 .cert-next.is-top { color: color-mix(in srgb, var(--cert-a) 80%, white); }

/* 页脚分隔线、钢印 */
.cert-v4 .cert-foot { border-top-color: color-mix(in srgb, var(--cert-a) 18%, transparent); }

.cert-v4 .seal-ring {
  border-color: color-mix(in srgb, var(--cert-a) 52%, transparent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--cert-a) 10%, transparent), 0 0 26px var(--cert-glow);
}
.cert-v4 .seal-ring b { color: color-mix(in srgb, var(--cert-a) 90%, white); }

/* 作废时统一灰掉 */
.cert-v4.is-revoked .cert-frame { border-color: rgba(248, 113, 113, 0.3); }
.cert-v4.is-revoked .cert-tier,
.cert-v4.is-revoked .cert-next { color: rgba(238, 242, 248, 0.35); border-color: rgba(238, 242, 248, 0.12); }



/* 关于页的联系卡片 */
.contact-card {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13.5px;
}
.contact-row span {
  width: 46px;
  flex: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}
.contact-row a { color: var(--cyan); }
.contact-row a:hover { text-decoration: underline; }


/* 法律/说明类页面 */
.legal-page {
  padding-top: 34px;
  padding-bottom: 64px;
  max-width: 900px;
}
.rule-list {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-dim);
}
.rule-list li { margin: 6px 0; }
.rule-list b { color: var(--text); font-weight: 700; }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.doc-card {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.doc-card:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.35); }
.doc-card b { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 4px; }
.doc-card span { font-size: 12px; color: var(--text-faint); }

/* ============================================================
   2026-11-18：新页面样式（报名 / 干员图鉴 / 公告 / 选手 / 证书墙 / FAQ）
   ============================================================ */

/* 报名：干员多选 */
.op-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.op-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px 8px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-dim);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}
.op-chip img { width: 24px; height: 24px; border-radius: 7px; }
.op-chip:hover { border-color: rgba(34, 211, 238, 0.4); color: var(--text); }
.op-chip.on {
  border-color: rgba(34, 211, 238, 0.7);
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
  transform: translateY(-1px);
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }

/* 干员图鉴 */
.op-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.op-doc {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.op-doc-head { display: flex; align-items: center; gap: 12px; }
.op-doc-head img { width: 42px; height: 42px; border-radius: 12px; }
.op-doc-head b { display: block; font-size: 16px; font-weight: 800; }
.op-doc-head span { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.op-doc-body { display: grid; gap: 6px; }
.op-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}
.op-top:hover { background: rgba(255, 255, 255, 0.07); }
.op-top-no {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.op-top:first-child .op-top-no { background: rgba(245, 183, 0, 0.2); color: #ffe08a; }
.op-top-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-doc-link { font-size: 12.5px; color: var(--cyan); margin-top: auto; }
.op-doc-link:hover { text-decoration: underline; }

/* 公告 */
.news-item {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(34, 211, 238, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  margin-bottom: 10px;
}
.news-item.is-warn { border-left-color: rgba(245, 183, 0, 0.75); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 11.5px; }
.news-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #a5f3fc;
  font-size: 10.5px;
}
.news-item.is-warn .news-tag {
  background: rgba(245, 183, 0, 0.14);
  border-color: rgba(245, 183, 0, 0.4);
  color: #ffe08a;
}
.news-time { color: var(--text-faint); font-family: var(--mono); }
.news-text { font-size: 14px; line-height: 1.8; color: var(--text); }

/* 全部选手 */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.player-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.player-cell:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-1px);
}
.player-cell.is-unranked { opacity: 0.6; }
.player-cell .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.player-cell-main { flex: 1; min-width: 0; }
.player-cell-main b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-cell-tag { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.player-cell-right { text-align: right; white-space: nowrap; }
.player-pts { font-size: 17px; font-weight: 900; color: #ffe9a3; }
.player-cell-right i { font-style: normal; font-size: 10.5px; color: var(--text-faint); margin-left: 2px; }
.player-none { font-size: 11.5px; color: var(--text-faint); }

/* 证书墙 */
.cert-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cert-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cert-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.cert-tile.tier-gold { border-color: rgba(216, 180, 90, 0.4); }
.cert-tile.tier-platinum { border-color: rgba(203, 213, 225, 0.3); }
.cert-tile.tier-bronze { border-color: rgba(217, 154, 108, 0.32); }
.cert-tile.tier-steel { border-color: rgba(159, 179, 200, 0.26); }
.cert-tile-top { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); }
.cert-tile-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cert-tile-name { font-size: 19px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert-tile-grade {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #fff6cf, #d8b45a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cert-tile.tier-platinum .cert-tile-grade { background: linear-gradient(180deg, #ffffff, #9fb0c4); -webkit-background-clip: text; background-clip: text; }
.cert-tile.tier-bronze .cert-tile-grade { background: linear-gradient(180deg, #ffe3c9, #c07a4c); -webkit-background-clip: text; background-clip: text; }
.cert-tile.tier-steel .cert-tile-grade { background: linear-gradient(180deg, #eef3f8, #7f93a8); -webkit-background-clip: text; background-clip: text; }
.cert-tile-op { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.cert-tile-op img { width: 20px; height: 20px; border-radius: 6px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; color: var(--cyan); margin-right: 10px; font-weight: 700; }
.faq[open] summary::before { content: "－"; }
.faq p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.85; color: var(--text-dim); }

@media (max-width: 640px) {
  .op-doc-grid, .cert-wall, .player-grid { grid-template-columns: 1fr; }
}



/* 后台报名队列 */
.apply-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
}
.apply-status {
  flex: none;
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-faint);
}
.apply-status.info { color: #a5f3fc; border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.1); }
.apply-status.warn { color: #ffe08a; border-color: rgba(245, 183, 0, 0.4); background: rgba(245, 183, 0, 0.12); }
.apply-status.ok { color: #86efac; border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.1); }
.apply-status.danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.1); }
.apply-meta { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.apply-ops { display: block; font-size: 11.5px; color: var(--cyan); margin-top: 2px; }
.apply-note { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.apply-actions { display: flex; gap: 6px; flex: none; }


/* 导航红点（有新报名时） */
.nav-link { position: relative; }
.nav-dot {
  position: absolute;
  top: 6px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.9);
  animation: navDotPulse 1.6s ease-in-out infinite;
}
@keyframes navDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

/* 移动端：grid 子项允许收缩，避免表格把整页撑宽 */
.board-layout > *, .admin-grid > *, .dist-grid > *, .kpi-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .board-layout { grid-template-columns: minmax(0, 1fr); }
  .board-panel { min-width: 0; max-width: 100%; }
  .page-main, main.container { overflow-x: hidden; }
}


/* S 级进度提示（后台录入页） */
.s-progress {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 183, 0, 0.28);
  background: rgba(245, 183, 0, 0.06);
}
.s-progress-title {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #ffe08a;
  margin-bottom: 5px;
}
.s-progress-body { font-size: 13px; color: var(--text-dim); }


/* ============================================================
   权威感背景（回退版）：深海军蓝 + 细网格 + 黄铜线 + 左右剪影
   ============================================================ */

:root {
  --brass: #c9a968;
  --brass-dim: rgba(201, 169, 104, 0.4);
  --steel: #6d8ba3;
}

body {
  background-color: #06080c;
  background-image:
    linear-gradient(180deg, rgba(6, 8, 12, 0) 0%, rgba(6, 8, 12, 0.5) 40%, #06080c 76%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 58px),
    radial-gradient(1200px 640px at 50% -12%, rgba(109, 139, 163, 0.16), transparent 70%),
    radial-gradient(760px 460px at 6% 2%, rgba(201, 169, 104, 0.08), transparent 72%),
    radial-gradient(700px 420px at 96% 4%, rgba(201, 169, 104, 0.06), transparent 72%),
    linear-gradient(180deg, #0a1017 0%, #070a0f 55%, #05070a 100%);
  background-attachment: fixed;
}

/* 首屏左右：降低霓虹感 */
.duel-left {
  background:
    radial-gradient(640px 460px at 16% 10%, rgba(109, 139, 163, 0.18), transparent 72%),
    linear-gradient(120deg, #0a1620 0%, #06090d 64%);
}

.duel-right {
  background:
    radial-gradient(640px 460px at 86% 84%, rgba(201, 169, 104, 0.14), transparent 72%),
    linear-gradient(300deg, #1b1610 0%, #06090d 64%);
}

/* 顶部黄铜细线 */
.duel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 4;
  background: linear-gradient(
    90deg,
    rgba(201, 169, 104, 0) 0%,
    rgba(201, 169, 104, 0.45) 22%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(201, 169, 104, 0.45) 78%,
    rgba(201, 169, 104, 0) 100%
  );
}

/* 左右剪影 */
.duel-figure {
  position: absolute;
  bottom: -8%;
  height: 122%;
  width: auto;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 46%, rgba(0, 0, 0, 0.4) 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 46%, rgba(0, 0, 0, 0.4) 84%, transparent 100%);
}

.duel-figure-left {
  left: -6%;
  color: #6d8ba3;
  filter: drop-shadow(0 0 70px rgba(109, 139, 163, 0.45));
}

.duel-figure-right {
  right: -6%;
  color: #c9a968;
  transform: scaleX(-1);
  filter: drop-shadow(0 0 70px rgba(201, 169, 104, 0.35));
}

/* 区块标题上的黄铜短线 */
.section-title {
  position: relative;
  padding-top: 12px;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brass), rgba(201, 169, 104, 0));
}

/* 页脚上方的黄铜分隔 */
.site-footer {
  border-top: 1px solid rgba(201, 169, 104, 0.16);
}

@media (max-width: 900px) {
  .duel-figure { height: 82%; opacity: 0.22; bottom: 0; }
  .duel-figure-left { left: -18%; }
  .duel-figure-right { right: -18%; }
}


/* ============================================================
   方案 B：暖炭黑 + 徽记水印（更接近“认证机构/档案”气质）
   ============================================================ */

body {
  background-color: #070707;
  background-image:
    linear-gradient(180deg, rgba(7, 7, 7, 0) 0%, rgba(7, 7, 7, 0.6) 42%, #070707 80%),
    repeating-linear-gradient(0deg, rgba(255, 244, 224, 0.022) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255, 244, 224, 0.022) 0 1px, transparent 1px 64px),
    radial-gradient(1100px 640px at 50% -14%, rgba(201, 169, 104, 0.13), transparent 70%),
    radial-gradient(800px 500px at 8% 4%, rgba(201, 169, 104, 0.07), transparent 70%),
    linear-gradient(180deg, #12100c 0%, #0a0a0a 52%, #060606 100%);
}

/* 首屏：左右都往暖灰靠，减少“蓝” */
.duel {
  background: #080807;
}

.duel-left {
  background:
    radial-gradient(680px 480px at 14% 12%, rgba(201, 169, 104, 0.12), transparent 72%),
    linear-gradient(120deg, #17140f 0%, #080807 66%);
}

.duel-right {
  background:
    radial-gradient(680px 480px at 88% 86%, rgba(201, 169, 104, 0.16), transparent 72%),
    linear-gradient(300deg, #1d1710 0%, #080807 66%);
}

/* 徽记水印 */
.duel-mark {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(560px, 56vw);
  height: auto;
  opacity: 0.055;
  filter: grayscale(1) sepia(1) saturate(2.2) brightness(1.6);
  pointer-events: none;
  z-index: 1;
}

/* VS 徽章加一圈黄铜，收得更正式 */
.duel-vs {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 0 5px rgba(8, 8, 7, 0.92),
    0 0 0 6px rgba(201, 169, 104, 0.5),
    0 18px 46px rgba(0, 0, 0, 0.6);
}

/* 标题下的说明线：更像文件抬头 */
.duel-sub {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid rgba(201, 169, 104, 0.5);
}

/* 面板描边统一暖一点 */
.panel,
.board-panel,
.side-panel {
  border-color: rgba(201, 169, 104, 0.14);
}

/* 表头 */
.rank-table thead th {
  color: rgba(214, 197, 168, 0.75);
  border-bottom: 1px solid rgba(201, 169, 104, 0.2);
}

@media (max-width: 900px) {
  .duel-mark { width: 76vw; opacity: 0.045; }
}

/* 方案 B：把面板与底色统一成暖色系 */
:root {
  --bg: #070707;
  --bg-soft: #0d0c0a;
  --panel: rgba(21, 19, 16, 0.82);
  --panel-solid: #15130f;
  --line: rgba(255, 244, 224, 0.09);
  --line-strong: rgba(255, 244, 224, 0.16);
}

/* ============================================================
   首屏人物：照片感暗部（柔和、低照度、带颗粒）
   ============================================================ */

.duel-figure {
  position: absolute;
  bottom: -14%;
  height: 138%;
  width: auto;
  opacity: 0.85;
  pointer-events: none;
  filter: blur(1.2px) contrast(1.05);
  mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, 0.5) 76%, transparent 98%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, 0.5) 76%, transparent 98%);
  will-change: transform;
}

.duel-figure-left {
  left: -14%;
  color: #7f93a6;
  animation: shadowBreathL 14s ease-in-out infinite;
}

.duel-figure-right {
  right: -14%;
  color: #c9a968;
  transform: scaleX(-1);
  animation: shadowBreathR 17s ease-in-out infinite;
}

@keyframes shadowBreathL {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, -8px, 0) scale(1.015); }
}

@keyframes shadowBreathR {
  0%, 100% { transform: scaleX(-1) translate3d(0, 0, 0) scale(1); }
  50% { transform: scaleX(-1) translate3d(-8px, -6px, 0) scale(1.012); }
}

/* 首屏整体压一层极细颗粒，模拟胶片/低照度照片 */
.duel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.35'/></svg>");
  mix-blend-mode: overlay;
}

@media (max-width: 900px) {
  .duel-figure { height: 96%; opacity: 0.55; bottom: -6%; }
  .duel-figure-left { left: -26%; }
  .duel-figure-right { right: -26%; }
  .duel::after { opacity: 0.22; }
}

@media (prefers-reduced-motion: reduce) {
  .duel-figure-left, .duel-figure-right { animation: none; }
}

/* 双剑：重新定位与角度，交叉于中央 VS */
.duel-blade {
  position: absolute;
  top: 50%;
  width: min(50vw, 720px);
  height: auto;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.duel-blade-left {
  left: 1%;
  color: #b9c9d6;
  transform: translateY(-50%) rotate(-19deg);
  transform-origin: left center;
}

.duel-blade-right {
  right: 1%;
  color: #e0c48c;
  transform: translateY(-50%) rotate(19deg) scaleX(-1);
  transform-origin: right center;
}

@media (max-width: 900px) {
  .duel-blade { width: 96vw; opacity: 0.55; }
  .duel-blade-left { left: -22%; }
  .duel-blade-right { right: -22%; }
}


/* 双剑：从左右下方刺向中央 VS，形成 X 形对峙 */
.duel-blade {
  position: absolute;
  top: 70%;
  width: min(44vw, 640px);
  height: auto;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

.duel-blade-left {
  left: 7%;
  color: #c3d2df;
  transform: translateY(-50%) rotate(-21deg);
  transform-origin: left center;
  filter: drop-shadow(0 0 22px rgba(140, 170, 195, 0.35));
}

.duel-blade-right {
  right: 7%;
  color: #e3c78f;
  transform: translateY(-50%) rotate(-21deg) scaleX(-1);
  transform-origin: right center;
  filter: drop-shadow(0 0 22px rgba(201, 169, 104, 0.35));
}

@media (max-width: 900px) {
  .duel-blade { width: 78vw; top: 78%; opacity: 0.45; }
  .duel-blade-left { left: -18%; }
  .duel-blade-right { right: -18%; }
}


/* 双剑 X 形：剑柄在下方两角，剑尖交于中央 VS */
.duel-inner {
  position: relative;
  z-index: 3;
}

.duel-blade {
  position: absolute;
  top: 96%;
  width: min(52vw, 760px);
  height: auto;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}

.duel-blade-left {
  left: 4%;
  color: #cbd9e6;
  transform: translateY(-50%) rotate(-36deg);
  transform-origin: left center;
  filter: drop-shadow(0 0 24px rgba(140, 170, 195, 0.3));
}

.duel-blade-right {
  right: 4%;
  color: #e6cb95;
  transform: translateY(-50%) rotate(36deg) scaleX(-1);
  transform-origin: right center;
  filter: drop-shadow(0 0 24px rgba(201, 169, 104, 0.3));
}

@media (max-width: 900px) {
  .duel-blade { width: 86vw; opacity: 0.4; top: 104%; }
  .duel-blade-left { left: -16%; }
  .duel-blade-right { right: -16%; }
}


/* 双剑 X：左剑指右上，右剑（镜像）指左上，剑尖交于 VS */
.duel-blade {
  position: absolute;
  top: 96%;
  width: min(52vw, 760px);
  height: auto;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.duel-blade-left {
  left: 3%;
  color: #cfdde9;
  transform: translateY(-50%) rotate(-36deg);
  transform-origin: left center;
  filter: drop-shadow(0 0 26px rgba(140, 170, 195, 0.35));
}

.duel-blade-right {
  right: 3%;
  color: #eed4a2;
  transform: translateY(-50%) rotate(36deg);
  transform-origin: right center;
  filter: drop-shadow(0 0 26px rgba(201, 169, 104, 0.35));
}

@media (max-width: 900px) {
  .duel-blade { width: 84vw; opacity: 0.42; top: 104%; }
  .duel-blade-left { left: -14%; }
  .duel-blade-right { right: -14%; }
}


/* 交锋处的高光 */
.duel-vs {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 0 5px rgba(8, 8, 7, 0.92),
    0 0 0 6px rgba(201, 169, 104, 0.5),
    0 0 90px rgba(255, 240, 205, 0.45),
    0 0 160px rgba(255, 220, 160, 0.22);
}

/* ============================================================
   首屏铺满一屏 + 动效
   ============================================================ */

.duel {
  display: flex;
  align-items: center;
  overflow: hidden;
  --scroll: 0;
}

.duel-inner { width: 100%; }

/* 双剑缓慢呼吸（交锋感） */
@keyframes bladeBreatheL {
  0%, 100% { transform: translateY(-50%) rotate(-36deg); }
  50% { transform: translateY(calc(-50% - 5px)) rotate(-34.6deg); }
}

@keyframes bladeBreatheR {
  0%, 100% { transform: translateY(-50%) rotate(36deg); }
  50% { transform: translateY(calc(-50% + 5px)) rotate(37.4deg); }
}

.duel-blade-left { animation: bladeBreatheL 11s ease-in-out infinite; }
.duel-blade-right { animation: bladeBreatheR 13s ease-in-out infinite; }

/* VS 徽章脉冲光 */
@keyframes vsPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 0 0 5px rgba(8,8,7,.92),
                          0 0 0 6px rgba(201,169,104,.5), 0 0 70px rgba(255,240,205,.35); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 0 0 5px rgba(8,8,7,.92),
                     0 0 0 6px rgba(201,169,104,.7), 0 0 120px rgba(255,240,205,.55); }
}

.duel-vs { animation: vsPulse 4s ease-in-out infinite; }

/* 缓慢扫过的高光带 */
.duel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 210, 0.045), transparent);
  transform: skewX(-14deg);
  animation: duelSweep 16s ease-in-out infinite;
}

@keyframes duelSweep {
  0%, 70% { left: -40%; }
  100% { left: 120%; }
}

/* 滚动提示 */
.duel-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(200, 214, 226, 0.55);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.duel-scroll em {
  font-style: normal;
  font-size: 15px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

.duel.is-scrolled .duel-scroll { opacity: 0; }

/* 滚动时内容轻微上浮淡出 */
.duel.is-scrolled .duel-inner {
  transform: translateY(calc(var(--scroll) * -26px));
  opacity: clamp(0.25, calc(1 - var(--scroll) * 0.9), 1);
  transition: transform 0.15s linear, opacity 0.15s linear;
}

@media (max-width: 900px) {
  .duel-scroll { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .duel-blade-left, .duel-blade-right, .duel-vs, .duel::before, .duel-scroll em { animation: none; }
  .duel.is-scrolled .duel-inner { transform: none; opacity: 1; }
}

/* 双剑角度下调，交叉点对齐 VS；阵营标签贴近内容 */
@keyframes bladeBreatheL2 {
  0%, 100% { transform: translateY(-50%) rotate(-22deg); }
  50% { transform: translateY(calc(-50% - 6px)) rotate(-20.6deg); }
}

@keyframes bladeBreatheR2 {
  0%, 100% { transform: translateY(-50%) rotate(22deg); }
  50% { transform: translateY(calc(-50% + 6px)) rotate(23.4deg); }
}

.duel-blade {
  width: min(49vw, 700px);
  opacity: 0.92;
}

.duel-blade-left {
  left: 2%;
  transform: translateY(-50%) rotate(-22deg);
  animation: bladeBreatheL2 11s ease-in-out infinite;
}

.duel-blade-right {
  right: 2%;
  transform: translateY(-50%) rotate(22deg);
  animation: bladeBreatheR2 13s ease-in-out infinite;
}

.duel-tag-left { top: 30%; }
.duel-tag-right { bottom: 26%; }

@media (max-width: 900px) {
  .duel-blade { width: 88vw; opacity: 0.5; }
  .duel-tag-left, .duel-tag-right { display: none; }
}


/* 收尾微调：交叉点抬到 VS 高度，隐藏冲突的左上标签 */
@keyframes bladeBreatheL3 {
  0%, 100% { transform: translateY(-50%) rotate(-26deg); }
  50% { transform: translateY(calc(-50% - 6px)) rotate(-24.6deg); }
}
@keyframes bladeBreatheR3 {
  0%, 100% { transform: translateY(-50%) rotate(26deg); }
  50% { transform: translateY(calc(-50% + 6px)) rotate(27.4deg); }
}
.duel-blade-left {
  transform: translateY(-50%) rotate(-26deg);
  animation: bladeBreatheL3 11s ease-in-out infinite;
}
.duel-blade-right {
  transform: translateY(-50%) rotate(26deg);
  animation: bladeBreatheR3 13s ease-in-out infinite;
}
.duel-tag-left { display: none; }
/* ============================================================
   全站背景与表面系统：纸质档案 + 墨黑 + 黄铜
   （只改颜色与层次，不动布局）
   ============================================================ */

:root {
  --bg: #07070a;
  --bg-soft: #0c0c10;
  --panel: rgba(24, 22, 19, 0.9);
  --panel-solid: #181613;
  --line: rgba(230, 214, 184, 0.1);
  --line-strong: rgba(230, 214, 184, 0.2);
  --brass: #c9a968;
  --silver: #c4ced8;
  --bronze: #c08c60;
}

body {
  background-color: #07070a;
  background-image:
    /* 顶部黄铜暖光 */
    radial-gradient(1200px 700px at 50% -18%, rgba(201, 169, 104, 0.1), transparent 70%),
    /* 往下渐隐 */
    linear-gradient(180deg, rgba(7, 7, 10, 0) 0%, rgba(7, 7, 10, 0.55) 52%, #07070a 100%),
    /* 竖向发丝线：像册页/档案纸 */
    repeating-linear-gradient(90deg, rgba(230, 214, 184, 0.022) 0 1px, transparent 1px 96px),
    /* 底色 */
    linear-gradient(180deg, #0b0a0c 0%, #07070a 58%, #050506 100%);
  background-attachment: fixed;
}

/* 每个大区块之间加一条发丝分隔线，形成“分节”结构 */
main > section {
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1220px, 92%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 214, 184, 0.22), transparent);
}

/* 面板与卡片：暖炭黑表面 + 发丝描边 + 顶部高光 */
.panel,
.board-panel,
.side-panel,
.flow-step,
.op-card,
.player-cell,
.news-item,
.apply-row,
.mini-row {
  background: linear-gradient(180deg, rgba(30, 28, 24, 0.9), rgba(17, 16, 14, 0.94));
  border-color: rgba(230, 214, 184, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 246, 228, 0.05) inset,
    0 18px 44px rgba(0, 0, 0, 0.42);
}

/* 冠亚季：金 / 银 / 铜 */
.podium-card.rank-1 {
  background: radial-gradient(130% 100% at 50% -10%, rgba(201, 169, 104, 0.3), rgba(20, 18, 15, 0.96) 62%);
  border-color: rgba(201, 169, 104, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 169, 104, 0.2) inset, 0 30px 70px rgba(201, 169, 104, 0.18);
}

.podium-card.rank-2 {
  border-color: rgba(196, 206, 216, 0.42);
  background: linear-gradient(180deg, rgba(196, 206, 216, 0.1), rgba(17, 16, 14, 0.95) 62%);
}

.podium-card.rank-3 {
  border-color: rgba(192, 140, 96, 0.42);
  background: linear-gradient(180deg, rgba(192, 140, 96, 0.1), rgba(17, 16, 14, 0.95) 62%);
}

/* 亚军/季军标签配色 */
.podium-card.rank-2 .podium-badge { background: rgba(196, 206, 216, 0.18); color: #dfe7ef; }
.podium-card.rank-3 .podium-badge { background: rgba(192, 140, 96, 0.2); color: #f0cdb4; }

/* 最新定级记录：行间发丝线 */
.mini-row + .mini-row,
.recent-list > * + * {
  border-top: 1px solid rgba(230, 214, 184, 0.07);
}

/* 区块标题下的细线，收束视觉 */
.section-head {
  border-bottom: 1px solid rgba(230, 214, 184, 0.1);
  padding-bottom: 14px;
}

/* 侧栏（干员筛）与表头统一暖灰 */
.side-item.is-active {
  background: linear-gradient(180deg, rgba(201, 169, 104, 0.16), rgba(201, 169, 104, 0.06));
  border-color: rgba(201, 169, 104, 0.4);
}

.rank-table thead th {
  color: rgba(214, 197, 168, 0.78);
  border-bottom: 1px solid rgba(230, 214, 184, 0.16);
}

.rank-table tbody td {
  border-bottom: 1px solid rgba(230, 214, 184, 0.07);
}

/* 页脚 */
.site-footer {
  border-top: 1px solid rgba(230, 214, 184, 0.16);
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.6), rgba(5, 5, 6, 0.9));
}


/* 面板加“档案框”细节：顶部黄铜线 + 四角细标 */
.panel { position: relative; }
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,104,.45), transparent);
}
.panel::after {
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 10px; height: 10px;
  border-top: 1px solid rgba(201,169,104,.4);
  border-left: 1px solid rgba(201,169,104,.4);
  pointer-events: none;
}

/* 区块标题前的编号感 */
.section-head .section-title {
  letter-spacing: 0.02em;
}
/* 提高对比：更黑的底 + 更亮的表面，拉开层次 */
body {
  background-color: #050506;
  background-image:
    radial-gradient(1100px 620px at 50% -16%, rgba(201, 169, 104, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(5, 5, 6, 0), rgba(5, 5, 6, 0.6) 55%, #050506 100%),
    repeating-linear-gradient(90deg, rgba(230, 214, 184, 0.02) 0 1px, transparent 1px 104px),
    linear-gradient(180deg, #0a0909 0%, #060607 55%, #040405 100%);
}

.panel,
.board-panel,
.side-panel {
  background: linear-gradient(180deg, rgba(34, 32, 28, 0.96), rgba(20, 19, 17, 0.97));
  border-color: rgba(230, 214, 184, 0.16);
  box-shadow: 0 1px 0 rgba(255, 246, 228, 0.06) inset, 0 24px 60px rgba(0, 0, 0, 0.55);
}

.flow-step {
  background: linear-gradient(180deg, rgba(34, 32, 28, 0.9), rgba(20, 19, 17, 0.94));
  border-color: rgba(230, 214, 184, 0.14);
}

.mini-row {
  background: rgba(255, 248, 236, 0.028);
  border-color: rgba(230, 214, 184, 0.1);
}

/* 天梯前三：底板抬亮，让三张卡从页面里“浮”起来 */
.podium-card {
  background: linear-gradient(180deg, rgba(36, 33, 28, 0.96), rgba(18, 17, 15, 0.98));
  border-color: rgba(230, 214, 184, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.podium-card.rank-1 {
  background: radial-gradient(130% 100% at 50% -10%, rgba(201, 169, 104, 0.34), rgba(24, 21, 17, 0.98) 64%);
  border-color: rgba(201, 169, 104, 0.6);
  box-shadow: 0 0 0 1px rgba(201, 169, 104, 0.22) inset, 0 34px 80px rgba(201, 169, 104, 0.2);
}
/* ============================================================
   内容区底色：改掉原来的蓝色大面积渐变，换成墨黑 + 黄铜
   （这是页面看起来“蓝黑”的真正来源，不是 body）
   ============================================================ */

main::before {
  background:
    radial-gradient(1200px 700px at 50% -8%, rgba(201, 169, 104, 0.13), transparent 62%),
    radial-gradient(900px 560px at 6% 10%, rgba(201, 169, 104, 0.06), transparent 66%),
    radial-gradient(860px 520px at 96% 22%, rgba(201, 169, 104, 0.05), transparent 66%),
    radial-gradient(1000px 640px at 50% 104%, rgba(120, 92, 48, 0.10), transparent 72%),
    linear-gradient(180deg, #0b0a0b 0%, #08080a 45%, #050506 100%);
}

main::after {
  background-image:
    linear-gradient(rgba(230, 214, 184, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 214, 184, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ============================================================
   开场：两把剑冲进来对撞两次，然后退回静止位置
   ============================================================ */

@keyframes bladeInL {
  0%   { transform: translateY(-50%) translateX(-46%) rotate(-64deg); opacity: 0; }
  18%  { opacity: 1; }
  32%  { transform: translateY(-50%) translateX(-6%) rotate(-14deg); }
  40%  { transform: translateY(-50%) translateX(-13%) rotate(-33deg); }  /* 第一次撞击反弹 */
  54%  { transform: translateY(-50%) translateX(-3%) rotate(-19deg); }
  62%  { transform: translateY(-50%) translateX(-10%) rotate(-31deg); }  /* 第二次撞击反弹 */
  78%  { transform: translateY(-50%) translateX(-2%) rotate(-24deg); }
  100% { transform: translateY(-50%) translateX(0) rotate(-26deg); opacity: 1; }
}

@keyframes bladeInR {
  0%   { transform: translateY(-50%) translateX(46%) rotate(64deg); opacity: 0; }
  18%  { opacity: 1; }
  32%  { transform: translateY(-50%) translateX(6%) rotate(14deg); }
  40%  { transform: translateY(-50%) translateX(13%) rotate(33deg); }
  54%  { transform: translateY(-50%) translateX(3%) rotate(19deg); }
  62%  { transform: translateY(-50%) translateX(10%) rotate(31deg); }
  78%  { transform: translateY(-50%) translateX(2%) rotate(24deg); }
  100% { transform: translateY(-50%) translateX(0) rotate(26deg); opacity: 1; }
}

.duel-blade-left {
  animation:
    bladeInL 2.1s cubic-bezier(0.22, 0.9, 0.24, 1) both,
    bladeBreatheL3 11s ease-in-out 2.1s infinite;
}

.duel-blade-right {
  animation:
    bladeInR 2.1s cubic-bezier(0.22, 0.9, 0.24, 1) both,
    bladeBreatheR3 13s ease-in-out 2.1s infinite;
}

/* 对撞闪光 */
.duel-flash {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 224, 0.85) 0%, rgba(255, 226, 168, 0.28) 38%, transparent 70%);
  opacity: 0;
  animation: clashFlash 2.1s ease-out both;
}

@keyframes clashFlash {
  0%, 26% { opacity: 0; transform: scale(0.35); }
  34% { opacity: 0.95; transform: scale(1); }
  42% { opacity: 0; transform: scale(1.15); }
  56% { opacity: 0; transform: scale(0.35); }
  62% { opacity: 0.6; transform: scale(0.85); }
  70% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; }
}

/* VS 徽章在撞击瞬间弹一下 */
@keyframes vsClashPop {
  0%, 28% { transform: scale(1); }
  34% { transform: scale(1.34); }
  42% { transform: scale(0.94); }
  56% { transform: scale(1); }
  62% { transform: scale(1.18); }
  72% { transform: scale(1); }
  100% { transform: scale(1); }
}

.duel-vs {
  animation:
    vsClashPop 2.1s cubic-bezier(0.3, 0.9, 0.3, 1.2) both,
    vsPulse 4s ease-in-out 2.1s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .duel-blade-left, .duel-blade-right, .duel-flash, .duel-vs { animation: none; }
  .duel-flash { opacity: 0; }
}

/* ============================================================
   三项“顶级感”细节：区块编号 / 名次绶带 / 表格刻度
   ============================================================ */

/* ---------- 1. 区块编号（01 / 02 / 03） ---------- */
main { counter-reset: sec; }
main > section:nth-of-type(n + 2) { counter-increment: sec; }

.section-head .section-title::after {
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  margin-left: 10px;
  padding: 1px 7px;
  border: 1px solid rgba(201, 169, 104, 0.3);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(201, 169, 104, 0.75);
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ---------- 2. 名次绶带 ---------- */
.podium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}

.podium-card.rank-1::before {
  height: 5px;
  left: 0;
  right: 0;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(201, 169, 104, 0) 0%,
    #c9a968 16%,
    #f6e6bd 50%,
    #c9a968 84%,
    rgba(201, 169, 104, 0) 100%
  );
  box-shadow: 0 0 22px rgba(201, 169, 104, 0.55);
}

.podium-card.rank-2::before {
  background: linear-gradient(90deg, rgba(196, 206, 216, 0), #c4ced8 30%, #eef3f8 50%, #c4ced8 70%, rgba(196, 206, 216, 0));
  box-shadow: 0 0 16px rgba(196, 206, 216, 0.35);
}

.podium-card.rank-3::before {
  background: linear-gradient(90deg, rgba(192, 140, 96, 0), #c08c60 30%, #e8c9ac 50%, #c08c60 70%, rgba(192, 140, 96, 0));
  box-shadow: 0 0 16px rgba(192, 140, 96, 0.35);
}

/* 冠军卡背后再加一层金色流光，强化“金带横跨” */
.podium-card.rank-1 {
  position: relative;
  overflow: hidden;
}

.podium-card.rank-1 > * { position: relative; z-index: 1; }

.podium-card.rank-1::after {
  z-index: 0;
}

/* ---------- 3. 数据表：斑马纹 + 排行刻度 ---------- */
.rank-table tbody tr:nth-child(even) {
  background: rgba(255, 246, 228, 0.022);
}

.rank-table tbody tr {
  transition: background 0.18s ease;
}

.rank-table tbody tr:hover {
  background: rgba(201, 169, 104, 0.07);
}

/* 行首刻度：名次越前越亮越长 */
.rank-table tbody td:first-child {
  position: relative;
}

.rank-table tbody td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 14px;
  margin-top: -7px;
  border-radius: 2px;
  background: rgba(201, 169, 104, 0.28);
}

.rank-table tbody tr:nth-child(-n + 3) td:first-child::before {
  height: 22px;
  margin-top: -11px;
  background: linear-gradient(180deg, #f6e6bd, #c9a968);
  box-shadow: 0 0 10px rgba(201, 169, 104, 0.5);
}

.rank-table tbody tr:nth-child(-n + 3) {
  background: rgba(201, 169, 104, 0.035);
}

@media (max-width: 900px) {
  .section-head .section-title::after { font-size: 10px; padding: 0 5px; margin-left: 8px; }
}


/* 绶带加强：冠军更明显的金带 */
.podium-card.rank-1::before {
  height: 7px;
  background: linear-gradient(90deg, rgba(201,169,104,0) 0%, #d8b878 12%, #fff3d0 50%, #d8b878 88%, rgba(201,169,104,0) 100%);
  box-shadow: 0 2px 26px rgba(201, 169, 104, 0.75), 0 0 60px rgba(201, 169, 104, 0.35);
}

.podium-card.rank-2::before,
.podium-card.rank-3::before {
  height: 5px;
}

/* 碰撞火花画布 */
.duel-sparks {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}


/* 访问统计：世界地图面板 */
.geo-panel { overflow: hidden; }

.geo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.geo-canvas-wrap {
  position: relative;
  min-width: 0;
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(201, 169, 104, 0.06), transparent 62%),
    rgba(8, 8, 10, 0.55);
  border: 1px solid rgba(230, 214, 184, 0.08);
  overflow: hidden;
}

#geoCanvas { display: block; width: 100%; }

.geo-list { display: grid; gap: 6px; font-size: 12.5px; }

.geo-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(255, 248, 236, 0.03);
}

.geo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.geo-dot.is-attack {
  background: #ff6b6b;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.geo-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-val { color: var(--text-faint); font-size: 11.5px; white-space: nowrap; }

.geo-row.is-attack { background: rgba(255, 107, 107, 0.06); }

.geo-sep {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(230, 214, 184, 0.1);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 138, 138, 0.7);
}

.geo-empty { color: var(--text-faint); font-size: 12px; }

.geo-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-faint); }
.geo-legend-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}
.geo-legend-dot.is-attack { background: #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, 0.8); margin-left: 10px; }

@media (max-width: 900px) {
  .geo-body { grid-template-columns: 1fr; }
}

/* ============================================================
   全球威胁地图面板（参考 Live Threat Map 的版式）
   ============================================================ */

.threat-panel { overflow: hidden; }

.threat-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 16px;
  align-items: start;
}

.threat-main { min-width: 0; display: grid; gap: 10px; }

.geo-canvas-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(230, 214, 184, 0.1);
  background: #06080b;
}

#geoCanvas { display: block; width: 100%; }

.threat-time {
  border-radius: 8px;
  border: 1px solid rgba(230, 214, 184, 0.08);
  background: rgba(8, 8, 10, 0.5);
  padding: 4px 6px 2px;
}

#geoTime { display: block; width: 100%; }

.threat-time-label {
  display: flex;
  justify-content: space-between;
  padding: 2px 4px 4px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(160, 178, 196, 0.55);
}

/* 右侧数据栏 */
.threat-side { display: grid; gap: 12px; }

.threat-block {
  border: 1px solid rgba(230, 214, 184, 0.1);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(30, 28, 24, 0.7), rgba(16, 15, 14, 0.8));
  padding: 10px 11px 11px;
}

.threat-block h3 {
  margin: 0 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 169, 104, 0.85);
}

.threat-row {
  display: grid;
  grid-template-columns: 1fr 52px 30px 34px;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 11.5px;
  color: var(--text-dim);
}

.threat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dfe7ef;
}

.threat-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.threat-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 120, 90, 0.55), #ff6b5a);
}

.threat-bar.is-warn i {
  background: linear-gradient(90deg, rgba(245, 183, 0, 0.5), #f5b700);
}

.threat-pct { text-align: right; font-size: 10.5px; color: rgba(255, 160, 140, 0.9); font-family: var(--mono); }
.threat-num { text-align: right; font-size: 10.5px; color: rgba(160, 178, 196, 0.7); font-family: var(--mono); }
.threat-num.is-vis { color: rgba(120, 220, 245, 0.85); }

.threat-empty { font-size: 11.5px; color: var(--text-faint); padding: 4px 0; }

@media (max-width: 1020px) {
  .threat-body { grid-template-columns: 1fr; }
  .threat-side { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}



/* 地图缩放控件与提示 */
.geo-canvas-wrap { position: relative; }

.geo-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(10, 12, 15, 0.82);
  border: 1px solid rgba(230, 214, 184, 0.16);
  backdrop-filter: blur(6px);
}

.geo-zoom button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfe7ef;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.geo-zoom button:hover { background: rgba(201, 169, 104, 0.28); }

#geoZoomVal {
  min-width: 34px;
  text-align: center;
  font-size: 10.5px;
  font-family: var(--mono);
  color: rgba(201, 169, 104, 0.9);
}

.geo-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(160, 178, 196, 0.5);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.geo-tip {
  position: absolute;
  display: none;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(8, 10, 13, 0.94);
  border: 1px solid rgba(201, 169, 104, 0.35);
  font-size: 11px;
  color: #e8edf5;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.geo-tip b { display: block; font-size: 12px; margin-bottom: 2px; }
.geo-tip span { color: rgba(160, 200, 220, 0.8); font-size: 10.5px; }

/* ============================================================
   护网级面板：系统健康 / 暴露面 / 登录审计 / 事件处置
   ============================================================ */

.hw-panel { overflow: hidden; }

.hw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.hw-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(230, 214, 184, 0.12);
  background: linear-gradient(180deg, rgba(32, 30, 26, 0.85), rgba(18, 17, 15, 0.9));
  display: grid;
  gap: 2px;
}

.hw-card span { font-size: 10.5px; letter-spacing: 0.1em; color: rgba(160, 178, 196, 0.75); }
.hw-card b { font-size: 19px; font-weight: 900; color: #eaf6ff; font-variant-numeric: tabular-nums; }
.hw-card i { font-size: 10.5px; font-style: normal; color: var(--text-faint); }

.hw-card.warn { border-color: rgba(245, 183, 0, 0.35); }
.hw-card.warn b { color: #ffe08a; }
.hw-card.danger { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.06); }
.hw-card.danger b { color: #fca5a5; }

.hw-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
}

.hw-block {
  border: 1px solid rgba(230, 214, 184, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(12, 12, 14, 0.5);
}

.hw-block h3 {
  margin: 0 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 169, 104, 0.85);
}

.hw-ports { display: flex; flex-wrap: wrap; gap: 6px; }

.hw-port {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #dfe7ef;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hw-port i { font-size: 9px; color: var(--text-faint); font-style: normal; }

.hw-port.risky {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

.hw-port.risky em {
  font-style: normal;
  font-size: 9px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.hw-logins { display: grid; gap: 3px; max-height: 190px; overflow: auto; }

.hw-login {
  display: grid;
  grid-template-columns: 74px 1fr 130px;
  gap: 8px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.hw-login.ok { border-left: 2px solid rgba(74, 222, 128, 0.6); }
.hw-login.warn { border-left: 2px solid rgba(245, 183, 0, 0.6); }
.hw-login.danger { border-left: 2px solid rgba(248, 113, 113, 0.6); }

.hw-kind { color: rgba(200, 214, 226, 0.85); }
.hw-user { color: #dfe7ef; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-ip { font-family: var(--mono); font-size: 10.5px; color: rgba(160, 178, 196, 0.75); text-align: right; }

/* 事件处置 */
.sec-handle {
  border: 1px solid rgba(201, 169, 104, 0.35);
  background: rgba(201, 169, 104, 0.12);
  color: #ffe08a;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sec-handle:hover { background: rgba(201, 169, 104, 0.28); }

.sec-handled {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  color: rgba(134, 239, 172, 0.85);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

@media (max-width: 900px) {
  .hw-cols { grid-template-columns: 1fr; }
}


/* 端口暴露状态 */
.hw-port.local { opacity: 0.55; }
.hw-port.local em { color: var(--text-faint); background: rgba(255,255,255,.06); }
.hw-port.open { color: #a5f3fc; border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.08); }
.hw-port.open em { color: #a5f3fc; background: rgba(34,211,238,.15); }

/* ============================================================
   3D / 流体效果：首屏视差倾斜 + 流动色块 + 卡片 3D 悬停 + 滚动浮现
   ============================================================ */

/* ---------- 首屏流体背景 ---------- */
.duel-fluid {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
  filter: blur(64px) saturate(1.15);
  mix-blend-mode: screen;
}

.duel-fluid i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.duel-fluid i:nth-child(1) {
  width: 46%;
  height: 62%;
  left: 6%;
  top: 6%;
  background: radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0) 68%);
  animation: fluidA 26s ease-in-out infinite;
}

.duel-fluid i:nth-child(2) {
  width: 42%;
  height: 58%;
  right: 8%;
  bottom: 4%;
  background: radial-gradient(circle at 60% 50%, rgba(201, 169, 104, 0.5), rgba(201, 169, 104, 0) 70%);
  animation: fluidB 32s ease-in-out infinite;
}

.duel-fluid i:nth-child(3) {
  width: 38%;
  height: 44%;
  left: 34%;
  top: 38%;
  background: radial-gradient(circle at 50% 50%, rgba(120, 180, 220, 0.32), rgba(120, 180, 220, 0) 72%);
  animation: fluidC 22s ease-in-out infinite;
}

@keyframes fluidA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(8%, -6%, 0) scale(1.14); }
  66% { transform: translate3d(-4%, 8%, 0) scale(0.94); }
}

@keyframes fluidB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(-9%, 5%, 0) scale(1.12); }
  70% { transform: translate3d(5%, -7%, 0) scale(0.92); }
}

@keyframes fluidC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(6%, 6%, 0) scale(1.2); }
}

/* ---------- 首屏 3D 视差 ---------- */
.duel {
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.duel-copy,
.duel-champ {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.24, 1);
  will-change: transform;
}

.duel-copy {
  transform: translate3d(calc(var(--mx, 0px) * 0.6), calc(var(--my, 0px) * 0.45), 0);
}

.duel-champ {
  transform:
    translate3d(calc(var(--mx, 0px) * -1.3), calc(var(--my, 0px) * -0.9), 0) translateZ(30px)
    rotateY(calc(var(--ry, 0deg) * -1))
    rotateX(calc(var(--rx, 0deg) * 0.7));
}

.duel-vs {
  /* 用 margin 居中，避开动画对 transform 的独占 */
  margin-left: -37px;
  margin-top: -37px;
  /* 视差走 translate 属性，和动画互不干扰 */
  translate: calc(var(--mx, 0px) * -0.5) calc(var(--my, 0px) * -0.4);
  transition: translate 0.4s ease-out;
}

/* ---------- 卡片 3D 悬停 ---------- */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.tilt-3d.is-tilting {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(6px) scale(1.012);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- 滚动浮现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .duel-fluid i { animation: none; }
  .duel-copy, .duel-champ, .duel-vs { transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tilt-3d.is-tilting { transform: none; }
}


/* 全站点击特效画布 */
.click-fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}


/* ============================================================
   首屏背景：竞技擂台地板 + 战术网格 + 暗角
   ============================================================ */

.duel-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(200, 220, 240, 0.055) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(200, 220, 240, 0.055) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 45%, #000 30%, transparent 82%);
  opacity: 0.75;
  z-index: 1;
}

/* 透视地板：向观众席延伸的擂台地面 */
.duel-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -1%;
  height: 44%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 60% at 50% 100%, rgba(245, 183, 0, 0.16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(201, 169, 104, 0.42) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(201, 169, 104, 0.30) 0 1px, transparent 1px 56px);
  transform: perspective(560px) rotateX(63deg);
  transform-origin: 50% 100%;
  animation: floorScroll 5.5s linear infinite;
  mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.62) 46%, transparent 86%);
  opacity: 0.8;
  z-index: 1;
}

@keyframes floorScroll {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 0 56px; }
}

/* 地平线光带 */
.duel-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40%;
  height: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(34, 211, 238, 0) 0%,
    rgba(34, 211, 238, 0.35) 26%,
    rgba(201, 169, 104, 0.55) 50%,
    rgba(245, 183, 0, 0.35) 74%,
    rgba(245, 183, 0, 0) 100%);
  filter: blur(0.4px);
  opacity: 0.42;
}

.duel-horizon::after {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 28px;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(201, 169, 104, 0.22), transparent 70%);
}

/* 暗角 */
.duel-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 82% at 50% 46%, transparent 42%, rgba(4, 6, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 6, 9, 0.42) 0%, transparent 18%, transparent 78%, rgba(4, 6, 9, 0.5) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .duel-floor { animation: none; }
}


/* ============================================================
   战术雷达：同心圆以 VS（画面中心）为准星
   ============================================================ */

.duel-radar {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.duel-radar .radar-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.16);
}

.duel-radar .r1 { width: 180px;  height: 180px;  border-color: rgba(34, 211, 238, 0.42); }
.duel-radar .r2 { width: 340px;  height: 340px;  border-color: rgba(34, 211, 238, 0.28); }
.duel-radar .r3 { width: 560px;  height: 560px;  border-color: rgba(201, 169, 104, 0.22); }
.duel-radar .r4 { width: 860px;  height: 860px;  border-color: rgba(201, 169, 104, 0.15); }
.duel-radar .r5 { width: 1240px; height: 1240px; border-color: rgba(34, 211, 238, 0.06); }

/* 扫描扇面 */
.duel-radar .radar-sweep {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1240px;
  height: 1240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(34, 211, 238, 0.30) 0deg,
    rgba(34, 211, 238, 0.05) 26deg,
    rgba(34, 211, 238, 0) 48deg
  );
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9) 4%, transparent 52%);
  animation: radarSweep 9s linear infinite;
}

@keyframes radarSweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 十字准线 */
.duel-radar .radar-cross {
  position: absolute;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.16) 22%,
    rgba(201, 169, 104, 0.26) 50%,
    rgba(34, 211, 238, 0.16) 78%,
    transparent 100%);
}

.duel-radar .radar-cross.v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(34, 211, 238, 0.14) 18%,
    rgba(201, 169, 104, 0.24) 50%,
    rgba(34, 211, 238, 0.14) 82%,
    transparent 100%);
}

.duel-radar .radar-cross.h {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  margin-top: -0.5px;
}

@media (prefers-reduced-motion: reduce) {
  .duel-radar .radar-sweep { animation: none; }
}

@media (max-width: 900px) {
  .duel-radar .r3 { width: 380px; height: 380px; }
  .duel-radar .r4 { width: 620px; height: 620px; }
  .duel-radar .r5 { width: 900px; height: 900px; }
  .duel-radar .radar-sweep { width: 900px; height: 900px; }
}

/* 后台：玩家搜索选择器 + 重名提示 */

.picker { position: relative; }

.picker-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 290px;
  overflow: auto;
  border-radius: 9px;
  border: 1px solid rgba(201, 169, 104, 0.30);
  background: #0d1116;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  padding: 4px;
}

.picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #dfe7ef;
}

.picker-item:hover { background: rgba(201, 169, 104, 0.16); }

.picker-item .picker-name i {
  font-style: normal;
  color: var(--text-faint);
  font-size: 11.5px;
  margin-left: 4px;
}

.picker-item .picker-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(201, 169, 104, 0.85);
  flex: none;
}

.picker-item.is-new {
  color: #a5f3fc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 3px;
}

.picker-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--text-faint);
}

.picker-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-faint);
  min-height: 15px;
}

/* 重名提示条 */
.dup-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #ffe08a;
  background: rgba(245, 183, 0, 0.10);
  border: 1px solid rgba(245, 183, 0, 0.35);
}

.dup-warning b { color: #fff3c4; }


/* 登录尝试表 + 访客画像 */

.login-panel { overflow: hidden; }

.login-table { display: grid; gap: 2px; }

.login-row {
  display: grid;
  grid-template-columns: 128px 110px 54px 132px 1fr 168px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.login-row.login-head {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 178, 196, 0.6);
  background: transparent;
  padding-top: 0;
}

.login-row.is-fail {
  border-left: 2px solid rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.05);
}

.login-row.is-ok { border-left: 2px solid rgba(74, 222, 128, 0.55); }

.login-time { font-family: var(--mono); font-size: 10.5px; color: rgba(160, 178, 196, 0.75); }
.login-user { color: #ffffff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-result { font-weight: 700; }
.login-row.is-fail .login-result { color: #fca5a5; }
.login-row.is-ok .login-result { color: #86efac; }
.login-ip { font-family: var(--mono); font-size: 10.5px; }
.login-where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-where i { font-style: normal; color: var(--text-faint); font-size: 10.5px; }
.login-dev { font-size: 10.5px; color: rgba(160, 200, 220, 0.8); }

/* 访客画像 */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.profile-block {
  border: 1px solid rgba(230, 214, 184, 0.1);
  border-radius: 9px;
  padding: 10px 11px;
  background: rgba(12, 12, 14, 0.45);
}

.profile-block.span-2 { grid-column: span 2; }

.profile-block h3 {
  margin: 0 0 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 169, 104, 0.85);
}

.threat-bar.is-cool i { background: linear-gradient(90deg, rgba(34, 211, 238, 0.45), #22d3ee); }

@media (max-width: 1024px) {
  .login-row { grid-template-columns: 110px 90px 46px 1fr; }
  .login-where, .login-dev { display: none; }
  .profile-block.span-2 { grid-column: auto; }
}



.hist-reassess {
  display: inline-block; margin-left: 7px; padding: 1px 7px;
  border-radius: 5px; font-size: 11px; color: #c9d6e3;
  background: rgba(200, 214, 226, 0.08); border: 1px solid rgba(200, 214, 226, 0.22);
}

/* 告警列表 */
.alert-row {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  background: rgba(248, 113, 113, 0.06);
  border-left: 2px solid rgba(248, 113, 113, 0.7);
  margin-bottom: 4px;
}

.alert-row.is-done { opacity: 0.5; background: rgba(255,255,255,.02); border-left-color: rgba(74,222,128,.5); }

.alert-kind {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #fca5a5;
  font-weight: 700;
}

.alert-row.is-done .alert-kind { color: #86efac; }

/* ============================================================
   访问统计：分区布局
   ============================================================ */

.v-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 18px 0 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(230, 214, 184, 0.12);
  background: rgba(12, 12, 14, 0.55);
}

.v-nav-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-right: 4px;
}

.v-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.v-nav a:hover {
  color: #ffe9a3;
  border-color: rgba(201, 169, 104, 0.35);
  background: rgba(201, 169, 104, 0.1);
}

.v-nav a i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(201, 169, 104, 0.85);
}

.v-section {
  margin-top: 26px;
  scroll-margin-top: 84px;
}

.v-sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(230, 214, 184, 0.10);
}

.v-sec-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #06121a;
  background: linear-gradient(140deg, #a5f3fc, #22d3ee);
}

.v-sec-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #eef4fa;
}

.v-sec-desc {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-faint);
}

.v-section .panel { margin-top: 12px; }
.v-section .panel:first-of-type { margin-top: 0; }

/* ============================================================
   访问统计：工具栏 / 错误 / 热力 / 留存
   ============================================================ */

.v-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(230, 214, 184, 0.12);
  background: rgba(12, 12, 14, 0.6);
}

.v-range { display: inline-flex; gap: 2px; padding: 2px; border-radius: 7px; background: rgba(255,255,255,.04); }
.v-range button {
  border: 0; background: transparent; color: var(--text-dim);
  font-size: 12px; padding: 6px 12px; border-radius: 6px; cursor: pointer;
}
.v-range button.is-active { background: rgba(201,169,104,.22); color: #ffe9a3; font-weight: 700; }

.v-search { max-width: 260px; height: 34px; font-size: 12px; }
.v-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.v-range-info { font-size: 11.5px; color: var(--text-faint); margin-left: auto; font-family: var(--mono); }

.err-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.err-block { border: 1px solid rgba(230,214,184,.1); border-radius: 9px; padding: 10px 11px; background: rgba(12,12,14,.45); }
.err-block h3 { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(201,169,104,.85); }

.hour-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; }
.hour-cell { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.hour-cell i {
  display: block; width: 100%; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(34,211,238,.85), rgba(34,211,238,.25));
  min-height: 3px;
}
.hour-cell span { font-size: 9px; color: var(--text-faint); font-family: var(--mono); }

.retention-box { display: grid; gap: 8px; }
.retention-row {
  display: grid; grid-template-columns: 1fr auto 60px; gap: 12px; align-items: center;
  padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.03);
  font-size: 12.5px; color: var(--text-dim);
}
.retention-row b { color: #eaf6ff; }
.retention-row i { font-style: normal; text-align: right; font-family: var(--mono); font-size: 11.5px; color: rgba(201,169,104,.9); }

.v-retention-tip {
  margin: 22px 0 6px; font-size: 11.5px; color: var(--text-faint);
  padding: 10px 12px; border-radius: 8px; border: 1px dashed rgba(230,214,184,.16);
}


/* 移动端：导航可横向滑动，避免挤爆 */
@media (max-width: 900px) {
  .header-inner {
    gap: 10px;
    padding-right: 0;
  }

  .nav {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    max-width: 100%;
    padding-left: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav-link {
    flex: none;
    padding: 8px 11px;
    font-size: 13.5px;
  }

  .header-cta {
    flex: none;
    margin-left: 4px;
  }

  /* 右侧渐隐，提示可以滑 */
  .nav::after {
    content: "";
    position: sticky;
    right: 0;
    flex: none;
    width: 22px;
    margin-left: -22px;
    background: linear-gradient(90deg, transparent, rgba(6, 9, 13, 0.95));
    pointer-events: none;
  }
}


/* 首屏子弹层 */
.duel-bullets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.duel-inner { z-index: 2; }

/* 剑已移除，底部不再需要压暗大片 */
.duel::after { display: none; }

@media (max-width: 720px) {
  .duel-bullets { opacity: 0.75; }
}


/* ============================================================
   首页新增：可信度 / 等级速查 / 等级分布 / 升降级 / 吸底
   ============================================================ */

/* ---------- 可信度数字 ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 6px 8px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.trust-item:last-child { border-right: 0; }

.trust-item b {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.trust-item span {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* ---------- 等级速查 ---------- */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.grade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}

.grade-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  opacity: .85;
}

.grade-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.05); }

.gc-badge {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gc-range {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(214,226,238,.85);
  letter-spacing: 0.04em;
}

.gc-desc { font-size: 11.5px; color: var(--text-faint); }

.g-s .gc-badge { color: #ffd878; }
.g-s::after { background: linear-gradient(90deg,#f5b700,#ffe9a3); }
.g-s:hover { border-color: rgba(245,183,0,.6); }

.g-a .gc-badge { color: #f5b700; }
.g-a::after { background: linear-gradient(90deg,#c9971f,#f5b700); }
.g-a:hover { border-color: rgba(245,183,0,.45); }

.g-b .gc-badge { color: #6ee7b7; }
.g-b::after { background: linear-gradient(90deg,#0f9b6c,#6ee7b7); }
.g-b:hover { border-color: rgba(110,231,183,.45); }

.g-c .gc-badge { color: #22d3ee; }
.g-c::after { background: linear-gradient(90deg,#0e7490,#22d3ee); }
.g-c:hover { border-color: rgba(34,211,238,.45); }

.g-d .gc-badge { color: #94a3b8; }
.g-d::after { background: linear-gradient(90deg,#475569,#94a3b8); }
.g-d:hover { border-color: rgba(148,163,184,.45); }

.grade-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-faint);
}

.grade-note b { color: rgba(245,183,0,.9); font-weight: 600; }

/* ---------- 等级分布 ---------- */
.dist-panel { padding: 18px 20px; }

.dist-rows { display: flex; flex-direction: column; gap: 10px; }

.dist-row {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 56px 46px;
  align-items: center;
  gap: 12px;
}

.dist-grade { display: flex; }

.dist-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.dist-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34,211,238,.85), rgba(245,183,0,.85));
  transition: width .6s cubic-bezier(.16,.84,.24,1);
}

.dist-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  text-align: right;
}

.dist-count em { font-style: normal; font-size: 10px; color: var(--text-faint); margin-left: 2px; }

.dist-share {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  text-align: right;
}

.dist-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ---------- 升降级 ---------- */
.change-list { display: flex; flex-direction: column; gap: 8px; }

.change-row {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: inherit;
  transition: background .18s, border-color .18s;
}

.change-row:hover { background: rgba(255,255,255,.04); border-color: var(--line-strong); }

.change-arrow {
  font-size: 13px;
  text-align: center;
  font-weight: 700;
}

.change-arrow.up { color: #6ee7b7; }
.change-arrow.down { color: #f87171; }

.change-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.change-who b { font-size: 13px; color: var(--text); font-weight: 600; }
.change-who em { font-style: normal; font-size: 11px; color: var(--text-faint); }

.change-grades { display: inline-flex; align-items: center; gap: 6px; }
.change-grades i { font-style: normal; font-size: 11px; color: var(--text-faint); }

.change-pts {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  text-align: right;
}

.change-pts em { font-style: normal; font-size: 10px; color: var(--text-faint); margin-left: 2px; }

.change-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 10px;
  text-align: center;
}

.change-empty b { font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.change-empty span { font-size: 12px; color: var(--text-faint); }

/* ---------- 手机吸底 ---------- */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(245,183,0,.35);
  border-radius: 14px;
  background: rgba(8,12,17,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translateY(140%);
  transition: transform .3s cubic-bezier(.16,.84,.24,1);
}

.sticky-cta.show { transform: translateY(0); }

.sticky-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sticky-info b { font-size: 12.5px; color: #f2f7fb; font-weight: 600; }
.sticky-info span { font-size: 10.5px; color: rgba(150,168,186,.8); }

.sticky-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd24a, #e0a300);
  color: #1a1200;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 16px 0; row-gap: 14px; }
  .trust-item { border-right: 0; }
  .grade-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grade-card { padding: 14px 14px 13px; }
  .gc-badge { font-size: 26px; }
  .dist-row { grid-template-columns: 46px minmax(0,1fr) 48px 40px; gap: 8px; }
  .change-row { grid-template-columns: 20px minmax(0,1fr) auto; }
  .change-pts { display: none; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 74px; }
}

@media (max-width: 560px) {
  .trust-item b { font-size: 22px; }
  .trust-item span { font-size: 10.5px; }
  .grade-card .gc-range { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
  .grade-card:hover { transform: none; }
}


/* ============================================================
   首页：页内导航 / 干员卡 / 证书 / 考官
   ============================================================ */

/* ---------- 页内导航 ---------- */
.subnav {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(8, 11, 15, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease, background .2s ease;
}

.subnav.stuck { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

.subnav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subnav-links::-webkit-scrollbar { display: none; }

.subnav-links a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background .18s, color .18s;
}

.subnav-links a:hover { background: rgba(255,255,255,.06); color: var(--text); }

.subnav-links a.active {
  background: rgba(245, 183, 0, .12);
  color: #ffd878;
  box-shadow: inset 0 0 0 1px rgba(245, 183, 0, .28);
}

.subnav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.subnav-search input {
  width: 132px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: border-color .18s, width .2s;
}

.subnav-search input:focus { border-color: rgba(34,211,238,.6); width: 168px; }

.subnav-search button {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245,183,0,.45);
  background: rgba(245,183,0,.12);
  color: #ffe6a8;
  font-size: 12px;
  cursor: pointer;
  transition: background .18s;
}

.subnav-search button:hover { background: rgba(245,183,0,.22); }

.search-tip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(12, 16, 22, .96);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- 干员卡 ---------- */
.op-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.op-scroll::-webkit-scrollbar { height: 6px; }
.op-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }

.op-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: inherit;
  transition: transform .18s, border-color .18s, background .18s;
}

.op-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.05); }

.op-ava {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--oc, #64748b) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--oc, #64748b) 45%, transparent);
  font-size: 14px;
  color: var(--oc, #94a3b8);
}

.op-ava img { width: 100%; height: 100%; object-fit: contain; display: block; }

.op-name { font-size: 12.5px; color: var(--text); font-weight: 600; }

.op-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.op-foot em { font-style: normal; font-size: 10.5px; color: var(--text-faint); }

/* ---------- 证书 + 考官 ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
}

.cert-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(245,183,0,.22);
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(245,183,0,.10), transparent 70%),
    rgba(10, 14, 19, .8);
}

.cert-blank {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245,183,0,.32);
  background: linear-gradient(160deg, rgba(245,183,0,.10), rgba(10,14,19,.9) 60%);
  overflow: hidden;
}

.cert-blank::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(245,183,0,.18);
  border-radius: 7px;
  pointer-events: none;
}

.cert-kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: rgba(245,183,0,.75);
  text-align: center;
}

.cert-grade {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg,#ffe9a3,#d4a850);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cert-line { width: 42px; height: 1px; background: rgba(245,183,0,.4); }

.cert-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.cert-label { font-size: 11px; letter-spacing: .16em; color: var(--text-faint); }

.cert-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cert-meta b { font-size: 17px; color: var(--text); font-weight: 700; }
.cert-meta span { font-size: 12px; color: var(--text-dim); }

.cert-code {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(201,169,104,.95);
  letter-spacing: .04em;
}

.cert-desc { margin: 0; font-size: 12px; line-height: 1.7; color: var(--text-faint); }
.cert-actions { margin-top: auto; }

/* 考官 */
.examiners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 14, 19, .8);
}

.ex-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ex-head h3 { margin: 0; font-size: 14px; color: var(--text); font-weight: 600; }
.ex-head span { font-size: 10.5px; color: var(--text-faint); }

.ex-list { display: flex; flex-direction: column; gap: 8px; }

.ex-row {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  transition: background .18s;
}

.ex-row:hover { background: rgba(255,255,255,.04); }

.ex-ava {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.ex-name { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ex-count { font-family: var(--mono); font-size: 12px; color: rgba(201,169,104,.9); }
.ex-count em { font-style: normal; font-size: 10px; color: var(--text-faint); margin-left: 2px; }

.ex-empty { padding: 20px; text-align: center; font-size: 12px; color: var(--text-faint); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .subnav { top: 56px; }
  .subnav-in { padding-top: 7px; padding-bottom: 7px; gap: 10px; }
  .subnav-links a { padding: 5px 10px; font-size: 11.5px; }
  .subnav-search input { width: 104px; }
  .subnav-search input:focus { width: 128px; }

  .proof-grid { grid-template-columns: 1fr; }
  .cert-card { grid-template-columns: 130px minmax(0,1fr); gap: 14px; padding: 14px; }
  .cert-grade { font-size: 34px; }
  .op-scroll { grid-auto-columns: 112px; }
}


/* 只有考官时的布局：整行铺开 */
.proof-grid { grid-template-columns: 1fr; }
.examiners { width: 100%; }
.ex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }

@media (max-width: 900px) {
  .ex-list { grid-template-columns: 1fr; }
}


/* ===== 全页子弹层（固定在最底层，内容压在上面） ===== */
.page-bullets {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
}

main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 40; }

@media (max-width: 720px) {
  .page-bullets { opacity: .38; }
}

@media (prefers-reduced-motion: reduce) {
  .page-bullets { display: none; }
}


/* 全页子弹：稍微提亮，确保在深色区可见 */
.page-bullets { opacity: .85 !important; }
@media (max-width: 720px) { .page-bullets { opacity: .6 !important; } }


/* 全页子弹层：压在主内容之上（DOM 顺序在后，同层级会盖住 main），但低于导航 */
.page-bullets { z-index: 1 !important; opacity: .5 !important; mix-blend-mode: screen; }
@media (max-width: 720px) { .page-bullets { opacity: .38 !important; } }
.site-header { z-index: 40; }
.subnav { z-index: 30; }

/* ============================================================
   首页视觉升级（仅首页）
   ============================================================ */

/* ---------- 首屏变量 ---------- */
.duel {
  --mx: 66%;
  --my: 52%;
  --px: 0px;
  --py: 0px;
  isolation: isolate;
}

/* ---------- 雾层 ---------- */
.duel-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.duel-fog {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.fog-cyan {
  left: -18vmax;
  top: 8%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32) 0%, rgba(34, 211, 238, 0.10) 42%, transparent 70%);
  animation: fogDriftA 26s ease-in-out infinite alternate;
}

.fog-amber {
  right: -20vmax;
  bottom: -8vmax;
  background: radial-gradient(circle, rgba(245, 183, 0, 0.26) 0%, rgba(245, 183, 0, 0.08) 44%, transparent 72%);
  animation: fogDriftB 32s ease-in-out infinite alternate;
}

@keyframes fogDriftA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, -3vmax, 0) scale(1.12); }
  100% { transform: translate3d(-3vmax, 4vmax, 0) scale(1.04); }
}

@keyframes fogDriftB {
  0%   { transform: translate3d(0, 0, 0) scale(1.06); }
  50%  { transform: translate3d(-5vmax, -4vmax, 0) scale(0.96); }
  100% { transform: translate3d(4vmax, 3vmax, 0) scale(1.1); }
}

/* ---------- 扫描线 ---------- */
.duel-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(180deg,
    rgba(34, 211, 238, 0) 0%,
    rgba(34, 211, 238, 0.055) 42%,
    rgba(190, 240, 255, 0.12) 50%,
    rgba(34, 211, 238, 0.055) 58%,
    rgba(34, 211, 238, 0) 100%);
  mix-blend-mode: screen;
  animation: scanSweep 9s linear infinite;
  opacity: 0.85;
}

@keyframes scanSweep {
  0%   { transform: translate3d(0, -140px, 0); }
  100% { transform: translate3d(0, calc(100vh + 140px), 0); }
}

/* ---------- 鼠标聚光 ---------- */
.duel-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px 420px at var(--mx) var(--my),
    rgba(120, 220, 255, 0.10) 0%,
    rgba(120, 220, 255, 0.04) 38%,
    transparent 68%
  );
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}

/* ---------- HUD 角标 ---------- */
.hud {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid rgba(180, 215, 235, 0.34);
  pointer-events: none;
}

.hud-tl { left: 20px; top: 20px; border-left-width: 1px; border-top-width: 1px; }
.hud-tr { right: 20px; top: 20px; border-right-width: 1px; border-top-width: 1px; }
.hud-bl { left: 20px; bottom: 20px; border-left-width: 1px; border-bottom-width: 1px; }
.hud-br { right: 20px; bottom: 20px; border-right-width: 1px; border-bottom-width: 1px; }

/* ---------- 内容视差 ---------- */
.duel-copy {
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform 0.35s cubic-bezier(0.16, 0.84, 0.24, 1);
  will-change: transform;
}

/* ---------- 入场 ---------- */
.duel .duel-eyebrow,
.duel .duel-title,
.duel .duel-sub,
.duel .hero-actions,
.duel .duel-meta {
  opacity: 0;
  transform: translateY(18px);
}

.duel.is-in .duel-eyebrow { animation: heroIn 0.7s cubic-bezier(0.16, 0.84, 0.24, 1) 0.05s forwards; }
.duel.is-in .duel-title  { animation: heroIn 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) 0.14s forwards; }
.duel.is-in .duel-sub    { animation: heroIn 0.8s cubic-bezier(0.16, 0.84, 0.24, 1) 0.26s forwards; }
.duel.is-in .hero-actions{ animation: heroIn 0.8s cubic-bezier(0.16, 0.84, 0.24, 1) 0.36s forwards; }
.duel.is-in .duel-meta   { animation: heroIn 0.8s cubic-bezier(0.16, 0.84, 0.24, 1) 0.46s forwards; }

.duel .duel-champ {
  opacity: 0;
  transform: translateX(28px) scale(0.98);
}

.duel.is-in .duel-champ {
  animation: champIn 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) 0.3s forwards;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes champIn {
  from { opacity: 0; transform: translateX(28px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 标题金属/霓虹质感 ---------- */
.duel-title {
  text-shadow:
    0 0 26px rgba(34, 211, 238, 0.18),
    0 10px 40px rgba(0, 0, 0, 0.55);
}

.duel-title span {
  text-shadow:
    0 0 34px rgba(245, 183, 0, 0.45),
    0 0 90px rgba(245, 183, 0, 0.28);
}

.duel-title-tail {
  color: rgba(240, 246, 252, 0.92);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.18);
}

/* ---------- VS 徽章：旋转虚线环 + 呼吸 ---------- */
.duel-vs {
  isolation: isolate;
  animation: vsPulse 3.4s ease-in-out infinite;
}

.duel-vs::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(165, 243, 252, 0.42);
  animation: vsSpin 16s linear infinite;
}

.duel-vs::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(245, 183, 0, 0.18);
  animation: vsSpin 26s linear infinite reverse;
}

@keyframes vsSpin {
  to { transform: rotate(360deg); }
}

@keyframes vsPulse {
  0%, 100% { box-shadow: var(--vsShadow, 0 0 0 6px rgba(6, 9, 13, 0.9)), 0 0 42px rgba(34, 211, 238, 0.45); }
  50%      { box-shadow: var(--vsShadow, 0 0 0 6px rgba(6, 9, 13, 0.9)), 0 0 72px rgba(245, 183, 0, 0.55); }
}

/* ---------- 滚动提示 ---------- */
.duel-scroll em {
  animation: scrollBounce 1.9s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ---------- 首页整体底色（只首页） ---------- */
body.home {
  background:
    radial-gradient(1200px 700px at 50% -12%, rgba(201, 169, 104, 0.08), transparent 62%),
    radial-gradient(900px 600px at 12% 18%, rgba(34, 211, 238, 0.055), transparent 62%),
    radial-gradient(900px 600px at 88% 26%, rgba(245, 183, 0, 0.05), transparent 62%),
    #050506;
  background-attachment: fixed;
}

/* ---------- 手机 ---------- */
@media (max-width: 900px) {
  .duel-fog { filter: blur(52px); opacity: 0.42; width: 78vmax; height: 78vmax; }
  .hud { width: 22px; height: 22px; }
  .hud-tl, .hud-bl { left: 12px; }
  .hud-tr, .hud-br { right: 12px; }
  .duel-spot { display: none; }
  .duel-copy { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .duel-fog, .duel-scan, .duel-vs, .duel-vs::before, .duel-vs::after, .duel-scroll em { animation: none !important; }
  .duel .duel-eyebrow, .duel .duel-title, .duel .duel-sub,
  .duel .hero-actions, .duel .duel-meta, .duel .duel-champ {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}


/* ===== 首屏质感加强（二轮） ===== */
.duel-bullets { opacity: .6 !important; }

/* 金色字：金属流光扫过 */
.duel-title span {
  background: linear-gradient(100deg, #f5b700 0%, #ffe9a3 22%, #f5b700 42%, #d99b00 62%, #ffd24a 82%, #f5b700 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldSheen 7s ease-in-out infinite;
}

@keyframes goldSheen {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* VS：外扩脉冲环 */
.duel-vs {
  position: absolute;
}

.duel-vs .vs-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(165, 243, 252, 0.55);
  animation: vsRing 3.6s ease-out infinite;
  pointer-events: none;
}

@keyframes vsRing {
  0%   { transform: scale(0.9); opacity: 0.85; }
  70%  { transform: scale(2.3); opacity: 0; }
  100% { transform: scale(2.3); opacity: 0; }
}

/* 擂主卡描边呼吸 */
.duel-champ {
  animation: cardGlow 5.5s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(201, 169, 104, 0.22), 0 24px 60px rgba(0, 0, 0, 0.45); }
  50%      { box-shadow: 0 0 0 1px rgba(245, 183, 0, 0.45), 0 24px 70px rgba(245, 183, 0, 0.18); }
}

/* 手机：藏掉 VS，避免压按钮 */
@media (max-width: 720px) {
  .duel-bullets { opacity: .45 !important; }
  .duel-vs { display: none; }
  .hud { display: none; }
}


/* ===== 金色字修正：以金黄为主，只带一道窄高光 ===== */
.duel-title span {
  background: linear-gradient(100deg,
    #e0a300 0%, #f5b700 34%, #ffd24a 44%, #fff4cf 50%, #ffd24a 56%, #f5b700 66%, #e0a300 100%) !important;
  background-size: 220% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 26px rgba(245, 183, 0, 0.35));
  animation: goldSheen 8s ease-in-out infinite !important;
}

/* 文字区加暗底，保证压得住背景光 */
.duel-copy::before {
  content: "";
  position: absolute;
  left: -7%;
  top: -10%;
  width: 116%;
  height: 124%;
  background: radial-gradient(ellipse 62% 58% at 40% 50%, rgba(4, 6, 9, 0.88), rgba(4, 6, 9, 0.55) 56%, rgba(4, 6, 9, 0) 78%);
  z-index: -1;
  pointer-events: none;
}

.duel-copy { position: relative; z-index: 2; }

@media (max-width: 720px) {
  .duel-copy::before { display: none; }
  .duel-title span { animation: none !important; background-position: 30% 50% !important; }
}


/* ===== 光束扫描 + 尘埃（首屏氛围） ===== */
.duel-rays {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 180vmax;
  height: 180vmax;
  margin: -90vmax 0 0 -90vmax;
  background: conic-gradient(from 0deg,
    transparent 0deg 18deg,
    rgba(120, 220, 255, 0.055) 22deg,
    transparent 30deg 96deg,
    rgba(245, 183, 0, 0.05) 100deg,
    transparent 108deg 186deg,
    rgba(120, 220, 255, 0.04) 190deg,
    transparent 198deg 276deg,
    rgba(245, 183, 0, 0.04) 280deg,
    transparent 288deg 360deg);
  mix-blend-mode: screen;
  animation: raysSpin 70s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

@keyframes raysSpin {
  to { transform: rotate(360deg); }
}

.duel-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 72%, rgba(190, 240, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 28% 38%, rgba(190, 240, 255, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 84%, rgba(255, 220, 150, 0.45), transparent 100%),
    radial-gradient(1px 1px at 62% 26%, rgba(255, 220, 150, 0.4), transparent 100%),
    radial-gradient(1px 1px at 76% 66%, rgba(190, 240, 255, 0.45), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 40%, rgba(255, 220, 150, 0.35), transparent 100%);
  background-size: 100% 100%;
  animation: dustFloat 26s ease-in-out infinite alternate;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes dustFloat {
  from { transform: translate3d(0, 0, 0); opacity: 0.45; }
  to   { transform: translate3d(0, -18px, 0); opacity: 0.85; }
}

/* 首屏底部过渡，别有硬切 */
.duel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0) 0%, rgba(5, 5, 6, 0.55) 70%, rgba(5, 5, 6, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .duel-rays { opacity: 0.55; animation-duration: 110s; }
  .duel-dust { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .duel-rays, .duel-dust { animation: none !important; }
}


/* 手机端金色字：固定金黄渐变，避免高光偏移发白 */
@media (max-width: 720px) {
  .duel-title span {
    background-image: linear-gradient(180deg, #ffe9a3 0%, #f5b700 52%, #c98f00 100%) !important;
    background-size: 100% 100% !important;
    background-position: 0 0 !important;
    animation: none !important;
  }
}


/* 光束层性能与移动端收敛 */
.duel-rays { will-change: transform; }

@media (max-width: 900px) {
  .duel-rays {
    width: 110vmax;
    height: 110vmax;
    margin: -55vmax 0 0 -55vmax;
    opacity: 0.4;
  }
}

@media (max-width: 720px) {
  .duel-scan { animation-duration: 12s; }
  .duel-fog { animation-duration: 40s; }
}


/* ===== 整页修复 ===== */
html { scroll-behavior: smooth; }

section[id], .flow[id] { scroll-margin-top: 122px; }

/* 遮罩层级：压在背景上、内容下 */
.duel-vignette { z-index: 1 !important; }
.duel-inner { position: relative; z-index: 3; }
.duel-scroll { z-index: 4; }

/* 擂主卡光晕改到伪元素，避免和入场动画冲突 */


/* 只让光晕走伪元素，入场动画保留 */
.duel .duel-champ { opacity: 1; }
.duel:not(.is-in) .duel-champ { opacity: 0; }


.duel-champ::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(245, 183, 0, 0.18), 0 0 34px rgba(245, 183, 0, 0.10);
  animation: cardHalo 5.5s ease-in-out infinite;
}

.duel-champ { position: relative; }

@keyframes cardHalo {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* 手机：给吸底条留出空间 */
@media (max-width: 900px) {
  body.home { padding-bottom: 86px; }
}


/* ===== 锚点与吸顶对齐修复 ===== */
:root { --header-h: 59px; }

.subnav { top: var(--header-h) !important; }

section[id], .flow[id] { scroll-margin-top: calc(var(--header-h) + 56px); }

/* 手机导航点按区域加大 */
@media (max-width: 900px) {
  .nav-link { min-height: 40px; display: inline-flex; align-items: center; }
  .brand { min-height: 40px; display: inline-flex; align-items: center; }
}


/* ===== 首屏层级最终确定 ===== */
.duel-bg { z-index: 0; }
.duel-vignette { z-index: 2 !important; }
.duel-bullets { z-index: 3 !important; }
.duel-inner { z-index: 4 !important; }
.duel-scroll { z-index: 5 !important; }
.duel-tag { z-index: 3; }


/* ===== 对比度收尾：雾降一档，暗角加一档 ===== */
.duel-fog { opacity: .42 !important; }
.fog-amber { opacity: .38 !important; }

.duel-vignette {
  background:
    radial-gradient(ellipse 88% 78% at 50% 46%, transparent 34%, rgba(3, 5, 8, 0.72) 100%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.55) 0%, rgba(3, 5, 8, 0.05) 26%, rgba(3, 5, 8, 0.10) 68%, rgba(3, 5, 8, 0.82) 100%) !important;
}

.duel-copy::before {
  background: radial-gradient(ellipse 64% 60% at 38% 50%, rgba(3, 5, 8, 0.92), rgba(3, 5, 8, 0.62) 56%, rgba(3, 5, 8, 0) 80%) !important;
}

.duel-title { filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6)); }
.duel-sub { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }

@media (max-width: 900px) {
  .duel-fog { opacity: .34 !important; }
}


/* 文案暗底边缘柔化，去掉生硬边界 */
.duel-copy::before {
  filter: blur(22px);
  opacity: .92;
}


/* 全页子弹层：去掉混合模式，改用普通透明合成（避免某些环境合成器不刷新） */
.page-bullets {
  mix-blend-mode: normal !important;
  opacity: .55 !important;
  will-change: auto;
}
@media (max-width: 720px) {
  .page-bullets { opacity: .42 !important; }
}


/* ===== 全页曳光弹（纯 CSS 动画，永不冻结） ===== */
.page-trails {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: .55;
}

.page-trails i {
  position: absolute;
  top: var(--y);
  left: -20%;
  width: var(--len, 180px);
  height: 1.5px;
  border-radius: 2px;
  transform: rotate(var(--r));
  transform-origin: left center;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    var(--tint, rgba(34,211,238,.35)) 55%,
    var(--tint-strong, rgba(190,245,255,.95)) 100%);
  animation: trailFly var(--d, 9s) linear infinite;
  animation-delay: var(--dl, 0s);
  filter: drop-shadow(0 0 6px var(--glow, rgba(34,211,238,.55)));
}

.page-trails i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--tint-strong, rgba(200,250,255,.95));
  box-shadow: 0 0 10px var(--glow, rgba(34,211,238,.8));
}

.page-trails i[style*="--c:gold"] {
  --tint: rgba(245,183,0,.35);
  --tint-strong: rgba(255,235,170,.95);
  --glow: rgba(245,183,0,.55);
}

.page-trails i[style*="--c:cyan"] {
  --tint: rgba(34,211,238,.33);
  --tint-strong: rgba(190,245,255,.95);
  --glow: rgba(34,211,238,.55);
}

@keyframes trailFly {
  0%   { left: -25%; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

@media (max-width: 900px) {
  .page-trails { opacity: .38; }
  .page-trails i:nth-child(n+9) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-trails { display: none; }
}

/* ============================================================
   SOLO TIER TESTS · 首页 v2（门面版）
   只作用于 body.home，不影响其他页面
   ============================================================ */

body.home {
  --bg: #06080b;
  --surface: #0d1117;
  --surface-2: #121821;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9f0f7;
  --dim: #96a5b4;
  --faint: #5e6b79;
  --cyan: #2fd8ec;
  --gold: #f2b01e;
  --r-sm: 3px;
  --r-md: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(242, 176, 30, 0.06), transparent 62%),
    radial-gradient(900px 520px at 6% 16%, rgba(47, 216, 236, 0.045), transparent 60%),
    var(--bg) !important;
  color: var(--text);
}

/* 统一容器宽度 */
body.home .container { max-width: 1180px; }

/* ============================================================
   01 首屏
   ============================================================ */

body.home .duel {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background: #06080b;
}

body.home .duel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 7vh, 96px);
  padding-bottom: clamp(40px, 7vh, 96px);
}

/* 标题：更大、更紧 */
body.home .duel-title {
  font-size: clamp(56px, 8.6vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0 0 26px;
  text-transform: uppercase;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.55));
}

body.home .duel-title-tail {
  display: block;
  font-size: 0.34em;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(233, 240, 247, 0.82);
  margin-top: 14px;
  text-shadow: none;
}

body.home .duel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 26px;
}

body.home .duel-sub {
  font-size: clamp(13.5px, 1.15vw, 15px);
  line-height: 1.85;
  color: var(--dim);
  max-width: 46ch;
  margin: 0 0 34px;
}

body.home .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 按钮：门面版 */
body.home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
}

body.home .btn:hover { transform: translateY(-2px); }

body.home .btn-primary {
  background: linear-gradient(180deg, #ffd24a, #e0a300);
  color: #1a1200;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(242, 176, 30, 0.22);
}

body.home .btn-primary:hover { box-shadow: 0 14px 34px rgba(242, 176, 30, 0.34); }

body.home .btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

body.home .btn-ghost:hover {
  border-color: rgba(47, 216, 236, 0.55);
  color: #d9f9ff;
  box-shadow: 0 0 22px rgba(47, 216, 236, 0.14);
}

body.home .btn-sm { padding: 8px 14px; font-size: 12px; }

/* 首屏数据 */
body.home .duel-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

body.home .duel-meta b {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

body.home .duel-meta i { width: 1px; height: 12px; background: var(--line-strong); }

/* 右侧擂主卡 */
body.home .duel-champ {
  position: relative;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(242, 176, 30, 0.22);
  background:
    radial-gradient(520px 200px at 88% 0%, rgba(242, 176, 30, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)) ,
    var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* 角标 */
body.home .duel-champ::before,
body.home .duel-champ::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(242, 176, 30, 0.55);
  pointer-events: none;
}

body.home .duel-champ::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-md); }
body.home .duel-champ::after  { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-md); }

/* 卡片内部用新风格 */
body.home .champ-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  text-decoration: none;
  color: inherit;
}

body.home .champ-top {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

body.home .champ-eyebrow {
  font: 600 10.5px/1 ui-monospace, monospace;
  letter-spacing: 0.18em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.home .champ-no {
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: 0.14em;
  color: var(--faint);
  border: 1px solid var(--line-strong);
  padding: 4px 7px;
  border-radius: var(--r-sm);
}

body.home .champ-main {
  display: contents !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}

body.home .champ-avatar {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

body.home .champ-avatar .avatar,
body.home .champ-avatar img { width: 62px !important; height: 62px !important; border-radius: 12px !important; }

body.home .champ-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

body.home .champ-name {
  font-size: 22px !important;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

body.home .champ-sub { font-size: 11.5px !important; color: var(--faint) !important; }

body.home .champ-score {
  display: inline-flex !important;
  align-items: baseline;
  gap: 4px;
  margin-left: auto;
}

body.home .champ-score b {
  font: 800 32px/1 ui-monospace, monospace;
  color: var(--gold);
  letter-spacing: -0.02em;
}

body.home .champ-score i { font-style: normal; font-size: 10.5px; color: var(--faint); }

body.home .champ-grades {
  grid-column: 1 / -1;
  display: flex !important;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

/* SCROLL */
body.home .duel-scroll {
  position: relative;
  margin: 0 auto 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font: 600 9.5px/1 ui-monospace, monospace;
  letter-spacing: 0.3em;
  color: var(--faint);
  text-decoration: none;
}

body.home .duel-scroll:hover { color: var(--cyan); }

/* ============================================================
   02 子导航
   ============================================================ */

body.home .subnav {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 30;
  background: rgba(6, 8, 11, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body.home .subnav-in { height: 52px; }

body.home .subnav-links a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

body.home .subnav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

body.home .subnav-links a.active {
  color: var(--gold);
  background: rgba(242, 176, 30, 0.10);
  box-shadow: inset 0 0 0 1px rgba(242, 176, 30, 0.24);
}

body.home .subnav-search input {
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  font-size: 12px;
  font-family: ui-monospace, monospace;
}

body.home .subnav-search button {
  border-radius: var(--r-sm);
  background: rgba(242, 176, 30, 0.10);
  border-color: rgba(242, 176, 30, 0.4);
  color: #ffd98a;
}

/* ============================================================
   03 数字条
   ============================================================ */

body.home .trust-strip {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

body.home .trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 26px 0;
}

body.home .trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 2px 22px;
  border-right: 1px solid var(--line);
  text-align: left;
}

body.home .trust-item:first-child { padding-left: 0; }
body.home .trust-item:last-child { border-right: 0; }

body.home .trust-item b {
  font: 800 clamp(26px, 3vw, 34px)/1 ui-monospace, monospace;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

body.home .trust-item span {
  font: 600 10px/1.4 ui-monospace, monospace;
  letter-spacing: 0.16em;
  color: var(--faint);
}

/* ============================================================
   04 通用版块
   ============================================================ */

body.home main { counter-reset: sec; }

body.home .section,
body.home .flow,
body.home .grade-section {
  counter-increment: sec;
  padding: clamp(52px, 7vh, 84px) 0;
  border-bottom: 1px solid var(--line);
}

body.home .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3.4vh, 36px);
  padding-top: 0;
}

body.home .section-head > div { position: relative; }

body.home .section-head > div::before {
  content: "0" counter(sec);
  display: block;
  font: 600 10.5px/1 ui-monospace, monospace;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.9;
}

body.home .section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

body.home .section-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--dim);
  max-width: 58ch;
}

/* ============================================================
   05 流程
   ============================================================ */

body.home .flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.home .flow-step {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}

body.home .flow-step:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 216, 236, 0.35);
  background: linear-gradient(180deg, rgba(47, 216, 236, 0.05), rgba(255, 255, 255, 0));
}

body.home .flow-num {
  display: inline-block;
  font: 800 11px/1 ui-monospace, monospace;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid rgba(47, 216, 236, 0.32);
  border-radius: var(--r-sm);
  padding: 5px 7px;
  margin-bottom: 18px;
}

body.home .flow-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

body.home .flow-step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--dim);
}

/* ============================================================
   06 等级标准
   ============================================================ */

body.home .grade-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.home .grade-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

body.home .grade-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  opacity: 0.9;
}

body.home .grade-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.04); }

body.home .gc-badge {
  font: 900 40px/1 ui-monospace, monospace;
  letter-spacing: -0.04em;
}

body.home .gc-range {
  font: 600 11.5px/1 ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: var(--dim);
}

body.home .gc-desc { font-size: 11.5px; color: var(--faint); }

body.home .g-s .gc-badge { color: #f2b01e; }
body.home .g-a .gc-badge { color: #ffd166; }
body.home .g-b .gc-badge { color: #3ee0a0; }
body.home .g-c .gc-badge { color: #2fd8ec; }
body.home .g-d .gc-badge { color: #8a98a8; }

body.home .g-s::after { background: linear-gradient(90deg, #f2b01e, #ffe9a3); }
body.home .g-a::after { background: linear-gradient(90deg, #c9971f, #ffd166); }
body.home .g-b::after { background: linear-gradient(90deg, #0f9b6c, #3ee0a0); }
body.home .g-c::after { background: linear-gradient(90deg, #0e7490, #2fd8ec); }
body.home .g-d::after { background: linear-gradient(90deg, #475569, #8a98a8); }

body.home .grade-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(242, 176, 30, 0.22);
  background: rgba(242, 176, 30, 0.05);
  font-size: 12.5px;
  line-height: 1.75;
  color: #e8d6ae;
}

body.home .grade-note b { color: var(--gold); }

/* ============================================================
   07 天梯前三
   ============================================================ */

body.home .podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

body.home .podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0));
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

body.home .podium-card:hover { transform: translateY(-3px); border-color: rgba(242, 176, 30, 0.4); }

body.home .podium-card.rank-1 {
  padding-top: 34px;
  border-color: rgba(242, 176, 30, 0.35);
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(242, 176, 30, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

body.home .podium-crown { position: absolute; right: 16px; top: 16px; color: var(--gold); }

body.home .podium-badge {
  align-self: flex-start;
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: 0.16em;
  color: var(--faint);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 5px 8px;
}

body.home .podium-card.rank-1 .podium-badge { color: var(--gold); border-color: rgba(242, 176, 30, 0.4); }

body.home .podium-avatar {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: 6px;
}

body.home .podium-avatar .avatar,
body.home .podium-avatar img { width: 58px !important; height: 58px !important; border-radius: 12px !important; }

body.home .podium-name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

body.home .podium-sub { font-size: 11.5px; color: var(--faint); }

body.home .podium-points { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }

body.home .podium-points b {
  font: 800 30px/1 ui-monospace, monospace;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

body.home .podium-card.rank-1 .podium-points b { color: var(--gold); }

body.home .podium-points i { font-style: normal; font-size: 10.5px; color: var(--faint); }

body.home .podium-grades {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   08 分布 / 考官 / 列表
   ============================================================ */

body.home .panel {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}

body.home .dist-panel { padding: 24px; }

body.home .dist-row { grid-template-columns: 52px minmax(0, 1fr) 64px 48px; }

body.home .dist-bar { height: 6px; background: rgba(255, 255, 255, 0.06); }

body.home .dist-bar i { background: linear-gradient(90deg, rgba(47, 216, 236, 0.85), rgba(242, 176, 30, 0.9)); }

/* 考官 */
body.home .proof-grid { display: block; }

body.home .examiners {
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

body.home .ex-head h3 { font-size: 15px; font-weight: 700; }
body.home .ex-head span { font: 600 10px/1 ui-monospace, monospace; letter-spacing: 0.14em; color: var(--faint); }

body.home .ex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }

body.home .ex-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s;
}

body.home .ex-row:hover { background: rgba(255, 255, 255, 0.035); border-color: var(--line); }

body.home .ex-ava {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font: 700 13px/1 ui-monospace, monospace;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

body.home .ex-name { font-size: 13px; }

body.home .ex-count { font: 600 12.5px/1 ui-monospace, monospace; color: var(--gold); }
body.home .ex-count em { font-style: normal; font-size: 10px; color: var(--faint); margin-left: 2px; }

/* 最新记录 / 升降级 */
body.home .mini-list, body.home .change-list { display: flex; flex-direction: column; gap: 2px; }

body.home .mini-row,
body.home .change-row {
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s;
}

body.home .mini-row:hover,
body.home .change-row:hover { background: rgba(255, 255, 255, 0.035); border-color: var(--line); }

body.home .mini-row { padding: 11px 12px; }

body.home .change-row { padding: 12px; }

/* CTA */
body.home .cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px;
  border-radius: var(--r-md);
  border: 1px solid rgba(242, 176, 30, 0.24);
  background:
    radial-gradient(700px 240px at 12% 0%, rgba(242, 176, 30, 0.09), transparent 68%),
    var(--surface);
}

body.home .cta-panel .section-title { font-size: clamp(20px, 2.4vw, 26px); }
body.home .cta-panel .section-desc { max-width: 52ch; }

/* 页脚更薄 */
body.home .site-footer { border-top: 1px solid var(--line); }

/* ============================================================
   09 响应式
   ============================================================ */

@media (max-width: 1100px) {
  body.home .duel-inner { grid-template-columns: 1fr; gap: 36px; }
  body.home .duel-title { font-size: clamp(52px, 10vw, 96px); }
}

@media (max-width: 900px) {
  body.home .duel { min-height: 0; }
  body.home .duel-inner { padding-top: 44px; padding-bottom: 44px; }
  body.home .duel-title { font-size: clamp(44px, 13vw, 72px); }
  body.home .duel-title-tail { font-size: 0.32em; letter-spacing: 0.18em; }

  body.home .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  body.home .trust-item { padding: 0; border-right: 0; }
  body.home .trust-item:nth-child(3) { grid-column: 1; }

  body.home .flow-grid,
  body.home .grade-grid,
  body.home .podium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .grade-grid .grade-card:last-child { grid-column: 1 / -1; }
  body.home .podium-grid { align-items: stretch; }

  body.home .ex-list { grid-template-columns: 1fr; }
  body.home .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
  body.home .flow-grid,
  body.home .grade-grid,
  body.home .podium-grid { grid-template-columns: 1fr; }
  body.home .grade-grid .grade-card:last-child { grid-column: auto; }
  body.home .hero-actions .btn { flex: 1 1 100%; }
  body.home .duel-meta { flex-wrap: wrap; gap: 10px; }
}


/* ===== 门面版首屏收尾 ===== */
body.home .duel-scroll {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 auto 28px !important;
  transform: none !important;
}

body.home .duel-tag { display: none !important; }

body.home .duel-sub br { display: none; }
body.home .duel-sub { max-width: 42ch; }

@media (max-width: 900px) {
  body.home .duel-scroll { margin-bottom: 18px !important; }
}


/* 去掉旧的标题编号胶囊与短线，只保留新版上方 01 编号 */
body.home .section-title::after,
body.home .section-title::before { display: none !important; }

/* 首屏说明恢复两行 */
body.home .duel-sub { max-width: 48ch; }
body.home .duel-sub br { display: inline; }

/* 数字条标签再清楚一点 */
body.home .trust-item span { color: #6d7b8a; letter-spacing: 0.12em; }


/* 关掉旧的全站计数，首页只用新规则编号 */


/* 首页独立计数器（不复用旧的 sec） */
body.home main { counter-reset: hsec; }
body.home .section, body.home .flow { counter-increment: hsec; }
body.home .section-head > div::before {
  content: "0" counter(hsec);
}


/* 天梯卡皇冠尺寸修正 */
body.home .podium-crown {
  position: absolute !important;
  right: 14px !important;
  top: 14px !important;
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  color: var(--gold);
}
body.home .podium-crown svg { width: 16px !important; height: 16px !important; display: block; }

/* 统一前三卡高度，底部对齐 */
body.home .podium-grid { align-items: stretch; }
body.home .podium-card { justify-content: flex-start; }


/* 皇冠图形在门面版里显示异常，隐掉（冠军已有徽章标识） */
body.home .podium-crown { display: none !important; }


/* 手机端子导航：链接可横向滑，搜索收成一个按钮 */
@media (max-width: 720px) {
  body.home .subnav-in { gap: 8px; padding-top: 8px; padding-bottom: 8px; height: auto; }
  body.home .subnav-links { flex: 1 1 auto; overflow-x: auto; }
  body.home .subnav-links a { padding: 7px 10px; font-size: 12px; }

  body.home .subnav-search { flex: 0 0 auto; }
  body.home .subnav-search input { width: 0; padding: 0; border: 0; opacity: 0; }
  body.home .subnav-search input:focus { width: 132px; padding: 7px 10px; border: 1px solid var(--line-strong); opacity: 1; }
  body.home .subnav-search button { padding: 7px 10px; }

  body.home .section-head > div::before { letter-spacing: 0.16em; }
}


/* 首屏说明稍微放宽，避免“名。”单独一行 */
body.home .duel-sub { max-width: 54ch; }
