/* =============================================================
   RED FRONT · 红色前线 宣传站
   红黑军事 HUD / 红色红心核心 / CRT 扫描线
   ============================================================= */
:root {
  --ink: #080b0e;
  --panel: #0d1319;
  --panel-2: #111a22;
  --red: #ff2f3e;
  --red-deep: #c8101e;
  --red-lit: #ff6a5a;
  --red-soft: #ff9a8e;
  --cyan: #6fe3d2;
  --text: #e9eff3;
  --muted: #8b9baa;
  --dim: #5d6d7a;
  --line: rgba(255, 76, 82, .22);
  --line-2: rgba(120, 180, 195, .14);
  --mono: Consolas, "SF Mono", "Cascadia Mono", "Courier New", monospace;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code, kbd { font-family: var(--mono); }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* --- 全屏氛围层 --- */
.crt, .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.crt {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.19) 0 1px, transparent 1px 3px);
  opacity: .55;
  animation: crtDrift 8s linear infinite;
}
.vignette {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0,0,0,.55) 100%),
    radial-gradient(ellipse at 78% 14%, rgba(255,35,50,.10), transparent 48%);
}
@keyframes crtDrift { from { background-position: 0 0; } to { background-position: 0 3px; } }

.hazard-tape {
  position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 110;
  background: repeating-linear-gradient(135deg, #d71927 0 13px, #14181d 13px 26px);
  box-shadow: 0 0 14px rgba(255,40,55,.45);
  animation: tapeSlide 14s linear infinite;
}
@keyframes tapeSlide { from { background-position: 0 0; } to { background-position: 52px 0; } }

/* --- 顶部指挥条 --- */
.topbar {
  position: sticky; top: 6px; z-index: 100;
  height: 64px; padding: 0 clamp(18px, 4vw, 66px);
  display: flex; align-items: center; gap: 34px;
  background: rgba(9, 13, 17, .90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-heart { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-heart path { fill: var(--red); stroke: var(--red-soft); stroke-width: 2; filter: drop-shadow(0 0 7px rgba(255,47,62,.65)); }
.brand-pulse { fill: #fff0ea; opacity: .9; animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: .35; r: 5; } 45% { opacity: 1; r: 8; } }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--mono); font-size: 16px; letter-spacing: .16em; color: #fff; }
.brand-txt small { font-size: 10px; letter-spacing: .22em; color: var(--red-soft); margin-top: 4px; }

.topnav { display: flex; gap: 4px; flex: 1 1 auto; }
.topnav a {
  position: relative; padding: 8px 15px; font-size: 13px; letter-spacing: .10em; color: var(--muted);
  border: 1px solid transparent; transition: .18s ease;
}
.topnav a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: .2s ease;
}
.topnav a:hover, .topnav a.active { color: #fff; background: rgba(255,47,62,.09); border-color: var(--line); }
.topnav a.active::after { transform: scaleX(1); }
.topstatus { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); display: inline-block; animation: blink 1.7s ease-in-out infinite; flex: 0 0 auto; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.status-clock { color: var(--cyan); font-size: 13px; }
.status-ver { border: 1px solid var(--line); color: var(--red-soft); padding: 3px 8px; }

/* --- HERO --- */
.hero { position: relative; min-height: calc(100vh - 70px); display: flex; flex-direction: column; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(120,180,195,.045) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(120,180,195,.045) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(circle at 74% 42%, rgba(255,35,50,.14), transparent 45%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero-inner {
  position: relative; flex: 1 1 auto;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(24px, 4vw, 70px); align-items: center;
  padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 90px) 40px;
  max-width: 1600px; width: 100%; margin: 0 auto;
}
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .20em; color: var(--red-soft); }
.kicker-bar { width: 28px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.hero-title {
  margin: 20px 0 0; font-size: clamp(58px, 8.3vw, 132px); font-weight: 900; line-height: 1.02;
  letter-spacing: .10em; display: flex; flex-wrap: wrap; gap: .02em;
  text-shadow: 0 0 34px rgba(255,47,62,.34), 0 5px 0 rgba(0,0,0,.6);
}
.hero-title span { color: #f4f7f9; }
.hero-title span:nth-child(2) { color: var(--red); text-shadow: 0 0 40px rgba(255,47,62,.75); }
.hero-en { font-family: var(--mono); font-size: clamp(13px, 1.7vw, 22px); letter-spacing: .42em; color: var(--muted); margin-top: 8px; }
.hero-slogan { font-size: clamp(17px, 2vw, 24px); letter-spacing: .18em; color: var(--red-soft); margin: 26px 0 10px; font-weight: 600; }
.hero-desc { max-width: 620px; color: #b9c6d0; font-size: 15px; line-height: 1.95; margin: 0; }
.hero-desc b { color: #fff; font-weight: 600; }
.hero-desc code { color: var(--cyan); font-size: 13px; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 30px; border: 1px solid var(--line-2); max-width: 590px; }
.spec-strip > div { flex: 1 1 20%; min-width: 88px; padding: 12px 10px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; }
.spec-strip > div:last-child { border-right: none; }
.spec-strip b { font-family: var(--mono); font-size: 21px; color: var(--red-lit); line-height: 1.2; }
.spec-strip small { font-size: 10px; letter-spacing: .12em; color: var(--dim); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px; min-height: 68px; border: 1px solid transparent;
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 9px, transparent 9px 18px),
    linear-gradient(180deg, #ff3e49 0%, #d21a27 100%);
  border-color: #ff6d63;
  box-shadow: 0 6px 0 #7d0e17, 0 14px 32px rgba(255,35,50,.30);
}
.btn-primary:hover { box-shadow: 0 8px 0 #7d0e17, 0 20px 44px rgba(255,35,50,.48); }
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-24deg); transition: left .55s ease;
}
.btn-primary:hover::before { left: 120%; }
.btn-ghost { background: rgba(15, 24, 31, .8); border-color: rgba(111,227,210,.35); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(111,227,210,.14); }
.btn-ico { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); flex: 0 0 auto; }
.btn-ico svg { width: 18px; height: 18px; }
.btn-body { display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
.btn-body b { font-size: 16px; letter-spacing: .08em; }
.btn-body small { font-family: var(--mono); font-size: 10px; opacity: .82; letter-spacing: .06em; }
.btn-primary .btn-body small { opacity: .96; }
.btn-arrow { font-size: 20px; opacity: .9; margin-left: 6px; }
.btn-block { width: 100%; }
.btn.small { min-height: 54px; padding: 10px 16px; }
.hero-note { margin-top: 18px; font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.hero-note code { color: var(--cyan); }

/* --- 红心核心徽标 --- */
.hero-core { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.core-frame {
  position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1; cursor: pointer;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,35,50,.12), transparent 62%),
    linear-gradient(160deg, rgba(16,24,31,.9), rgba(8,11,14,.6));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 70px rgba(255,35,50,.06), 0 24px 70px rgba(0,0,0,.55);
}
.core-frame::after {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  background: linear-gradient(rgba(120,180,195,.05) 1px, transparent 1px) 0 0/22px 22px,
              linear-gradient(90deg, rgba(120,180,195,.05) 1px, transparent 1px) 0 0/22px 22px;
}
.core-svg { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
.frame-tag { position: absolute; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--red-soft); opacity: .8; }
.frame-tag.tl { top: 14px; left: 18px; } .frame-tag.tr { top: 14px; right: 18px; }
.frame-tag.bl { bottom: 14px; left: 18px; } .frame-tag.br { bottom: 14px; right: 18px; }
.corner { position: absolute; width: 15px; height: 15px; z-index: 3; pointer-events: none; }
.c-tl { top: -1px; left: -1px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.c-tr { top: -1px; right: -1px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.c-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); }
.c-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }

.radar-spin { transform-box: view-box; transform-origin: 260px 252px; animation: spin 26s linear infinite; }
.sweep { transform-box: view-box; transform-origin: 260px 252px; animation: spin 9s linear infinite; }
.tick-ring { transform-box: view-box; transform-origin: 260px 252px; animation: spin 80s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.heart-beat { transform-box: view-box; transform-origin: 260px 250px; animation: heartBeat 2.1s ease-in-out infinite; }
@keyframes heartBeat {
  0%, 42%, 100% { transform: scale(1); }
  8% { transform: scale(1.045); }
  17% { transform: scale(1.005); }
  26% { transform: scale(1.025); }
}
.heart-scan { animation: heartScan 4.6s linear infinite; }
@keyframes heartScan { from { transform: translateY(-60px); } to { transform: translateY(500px); } }
.ecg { stroke-dasharray: 440; stroke-dashoffset: 440; animation: ecgRun 2.1s linear infinite; filter: drop-shadow(0 0 5px rgba(255,220,210,.7)); }
@keyframes ecgRun { to { stroke-dashoffset: -440; } }
.core-aura { animation: aura 2.1s ease-in-out infinite; transform-box: view-box; transform-origin: 260px 228px; }
@keyframes aura { 0%,42%,100% { opacity: .55; transform: scale(1); } 10% { opacity: 1; transform: scale(1.14); } }
.core-ring { animation: ringOut 2.1s ease-out infinite; transform-box: view-box; transform-origin: 260px 228px; }
@keyframes ringOut { 0% { opacity: .85; transform: scale(.72); } 70%,100% { opacity: 0; transform: scale(1.8); } }
.core-star { fill: #fff2ec; font-size: 62px; filter: drop-shadow(0 0 14px rgba(255,110,90,.95)); }
.core-frame.burst .heart-beat { animation: heartBeat .62s ease-in-out 1; }
.core-frame.burst .core-aura { animation: aura .62s ease-out 1; }
.core-frame.burst .core-ring { animation: ringOut .62s ease-out 1; }
.core-frame.burst { box-shadow: inset 0 0 110px rgba(255,47,62,.26), 0 24px 80px rgba(255,47,62,.22); }
.core-caption { font-family: var(--mono); font-size: 11px; letter-spacing: .10em; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.core-caption b { color: var(--red-soft); font-weight: 600; }

.ticker { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,47,62,.045); overflow: hidden; height: 38px; flex: 0 0 auto; }
.ticker-track { display: flex; align-items: center; gap: 22px; height: 100%; white-space: nowrap; width: max-content; animation: tickerRun 34s linear infinite; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.ticker-track span { color: #c8d3db; } .ticker-track i { color: var(--red); font-style: normal; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- 通用区块 --- */
.section { max-width: 1400px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 70px); }
.sec-head { display: flex; align-items: center; gap: 20px; margin-bottom: 42px; }
.sec-no { font-family: var(--mono); font-size: clamp(34px, 5vw, 62px); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255,60,70,.55); line-height: 1; }
.sec-head h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: .16em; font-weight: 800; }
.sec-head small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--dim); margin-top: 2px; }
.sec-line { flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.sec-status { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--cyan); border: 1px solid rgba(111,227,210,.25); padding: 5px 10px; white-space: nowrap; }
.panel { position: relative; background: linear-gradient(155deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); }

/* --- 01 档案 --- */
.dossier-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.dossier-text { padding: 30px 34px; }
.dossier-text .lead { font-size: 20px; color: #fff; letter-spacing: .06em; margin: 0 0 14px; }
.dossier-text p { color: #aab9c5; font-size: 14px; line-height: 2; margin: 0 0 14px; }
.dossier-text strong { color: var(--red-soft); }
.dossier-text code { color: var(--cyan); font-size: 12px; background: rgba(111,227,210,.07); padding: 1px 5px; }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tech-row span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); padding: 5px 9px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-cell { position: relative; padding: 22px 18px; background: rgba(14,21,27,.85); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; transition: .2s ease; overflow: hidden; }
.stat-cell::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .3s ease; }
.stat-cell:hover { border-color: var(--line); transform: translateY(-3px); }
.stat-cell:hover::after { width: 100%; }
.stat-cell b { font-family: var(--mono); font-size: 40px; line-height: 1.1; color: var(--red-lit); text-shadow: 0 0 22px rgba(255,47,62,.4); }
.stat-cell small { color: #d5dfe6; font-size: 13px; letter-spacing: .10em; }
.stat-cell em { font-family: var(--mono); font-size: 9px; font-style: normal; color: var(--dim); letter-spacing: .14em; margin-top: 8px; }

/* --- 02 分区 --- */
.faction-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.faction-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.faction-card { position: relative; text-align: left; padding: 22px 20px 24px; min-height: 168px; background: linear-gradient(150deg, rgba(20,30,38,.9), rgba(10,15,20,.9)); border: 1px solid var(--line-2); color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: .2s ease; overflow: hidden; }
.faction-card:hover { border-color: rgba(255,90,80,.6); transform: translateY(-3px); }
.faction-card.active { border-color: var(--red); background: linear-gradient(150deg, rgba(80,15,20,.55), rgba(12,16,21,.92)); box-shadow: inset 0 0 40px rgba(255,47,62,.10); }
.faction-card.active.sov { background: linear-gradient(150deg, rgba(90,30,12,.5), rgba(12,16,21,.92)); }
.fc-index { position: absolute; top: 12px; right: 14px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.fc-icon { font-size: 24px; color: var(--cyan); line-height: 1.2; }
.faction-card.sov .fc-icon { color: var(--red-lit); }
.faction-card b { font-size: 22px; letter-spacing: .16em; margin-top: 2px; }
.faction-card small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.fc-tag { margin-top: auto; font-size: 12px; color: var(--red-soft); border-top: 1px dashed rgba(255,255,255,.12); padding-top: 10px; }
.fc-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red); transition: width .25s ease; }
.faction-card.active .fc-bar { width: 100%; }
.faction-detail { padding: 28px 30px; display: flex; flex-direction: column; }
.fd-head { border-bottom: 1px solid var(--line-2); padding-bottom: 18px; margin-bottom: 8px; }
.fd-code { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--red-soft); }
.fd-head h3 { margin: 6px 0 2px; font-size: 30px; letter-spacing: .18em; }
.fd-head p { margin: 0; font-size: 13px; color: var(--muted); }
.fd-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 13px; line-height: 1.8; }
.fd-row label { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .08em; padding-top: 3px; }
.fd-row span { color: #c8d5de; }
.fd-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* --- 03 系统特性 --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 24px 24px 42px; min-height: 210px; transition: .2s ease; }
.feature:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.f-no { position: absolute; top: 16px; right: 18px; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .12em; }
.f-glyph { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--red-lit); font-size: 21px; margin-bottom: 14px; background: rgba(255,47,62,.06); }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: .08em; }
.feature p { margin: 0; font-size: 13px; color: #a7b6c2; line-height: 1.85; }
.feature code { color: var(--cyan); font-size: 11px; }
.f-state { position: absolute; left: 24px; bottom: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--cyan); }
.f-state::before { content: '● '; color: var(--red); }
.keybar { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 22px; border: 1px solid var(--line-2); background: rgba(10,15,20,.75); font-size: 12px; color: var(--muted); }
.keybar-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--red-soft); }
kbd { display: inline-block; padding: 2px 7px; border: 1px solid rgba(200,215,225,.28); border-bottom-width: 2px; background: rgba(255,255,255,.05); color: #dce6ec; font-size: 11px; margin-right: 2px; }

/* --- 04 实机画面 --- */
.gallery-stage { padding: 14px; }
.rec { position: absolute; top: 20px; left: 24px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #fff; background: rgba(8,11,14,.8); border: 1px solid var(--line); padding: 5px 10px; display: flex; align-items: center; gap: 8px; }
.gallery-img-wrap { position: relative; background: #05080b; border: 1px solid rgba(120,180,195,.18); overflow: hidden; aspect-ratio: 1440 / 900; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.gallery-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 4px); }
.gallery-scan::after { content: ''; position: absolute; left: 0; right: 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(255,47,62,.08), transparent); animation: galScan 5s linear infinite; }
@keyframes galScan { from { top: -90px; } to { top: 100%; } }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 8px 4px; }
.gallery-caption b { font-size: 17px; letter-spacing: .10em; }
.gallery-caption small { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.gallery-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.gallery-nav button { width: 40px; height: 36px; background: rgba(15,24,31,.9); border: 1px solid var(--line); color: #fff; font-size: 17px; transition: .18s ease; }
.gallery-nav button:hover { background: var(--red-deep); border-color: var(--red-lit); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 12px; }
.thumb { position: relative; padding: 0; border: 1px solid var(--line-2); background: #0a0f14; overflow: hidden; aspect-ratio: 16 / 10; transition: .18s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.45); transition: .18s ease; }
.thumb:hover img, .thumb.active img { opacity: 1; filter: none; }
.thumb.active { border-color: var(--red); box-shadow: 0 0 16px rgba(255,47,62,.28); }
.thumb span { position: absolute; bottom: 0; left: 0; right: 0; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: #dbe5ec; background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 12px 5px 4px; text-align: center; }

/* --- 05 获取游戏 --- */
.deploy { position: relative; }
.deploy::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 60%, rgba(255,35,50,.09), transparent 55%); }
.deploy-layout { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.deploy-card { padding: 30px; }
.dc-head { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line-2); padding-bottom: 20px; }
.zip-mark { width: 54px; height: 54px; color: var(--red-lit); flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(255,47,62,.5)); }
.dc-label { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--red-soft); }
.dc-head h3 { margin: 2px 0 0; font-family: var(--mono); font-size: clamp(17px, 2vw, 23px); letter-spacing: .02em; color: #fff; word-break: break-all; }
.dc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.dc-meta > div { padding: 12px 14px; border: 1px solid var(--line-2); background: rgba(8,12,16,.6); display: flex; flex-direction: column; }
.dc-meta label { font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.dc-meta b { font-family: var(--mono); font-size: 19px; color: var(--red-lit); line-height: 1.5; }
.dc-meta small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.dl-progress { margin: 18px 0 20px; }
.dl-track { height: 8px; background: #060a0d; border: 1px solid var(--line-2); overflow: hidden; }
.dl-fill { height: 100%; width: 0; background: repeating-linear-gradient(135deg, #ff3e49 0 10px, #c8101e 10px 20px); box-shadow: 0 0 14px rgba(255,47,62,.7); transition: width .18s ease; }
.dl-progress.done .dl-fill { background: repeating-linear-gradient(135deg, #6fe3d2 0 10px, #2f9d8c 10px 20px); box-shadow: 0 0 14px rgba(111,227,210,.7); }
.dl-status { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.checksum { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line); padding: 10px 12px; background: rgba(255,47,62,.035); }
.checksum label { font-family: var(--mono); font-size: 10px; color: var(--red-soft); letter-spacing: .12em; flex: 0 0 auto; }
.checksum code { font-size: 10px; color: #b9c8d3; word-break: break-all; flex: 1 1 auto; line-height: 1.5; }
.checksum button { flex: 0 0 auto; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 5px 10px; font-size: 11px; }
.checksum button:hover { color: #fff; border-color: var(--red); }
.dc-note { margin: 16px 0 0; font-size: 12px; color: var(--dim); line-height: 1.8; }
.dc-note b { color: #c6d2da; font-weight: 600; }
.dc-note code { color: var(--cyan); }
.fallback-link { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--cyan); border-bottom: 1px dashed rgba(111,227,210,.45); padding-bottom: 2px; transition: .18s ease; }
.fallback-link:hover { color: #fff; border-color: #fff; }
.deploy-side { display: flex; flex-direction: column; gap: 16px; }
.steps, .manifest { padding: 24px 26px; }
.steps h3, .manifest h3 { margin: 0 0 16px; font-size: 18px; letter-spacing: .10em; }
.steps h3 small, .manifest h3 small { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .14em; margin-left: 8px; }
.steps ol { list-style: none; margin: 0 0 18px; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.09); }
.steps li > span { font-family: var(--mono); font-size: 15px; color: var(--red-lit); flex: 0 0 30px; }
.steps li b { font-size: 14px; letter-spacing: .05em; }
.steps li p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.steps li code { color: var(--cyan); font-size: 11px; }
.manifest ul { list-style: none; margin: 0; padding: 0; }
.manifest li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.07); font-family: var(--mono); font-size: 11px; }
.manifest li span { color: #c4d0d9; }
.manifest li em { font-style: normal; color: var(--dim); white-space: nowrap; }
.notice { margin: 14px 0 0; font-size: 11px; color: var(--dim); line-height: 1.8; border-left: 2px solid var(--red-deep); padding-left: 10px; }

/* --- 页脚 --- */
.footer { border-top: 1px solid var(--line); background: #06090c; padding: 34px clamp(20px, 5vw, 70px) 0; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-heart { width: 36px; height: 36px; }
.footer-brand b { display: block; font-family: var(--mono); letter-spacing: .12em; font-size: 15px; }
.footer-brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--red-soft); letter-spacing: .14em; margin-top: 3px; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--dim); text-align: right; }
.footer-line { max-width: 1400px; margin: 28px auto 0; border-top: 1px solid rgba(255,255,255,.06); padding: 12px 0 16px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); }
.footer-line span:last-child { color: var(--cyan); }

/* --- 响应式 --- */
@media (max-width: 1100px) {
  .topnav { gap: 0; }
  .topnav a { padding: 8px 9px; font-size: 12px; }
  .topstatus .status-txt { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-core { order: -1; }
  .core-frame { width: min(100%, 400px); }
  .dossier-grid, .faction-layout, .deploy-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 720px) {
  .topbar { gap: 12px; padding: 0 14px; height: 58px; }
  .brand-txt b { font-size: 13px; } .brand-txt small { font-size: 9px; }
  .brand-heart { width: 26px; height: 26px; }
  .topnav { order: 3; position: fixed; top: 64px; left: 0; right: 0; background: rgba(9,13,17,.97); border-bottom: 1px solid var(--line); justify-content: center; overflow-x: auto; padding: 0 8px; }
  .topnav a { padding: 10px 9px; font-size: 11px; white-space: nowrap; }
  .topstatus { margin-left: auto; } .status-ver { display: none; }
  html { scroll-padding-top: 112px; }
  .hero-inner { padding: 90px 18px 30px; }
  .hero-title { font-size: clamp(46px, 14vw, 76px); }
  .hero-actions .btn { width: 100%; }
  .spec-strip > div { flex: 1 1 33%; border-bottom: 1px solid var(--line-2); }
  .section { padding: 60px 18px; }
  .sec-head { gap: 12px; flex-wrap: wrap; }
  .sec-line, .sec-status { display: none; }
  .stat-grid, .feature-grid, .faction-cards { grid-template-columns: repeat(2, 1fr); }
  .dossier-text, .faction-detail, .deploy-card, .steps, .manifest { padding: 20px; }
  .dc-meta { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery-caption { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .footer-line { gap: 10px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
