/* 砺阵 · 竞赛大屏视觉语言
 * 对照：强网杯地图屏 / 鹏城杯环形战场 / 强网拟态地球屏 / 凌虚题目卡
 * 大屏 = 深蓝战情室；CMS 后台另见 admin-console.css
 */
:root {
  --sk-bg0: #020617;
  --sk-bg1: #06102a;
  --sk-bg2: #0a1a3a;
  --sk-panel: rgba(8, 22, 52, 0.72);
  --sk-panel-solid: #0b1733;
  --sk-line: rgba(56, 189, 248, 0.35);
  --sk-line-soft: rgba(56, 189, 248, 0.18);
  --sk-cyan: #38bdf8;
  --sk-cyan-hot: #7dd3fc;
  --sk-gold: #fbbf24;
  --sk-silver: #cbd5e1;
  --sk-bronze: #d97706;
  --sk-red: #f43f5e;
  --sk-ok: #34d399;
  --sk-text: #e2e8f0;
  --sk-muted: #94a3b8;
  --sk-font: "DIN Alternate", "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sk-mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
}

html.sk-html, body.sk-app {
  margin: 0;
  min-height: 100%;
  color: var(--sk-text);
  font-family: var(--sk-font);
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(14, 116, 180, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(30, 58, 138, 0.25), transparent 50%),
    linear-gradient(180deg, var(--sk-bg1), var(--sk-bg0));
  overflow-x: hidden;
}

body.sk-app::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  z-index: 0;
}

.sk-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* —— Header：中央赛名 + 两侧导航/状态（强网杯） —— */
.sk-header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.4fr) 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem 0.4rem;
}
.sk-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.92rem;
}
.sk-nav a {
  color: var(--sk-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}
.sk-nav a:hover, .sk-nav a.active { color: var(--sk-gold); }
.sk-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sk-gold);
  box-shadow: 0 0 8px var(--sk-gold);
}
.sk-title-wrap { text-align: center; }
.sk-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8fafc;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}
.sk-title-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--sk-muted);
  letter-spacing: 0.12em;
}
.sk-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}
.sk-status {
  font-size: 0.85rem;
  color: var(--sk-muted);
}
.sk-status b { color: var(--sk-gold); font-weight: 600; }
.sk-clock {
  font-family: var(--sk-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sk-cyan-hot);
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.sk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--sk-line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(14, 116, 180, 0.45), rgba(8, 47, 73, 0.6));
  color: #e0f2fe;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}
.sk-btn:hover { border-color: var(--sk-cyan); box-shadow: 0 0 16px rgba(56, 189, 248, 0.25); }

/* —— 玻璃面板（半透明 + 霓虹描边） —— */
.sk-panel {
  position: relative;
  background: var(--sk-panel);
  border: 1px solid var(--sk-line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 0.85rem;
  min-height: 0;
}
.sk-panel::before,
.sk-panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--sk-cyan);
  border-style: solid;
  pointer-events: none;
}
.sk-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.sk-panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.sk-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--sk-line-soft);
}
.sk-panel-hd h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sk-cyan-hot);
}
.sk-panel-hd .sk-meta { font-size: 0.75rem; color: var(--sk-muted); }

/* —— 主布局：左榜 · 中战场 · 右动态 —— */
.sk-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr minmax(260px, 320px);
  gap: 0.75rem;
  padding: 0.35rem 1rem 0.75rem;
  min-height: 0;
}
@media (max-width: 1100px) {
  .sk-header { grid-template-columns: 1fr; text-align: center; }
  .sk-header-right, .sk-nav { justify-content: center; }
  .sk-stage { grid-template-columns: 1fr; }
}

