/* ==========================================================================
   dzw 破甲 AI — 落地页样式
   零外部依赖，纯手写，白底企业风（靛蓝 + 青 + 紫），移动优先
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f7f9fd;
  --panel: #ffffff;
  --panel-2: #f2f6fc;
  --line: rgba(16, 42, 82, 0.10);
  --line-2: rgba(16, 42, 82, 0.18);
  --text: #10203a;
  --text-2: #3f5570;
  --muted: #64768e;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #0e7490;
  --ok: #0f9d6e;
  --tg: #229ed9;
  --warn: #d97706;
  --danger: #e11d48;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 28px;

  --shadow-s: 0 1px 3px rgba(16, 42, 82, 0.07);
  --shadow-m: 0 16px 40px -24px rgba(16, 42, 82, 0.22);
  --shadow-l: 0 30px 74px -46px rgba(16, 42, 82, 0.28);

  --wrap: 1200px;
  --gap: 24px;

  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);

  --font-ui: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei",
             "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular",
               "JetBrains Mono", "Courier New", monospace;
}


/* ---------- 高棉 / 老挝 / 泰文：加行高，避免变音符号粘连 ---------- */
:lang(km) body { line-height: 2; }
:lang(km) h1, :lang(km) h2, :lang(km) h3 { line-height: 1.6; letter-spacing: 0; }
:lang(km) .btn, :lang(km) .nav a, :lang(km) .tab { line-height: 1.9; }
:lang(lo) body { line-height: 1.9; }
:lang(lo) h1, :lang(lo) h2, :lang(lo) h3 { line-height: 1.5; letter-spacing: 0; }
:lang(lo) .btn, :lang(lo) .nav a, :lang(lo) .tab { line-height: 1.9; }

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--font-mono); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.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-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 0 0 10px 10px;
  background: var(--brand); color: #ffffff; font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 背景装饰 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(16, 42, 82, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 82, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(130px); opacity: 0.55; pointer-events: none;
}
.bg-glow--a {
  width: 620px; height: 620px; top: -240px; left: -160px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 65%);
}
.bg-glow--b {
  width: 720px; height: 720px; top: 120px; right: -280px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32), transparent 65%);
}

/* ---------- 通用容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: 860px; }

.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}
.section--alt {
  background: linear-gradient(180deg, rgba(16, 42, 82, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- 标题组 ---------- */
.sec-head { max-width: 780px; margin-bottom: 48px; }
.sec-kicker {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand);
}
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  background: linear-gradient(180deg, #0b1a30, #3f5570);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sec-desc { margin: 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.24s var(--ease),
              background 0.24s var(--ease), border-color 0.24s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }

.btn--primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px -12px rgba(37, 99, 235, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(37, 99, 235, 0.85);
}

.btn--ghost {
  background: rgba(16, 42, 82, 0.035);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(16, 42, 82, 0.06);
  border-color: rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }
.btn--lg { padding: 16px 30px; font-size: 16px; border-radius: 14px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -24px rgba(16, 42, 82, 0.30);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 42, 82, 0.10), 0 8px 20px -10px rgba(37, 99, 235, 0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: 0.01em; }
.brand-text em {
  font-style: normal; font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
}

.nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 12px; border-radius: 9px;
  font-size: 14.5px; color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--brand); background: rgba(16, 42, 82, 0.05); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 语言切换 ---------- */
.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px; color: var(--text-2);
  cursor: pointer; list-style: none; white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }
.lang summary:hover { border-color: rgba(37, 99, 235, 0.45); color: var(--text); }
.lang[open] summary { border-color: rgba(37, 99, 235, 0.55); color: var(--text); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  min-width: 196px; padding: 6px;
  display: grid; gap: 2px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--shadow-m);
  max-height: 70vh; overflow-y: auto;
}
.lang-menu a {
  padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-menu a:hover { background: rgba(37, 99, 235, 0.06); color: var(--brand); }
.lang-menu a[aria-selected="true"] {
  color: var(--brand); background: rgba(37, 99, 235, 0.08); font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: rgba(16, 42, 82, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 4.4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(16, 42, 82, 0.03);
  font-size: 12.5px; color: var(--text-2);
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.04); }
}

