/* ============================================================
   明亮科技风设计系统 · AI × BUILD
   依赖 tokens.css。原则：浅色 UI（白 / 浅灰蓝交替分区）+
   深色演示视口面板、白卡片轻投影、科技蓝克制强调、
   信息密度高、零 emoji（内联 SVG 图标）。
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.75;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }

/* ---------- 粒子背景（极淡蓝点阵，固定层） ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- 导航（白底毛玻璃） ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .35s ease, padding .35s ease, background .35s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .88);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo em { color: var(--blue); font-style: normal; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .25s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--blue);
  margin-right: 4px;
}
.nav-cta {
  font-size: 13px !important;
  font-weight: 600;
  color: #fff !important;
  background: var(--blue);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background .25s !important;
}
.nav-cta:hover { background: var(--blue-deep); }

/* ---------- 章节骨架（自然高度，高密度） ---------- */
main { position: relative; z-index: 1; }
.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  scroll-margin-top: 64px;
}
.section--alt { background: var(--bg-2); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* 章节 eyebrow：01 · 行业背景 */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--caption);
  letter-spacing: .26em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  flex: 0 0 56px;
  height: 1px;
  background: var(--line-2);
}
.eyebrow b { font-weight: 400; }

/* ---------- 字级 ---------- */
.display {
  font-size: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.h1 { font-size: var(--h1); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.h2 { font-size: var(--h2); font-weight: 600; line-height: 1.3; }
.lead { font-size: var(--lead); color: var(--ink-2); line-height: 1.8; }
.body-text { color: var(--ink-2); }
.small { font-size: var(--small); color: var(--ink-2); }
.caption {
  font-family: var(--font-mono);
  font-size: var(--caption);
  letter-spacing: .14em;
  color: var(--ink-3);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--blue); }

/* 大数字 */
.bignum {
  font-family: var(--font-mono);
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bignum.hot { color: var(--blue); }

/* ---------- 细线 ---------- */
.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 分栏 ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); }
.cols--wide-l { grid-template-columns: 1.15fr 1fr; }
.cols--wide-r { grid-template-columns: 1fr 1.15fr; }

/* ---------- 白卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px);
}

/* 行（规格表 / 数据行） */
.rows { border-top: 1px solid var(--line); }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.row-label { color: var(--ink-2); font-size: var(--small); }
.row-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 按钮 / 链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--blue);
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  transition: all .25s;
}
.btn:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.btn--solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.textlink {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.textlink:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 深色演示视口（大疆式产品页处理） ---------- */
.viewport {
  position: relative;
  background: var(--vp-bg);
  border: 1px solid var(--vp-line);
  border-radius: var(--vp-radius);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(220, 231, 245, .06),
    inset 0 0 60px rgba(6, 20, 46, .55),
    var(--shadow-lg);
}
/* 顶部淡蓝聚光 */
.viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(59, 130, 246, .14), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.viewport canvas { display: block; width: 100%; position: relative; z-index: 0; }
.viewport-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 12px 4px 0;
}
.viewport-caption .caption { color: var(--ink-3); }
.vp-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--blue);
}

/* ---------- 特性列表（小图标 + 标题 + 说明） ---------- */
.features { display: grid; gap: 20px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--blue); }
.feature h4 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.feature p { font-size: var(--small); color: var(--ink-2); line-height: 1.7; }

/* ---------- 横向时间轴（流程） ---------- */
.timeline {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
}
.tl-step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
  position: relative;
}
.tl-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 22px;
  width: 32px; height: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.tl-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.tl-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.tl-desc { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 场景卡片 ---------- */
.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.scene-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.scene-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scene-item svg { width: 30px; height: 30px; stroke-width: 1.5; margin-bottom: 18px; color: var(--blue); }
.scene-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.scene-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }

/* ---------- SVG 图标 ---------- */
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 状态点 ---------- */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
  vertical-align: 1px;
}
.dot.blue { background: var(--blue); }
.dot.amber { background: var(--amber); }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: var(--small);
  color: var(--ink-3);
}
.footer .mono { font-size: var(--caption); letter-spacing: .12em; }
.footer a { color: var(--blue); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .cols, .cols--wide-l, .cols--wide-r { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; }
}

/* ---------- 减弱动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 打印 / 导出：浅色友好，白底深字 ---------- */
@media print {
  html { scroll-behavior: auto; }
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #fff;
  }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #particles, .nav { display: none !important; }
  .section { padding: 40px 32px; page-break-inside: avoid; }
  .section--alt { background: #fff; }
  .card, .tl-step, .scene-item { box-shadow: none; }
  .viewport { box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
