/* ============================================================
   CS2 道具点位库 · 样式
   ============================================================ */

:root {
  --bg: #080a0d;
  --bg-soft: #0b0f14;
  --panel: #10161d;
  --panel-2: #141c25;
  --line: #1e2935;
  --line-strong: #2b3a4a;
  --text: #e9eef4;
  --muted: #94a2b3;
  --dim: #65727f;
  --accent: #ff8a1f;
  --accent-2: #ffb35c;
  --accent-soft: rgba(255, 138, 31, 0.12);
  --blue: #3ea6ff;
  --green: #4ade80;
  --red: #ff5d73;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 66px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(255, 138, 31, 0.13), transparent 60%),
    radial-gradient(820px 520px at 92% -6%, rgba(62, 166, 255, 0.09), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

body.modal-open { overflow: hidden; }

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

button,
input { font: inherit; color: inherit; }

button { cursor: pointer; }

::selection { background: rgba(255, 138, 31, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

.viz-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 10, 13, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #171006;
  background: linear-gradient(145deg, var(--accent-2), var(--accent) 55%, #e56c00);
  box-shadow: 0 0 0 1px rgba(255, 179, 92, 0.4) inset, 0 8px 22px -8px rgba(255, 138, 31, 0.9);
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-text { display: grid; line-height: 1.05; }

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--dim);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }

.nav-link.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-link .nav-badge[hidden] { display: none; }

.nav-link .nav-badge {
  display: inline-block;
  min-width: 17px;
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(255, 138, 31, 0.16);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
  vertical-align: 1px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 230px;
  flex-shrink: 0;
}

.search svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--dim);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search input::placeholder { color: var(--dim); }

.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration,
.search input::-ms-clear {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search input:focus {
  outline: none;
  border-color: rgba(255, 138, 31, 0.55);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.12);
}

.search kbd {
  position: absolute;
  right: 9px;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  pointer-events: none;
}

/* ---------------- Hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
  padding: 78px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 9px;
  border: 1px solid rgba(255, 138, 31, 0.28);
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.08);
  font-size: 12px;
  color: #ffc98d;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 138, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 31, 0); }
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #ffd9ae, var(--accent) 46%, #ff7a00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .thin {
  display: block;
  margin-top: 6px;
  color: #c3cedb;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-sub b { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 21px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.18s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #171006;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 30px -14px rgba(255, 138, 31, 0.85);
}

.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover { border-color: #40536a; background: rgba(255, 255, 255, 0.06); }

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.stat {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--dim);
}

/* 雷达装饰 */

.radar {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #0a0f14;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}

.radar-head,
.radar-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.radar-head span:last-child { color: var(--accent-2); }

.radar-foot {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.radar-body {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  margin: 12px 0 4px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 138, 31, 0.07), transparent 62%),
    #070b0f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.radar-body .radar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: brightness(1.1) contrast(1.05) saturate(1.06) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}

.radar-sweep {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(255, 138, 31, 0.2) 350deg, transparent 360deg);
  mask-image: radial-gradient(circle, transparent 12%, #000 70%);
  -webkit-mask-image: radial-gradient(circle, transparent 12%, #000 70%);
  animation: radar-spin 9s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin { to { rotate: 360deg; } }

.radar-ping {
  position: absolute;
  z-index: 5;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.16), 0 0 14px rgba(255, 138, 31, 0.8);
}

.radar-ping::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 138, 31, 0.5);
  border-radius: 50%;
  animation: ping-ring 2.6s ease-out infinite;
}

@keyframes ping-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.radar-ping.p1 { left: 61%; top: 36%; }
.radar-ping.p2 { left: 30%; top: 63%; background: var(--blue); box-shadow: 0 0 0 4px rgba(62, 166, 255, 0.14), 0 0 14px rgba(62, 166, 255, 0.7); animation-delay: 1.2s; }
.radar-ping.p2::after { border-color: rgba(62, 166, 255, 0.5); animation-delay: 1.2s; }

.radar-cross { position: absolute; inset: 0; pointer-events: none; }
.radar-cross::before,
.radar-cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
}
.radar-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.radar-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.radar-tag {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 138, 31, 0.3);
  border-radius: 5px;
  background: rgba(10, 15, 20, 0.85);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

/* ---------------- 区块 ---------------- */

.section { padding: 26px 0 30px; }

#maps { scroll-margin-top: calc(var(--header-h) + 18px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.section-link:hover { color: var(--accent-2); border-color: rgba(255, 138, 31, 0.5); }

/* ---------------- 地图卡片 ---------------- */

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.map-card {
  --map: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #111821, #0c1218);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  isolation: isolate;
}

.map-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--map) 55%, var(--line));
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.9), 0 0 0 1px color-mix(in srgb, var(--map) 18%, transparent);
}

