/* 星火社区 · WARDOGS 官网
   深色战术风：黑底、火花橙、冷蓝点缀。所有视觉都由 CSS / 内联 SVG 生成，不依赖外部图片。 */

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #08090c;
  --bg-2: #0b0d12;
  --panel: #0f1218;
  --panel-2: #12161e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eaf0;
  --text-dim: #9aa0ad;
  --text-faint: #626875;
  --spark: #ff7a18;
  --spark-2: #ffb347;
  --spark-soft: rgba(255, 122, 24, 0.14);
  --blue: #4cb1ef;
  --red: #fa503e;
  --green: #1dd65c;
  --gold: #f2c14e;
  --ok: #43d17a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --max: 1240px;
  --font: "Barlow", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Barlow", "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 50% -240px, rgba(255, 122, 24, 0.13), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
svg { display: block; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  padding: 10px 24px;
  background: rgba(8, 9, 12, 0.86);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 122, 24, 0.18), rgba(255, 122, 24, 0.02));
  border: 1px solid rgba(255, 122, 24, 0.35);
  color: var(--spark);
  box-shadow: inset 0 0 18px rgba(255, 122, 24, 0.12);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark path { fill: currentColor; }
.brand-mark .spark { fill: #ffd9a3; }
.brand-mark.small { width: 34px; height: 34px; }
.brand-type { display: flex; flex-direction: column; line-height: 1.05; }
.brand-type strong { font-size: 17px; letter-spacing: 0.06em; }
.brand-type small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--text-faint); }

.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a {
  position: relative;
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--spark);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.topbar-side { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.live-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.live-pill b { color: var(--text); font-weight: 500; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(67, 209, 122, 0.8);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.admin-link { font-size: 12px; color: var(--text-faint) !important; }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.menu-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: var(--text); margin: 3px auto;
  transition: transform 0.25s, opacity 0.25s;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--spark), #ff9b3d);
  color: #180a02;
  box-shadow: 0 12px 36px rgba(255, 122, 24, 0.28);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(255, 122, 24, 0.38); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-outline:hover { border-color: var(--spark); color: var(--spark-2); }
.btn-ghost { color: var(--text-dim); }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 12.5px; border-color: var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text-dim); }
.btn-small:hover { color: var(--text); border-color: var(--line-strong); }
.arrow { font-family: var(--mono); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 24px 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; left: 50%; top: 4%; width: 900px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 122, 24, 0.2), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 62% at 50% 34%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 34%, #000 20%, transparent 78%);
}
.hero-streaks {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 122, 24, 0.09) 46%, transparent 52%),
    linear-gradient(115deg, transparent 62%, rgba(255, 179, 71, 0.06) 67%, transparent 72%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 52px;
  align-items: center;
  padding-bottom: 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--spark-2);
}
.eyebrow span { width: 26px; height: 1px; background: linear-gradient(90deg, var(--spark), transparent); }
.hero h1 { margin: 0; line-height: 0.94; letter-spacing: -0.02em; }
.h1-cn {
  display: block;
  font-size: clamp(62px, 10vw, 118px);
  font-weight: 500;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff 30%, #cfd2da 70%, #8a8f9a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(255, 122, 24, 0.08);
}
.h1-en {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.8vw, 18px);
  letter-spacing: 0.55em;
  color: var(--spark-2);
}
.hero-lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.85;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--text-dim);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat b {
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat span { font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.06em; }

/* Hero card */
.hero-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(255, 122, 24, 0.07), transparent 38%),
    rgba(12, 14, 19, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.4), transparent 35%, transparent 65%, rgba(76, 177, 239, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--text-faint); }
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-dim);
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.status-chip.is-offline .live-dot { background: var(--red); box-shadow: 0 0 10px rgba(250, 80, 62, 0.7); animation: none; }
.hero-scoreboard { display: flex; flex-direction: column; gap: 14px; }
.score-row { display: flex; align-items: center; gap: 12px; }
.score-name { width: 86px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.score-name i { width: 7px; height: 7px; border-radius: 2px; }
.score-bar { position: relative; flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.score-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.score-val { width: 44px; text-align: right; font-family: var(--mono); font-size: 16px; }
.hero-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint);
}
.skeleton { opacity: 0.4; }
.skeleton .score-name { color: var(--text-faint); }
.skeleton .score-bar span { width: 45%; background: rgba(255, 255, 255, 0.12) !important; }