.hero h1 {
  font-size: clamp(29px, 3.7vw, 50px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(100deg, #1d4ed8 0%, #0891b2 32%, #7c3aed 74%, #2563eb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  max-width: 560px;
  color: var(--text-2);
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.85;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: baseline; gap: 7px; }
.hero-points b {
  font-size: 19px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 窗口展示 */
.hero-visual { position: relative; }
.window-shell {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #ffffff, #f4f7fd);
  box-shadow: var(--shadow-l), 0 0 0 1px rgba(37, 99, 235, 0.12),
              inset 0 1px 0 rgba(16, 42, 82, 0.055);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-2.4deg) rotateX(1.2deg);
  transition: transform 0.6s var(--ease);
}
.window-shell:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }

.window-bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  background: linear-gradient(180deg, #f7f9fd, #eef3fa);
  border-bottom: 1px solid var(--line);
}
.wb-dot { width: 10px; height: 10px; border-radius: 50%; }
.wb-dot--r { background: #ff5f57; }
.wb-dot--y { background: #febc2e; }
.wb-dot--g { background: #28c840; }
.wb-title {
  margin-left: 10px; font-size: 12px; color: var(--muted);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.window-shot { width: 100%; }

.hero-badge {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 15px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-m);
  font-size: 12px;
}
.hero-badge .hb-k { color: var(--muted); letter-spacing: 0.04em; }
.hero-badge .hb-v { color: var(--text); font-weight: 700; font-size: 13.5px; }
.hero-badge--tl { top: -54px; left: 2px; }
.hero-badge--br { bottom: -20px; right: -14px; }
.hero-badge--br .hb-v { color: var(--brand); }

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 42, 82, 0.022), rgba(255, 255, 255, 0));
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 24px;
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 32px 8px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #1e40af, #3b82f6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- 客户端卡片 ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--gap);
}
.client-card {
  position: relative;
  box-shadow: var(--shadow-s);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(16, 42, 82, 0.03), rgba(16, 42, 82, 0.006));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.client-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at 100% 0%, rgba(37, 99, 235, 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 24px 50px -30px rgba(37, 99, 235, 0.55);
}
.client-card:hover::after { opacity: 1; }

.cc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cc-tag {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 7px;
  color: var(--brand);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.24);
}
.cc-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ok);
}
.cc-state::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}
.client-card h3 { font-size: 17px; margin-bottom: 8px; }
.cc-path {
  font-size: 12.5px; color: var(--text-2);
  padding: 9px 12px; margin-bottom: 12px;
  border-radius: 9px;
  background: rgba(16, 42, 82, 0.05);
  border: 1px solid var(--line);
  word-break: break-all;
}
.cc-path code { color: var(--brand-3); }
.cc-note { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

.client-card--more {
  border-style: dashed;
  background: rgba(16, 42, 82, 0.02);
  display: flex; flex-direction: column; justify-content: center;
}
.client-card--more h3 { color: var(--text-2); }
.client-card--more p { color: var(--muted); font-size: 13.5px; }
.link-arrow { color: var(--brand); font-size: 13.5px; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- 功能网格 ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--line);
}
.feat {
  padding: 30px 26px;
  background: var(--bg-2);
  transition: background 0.3s var(--ease);
}
.feat:hover { background: #eef3fb; }
.feat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--brand);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.14));
  border: 1px solid rgba(37, 99, 235, 0.24);
}
.feat-ico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 16px; margin-bottom: 8px; }
.feat p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-bottom: 48px;
  counter-reset: step;
}
.step {
  position: relative;
  box-shadow: var(--shadow-s);
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(16, 42, 82, 0.022);
}
.step-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 流程图 ---------- */
.flow-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(700px circle at 0% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
    rgba(16, 42, 82, 0.022);
}
.flow-head h3 { font-size: 18px; margin-bottom: 4px; }
.flow-head p { margin: 0 0 26px; font-size: 13.5px; color: var(--muted); }

