/* =============================================================================
   通用底座 · 主题与组件  theme.css
   -----------------------------------------------------------------------------
   这里只放"自定义类"。Tailwind 的工具类由 core/tw.css（预编译）提供。
   颜色一律走 CSS 变量，变量由 core/config.js 注入 → 改 config.js 全站换色。
   ============================================================================= */

/* ===================== 0. 设计 token =====================
   全站时长只用这 4 档、曲线只用这 3 条。
   加新动效时从这里取值，不要再写 .35s / ease 这种散值 ——
   散值一多，同一屏里就会“有的快有的慢”，用户说不出哪里怪，但就是觉得不顺。
   --st / --rise 同时是错峰开关：设 0 就等于关闭错峰（无障碍降级也走这两个变量）。 */
:root {
  --t-1: 160ms;   /* 状态反馈：chip / 文字色 / 边框 */
  --t-2: 240ms;   /* 小件入场：toast / 对话气泡 / tab 面板 */
  --t-3: 360ms;   /* 中件：导航 / 浮层 / 次级入场 */
  --t-4: 520ms;   /* 大件：板块入场 / 首屏文案 / 轮播交叉淡 */

  --e-out:  cubic-bezier(.16, .84, .44, 1);  /* 入场：起步快、收尾长 —— 电影感的来源 */
  --e-io:   cubic-bezier(.4, 0, .2, 1);      /* 状态切换：进出对称 */
  --e-soft: cubic-bezier(.22, .61, .36, 1);  /* 旧的柔和曲线，已被 6 处复用，保留 */

  --st: 45ms;      /* 错峰步长 */
  --rise: 14px;    /* 板块上浮距离 */
  --rise-sm: 8px;  /* 小件上浮距离 */
}
@media (max-width: 720px) {
  :root { --st: 30ms; --rise: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --st: 0ms; --rise: 0px; }
}

/* ===================== 1. 基础 ===================== */
html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, #f8fafd 0%, #f0f4fa 46%, #e9eef7 100%);
  color: #3a4150;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d2de; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--c-primary) / .45); }
::-webkit-scrollbar-track { background: #f4f5f7; }

/* 选中文字也带品牌色 */
::selection { background: rgb(var(--c-primary) / .18); }

/* ===================== 2. 全站背景层 ===================== */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 560px at 10% -6%, rgb(var(--c-primary) / .07), transparent 62%),
    radial-gradient(860px 560px at 92% 16%, rgb(var(--c-primary-dim) / .06), transparent 60%),
    radial-gradient(760px 640px at 50% 118%, rgb(var(--c-primary) / .05), transparent 62%);
}
/* 全站网格：向外多铺 96px 再整体平移，避免滚动时露出边（transform 走 GPU，不重绘） */
.grid-lines {
  position: fixed; inset: -96px; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgb(var(--c-primary) / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--c-primary) / .045) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 26s linear infinite;
  will-change: transform;
}
@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(48px, 48px, 0); }
}

/* ===================== 3. 文字与标题 ===================== */
.neon-text { color: rgb(var(--c-primary)); text-shadow: 0 0 14px rgb(var(--c-primary) / .28); }

.grad-text {
  background: linear-gradient(96deg, rgb(var(--c-primary)), rgb(var(--c-primary-dim)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-light {
  background: linear-gradient(90deg, rgb(var(--c-accent)), rgb(var(--c-primary-dim)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 板块标题左侧渐变科技竖线 */
.sec-title { position: relative; padding-left: 20px; }
.sec-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 26px; border-radius: 3px;
  background: linear-gradient(180deg, rgb(var(--c-primary)), rgb(var(--c-accent)));
  box-shadow: 0 0 10px rgb(var(--c-primary) / .35);
}

/* ===================== 4. 动效基元 ===================== */
@keyframes pulseDot { 50% { opacity: .4; } }
.pulse-dot { animation: pulseDot 1.6s infinite; }

@keyframes dotFlick { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 55% { opacity: .85; } }
.dot-flicker { animation: dotFlick 1.6s ease-in-out infinite; }

@keyframes breathe { 50% { box-shadow: 0 0 26px rgb(var(--c-primary) / .22); } }
.breathe { animation: breathe 2.8s infinite; }

@keyframes shineMove { 0% { left: -80%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-16deg);
  animation: shineMove 3.2s ease-in-out infinite;
}
/* 主按钮：悬停时霓虹外辉 + 扫光加速，给出"通电"的反馈 */
.shine:hover {
  box-shadow: 0 8px 26px rgb(var(--c-primary) / .26), 0 0 30px rgb(var(--c-cyan) / .26);
}
.shine:hover::after { animation-duration: 1.1s; }

/* ===================== 5. 卡片 ===================== */
/* 悬停抬升是默认行为；3D 微倾斜额外加 .tilt-on（由 motion.js 在指针进入时挂上），
   这样静止的卡片不背 3D 上下文 —— 文字保持亚像素渲染，也不会几十张卡同时上合成层。 */
.card-glow {
  position: relative;
  /* 进快出慢：进入时跟手（.32s），离开时慢慢沉回去（.5s）。
     这一条是全站“贵不贵”的分水岭，比加任何新装饰都有效。 */
  transition: transform .5s var(--e-out), border-color .2s var(--e-io), box-shadow .28s var(--e-io);
}
.card-glow:hover {
  transition-duration: .32s, .16s, .22s;
  transform: translateY(-4px);
  border-color: rgb(var(--c-primary) / .42);
  box-shadow: 0 14px 32px rgba(30, 60, 110, .11),
              0 0 0 1px rgb(var(--c-primary) / .12),
              0 6px 22px rgb(var(--c-primary) / .12),
              0 0 34px rgb(var(--c-cyan) / .16),
              inset 0 1px 0 rgba(255, 255, 255, .9);
  will-change: transform;
}
.card-glow.tilt-on:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
}

/* 玻璃拟态面板：1px 渐变描边 + 内高光 */
.board-screen {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .78)) padding-box,
    linear-gradient(135deg, rgb(var(--c-primary) / .5), rgb(var(--c-primary) / .14) 50%, rgb(var(--c-primary-dim) / .34)) border-box;
  box-shadow: 0 12px 28px rgba(30, 60, 110, .10), 0 4px 14px rgba(30, 60, 110, .06), inset 0 1px 0 rgba(255, 255, 255, .85);
}
/* 面板悬停：不是整块弹起，而是边框“通了电”。
   只抬 2px —— 面板比卡片大，4px 会晃。 */
html:not(.m-nohover) .board-screen { transition: transform .36s var(--e-out), box-shadow .24s var(--e-io); }
html:not(.m-nohover) .board-screen::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .24s var(--e-io);
  box-shadow: inset 0 0 0 1px rgb(var(--c-primary) / .34), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html:not(.m-nohover) .board-screen:hover { transform: translateY(-2px); }
html:not(.m-nohover) .board-screen:hover::before { opacity: 1; }
html.lite .board-screen::before { opacity: 1; }   /* 低端机不抬升，静态描边仍在 */
html.lite .board-screen:hover { transform: none; }

@keyframes boardBreath {
  0%, 100% { box-shadow: 0 10px 34px rgba(30, 60, 110, .08); }
  50% { box-shadow: 0 12px 46px rgb(var(--c-primary) / .20); }
}
.board { animation: boardBreath 5s ease-in-out infinite; }

/* ===================== 6. 导航 ===================== */
.nav-solid { background: rgba(255, 255, 255, .94) !important; box-shadow: 0 8px 30px rgba(30, 60, 110, .08); }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-100%); background-color: rgba(255, 255, 255, 0); }
  to   { opacity: 1; transform: none; background-color: rgba(255, 255, 255, .85); }
}
.nav-in { animation: navIn .55s var(--e-soft) .12s backwards; }
/* ★ 这里必须是 backwards 不是 both：both 会让动画终值（background-color）永久生效，
   把下面 .nav-solid 的底色切换整条压死，滚到 8px 时导航就只能“啪”一下硬切。 */
