/* ==========================================================================
   UE素材网 · AssetCrate（素材箱）官网样式
   纯 CSS，零依赖，零外链（不引用任何境外 CDN / 字体）
   ========================================================================== */

/* ==========================================================================
   设计系统 v2 · 概念：素材箱 = 保险箱（Vault）
   --------------------------------------------------------------------------
   三条视觉母题
     箱 BOX    —— 双层描边 + 内凹的箱体卡片，装东西的容器
     护 GUARD  —— 青绿语义色 + 闸门竖条，代表「默认不覆盖」的 4 道护栏
     路 PATH   —— 抽屉式编号卡片，代表 8 条找素材的路
   全部色值在 #0F1115 上均通过 WCAG AA（正文 ≥4.5:1，大字 ≥3:1）
   ========================================================================== */

:root {
  /* ---------- 底色层次（4 层，箱体由外向内） ---------- */
  --bg:          #0F1115;   /* 页面底 */
  --surface:     #171A21;   /* 箱体卡片 */
  --surface-2:   #1D2129;   /* 箱内次级块 / 悬停 */
  --surface-3:   #232833;   /* 箱内最深块（ledger 底、代码块） */
  --line:        #262B36;   /* 箱体描边 */
  --line-soft:   #1F242E;   /* 箱内分隔 */

  /* ---------- 主色（UE 蓝）· 产品与品牌 ---------- */
  --blue:        #0E8FFF;   /* 对底 5.7:1 */
  --blue-hover:  #3BA5FF;
  --blue-dim:    rgba(14, 143, 255, 0.14);
  --blue-glow:   rgba(14, 143, 255, 0.28);
  --blue-deep:   #0A4E8C;

  /* ---------- 语义色 ---------- */
  --teal:        #00D1C1;   /* 安全 / 护栏（对底 9.7:1） */
  --teal-dim:    rgba(0, 209, 193, 0.12);
  --orange:      #FF8A3D;   /* 额度 / 提醒（对底 8.0:1） */
  --orange-dim:  rgba(255, 138, 61, 0.12);
  --violet:      #8B7BFF;   /* 备用强调 */
  --brass:       #D9A441;   /* 保险箱锁扣 / 主标语点缀（对底 7.6:1） */

  /* ---------- 文字 ---------- */
  --text:        #E6E9EF;   /* 15.0:1 */
  --text-2:      #9BA3B0;   /*  7.4:1 */
  --text-3:      #6B7280;   /*  4.1:1 —— 仅用于非关键信息 */

  /* ---------- 形状 ---------- */
  --r-card:  10px;
  --r-card-lg: 14px;
  --r-btn:    6px;
  --r-pill: 999px;

  /* ---------- 间距（8 点制） ---------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-8: 48px;  --s-10: 64px; --s-12: 80px;

  /* ---------- 字体尺寸（1.25 倍律） ---------- */
  --fs-xs:  12px;
  --fs-sm:  13.5px;
  --fs-base:16px;
  --fs-md:  18px;
  --fs-lg:  22px;
  --fs-xl:  30px;
  --fs-2xl: 40px;
  --fs-3xl: 58px;

  --maxw: 1180px;
  --shadow:     0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lift:0 22px 54px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* 平滑滚动 + 锚点跳转时预留导航高度，避免标题被吸在顶栏下面 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
               "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img{max-width:100%;height:auto;display:block}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: linear-gradient(160deg, #232833, #14171d);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--blue);
}
.brand-sub { color: var(--text-3); font-weight: 400; font-size: 13px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-btn); padding: 6px 10px; font-size: 18px; cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .16s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- 区块 ---------- */
section { padding: 78px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: none; }

.sec-head { margin-bottom: 38px; }
.sec-head h2 { font-size: 30px; letter-spacing: -.2px; }
.sec-head p { color: var(--text-2); margin: 0; max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 12px;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 70px; border-top: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--r-pill); padding: 4px 12px;
}
.badge-hot { color: var(--teal); border-color: rgba(0, 209, 193, .35); background: rgba(0, 209, 193, .08); }

