/* home.css — 首页各 section 样式,移植自 mockup/index.html <style> 的
   hero → responsive 区块。选择器与属性与样张保持一致,颜色改为引用
   tokens.css 已有变量;样张里 tokens.css 缺失的颜色变量在下方 :root 补齐
   (--bg-alt / --ink-soft / --brand-ink 三个 tokens.css 已定义,直接复用,
   不在此重复声明,避免全局变量冲突)。 */

:root {
  --line-dark: #20283a;
  --dark-soft: #8a97ad;
}

/* ---------- 首页专用基础类(base.css 未定义) ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); }
/* 不带装饰圆点:圆点不表达任何状态,只是让每个 eyebrow 看起来"像设计过"。 */
.eyebrow { display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-ink);
  padding: 7px 13px; border-radius: 999px; background: var(--brand-wash);
  border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.08; font-weight: 700; }
section { position: relative; }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 68px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 44px; align-items: center; }
.hero .grid > * { min-width: 0; }
/* 英文 titleLines 每行 21-22 字符;66px 时每行会再折一次,标题排成四行。
   降到 52px 并放宽文案列,让 data 里的两行就是视觉上的两行。 */
.hero h1 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.04; margin-top: 18px; }
.hero h1 .accent { color: var(--brand); }
.hero p.sub { font-size: 18px; color: var(--ink-soft); max-width: 38ch; margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; max-width: 100%; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  max-width: 100%; background: #fff; box-shadow: 0 40px 80px -40px rgba(13,26,43,.4), 0 12px 28px -18px rgba(13,26,43,.25); }
.frame .chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: #fbfaf7; }
.frame .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #dcd8cd; }
.frame .chrome span { min-width: 0; margin-left: 10px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.frame img { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #0e1524; }
.cap { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); margin-top: 12px; text-align: right; }
.sig { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(58% 54% at 82% 36%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%); }

/* ---------- capabilities ---------- */
.capabilities { border-block: 1px solid var(--line); background: #fff; padding: 0; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.pillar { padding: 34px 30px; background: #fff; min-width: 0; }
.pillar .ic { width: 46px; height: 46px; padding: 11px; box-sizing: border-box;
  color: var(--brand); background: var(--brand-wash); border-radius: 13px; margin-bottom: 18px; }
.pillar h3 { font-size: 17px; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- proof bar / 能力型可信带 ---------- */
.proofbar { border-bottom: 1px solid var(--line); background: #fff; }
.proofbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding-block: 18px; }
.proof-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); }
.proof-groups { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-left: auto; }
.proof-g { display: inline-flex; align-items: baseline; gap: 8px; }
.proof-g .pk { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-ink); }
.proof-g .pv { font-size: 13.5px; color: var(--ink); font-weight: 500; }

/* ---------- GD6 新品广告位 ---------- */
.gd6-launch--compact{padding:64px 0;background:#e46d2d;color:#171717}
.gd6-launch--compact .gd6-launch-grid{grid-template-columns:minmax(230px,.52fr) minmax(0,1.48fr);gap:52px}
.gd6-launch--compact .gd6-launch-mark{height:230px;padding:24px 28px}
.gd6-launch--compact .gd6-launch-mark span{font-size:58px}
.gd6-launch--compact .gd6-launch-mark strong{bottom:-48px;font-size:230px}
.gd6-launch--compact .gd6-launch-mark i{left:28px;right:28px;bottom:30px}
.gd6-launch--compact .gd6-launch-copy h2{max-width:620px;font-size:clamp(30px,4.2vw,48px)}
.gd6-launch--compact .gd6-launch-body{max-width:54ch;font-size:15px}
.gd6-launch--compact .gd6-launch-groups{grid-template-columns:repeat(3,minmax(0,1fr))}
.gd6-launch--compact .gd6-launch-group{padding:17px 18px 18px 0;border-left:0;border-right:1px solid rgba(23,23,23,.24)}
.gd6-launch--compact .gd6-launch-group:last-child{border-right:0}

/* 补充能力留在同一区块,但用更轻的列表层级表达。 */
.capability-more { padding: 34px 30px 38px; border-top: 1px solid var(--line); }
.capability-more-label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px; }
.capability-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.t2 { display: flex; gap: 14px; align-items: flex-start; }
.t2-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: var(--brand);
  background: var(--brand-wash); border-radius: 10px; }
.t2-body h3 { font-size: 15px; margin: 2px 0 5px; }
.t2-body p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- section inline link / 区块内链 ---------- */
.sec-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-weight: 600; font-size: 14.5px; color: var(--brand-ink); }
.sec-link:hover { text-decoration: none; gap: 9px; }
.sec-link .icon { transition: transform .16s; }
.sec-link:hover .icon { transform: translateX(2px); }

/* ---------- versus / 定位对比 ---------- */
.versus { padding: 88px 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.vs-head { max-width: 60ch; margin-bottom: 40px; }
.vs-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 16px; }
.vs-head .lead { font-size: 17px; color: var(--ink-soft); margin: 0; max-width: 52ch; }
.vs-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.vs-col { border-radius: var(--radius-lg); padding: 26px 28px; border: 1px solid var(--line); background: #fff; }
.vs-col.them { background: transparent; }
.vs-col.us { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-card); }
.vs-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px; }
.vs-col.us .vs-label { color: var(--brand-ink); }
.vs-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.vs-col li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.vs-col.them li { color: var(--ink-soft); }
.vs-col.them li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 10px; height: 2px;
  background: var(--dark-soft); border-radius: 1px; }
.vs-col.us li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.vs-arrow { display: grid; place-items: center; color: var(--ink-soft); }