.map-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--map) 13%, transparent), transparent 68%),
    #080c10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.map-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.033) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 85%);
}

.map-thumb .radar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: brightness(1.16) contrast(1.05) saturate(1.06) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s ease, filter 0.3s ease;
}

.map-card:hover .map-thumb .radar-img {
  filter: brightness(1.18) contrast(1.07) saturate(1.1) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}

.map-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.055) 45%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.map-card:hover .map-thumb::after { transform: translateX(120%); }

.map-num {
  position: absolute;
  z-index: 4;
  left: 12px;
  top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--map) 75%, #fff);
  opacity: 0.7;
}

.map-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 16px;
  flex: 1;
}

.map-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.map-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.map-title span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.map-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  flex: 1;
}

.map-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}

.type-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px color-mix(in srgb, var(--g) 70%, transparent);
}

.map-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.map-progress {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.map-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--map) 70%, #fff), var(--map));
  transition: width 0.5s ease;
}

.map-count {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  white-space: nowrap;
}

.map-arrow {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 16, 0.6);
  color: var(--muted);
  font-size: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.22s, transform 0.22s, color 0.22s;
}

.map-card:hover .map-arrow { opacity: 1; transform: translateX(0); color: var(--map); }

/* ---------------- 地图详情 ---------------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs .sep { opacity: 0.4; }
.crumbs .current { color: var(--text); }

.map-hero {
  --map: var(--accent);
  position: relative;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(700px 280px at 88% 0%, color-mix(in srgb, var(--map) 15%, transparent), transparent 70%),
    linear-gradient(180deg, #111922, #0b1117);
  overflow: hidden;
}

.map-hero::after {
  content: "";
  position: absolute;
  right: -78px;
  top: 42%;
  z-index: 0;
  width: 360px;
  height: 360px;
  translate: 0 -50%;
  border: 1px solid color-mix(in srgb, var(--map) 15%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 30%, color-mix(in srgb, var(--map) 13%, transparent) 30.3% 31%, transparent 31.3%),
    radial-gradient(circle, transparent 0 47%, color-mix(in srgb, var(--map) 9%, transparent) 47.3% 48%, transparent 48.3%),
    linear-gradient(color-mix(in srgb, var(--map) 8%, transparent), color-mix(in srgb, var(--map) 8%, transparent)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(color-mix(in srgb, var(--map) 8%, transparent), color-mix(in srgb, var(--map) 8%, transparent)) 0 50% / 100% 1px no-repeat;
  pointer-events: none;
}

.map-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000, transparent 72%);
  pointer-events: none;
}

.map-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.map-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.radar-caption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--dim);
  text-align: center;
}

.area-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 9px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--dim);
}

.area-legend span::before {
  content: "·";
  margin-right: 3px;
  color: var(--accent);
}

.radar-note {
  font-size: 9px;
  line-height: 1.5;
  color: var(--dim);
  text-align: center;
  opacity: 0.75;
}

.map-hero-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid color-mix(in srgb, var(--map) 28%, var(--line));
  border-radius: 14px;
  background: #070c10;
  overflow: hidden;
}

.map-hero-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--map) 16%, transparent), transparent 66%);
}

.map-hero-thumb .radar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: brightness(1.2) contrast(1.06) saturate(1.07) drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

.map-hero-info .eyebrow { color: var(--map); }

.map-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 10px 0 0;
}

.map-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 850;
}

.map-title-row .en {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.map-desc {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.map-mastery {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  margin-top: 14px;
}

.map-mastery .map-progress { flex: 0 0 130px; }

.map-mastery span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
}

.stat-pill b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.stat-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--map);
}

.tips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.tips li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex: 1 1 240px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.tips li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 1px;
  background: var(--map);
  rotate: 45deg;
}

/* ---------------- 筛选工具栏 ---------------- */

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  margin-top: 10px;
  background: rgba(8, 10, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12.5px;
  transition: all 0.18s;
  white-space: nowrap;
}

