/* 极限LUA 官网：深舱蓝 + LOGO 青，切角装甲板，驾驶舱 HUD 特效 */

@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B1722;        /* 深舱蓝：页面底色 */
  --plate: #112434;     /* 装甲板：卡片、面板 */
  --plate-2: #183049;   /* 亮板：按钮、头像底 */
  --edge: #24435C;      /* 板缝线 */
  --text: #E3ECF3;      /* 冷白 */
  --muted: #86A0B5;     /* 遥测灰 */
  --accent: #06CDDA;    /* LOGO 青（后台可改） */
  --on-accent: #071C24;
  --cut: 14px;
  --gutter: clamp(20px, 5vw, 72px);
  --font-tech: "Chakra Petch", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 顶部导航 ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
}
.top-logo { display: block; line-height: 0; }
.top-logo img {
  width: 44px; height: 44px;
  transition: filter .25s ease, transform .25s cubic-bezier(.2, .9, .25, 1.25);
}
.top-logo:hover img {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 70%, transparent));
  transform: scale(1.06);
}
.top-nav { display: flex; gap: 28px; }
.top-nav a {
  color: rgba(227, 236, 243, .82); text-decoration: none; font-size: 15px;
  padding: 4px 0;
}
.top-nav a:hover { color: var(--text); }

/* ---------- 按钮（切角） ---------- */
.btn {
  --c: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  font: 600 16px/1 var(--font-body); letter-spacing: .04em;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: -5px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(227, 236, 243, .1); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(227, 236, 243, .18); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  padding: 96px var(--gutter) clamp(36px, 7vh, 80px);
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
/* 显示屏扫描线纹理，叠在背景视频上 */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(4, 10, 16, .26) 0 1px, transparent 1px 3px);
}
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media.is-empty {
  background:
    linear-gradient(rgba(36, 67, 92, .35) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, rgba(36, 67, 92, .35) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(ellipse 70% 60% at 72% 30%, #16304A 0%, var(--bg) 70%);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 23, 34, .45) 0%, rgba(11, 23, 34, .1) 35%, rgba(11, 23, 34, .78) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 23, 34, .72) 0%, rgba(11, 23, 34, 0) 62%);
}
.hero-body { position: relative; z-index: 2; max-width: 1100px; padding-right: 300px; }

/* 字标：7 条横带从两侧滑入拼合 */
.mark {
  position: relative; margin: 0;
  font: 700 clamp(64px, 12.5vw, 184px)/.95 var(--font-tech);
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.mark-bands { display: block; position: relative; }
.mark-band { display: block; }
.mark-band + .mark-band { position: absolute; inset: 0; }
.mark-band {
  clip-path: inset(
    calc(var(--i) * 100% / var(--n) - .5px) 0
    calc(100% - (var(--i) + 1) * 100% / var(--n) - .5px) 0
  );
}
@media (prefers-reduced-motion: no-preference) {
  .mark.is-assembling .mark-band {
    animation: band-lock 950ms cubic-bezier(.16, .84, .24, 1) both;
    animation-delay: calc(var(--d) * 1ms);
  }
}
@keyframes band-lock {
  0% { transform: translateX(var(--from)); opacity: 0; color: var(--accent); }
  55% { opacity: 1; color: var(--accent); }
  100% { transform: none; opacity: 1; color: var(--text); }
}
/* 全息重同步：每隔几秒，字标横带错位闪一下再归位 */
@media (prefers-reduced-motion: no-preference) {
  .mark.is-resync .mark-band { animation: band-resync .28s steps(4, end) both; }
}
@keyframes band-resync {
  0% { transform: translateX(var(--jx, 0)); color: var(--accent); }
  45% { transform: translateX(calc(var(--jx, 0) * -.6)); color: var(--accent); }
  100% { transform: none; color: var(--text); }
}

.hero-slogan {
  margin-top: clamp(16px, 2.4vw, 28px);
  font: 600 clamp(22px, 2.6vw, 34px)/1.3 var(--font-body);
  letter-spacing: .02em;
}
.hero-sub {
  margin-top: 12px; max-width: 34em;
  color: rgba(227, 236, 243, .78); font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* 首屏按钮下的价格小字 */
.hero-price { margin-top: 16px; font-size: 15px; color: rgba(227, 236, 243, .78); }
.hero-price[hidden] { display: none; }
.hero-price strong { margin: 0 .25em; font: 600 20px/1 var(--font-tech); color: var(--accent); }
.hero-price s { margin-right: .25em; color: var(--muted); font-family: var(--font-tech); }

/* 神经网络链接进度 */
.link {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 80px);
  width: min(280px, 32vw);
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px 12px;
  font-size: 14px; color: rgba(227, 236, 243, .78);
}
.link[hidden] { display: none; }
.link-pct {
  font: 600 22px/1 var(--font-tech); color: var(--accent);
  font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right;
}
.link-bar { grid-column: 1 / -1; height: 2px; background: rgba(227, 236, 243, .18); overflow: hidden; }
.link-fill {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
}
.link.is-done .link-label { color: var(--text); }
.link { z-index: 2; }

/* ---------- 首屏 HUD：四角框、两侧刻度尺、开机扫描光束 ---------- */
.hero { --hud-in: clamp(10px, 1.8vw, 24px); --hud-line: color-mix(in srgb, var(--accent) 70%, transparent); }
.hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hud-corner { position: absolute; width: 30px; height: 30px; border: 0 solid var(--hud-line); }
.hc-tl { --dx: 36px; --dy: 36px; top: var(--hud-in); left: var(--hud-in); border-top-width: 2px; border-left-width: 2px; }
.hc-tr { --dx: -36px; --dy: 36px; top: var(--hud-in); right: var(--hud-in); border-top-width: 2px; border-right-width: 2px; }
.hc-bl { --dx: 36px; --dy: -36px; bottom: var(--hud-in); left: var(--hud-in); border-bottom-width: 2px; border-left-width: 2px; }
.hc-br { --dx: -36px; --dy: -36px; bottom: var(--hud-in); right: var(--hud-in); border-bottom-width: 2px; border-right-width: 2px; }
.hud-ruler {
  position: absolute; top: 32%; bottom: 32%; width: 12px;
  background:
    repeating-linear-gradient(180deg, rgba(227, 236, 243, .5) 0 1px, transparent 1px 48px) left top / 12px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(227, 236, 243, .22) 0 1px, transparent 1px 8px) left top / 6px 100% no-repeat;
}
.hr-l { left: calc(var(--hud-in) + 6px); }
.hr-r { right: calc(var(--hud-in) + 6px); transform: scaleX(-1); }
.hud-beam {
  position: absolute; left: 0; right: 0; top: 0; height: 24vh; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 16%, transparent) 100%);
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 12px 22px -10px var(--accent);
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero.is-booting .hud-corner { animation: hud-corner .75s cubic-bezier(.2, .9, .25, 1.2) both; }
  .hero.is-booting .hc-tr { animation-delay: .08s; }
  .hero.is-booting .hc-br { animation-delay: .16s; }
  .hero.is-booting .hc-bl { animation-delay: .24s; }
  .hero.is-booting .hud-ruler { animation: hud-fade .6s .5s both; }
  .hero.is-booting .hud-beam { animation: hud-beam 1.4s cubic-bezier(.45, .05, .35, 1) .05s both; }
}
@keyframes hud-corner {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)); }
  to { opacity: 1; transform: none; }
}
@keyframes hud-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hud-beam {
  0% { opacity: 0; transform: translateY(-100%); }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh); }
}

