/* ============================================================
   GEOLiNK · design-tokens.css
   Style A · PCB Blueprint — 用户定稿 2026-08-26
   配色 S2 纯双蓝 · 字体 F1 Archivo / Inter / IBM Plex Mono
   全站唯一共享样式：页面自定义样式写在各页 <style> 内
   ============================================================ */

/* ---------- 字体（本地自托管 latin 子集，勿引外部域） ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Archivo-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Archivo-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/Archivo-800-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Inter-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Inter-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Inter-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Inter-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/IBMPlexMono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/IBMPlexMono-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/IBMPlexMono-600-latin.woff2') format('woff2'); }

/* ---------- 设计 Token ---------- */
:root {
  /* 色 · 命名角色（4 色系 + 深底，白名单见 _design/acceptance-criteria.json） */
  --paper:      #F8FAFE;  /* 图纸底 */
  --paper-2:    #EEF3FB;  /* 交替段底 */
  --white:      #FFFFFF;  /* 卡片/容器 */
  --ink:        #0E1430;  /* 墨 · 标题/正文主 */
  --ink-3:      #4A5665;  /* 次文字 */
  --ink-5:      #7C8797;  /* 弱说明/占位 */
  --blue-deep:  #2048A0;  /* 主蓝 · CTA/深蓝块/active */
  --blue:       #427EC6;  /* 辅蓝 · 链接/线/等宽数据 */
  --blue-wire:  #D6E0F2;  /* 走线灰蓝 · 描边/表格线 */
  --blue-wash:  #E9EFFA;  /* 淡蓝底 · 高亮卡/hover */
  --dark:       #10224A;  /* 深底 · 页脚/CTA 带 */
  --dark-2:     #0B1B3F;  /* 深底 hover/叠层 */
  --dark-text:  #B9C6DA;  /* 深底正文 */
  --dark-head:  #F2F6FD;  /* 深底标题 */
  --dark-link:  #8FB4EA;  /* 深底链接 */
  --ok:         #1F8A5D;  /* 状态绿(仅状态徽点用) */
  --warn:       #C4791F;  /* 状态琥珀(仅状态徽点用) */

  /* 字体角色 */
  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Consolas', monospace;

  /* 字号阶 */
  --fs-h1: clamp(38px, 4.6vw, 58px);   /* lh 1.06 ls -.02em w800 */
  --fs-h2: clamp(26px, 3vw, 34px);     /* lh 1.15 ls -.01em w700 */
  --fs-h3: 20px;                       /* lh 1.3 w700 */
  --fs-body: 16px;                     /* lh 1.7 w400 */
  --fs-s: 14.5px;
  --fs-xs: 13px;
  --fs-mono: 13px;                     /* mono 数据/标签 */
  --fs-mono-s: 12px;                   /* mono 坐标/角标 */

  /* 布局 */
  --container: 1160px;
  --gutter: 22px;
  --sec-y: clamp(68px, 8vw, 100px);    /* section 上下 */
  --r-card: 10px;
  --r-btn: 6px;
  --wire: 1px solid var(--blue-wire);
  --shadow-a: 0 8px 24px rgba(14, 20, 48, .07);
  --shadow-b: 0 14px 38px rgba(14, 20, 48, .13);
  --tr: .22s cubic-bezier(.2,.7,.3,1);

  /* 图位比例（仅此三种，见生图锁定） */
  --ar-h: 3 / 2;   /* 横版 1536×1024 */
  --ar-v: 2 / 3;   /* 竖版 1024×1536 */
  --ar-s: 1 / 1;   /* 方形 1024×1024 */
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 14px; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 14px; padding-left: 20px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec-y) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark h2 { color: var(--dark-head); }