.hero h1 { font-size: 62px; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 .accent {
  color: var(--blue);
  background: linear-gradient(transparent 62%, rgba(14,143,255,.22) 62%);
}
.hero-lead { font-size: 18.5px; color: var(--text); margin: 0 0 14px; }
.hero-lead strong { color: #fff; }
.hero-sub { color: var(--text-2); font-size: 15.5px; margin: 0 0 30px; }
.hero-note { color: var(--text-3); font-size: 13.5px; margin-top: 18px; }

/* ---------- 引擎兼容性提示 ----------
   面向用户说「UE 5.x」，具体小版本只在下载页以提示条形式给出。
   这样以后适配更多引擎版本时，不必改全站文案。 */
.env-note {
  font-size: 13.5px; color: var(--text-2);
  border-left: 2px solid var(--brass);
  background: rgba(217,164,65,.06);
  padding: 11px 14px; border-radius: 0 var(--r-btn) var(--r-btn) 0;
}
.env-note strong { color: var(--brass); font-weight: 600; }
.env-note a { color: var(--blue); text-decoration: none; }
.env-note a:hover { text-decoration: underline; }

/* ---------- 三段动图（真机录屏）
   12 段 GIF 按「收 / 用 / 分享」三条线分组平铺。
   文件在 assets/gif/ 下，图不在时由 site.js 探测并显示 .is-empty 占位。 ---------- */
.demo-group { margin-bottom: 46px; }
.demo-group:last-of-type { margin-bottom: 0; }

.demo-group-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.demo-group-no {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700;
  color: var(--blue); background: var(--blue-dim);
  border: 1px solid rgba(14,143,255,.26);
  border-radius: 12px;
}
.demo-group-head h3 { font-size: 18px; margin: 2px 0 4px; }
.demo-group-head p { font-size: 13.5px; color: var(--text-3); margin: 0; }

.demo-group-note {
  font-size: 13px; color: var(--text-3);
  margin-top: 12px; padding-left: 2px;
}
.demo-group-note strong { color: var(--text-2); }

.demos { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.demo { margin: 0; }

/* 动图区单独放宽容器：两列时每张约 650px 宽，
   录屏里的鼠标轨迹与右键菜单才看得清（600×369 的原始录屏不适合再缩） */
#demos .wrap { max-width: 1380px; }

.demo-frame {
  position: relative; aspect-ratio: 600 / 369; overflow: hidden;
  /* GIF 不加圆角 —— 录屏本身是矩形，圆角会裁掉菜单边缘的像素，
     而这些录屏的价值就在于看清菜单项和文件名 */
  border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); margin-bottom: 11px;
}
.demo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* 占位层：默认隐藏，有图时压住；无图时由 .is-empty 显示 */
.demo-ph {
  position: absolute; inset: 0; display: none;
  flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 8px; padding: 20px;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.012) 0 10px, transparent 10px 20px),
    var(--surface);
}
.demo-frame.is-empty .demo-ph { display: flex; }

/* 文件已确认存在、等待懒加载：显示安静等待态，不闪空白 */
.demo-frame.is-pending { background: var(--surface-2); }
.demo-frame.is-pending::after {
  content: '动图加载中…';
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12.5px; color: var(--text-3);
}

.demo-ph-no {
  font-size: 26px; font-weight: 800; line-height: 1;
  color: var(--line); letter-spacing: -1px;
}
.demo-ph strong { font-size: 14px; color: var(--text); font-weight: 600; }
.demo-ph > span:last-of-type { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.demo-ph code {
  font-size: 11px; color: var(--text-3);
  background: var(--surface-3); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 3px 7px; margin-top: auto;
  word-break: break-all;
}

.demo-badge {
  position: absolute; top: 9px; right: 9px;
  font-size: 10.5px; color: var(--orange);
  background: var(--orange-dim); border: 1px solid rgba(255,138,61,.32);
  border-radius: var(--r-pill); padding: 3px 9px;
  pointer-events: none;
}
/* 图已就位时收起角标 */
.demo-frame:not(.is-empty):not(.is-pending) .demo-badge { display: none; }

.demo figcaption { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.demo figcaption strong { color: var(--blue); font-weight: 600; }

/* 收尾引导卡：代替第 13 格，不占动图位 */
.demo-cta .demo-frame-plain {
  display: grid; place-items: center; padding: 22px;
  background: linear-gradient(160deg, rgba(14,143,255,.07), transparent 70%), var(--surface);
  border-style: dashed; border-color: var(--line);
}
.demo-cta-in { text-align: center; }
.demo-cta-in strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.demo-cta-in span { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }

/* ---------- 装饰图（.deco）：各区块的配图 ----------
   与 GIF 区块共用懒加载机制（data-src + IntersectionObserver），
   缺文件时显示同款占位块，方便后续补图而不必改 HTML。 */
.deco { margin: 0; }

.deco-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
}
/* 装饰区里的动图同样不加圆角 —— 用 .is-gif 标记，不依赖 :has() */
.deco-frame.is-gif { border-radius: 0; }
.deco-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 截图类保持原始比例，不裁切 */
.deco-frame.is-photo { aspect-ratio: auto; }
.deco-frame.is-photo img { height: auto; }

/* 占位层（缺图时）—— 给出明确的固定高度与边框，让人一眼看出"这里该放图" */
.deco-ph {
  position: absolute; inset: 0; display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 9px; padding: 28px; text-align: center;
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,.014) 0 10px, transparent 10px 20px),
    var(--surface);
}
.deco-frame.is-empty .deco-ph { display: flex; }
/* 没有 src 的 is-photo 没有高度，给一个最小占位高度 */
.deco-frame.is-photo.is-empty { min-height: 220px; aspect-ratio: auto; }
.deco-frame.is-empty:not(.is-photo) { min-height: 200px; }