/* ---------- 瞄准准星：跟着鼠标走，移到按钮上会锁定框住按钮 ---------- */
.reticle {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity .25s ease;
}
.hero.is-aiming .reticle { opacity: 1; }
.ret-h, .ret-v { position: absolute; left: 0; top: 0; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.ret-h { width: 100%; height: 1px; }
.ret-v { width: 1px; height: 100%; }
.ret-box { position: absolute; left: 0; top: 0; width: 36px; height: 36px; }
.ret-spin { position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ret-box:not(.is-locked) .ret-spin { animation: ret-spin 6s linear infinite; }
}
@keyframes ret-spin { to { transform: rotate(360deg); } }
.ret-spin i {
  position: absolute; width: 10px; height: 10px;
  border: 0 solid color-mix(in srgb, var(--accent) 80%, transparent);
  transition: width .2s ease, height .2s ease, border-color .2s ease;
}
.ret-spin i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.ret-spin i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.ret-spin i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.ret-spin i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.ret-box.is-locked .ret-spin i { width: 14px; height: 14px; border-color: var(--accent); }
.ret-read {
  position: absolute; left: 0; top: 0; display: flex; gap: 10px; white-space: nowrap;
  font: 500 12px/1 var(--font-tech); color: var(--accent); letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 区块 ---------- */
.section {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(72px, 10vw, 136px) var(--gutter) 0;
}
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px;
  padding-bottom: 20px; margin-bottom: 36px;
  border-bottom: 1px solid var(--edge);
}
.section-head h2 {
  margin: 0;
  font: 600 clamp(34px, 4.6vw, 56px)/1.08 var(--font-tech);
  letter-spacing: .03em;
}
.section-meta {
  font: 500 18px/1.2 var(--font-tech); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.section-note { grid-column: 1 / -1; max-width: 42em; color: var(--muted); }
.section-note:empty { display: none; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- 视频墙 ---------- */
.video-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 24px; align-items: start;
}
/* 主推视频：独占一整行。内部也用和下面一样的三列网格，视频占左边两列、文字占右边一列，边线全部对齐 */
.video-card.is-feature { grid-column: 1 / -1; }
.is-feature .video-hit {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; align-items: end;
}
.is-feature .video-shell { grid-column: span 2; }
.is-feature .video-text { padding-top: 0; padding-bottom: 2px; }

.video-hit {
  display: block; width: 100%; padding: 0; margin: 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.video-hit:focus-visible { outline: none; }

/* 外壳不裁切，四角锁定框画在这里；里面的 frame 才是切角装甲板 */
.video-shell {
  position: relative; display: block;
  transition: transform .14s ease;
}
.video-frame {
  --b: 2px;                       /* 边框粗细 */
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  background: #1C3A52;            /* 平时：暗色板缝边 */
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color .22s ease;
}
.video-media {
  position: absolute; inset: var(--b); overflow: hidden;
  background: var(--plate);
  /* 内层切角比外层小 1px，斜边也能留出等宽的边框 */
  clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, 0 100%);
}
.video-media.no-poster {
  background: repeating-linear-gradient(135deg, var(--plate) 0 16px, #0F2030 16px 32px);
}
.video-media img, .video-preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}
.video-preview { opacity: 0; transition: opacity .25s ease; }
.video-preview.is-on { opacity: 1; }

.video-dur, .video-src {
  position: absolute; bottom: 10px; z-index: 2;
  padding: 5px 8px;
  background: rgba(11, 23, 34, .84); color: var(--text);
  font: 500 13px/1 var(--font-tech); font-variant-numeric: tabular-nums;
  transition: background-color .22s ease, color .22s ease;
}
.video-dur { left: 10px; }
.video-src { right: 10px; }

/* 四角锁定框：平时藏在外侧，悬停时收拢到边框上 */
.video-bracket {
  position: absolute; z-index: 3; width: 18px; height: 18px;
  border: 0 solid var(--accent); pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .3s cubic-bezier(.2, .9, .25, 1.25);
}
.vb-tl { top: -7px; left: -7px; border-top-width: 2px; border-left-width: 2px; transform: translate(-10px, -10px); }
.vb-bl { bottom: -7px; left: -7px; border-bottom-width: 2px; border-left-width: 2px; transform: translate(-10px, 10px); }
.vb-br { bottom: -7px; right: -7px; border-bottom-width: 2px; border-right-width: 2px; transform: translate(10px, 10px); }
/* 右上角是切角，用一根和斜边平行的短线 */
.vb-tr {
  top: 1px; right: -8px; width: 20px; height: 2px; background: var(--accent);
  transform: translate(8px, -8px) rotate(45deg);
}

/* 扫描线：锁定时从上往下扫一次 */
.video-scan {
  position: absolute; left: var(--b); right: var(--b); top: 0; height: 40%;
  z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 30%, transparent) 100%);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 8px 14px -6px color-mix(in srgb, var(--accent) 80%, transparent);
  transform: translateY(-100%);
}