#mainHeader { transition: background-color .3s var(--e-io), box-shadow .3s var(--e-io); }

.cat-menu { transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.cat-menu.hide { opacity: 0; transform: translateY(-8px); visibility: hidden; }

/* ===================== 7. 滚动渐入 ===================== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ===================== 8. 表单 ===================== */
.f-input {
  width: 100%; background: #fff; border: 1px solid rgb(var(--c-primary) / .22);
  border-radius: 12px; padding: 11px 14px; font-size: 13px; color: #3a4150; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.f-input::placeholder { color: #a3aec0; }
.f-input:focus { border-color: rgb(var(--c-primary) / .55); box-shadow: 0 0 0 3px rgb(var(--c-primary) / .10); }
select.f-input {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 15px;
}
textarea.f-input { resize: vertical; min-height: 92px; }

/* ===================== 9. 筛选 / 标签 ===================== */
.f-chip {
  font-size: 12px; padding: 6px 14px; border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, .5); color: #64748b; background: #fff;
  transition: all .2s ease; cursor: pointer; line-height: 1.4;
}
.f-chip:hover { border-color: rgb(var(--c-primary) / .55); color: rgb(var(--c-primary)); }
.f-chip.on { border-color: rgb(var(--c-primary) / .6); background: rgb(var(--c-primary) / .1); color: rgb(var(--c-primary)); font-weight: 500; }

.tab-btn { transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.tab-idle { color: #64748b; background: rgba(255, 255, 255, .6); border: 1px solid rgb(var(--c-primary) / .14); }
.tab-idle:hover { color: rgb(var(--c-primary)); border-color: rgb(var(--c-primary) / .35); }
.tab-active {
  color: rgb(var(--c-primary)); background: rgb(var(--c-primary) / .10); font-weight: 600;
  border: 1px solid rgb(var(--c-primary) / .38); box-shadow: 0 0 0 3px rgb(var(--c-primary) / .08);
}
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tab-panel { animation: tabIn .35s ease; }

.q-chip { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.q-chip:hover { color: rgb(var(--c-primary)); border-color: rgb(var(--c-primary) / .45); box-shadow: 0 0 0 3px rgb(var(--c-primary) / .08); }

/* ===================== 10. 图表小件 ===================== */
.bar { transition: opacity .2s ease; }
.bar:hover { opacity: .75; }
.pbar { transition: width .9s cubic-bezier(.22, .61, .36, 1); }

/* 倒计时数字盒 */
.cd-box {
  min-width: 44px; text-align: center; padding: 6px 4px; border-radius: 8px;
  border: 1px solid rgb(var(--c-primary) / .28); background: rgb(var(--c-primary) / .07);
  font-family: Consolas, monospace; font-size: 20px; font-weight: 700; color: rgb(var(--c-primary));
}

/* ===================== 11. 对话 / 打字点 ===================== */
.chat-scroll::-webkit-scrollbar { width: 5px; }
@keyframes typingDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c-primary)); animation: typingDot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-in { animation: msgIn .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .4s ease; }

/* ===================== 12. 提示 ===================== */
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast-show { animation: toastIn .3s ease both; }
.toast-inner { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }
.toast-inner.show { opacity: 1; transform: none; }

/* 占位链接禁用态 */
.link-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* 小圆点 / 角标发光（替代 Tailwind 里不好写的带变量任意值） */
.badge-glow { box-shadow: 0 0 10px rgb(var(--c-primary) / .5); }
.cart-glow  { box-shadow: 0 0 12px rgb(var(--c-primary) / .6); }

/* =============================================================================
   13. 首屏沉浸层（本次升级的核心）
   ============================================================================= */

/* 首屏底：径向聚光 */
.hero-bg { background: radial-gradient(1100px 540px at 50% 28%, #fff 0%, #eef3fb 42%, #dfe9f6 100%); }

/* 极光画布：铺在首屏底层；multiply 让极光"染"进浅色底，
   玻璃卡 backdrop-blur 之后再变白也不会把极光完全洗掉 */
.aurora-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply; }

/* 粒子画布：压在极光之上，接收鼠标 */
.fx-canvas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* 卡内粒子层（data-fx="micro"）：浮在卡面之上、文案之下。
   必须放在带 isolate 的容器里，z-index:-1 才不会被容器背景盖住 */
.fx-canvas-soft { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* 透视网格地平线：向下无限流动 */
.hero-grid {
  background-image:
    linear-gradient(rgb(var(--c-primary) / .09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--c-primary) / .09) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(540px) rotateX(65deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 100%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 100%, #000 20%, transparent 78%);
  animation: gridFlow 3.2s linear infinite;
}
@keyframes gridFlow {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 48px, 48px 0; }
}

/* 斜向扫描光带：动画 transform 而不是 left，柔边做进渐变色标而不是 filter:blur ——
   两者都会让整条 24%×190% 的光带每帧重新光栅化。 */
.beam {
  position: absolute; top: -45%; left: 0; width: 24%; height: 190%; z-index: 4;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 4%, rgba(255, 255, 255, .42) 26%,
              rgba(255, 255, 255, .75) 38%, rgb(var(--c-accent) / .14) 52%, transparent 74%);
  will-change: transform;
  animation: beamSweep 6.5s ease-in-out infinite;
}
@keyframes beamSweep {
  0%   { transform: translateX(-175%) rotate(15deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(508%) rotate(15deg); opacity: 0; }
}

/* 主标题：思源宋体 Heavy，纯深墨色。原来那套十色霓虹渐变 + 扫光已去掉 ——
   渐变本身没错，错在颜色多、还动，跟"严选"的气质相反。 */
.hero-title {
  font-family: "Source Han Serif SC Heavy", "Source Han Serif SC", "Songti SC", serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.2;
  color: #14202b;
  letter-spacing: .04em;
  filter: drop-shadow(0 2px 6px rgba(18, 46, 92, .10));
}
@keyframes titleSweep { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }

/* 首屏卡片内的英文底纹：沉在轮播卡下半段的留白带里，
   不再压正文；置于 .b-slide(z-index:2) 之下，四张轮播共用。
   径向遮罩：以底边中点为圆心，向上、向两侧自然淡出（避免与 CTA 按钮生硬相撞） */
.hero-wm {
  position: absolute; left: 0; right: 0; bottom: 58px; z-index: 0;
  text-align: center; pointer-events: none; user-select: none;
  font-family: var(--font-tech, "Microsoft YaHei", sans-serif); font-weight: 800; line-height: 1;
  white-space: nowrap; font-size: clamp(24px, 3.4vw, 50px); letter-spacing: .12em;
  color: rgb(var(--c-primary-dim)); opacity: .075;
  -webkit-mask-image: radial-gradient(115% 120% at 50% 100%, #000 42%, transparent 76%);
  mask-image: radial-gradient(115% 120% at 50% 100%, #000 42%, transparent 76%);
}

/* 首屏四角 L 型装饰线 */
.hero-corner { position: absolute; width: 28px; height: 28px; pointer-events: none; z-index: 6; border-color: rgb(var(--c-primary) / .30); }

/* 首屏入场 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.deco-in { animation: fadeIn .55s ease both; }
.hero-in { animation: heroUp .65s cubic-bezier(.22, .61, .36, 1) .34s both; }
.wm-in   { animation: fadeIn .9s ease .3s both; }
@keyframes boardIn { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes boardBreath2 {
  0%, 100% { box-shadow: 0 12px 28px rgba(30, 60, 110, .10), 0 4px 14px rgba(30, 60, 110, .05), inset 0 1px 0 rgba(255, 255, 255, .85); filter: brightness(1); }
  50%      { box-shadow: 0 14px 34px rgb(var(--c-primary) / .18), 0 5px 16px rgb(var(--c-primary) / .08), inset 0 1px 0 rgba(255, 255, 255, .9); filter: brightness(1.02); }
}
.board-in { animation: boardIn .6s ease .6s backwards, boardBreath2 2.2s ease-in-out 1.5s infinite; }
/* ★ 同理用 backwards：both 的终值 transform:none 会永久压住内联的 data-parallax，
   首页看板的视差从来没有生效过。 */

/* 内页页头：首屏的轻量版 */
.page-head { position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--c-primary) / .35), rgb(var(--c-accent) / .35), transparent);
}

/* ===================== 14. 轮播（首页） ===================== */
.b-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-4) var(--e-io); pointer-events: none; }
.b-slide.on { opacity: 1; pointer-events: auto; z-index: 2; }

/* 轮播抽象科技背景 */
.s-bg   { background: linear-gradient(135deg, #f2f5fb 0%, #e7edf7 48%, #d9e2f1 100%); }
.s-bg-2 { background: linear-gradient(205deg, #f3f6fb 0%, #e6ecf6 50%, #d8e1f0 100%); }
.s-bg-3 { background: linear-gradient(155deg, #f1f4fa 0%, #e5ebf5 46%, #d7e0ef 100%); }
.s-grid {
  background-image:
    linear-gradient(rgb(var(--c-primary-dim) / .09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--c-primary-dim) / .09) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 105% at 34% 40%, #000 26%, transparent 82%);
  mask-image: radial-gradient(125% 105% at 34% 40%, #000 26%, transparent 82%);
}
.s-flow {
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgb(var(--c-primary-dim) / .08) 22px 23px);
  -webkit-mask-image: linear-gradient(115deg, transparent 12%, #000 55%, transparent 90%);
  mask-image: linear-gradient(115deg, transparent 12%, #000 55%, transparent 90%);
}
.s-glow   { background: radial-gradient(430px 260px at 78% 20%, rgb(var(--c-primary-dim) / .24), transparent 62%), radial-gradient(320px 220px at 18% 84%, rgb(var(--c-primary) / .14), transparent 60%); }
.s-glow-2 { background: radial-gradient(420px 260px at 26% 28%, rgb(var(--c-primary-dim) / .22), transparent 62%), radial-gradient(340px 240px at 84% 78%, rgb(var(--c-primary) / .14), transparent 60%); }
.s-glow-3 { background: radial-gradient(460px 280px at 82% 62%, rgb(var(--c-primary-dim) / .22), transparent 62%), radial-gradient(300px 220px at 24% 18%, rgb(var(--c-primary) / .14), transparent 60%); }

/* ===================== 15. 数字人直播 / AI 导购 ===================== */
.live-cover {
  background: linear-gradient(150deg, rgb(var(--c-primary-deep) / .92), rgba(13, 28, 56, .94));
}
.live-dot { background: rgb(var(--c-wine)); }

/* ---------- 15.1 AI 导购轮播（第 4 张：视频） ----------
   桌面：左边文案、右边视频（绝对定位，和前三张的文案列宽一致）
   平板/手机：改成上下堆叠，视频占满宽度 —— 竖着塞不下的问题在这里解决
   视频本身是 16:9，object-fit: cover 保证任何盒子比例都不变形 */
.guide-copy {
  /* 这一张只有四行字，顶着上沿会显得空；垂直居中，和右边的视频齐平 */
  position: absolute; inset: 0 auto 0 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  /* 右侧视频暂时下架（客户要换片），文案区放宽，别让画面空一半 */
  padding: 0 24px 0 64px; max-width: 720px;
}
.guide-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 14px; border-radius: 9999px;
  border: 1px solid rgb(var(--c-wine) / .3);
  background: rgb(var(--c-wine) / .07);
  color: rgb(var(--c-wine)); font-size: 12px; letter-spacing: .18em;
}
.guide-badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--c-wine)); display: inline-block;
  box-shadow: 0 0 0 0 rgb(var(--c-wine) / .5);
  animation: guidePulse 2s var(--e-io) infinite;
}
@keyframes guidePulse {
  0%   { box-shadow: 0 0 0 0 rgb(var(--c-wine) / .45); }
  70%  { box-shadow: 0 0 0 7px rgb(var(--c-wine) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--c-wine) / 0); }
}
.guide-title {
  margin: 22px 0 0;
  font-size: 44px; line-height: 1.1; letter-spacing: -.01em;
  font-weight: 800; color: #1e293b;
}
.guide-desc {
  margin-top: 20px; font-size: 15px; line-height: 1.8; color: #475569;
}
.guide-acts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.guide-media {
  position: absolute; right: 52px; top: 50%; transform: translateY(-50%);
  width: 372px; z-index: 2;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  background: #0C161C;
  box-shadow: 0 24px 60px -20px rgba(15,60,70,.45), 0 2px 10px rgba(15,60,70,.12);
}
.guide-media video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; background: #0C161C;
}
.guide-live {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  background: rgba(12,22,28,.62); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; letter-spacing: .12em;
}
.guide-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #f87171;
  display: inline-block; animation: guidePulse 2s var(--e-io) infinite;
}
/* 声音开关：默认静音，点一下才有声（浏览器不让带声音自动播，这是唯一合规做法） */
.guide-snd {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 10px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(12,22,28,.66); backdrop-filter: blur(6px);
  color: #fff; font-size: 11.5px; letter-spacing: .06em;
  cursor: pointer; transition: background .2s, border-color .2s, transform .12s;
}
.guide-snd:hover { background: rgba(12,22,28,.82); border-color: rgba(255,255,255,.45); }
.guide-snd:active { transform: scale(.97); }
.guide-snd svg { width: 14px; height: 14px; flex: 0 0 auto; }
.guide-snd .i-on { display: none; }
.guide-snd.on { background: rgb(var(--c-primary-deep) / .92); border-color: rgb(var(--c-primary-tint) / .55); }
.guide-snd.on .i-mute { display: none; }
.guide-snd.on .i-on { display: block; }
.guide-media { cursor: pointer; }

.guide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px; font-size: 11px; letter-spacing: .1em;
  color: rgba(255,255,255,.85); text-align: right;
  background: linear-gradient(to top, rgba(12,22,28,.55), transparent);
}

@media (max-width: 1279px) {
  .guide-copy { padding-left: 44px; max-width: 470px; }
  .guide-title { font-size: 36px; }
  .guide-media { width: 318px; right: 50px; }
}

/* ===== 第 1 张（主打位）：数字人视频比第 4 张大一档 =====
   第 4 张的 .guide-media 是配角尺寸（372），这一张是首屏主视觉，放到 460。
   左边文案 max-width 同步收到 600，两边别打架。 */
.guide-media.guide-media-hero { width: 460px; right: 64px; }

@media (max-width: 1279px) {
  .b-copy-hero { max-width: 470px; padding-left: 44px; }
  .b-copy-hero .hero-title { font-size: 34px; }
  .guide-media.guide-media-hero { width: 380px; right: 56px; }
}

/* 平板：仍左右分栏。460 高装不下堆叠，只能两边一起收 */
@media (min-width: 721px) and (max-width: 1023px) {
  .b-copy-hero { max-width: 380px; padding: 0 10px 0 28px; }
  .b-copy-hero .hero-title { font-size: 30px; }
  .b-copy-hero > p { font-size: 13.5px; margin-top: 14px; }
  .b-copy-hero > div { margin-top: 20px; gap: 10px; }
  .guide-media.guide-media-hero {
    /* right 必须大于箭头所占的宽度（right:12 + 36），否则箭头会压在视频边上 */
    position: absolute; top: 50%; right: 58px; transform: translateY(-50%);
    width: 296px; margin: 0; border-radius: 14px;
  }
}

/* 手机：上下堆叠。b-copy 默认是 absolute inset-y-0，必须放开，否则视频没位置 */
@media (max-width: 720px) {
  .b-copy-hero {
    position: static; max-width: none;
    padding: 22px 20px 0;
  }
  .b-copy-hero .hero-title { font-size: 30px; }
  .b-copy-hero > p { margin-top: 12px; font-size: 13.5px; }
  .b-copy-hero > div { margin-top: 14px; gap: 9px; }
  .b-copy-hero > div a { padding: 10px 20px; font-size: 13px; }
  .b-copy-hero .hero-badge-m { margin-bottom: 14px; }
  /* 堆叠时别让视频吃满宽度：720 宽下 16:9 会长到 358 高，加上文案塞不进 470 的卡片 */
  .guide-media.guide-media-hero {
    /* width 必须给显式值：width:auto 时 margin:auto 不居中，会贴到卡片左边，
       里面的「在线」角标就跟着出界 */
    width: min(100%, 320px);
    left: auto; right: auto;
    margin: 14px auto 34px;
  }
}
@media (max-width: 420px) {
  .b-copy-hero .hero-title { font-size: 26px; }
}

/* 卡片高度钉死：Tailwind 那几个 h-[...] 类在不同宽度下不一定生效，
   这里用 id 选择器兜底，保证三档高度和下面的排版一一对上 */
#banner { height: 560px; }
@media (min-width: 721px) { #banner { height: 470px; } }
/* ≥1280 的 580px 由第 27 节那条规则给定，这里不要重复声明，否则顺序一变就打架 */

/* 平板（768–1023）：保持左右分栏，只是整体收窄，别堆叠 —— 470 高装不下堆叠 */
@media (min-width: 721px) and (max-width: 1023px) {
  .guide-copy { padding: 34px 16px 0 34px; max-width: 392px; }
  .guide-title { font-size: 30px; margin-top: 14px; }
  .guide-desc { margin-top: 12px; font-size: 13.5px; line-height: 1.7; }
  .guide-acts { margin-top: 16px; gap: 10px; }
  .guide-media {
    position: absolute; top: 50%; right: 40px; transform: translateY(-50%);
    width: 264px; margin: 0; border-radius: 14px;
  }
  .guide-cap { display: none; }
}

/* 手机（≤720）：上下堆叠。
   ★ 断点必须是 720 不能是 767：768 宽的平板（iPad 竖屏）扣掉 12px 滚动条后
     实际视口只有 756，若按 767 判断会被当成手机堆叠，而 470 高的卡片根本塞不下。
   卡片高度是 min(100svh - 172px, 470px)，留给内容的其实只有 ~440，
   所以这一档所有间距都要按"塞得下"来给，不能照搬桌面。 */
@media (max-width: 720px) {
  .guide-copy { position: static; max-width: none; padding: 20px 20px 0; }
  .guide-title { font-size: 25px; margin-top: 12px; }
  .guide-desc { margin-top: 9px; font-size: 13px; line-height: 1.65; }
  .guide-acts { margin-top: 12px; gap: 9px; }
  .guide-acts a { padding: 10px 22px; font-size: 13.5px; }
  .guide-media {
    /* 注意：这里必须是 relative，不能是 static ——
       里面的「在线」角标是绝对定位，容器一变成 static 就会跑到整张卡上 */
    position: relative; top: auto; right: auto; transform: none;
    width: auto; margin: 12px 20px 34px;
    border-radius: 13px;
  }
  .guide-cap { display: none; }
  .guide-snd { right: 10px; top: 10px; padding: 4px 10px 4px 8px; font-size: 11px; }
}
@media (max-width: 420px) {
  .guide-title { font-size: 23px; }
  .guide-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}


/* =============================================================================
   16. AI 科技感升级层（2026-10-19）
   -----------------------------------------------------------------------------
   设计口径：
     · 底色仍然是浅色 —— 可读性是底线，科技感靠"光"来做，不靠"压暗"
     · 新增层次只有两种代价：纯 CSS（合成层动画）或复用 motion.js 已有的单循环，
       全程不新增定时器、不新增 requestAnimationFrame 循环
     · 颜色一律走 --c-* 变量，换客户 / 换行业自动跟着变
   ============================================================================= */

/* ---------- 16.1 字体：甩掉外网 webfont ----------
   原来 font-orbit 指望 Google Fonts 的 Orbitron，国内基本拿不到，
   而且那是一条阻塞首屏的 <link>。这里换成系统自带的 DIN 血统字族：
   Windows 10/11 自带 Bahnschrift（可变字重 + 可变宽度），几何感足够硬，
   零下载、零外链、不闪字；中文字符自动回落雅黑。 */
:root {
  --font-tech: "Bahnschrift", "DIN Alternate", "HarmonyOS Sans SC", "Segoe UI Variable Display", "Microsoft YaHei", sans-serif;
  --font-mono: "Consolas", "Cascadia Mono", ui-monospace, monospace;
}
.font-orbit {
  font-family: var(--font-tech);
  font-variation-settings: "wdth" 88;   /* Bahnschrift 收窄一档，更像仪表盘字 */
}
/* 注：这里不写 letter-spacing —— 页面上的 tracking-* 工具类要保留主导权 */
/* 数字统一等宽，滚动时不会左右抖 */
.ai-count, .cd-box, #heroScan, #heroLat { font-variant-numeric: tabular-nums; }

/* 英文小标签：HUD 那种超宽字距的大写注释 */
.tech-label {
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgb(var(--c-primary) / .72);
}

/* ---------- 16.2 全站扫描线：一层极淡的横纹，给屏幕"实体感" ----------
   不用 mix-blend-mode：整屏混合层会让滚动时每帧都和背景重混一次，
   在浅底上直接把线条压成 3.5% 深灰即可，肉眼看不出差别但省一大截。 */
.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(0deg,
    rgb(var(--c-ink) / .035) 0 1px, transparent 1px 3px);
}

/* ---------- 16.3 首屏 AI 轨道环：三道不同角速度的同心环 ---------- */
.ai-orb {
  position: absolute; left: 50%; top: 42%; width: min(880px, 120%); aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .9;
}
.ai-orb span { position: absolute; display: block; border-radius: 50%; }
/* 外圈：一段霓虹弧，靠 conic-gradient + 径向遮罩抠成细环 */
.ai-orb span:nth-child(1) {
  inset: 0;
  background: conic-gradient(from 0deg,
    transparent 0 56%, rgb(var(--c-cyan) / .50) 70%, rgb(var(--c-primary) / .38) 81%,
    rgb(var(--c-plasma) / .28) 90%, transparent 97%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 63.2%, #000 64.4%, #000 67.2%, transparent 68.4%);
  mask-image: radial-gradient(closest-side, transparent 63.2%, #000 64.4%, #000 67.2%, transparent 68.4%);
  animation: orbSpin 26s linear infinite;
}
/* 中圈：虚线刻度环，反向转 */
.ai-orb span:nth-child(2) {
  inset: 8.5%;
  border: 1px dashed rgb(var(--c-primary) / .16);
  animation: orbSpin 46s linear infinite reverse;
}
/* 内圈：实线细环 */
.ai-orb span:nth-child(3) {
  inset: 17.5%;
  border: 1px solid rgb(var(--c-cyan) / .12);
  animation: orbSpin 32s linear infinite;
}
@keyframes orbSpin { to { transform: rotate(360deg); } }

/* ---------- 16.4 首屏跟手柔光：跟着鼠标走的冷光斑 ---------- */
.hero-spot {
  position: absolute; left: 0; top: 0; width: 640px; height: 640px;
  margin: -320px 0 0 -320px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle,
    rgb(var(--c-cyan) / .17) 0%, rgb(var(--c-primary) / .11) 30%, transparent 64%);
  opacity: 0; transition: opacity .55s ease;
  will-change: transform;
}
.hero-spot.on { opacity: 1; }

/* ---------- 16.5 首屏四角：给 HUD 框加一点辉光 ---------- */
.hero-corner {
  border-color: rgb(var(--c-primary) / .30);
  filter: drop-shadow(0 0 6px rgb(var(--c-cyan) / .35));
  transition: border-color .4s ease;
}

/* ---------- 16.6 数据看板：顶部一条流动的能量线 ---------- */
.board-screen { position: relative; }
.board-screen::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgb(var(--c-cyan) / .0) 12%,
    rgb(var(--c-cyan) / .85) 46%, rgb(var(--c-primary) / .85) 54%, transparent);
  background-size: 220% 100%;
  animation: energyFlow 3.6s linear infinite;
  pointer-events: none;
}
@keyframes energyFlow { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- 16.7 内页页头：加一层同款网格，和首页呼应 ---------- */
.page-head { isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(var(--c-primary) / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--c-primary) / .06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(90% 120% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(90% 120% at 50% 0%, #000 10%, transparent 72%);
}

/* ---------- 16.8 移动端：留住氛围，砍掉最贵的部分 ---------- */
@media (max-width: 720px) {
  /* 大尺寸圆弧在窄屏只会糊成一片，直接不画 */
  .ai-orb { display: none; }
  .hero-spot { display: none; }
  .scanlines { opacity: .34; }
  /* 毛玻璃是最贵的一项：小屏降到 10px，观感几乎无损、掉帧明显减少 */
  #banner, .board-screen {
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
    backdrop-filter: blur(10px) saturate(140%) !important;
  }
  .hero-title {
    filter: drop-shadow(0 2px 8px rgba(18, 46, 92, .18)) drop-shadow(0 0 18px rgb(var(--c-cyan) / .22));
  }
}

/* ---------- 16.9 导航底边：一条流动的霓虹细线，替掉死板的灰边 ---------- */
#mainHeader::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent,
    rgb(var(--c-cyan) / .45) 22%, rgb(var(--c-primary) / .40) 50%,
    rgb(var(--c-plasma) / .35) 76%, transparent);
}