.chip:hover { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.05); }

.chip.active {
  border-color: color-mix(in srgb, var(--chip, var(--accent)) 60%, transparent);
  background: color-mix(in srgb, var(--chip, var(--accent)) 13%, transparent);
  color: #fff;
}

.chip .chip-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}

.chip.active .chip-count { color: color-mix(in srgb, var(--chip, var(--accent)) 80%, #fff); }

.chip .g-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chip, var(--accent));
}

.toolbar-spacer { flex: 1; }

.side-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.side-switch button {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.18s;
}

.side-switch button:hover { color: var(--text); }

.side-switch button.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.side-switch button[data-side="T"].active { background: rgba(255, 159, 67, 0.18); color: #ffc07a; }
.side-switch button[data-side="CT"].active { background: rgba(77, 163, 255, 0.18); color: #8fc6ff; }

.check-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.check-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.check-toggle input::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border: solid #171006;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
}

.check-toggle input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.check-toggle input:checked::after { transform: rotate(45deg) scale(1); }

.result-count {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------------- 点位卡片 ---------------- */

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
  padding: 22px 0 8px;
}

.lineup {
  --g: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(360px 140px at 100% 0%, color-mix(in srgb, var(--g) 8%, transparent), transparent 75%),
    linear-gradient(180deg, #121922, #0d1319);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: card-in 0.3s ease both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lineup[data-act] { cursor: pointer; }

.lineup:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--g) 42%, var(--line));
}

.lineup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--g);
  opacity: 0.55;
}

.lineup.is-mastered { opacity: 0.82; }
.lineup.is-mastered::before { background: var(--green); }