/* 中间的播放标记 */
.video-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  display: grid; place-items: center;
  background: rgba(7, 18, 28, .72); color: var(--accent);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  opacity: 0; transform: scale(.7);
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .9, .25, 1.25);
  pointer-events: none;
}
.video-play::before {
  content: ""; margin-left: 5px;
  border-left: 17px solid currentColor; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.is-feature .video-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.is-feature .video-play::before { border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; }

/* ---- 悬停（鼠标）或键盘选中：目标锁定 ---- */
.video-hit.is-lock .video-frame,
.video-hit:focus-visible .video-frame { background: var(--accent); }
.video-hit.is-lock .video-bracket,
.video-hit:focus-visible .video-bracket { opacity: 1; transform: none; }
.video-hit.is-lock .vb-tr,
.video-hit:focus-visible .vb-tr { transform: rotate(45deg); }
.video-hit.is-lock .video-play,
.video-hit:focus-visible .video-play { opacity: 1; transform: none; }
.video-hit.is-lock .video-media img { transform: scale(1.04); filter: brightness(1.08); }
.video-hit.is-lock .video-dur,
.video-hit:focus-visible .video-dur { background: var(--accent); color: var(--on-accent); }
.video-hit.is-lock .video-title,
.video-hit:focus-visible .video-title { color: var(--accent); }
.video-hit.is-lock .video-scan { animation: video-scan .75s cubic-bezier(.3, .6, .4, 1) 1; }
@keyframes video-scan {
  0% { opacity: 0; transform: translateY(-100%); }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateY(250%); }
}