/* Ticker */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.ticker-track {
  display: flex; gap: 40px;
  width: max-content;
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  animation: ticker 38s linear infinite;
}
.ticker-track b { color: var(--spark-2); font-weight: 500; }
.ticker-track .sep { color: rgba(255, 255, 255, 0.14); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 0;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.section-sub { margin: 10px 0 0; color: var(--text-dim); font-size: 14px; }
.section-tools { display: flex; align-items: center; gap: 10px; }
.source-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line);
}
.source-chip.is-demo { color: var(--gold); border-color: rgba(242, 193, 78, 0.3); }
.source-chip.is-live { color: var(--ok); border-color: rgba(67, 209, 122, 0.3); }

/* Live */
.live-meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}
.meta-item { background: var(--panel); padding: 13px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-item span { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.08em; }
.meta-item b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.faction-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  min-height: 190px;
}
.faction-card::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: var(--fcolor, var(--spark));
  opacity: 0.1;
  filter: blur(30px);
}
.faction-card .f-top { display: flex; align-items: center; justify-content: space-between; }
.faction-card .f-name { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); }
.faction-card .f-name i { width: 9px; height: 9px; border-radius: 2px; background: var(--fcolor, var(--spark)); box-shadow: 0 0 12px var(--fcolor, var(--spark)); }
.faction-card .f-pos { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.faction-card .f-score {
  margin: 16px 0 6px;
  font-family: var(--mono);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 500;
  color: var(--fcolor, var(--text));
}
.faction-card .f-score small { font-size: 12px; color: var(--text-faint); margin-left: 6px; }
.f-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 16px; }
.f-bar span { display: block; height: 100%; width: 0; background: var(--fcolor, var(--spark)); border-radius: inherit; transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.f-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.f-stats div { display: flex; flex-direction: column; gap: 1px; }
.f-stats b { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.f-stats span { font-size: 10px; color: var(--text-faint); }
.skeleton-card { opacity: 0.55; min-height: 190px; }

.live-lower { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 14px; margin-top: 14px; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: 0.04em; }
.panel-note { font-size: 11.5px; color: var(--text-faint); }
.kill-leaders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.kill-leader {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  min-width: 0;
}
.kill-leader .kl-rank { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.kill-leader .kl-name { display: block; margin: 3px 0 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kill-leader .kl-kills { font-family: var(--mono); font-size: 17px; color: var(--spark-2); }
.kill-leader .kl-kills small { font-size: 10px; color: var(--text-faint); margin-left: 2px; }
.kill-feed { display: flex; flex-direction: column; gap: 7px; max-height: 236px; overflow: auto; padding-right: 4px; }
.kill-feed::-webkit-scrollbar { width: 5px; }
.kill-feed::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
.kill-line {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px;
  min-width: 0;
}
.kill-line .k-time { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); flex-shrink: 0; width: 42px; }
.kill-line .k-killer { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kill-line .k-arrow { color: var(--red); font-family: var(--mono); flex-shrink: 0; }
.kill-line .k-victim { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kill-line .k-weapon { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); flex-shrink: 0; }
.empty { padding: 26px 10px; text-align: center; color: var(--text-faint); font-size: 13px; margin: 0; }

.intel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.intel-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.intel-col h4 {
  margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--text-faint);
}
.intel-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-dim); }
.intel-row b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.intel-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 4px; }
.intel-bar span { display: block; height: 100%; width: 0; background: var(--fcolor, var(--spark)); transition: width 0.9s; }
.intel-block { display: flex; flex-direction: column; gap: 5px; }
.intel-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-faint); }
.intel-label b { color: var(--text-dim); font-family: var(--mono); }