/* ===================== 17. 无障碍 & 性能降级 ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora-canvas, .fx-canvas, .fx-canvas-soft, .beam, .hero-grid,
  .scanlines, .ai-orb, .hero-spot { display: none !important; }
  .hero-title { animation: none; filter: drop-shadow(0 2px 8px rgba(18, 46, 92, .18)); }
  .reveal { opacity: 1 !important; transform: none !important; }
  .breathe, .board, .board-in, .pulse-dot, .dot-flicker, .shine::after,
  .grid-lines, .board-screen::after { animation: none !important; }
  .card-glow, .card-glow:hover { --rx: 0deg; --ry: 0deg; }
}
/* 低端设备：JS 会给 <html> 加 .lite，降级掉最贵的几层 */
html.lite .beam { display: none; }
html.lite .hero-grid { animation: none; }
html.lite .scanlines { display: none; }
html.lite .ai-orb span:nth-child(1) { animation: none; }
html.lite .board-screen::after { animation: none; }
html.lite .grid-lines { animation: none; }

/* ===================== 18. 首屏入场 boot screen（core/boot.js 注入） ===================== */
/* 结构：.boot-veil > 4 根 .boot-col（分列扫开） + .boot-stage（圆环 / 标志 / ENTER）。
   遮罩由 JS 注入，JS 没跑就没有遮罩；下面 boot-failsafe 是纯 CSS 兜底——
   就算 JS 注入后中途报错，auto 3.5s / enter 30s 后幕布也会自己消失。 */