/* ---- 点击：按下回弹 + 菱形冲击波 + 闪光，锁定框再收紧一下 ---- */
.video-hit:active .video-shell { transform: scale(.985); }
.video-flash {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--accent); opacity: 0;
}
.video-hit.is-fire .video-flash { animation: video-flash .4s ease-out; }
@keyframes video-flash { 0% { opacity: .38; } 100% { opacity: 0; } }
.video-ripple {
  position: absolute; z-index: 3; pointer-events: none;
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border: 3px solid var(--accent);
  box-shadow: 0 0 16px var(--accent), inset 0 0 16px var(--accent);
  transform: rotate(45deg) scale(0); opacity: 1;
  animation: video-ripple .5s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes video-ripple {
  0% { transform: rotate(45deg) scale(0); opacity: 1; }
  55% { opacity: .9; }
  100% { transform: rotate(45deg) scale(1); opacity: 0; }
}
.video-hit.is-fire .video-bracket { transition-duration: .12s; }
.video-hit.is-fire .vb-tl { transform: translate(6px, 6px); }
.video-hit.is-fire .vb-bl { transform: translate(6px, -6px); }
.video-hit.is-fire .vb-br { transform: translate(-6px, -6px); }
.video-hit.is-fire .vb-tr { transform: translate(-5px, 5px) rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .video-shell, .video-frame, .video-bracket, .video-play, .video-media img { transition: none; }
  .video-hit.is-lock .video-media img { transform: none; }
  .video-hit.is-lock .video-scan { animation: none; }
}
.video-text { display: block; padding-top: 14px; }
.video-title { display: block; font-size: 17px; font-weight: 600; line-height: 1.45; }
.video-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.6;
}
.is-feature .video-title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.is-feature .video-desc { font-size: 15px; margin-top: 10px; -webkit-line-clamp: 4; }
.video-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; margin-top: 24px; padding: 0 24px;
  background: var(--accent); color: var(--on-accent);
  font: 600 15px/1 var(--font-body); letter-spacing: .04em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: filter .18s ease;
}
.video-go::before {
  content: ""; border-left: 10px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.video-hit.is-lock .video-go { filter: brightness(1.1); }

/* ---------- 经销商 ---------- */
.dealer-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 16px;
}
.dealer {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
  padding: 20px; background: var(--plate); border: 1px solid var(--edge);
  transition: border-color .22s ease, background-color .22s ease, transform .14s ease;
}
/* 内容盖在特效层上面 */
.dealer > .dealer-avatar, .dealer > .dealer-info, .dealer > .dealer-actions { position: relative; z-index: 1; }

/* 头像：外层是 2px 边框（平时板缝色，锁定时主色），内层是切角头像 */
.dealer-avatar {
  width: 64px; height: 64px; padding: 2px;
  background: var(--edge);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color .22s ease;
}
.dealer-avatar-in {
  width: 100%; height: 100%; overflow: hidden;
  display: grid; place-items: center; background: var(--plate-2);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}
.dealer-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.dealer-initial { font: 700 26px/1 var(--font-tech); color: var(--accent); }
.dealer-name {
  font-size: 18px; font-weight: 600; line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere;
  transition: color .22s ease;
}
.dealer-contact { margin-top: 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.dealer-cval { color: var(--text); font-family: var(--font-tech); letter-spacing: .02em; }
.dealer-ctype + .dealer-cval { margin-left: 6px; }
.dealer-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.dealer-actions:empty { display: none; }
.mini {
  flex: 1; min-height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--plate-2); color: var(--text); border: 0; cursor: pointer;
  font: 500 14px/1 var(--font-body); text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
.mini:hover { background: color-mix(in srgb, var(--accent) 24%, var(--plate-2)); }
.mini:active { transform: scale(.96); }
.mini.is-done { background: var(--accent); color: var(--on-accent); }

/* 特效层：扫描线、闪光、冲击波都在这里，超出卡片的部分裁掉 */
.dealer-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dealer-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 45%; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 22%, transparent) 100%);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 8px 14px -6px color-mix(in srgb, var(--accent) 80%, transparent);
  transform: translateY(-100%);
}
.dealer-flash { position: absolute; inset: 0; background: var(--accent); opacity: 0; }