/* Board */
.section-board { padding-top: 110px; }
.board-count { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.board-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.segmented {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  flex-wrap: wrap;
}
.seg {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg:hover { color: var(--text); }
.seg.active { background: rgba(255, 122, 24, 0.14); color: var(--spark-2); box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.dot.blue { background: var(--blue); }
.dot.red { background: var(--red); }
.dot.green { background: var(--green); }
.board-tools { display: flex; align-items: center; gap: 10px; }
.search {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-faint);
}
.search svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.search input { border: 0; outline: 0; background: transparent; color: var(--text); width: 190px; font-size: 12.5px; }
.search input::placeholder { color: var(--text-faint); }
.select {
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 12.5px;
  outline: 0;
  cursor: pointer;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: auto;
  max-height: 640px;
}
.board-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.board-table thead th {
  position: sticky; top: 0; z-index: 3;
  text-align: left;
  padding: 13px 14px;
  background: #0c0f14;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.board-table th.sortable { cursor: pointer; user-select: none; }
.board-table th.sortable:hover { color: var(--text); }
.board-table th.sortable i { display: inline-block; width: 0; height: 0; margin-left: 4px; vertical-align: middle; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 5px solid rgba(255, 255, 255, 0.18); }
.board-table th.sortable.is-active { color: var(--spark-2); }
.board-table th.sortable.is-active i { border-top-color: var(--spark-2); }
.board-table th.sortable.is-active.desc i { transform: rotate(180deg); }
.board-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 13px;
  white-space: nowrap;
}
.board-table tbody tr { transition: background 0.15s; }
.board-table tbody tr:hover { background: rgba(255, 122, 24, 0.045); }
.board-table tbody tr:last-child td { border-bottom: 0; }
.col-rank { width: 64px; }
.col-num { text-align: right !important; width: 90px; }
.col-player { min-width: 220px; }
.col-faction { width: 100px; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.035);
}
tr:nth-child(1) .rank-badge { color: #1a0d02; background: linear-gradient(135deg, #ffd9a3, #ff9b3d); }
tr:nth-child(2) .rank-badge { color: #d9dee6; background: rgba(217, 222, 230, 0.16); }
tr:nth-child(3) .rank-badge { color: #f0c08a; background: rgba(240, 192, 138, 0.14); }
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  overflow: hidden;
}
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-main { min-width: 0; }
.player-name { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.player-id { display: block; font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.faction-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
}
.faction-tag i { width: 7px; height: 7px; border-radius: 2px; }
.num { font-family: var(--mono); font-size: 14px; text-align: right; }
.num.cash { color: var(--gold); }
.num.kills { color: var(--text); }
.num.deaths { color: var(--text-dim); }
.num.assists { color: var(--blue); }
.num.ping { color: var(--text-faint); font-size: 12px; }
.rank-delta { font-family: var(--mono); font-size: 9.5px; margin-left: 4px; }
.rank-delta.up { color: var(--ok); }
.rank-delta.down { color: var(--red); }
.table-empty { text-align: center !important; padding: 46px 20px !important; color: var(--text-faint); }
.board-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--text-faint); flex-wrap: wrap; }
.board-legend { display: inline-flex; align-items: center; gap: 8px; }
.board-legend .dot { margin-left: 6px; }

/* Server */
.server-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.connect-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(76, 177, 239, 0.07), transparent 70%),
    linear-gradient(160deg, rgba(255, 122, 24, 0.05), transparent 50%),
    var(--panel);
}
.connect-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connect-head h3 { margin: 0; font-size: 20px; font-weight: 500; }
.connect-copy { color: var(--text-dim); font-size: 13px; margin: 10px 0 22px; }
.connect-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.connect-label { width: 84px; flex-shrink: 0; font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.06em; }
.connect-line code, .connect-line span:not(.connect-label) { font-family: var(--mono); font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.connect-line code { flex: 1; }
.connect-line .btn { margin-left: auto; }
.connect-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rotation { display: flex; flex-direction: column; gap: 8px; }
.rotation-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
}
.rotation-item.is-now { border-color: rgba(255, 122, 24, 0.35); background: rgba(255, 122, 24, 0.06); }
.rotation-item .r-idx { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); width: 20px; }
.rotation-item .r-map { flex: 1; font-size: 12.5px; }
.rotation-item .r-tag { font-family: var(--mono); font-size: 10px; color: var(--spark-2); }
.rotation-item .r-tag.muted { color: var(--text-faint); }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--panel);
}
.rule-card b { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.rule-card p { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.75; }

/* Community */
.section-community { padding-top: 110px; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 14px; }
.feature-news {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 280px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(255, 122, 24, 0.14), transparent 70%),
    var(--panel);
  overflow: hidden;
}
.feature-news::after {
  content: "";
  position: absolute; right: -60px; bottom: -70px;
  width: 220px; height: 220px;
  border: 1px solid rgba(255, 122, 24, 0.15);
  border-radius: 50%;
}
.news-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.14);
  border: 1px solid rgba(255, 122, 24, 0.3);
  color: var(--spark-2);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.feature-news h3 { margin: 18px 0 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.25; }
.feature-news p { margin: 12px 0 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.85; max-width: 640px; }
.news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 26px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.news-foot a { color: var(--spark-2); }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--panel);
  transition: border-color 0.2s, background 0.2s;
}
.news-item:hover { border-color: rgba(255, 122, 24, 0.3); background: var(--panel-2); }
.news-item .n-meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.news-item .n-tag { color: var(--spark-2); }
.news-item b { display: block; margin: 6px 0 4px; font-size: 14px; font-weight: 500; }
.news-item p { margin: 0; font-size: 12px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--panel);
  display: flex; flex-direction: column; gap: 7px;
}
.event-card .e-when { font-family: var(--mono); font-size: 10.5px; color: var(--spark-2); letter-spacing: 0.06em; }
.event-card b { font-size: 14.5px; font-weight: 500; }
.event-card p { margin: 0; font-size: 12px; color: var(--text-dim); line-height: 1.7; }

