/* AegisTrust sec — 产品官网样式（2026-10-10 第 74 轮 · 品牌梯度与视觉收敛）
   设计令牌与母品牌 / 控制台保持一致：accent #2563EB / ink #0B1220 / teal #0D9488。
   语言由服务端（Pages Worker 读 cookie + CF 边缘国家）写入 <html data-lang>，
   这里只用 CSS 切换，零 JS 依赖、零首屏闪烁。内容默认可见，无入场隐藏。 */

:root {
  --accent: #2563EB;
  --accent-strong: #1D4ED8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --guardian: #0D9488;
  --brand-gradient: linear-gradient(120deg, #2563EB 0%, #1D4ED8 46%, #0D9488 100%);
  --ink: #0B1220;
  --ink-soft: #3B4657;
  --ink-muted: #64748B;
  --line: rgba(11, 18, 32, 0.08);
  --line-strong: rgba(11, 18, 32, 0.14);
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-alt: #EEF2F9;
  --ok: #059669;
  --warn: #B45309;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05), 0 10px 26px -18px rgba(11, 18, 32, 0.30);
  --shadow-md: 0 2px 6px rgba(11, 18, 32, 0.04), 0 26px 54px -34px rgba(11, 18, 32, 0.46);
  --maxw: 1140px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--accent-soft); color: #1E3A8A; padding: 1px 5px; border-radius: 5px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.18s ease;
}
.skip:focus { top: 12px; }

/* ── 语言切换：纯 CSS，服务端注入 data-lang ─────────────────────────── */
html body .t-en, html body .t-zh { display: none; }
html:not([data-lang="zh"]) .t-en { display: inline; }
html[data-lang="zh"] .t-zh { display: inline; }
.lang-en { display: none; }
html[data-lang="zh"] .lang-en { display: inline; }
html[data-lang="zh"] .lang-zh { display: none; }

/* ── 背景网格 ──────────────────────────────────────────────────────── */
.grid-backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 76% 52% at 50% 0%, #000 10%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 76% 52% at 50% 0%, #000 10%, transparent 76%);
}