/* 占位块里的图标标记 */
.deco-ph::before {
  content: '▢';
  font-size: 26px; line-height: 1;
  color: var(--line);
}

.deco-ph strong { font-size: 14px; color: var(--text-2); font-weight: 600; }
.deco-ph span { font-size: 12.5px; color: var(--text-3); }
.deco-ph code {
  font-size: 11px; color: var(--text-3);
  background: var(--surface-3); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 3px 8px; margin-top: 4px;
  word-break: break-all;
}

/* 等待加载态 */
.deco-frame.is-pending { background: var(--surface-2); }
.deco-frame.is-pending::after {
  content: '图片加载中…';
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12.5px; color: var(--text-3);
}

.deco figcaption { font-size: 12.5px; color: var(--text-3); margin-top: 9px; line-height: 1.6; }
.deco figcaption strong { color: var(--text-2); }

/* 并排两张的装饰图 */
.deco-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 侧栏布局：文字在左、图在右 */
.deco-split {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 36px; align-items: center;
}
/* 面板截图是 1400×900，比例接近 14:9；用 auto 保持原图比例不裁切 */
.deco-split .deco-frame { aspect-ratio: auto; background: var(--surface-2); }
.deco-split .deco-frame img { width: 100%; height: auto; }
.deco-split .deco figcaption { margin-top: 12px; }
.deco-split.flip { grid-template-columns: 1.15fr 1fr; }
.deco-split.flip .deco-split-body { order: 2; }
.deco-split.flip .deco { order: 1; }

/* 半栏里的 8 条路 / 4 道护栏改为单列，否则每格太窄读不下去 */
.deco-split .entries,
.deco-split .guards { grid-template-columns: 1fr; gap: 12px; }
.deco-split .entry,
.deco-split .guard { padding: 14px 16px; }
.deco-split .entry .do,
.deco-split .guard p { font-size: 13.5px; }

@media (max-width: 900px) {
  .deco-split { grid-template-columns: 1fr; gap: 24px; }
  .deco-split.flip .deco-split-body { order: 1; }
  .deco-pair { grid-template-columns: 1fr; }
}

/* Hero 价格锚点：让「多少钱」不必滚到第 10 屏才知道 */
.hero-price {
  display: inline-block; margin-top: 16px;
  font-size: 14px; color: var(--text-2);
  border: 1px solid rgba(217,164,65,.30);
  background: rgba(217,164,65,.07);
  border-radius: var(--r-pill);
  padding: 7px 16px;
}
.hero-price strong { color: var(--brass); font-weight: 600; }
.hero-price-note { color: var(--text-3); font-size: 12.5px; margin-left: 6px; }

/* Hero 八条路直达入口：把插件最核心的「方便」摆在首屏，而不是藏在第三屏 */
.hero-ways {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin: 26px 0 12px; max-width: 720px;
}
.hero-ways a {
  display: block; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface); text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.hero-ways a:hover {
  border-color: var(--blue); background: var(--surface-2);
  transform: translateY(-2px);
}
.hero-ways b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.hero-ways a:hover b { color: var(--blue-hover); }
.hero-ways span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

