/* =========================================================
   CS2/TUNE — 单页站点样式
   暗色电竞风 · 无外部依赖 · 纯 CSS
   ========================================================= */

:root {
  --bg:        #070a0f;
  --bg-soft:   #0a0f16;
  --panel:     #0e141c;
  --panel-2:   #131b25;
  --line:      rgba(255, 255, 255, .075);
  --line-2:    rgba(255, 255, 255, .14);
  --text:      #e9eff8;
  --muted:     #8fa0b5;
  --muted-2:   #63748a;
  --accent:    #ff9f1a;
  --accent-2:  #4aa8ff;
  --ok:        #35d07f;
  --warn:      #ffcf5c;
  --radius:    14px;
  --radius-lg: 20px;
  --wrap:      1160px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, .85);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }
code { font-family: var(--mono); font-size: .9em; }

::selection { background: rgba(255, 159, 26, .28); color: #fff; }

/* ---------- 背景光效 ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(255, 159, 26, .13), transparent 62%),
    radial-gradient(760px 480px at 8% 4%, rgba(74, 168, 255, .10), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(255, 159, 26, .05), transparent 70%);
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 78%);
}

main, .nav, .footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 10, 15, .68);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled {
  background: rgba(7, 10, 15, .9);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  color: var(--accent);
  background: linear-gradient(160deg, rgba(255, 159, 26, .18), rgba(255, 159, 26, .04));
  border: 1px solid rgba(255, 159, 26, .28);
}
.brand-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
}
.brand-text .dim { color: var(--muted-2); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { transition: color .18s ease; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(180deg, #ffb03f, #f08c0c);
  border-color: rgba(255, 176, 63, .55);
  color: #1a1204;
  box-shadow: 0 10px 26px -12px rgba(255, 159, 26, .8);
}
.btn-primary:hover { box-shadow: 0 14px 32px -12px rgba(255, 159, 26, .95); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-off {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line-2);
  color: var(--muted);
  box-shadow: none;
}
.btn.is-off:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, .07); }

.kbd {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(0, 0, 0, .18);
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 76px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(53, 208, 127, .18);
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 700;
  letter-spacing: -.035em;
}
.hero h1 .hl {
  background: linear-gradient(100deg, #ffc46b 6%, #ff9f1a 48%, #ff7a1a 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted-2);
}
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: .6;
}
.hero-meta b { color: var(--muted); font-weight: 600; }

/* Hero 视觉：帧时间卡 */
.hero-visual { position: relative; }
.framecard {
  position: relative;
  padding: 22px 22px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.framecard::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 26, .8), transparent);
}
.framecard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--muted-2);
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(53, 208, 127, .1);
  border: 1px solid rgba(53, 208, 127, .3);
  color: var(--ok);
  letter-spacing: .06em;
}
.badge-live i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}
.framecard-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 4px;
}
.framecard-num .big {
  font-family: var(--mono);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.framecard-num .unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: .12em;
}
.spark { margin: 10px 0 16px; }
.spark svg { width: 100%; height: 64px; }
.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 159, 26, .55));
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 2.2s ease forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.framecard-rows {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.framecard-rows .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .018);
  font-size: 13px;
  color: var(--muted);
}
.framecard-rows b {
  font-family: var(--mono);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.framecard-rows b.ok { color: var(--ok); }

.chip {
  position: absolute;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text);
  background: rgba(14, 20, 28, .92);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .9);
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.chip-a { top: -36px; right: 20px; }
.chip-b { bottom: -44px; left: 26px; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .017) 12%, rgba(255, 255, 255, .017) 88%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 3.3vw, 36px); }
.sec-head .sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ---------- 功能卡 ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 159, 26, .32);
  background: var(--panel-2);
}
.card .ico {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 16px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--accent);
  background: rgba(255, 159, 26, .09);
  border: 1px solid rgba(255, 159, 26, .2);
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.2px; }

.boundary {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: rgba(255, 159, 26, .04);
}
.boundary-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 8px;
}
.boundary p { color: var(--muted); font-size: 14px; }
.boundary b { color: var(--text); }