/* 四角锁定框 */
.dealer-bracket {
  position: absolute; z-index: 2; width: 16px; height: 16px;
  border: 0 solid var(--accent); pointer-events: none; opacity: 0;
  transition: opacity .18s ease, transform .3s cubic-bezier(.2, .9, .25, 1.25);
}
.db-tl { top: -7px; left: -7px; border-top-width: 2px; border-left-width: 2px; transform: translate(-9px, -9px); }
.db-tr { top: -7px; right: -7px; border-top-width: 2px; border-right-width: 2px; transform: translate(9px, -9px); }
.db-bl { bottom: -7px; left: -7px; border-bottom-width: 2px; border-left-width: 2px; transform: translate(-9px, 9px); }
.db-br { bottom: -7px; right: -7px; border-bottom-width: 2px; border-right-width: 2px; transform: translate(9px, 9px); }

/* ---- 悬停（鼠标）或用键盘选中卡片里的按钮：目标锁定 ---- */
.dealer.is-lock, .dealer:has(:focus-visible) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--plate));
}
.dealer.is-lock .dealer-avatar, .dealer:has(:focus-visible) .dealer-avatar { background: var(--accent); }
.dealer.is-lock .dealer-avatar img { transform: scale(1.08); }
.dealer.is-lock .dealer-name, .dealer:has(:focus-visible) .dealer-name { color: var(--accent); }
.dealer.is-lock .dealer-bracket, .dealer:has(:focus-visible) .dealer-bracket { opacity: 1; transform: none; }
.dealer.is-lock .dealer-scan { animation: video-scan .75s cubic-bezier(.3, .6, .4, 1) 1; }

/* ---- 点击：按下回弹 + 菱形冲击波 + 闪光，锁定框收紧一下 ---- */
.dealer:active { transform: scale(.99); }
.dealer.is-fire .dealer-flash { animation: dealer-flash .42s ease-out; }
@keyframes dealer-flash { 0% { opacity: .22; } 100% { opacity: 0; } }
.dealer.is-fire .dealer-bracket { transition-duration: .12s; }
.dealer.is-fire .db-tl { transform: translate(5px, 5px); }
.dealer.is-fire .db-tr { transform: translate(-5px, 5px); }
.dealer.is-fire .db-bl { transform: translate(5px, -5px); }
.dealer.is-fire .db-br { transform: translate(-5px, -5px); }