/* Join */
.section-join { padding-top: 110px; padding-bottom: 96px; }
.join-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 122, 24, 0.28);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(255, 122, 24, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%),
    #0d0f14;
  overflow: hidden;
}
.join-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 80% at 20% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 20%, #000, transparent 75%);
  pointer-events: none;
}
.join-copy, .join-actions { position: relative; z-index: 2; }
.join-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: 0.03em; }
.join-copy > p:not(.eyebrow) { color: var(--text-dim); font-size: 13.5px; line-height: 1.85; max-width: 520px; }
.join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.join-step {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  display: flex; flex-direction: column; gap: 4px;
}
.join-step b { font-family: var(--mono); font-size: 11px; color: var(--spark-2); }
.join-step span { font-size: 12.5px; color: var(--text-dim); }
.join-actions { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.join-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.join-link:hover { border-color: rgba(255, 122, 24, 0.35); background: rgba(255, 122, 24, 0.06); transform: translateX(2px); }
.join-link .jl-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 122, 24, 0.12);
  color: var(--spark-2);
  font-family: var(--mono); font-size: 12px;
}
.join-link .jl-main { min-width: 0; }
.join-link b { display: block; font-size: 13.5px; font-weight: 500; }
.join-link span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.join-link .jl-arrow { margin-left: auto; color: var(--text-faint); font-family: var(--mono); }

.faq-wrap { margin-top: 54px; }
.section-head.compact { margin-bottom: 18px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: transparent; border: 0;
  text-align: left; cursor: pointer;
  font-size: 13.5px;
}
.faq-q i { margin-left: auto; color: var(--text-faint); font-family: var(--mono); font-style: normal; transition: transform 0.25s; }
.faq-item.open .faq-q i { transform: rotate(45deg); color: var(--spark-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { margin: 0; padding: 0 18px 18px; color: var(--text-dim); font-size: 12.5px; line-height: 1.8; }

/* Footer */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); margin-top: 20px; background: rgba(255, 255, 255, 0.015); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.footer-brand strong { font-size: 15px; letter-spacing: 0.05em; }
.footer-brand p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--text-dim); }
.footer-links a:hover { color: var(--spark-2); }
.footer-meta { margin-left: auto; display: flex; gap: 16px; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }

.noscript { position: fixed; z-index: 100; inset: auto 20px 20px; padding: 14px; border-radius: 12px; background: var(--red); color: #fff; text-align: center; }

/* 滚动出现 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 34px; }
  .live-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kill-leaders { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .f-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intel { gap: 12px; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; top: 72px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(10, 12, 16, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    margin: 0; z-index: 70;
  }
  .nav a { padding: 12px; border-radius: 8px; }
  .nav a:hover { background: rgba(255, 255, 255, 0.04); }
  .nav a::after { display: none; }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-toggle { display: grid; }
  .topbar { gap: 12px; }
  .live-pill { display: none; }
  .hero { padding-top: 118px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding-bottom: 44px; }
  .hero-card { max-width: 520px; }
  .hero-stats { margin-top: 32px; }
  .section { padding-top: 78px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .faction-grid { grid-template-columns: 1fr; }
  .live-lower { grid-template-columns: 1fr; }
  .intel { grid-template-columns: 1fr; }
  .server-layout { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .join-card { grid-template-columns: 1fr; padding: 26px; }
  .board-tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .footer-meta { margin-left: 0; }
}
@media (max-width: 620px) {
  .topbar { padding: 14px 16px; }
  .topbar.is-stuck { padding: 9px 16px; }
  .brand-type small { display: none; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero h1 { letter-spacing: 0.03em; }
  .h1-cn { font-size: clamp(52px, 17vw, 76px); }
  .hero-actions .btn { flex: 1; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 1px; }
  .hero-card { padding: 18px; }
  .section { padding-left: 16px; padding-right: 16px; padding-top: 64px; }
  .live-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kill-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kill-leader:last-child { display: none; }
  .panel { padding: 16px; }
  .board-toolbar { gap: 10px; }
  .segmented { width: 100%; justify-content: space-between; }
  .seg { padding: 7px 10px; flex: 1; justify-content: center; }
  .board-tools { flex-wrap: wrap; }
  .table-wrap { max-height: 70vh; }
  .board-table { min-width: 640px; }
  .connect-card { padding: 18px; }
  .connect-line { flex-wrap: wrap; gap: 8px; }
  .connect-label { width: 100%; }
  .connect-line .btn { margin-left: 0; }
  .feature-news { padding: 20px; min-height: 240px; }
  .join-card { padding: 22px; }
  .join-steps { grid-template-columns: 1fr; }
  .footer-inner { padding: 26px 16px; gap: 16px; }
  .footer-links { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