.flow {
  display: flex; align-items: stretch; gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
}
.flow-node {
  flex: 1 1 0;
  min-width: 132px;
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 14px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #f6f9fe);
}
.fn-k {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
}
.fn-v { font-size: 13.5px; font-weight: 600; color: var(--text); }
.flow-node--end {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.04));
}
.flow-node--end .fn-k { color: var(--ok); }
.flow-arrow {
  flex: 0 0 26px;
  align-self: center;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), rgba(37, 99, 235, 0.6));
  position: relative;
}
.flow-arrow::after {
  content: "";
  position: absolute; right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid rgba(37, 99, 235, 0.8);
  border-right: 1px solid rgba(37, 99, 235, 0.8);
  transform: rotate(45deg);
}

/* ---------- Tabs / 截图 ---------- */
.tabs { margin-top: 8px; }
.tab-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 42, 82, 0.025);
  width: fit-content;
  max-width: 100%;
}
.tab {
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 14px; color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  font-weight: 700;
}

.tab-panels { position: relative; }
.tab-panel {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, #ffffff, #f4f7fd);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  animation: fadeUp 0.45s var(--ease) both;
}
.tab-panel[hidden] { display: none; }
.tab-panel img { width: 100%; }
.tab-panel figcaption {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 对比表 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow-x: auto;          /* 窄屏时表格自己横向滚，不撑破页面 */
  -webkit-overflow-scrolling: touch;
  background: rgba(16, 42, 82, 0.02);
}
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  background: rgba(16, 42, 82, 0.032);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.cmp tbody th, .cmp tbody td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr { transition: background 0.2s var(--ease); }
.cmp tbody tr:hover { background: rgba(37, 99, 235, 0.05); }
.cmp tbody th { font-weight: 700; color: var(--text); white-space: nowrap; }
.cmp tbody td { color: var(--muted); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-2);
  background: rgba(16, 42, 82, 0.055);
  border: 1px solid var(--line-2);
}
.pill--hot {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: transparent;
}

/* ---------- 安全区 ---------- */
.split > * { min-width: 0; }
.split-visual { position: relative; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.split-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, #0b1a30, #3f5570);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px; color: var(--muted); line-height: 1.75;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.check-list b { color: var(--text); font-weight: 600; }

.term {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fafd);
  box-shadow: var(--shadow-l);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 42, 82, 0.03);
}
.term-bar em {
  margin-left: 8px; font-style: normal;
  font-size: 11.5px; color: var(--muted);
  font-family: var(--font-mono);
}
.term-body {
  margin: 0; padding: 18px;
  font-size: 12.5px; line-height: 1.85;
  color: #33475f;
  overflow-x: auto;
  white-space: pre;
}
.term-body code { color: inherit; }
.term-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.qa {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  border-radius: var(--radius-s);
  background: rgba(16, 42, 82, 0.025);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.qa[open] {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.035);
}
.qa summary {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
  flex: 0 0 auto;
}
.qa[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--brand);
}
.qa-body { padding: 0 20px 18px; }
.qa-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }

/* ---------- 下载 ---------- */
.section--download { padding-top: 0; }
.dl-card > * { min-width: 0; }
.dl-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px circle at 100% 0%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(700px circle at 0% 100%, rgba(37, 99, 235, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, #f5f8fe);
  box-shadow: var(--shadow-l);
}
.dl-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, #0b1a30, #3f5570);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dl-copy > p { color: var(--text-2); font-size: 15px; max-width: 520px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }

.dl-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.dl-meta div { display: flex; flex-direction: column; gap: 3px; }
.dl-meta dt { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dl-meta dd { margin: 0; font-size: 13.5px; color: var(--text); font-weight: 600; }

.dl-side {
  padding: 22px;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  background: rgba(16, 42, 82, 0.04);
  align-self: start;
}
.dl-side h3 { font-size: 15px; margin-bottom: 6px; }
.dl-side-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.hash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f6f9fd;
  border: 1px solid var(--line);
  font-size: 12px; color: var(--brand-3);
  overflow-x: auto;
  overflow-x: auto;
  white-space: pre;
}
.hash-list { display: grid; gap: 8px; margin-bottom: 14px; }
.hash-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.hash-list li span {
  flex: 0 0 34px;
  font-size: 11px; font-weight: 700;
  color: var(--text-2);
  padding: 2px 0; text-align: center;
  border-radius: 5px;
  background: rgba(16, 42, 82, 0.055);
}
.hash-list code { font-size: 12px; color: var(--text-2); }
.dl-side-note { margin: 0; font-size: 11.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 42, 82, 0.022), transparent);
  padding-top: clamp(40px, 5vw, 64px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
}
.brand--footer { margin-bottom: 14px; }
.f-brand p { font-size: 13.5px; color: var(--muted); max-width: 330px; margin: 0; }

.f-col { display: flex; flex-direction: column; gap: 9px; }
.f-col h3 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 4px;
}
.f-col a, .f-col p { font-size: 13.5px; color: var(--muted); margin: 0; }
.f-col a { transition: color 0.2s var(--ease); }
.f-col a:hover { color: var(--brand); }
.f-strong {
  font-family: var(--font-mono);
  font-size: 17px !important; font-weight: 700;
  color: var(--text) !important;
  letter-spacing: 0.04em;
}
.f-note { font-size: 12.5px !important; }