.boot-veil {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: transparent; overflow: hidden;
  animation: boot-failsafe 3.5s linear forwards;
}
.boot-veil.boot-long { animation-duration: 30s; }   /* enter 模式：允许用户慢慢看 */
.boot-veil.boot-out  { pointer-events: none; }
@keyframes boot-failsafe {
  0%, 90% { opacity: 1; }
  100%    { opacity: 0; visibility: hidden; }
}

/* ⚠️ width:25.5% 与 left 步进 25% 是【防缝参数】，不许"对齐"成 25%。
   相邻列故意重叠 0.5%，四列合计覆盖 100.5%（overflow:hidden 裁掉溢出），
   改成 25% 会露出背景色细缝，比原来的竖线更难看。 */
.boot-col {
  position: absolute; top: 0; width: 25.5%; height: 100%;
  background: #07090d;
  /* 原 border-left 扫描线已删（2026-10-23）：第 3 根 left:50% 那条正好落在
     屏幕正中、穿过圆环，用户判定难看。三条一起去掉，不保留局部。 */
  transition: transform 400ms cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
}
/* 扫开时每列滑出整整一个视口宽（不能写 102%——百分比是相对列自身宽度，
   只滑出四分之一屏会留下一半黑块） */
.boot-col-go { transform: translateX(102vw); }