/* ---------- 教程 Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tab {
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all .18s ease;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.is-active {
  color: #1a1204;
  background: linear-gradient(180deg, #ffb03f, #f08c0c);
  border-color: transparent;
  font-weight: 700;
}

.panels {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px;
}
.panel { display: none; animation: fade .28s ease; }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.steps { display: grid; gap: 20px; counter-reset: s; }
.steps li {
  position: relative;
  padding-left: 46px;
  counter-increment: s;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  background: rgba(255, 159, 26, .08);
  border: 1px solid rgba(255, 159, 26, .22);
}
.steps b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.steps span { color: var(--muted); font-size: 14.2px; }
.steps em { font-style: normal; color: var(--accent); font-weight: 600; }

.panel-note { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.panel-note.dim { color: var(--muted-2); font-size: 13px; margin-top: 14px; }
.panel-note code, .steps code, .faq-mini code, .faq-list code, .lic-foot code {
  padding: 1.5px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: #cdd9e8;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--muted-2);
}
.copy {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: all .16s ease;
}
.copy:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.copy.is-done { color: var(--ok); border-color: rgba(53, 208, 127, .4); }

.code {
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #060a10;
  color: #c9d7e8;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.code::-webkit-scrollbar { height: 8px; }
.code::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.faq-mini dt {
  font-weight: 650;
  font-size: 15px;
  margin: 18px 0 6px;
}
.faq-mini dt:first-child { margin-top: 0; }
.faq-mini dd { color: var(--muted); font-size: 14.2px; }

/* ---------- 视频 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.video-skeleton {
  height: 224px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #0d131b 20%, #141c27 40%, #0d131b 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.vcard:hover { transform: translateY(-3px); border-color: rgba(255, 159, 26, .34); }
.vcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0f16;
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vplay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7, 10, 15, .1), rgba(7, 10, 15, .55));
  opacity: 0;
  transition: opacity .2s ease;
}
.vcard:hover .vplay { opacity: 1; }
.vplay span {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 159, 26, .95);
  color: #1a1204;
  font-size: 17px;
  padding-left: 3px;
  box-shadow: 0 10px 30px -8px rgba(255, 159, 26, .8);
}
.vdur {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .72);
  font-family: var(--mono);
  font-size: 11px;
  color: #dbe6f4;
}
.vbody { padding: 15px 17px 17px; }
.vbody h3 { font-size: 14.8px; margin-bottom: 6px; }
.vbody p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.vtag {
  display: inline-block;
  margin-top: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--accent-2);
  background: rgba(74, 168, 255, .1);
  border: 1px solid rgba(74, 168, 255, .22);
}
.vcard.is-pending { cursor: default; }
.vcard.is-pending:hover { transform: none; border-color: var(--line); }
.vcard.is-pending .vthumb::after {
  content: "待上传";
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .7);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--warn);
}
.video-status {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-2);
}
.video-status.is-err { color: var(--warn); }

.vempty {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, .015);
}

/* ---------- 下载 ---------- */
.download-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 28px;
  align-items: start;
}
.download-main h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 4px; }
.dl-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.dl-meta > div {
  padding: 13px 16px;
  background: rgba(255, 255, 255, .02);
}
.dl-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.dl-meta dd {
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.dl-hint { margin-top: 14px; font-size: 12.8px; color: var(--muted-2); }
.dl-hint a { color: var(--accent-2); border-bottom: 1px solid rgba(74, 168, 255, .35); }

.license {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)), var(--panel);
  box-shadow: var(--shadow);
}
.license h3 { font-size: 17px; }
.lic-sub { margin: 8px 0 18px; font-size: 13.5px; color: var(--muted); }
.license label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.license input {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #060a10;
  color: var(--text);
  font: inherit;
  font-family: var(--mono);
  font-size: 13.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.license input::placeholder { color: var(--muted-2); }
.license input:focus {
  outline: none;
  border-color: rgba(255, 159, 26, .55);
  box-shadow: 0 0 0 3px rgba(255, 159, 26, .12);
}
.lic-msg {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.lic-msg.is-ok { color: var(--ok); }
.lic-msg.is-err { color: #ff7a7a; }
.lic-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.8px;
  color: var(--muted-2);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .18s ease, background .18s ease;
}
.faq-list details[open] { border-color: var(--line-2); background: var(--panel-2); }
.faq-list summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted-2);
  transition: transform .2s ease, color .2s ease;
}
.faq-list details[open] summary::after { content: "−"; color: var(--accent); }
.faq-list p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.2px;
  max-width: 72ch;
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 40px;
  padding: 46px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .012);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
}
.footer-brand p { margin-top: 8px; font-size: 12.8px; color: var(--muted-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.7;
}
.footer-legal p:first-child { max-width: 70ch; }

/* ---------- 视频弹窗 ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, .82);
  backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.modal-body {
  position: relative;
  width: min(920px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: 0 40px 90px -30px #000;
  overflow: hidden;
  animation: pop .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 15px; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all .16s ease;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.modal-stage {
  aspect-ratio: 16 / 9;
  background: #05080d;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.modal-stage video, .modal-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.modal-desc {
  padding: 14px 18px 18px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 滚动出现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .spark-line { animation: none; stroke-dashoffset: 0; }
  .chip, .badge-live i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 62px 0 60px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .chip-b { left: 18px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .grid-3, .video-grid { grid-template-columns: 1fr; }
  .panels { padding: 22px 18px; }
  .dl-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 auto; }
  .framecard-num .big { font-size: 46px; }
  .nav-inner { height: 60px; gap: 14px; }
  .chip { display: none; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .modal { padding: 12px; }
}

/* =========================================================
   2026-10-26 改版新增：外置准星定位
   显示器框 / 准星工作台 / 皮肤图鉴 / CFG 配置库
   ========================================================= */

/* ---------- Hero 显示器框 ---------- */
.screen {
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
.dot-row { display: flex; gap: 5px; }
.dot-row i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.screen-title { flex: 1; }
.screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
}
.screen-badge i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.8s infinite;
}
.screen-body {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.screen-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(85% 55% at 50% -6%, rgba(126, 168, 216, .30), transparent 58%),
    radial-gradient(40% 30% at 78% 34%, rgba(255, 176, 63, .10), transparent 70%),
    linear-gradient(180deg, #17232f 0%, #1d2b3a 43%, #101821 44%, #070b10 100%);
}
.screen-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 62%);
}
.screen-cross {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  color: #00ff5a;
  filter: drop-shadow(0 0 7px rgba(0, 255, 90, .5));
}
.screen-cross i {
  position: absolute;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .85);
}
.screen-cross .u { width: 2px; height: 12px; left: -1px; top: -20px; }
.screen-cross .d { width: 2px; height: 12px; left: -1px; top: 8px; }
.screen-cross .lf { width: 12px; height: 2px; left: -20px; top: -1px; }
.screen-cross .rt { width: 12px; height: 2px; left: 8px; top: -1px; }
.screen-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
}
.screen-corner.tl { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.screen-corner.tr { right: 10px; top: 10px; border-left: 0; border-bottom: 0; }
.screen-corner.bl { left: 10px; bottom: 10px; border-right: 0; border-top: 0; }
.screen-corner.br { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
.screen-hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 15, .72);
  backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
}
.screen-hud .ok { color: var(--ok); }