/* —— 排行榜 —— */
.sk-rank-list { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: calc(100vh - 160px); }
.sk-rank-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.88rem;
}
.sk-rank-list .n {
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.8);
  color: var(--sk-muted);
}
.sk-rank-list li:nth-child(1) .n { background: linear-gradient(135deg, #fbbf24, #b45309); color: #111; }
.sk-rank-list li:nth-child(2) .n { background: linear-gradient(135deg, #e2e8f0, #64748b); color: #111; }
.sk-rank-list li:nth-child(3) .n { background: linear-gradient(135deg, #fb923c, #9a3412); color: #fff; }
.sk-rank-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-rank-list .score { font-family: var(--sk-mono); color: var(--sk-gold); font-weight: 600; }

/* —— 中心战场 / 分类地图 —— */
.sk-arena {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border: 1px solid var(--sk-line-soft);
  background:
    radial-gradient(circle at 50% 55%, rgba(14, 165, 233, 0.18), transparent 55%),
    rgba(2, 8, 24, 0.45);
  overflow: hidden;
}
.sk-arena canvas, .sk-arena #skArenaChart { width: 100%; height: 100%; min-height: 420px; }
.sk-islands {
  position: relative;
  width: min(92%, 720px);
  height: min(70vh, 520px);
}
.sk-island {
  position: absolute;
  min-width: 110px;
  padding: 0.85rem 1rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--sk-line);
  background: rgba(8, 28, 58, 0.75);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.15), inset 0 0 30px rgba(14, 165, 233, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  clip-path: polygon(8% 0, 100% 0, 100% 78%, 92% 100%, 0 100%, 0 22%);
}
.sk-island:hover, .sk-island.active {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.45);
  border-color: var(--sk-cyan-hot);
}
.sk-island .lab {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f0f9ff;
}
.sk-island .cnt {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--sk-cyan);
  font-family: var(--sk-mono);
}
.sk-island.i0 { left: 8%; top: 18%; }
.sk-island.i1 { left: 38%; top: 8%; }
.sk-island.i2 { right: 10%; top: 16%; }
.sk-island.i3 { left: 18%; bottom: 18%; }
.sk-island.i4 { left: 48%; bottom: 10%; }
.sk-island.i5 { right: 12%; bottom: 22%; background: rgba(88, 28, 28, 0.55); border-color: rgba(251, 113, 133, 0.45); }

/* —— 动态 feed —— */
.sk-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: calc(100vh - 140px);
}
.sk-feed-box { flex: 1; min-height: 160px; overflow: hidden; display: flex; flex-direction: column; }
.sk-feed-list {
  flex: 1;
  overflow: auto;
  font-size: 0.78rem;
  font-family: var(--sk-mono);
  line-height: 1.45;
}
.sk-feed-list div {
  padding: 0.35rem 0.15rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}
.sk-feed-list .atk { color: #fda4af; }
.sk-feed-list .ok { color: #6ee7b7; }
.sk-feed-list .warn { color: #fcd34d; }
.sk-feed-list .flame::before {
  content: "◆";
  color: var(--sk-red);
  margin-right: 0.35rem;
  font-size: 0.65rem;
}
.sk-feed-list .user::before {
  content: "●";
  color: var(--sk-cyan);
  margin-right: 0.35rem;
  font-size: 0.55rem;
}

/* —— 底栏日志 —— */
.sk-footer {
  margin: 0 1rem 0.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--sk-line-soft);
  background: rgba(2, 8, 24, 0.65);
  max-height: 7.5rem;
  overflow: hidden;
}
.sk-footer h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--sk-muted);
}
.sk-footer-log {
  height: 5.2rem;
  overflow: auto;
  font-family: var(--sk-mono);
  font-size: 0.75rem;
}
.sk-footer-log div { padding: 0.12rem 0; color: #a7f3d0; }
.sk-footer-log .atk { color: #fda4af; }

/* —— 凌虚风格题目卡 —— */
.sk-chal-page { padding: 0.75rem 1.25rem 1.5rem; }
.sk-chal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}
@media (max-width: 900px) { .sk-chal-layout { grid-template-columns: 1fr; } }
.sk-user-card {
  padding: 1rem;
  text-align: center;
}
.sk-user-card .hex {
  width: 96px; height: 96px; margin: 0.75rem auto;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(145deg, #fbbf24, #b45309);
  color: #111; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.45);
}
.sk-user-card .row { text-align: left; font-size: 0.78rem; margin: 0.35rem 0; color: var(--sk-muted); }
.sk-user-card .row b { color: var(--sk-text); font-weight: 500; word-break: break-all; }
.sk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.sk-chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--sk-line-soft);
  background: rgba(8, 22, 52, 0.6);
  color: var(--sk-muted);
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 2px;
}
.sk-chip.active {
  color: #111;
  background: var(--sk-gold);
  border-color: var(--sk-gold);
  font-weight: 700;
}
.sk-chal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.sk-chal-card {
  position: relative;
  padding: 1rem 0.9rem 0.75rem;
  background: rgba(8, 22, 52, 0.78);
  border: 1px solid var(--sk-line);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.sk-chal-card::before, .sk-chal-card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--sk-cyan);
  border-style: solid;
}
.sk-chal-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.sk-chal-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.sk-chal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}
.sk-chal-card .t { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.sk-chal-card .pts {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sk-gold);
  font-family: var(--sk-mono);
  margin: 0.25rem 0 0.5rem;
}
.sk-chal-card .bloods {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: var(--sk-muted);
  flex: 1;
}
.sk-chal-card .bloods span::before { margin-right: 0.25rem; }
.sk-chal-card .bloods .b1::before { content: "🥇"; }
.sk-chal-card .bloods .b2::before { content: "🥈"; }
.sk-chal-card .bloods .b3::before { content: "🥉"; }
.sk-chal-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--sk-line-soft);
  font-size: 0.72rem;
  color: var(--sk-cyan);
}
.sk-empty { color: var(--sk-muted); padding: 1.5rem; text-align: center; }

/* —— 大屏目录 hub —— */
.sk-hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}
.sk-hub h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}
.sk-hub .lead { color: var(--sk-muted); margin-bottom: 1.25rem; font-size: 0.92rem; }
.sk-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.sk-hub-card {
  display: block;
  padding: 1.1rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--sk-panel);
  border: 1px solid var(--sk-line-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sk-hub-card:hover {
  border-color: var(--sk-cyan);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}
.sk-hub-card strong { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--sk-cyan-hot); }
.sk-hub-card p { margin: 0; font-size: 0.82rem; color: var(--sk-muted); line-height: 1.45; }
.sk-hub-card .tag {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--sk-gold);
}