/* 悬浮光尘层。以下三样是同一个保证，别单独删任何一条：
   ① 画布必须在 4 根不透明黑幕之后（否则被 #07090d 盖死，100% 看不见）
   ② pointer-events:none 必须留（全屏画布会吃掉 ENTER 的点击）
   ③ z-index:1 < .boot-stage 的 2（粒子不能盖住圆环与 ENTER 文字） */
.boot-dust {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

.boot-stage {
  position: relative; z-index: 2;                     /* 压在光尘之上 */
  width: 96px; height: 96px; cursor: pointer;
  transition: transform 200ms ease;
}
.boot-stage.boot-live:hover { transform: scale(1.04); }
.boot-stage > * { position: absolute; inset: 0; }

.boot-ring { width: 96px; height: 96px; display: block; }
.boot-ring-ghost {                                   /* 淡环：预载态 */
  fill: none; stroke: #39465a; stroke-width: 1.5;
  opacity: 0; transition: opacity 350ms ease;
}
.boot-ring-ghost.boot-on { opacity: .5; }
.boot-ring-line { fill: none; stroke: #d7dde6; stroke-width: 1.5; stroke-linecap: round; }
.boot-stage:hover .boot-ring-line { stroke: rgb(var(--c-cyan) / .9); }

.boot-mark {                                         /* 临时占位标志：六边形 + 核心点 */
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: rotate(-8deg) scale(.92);
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.3, 0, .3, 1);
}
.boot-mark svg { width: 32px; height: 32px; display: block; }
.boot-mark polygon { fill: none; stroke: #eef2f7; stroke-width: 1.6; }
.boot-mark circle  { fill: rgb(var(--c-cyan) / .95); }
.boot-mark.boot-in         { opacity: 1; transform: rotate(0deg) scale(1); }
.boot-mark.boot-pulse      { transform: scale(1.07); transition: transform 200ms cubic-bezier(.3, 0, .5, 1), opacity 260ms ease; }
.boot-mark.boot-pulse-back { transform: scale(1); transition: transform 440ms cubic-bezier(.3, 0, .3, 1.4), opacity 260ms ease; }
.boot-mark.boot-bye        { opacity: 0; transition: opacity 280ms ease; }

.boot-enter {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-tech, Bahnschrift), ui-monospace, monospace;
  font-size: 12px; letter-spacing: 3px; color: #eef2f7;
  opacity: 0; pointer-events: none;
}
.boot-enter.boot-visit { opacity: .5; transition: opacity 220ms ease; }
@keyframes boot-breath { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.boot-enter.boot-on { animation: boot-breath 1.9s ease-in-out infinite; }

/* 双保险：系统要求减弱动效 / 低端 lite 档，遮罩直接不出现（JS 那侧同样会拦） */
@media (prefers-reduced-motion: reduce) {
  .boot-veil { display: none !important; }
}
html.lite .boot-veil { display: none !important; }

/* =============================================================================
   19. 内页页头：技术文档封面
   -----------------------------------------------------------------------------
   为什么不用极光：极光是"团"，在 150~175px 高的扁容器里必然被压成一条横向色带。
   内页换形态 —— 底光 + 顶部轮廓光 + 静止图纸网格，全是线/面，天生适合宽扁比例。
   这里 0 个 canvas、0 条 rAF，只有两个 34s/46s 的 transform 漂移（纯合成，不重绘）。

   ★ 下面几条结构选择器依赖 src/partials/page-head.html 的 DOM
     （nav / h1 / h1+p / 行容器里的那个 span）。改那个 partial 时必须同步这里。
   ============================================================================= */

/* 图纸网格：左密右化 */
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(var(--c-primary) / .065) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--c-primary) / .065) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 42%, transparent 86%);
  mask-image: linear-gradient(90deg, #000 0 42%, transparent 86%);
}

