/* ============ 速魅头盔官网 — 暗色霓虹科技风 ============ */
/* 主题色全部由 CSS 变量驱动，后台「网站设置 → 前端按钮配色」可实时调整 */
:root {
  --bg: #04070d;
  --bg2: #070c16;
  --panel: rgba(148, 184, 255, .045);
  --panel2: rgba(148, 184, 255, .09);
  --line: rgba(0, 229, 255, .16);
  --line-soft: rgba(148, 184, 255, .12);
  --cyan: #00e5ff;
  --blue: #4f7cff;
  --violet: #8b5cf6;
  --text: #e6efff;
  --muted: #8fa0c2;
  --grad: linear-gradient(120deg, #00e5ff, #4f7cff 55%, #8b5cf6);
  --btn-text: #02131a;
  --radius: 14px;
  --clip: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font-disp: 'Orbitron', 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(0, 229, 255, .3); background: color-mix(in srgb, var(--cyan) 30%, transparent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #0e2a3a, #0a1a2e); border-radius: 6px; border: 2px solid var(--bg2); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #123a52, #0c2238); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-disp);
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 229, 255, .06);
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
  clip-path: var(--clip);
}
.tag::before { content: '//'; color: var(--blue); }
.empty { color: var(--muted); text-align: center; padding: 48px 0; grid-column: 1 / -1; }
.center-msg { text-align: center; display: grid; gap: 20px; justify-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  padding: 13px 30px; border: none;
  clip-path: var(--clip);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn.primary {
  background: var(--grad);
  color: var(--btn-text);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0, 229, 255, .35); box-shadow: 0 10px 34px color-mix(in srgb, var(--cyan) 35%, transparent); }
.btn.ghost {
  background: rgba(148, 184, 255, .06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn.sm { padding: 9px 18px; font-size: 13px; }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-mark {
  font-family: var(--font-disp);
  font-size: 42px; font-weight: 800; letter-spacing: 10px;
  color: var(--text);
  animation: plPulse 1.4s ease-in-out infinite;
  text-align: center;
}
.pl-mark span {
  display: block; font-family: var(--font-body);
  font-size: 13px; letter-spacing: 6px; color: var(--cyan); margin-top: 10px;
}
@keyframes plPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- 背景与进度条 ---------- */
#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
}
main, footer { position: relative; z-index: 1; }

/* ---------- 导航 ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#nav.solid {
  background: rgba(4, 7, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(0, 229, 255, .5)); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cyan) 50%, transparent)); }
.logo-text {
  font-family: var(--font-disp);
  font-size: 20px; font-weight: 800; letter-spacing: 4px;
  color: var(--text);
}
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 10px 18px;
  font-size: 14px; letter-spacing: 1px;
  color: var(--muted);
  transition: color .25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px;
  height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a.on::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-acts { display: flex; gap: 10px; align-items: center; }
.only-mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; opacity: .5; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, .97) 0%, rgba(4, 7, 13, .84) 34%, rgba(4, 7, 13, .28) 68%, rgba(4, 7, 13, .6) 100%),
    radial-gradient(ellipse 80% 60% at 16% 40%, rgba(0, 229, 255, .12), transparent 62%);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(4, 7, 13, .97) 0%, rgba(4, 7, 13, .84) 34%, rgba(4, 7, 13, .28) 68%, rgba(4, 7, 13, .6) 100%),
      radial-gradient(ellipse 80% 60% at 16% 40%, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 62%);
  }
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 45%, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 45%, black 25%, transparent 72%);
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; padding-top: 4vh; }
.hero-copy h1 {
  font-family: var(--font-disp);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: 2px;
  margin: 22px 0;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.hero-sub { font-size: 17px; color: #b8c6e2; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-certs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; }
.hero-certs span {
  font-size: 12px; letter-spacing: 1.5px; color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(4, 10, 20, .55);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: grid; justify-items: center; gap: 8px;
  font-family: var(--font-disp); font-size: 10px; letter-spacing: 4px; color: var(--muted);
}
.hero-scroll i { width: 1px; height: 44px; background: linear-gradient(180deg, var(--cyan), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 区块 ---------- */
.sec { position: relative; padding: 96px 0; }
.sec.alt {
  background:
    radial-gradient(ellipse 60% 45% at 85% 0%, rgba(79, 124, 255, .07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 8% 100%, rgba(0, 229, 255, .06), transparent 60%),
    var(--bg2);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .sec.alt {
    background:
      radial-gradient(ellipse 60% 45% at 85% 0%, color-mix(in srgb, var(--blue) 7%, transparent), transparent 60%),
      radial-gradient(ellipse 50% 40% at 8% 100%, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 60%),
      var(--bg2);
  }
}
.sec.alt + .sec.alt { border-top: 1px solid rgba(148, 184, 255, .06); }
.pt0 { padding-top: 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 44px;
}
.sec-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.sec-head h1, .sec-head h2 {
  font-family: var(--font-disp);
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 1px;
  margin-top: 14px;
}
.sec-sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.page-head { padding-bottom: 40px; }

/* ---------- 数据 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 34px 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  clip-path: var(--clip);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.stat:hover { border-color: var(--line); box-shadow: 0 0 40px rgba(0, 229, 255, .08) inset; box-shadow: 0 0 40px color-mix(in srgb, var(--cyan) 8%, transparent) inset; }
.stat-num {
  font-family: var(--font-disp);
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; letter-spacing: 2px; margin-top: 6px; }

/* ---------- 网格与卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid.p4 { grid-template-columns: repeat(4, 1fr); }
.grid.p3 { grid-template-columns: repeat(3, 1fr); }
.grid.c5 { grid-template-columns: repeat(5, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }

.p-card {
  background: linear-gradient(180deg, rgba(148, 184, 255, .06), rgba(148, 184, 255, .02));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.p-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, .45);
  border-color: color-mix(in srgb, var(--cyan) 45%, transparent);
  box-shadow: 0 18px 48px rgba(0, 229, 255, .12);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--cyan) 12%, transparent);
}
.p-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #060a12; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.p-card:hover .p-img img { transform: scale(1.06); }
.p-hot {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-disp); font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--btn-text); background: var(--grad);
  padding: 4px 10px; clip-path: var(--clip);
}
.p-body { padding: 18px 20px 20px; }
.p-cat { font-size: 12px; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; }
.p-body h3 { font-size: 16px; font-weight: 600; margin: 8px 0 14px; line-height: 1.4; }
.p-foot { display: flex; align-items: center; justify-content: space-between; }
.p-price { font-family: var(--font-disp); font-size: 18px; font-weight: 800; color: var(--cyan); }
.p-more { color: var(--muted); transition: transform .3s ease, color .3s ease; }
.p-card:hover .p-more { transform: translateX(4px); color: var(--cyan); }

.cat-card {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, .5);
  border-color: color-mix(in srgb, var(--cyan) 50%, transparent);
  box-shadow: 0 18px 48px rgba(0, 229, 255, .12);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--cyan) 12%, transparent);
}
.cat-card:hover img { transform: scale(1.07); }
.cat-ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(3, 6, 12, .92) 88%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
.cat-ov h3 { font-size: 18px; letter-spacing: 2px; }
.cat-ov span { color: var(--cyan); font-size: 12px; letter-spacing: 1px; margin-top: 4px; }
.cat-ov i { position: absolute; right: 18px; bottom: 18px; color: var(--cyan); font-style: normal; transition: transform .3s ease; }
.cat-card:hover .cat-ov i { transform: translateX(4px); }

/* ---------- 首页关于 ---------- */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.at-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft);
}
.at-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.at-img:hover img { transform: scale(1.04); }
.at-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-disp); font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: var(--btn-text); background: var(--grad); padding: 6px 12px; clip-path: var(--clip);
}
.at-copy h2 { font-family: var(--font-disp); font-size: clamp(26px, 3vw, 36px); margin: 14px 0; }
.at-copy > p { color: #b8c6e2; }
.mini-miles { display: grid; gap: 12px; margin: 26px 0 30px; }
.mm { display: flex; gap: 16px; align-items: baseline; }
.mm b {
  font-family: var(--font-disp); color: var(--cyan); font-size: 15px;
  min-width: 52px;
}
.mm span { color: var(--muted); font-size: 14px; }

/* ---------- 产品页 ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 13px; letter-spacing: 1px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-soft);
  padding: 9px 18px; clip-path: var(--clip);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.chip:hover { color: var(--text); border-color: var(--line); }
.chip.on { color: var(--btn-text); background: var(--grad); border-color: transparent; font-weight: 700; }
.input {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  color: var(--text);
  padding: 12px 16px;
  font-size: 14px; font-family: inherit;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
  border-radius: 0;
}
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 12%, transparent); }
.input.search { width: 260px; }
.count { color: var(--muted); font-size: 13px; margin-top: 16px; letter-spacing: 1px; }

/* ---------- 详情页 ---------- */
.detail .back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 26px; transition: color .25s ease; }
.detail .back:hover { color: var(--cyan); }
.d-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.d-main {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; background: #060a12;
}
.d-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.d-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.d-thumb {
  width: 84px; height: 84px; padding: 0; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: 10px; background: none;
  opacity: .55; transition: opacity .25s ease, border-color .25s ease;
}
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-thumb.on, .d-thumb:hover { opacity: 1; border-color: var(--cyan); }
.d-info h1 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; margin: 14px 0; }
.d-price { font-family: var(--font-disp); font-size: 32px; font-weight: 800; color: var(--cyan); margin-bottom: 12px; }
.d-sum { color: #b8c6e2; margin-bottom: 26px; }
.d-specs { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.d-specs caption {
  text-align: left; font-family: var(--font-disp); font-size: 13px;
  letter-spacing: 3px; color: var(--muted); text-transform: uppercase;
  padding-bottom: 12px;
}
.d-specs th, .d-specs td {
  text-align: left; padding: 12px 4px;
  border-bottom: 1px solid rgba(148, 184, 255, .1);
  font-size: 14px;
}
.d-specs th { color: var(--muted); font-weight: 400; width: 40%; }
.d-specs td { color: var(--text); }
.d-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.d-desc { margin-top: 56px; max-width: 860px; }
.d-desc h3 {
  font-family: var(--font-disp); font-size: 14px; letter-spacing: 3px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 14px;
}
.d-desc p { color: #b8c6e2; font-size: 15px; line-height: 1.9; }
.d-rel { margin-top: 72px; }
.d-rel .sec-head { margin-bottom: 30px; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ag-copy h3 { font-family: var(--font-disp); font-size: 14px; letter-spacing: 3px; color: var(--cyan); text-transform: uppercase; margin-bottom: 18px; }
.ag-copy p { color: #b8c6e2; line-height: 2; font-size: 15px; white-space: pre-line; }
.ag-imgs { display: grid; gap: 16px; }
.ag-imgs img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line-soft);
}
.val-card {
  padding: 34px 28px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
}
.val-card:hover { transform: translateY(-6px); border-color: rgba(0, 229, 255, .4); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); }
.val-ic {
  font-family: var(--font-disp); font-size: 13px; font-weight: 800; letter-spacing: 2px;
  color: var(--btn-text); background: var(--grad); padding: 4px 10px; clip-path: var(--clip);
}
.val-card h3 { font-size: 19px; margin: 16px 0 10px; }
.val-card p { color: var(--muted); font-size: 14px; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), transparent);
}
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-dot {
  position: absolute; left: -28px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, .6);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 60%, transparent);
}
.tl-year { font-family: var(--font-disp); font-size: 18px; font-weight: 800; color: var(--cyan); }
.tl-item p { color: #b8c6e2; font-size: 14px; margin-top: 4px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.c-cards { display: grid; gap: 16px; }
.c-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .3s ease, transform .3s ease;
}
.c-card:hover { border-color: rgba(0, 229, 255, .4); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); transform: translateX(4px); }
.c-card i { font-style: normal; font-size: 22px; color: var(--cyan); line-height: 1.3; }
.c-card h4 { font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.c-card p { font-size: 15px; margin-top: 4px; }
.c-form {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: grid; gap: 16px;
}
.c-form h3 { font-size: 19px; }
.c-form .btn { justify-self: start; }

/* ---------- 页脚 ---------- */
#footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg2), #030509);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px;
}
.f-logo span { font-family: var(--font-disp); font-size: 22px; font-weight: 800; letter-spacing: 4px; }
.f-slogan { color: var(--muted); font-size: 13px; letter-spacing: 2px; margin-top: 10px; }
.f-col h4 { font-size: 13px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; margin-bottom: 16px; }
.f-links { display: grid; gap: 10px; font-size: 14px; }
.f-links a { color: var(--muted); transition: color .25s ease; }
.f-links a:hover { color: var(--cyan); }
.f-links span { color: var(--muted); }
.f-bottom {
  border-top: 1px solid rgba(148, 184, 255, .08);
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.f-admin a { color: var(--muted); transition: color .25s ease; }
.f-admin a:hover { color: var(--cyan); }

/* ---------- 浮动件 ---------- */
#to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 55;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(4, 10, 20, .8);
  color: var(--cyan); font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, box-shadow .3s ease;
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { box-shadow: 0 0 24px rgba(0, 229, 255, .35); box-shadow: 0 0 24px color-mix(in srgb, var(--cyan) 35%, transparent); }
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  z-index: 90;
  background: rgba(8, 16, 30, .95);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 22px; font-size: 14px;
  clip-path: var(--clip);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid.p4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c5 { grid-template-columns: repeat(3, 1fr); }
  .d-grid, .about-teaser, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .only-mobile { display: inline-flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(4, 7, 13, .97);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(148, 184, 255, .07); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 68px 0; }
  .input.search { width: 100%; }
}
@media (max-width: 640px) {
  .grid.p4, .grid.p3, .grid.c5, .grid.c3 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 34px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 无障碍 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #fx { display: none; }
  .pl-mark, .hero-scroll i { animation: none; }
  * { transition-duration: .001s !important; }
}