@media (prefers-reduced-motion: reduce) {
  .dealer, .dealer-avatar, .dealer-avatar img, .dealer-bracket, .mini { transition: none; }
  .dealer.is-lock .dealer-avatar img { transform: none; }
  .dealer.is-lock .dealer-scan, .dealer.is-fire .dealer-flash { animation: none; }
  .dealer:active, .mini:active { transform: none; }
}
/* ---------- 价格面板（经销商区顶部） ---------- */
.price-panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 40px;
  margin-bottom: 16px; padding: 28px 32px;
  background: color-mix(in srgb, var(--accent) 7%, var(--plate));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--edge));
  transition: border-color .22s ease, transform .14s ease;
}
.price-panel[hidden] { display: none; }
.price-panel > .price-info, .price-panel > .price-amount { position: relative; z-index: 1; }
.price-label { color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.price-name { margin-top: 6px; font: 600 clamp(22px, 2.4vw, 30px)/1.25 var(--font-tech); overflow-wrap: anywhere; }
.price-note { margin-top: 8px; max-width: 40em; color: var(--muted); font-size: 15px; }
.price-note:empty { display: none; }
.price-feats {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
}
.price-feats li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; }
.price-feats li::before {
  content: ""; flex: none; width: 7px; height: 7px;
  background: var(--accent); transform: rotate(45deg);
}
.price-amount { text-align: right; }
.price-now {
  font: 700 clamp(56px, 7vw, 92px)/.9 var(--font-tech); color: var(--accent);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price-cur { font-size: .4em; vertical-align: 1.1em; margin-right: .12em; }
.price-orig { display: block; margin-top: 10px; color: var(--muted); font: 500 18px/1 var(--font-tech); }
.price-orig[hidden] { display: none; }

/* 悬停锁定 / 点击冲击波，和经销商卡片同一套 */
.price-panel.is-lock { border-color: var(--accent); }
.price-panel.is-lock .dealer-bracket { opacity: 1; transform: none; }
.price-panel.is-lock .dealer-scan { animation: video-scan .75s cubic-bezier(.3, .6, .4, 1) 1; }
.price-panel:active { transform: scale(.995); }
.price-panel.is-fire .dealer-flash { animation: dealer-flash .42s ease-out; }
.price-panel.is-fire .dealer-bracket { transition-duration: .12s; }
.price-panel.is-fire .db-tl { transform: translate(5px, 5px); }
.price-panel.is-fire .db-tr { transform: translate(-5px, 5px); }
.price-panel.is-fire .db-bl { transform: translate(5px, -5px); }
.price-panel.is-fire .db-br { transform: translate(-5px, -5px); }
@media (prefers-reduced-motion: reduce) {
  .price-panel { transition: none; }
  .price-panel.is-lock .dealer-scan, .price-panel.is-fire .dealer-flash { animation: none; }
  .price-panel:active { transform: none; }
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1440px; margin: clamp(80px, 10vw, 136px) auto 0;
  padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--edge); color: var(--muted); font-size: 14px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { width: 28px; height: 28px; }
.foot-name { font-family: var(--font-tech); font-weight: 600; color: var(--text); }

/* ---------- 播放器 ---------- */
.player {
  width: min(1280px, 94vw); max-width: none; max-height: 96vh;
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.player::backdrop { background: rgba(4, 10, 16, .9); }
.player-stage {
  --arw: 16; --arh: 9;
  position: relative; margin: 0 auto; background: #000;
  aspect-ratio: var(--arw) / var(--arh);
  width: min(100%, calc(82vh * var(--arw) / var(--arh)));
}
.player-stage video, .player-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar {
  display: flex; align-items: center; gap: 16px;
  width: min(100%, calc(82vh * var(--arw) / var(--arh))); margin: 14px auto 0;
}
.player-title { flex: 1; font-size: 17px; font-weight: 600; min-width: 0; }
.player-out { color: var(--muted); font-size: 14px; }
.player-out:hover { color: var(--text); }
.player-close {
  min-height: 40px; padding: 0 18px; border: 0; cursor: pointer;
  background: var(--plate-2); color: var(--text); font: 500 14px/1 var(--font-body);
}
.player-close:hover { background: #1F3D5C; }

/* 播放器展开：先亮起一个点，拉成一条横线，再上下展开成画面（全息投影启动） */
.player-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--accent); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .player[open]::backdrop { animation: player-fade .25s ease both; }
  .player[open] .player-stage { animation: player-holo .46s cubic-bezier(.2, .8, .2, 1) both; }
  .player[open] .player-stage::after { animation: player-glow .46s ease-out both; }
  .player[open] .player-bar { animation: player-fade .3s .22s ease both; }
}
@keyframes player-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes player-holo {
  0% { clip-path: inset(calc(50% - 1px) 49% calc(50% - 1px) 49%); }
  38% { clip-path: inset(calc(50% - 1px) 0 calc(50% - 1px) 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes player-glow {
  0%, 38% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 两列时主推视频改成上下排：视频占满整行，文字在下面，和下面两列的边线对齐 */
  .is-feature .video-hit { display: block; }
  .is-feature .video-text { padding-top: 16px; }
  .is-feature .video-desc { -webkit-line-clamp: 2; }
  .video-go { margin-top: 16px; }
}
@media (max-width: 760px) {
  .hero-body { padding-right: 0; }
  .hud-ruler { display: none; }
  .hud-corner { width: 18px; height: 18px; }
  .is-feature .video-hit { display: block; }
  .is-feature .video-text { padding-top: 14px; }
  .is-feature .video-desc { margin-top: 4px; -webkit-line-clamp: 2; }
  .video-go { display: none; }
  .link { position: static; width: 100%; margin-top: 36px; }
  .hero { align-content: end; }
}
@media (max-width: 640px) {
  .top-nav { gap: 20px; }
  .video-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub { font-size: 16px; }
  .btn { flex: 1; padding: 0 18px; }
  .section-head { margin-bottom: 28px; }
  .price-panel { grid-template-columns: 1fr; padding: 22px; }
  .price-amount { text-align: left; }
}