/* ---------- 准星工作台 ---------- */
.wb {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.wb-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 20px;
}
.wb-group { display: grid; gap: 12px; }
.wb-group.wb-inline { display: flex; flex-wrap: wrap; gap: 18px; }
.wb-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.wb-label b {
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.wb-row { display: grid; gap: 8px; }

/* 滑杆 */
.wb-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 159, 26, .85), rgba(255, 159, 26, .25));
  outline: none;
  cursor: pointer;
}
.wb-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #ffb03f;
  border: 2px solid #1a1204;
  box-shadow: 0 0 0 3px rgba(255, 159, 26, .18);
  cursor: grab;
}
.wb-panel input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #ffb03f;
  border: 2px solid #1a1204;
  cursor: grab;
}

/* 分段按钮 */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.seg-btn {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .16s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active {
  background: linear-gradient(180deg, #ffb03f, #f08c0c);
  color: #1a1204;
  font-weight: 700;
}

/* 开关 */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.switch input {
  -webkit-appearance: none;
  appearance: none;
  width: 34px; height: 19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--line-2);
  position: relative;
  cursor: pointer;
  transition: background .18s ease;
  flex: none;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .18s ease, background .18s ease;
}
.switch input:checked { background: rgba(255, 159, 26, .28); border-color: rgba(255, 159, 26, .5); }
.switch input:checked::after { transform: translateX(15px); background: #ffb03f; }

/* 色板 */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--c);
  cursor: pointer;
  padding: 0;
  transition: transform .16s ease, box-shadow .16s ease;
}
.sw:hover { transform: translateY(-2px); }
.sw.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
.sw-custom { overflow: hidden; display: grid; place-items: center; }
.sw-custom input[type="color"] {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

/* 预览舞台 */
.wb-stage-wrap { display: grid; gap: 0; min-width: 0; }
.xh-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #070b10;
}
.xh-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(120, 145, 180, .16), transparent 70%),
    linear-gradient(180deg, #0c131b 0%, #101922 55%, #080d13 100%);
}
.xh-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%);
}
.xh-cross {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  color: #00ff5a;
}
.xh-cross.is-dynamic { animation: xh-breathe 2.4s ease-in-out infinite; }
@keyframes xh-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}
.xl {
  position: absolute;
  background: currentColor;
  transition: width .12s linear, height .12s linear, left .12s linear, top .12s linear;
}
.xl.has-outline { box-shadow: 0 0 0 1px rgba(0, 0, 0, .9); }
.xl.hide { display: none; }
.xh-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(6, 10, 15, .75);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
.xh-tip { opacity: .75; }
.wb-stage-wrap .code-head { margin-top: 16px; }
.code-sm { font-size: 12.2px; line-height: 1.7; }