/* ---------- ChirpStack MQTT 双向桥接 ---------- */
.bridge { padding: 88px 0; background: #fff; border-bottom: 1px solid var(--line); }
.bridge-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 64px; align-items: center; }
.bridge-copy { min-width: 0; }
.bridge-copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.bridge-copy .lead { margin: 0 0 24px; color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
.bridge-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 13px; }
.bridge-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.bridge-steps .num { flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--brand-wash); color: var(--brand-ink);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.bridge-flow { min-width: 0; display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 10px; align-items: stretch; padding: 30px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg-alt); }
.bridge-node { min-width: 0; min-height: 132px; display: flex; flex-direction: column;
  justify-content: center; padding: 20px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; text-align: center; }
.bridge-node strong { font-size: 16px; line-height: 1.25; }
.bridge-node span { margin-top: 7px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 11px; line-height: 1.35; }
.bridge-node.active { border-color: var(--brand); background: var(--brand-wash); }
.bridge-node.active strong, .bridge-node.active span { color: var(--brand-ink); }
.bridge-link { display: flex; flex-direction: column; justify-content: center; gap: 8px;
  color: var(--brand-ink); text-align: center; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.2; }

/* ---------- self-host ---------- */
.selfhost { padding: 88px 0; }
.selfhost .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.selfhost h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 18px; }
.selfhost .lead { font-size: 17px; color: var(--ink-soft); max-width: 42ch; margin-bottom: 24px; }
.command-panel { min-width: 0; overflow: hidden; border: 1px solid #263248; border-radius: 8px;
  background: var(--dark); box-shadow: 0 24px 48px -30px rgba(13,26,43,.7); }
.command-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px;
  border-bottom: 1px solid #263248; background: #111827; }
.command-bar i { width: 9px; height: 9px; border-radius: 50%; background: #48556b; }
.command-bar span { min-width: 0; margin-left: 7px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: var(--dark-soft); font-family: var(--font-mono); font-size: 11px; }
.command-panel pre { max-width: 100%; margin: 0; padding: 28px 24px; overflow-x: auto;
  color: #b8d5ff; font-size: 13px; line-height: 1.6; }
.command-panel code { white-space: pre; }

/* ---------- edgebus / 存量 ---------- */
.edge { padding: 96px 0; }
.edge .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.edge h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 20px; }
.edge p.lead { font-size: 17px; color: var(--ink-soft); max-width: 46ch; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; }
.flow .node { background: var(--brand-wash); color: var(--brand-ink);
  padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.flow .node.on { background: var(--ink); color: #fff; }
.flow .ar { color: var(--ink-soft); }
.edge-visual { position: relative; background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 34px; display: grid; place-items: center; }
.edge-visual img { width: 78%; filter: drop-shadow(0 24px 40px rgba(13,26,43,.18)); }
.edge-visual .tag { position: absolute; left: 22px; bottom: 20px; font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-soft); }

/* ---------- deployment ---------- */
.deploy { padding: 92px 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.deploy .head { max-width: 60ch; margin-bottom: 46px; }
.deploy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.deploy .head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); }
/* 三形态卡片不再配图:GDO51 渲染图带 ManThink 字标与 LoRa 标识不可上站,
   现有候选图片语义不齐,三张纯文字卡对比更干净。 */
.mode-body { padding: 30px 28px; }
.mode .k { font-family: var(--font-mono); font-size: 13px; color: var(--brand-ink); font-weight: 500; }
.mode h3 { font-size: 20px; margin: 10px 0 12px; }
.mode p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.mode ul { margin: 16px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-soft); }
.mode li { padding: 6px 0 6px 20px; position: relative; }
.mode li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: var(--brand); }

/* ---------- cta band ---------- */
.band { background: var(--dark); color: #fff; padding: 84px 0; text-align: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(22,119,255,.28), transparent 55%); }
.band .wrap { position: relative; }
.band h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.band p { color: var(--dark-soft); font-size: 18px; max-width: 44ch; margin: 0 auto 32px; }
.band .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.band .btn-ghost { color: #fff; border-color: var(--line-dark); }
.band .btn-ghost:hover { border-color: #fff; background: transparent; }

/* ---------- motion ---------- */
/* 默认(无 .js,即 JS 未运行/被禁用/被拦截时) .rise 不设置 opacity,
   保持正常可见 — 渐进增强:内容优先,动画是增强而非前提。 */
.js .rise { opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .grid, .edge .grid, .selfhost .grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .bridge-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .bridge-flow { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .bridge-node { min-height: 104px; }
  .bridge-link { min-height: 48px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-more-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .proof-groups { margin-left: 0; }
  .modes { grid-template-columns: 1fr; }
  .cap { text-align: left; }
  .vs-cols { grid-template-columns: 1fr; }
  .vs-arrow { transform: rotate(90deg); }
}
@media (max-width:760px) {
  .gd6-launch--compact .gd6-launch-grid{grid-template-columns:1fr;gap:30px}
  .gd6-launch--compact .gd6-launch-mark{height:180px}
  .gd6-launch--compact .gd6-launch-mark strong{bottom:-38px;font-size:180px}
}
@media (min-width: 901px) {
  html[lang="es"] .hero h1 { font-size: clamp(32px, 3.35vw, 46px); }
  html[lang="ja"] .hero p.sub, html[lang="zh-CN"] .hero p.sub { max-width: 30em; }
}
@media (max-width: 520px) {
  .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(30px, 9vw, 36px); }
  .wrap { padding-inline: 20px; }
  .gd6-launch--compact{padding-block:52px}
  .gd6-launch--compact .gd6-launch-groups{grid-template-columns:1fr}
  .gd6-launch--compact .gd6-launch-group{padding-right:0;border-right:0}
}
@media (max-width: 480px) {
  .hero .cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero .btn { width: 100%; justify-content: center; }
}