.lineup-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--g) 32%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--g) 11%, transparent);
  color: color-mix(in srgb, var(--g) 82%, #fff);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.g-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-tag {
  padding: 3px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.side-tag.t { background: rgba(255, 159, 67, 0.14); color: #ffb366; }
.side-tag.ct { background: rgba(77, 163, 255, 0.14); color: #82bfff; }
.side-tag.both { background: rgba(179, 157, 255, 0.14); color: #c9bcff; }

.jump-tag {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.18s, border-color 0.18s;
}

a.jump-tag:hover {
  color: var(--accent-2);
  border-color: rgba(255, 138, 31, 0.4);
}

.fav-btn {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.fav-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.fav-btn:hover { color: #ffd166; background: rgba(255, 209, 102, 0.08); border-color: rgba(255, 209, 102, 0.2); }

.fav-btn.on { color: #ffd166; }
.fav-btn.on svg { fill: #ffd166; stroke: #ffd166; }

.lineup-name {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lineup-name .map-mini {
  margin-left: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
  font-weight: 400;
  vertical-align: 2px;
}

.lineup-row {
  display: flex;
  gap: 7px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.lineup-row b {
  flex-shrink: 0;
  width: 26px;
  padding-top: 1px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dim);
}

.lineup-row span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lineup-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.level-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.level-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.level-dots i.on { background: var(--g); }

.level-text {
  margin-left: 5px;
  font-size: 10px;
  color: var(--dim);
}

.lineup-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.mini-btn {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  transition: all 0.18s;
  white-space: nowrap;
}

.mini-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }

.mini-btn svg {
  width: 12px;
  height: 12px;
  margin-right: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}

.mini-btn.primary { color: var(--text); }

.mini-btn.done {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.09);
}

/* ---------------- 空状态 ---------------- */

.empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 80px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  margin: 22px 0;
  background: rgba(255, 255, 255, 0.012);
}

.empty .empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
}

.empty-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.empty h3 { margin: 4px 0 0; font-size: 16px; }
.empty p { margin: 0; color: var(--dim); font-size: 12.5px; max-width: 360px; line-height: 1.7; }

/* ---------------- 收藏 / 已掌握 ---------------- */

.page-head {
  padding: 44px 0 8px;
}

.page-head h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 850;
}

.page-head p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 6px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.collection-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 30px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.group-title h2 { margin: 0; font-size: 17px; font-weight: 800; }
.group-title span { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.12em; text-transform: uppercase; }
.group-title .group-count { margin-left: auto; font-size: 11px; color: var(--dim); }

.group-title svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  vertical-align: -2px;
}

.progress-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 4px;
}

.progress-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 12.5px;
}

.progress-row .pr-name { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.progress-row .pr-name i { width: 6px; height: 6px; border-radius: 50%; background: var(--map, var(--accent)); }
.progress-row .bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #22c55e); }
.progress-row .pr-val { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-align: right; }

/* ---------------- 玩法小知识 ---------------- */

.guide {
  margin: 30px 0 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(255, 138, 31, 0.07), transparent 70%),
    linear-gradient(180deg, #0f161d, #0b1116);
}

.guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.guide-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.guide-head p { margin: 0; color: var(--dim); font-size: 12px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.guide-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.guide-card .gc-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.guide-card .gc-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 138, 31, 0.25);
  background: rgba(255, 138, 31, 0.09);
  color: var(--accent-2);
}

.guide-card .gc-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.guide-card h3 { margin: 0; font-size: 13.5px; font-weight: 700; }

.guide-card p { margin: 9px 0 0; color: var(--dim); font-size: 12px; line-height: 1.65; }

/* ---------------- 弹窗 ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 9, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease both;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(92vh, 900px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(500px 240px at 100% 0%, color-mix(in srgb, var(--g, var(--accent)) 12%, transparent), transparent 70%),
    linear-gradient(180deg, #131b24, #0c1218);
  box-shadow: var(--shadow);
  animation: modal-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  margin: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #121a22;
  color: var(--muted);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
  transition: all 0.18s;
}

.modal-close:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }

.modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.modal-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--g, var(--accent)); }

.modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  padding-right: 40px;
}

.modal-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.detail-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.detail-label::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--g, var(--accent));
  rotate: 45deg;
}

.detail-item .level-dots i { width: 6px; height: 6px; }

.detail-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
}

.detail-item.wide { grid-column: 1 / -1; }

.callout {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--g, var(--accent)) 25%, transparent);
  border-left: 2px solid var(--g, var(--accent));
  border-radius: 10px;
  background: color-mix(in srgb, var(--g, var(--accent)) 7%, transparent);
}

.callout b {
  display: block;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--g, var(--accent)) 80%, #fff);
}

.callout p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10.5px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
  transition: all 0.18s;
}

.action-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.action-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.06); }

.action-btn.on { color: #ffd166; border-color: rgba(255, 209, 102, 0.32); background: rgba(255, 209, 102, 0.08); }
.action-btn.on svg { fill: currentColor; }

.action-btn.done { color: var(--green); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }

.action-btn.accent {
  color: #171006;
  border-color: transparent;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  font-weight: 700;
}

.action-btn.accent:hover { filter: brightness(1.06); color: #171006; }

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  transition: color 0.18s, background 0.18s;
}

.nav-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-btn[disabled] {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-index { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.1em; }

/* ---------------- 雷达标记 ---------------- */

.callout-label {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  color: rgba(226, 235, 244, 0.82);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 4px #05080b, 0 0 8px #05080b;
  pointer-events: none;
}

.callout-label::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

.map-thumb .site-chip,
.map-thumb .spawn-chip,
.map-hero-thumb .site-chip,
.map-hero-thumb .spawn-chip,
.radar-body .site-chip,
.radar-body .spawn-chip,
.mini-radar .site-chip,
.mini-radar .spawn-chip { z-index: 5; }

.site-chip,
.spawn-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  white-space: nowrap;
}

.site-chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 92, 0.72);
  background: rgba(10, 14, 18, 0.8);
  color: #ffc983;
  font-size: 11px;
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.08), 0 0 16px rgba(255, 138, 31, 0.35);
}