/* 页脚支持渠道：Telegram 链接（数值行里嵌 <a>） */
.f-strong a {
  color: var(--tg) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 158, 217, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.f-strong a:hover { color: #0a6ea0 !important; border-bottom-color: currentColor; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-top: 20px; padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: 12.5px; color: var(--muted); }
.f-legal { color: #7c8ca3 !important; }
.f-sep { margin: 0 8px; opacity: 0.5; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s var(--ease), border-color 0.2s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: rgba(37, 99, 235, 0.6); }

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .header-inner { gap: 14px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .header-actions .btn--ghost { display: none; }
  .brand-text strong { font-size: 15px; }
}

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { order: 2; }
  .window-shell { transform: none; }
  .hero-badge--tl { top: -46px; left: 0; }
  .hero-badge--br { bottom: -14px; right: -6px; }
  .split { grid-template-columns: 1fr; }
  .dl-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 15.5px; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .header-actions .btn--ghost { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
  .stat { padding: 24px 6px; border-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .flow { gap: 0; }
  .flow-node { min-width: 118px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .header-inner { height: 64px; gap: 12px; }
  .brand-text em { display: none; }
  .lang summary { padding: 7px 9px; font-size: 12.5px; gap: 5px; }
  .lang summary span { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
  .lang-menu { min-width: 172px; right: -46px; }
  .hero { padding-top: 32px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-points { gap: 8px 18px; font-size: 12.5px; }
  .hero-points b { font-size: 16px; }
  .hero-badge { display: none; }
  .client-grid { grid-template-columns: 1fr; }
  .feat { padding: 24px 20px; }
  .cmp thead th:nth-child(3),
  .cmp tbody td:nth-child(3) { display: none; }
  .cmp thead th, .cmp tbody th, .cmp tbody td { padding: 13px 14px; font-size: 13px; }
  .dl-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { right: 14px; bottom: 14px; }
  .term-body { font-size: 11.5px; }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .to-top, .bg-grid, .bg-glow, .hero-cta, .dl-actions { display: none !important; }
  body { background: #fff; color: #10203a; }
  .section { padding: 20px 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 404 ---------- */
.err-body { display: grid; place-items: center; min-height: 100vh; }
.err-page {
  position: relative;
  width: 100%;
  max-width: 620px;
  padding: 48px 24px;
  text-align: center;
}
.brand--err { justify-content: center; margin-bottom: 40px; }
.err-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: clamp(64px, 14vw, 110px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #1d4ed8, #0891b2 40%, #7c3aed);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.err-page h1 { font-size: clamp(22px, 3vw, 30px); }
.err-desc { color: var(--muted); font-size: 15px; max-width: 420px; margin: 0 auto 30px; }
.err-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.err-tip { font-size: 12.5px; color: #7c8ca3; margin: 0; }

/* 下载页内的行内链接 */
.f-inline { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.f-inline:hover { color: #0e7490; }

/* ==========================================================================
   长尾内容页（/p/<slug>/ 与 /en/p/<slug>/）
   与首页共用同一套变量，只补文章排版
   ========================================================================== */
.doc-page { background: var(--bg); }
.doc { max-width: 780px; padding-top: 10px; padding-bottom: 72px; }
.doc-h1 {
  font-size: clamp(26px, 4vw, 40px); line-height: 1.28; letter-spacing: -0.02em;
  margin: 0 0 12px; color: var(--text-2);
}
.doc-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 22px; }
.doc-lead {
  font-size: 17px; line-height: 1.85; color: #33475f;
  padding: 18px 20px; margin: 0 0 34px;
  background: var(--panel-2); border-left: 3px solid var(--brand); border-radius: 10px;
}
.doc h2 {
  font-size: 21px; line-height: 1.45; margin: 40px 0 12px;
  color: #0b1a30; letter-spacing: -0.01em; scroll-margin-top: 90px;
}
.doc h2::before {
  content: ""; display: inline-block; width: 4px; height: 17px; margin-right: 10px;
  vertical-align: -2px; border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
}
.doc p { font-size: 15.5px; line-height: 1.9; color: #33475f; margin: 0 0 18px; }
.doc-cta {
  margin: 44px 0 8px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6f9fe);
  box-shadow: var(--shadow-s); text-align: center;
}
.doc-cta h2 { margin: 0 0 8px; font-size: 19px; }
.doc-cta h2::before { display: none; }
.doc-cta p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.doc-faq { margin-bottom: 8px; }
.doc-rel { list-style: none; padding: 0; margin: 16px 0 0; }
.doc-rel li {
  padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); box-shadow: var(--shadow-s);
  font-size: 14.5px; line-height: 1.6;
}
.doc-rel li a { color: var(--brand); text-decoration: none; font-weight: 600; }
.doc-rel li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-rel li .f-note { display: block; margin-top: 4px; }
.crumb {
  padding-top: 26px; padding-bottom: 0; font-size: 12.5px; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); }
.doc-page .qa { background: var(--panel); }

@media (max-width: 640px) {
  .crumb { padding-top: 18px; }
  .doc-lead { font-size: 15.5px; padding: 14px 16px; }
  .doc h2 { font-size: 19px; margin-top: 32px; }
  .doc p { font-size: 15px; }
}

/* ---------- 关键词云（SEO 区块） ---------- */
.section--kw { padding-top: 0; }
.kw-cloud {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.kw {
  padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f6f9fe);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.kw:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, 0.45); color: var(--brand); }
.kw--hot {
  color: #ffffff; border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 12px 26px -16px rgba(37, 99, 235, 0.75);
}
.kw--hot:hover { color: #ffffff; }
.kw-note {
  margin: 0; max-width: 780px;
  font-size: 12.5px; line-height: 1.9; color: var(--muted);
}
@media (max-width: 640px) {
  .kw { padding: 8px 13px; font-size: 12.5px; }
  .kw-cloud { gap: 8px; }
}