/* ---------- 皮肤图鉴 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-btn {
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .16s ease;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn.is-active {
  background: rgba(255, 159, 26, .14);
  border-color: rgba(255, 159, 26, .45);
  color: var(--accent);
  font-weight: 600;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.skin-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, var(--rarity-dim, rgba(75, 105, 255, .1)), transparent 62%),
    var(--panel);
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.skin-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--rarity, #4b69ff);
}
.skin-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--rarity, #4b69ff) 45%, transparent);
}
.skin-weapon {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
}
.skin-name {
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.3;
}
.skin-meta {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.skin-rarity {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--rarity, #4b69ff);
  background: var(--rarity-dim, rgba(75, 105, 255, .12));
  border: 1px solid color-mix(in srgb, var(--rarity, #4b69ff) 30%, transparent);
}
.skin-st {
  position: absolute;
  right: 12px; top: 12px;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: #ff8a3d;
  background: rgba(255, 138, 61, .12);
  border: 1px solid rgba(255, 138, 61, .32);
}

/* ---------- CFG 配置库 ---------- */
.cfg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cfg-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto 1fr auto; /* 代码块吃掉剩余高度，按钮统一贴底 */
  align-content: stretch;
}
.cfg-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.cfg-head h3 { font-size: 16px; }
.cfg-head p { margin-top: 5px; font-size: 12.8px; color: var(--muted); }
.cfg-tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(255, 159, 26, .1);
  border: 1px solid rgba(255, 159, 26, .28);
}
.cfg-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.cfg-kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .018);
  font-size: 12px;
}
.cfg-kv span { color: var(--muted-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; }
.cfg-kv b { color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 新增区块响应式 ---------- */
@media (max-width: 1180px) {
  .cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .skin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .wb { grid-template-columns: 1fr; }
  .wb-stage-wrap { order: -1; }   /* 手机上先看预览，再拖参数 */
  .cfg-grid { grid-template-columns: 1fr; }
  .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-sm { max-height: 200px; overflow-y: auto; }
}
@media (max-width: 640px) {
  .skin-grid { grid-template-columns: 1fr; }
  .wb-panel { padding: 18px; }
  .xh-info { font-size: 9.5px; letter-spacing: 0; }
  .xh-tip { display: none; }
  .cfg-head { flex-direction: column; gap: 8px; }
  .cfg-kv { grid-template-columns: 1fr; }
}

/* 功能卡图标（内联 SVG） */
.card .ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