.ph-light { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* “地面反光”：底部一层很淡的湖蓝，往上散掉 —— 这层是文档感的一半 */
  background: linear-gradient(180deg, transparent 44%, rgb(var(--c-primary) / .06) 86%, rgb(var(--c-primary) / .09) 100%); }
.ph-light i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
/* 光池 A：宽而扁、圆心沉在页头下方 —— 只露上半弧，读作"地面反光" */
.ph-light i:nth-child(1) {
  left: -12%; bottom: -150%; width: 72%; height: 320%;
  background: radial-gradient(closest-side,
    rgb(var(--c-primary) / .26), rgb(var(--c-primary) / .08) 54%, transparent 74%);
  animation: phPoolA 34s ease-in-out infinite alternate;
}
/* 光池 B：右上一小团青光，与 A 交错 */
.ph-light i:nth-child(2) {
  right: -8%; top: -180%; width: 52%; height: 340%;
  background: radial-gradient(closest-side,
    rgb(var(--c-cyan) / .18), rgb(var(--c-cyan) / .06) 56%, transparent 76%);
  animation: phPoolB 46s ease-in-out infinite alternate;
}
@keyframes phPoolA {
  from { transform: translate3d(-2%, 2%, 0) scale(1); }
  to   { transform: translate3d(5%, -4%, 0) scale(1.08); }
}
@keyframes phPoolB {
  from { transform: translate3d(3%, 1%, 0) scale(1.05); }
  to   { transform: translate3d(-4%, -3%, 0) scale(1); }
}
/* 顶部 1px 轮廓光：与既有的底线组成"文档框" */
.ph-light::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent,
    rgb(var(--c-primary) / .30) 16%, rgb(var(--c-cyan) / .24) 48%,
    rgb(var(--c-primary) / .10) 76%, transparent 94%);
}

/* 入场编舞：总 1.04s 结束，之后页头彻底安静 */
@keyframes phSlide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes phRise  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes phWipe  { from { opacity: 0; clip-path: inset(-30% 100% -30% 0); } to { opacity: 1; clip-path: inset(-30% 0 -30% 0); } }
@keyframes phRule  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes phLine  { from { transform: scaleX(0); } to { transform: scaleX(1); } }

html:not(.m-nopagein) .page-head nav         { animation: phSlide .42s var(--e-out) .04s both; }
html:not(.m-nopagein) .page-head h1          { animation: phWipe  .52s var(--e-out) .12s both; }
html:not(.m-nopagein) .page-head h1 + p      { animation: phRise  .42s var(--e-out) .26s both; }
html:not(.m-nopagein) .page-head > div > div > span { animation: phRise .36s var(--e-out) .34s both; }

/* 标题下的刻度线 —— "文档感"的来源（.sec-title 的 ::before 是竖向色条，::after 空着） */
.page-head .sec-title::after {
  content: ""; position: absolute; left: 20px; top: calc(50% + 15px);
  width: 64px; height: 1px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgb(var(--c-primary) / .55), transparent);
  animation: phRule .7s var(--e-out) .36s forwards;
}
/* 页头底线：从静止改成"充能一次" */
html:not(.m-nopagein) .page-head::after {
  transform-origin: 0 50%;
  animation: phLine .9s var(--e-out) .1s both;
}

/* =============================================================================
   20. 交互态（原来全站 0 条 :focus-visible、0 条 :active）
   ============================================================================= */