.hero-ways-note { font-size: 13.5px; color: var(--text-3); margin: 0 0 4px; max-width: 720px; }
.hero-ways-note strong { color: var(--text-2); }
.hero-ways-note a { color: var(--blue); text-decoration: none; margin-left: 6px; }
.hero-ways-note a:hover { text-decoration: underline; }

.hero-shot { position: relative; }
.hero-shot img {
  width: 100%; border-radius: var(--r-card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- 痛点 ---------- */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px;
}
.pain-card .ico { font-size: 24px; margin-bottom: 10px; }
.pain-card h3 { font-size: 17px; margin-bottom: 6px; }
.pain-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.pain-kicker { text-align: center; font-size: 19px; font-weight: 700; margin-top: 34px; }
.pain-kicker span { color: var(--orange); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px; position: relative;
}
.step-no {
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px;
  color: var(--blue); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.step code {
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 6px; font-size: 13px; color: var(--teal);
}

/* ---------- 功能卡 ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px; transition: border-color .16s;
}
.feat:hover { border-color: rgba(14,143,255,.5); }
.feat .ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--blue-dim); color: var(--blue); font-size: 17px; margin-bottom: 14px;
}
.feat h3 { font-size: 16.5px; margin-bottom: 7px; }
.feat p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ---------- 截图 ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.shot {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
}
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; }
.shot figcaption {
  padding: 12px 16px; font-size: 13.5px; color: var(--text-2);
  border-top: 1px solid var(--line);
}
/* 截图安全处理（红线 #6：不暴露本机路径 / 机器码 / 提示次数）
   —— 用轻微模糊把机器码等敏感文本处理掉，同时保留界面观感 */
.shot-safe img { filter: blur(3.2px); }
.shot-tight { max-width: 560px; }

/* Hero 右侧通栏工具栏条 */
.hero-shotbar {
  margin-top: 46px; border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; background: var(--surface);
}
.hero-shotbar img { width: 100%; }
.hero-shotbar figcaption {
  padding: 11px 18px; font-size: 13.5px; color: var(--text-2); border-top: 1px solid var(--line);
}

/* ---------- 表格 ---------- */
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 700; background: var(--surface); }
td { color: var(--text-2); }
tbody tr:hover td { background: var(--surface); }
td strong, th strong { color: var(--text); }
.col-hi { background: var(--blue-dim); }
.col-hi strong { color: var(--blue); }
.tbl-kicker { text-align: center; font-size: 18px; font-weight: 700; margin-top: 30px; }

/* ---------- 价格 ---------- */
.price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 28px 24px;
}
.plan-featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; position: relative; }
.plan-tag {
  position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill);
}
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .price-num { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 10px 0 2px; }
.plan .price-num small { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan .price-desc { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { font-size: 14.5px; color: var(--text-2); padding: 7px 0 7px 24px; position: relative; border-bottom: 1px solid var(--line-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.plan li.no::before { content: "—"; color: var(--text-3); }
.plan .btn { width: 100%; }

.notice {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: var(--r-card); padding: 18px 22px; margin-top: 26px; font-size: 14.5px; color: var(--text-2);
}
.notice strong { color: var(--text); }
.notice-blue { border-left-color: var(--blue); }

/* ---------- 文档卡 ---------- */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 22px;
}
.doc-card h3 { font-size: 16px; margin-bottom: 8px; }
.doc-card p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 17px 22px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 22px 20px; color: var(--text-2); font-size: 14.8px; }
.faq .ans p { margin: 0 0 10px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.kv:last-of-type { border-bottom: none; }
.kv .k { color: var(--text-2); flex: none; }
.kv .v { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.mailbox {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 14px 16px; font-family: Consolas, "Courier New", monospace;
  font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; margin: 12px 0;
}
.ph { color: var(--orange); }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 42px 0 54px; color: var(--text-3); font-size: 13.5px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; margin-bottom: 24px; }
.foot-col h4 { font-size: 13px; color: var(--text-2); margin-bottom: 10px; letter-spacing: .5px; }
.foot-col a { display: block; color: var(--text-3); padding: 3px 0; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--line-soft); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot-bottom p { margin: 0; }

/* ---------- 工具类 ---------- */
.muted { color: var(--text-2); }
.tiny { font-size: 13px; color: var(--text-3); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.nowrap { white-space: nowrap; }
.copy-btn {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  border-radius: var(--r-btn); padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 页面头（子页） ---------- */
.page-head { padding: 58px 0 34px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: 38px; letter-spacing: -.6px; margin-bottom: 12px; }
.page-head p { color: var(--text-2); max-width: 760px; margin: 0; }
.crumb { font-size: 13.5px; color: var(--text-3); margin-bottom: 16px; }
.crumb a { color: var(--text-3); }

/* ==========================================================================
   组件层 v2
   ========================================================================== */

/* ---------- 滚动揭示 ----------
   只有 <html class="js"> 时才隐藏初始态 —— 禁用 JS 时内容照常可见（渐进增强）

   ⚠️ 优先级陷阱：`html.js .reveal` 的特指度是 (0,2,1)，比 `.reveal.in` 的 (0,2,0) 高一个 a。
   若把 opacity:0 写成前者、恢复写成后者，隐藏态会永久赢 —— JS 正常执行、.in 正确添加，
   元素依然 opacity:0（首页整片空白）。因此两处特指度必须对齐，都用 html.js 前缀。 */
html.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.js .reveal.in,
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal.in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero v2：箱体背景 + 大字 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 76px; border-top: none;
  background:
    radial-gradient(1100px 520px at 18% -8%, rgba(14,143,255,.16), transparent 64%),
    radial-gradient(820px 460px at 88% 6%, rgba(0,209,193,.10), transparent 62%);
}
/* 箱体网格：极淡的格纹，暗示"格子里装着东西" */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 480px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 480px at 50% 0%, #000 0%, transparent 78%);
}
.hero > .wrap { position: relative; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--teal); opacity: .6;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02; letter-spacing: -2.2px; margin: 0 0 22px; font-weight: 800;
}
.hero h1 .accent {
  color: var(--blue);
  background: linear-gradient(transparent 64%, var(--blue-dim) 64%);
}
/* 记忆句：保险箱 */
.hero-vault {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 16px; margin: 0 0 26px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-size: clamp(17px, 2.1vw, 23px); font-weight: 700; letter-spacing: -.3px;
}
.hero-vault .lock {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-size: 17px;
  background: radial-gradient(circle at 32% 28%, #4a3a17, #241c0c);
  border: 1px solid rgba(217,164,65,.42);
  color: var(--brass);
  box-shadow: 0 0 0 3px rgba(217,164,65,.07);
}
.hero-vault b { color: var(--text); }
.hero-vault em { font-style: normal; color: var(--brass); }

.hero-lead { font-size: clamp(16.5px, 1.9vw, 20px); color: var(--text); margin: 0 0 12px; max-width: 720px; }
.hero-sub  { color: var(--text-2); font-size: 15.5px; margin: 0 0 32px; max-width: 700px; }
.hero-sub strong { color: var(--text); }

/* Hero 徽章组 */
.badges { gap: 10px; }
.badge {
  font-size: var(--fs-xs); color: var(--text-2);
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-pill); padding: 5px 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.badge-hot { color: var(--teal); border-color: rgba(0,209,193,.34); background: var(--teal-dim); }

/* Hero 主图：箱体式外框（双层描边 + 内凹） */
.hero-shot {
  position: relative; margin-top: 54px;
  border-radius: var(--r-card-lg); padding: 10px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-shot img {
  width: 100%; border-radius: 8px; display: block;
  border: 1px solid var(--line-soft);
}
.hero-shot figcaption {
  padding: 12px 14px 4px; font-size: var(--fs-sm); color: var(--text-2);
}

/* ---------- 8 条路（入口网格） ---------- */
.entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.entry {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 20px 18px 18px;
  transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}
.entry:hover {
  border-color: rgba(14,143,255,.55); background: var(--surface-2);
  transform: translateY(-3px); box-shadow: var(--shadow);
}
/* 抽屉把手 */
.entry::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent 72%);
  opacity: 0; transition: opacity .18s var(--ease);
}
.entry:hover::before { opacity: 1; }
.entry .no {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px; margin-bottom: 12px;
  background: var(--blue-dim); color: var(--blue);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
}
.entry h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.entry .say { margin: 0 0 8px; color: var(--blue); font-size: 14px; font-weight: 600; }
.entry .do  { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.65; }
.entry-note {
  margin-top: 22px; padding: 16px 20px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  font-size: 15px; color: var(--text-2);
}
.entry-note strong { color: var(--text); }

/* ---------- 4 道护栏（安全） ---------- */
.guards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guard {
  position: relative; padding: 26px 22px 22px;
  background: linear-gradient(180deg, var(--surface), #141820);
  border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.guard:hover { border-color: rgba(0,209,193,.42); transform: translateY(-3px); }
/* 闸门竖条 */
.guard .bolt {
  display: flex; gap: 3px; margin-bottom: 16px; align-items: flex-end; height: 22px;
}
.guard .bolt i {
  display: block; width: 5px; border-radius: 2px; background: var(--teal);
  box-shadow: 0 0 10px rgba(0,209,193,.45);
}
.guard .bolt i:nth-child(1) { height: 10px; }
.guard .bolt i:nth-child(2) { height: 15px; }
.guard .bolt i:nth-child(3) { height: 20px; }
.guard .bolt i:nth-child(4) { height: 22px; }
.guard h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 700; }
.guard p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.guard .quote {
  margin-top: 12px; padding: 9px 12px; border-radius: 6px;
  background: var(--teal-dim); border-left: 2px solid var(--teal);
  font-size: 13px; color: #BFEFEA;
}
.guard .quote::before { content: "产线注释："; color: var(--teal); font-weight: 700; }

/* 安全说明框 */
.note-safe {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--teal); border-radius: var(--r-card);
  padding: 18px 22px; margin-top: 26px; font-size: 14.8px; color: var(--text-2);
}
.note-safe strong { color: var(--text); }

/* ---------- 入库前预览清单（ledger / 小票） ---------- */
.ledger-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ledger {
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  font-family: Consolas, "Courier New", monospace; font-size: 13.5px;
  box-shadow: var(--shadow);
}
.ledger-head {
  padding: 13px 18px; background: var(--surface-2); border-bottom: 1px dashed var(--line);
  font-size: var(--fs-xs); letter-spacing: 1.4px; color: var(--text-2); font-weight: 700;
}
.ledger-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 18px; border-bottom: 1px dashed var(--line-soft);
  color: var(--text-2);
}
.ledger-row .k { color: var(--text-3); }
.ledger-row .v { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger-row.hi .v { color: var(--blue); }
.ledger-row.warn .v { color: var(--orange); }
.ledger-row.ok .v { color: var(--teal); }
.ledger-foot {
  padding: 13px 18px; background: var(--surface-2); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2);
}
.ledger-foot b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 行内代码 / 路径 ---------- */
code, .step code, .entry code {
  background: var(--surface-3); border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 1px 6px; font-family: Consolas, "Courier New", monospace;
  font-size: .88em; color: var(--teal); word-break: break-all;
}
.guard code { color: var(--text); font-size: .85em; }

/* ---------- 快捷键 / 键位 ---------- */
.kbd {
  display: inline-block; padding: 2px 8px; margin: 0 2px;
  background: var(--surface-3); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; color: var(--text);
}

/* ---------- 数据条（等宽数字） ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 40px; }
.stat .n {
  font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1;
  color: var(--blue); font-variant-numeric: tabular-nums;
}
.stat .n.teal { color: var(--teal); }
.stat .n small { font-size: 16px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.stat .t { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 46px; }
  .hero-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #demos .wrap { max-width: 100%; }
  .pain, .feats, .steps, .price, .docs, .contact, .shots { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .entries { grid-template-columns: 1fr 1fr; }
  .guards { grid-template-columns: 1fr 1fr; }
  .ledger-wrap { grid-template-columns: 1fr; gap: 24px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 62px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: 36px; letter-spacing: -.6px; }
  .hero-lead { font-size: 16.5px; }
  .sec-head h2 { font-size: 24px; }
  .pain, .feats, .steps, .price, .docs, .contact, .shots { grid-template-columns: 1fr; }
  .entries, .guards { grid-template-columns: 1fr; }
  .demos { grid-template-columns: 1fr; }
  .demo-group { margin-bottom: 36px; }
  .demo-group-head { gap: 12px; }
  .demo-group-no { width: 40px; height: 40px; font-size: 15px; }
  .demo-group-head h3 { font-size: 16.5px; }
  .stat-row { gap: 24px; }

  .stat .n { font-size: 32px; }
  .hero h1 { font-size: 36px; letter-spacing: -.8px; }
  .hero-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hero-ways a { padding: 9px 10px; }
  .hero-ways b { font-size: 12.5px; }
  .hero-ways span { font-size: 11px; }
  .hero-vault { font-size: 16px; padding: 10px 16px 10px 12px; gap: 10px; }
  .page-head h1 { font-size: 28px; }
  .plan .price-num { font-size: 32px; }
  .btn { width: 100%; }
  .cta-row .btn { width: auto; flex: 1 1 auto; }
}

@media print {
  .nav, .foot { display: none; }
  body { background: #fff; color: #000; }
}

.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 18px}
.hero-badges span{font-size:14px;font-weight:700;color:#d6e4ff;padding:9px 16px;border-radius:999px;background:rgba(77,124,255,.12);border:1px solid rgba(77,124,255,.45);box-shadow:0 0 20px rgba(77,124,255,.2)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:18px 0 8px}
.stats div{background:var(--surface);padding:22px 18px;text-align:center}
.stats b{display:block;font-size:clamp(24px,2.6vw,34px);font-weight:900;background:linear-gradient(92deg,#6f9bff,#1fd6c4);-webkit-background-clip:text;background-clip:text;color:transparent}
.stats span{display:block;margin-top:6px;font-size:13px;color:var(--text-2)}
.pain-card img{width:100%;height:auto;border-radius:10px;margin-bottom:14px;border:1px solid rgba(255,255,255,.08);display:block}
.mobile-cta{display:none;position:fixed;left:0;right:0;bottom:0;z-index:80;padding:10px 16px 14px;background:linear-gradient(180deg,rgba(7,11,20,0),rgba(7,11,20,.96) 38%)}
.mobile-cta a{display:flex;align-items:center;justify-content:center;height:48px;border-radius:12px;font-weight:800;color:#fff;background:linear-gradient(92deg,#0e8fff,#3a63f0)}
@media(max-width:640px){body{padding-bottom:78px}.mobile-cta{display:block}.stats{grid-template-columns:1fr 1fr}}

.steps-ol{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.steps-ol li{margin:0;height:100%}
@media (max-width:900px){.steps-ol{grid-template-columns:1fr}}

/* ============ 全站直角 ============ */
*,*::before,*::after{border-radius:0!important}
/* 安装三步：三列等宽铺满 */
#install .steps{grid-template-columns:repeat(3,1fr)!important;width:100%;gap:20px}
#install .step{height:100%;display:flex;flex-direction:column}
#install .step .tiny{margin-top:auto}
@media (max-width:900px){#install .steps{grid-template-columns:1fr!important}}

/* ============ 统一导航（与首页一致） ============ */
.nav{position:sticky;top:0;z-index:90;background:rgba(7,11,20,.82);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.09)}
.nav .nav-in{max-width:1160px;margin:0 auto;padding:0 24px;height:66px;display:flex;align-items:center;justify-content:space-between;gap:30px}
a.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:24px;letter-spacing:-.02em;color:#f2f6ff;text-decoration:none;white-space:nowrap}
.logo .logo-mark{width:24px;height:24px;border-radius:0;display:block}
.nav-links{display:flex;align-items:center;gap:22px;font-size:13.5px;white-space:nowrap}
.nav-links a{color:#a7b2cc;text-decoration:none}
.nav-links a:hover{color:#f2f6ff}
@media (max-width:760px){.nav-links{display:none}}

/* 去掉面包屑后上提 */
.page-head{padding-top:36px!important}
.page-head .eyebrow{margin-bottom:8px}

/* 问答列表铺满 */
.faq{max-width:none!important;width:100%}
.faq details{width:100%}
.faq details summary{padding-left:24px;padding-right:24px}

/* 问答文字两端对齐 */
.faq summary,.faq .ans,.faq p{text-align:justify!important}

/* 购买四步单独一行 */
.deco-ph{display:none!important}
#howtobuy .deco-split{display:block!important;margin-bottom:0!important}
#howtobuy .deco-split .deco{max-width:720px;margin:0 auto 30px}
#howtobuy .deco-split-body{width:100%}
#howtobuy .steps{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:18px;width:100%}
#howtobuy .step{height:100%;display:flex;flex-direction:column}
#howtobuy .step p{flex:1}
@media (max-width:900px){#howtobuy .steps{grid-template-columns:1fr 1fr!important}}
@media (max-width:600px){#howtobuy .steps{grid-template-columns:1fr!important}}