/* ── 页头 ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  backdrop-filter: saturate(150%) blur(14px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px -30px rgba(11, 18, 32, 0.85);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.06), 0 8px 18px -10px rgba(37, 99, 235, 0.85);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 680; letter-spacing: -0.01em; }
.brand-suffix { color: var(--accent); font-weight: 700; margin-left: 3px; }
.brand-text small { color: var(--ink-muted); font-size: 11px; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { position: relative; color: var(--ink-soft); font-size: 13.5px; font-weight: 520; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  border-radius: 2px; background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 50px; height: 33px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ── 按钮 ──────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(37, 99, 235, 0.95); }
.button-small { padding: 8px 15px; font-size: 13px; box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 14px; font-weight: 560; }
.text-link:hover { color: var(--accent-strong); }

/* ── 首屏 ──────────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 60px;
  overflow-x: clip; /* 兜住 .beam 负向光晕，320-400px 不产生幻影横向溢出 */
}
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  color: var(--accent); font-size: 12px; font-weight: 640;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 14px; height: 2px; margin-right: 9px; border-radius: 2px;
  background: var(--brand-gradient);
}
.hero h1 { font-size: clamp(2.05rem, 3.9vw, 3.15rem); font-weight: 700; letter-spacing: -0.04em; }
.accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-lead { margin-top: 20px; max-width: 54ch; color: var(--ink-soft); font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.hero-facts li {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.fact-k { color: var(--ink-muted); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.fact-v { font-size: 13px; font-weight: 620; }

/* ── 首屏验证链（示意流程，不含任何虚构指标）───────────────────────── */
.hero-visual { position: relative; }
.beam {
  position: absolute; inset: -10% -12% auto -12%; height: 60%;
  background:
    radial-gradient(ellipse at 62% 0%, rgba(37, 99, 235, 0.20), transparent 68%),
    radial-gradient(ellipse at 20% 8%, rgba(13, 148, 136, 0.16), transparent 72%);
  filter: blur(6px); pointer-events: none;
}
.chain {
  position: relative; padding: 21px 20px 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.chain::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand-gradient); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.chain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.chain-title { font-size: 12.5px; font-weight: 660; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.chain-steps { list-style: none; }
.chain-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.chain-steps li:last-child { border-bottom: 0; padding-bottom: 4px; }
.step-index { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 1px; }
.step-body h3 { font-size: 14px; }
.step-body p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.step-body code { background: rgba(11, 18, 32, 0.06); color: var(--ink); }
.diff {
  margin: 8px 0 0; padding: 10px 12px; overflow-x: auto;
  background: #0B1220; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 12px; line-height: 1.65;
}
.diff code { background: none; padding: 0; color: #CBD5E1; }
.d-add { color: #6EE7B7; }
.d-del { color: #FCA5A5; }
.chain-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }

/* ── 通用分区 ──────────────────────────────────────────────────────── */
.band, .section { max-width: var(--maxw); margin: 0 auto; padding: 58px 24px; }
.section-alt { padding-top: 0; }
.section-heading { max-width: 620px; }
.section-heading h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
.section-note { margin-top: 14px; color: var(--ink-muted); font-size: 14px; }

/* ── 四个底座 ──────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.pillar {
  padding: 20px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pillar-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 13px;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.pillar h3 { font-size: 15.5px; }
.pillar p { margin-top: 9px; color: var(--ink-soft); font-size: 13.6px; }

/* ── 能力清单 ──────────────────────────────────────────────────────── */
.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 30px 0 0; list-style: none; }
.capabilities li {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.cap-head { display: flex; align-items: center; gap: 10px; }
.cap-index { font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); }
.cap-head h3 { font-size: 14.5px; }
.cap-head .chip { margin-left: auto; }
.capabilities p { margin-top: 8px; color: var(--ink-soft); font-size: 13.5px; }

.pillar, .capabilities li { transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover, .capabilities li:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-md); transform: translateY(-2px);
  }
}

.chip {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.chip-ok { color: var(--ok); background: rgba(5, 150, 105, 0.1); border-color: rgba(5, 150, 105, 0.22); }
.chip-warn { color: var(--warn); background: rgba(180, 83, 9, 0.1); border-color: rgba(180, 83, 9, 0.22); }

/* ── 可信边界 ──────────────────────────────────────────────────────── */
.boundary-grid {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 42px;
  padding: 38px 38px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.boundary-copy h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }
.boundary-list { list-style: none; display: grid; gap: 16px; }
.boundary-list li { padding-left: 15px; border-left: 2px solid var(--line-strong); }
.boundary-list strong { display: block; font-size: 14.5px; font-weight: 640; }
.boundary-list p { margin-top: 5px; color: var(--ink-soft); font-size: 13.6px; }

/* ── 收尾 ──────────────────────────────────────────────────────────── */
.closing { padding: 0 24px 68px; }
.closing-inner {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto; padding: 49px 42px 46px;
  background: linear-gradient(140deg, #0B1220 0%, #14213C 55%, #0F2E4E 100%);
  border-radius: var(--radius-lg); color: #E6EDF8;
  box-shadow: 0 32px 60px -40px rgba(11, 18, 32, 0.9);
}
.closing-inner::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand-gradient); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.closing-inner::after {
  content: ""; position: absolute; right: -8%; top: -46%; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.28), transparent 62%);
  pointer-events: none;
}
.closing-inner > * { position: relative; z-index: 1; }
.closing h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); color: #fff; }
.closing p { margin-top: 14px; max-width: 62ch; color: #A9BBD4; font-size: 14.5px; }
.closing-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.closing .text-link { color: #7DB4FF; }

/* ── 页脚 ──────────────────────────────────────────────────────────── */
footer { position: relative; border-top: 1px solid var(--line); background: rgba(238, 242, 249, 0.7); }
footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--brand-gradient); opacity: 0.55;
}
.footer-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 24px 24px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand strong { font-size: 13.5px; }
.footer-brand small { color: var(--ink-muted); font-size: 11.5px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { color: var(--ink-muted); font-size: 12px; }

/* ── 响应式：1080 / 900 / 834 / 620 / 370 ─────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .hero-visual { max-width: 620px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boundary-grid { grid-template-columns: 1fr; gap: 26px; padding: 32px 28px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); cursor: pointer; }
  .nav-toggle > span:not(.sr-only) { position: relative; width: 15px; height: 1.5px; background: var(--ink); }
  .nav-toggle > span:not(.sr-only)::before,
  .nav-toggle > span:not(.sr-only)::after { content: ""; position: absolute; left: 0; width: 15px; height: 1.5px; background: var(--ink); }
  .nav-toggle > span:not(.sr-only)::before { top: -5px; }
  .nav-toggle > span:not(.sr-only)::after { top: 5px; }
  .mobile-nav { display: grid; gap: 4px; position: absolute; left: 16px; right: 16px; top: calc(100% + 6px); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-soft); }
  .mobile-nav a:hover { background: var(--surface-alt); color: var(--accent); }
  .mobile-nav .button { margin-top: 6px; color: #fff; }
}
@media (max-width: 834px) {
  .hero { padding: 34px 20px 48px; }
  .band, .section { padding: 48px 20px; }
  .section-alt { padding-top: 0; }
  .closing { padding: 0 20px 56px; }
  .closing-inner { padding: 36px 28px; }
  .capabilities { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .site-header { padding: 11px 16px; gap: 12px; }
  .header-actions { margin-left: auto; }
  .lang-toggle { min-width: 46px; padding: 0 10px; }
  .button { padding: 10px 17px; font-size: 13.5px; }
  .hero { padding: 28px 16px 42px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .hero-facts { gap: 8px; }
  .band, .section { padding: 42px 16px; }
  .section-alt { padding-top: 0; }
  .pillars { grid-template-columns: 1fr; gap: 13px; }
  .boundary-grid { padding: 24px 18px; }
  .closing { padding: 0 16px 48px; }
  .closing-inner { padding: 30px 20px; }
  .footer-inner { gap: 16px; padding: 20px 16px; }
  .footer-links { margin-left: 0; gap: 16px; }
  .footer-legal { width: 100%; }
}

/* 极窄机型（<=370px）：隐藏页头控制台按钮，同一入口仍在汉堡菜单内，页头绝不溢出。 */
@media (max-width: 370px) {
  .site-header { gap: 8px; }
  .header-actions > .button { display: none; }
}