.site-chip.site-b { border-color: rgba(255, 209, 102, 0.55); color: #ffd9a0; }

.spawn-chip {
  height: 17px;
  min-width: 17px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 159, 67, 0.42);
  background: rgba(10, 14, 18, 0.74);
  color: #ffb066;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.spawn-chip.spawn-ct {
  border-color: rgba(110, 168, 254, 0.48);
  color: #8fc2ff;
}

.site-chip.sm { width: 18px; height: 18px; font-size: 9px; border-width: 1px; }
.spawn-chip.sm { height: 14px; min-width: 14px; font-size: 7px; }

.site-chip.xs { width: 16px; height: 16px; font-size: 8px; box-shadow: 0 0 10px rgba(255, 138, 31, 0.25); }
.spawn-chip.xs { height: 13px; min-width: 13px; font-size: 6.5px; padding: 0 3px; }

/* ---------------- 弹窗点位路径 ---------------- */

.route {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(400px 180px at 0% 0%, color-mix(in srgb, var(--g, var(--accent)) 8%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.018);
}

.mini-radar {
  position: relative;
  width: 100%;
  background-color: #0a1117;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035), transparent 70%),
    #070c10;
  overflow: hidden;
}

.mini-radar .radar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: brightness(1.42) contrast(1.12) saturate(1.08);
}

.mr-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mr-line line {
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 138, 31, 0.7));
}

.mr-dot {
  position: absolute;
  z-index: 5;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 2px solid #0b1116;
  color: #071016;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.mr-dot.from { background: #4da3ff; box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.16); }
.mr-dot.to { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.16); }
.mr-dot.both { background: linear-gradient(135deg, #4da3ff 0 50%, var(--accent) 50% 100%); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.14); }

.route-info { min-width: 0; }

.route-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.route-step {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
}

.rs-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4da3ff;
  color: #071016;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.rs-num.to { background: var(--accent); }

.route-step b {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.route-step span {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
}

.route-note {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.6;
}

.route--approx .mini-radar { opacity: 0.92; }

.coords {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.coords-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coords-head > span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.coords-note {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.6;
}

.coords code {
  display: block;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffd9a8;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}

/* ---------------- 点位视频 ---------------- */

.video-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 138, 31, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.015);
}

.video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.video-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.video-version {
  padding: 2px 5px;
  border: 1px solid rgba(110, 168, 254, 0.42);
  border-radius: 3px;
  color: #8fc2ff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.video-open {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--muted);
  transition: color 0.18s;
}

.video-open:hover { color: var(--accent-2); }

.video-stage { margin-top: 9px; }

.video-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 138, 31, 0.09), rgba(62, 166, 255, 0.05)),
    #0a1117;
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}

.video-card:hover {
  border-color: rgba(255, 138, 31, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 138, 31, 0.13), rgba(62, 166, 255, 0.07)),
    #0a1117;
}

.video-play {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding-left: 2px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  color: #171006;
  font-size: 13px;
  box-shadow: 0 8px 22px -10px rgba(255, 138, 31, 0.9);
}

.video-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.video-meta b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.video-meta span {
  font-size: 10px;
  color: var(--dim);
}

.video-brand {
  flex-shrink: 0;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.video-note {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}

.video-cover {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2836, #080e14);
  text-align: left;
}

.video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-cover-bg {
  object-fit: cover;
  filter: blur(14px) saturate(0.8);
  opacity: 0.42;
  transform: scale(1.12);
}

.video-cover-fg {
  object-fit: contain;
  opacity: 0.92;
}

.video-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 12, 0.06) 20%, rgba(4, 8, 12, 0.86));
  pointer-events: none;
}

.video-cover-play {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding-left: 3px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  color: #171006;
  font-size: 18px;
  box-shadow: 0 12px 30px -12px rgba(255, 138, 31, 0.95);
  pointer-events: none;
  transition: transform 0.18s;
}

.video-cover:hover .video-cover-play {
  transform: translate(-50%, -50%) scale(1.07);
}

.video-cover-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.video-cover-info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.video-cover-info span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-native {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 60vh;
  margin: 0 auto;
  border-radius: 9px;
  background: #000;
  object-fit: contain;
}