/* 键盘用户才看得到；鼠标点击不出现 —— 用 :focus-visible 而不是 :focus 就是这个原因 */
:where(a, button, [role="button"], summary, [tabindex]):focus-visible {
  outline: 2px solid rgb(var(--c-primary) / .55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 按下主按钮有 1px"压下去"，反弹极快。只做按钮，卡片不做（拖选文字会误触发） */
.shine:active {
  transform: translateY(1px);
  transition-duration: 80ms;
  box-shadow: 0 4px 14px rgb(var(--c-primary) / .30);
}

/* 手机菜单：原来是 display 硬切 */
#mobileMenu:not(.hidden) { animation: menuIn .26s var(--e-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }

/* =============================================================================
   21. 逐张错峰（纯 CSS，不写 JS）
   -----------------------------------------------------------------------------
   容器同时挂 .reveal.stagger：.reveal 负责"何时开始"（现有的 IntersectionObserver），
   .stagger 负责"子元素依次来"。用 nth-child 生成 --i，不给卡片写内联样式，
   也不碰 core/goods.js 的类名约定 —— 筛选后被隐藏的卡片会自动重新编号。
   ============================================================================= */
.reveal.stagger { opacity: 1; transform: none; transition: none; }

.stagger > * { --i: 0; }
.stagger > :nth-child(2)  { --i: 1; }  .stagger > :nth-child(3)  { --i: 2; }
.stagger > :nth-child(4)  { --i: 3; }  .stagger > :nth-child(5)  { --i: 4; }
.stagger > :nth-child(6)  { --i: 5; }  .stagger > :nth-child(7)  { --i: 6; }
.stagger > :nth-child(8)  { --i: 7; }  .stagger > :nth-child(9)  { --i: 8; }
.stagger > :nth-child(10) { --i: 9; }  .stagger > :nth-child(11) { --i: 10; }
.stagger > :nth-child(12) { --i: 11; } .stagger > :nth-child(n+13) { --i: 11; }   /* 封顶，第 13 张起同时到 */

html:not(.m-nostagger) .stagger:not(.on) > * { opacity: 0; transform: translateY(var(--rise)); }
html:not(.m-nostagger) .stagger.on > * {
  opacity: 1; transform: none;
  transition: opacity   var(--t-4) var(--e-out) calc(var(--i) * var(--st)),
              transform var(--t-4) var(--e-out) calc(var(--i) * var(--st));
}

/* =============================================================================
   22. 深色 CTA：错峰 + 一次性光扫
   ============================================================================= */
.cta-sheen { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cta-sheen::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-14deg); opacity: 0;
}
html:not(.m-nocta) .cta-sheen::after { animation: ctaSheen 1.2s var(--e-out) .35s both; }
@keyframes ctaSheen {
  from { transform: translateX(0) skewX(-14deg); opacity: 0; }
  18%  { opacity: 1; }
  to   { transform: translateX(420%) skewX(-14deg); opacity: 0; }
}

/* CTA 卡片内的细网格（原来是全站层 .grid-lines 被当局部网格用，见第 24 节） */
.cta-grid {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(rgb(var(--c-primary-tint) / .4) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--c-primary-tint) / .4) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* =============================================================================
   23. 轮播文案入场（四张都给，不再只有第一张）
   -----------------------------------------------------------------------------
   用 transition 不用 animation：连点、反向、中途打断都天然正确，
   不需要"第 N 次切换"的状态机 —— 那类分支最容易出 bug。
   ============================================================================= */
/* 离开时快速淡出（240ms，比背景的 520ms 交叉淡快一拍）—— 不要写成 0s，
   否则文案会"瞬灭"再看着背景慢慢淡，很跳。 */
.b-copy > * { opacity: 0; transform: translateY(12px); transition: opacity .24s var(--e-io), transform .24s var(--e-io); }
.b-copy > h2 { transform: none; clip-path: inset(-12% 100% -12% 0); transition: clip-path .24s var(--e-io); }

html:not(.m-nocarcopy) .b-slide.on .b-copy > * {
  opacity: 1; transform: none;
  transition: opacity .44s var(--e-out), transform .44s var(--e-out);
}
html:not(.m-nocarcopy) .b-slide.on .b-copy > h2 {
  clip-path: inset(-12% 0 -12% 0);
  transition: clip-path .52s var(--e-out), opacity .3s ease;
}
html:not(.m-nocarcopy) .b-slide.on .b-copy > :nth-child(1) { transition-delay: .04s; }
html:not(.m-nocarcopy) .b-slide.on .b-copy > :nth-child(2) { transition-delay: .09s; }
html:not(.m-nocarcopy) .b-slide.on .b-copy > :nth-child(3) { transition-delay: .15s; }
html:not(.m-nocarcopy) .b-slide.on .b-copy > :nth-child(4) { transition-delay: .21s; }

/* 镜头推近：背景比文字慢（1.1s vs .44s）—— 这个时间差就是"电影感"的技术来源 */
html:not(.m-nocarpush) .b-slide .s-grid,
html:not(.m-nocarpush) .b-slide .s-flow,
html:not(.m-nocarpush) .b-slide .s-glow,
html:not(.m-nocarpush) .b-slide .s-glow-2,
html:not(.m-nocarpush) .b-slide .s-glow-3 {
  transform: scale(1.035); transition: transform 0s;
}
html:not(.m-nocarpush) .b-slide.on .s-grid,
html:not(.m-nocarpush) .b-slide.on .s-flow,
html:not(.m-nocarpush) .b-slide.on .s-glow,
html:not(.m-nocarpush) .b-slide.on .s-glow-2,
html:not(.m-nocarpush) .b-slide.on .s-glow-3 {
  transform: none; transition: transform 1.1s var(--e-out);
}

/* =============================================================================
   24. 手机端：轨道环的替代形态
   -----------------------------------------------------------------------------
   原来 <768px 直接 display:none，手机上首屏就是"什么都没有"。
   这里改成只留 1 个 conic 层，压到首屏底部当一道旋转弧光 —— 不加任何粒子。
   ============================================================================= */
@media (max-width: 720px) {
  .ai-orb { display: block; width: 150vw; top: 78%; opacity: .55; }
  .ai-orb span:nth-child(2), .ai-orb span:nth-child(3) { display: none; }
}

/* =============================================================================
   25. 新增层的降级（lite / 减少动效）
   ============================================================================= */
html.lite .ph-light i { animation: none; }
html.lite .stagger > * { opacity: 1; transform: none; }
html.lite .b-slide .s-grid, html.lite .b-slide .s-flow,
html.lite .b-slide .s-glow, html.lite .b-slide .s-glow-2, html.lite .b-slide .s-glow-3 {
  transform: none; transition: none;
}
html.lite .board-screen:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .page-head nav, .page-head h1, .page-head h1 + p,
  .page-head > div > div > span, .page-head::after,
  .page-head .sec-title::after { animation: none !important; }
  .page-head h1 { clip-path: none !important; }
  .ph-light i { animation: none !important; }
  .cta-sheen::after { animation: none !important; opacity: 0 !important; }
  .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .b-copy > * { opacity: 1 !important; transform: none !important; transition: none !important; clip-path: none !important; }
  .b-slide .s-grid, .b-slide .s-flow, .b-slide .s-glow,
  .b-slide .s-glow-2, .b-slide .s-glow-3 { transform: none !important; transition: none !important; }
}

/* =============================================================================
   26. 手机端 / 微信内（≤767px 专用）
   -----------------------------------------------------------------------------
   为什么要单独写一节：客户老板收到链接，八成是在微信里用手机点开。
   之前的手机版只是"桌面版被挤成一列"，字号、首屏高度、点击区都没有为拇指设计。
   本节只做手机，不影响桌面（全部在 max-width: 767px 里）。
   ============================================================================= */

html { -webkit-text-size-adjust: 100%; }          /* 挡掉微信自动放大字号 */