/* ---------- 签名：走线端点标签 + 坐标标注（全站统一，组件类 ≤8） ---------- */
/* 1) section 眉标：pad 端子点 + mono 大写标签 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-mono-s);
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash);
  flex: none;
}
.section--dark .eyebrow { color: var(--dark-link); }
.section--dark .eyebrow::before { background: var(--dark-link); box-shadow: 0 0 0 3px rgba(143,180,234,.18); }
/* 2) 图纸锚线（端点 pad 的分隔线） */
.trace-line { position: relative; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-wire) 12%, var(--blue-wire) 88%, transparent); margin: 0 0 24px; }
.trace-line::before, .trace-line::after {
  content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); transform: translateY(-50%);
}
.trace-line::before { left: 3%; }
.trace-line::after { right: 3%; }
.section--dark .trace-line { background: linear-gradient(90deg, transparent, rgba(143,180,234,.35) 12%, rgba(143,180,234,.35) 88%, transparent); }
.section--dark .trace-line::before, .section--dark .trace-line::after { background: var(--dark-link); }
/* 3) 图下坐标标注：mono 蓝色大写 */
.coords {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-mono-s);
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  margin-top: 10px;
}
/* 4) 走线装饰 SVG 基底（hero/CTA 背景，组件图 cta-bg / hero-trace） */
.trace-bg { position: absolute; inset: 0; pointer-events: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-a); }
.btn--primary { background: var(--blue-deep); color: #fff; }
.btn--primary:hover { background: #1B3D8C; box-shadow: var(--shadow-b); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-deep); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-wash); }
.btn--light { background: #fff; color: var(--blue-deep); border-color: var(--blue-wire); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-2); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- 图片位铁律 ---------- */
.ar-h { aspect-ratio: var(--ar-h); }
.ar-v { aspect-ratio: var(--ar-v); }
.ar-s { aspect-ratio: var(--ar-s); }
.img-slot { overflow: hidden; border-radius: var(--r-card); border: var(--wire); background: var(--white); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
/* 占位（生图前）：品牌渐变 + 虚线框 + data-img 标签 */
.img-ph { position: relative; background: linear-gradient(135deg, var(--blue-wash), var(--paper) 55%, var(--blue-wire)); border: 1.5px dashed var(--blue); }
.img-ph::after {
  content: attr(data-img); position: absolute; left: 12px; bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--blue-deep);
}
/* 白底产品图统一混色处理 */
.img-product { background: var(--white); }
.img-product img { mix-blend-mode: multiply; object-fit: contain; padding: 8px; }
/* 1/1 图防裁切（用户规则 2026-08-16）：进 3/2 容器的 1/1 图 + 此覆盖类 */
.img-1-1 { aspect-ratio: var(--ar-s) !important; }

/* ---------- 网格 / 卡片 ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) {
  .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } }

.card-link {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: var(--wire); border-radius: var(--r-card);
  padding: 20px; transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  color: var(--ink); text-decoration: none !important;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-b); border-color: var(--blue); }
.card-link h3 { margin-bottom: 4px; }
.card-link p { color: var(--ink-3); font-size: var(--fs-s); margin: 0; }
.card-link .more { font-family: var(--font-mono); font-size: var(--fs-mono-s); text-transform: uppercase; letter-spacing: .1em; color: var(--blue-deep); margin-top: auto; }

/* ---------- Split 图文分屏（≤2/页 · 图文必须同高，用户规则 2026-08-16） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.split--rev .split-media { order: 2; }
.split-media { border-radius: var(--r-card); overflow: hidden; border: var(--wire); background: var(--white); min-height: 100%; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body { align-self: center; }
.split-body h3 { margin-bottom: 12px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
}

/* ---------- Spec-Card 速览卡 ---------- */
.spec-card { background: var(--white); border: var(--wire); border-radius: var(--r-card); overflow: hidden; }
.spec-card__head {
  font-family: var(--font-mono); font-size: var(--fs-mono-s); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: var(--blue-deep); padding: 10px 18px;
}
.spec-card table { width: 100%; border-collapse: collapse; }
.spec-card th, .spec-card td { padding: 10px 18px; font-size: var(--fs-s); text-align: left; border-bottom: 1px solid var(--blue-wire); }
.spec-card th { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-mono-s); color: var(--ink-5); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.spec-card td { font-weight: 500; }
.spec-card tr:last-child th, .spec-card tr:last-child td { border-bottom: 0; }

/* ---------- Spec-Table 数据表 ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: var(--wire); border-radius: var(--r-card); }
table.spec { width: 100%; border-collapse: collapse; min-width: 640px; }
table.spec th, table.spec td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--blue-wire); font-size: var(--fs-s); }
table.spec thead th {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-mono-s);
  text-transform: uppercase; letter-spacing: .1em; color: var(--blue-deep);
  background: var(--paper-2); white-space: nowrap;
}
table.spec tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.spec tbody td { color: var(--ink-3); }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

/* ---------- Stats 数据带（P4） ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.stats__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); color: var(--blue-deep); line-height: 1; }
.stats__l { font-family: var(--font-mono); font-size: var(--fs-mono-s); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-5); margin-top: 8px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Steps 步骤条（P6） ---------- */
.steps { display: grid; gap: var(--gutter); counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--6 { grid-template-columns: repeat(6, 1fr); }
.steps--4, .steps--6 { counter-reset: step; }
.steps__i { position: relative; padding-top: 26px; }
.steps__i::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: #fff;
  background: var(--blue); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.steps__i::after { content: ''; position: absolute; top: 10px; left: 26px; right: 8px; height: 1px; background: var(--blue-wire); }
.steps__i:last-child::after { display: none; }
.steps__i h4 { font-size: 16px; margin: 4px 0 6px; }
.steps__i p { font-size: var(--fs-s); color: var(--ink-3); margin: 0; }
@media (max-width: 960px) { .steps--4, .steps--6 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ 手风琴（P7，app.js 绑定） ---------- */
.faq { background: var(--white); border: var(--wire); border-radius: var(--r-card); margin-bottom: 10px; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--ink);
  padding: 18px 20px;
}
.faq__q::after {
  content: '+'; flex: none; font-family: var(--font-mono); font-weight: 500; font-size: 20px;
  color: var(--blue-deep); transition: transform var(--tr);
}
.faq[data-open="true"] .faq__q::after { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 20px 18px; color: var(--ink-3); font-size: var(--fs-s); }
.faq[data-open="true"] .faq__a { display: block; }
.faq__a p { margin-bottom: 8px; }

/* ---------- Quote Band（P9，每页 ≤1） ---------- */
.quote-band {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--dark); color: var(--dark-text); padding: clamp(36px, 5vw, 60px);
}
.quote-band h2 { color: var(--dark-head); }
.quote-band .eyebrow { color: var(--dark-link); }
.quote-band p { max-width: 560px; }

/* ---------- Nav / Footer（全站统一骨架） ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(248,250,254,.92); backdrop-filter: blur(10px); border-bottom: var(--wire); }
.site-nav__in { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 28px; }
.site-nav__logo img { height: 30px; width: auto; }
.site-nav__by { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3); border-left: 1px solid var(--blue-wire); padding-left: 12px; white-space: nowrap; }
@media (max-width: 640px) { .site-nav__by { display: none; } }
.site-nav__links { display: flex; gap: 20px; margin-left: auto; }
.site-nav__links a { font-weight: 500; font-size: 15px; color: var(--ink-3); }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--blue-deep); }
.site-nav__cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav__links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--white); border-bottom: var(--wire); padding: 12px 22px; gap: 4px; }
  .site-nav__links.open { display: flex; }
  .site-nav__links a { padding: 10px 0; font-size: 16px; }
  .site-nav__cta { display: none; }
}
.site-foot { background: var(--dark); color: var(--dark-text); }
.site-foot__in { max-width: var(--container); margin: 0 auto; padding: 52px var(--gutter) 0; }
.site-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-foot h4 { font-family: var(--font-mono); font-size: var(--fs-mono-s); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--dark-head); margin-bottom: 14px; }
.site-foot__grid a { color: var(--dark-text); font-size: var(--fs-s); display: block; padding: 4px 0; }
.site-foot__legal a { display: inline; padding: 0; }
.site-foot a:hover { color: var(--dark-link); }
.site-foot__brand img { height: 34px; width: auto; }
.site-foot__brand p { font-size: var(--fs-s); margin-top: 12px; max-width: 320px; }
.site-foot__legal { border-top: 1px solid rgba(185,198,218,.18); padding: 18px 0; font-size: 13px; color: rgba(185,198,218,.75); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero 变体辅助 ---------- */
/* P1b 左文右图：.hero-p1b > .container > grid(1.05fr .95fr) */
.hero-p1b { position: relative; padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.hero-p1b__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-p1b__media { position: relative; background: var(--white); border: var(--wire); border-radius: var(--r-card); padding: clamp(14px, 2vw, 24px); }
.hero-p1b__media img { mix-blend-mode: multiply; width: 100%; height: auto; }
@media (max-width: 860px) { .hero-p1b__in { grid-template-columns: 1fr; } }
/* P1d 轻 hero：.hero-p1d（纯色 + 眉标 + 面包屑） */
.hero-p1d { padding: clamp(40px, 5vw, 60px) 0 34px; border-bottom: var(--wire); }
.hero-p1d .crumbs { font-family: var(--font-mono); font-size: var(--fs-mono-s); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-5); margin-bottom: 18px; }
.hero-p1d .crumbs a { color: var(--blue); }

/* ---------- 弹窗（询盘，app.js） ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__mask { position: absolute; inset: 0; background: rgba(14,20,48,.55); }
.modal__box { position: relative; background: var(--white); border-radius: 12px; max-width: 880px; width: 100%; max-height: 90vh; overflow: auto; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink-3); }
/* 弹窗移动端收敛：≤560px 单列并隐藏装饰图，≤480px 表单单列（minmax(0,…) 抵消 input min-content 溢出；页内联 grid 均已改 minmax） */
#quote-form input, #quote-form select, #quote-form textarea { min-width: 0; }
@media (max-width: 560px) {
  .modal__box > div { grid-template-columns: minmax(0, 1fr) !important; }
  .modal__box > div > div:first-child { display: none; }
}
@media (max-width: 480px) {
  #quote-form > div { grid-template-columns: minmax(0, 1fr) !important; }
  #quote-form > div > div { grid-column: auto !important; }
}

/* ---------- 工具 ---------- */
.mono { font-family: var(--font-mono); }
.uc { text-transform: uppercase; }
.sec-head { max-width: 640px; margin-bottom: 38px; }
.sec-head p { color: var(--ink-3); margin: 0; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.hidden { position: absolute !important; left: -9999px !important; }