.video-mode {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.video-mode:hover {
  color: var(--accent-2);
  border-color: rgba(255, 138, 31, 0.45);
}

.video-frame {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 9px;
  background: #000;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.video-pick {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}

.video-pick:only-child {
  grid-column: 1 / -1;
}

.video-pick:hover,
.video-pick.is-active {
  border-color: rgba(255, 138, 31, 0.5);
  background: rgba(255, 138, 31, 0.06);
}

.vp-index {
  flex-shrink: 0;
  padding-top: 1px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
}

.vp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vp-info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}

.vp-info span {
  overflow: hidden;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-kind {
  flex-shrink: 0;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.4;
}

.video-missing {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.65;
}

.video-empty {
  margin: 9px 0 0;
  color: var(--dim);
  font-size: 11px;
}

.video-box--empty .video-search {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.18s, border-color 0.18s;
}

.video-box--empty .video-search:hover {
  color: var(--accent-2);
  border-color: rgba(255, 138, 31, 0.45);
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 25, 33, 0.96);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  translate: -50% 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, translate 0.22s;
  max-width: calc(100vw - 32px);
}

.toast.show { opacity: 1; translate: -50% 0; }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------------- 页脚 ---------------- */

.footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 11, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 28px 0 34px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
}

.footer-inner b { color: var(--muted); font-weight: 600; }
.footer-note { max-width: 620px; }
.footer-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-align: right; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--accent-2); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .map-hero::after { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 44px; }
  .hero-radar-wrap { max-width: 560px; }
  .map-hero-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }
  .main-nav { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: 12.5px; }
  .search { width: 170px; }
  .search kbd { display: none; }
  .route-badge { display: none; }
  .map-stats { margin-top: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .result-count { display: none; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  #maps { scroll-margin-top: 112px; }
  .header-inner { gap: 8px; }
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; padding: 9px 0 8px; gap: 8px; }
  .brand-title { font-size: 13.5px; }
  .brand-mark { width: 34px; height: 34px; }
  .search { order: 2; width: auto; flex: 1 1 150px; margin-left: 4px; }
  .main-nav {
    order: 3;
    display: flex;
    width: 100%;
    margin-right: 0;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 4px;
  }
  .nav-link { flex: 1; text-align: center; padding: 7px 6px; }
  .nav-link.active::after { left: 22%; right: 22%; }
  .hero { padding: 42px 0 30px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero h1 .thin { font-size: 0.58em; }
  .hero-sub { font-size: 13.5px; }
  .hero-stats { gap: 14px 0; }
  .stat { padding-right: 18px; margin-right: 18px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 10.5px; }
  .map-hero { padding: 18px; border-radius: 16px; }
  .callout-label, .area-legend, .radar-note { display: none; }
  .map-hero-grid { grid-template-columns: 1fr; }
  .map-hero-thumb { max-width: 100%; }
  .toolbar {
    position: static;
    padding: 10px 0;
    gap: 8px;
  }
  .toolbar-spacer { display: none; }
  .filter-group { gap: 5px; }
  .chip { height: 31px; padding: 0 9px; font-size: 11.5px; }
  .result-count { margin-left: auto; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .lineup-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    align-self: end;
  }
  html.modal-open { overflow: hidden; }
  .modal-scroll { padding: 22px 18px 26px; }
  .coords code { font-size: 10px; }
  .video-brand { display: none; }
  .video-play { width: 32px; height: 32px; font-size: 11px; }
  .video-meta b { font-size: 12px; }
  .video-cover-play { width: 44px; height: 44px; font-size: 15px; }
  .video-cover-info b { font-size: 12px; }
  .modal-head { padding-right: 30px; }
  .route { grid-template-columns: 1fr; justify-items: center; padding: 12px; }
  .mini-radar { max-width: 210px; }
  .route-info { width: 100%; }
  .route-note { margin-top: 10px; }
  .progress-row { grid-template-columns: 108px minmax(0, 1fr) 52px; gap: 10px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .guide { padding: 18px; }
}

@media (max-width: 374px) {
  .brand-title { display: none; }
  .brand { flex-shrink: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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

/* 滚动条 */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #24313e; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #324455; }