@media (max-width: 720px) {

  /* ── 1. 首屏高度：用真实可视高度 ──
     微信的地址栏会吃掉 100vh 的底部一大截，svh 才是真正看得见的高度。
     再设一个 560px 上限，免得大屏手机上首屏被拉得过长。 */
  #banner {
    height: min(calc(100svh - 172px), 470px);
    min-height: 400px;
  }
  /* 英文底纹在手机上会被裁成半截（AI WINE ECOLOG…），而且和实时条叠在一起 */
  .hero-wm { display: none; }

  /* ── 2. 首屏文案：字号跟屏宽走，不再写死 54px ── */
  .b-copy { padding: 26px 18px 0; }
  .b-copy h2 {
    font-size: clamp(28px, 8.4vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.01em;
  }
  .b-copy p { font-size: 14px; margin-top: 14px; line-height: 1.65; }
  .b-copy > div:last-child { margin-top: 22px; gap: 10px; }
  .b-copy > div:last-child > a,
  .b-copy > div:last-child > button { padding: 13px 20px; font-size: 14px; }

  /* ── 3. 商品卡改横排：左图右信息 ──
     两列竖卡在手机上一屏只能看两件、要滚很久；横排后一屏能过三四件。 */
  [data-goods="home"] { grid-template-columns: 1fr; gap: 12px; }
  .p-card { display: flex; align-items: stretch; }
  .p-card > div:first-child { width: 38%; flex: 0 0 38%; }
  .p-card > div:first-child img {
    width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  }
  .p-card > div:last-child { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; }
  .p-card h4 { font-size: 14px; }
  /* 手机上图片只占 38% 宽，两个角标会把图盖掉一半 → 只留促销角标 */
  .p-card .p-badge-f { display: none; }
  /* 两个按钮等宽，别一个宽一个窄 */
  .p-card > div:last-child > div:last-child { display: flex; gap: 8px; }
  .p-card .p-btn { flex: 1 1 0 !important; min-width: 0 !important; }
  .p-card .add-cart, .p-card [data-target] {
    min-height: 40px; padding-top: 0; padding-bottom: 0; font-size: 13px;
  }
  .p-card > div:last-child > div:last-child { margin-top: auto; }

  /* ── 4. 拇指区：可点元素一律 ≥ 44px，并去掉 300ms 点击延迟 ── */
  .shine, .add-cart, button[data-target], .mbar-btn { min-height: 44px; touch-action: manipulation; }
  .q-chip, .f-chip, .tab-btn { min-height: 38px; touch-action: manipulation; }

  /* 触摸设备没有 hover，按下必须给反馈，否则像点了个死按钮 */
  .card-glow:active, .board-screen:active { transform: scale(.992); }

  /* ── 5. 给底部联系条让出位置 ── */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  /* ── 6. 搜索区瘦身 ──
     手机上"全部分类"和"我的购物车"两个大按钮会各自换一行，白占 120px。
     搜索框单独一排就够；购物车在右侧悬浮栏里还有，客服在底部条里。 */
  .hide-sm { display: none !important; }
  .search-in { padding: 10px 12px; }
  #searchWrap .flex-1.min-w-\[260px\] { min-width: 0; }
  #searchWrap input { font-size: 16px; }   /* 16px 才不会被 iOS 聚焦时自动放大整页 */

  /* ── 7. 秒杀卡头部：手机上竖排 ──
     卡片只有 358px 宽，标题和倒计时并排会互相挤压，
     标题被挤成一字一行、倒计时标签竖着叠。竖向堆叠最省事也最清楚。 */
  .sale-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sale-head h3 { flex-wrap: wrap; font-size: 16px; }
  .sale-head > div { gap: 4px; }
  .sale-head .cd-box { min-width: 26px; }
}

/* ── 6. 手机底部联系条（结构由 core/components.js 注入） ── */
.mbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgb(var(--c-primary) / .14);
  box-shadow: 0 -8px 26px rgba(30, 60, 110, .10);
}
@media (max-width: 720px) { .mbar { display: flex; } }

.mbar-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .05em;
  border: 1px solid rgb(var(--c-primary) / .32);
  color: rgb(var(--c-primary)); background: #fff;
  transition: transform .12s var(--e-io), box-shadow .18s var(--e-io);
}
.mbar-btn-main {
  flex: 1.35;
  color: #fff; border: none;
  background: linear-gradient(120deg, rgb(var(--c-primary-deep)), rgb(var(--c-primary)));
  box-shadow: 0 6px 18px rgb(var(--c-primary) / .26);
}
.mbar-btn:active { transform: translateY(1px) scale(.99); }
html.lite .mbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }

/* =============================================================================
   27. 打破"每块一样大"
   -----------------------------------------------------------------------------
   原来的问题不是缺效果，是每一块都同宽同高：眼睛没有主角，整页就没有节奏。
   这里只改**比例**，不动配色、不动结构 —— 原版语言一个字没改。
   ============================================================================= */

/* 首屏主标题再压一档：82px 撑不住场。
   卡片同时加高 60px —— 只加大字不加高，按钮和水印就会撞在一起。 */
@media (min-width: 1280px) {
  #banner { height: 580px; }
  .hero-title { font-size: 54px; line-height: 1.18; }
  .b-copy { padding-top: 56px; }
}

/* 平台服务保障：5 等分 → 一大四小 */
@media (min-width: 1024px) {
  .g5 { grid-template-columns: 1.55fr 1fr 1fr 1fr 1fr; }
  .g5 > :first-child {
    background: linear-gradient(120deg, rgb(var(--c-primary) / .10), rgba(255, 255, 255, 0) 72%);
    border-color: rgb(var(--c-primary) / .30);
  }
  .g5 > :first-child .w-9 { width: 42px; height: 42px; }
  .g5 > :first-child p:first-child { font-size: 16px; }
}

/* 核心业务三入口：3 等分 → 左边一大、右边两块叠（不改 DOM，用网格区域） */
@media (min-width: 1024px) {
  .g-entries { grid-template-columns: 1.25fr .75fr; grid-template-rows: auto auto; }
  .g-entries > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .g-entries > :nth-child(1) > :last-child { margin-top: auto; }   /* 按钮贴底，空出来的地方读作留白 */
  .g-entries > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .g-entries > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .g-entries > :nth-child(2),
  .g-entries > :nth-child(3) { padding-top: 18px; padding-bottom: 18px; }
  /* 右列两块收一收，别把左卡撑得太高 */
  .g-entries > :nth-child(2) .w-24 { width: 64px; height: 64px; }
  .g-entries > :nth-child(2) .w-11 { width: 28px; height: 28px; }
  .g-entries > :nth-child(2) .mb-6 { margin-bottom: 14px; }
  .g-entries > :nth-child(2) .mt-7 { margin-top: 16px; }
}


/* ===================== 28. 商品详情页 =====================
   为什么写在这里而不是用 Tailwind 类：
   core/tw.css 是预编译产物，本机没有 node_modules 重编不了，新类名不会生效。
   theme.css 是手写的，改完立刻生效。
   ------------------------------------------------------------------- */
/* 左图右信息。手机单列，桌面图固定 430 宽（不跟列宽走，否则 aspect-square
   会把图撑到 660 高，右栏一片空白） */
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 900px) {
  .item-grid { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 32px; }
}

/* 手机端主图别占满一屏：390 宽下 square 图有 358 高，价格全被顶到下一屏 */
.item-media { margin: 0 auto; width: 100%; }
@media (max-width: 899px) { .item-media { max-width: 330px; } }

/* 商品名普遍很长（「5G 智能手机 8+256G 幻夜黑」），
   tracking-widest 在窄屏会把最后一个字挤到第二行孤零零的 */
.item-title { font-size: 22px; line-height: 1.45; letter-spacing: .05em; }
@media (min-width: 900px) { .item-title { font-size: 25px; letter-spacing: .07em; } }
@media (max-width: 380px) { .item-title { font-size: 20px; } }
