/* =========================================================
   OnlinePay 官网 · 设计系统
   ---------------------------------------------------------
   文件职责：全站唯一视觉基座（变量 / 版式 / 组件 / 动效 / 响应式）
   维护约定：
     1. 颜色、圆角、阴影一律走 CSS 变量，改主题只动 :root
     2. 新增组件写在对应分区内，不要另起文件，避免样式分裂
     3. 移动端断点只有三个：1080（平板）/ 860（竖屏平板）/ 640（手机）
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  /* 中性色 */
  --ink: #0d1626;
  --ink-2: #46586f;
  --ink-3: #76879c;
  --ink-4: #9aa8ba;
  --line: #e6ebf3;
  --line-soft: #eff3f9;
  --bg: #f7f9fc;
  --surface: #ffffff;

  /* 品牌色：主色沿用产品端 #1677ff，保证官网与后台观感一致 */
  --brand: #1677ff;
  --brand-600: #0f62e6;
  --brand-50: #eaf2ff;
  --violet: #6d5efc;
  --cyan: #22d3ee;
  --green: #12b76a;

  /* 深色区 */
  --navy: #050a15;
  --navy-2: #0a1424;
  --navy-line: rgba(255, 255, 255, 0.09);

  /* 渐变 */
  --grad-brand: linear-gradient(135deg, #1677ff 0%, #3f6bff 46%, #6d5efc 100%);
  --grad-text: linear-gradient(100deg, #7fb2ff 0%, #a99bff 52%, #6fe7f5 100%);

  /* 圆角 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* 阴影：统一用低透明深蓝，避免发灰 */
  --sh-xs: 0 1px 2px rgba(13, 22, 38, 0.05);
  --sh-sm: 0 2px 8px rgba(13, 22, 38, 0.05), 0 1px 2px rgba(13, 22, 38, 0.04);
  --sh-md: 0 8px 24px -8px rgba(13, 22, 38, 0.14), 0 2px 6px rgba(13, 22, 38, 0.04);
  --sh-lg: 0 28px 64px -24px rgba(13, 22, 38, 0.26);
  --sh-brand: 0 14px 32px -12px rgba(22, 119, 255, 0.55);

  /* 字体 */
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 布局 */
  --wrap: 1200px;
  --gutter: 24px;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

/* 类选择器上的 display（如 .modal__form 的 grid）会盖掉 [hidden] 的
   浏览器默认样式，导致 JS 设 hidden 后元素照样显示。统一兜住。 */
[hidden] {
  display: none !important;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: rgba(22, 119, 255, 0.18);
}

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

/* ---------- 3. 版式 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--tight {
  padding: 64px 0;
}

.section--soft {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.section--white {
  background: var(--surface);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin-top: 18px;
  /* 避免中文标题最后一行只剩一两个字 */
  text-wrap: balance;
}

.h3 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 60ch;
  /* 避免中文段落最后一行只剩一两个字 */
  text-wrap: pretty;
}

.section-head {
  max-width: 720px;
}

.section-head--center {
  margin: 0 auto;
  text-align: center;
}

.section-head--center .eyebrow::before {
  display: none;
}

.section-head--center .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 64ch;
}

.text-brand {
  color: var(--brand);
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--btn-h);
  padding: 0 24px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.24s ease, background 0.24s ease,
    color 0.24s ease, border-color 0.24s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--sh-brand);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(22, 119, 255, 0.62);
}

.btn--ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
}

.btn--ghost:hover {
  border-color: #c9d8ee;
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.btn--on-dark {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
}

.btn--on-dark:hover {
  transform: translateY(-2px);
}

.btn--outline-dark {
  color: #e6eefc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.btn--outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.btn--sm {
  --btn-h: 40px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--lg {
  --btn-h: 54px;
  padding: 0 30px;
  font-size: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- 5. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 70px;
  display: flex;
  align-items: center;
  color: #e8eefb;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease,
    color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 34px;
}

/* 滚动后：白底 + 模糊，文字转深色 */
.nav.is-stuck {
  height: 62px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(13, 22, 38, 0.04), 0 8px 24px -20px rgba(13, 22, 38, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  /* 图未加载时兜底成品牌渐变块，不会留白 */
  background: var(--grad-brand);
  box-shadow: 0 6px 14px -6px rgba(22, 119, 255, 0.55);
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand__name b {
  font-weight: 700;
  color: var(--brand);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav__link {
  position: relative;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: inherit;
  opacity: 0.82;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  opacity: 1;
}

.nav.is-stuck .nav__link:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.nav__link.is-active {
  opacity: 1;
  font-weight: 600;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 导航里的登录入口在深色页头上用描边样式 */
.nav__login {
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 9px;
  opacity: 0.86;
}

.nav__login:hover {
  opacity: 1;
}

.nav.is-stuck .nav__login {
  color: var(--ink-2);
}

.nav.is-stuck .nav__login:hover {
  color: var(--brand);
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid currentColor;
  border-color: rgba(255, 255, 255, 0.22);
  color: inherit;
  align-items: center;
  justify-content: center;
}

.nav.is-stuck .nav__burger {
  border-color: var(--line);
}

.nav__burger span {
  position: relative;
  width: 17px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav__burger span::before {
  top: -5.5px;
}

.nav__burger span::after {
  top: 5.5px;
}

.nav.is-open .nav__burger span {
  background: transparent;
}

.nav.is-open .nav__burger span::before {
  transform: translateY(5.5px) rotate(45deg);
}

.nav.is-open .nav__burger span::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 移动端抽屉 */
.nav__drawer {
  position: fixed;
  inset: 70px 0 auto;
  z-index: 59;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 14px var(--gutter) 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav.is-open + .nav__drawer {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav__drawer a {
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}

.nav__drawer a:last-of-type {
  border-bottom: 0;
}

.nav__drawer .btn {
  margin-top: 14px;
  width: 100%;
}

/* ---------- 6. 首屏（深色） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #eaf2ff;
  padding: 168px 0 128px;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* 光晕：三团不同色温的光，模拟支付页的高光质感 */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero__glow--a {
  width: 640px;
  height: 640px;
  top: -240px;
  left: -140px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.75), transparent 68%);
}

.hero__glow--b {
  width: 560px;
  height: 560px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(109, 94, 252, 0.62), transparent 68%);
}

.hero__glow--c {
  width: 520px;
  height: 520px;
  bottom: -280px;
  left: 38%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%);
}

/* 细网格：让深色区不空，又不抢主体 */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #cfe0f8;
  backdrop-filter: blur(8px);
}

.hero__badge-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__badge svg {
  width: 13px;
  height: 13px;
  color: #7fb2ff;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin-top: 24px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.85;
  color: #a9bad4;
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 34px;
  font-size: 13.5px;
  color: #8296b3;
}

.hero__notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__notes svg {
  width: 14px;
  height: 14px;
  color: #4d9bff;
}

/* ---------- 7. 首屏视觉：卡片堆叠 ---------- */
.hero__visual {
  position: relative;
  min-height: 552px;
}

.mock {
  position: absolute;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* 收银台手机 */
.mock--phone {
  right: 0;
  top: 44px;
  width: 272px;
  padding: 0;
  border-radius: 30px;
  overflow: hidden;
  z-index: 3;
  animation: floaty 7s ease-in-out infinite;
}

.mock--phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 5px;
  border-radius: 99px;
  background: #e9eef7;
  z-index: 2;
}

.mock__bar {
  padding: 26px 18px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.mock__bar b {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.mock__body {
  padding: 18px;
}

.mock__amount {
  text-align: center;
  padding: 10px 0 18px;
}

.mock__amount span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.mock__amount strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mock__amount strong i {
  font-style: normal;
  font-size: 19px;
  margin-right: 2px;
  color: var(--ink-2);
}

.mock__way {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 9px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
}

.mock__way.is-on {
  border-color: rgba(22, 119, 255, 0.5);
  background: var(--brand-50);
  color: var(--brand-600);
}

.mock__way .dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.mock__way .dot svg {
  width: 14px;
  height: 14px;
}

.mock__way .ok {
  margin-left: auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
}

.mock__way .ok svg {
  width: 9px;
  height: 9px;
  color: #fff;
}

.mock__pay {
  margin-top: 16px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--sh-brand);
}

.mock__foot {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-4);
  padding: 12px 0 2px;
}

/* 聚合码牌 */
.mock--qr {
  left: 32px;
  bottom: 0;
  width: 212px;
  padding: 15px;
  z-index: 2;
  animation: floaty 8.5s ease-in-out infinite 0.6s;
}

.mock--qr .qr-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.qr-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.qr-avatar svg {
  width: 16px;
  height: 16px;
}

.mock--qr .qr-head b {
  font-size: 12px;
  display: block;
  line-height: 1.3;
}

.mock--qr .qr-head span {
  font-size: 10px;
  color: var(--ink-3);
}

/* 二维码：用一张静态 SVG 模块图，缩放不失真；
   不用 CSS 拼格子 —— 那看起来像噪点，不像二维码 */
.qr-code {
  position: relative;
  margin: 13px auto 9px;
  width: 122px;
  height: 122px;
  padding: 7px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.qr-code i {
  display: block;
  width: 100%;
  height: 100%;
  background: url("../img/qr-demo.svg") center / 100% 100% no-repeat;
  border-radius: 2px;
}

.qr-foot {
  text-align: center;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* 后台数据卡 */
.mock--stat {
  left: 0;
  top: 0;
  width: 238px;
  padding: 16px 18px;
  z-index: 4;
  animation: floaty 9.5s ease-in-out infinite 1.2s;
}

.mock--stat .st-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
}

.st-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}

.st-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
}

.mock--stat strong {
  display: block;
  margin-top: 7px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mock--stat strong span {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
}

.spark {
  margin-top: 10px;
  width: 100%;
  height: 34px;
}

.hero__visual-tag {
  position: absolute;
  right: 0;
  bottom: 26px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(10, 20, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #d8e6fb;
  font-size: 12px;
  font-weight: 550;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}

.hero__visual-tag svg {
  width: 14px;
  height: 14px;
  color: #4ade80;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

/* ---------- 8. 通道跑马灯 ---------- */
.marquee {
  position: relative;
  padding: 30px 0;
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  color: #8ea4c3;
  overflow: hidden;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy), transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.marquee__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(110, 170, 255, 0.55);
  flex: none;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 9. 数字条 ---------- */
.stats {
  background: var(--navy);
  color: #fff;
  padding: 0 0 92px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--navy-line);
  padding-top: 44px;
  gap: 24px;
}

.stat b {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #a9c4ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: #8497b4;
}

/* ---------- 10. 卡片 / 能力栅格 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: #d7e3f5;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: linear-gradient(160deg, #e9f1ff, #dbe8ff);
  border: 1px solid rgba(22, 119, 255, 0.18);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

/* 两列卡片很宽，段落要限宽，否则一行 40 多个字读起来累 */
.grid--2 .card p {
  max-width: 50ch;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.card__tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: #f4f7fc;
  border: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}

/* ---------- 11. 左右分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* 关键：网格子项默认 min-width:auto，内部宽表格会把整列撑破导致横向滚动 */
.split > * {
  min-width: 0;
}

.split--reverse .split__media {
  order: -1;
}

.split__body .h2 {
  margin-top: 16px;
}

.feature-list {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

.feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.feature-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.feature-list b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
}

.feature-list p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* 媒体区：面板容器 */
.panel {
  position: relative;
  border-radius: var(--r-xl);
  padding: 26px;
  background: linear-gradient(160deg, #f2f6ff 0%, #eef3f9 55%, #f7f4ff 100%);
  border: 1px solid #e3ebf7;
  box-shadow: inset 0 1px 0 #fff;
}

.panel--dark {
  background: linear-gradient(160deg, #0a1424, #0d1a2e 60%, #101426);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 订单表格模拟 */
.tablemock {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 12.5px;
}

.tablemock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
}

.tablemock__head b {
  font-size: 12.5px;
  font-weight: 650;
}

.tablemock__head .pill {
  margin-left: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand-600);
}

.pill--green {
  background: rgba(18, 183, 106, 0.1);
  color: #0b8f55;
}

.pill--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.tablemock table {
  width: 100%;
  border-collapse: collapse;
}

.tablemock th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 9px 16px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.tablemock td {
  padding: 11px 16px;
  border-bottom: 1px solid #f6f8fc;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tablemock tr:last-child td {
  border-bottom: 0;
}

.tablemock td b {
  color: var(--ink);
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

/* 浮动小提示 */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.float-chip svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

/* ---------- 12. 支付方式 ---------- */
.pays {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  box-shadow: var(--sh-xs);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pay-chip:hover {
  transform: translateY(-2px);
  border-color: #c9dcfa;
  color: var(--ink);
}

.pay-chip i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.pay-chip i svg {
  width: 13px;
  height: 13px;
}

.ic-wx {
  background: linear-gradient(135deg, #22c55e, #12a150);
}

.ic-ali {
  background: linear-gradient(135deg, #1677ff, #0b5ed7);
}

.ic-uid {
  background: linear-gradient(135deg, #6d5efc, #4f46e5);
}

/* ---------- 13. 接入流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 17px;
  font-weight: 650;
}

.step p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--ink-2);
}

.step__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 7px;
}

.step__meta svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

/* ---------- 14. 代码块 ---------- */
.code {
  border-radius: var(--r-md);
  background: #0a1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.code__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.code__head i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.code__head span {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #6b7f9c;
}

.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #c6d5ea;
  tab-size: 2;
}

.code .k {
  color: #7fb2ff;
}

.code .s {
  color: #8ee6b4;
}

.code .n {
  color: #f0b866;
}

.code .c {
  color: #5d7290;
}

/* ---------- 15. 对比表 ---------- */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 14.5px;
}

.compare th,
.compare td {
  padding: 17px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.compare thead th {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
  background: #fbfcfe;
  white-space: nowrap;
}

.compare thead th:first-child {
  color: var(--ink-3);
  font-weight: 600;
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.compare td {
  color: var(--ink-2);
}

.compare .col-us {
  background: linear-gradient(180deg, rgba(22, 119, 255, 0.055), rgba(22, 119, 255, 0.02));
  color: var(--ink);
  font-weight: 550;
}

.compare thead .col-us {
  color: var(--brand);
  font-weight: 700;
}

.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yes svg,
.no svg {
  width: 16px;
  height: 16px;
}

.yes svg {
  color: var(--green);
}

.no svg {
  color: #c3ccda;
}

/* ---------- 16. 合作方式 ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  padding: 34px 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan--featured {
  position: relative;
  background: linear-gradient(180deg, #0a1424, #0b1a30);
  border-color: rgba(255, 255, 255, 0.1);
  color: #eaf2ff;
  box-shadow: var(--sh-lg);
}

.plan--featured .plan__price,
.plan--featured h3 {
  color: #fff;
}

.plan--featured li {
  color: #a9bad4;
}

.plan__flag {
  position: absolute;
  top: 20px;
  right: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.plan__desc {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
  min-height: 46px;
}

.plan--featured .plan__desc {
  color: #8497b4;
}

.plan__price {
  margin: 22px 0 4px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-size: 15px;
  color: var(--ink-2);
}

.plan__price b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan__price em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
  padding-bottom: 4px;
}

.plan ul {
  margin: 22px 0 26px;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.plan--featured li svg {
  color: #4d9bff;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- 17. FAQ ---------- */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 880px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 4px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.faq__q i {
  margin-left: auto;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.28s ease, background 0.24s ease, border-color 0.24s ease,
    color 0.24s ease;
}

.faq__q i svg {
  width: 12px;
  height: 12px;
}

.faq__item.is-open .faq__q i {
  transform: rotate(45deg);
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 4px 26px;
  font-size: 14.8px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 72ch;
}

.faq__a p + p {
  padding-top: 4px;
}

/* ---------- 18. CTA 区 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 64px 56px;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto;
  height: 160%;
  background: radial-gradient(ellipse at 22% 30%, rgba(22, 119, 255, 0.5), transparent 55%),
    radial-gradient(ellipse at 78% 70%, rgba(109, 94, 252, 0.42), transparent 55%);
  filter: blur(30px);
}

.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000, transparent 75%);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 20ch;
  text-wrap: balance;
}

.cta p {
  margin-top: 14px;
  font-size: 15px;
  color: #a9bad4;
  max-width: 46ch;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 19. 页脚 ---------- */
.footer {
  background: #05080f;
  color: #8698b3;
  padding: 72px 0 32px;
  font-size: 14px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand .brand {
  color: #fff;
}

.footer__brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: #7c8fa9;
}

.footer__contact {
  margin-top: 22px;
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.footer__contact a,
.footer__contact span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a8b9d1;
}

.footer__contact a:hover {
  color: #fff;
}

.footer__contact svg {
  width: 15px;
  height: 15px;
  color: #4d9bff;
  flex: none;
}

.footer h4 {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer__links {
  display: grid;
  gap: 11px;
  font-size: 13.5px;
}

.footer__links a {
  color: #8698b3;
  transition: color 0.2s ease;
  width: fit-content;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: #66789a;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer__legal a {
  color: #8698b3;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: #fff;
}

.footer__icp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer__icp a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(134, 152, 179, 0.4);
}

/* ---------- 20. 子页页头 ---------- */
.pagehead {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #eaf2ff;
  padding: 148px 0 76px;
  isolation: isolate;
}

.pagehead__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.pagehead__bg::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  top: -380px;
  left: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.55), transparent 66%);
  filter: blur(80px);
}

.pagehead__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 0%, #000, transparent 72%);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #7f93b1;
}

.crumb a:hover {
  color: #cfe0f8;
}

.crumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.pagehead h1 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
  max-width: 20ch;
  text-wrap: balance;
}

.pagehead p {
  margin-top: 18px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  color: #a9bad4;
  max-width: 60ch;
}

.pagehead .hero__cta {
  margin-top: 30px;
}

/* ---------- 21. 通用小构件 ---------- */
.note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  border: 1px solid rgba(22, 119, 255, 0.14);
  font-size: 13.5px;
  line-height: 1.75;
  color: #2b4a78;
}

.note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--brand);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* 默认两列：kv 多用在窄栏（左右分栏的左侧），auto-fit 会漏出空格子 */
.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}

.kv > div {
  background: #fff;
  padding: 18px 20px;
}

.kv dt {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.kv dd {
  margin: 6px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

/* 时间轴 */.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 8px;
}

.timeline li {
  position: relative;
  padding: 0 0 34px 28px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.timeline b {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
}

.timeline span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timeline p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.78;
}

/* 联系卡片 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.contact-card .card__icon {
  margin-bottom: 18px;
}

.contact-card h3 {
  font-size: 16.5px;
  font-weight: 650;
}

.contact-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
}

.contact-card .val {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 650;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* 申请表单（静态站：提交走 mailto，避免额外后端） */
.form {
  display: grid;
  gap: 16px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field label i {
  color: #e5484d;
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fbfcfe;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a8b5c7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.form__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form__foot small {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- 21.5 架构流程 ---------- */
.arch {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.arch__node {
  flex: 1 1 0;
  min-width: 0;
  padding: 22px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: var(--sh-xs);
  /* 深色区里复用这个组件时必须显式给字色，否则继承白字白底 */
  color: var(--ink);
}

.arch__node i {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #e9f1ff, #dbe8ff);
  color: var(--brand);
}

.arch__node i svg {
  width: 19px;
  height: 19px;
}

.arch__node b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.arch__node span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

.arch__arrow {
  display: grid;
  place-items: center;
  flex: none;
  color: #c8d6ea;
}

.arch__arrow svg {
  width: 16px;
  height: 16px;
}

.arch__node--accent {
  background: linear-gradient(160deg, #0a1424, #0d1a2e 70%, #101a30);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--sh-md);
}

.arch__node--accent b {
  color: #fff;
}

.arch__node--accent span {
  color: #8ea4c3;
}

.arch__node--accent i {
  background: rgba(22, 119, 255, 0.18);
  color: #7fb2ff;
  border: 1px solid rgba(22, 119, 255, 0.28);
}

/* ---------- 21.6 参数表 ---------- */
.compare--spec {
  font-size: 14px;
}

.compare--spec th,
.compare--spec td {
  padding: 13px 18px;
  vertical-align: top;
}

.compare--spec td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
}

.compare--spec td:last-child {
  white-space: normal;
  min-width: 260px;
}

/* ---------- 22. 入场动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 无 JS 时不能把内容藏起来 */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- 23. 响应式 ---------- */
@media (max-width: 1080px) {
  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 140px 0 96px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__sub {
    max-width: 56ch;
  }

  .hero__visual {
    min-height: 552px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .split {
    gap: 44px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__login {
    display: none;
  }

  .nav__burger {
    display: inline-flex;
  }

  .nav.is-open + .nav__drawer,
  .nav__drawer {
    display: flex;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .stats {
    padding-bottom: 72px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* 架构图在窄屏改为纵向 */
  .arch {
    flex-direction: column;
  }

  .arch__arrow {
    padding: 2px 0;
  }

  .arch__arrow svg {
    transform: rotate(90deg);
  }

  .cta {
    padding: 44px 30px;
  }

  .cta__inner {
    gap: 30px;
  }

  .compare th,
  .compare td {
    padding: 14px 16px;
  }

  .tablemock {
    font-size: 11.5px;
  }

  .section-head {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  .section {
    padding: 68px 0;
  }

  .section--tight {
    padding: 48px 0;
  }

  .hero {
    padding: 118px 0 76px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__visual {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  /* 手机竖屏放不下三张卡片，只留收银台，另两张隐藏避免叠压 */
  .mock--stat,
  .mock--qr {
    display: none;
  }

  .mock--phone {
    position: relative;
    right: auto;
    top: auto;
    width: 268px;
    animation: none;
  }

  .hero__visual-tag {
    position: static;
    font-size: 11.5px;
  }

  .pagehead {
    padding: 118px 0 56px;
  }

  .card,
  .step,
  .plan {
    padding: 24px 22px;
  }

  .form {
    padding: 24px 20px;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    max-width: none;
  }

  .footer {
    padding: 56px 0 28px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    justify-content: flex-start;
  }

  .marquee::before,
  .marquee::after {
    width: 60px;
  }

  .compare {
    font-size: 13px;
  }

  /* 手机上表格允许换行，靠横向滚动会把「说明」整列藏起来 */
  .compare th,
  .compare td {
    padding: 12px 10px;
    white-space: normal;
  }

  .compare td:first-child,
  .compare th:first-child {
    white-space: nowrap;
  }

  .compare--spec {
    font-size: 12.5px;
  }

  .compare--spec td:last-child {
    min-width: 0;
  }

  /* 表格模拟卡在手机上列太多，收紧内边距；带 --hide-ch 的隐藏「通道」列 */
  .tablemock th,
  .tablemock td {
    padding: 9px 10px;
    font-size: 11.5px;
  }

  .tablemock--hide-ch th:nth-child(2),
  .tablemock--hide-ch td:nth-child(2) {
    display: none;
  }
}

/* ---------- 24. 动效降级 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   25. 联系我们弹层
   ---------------------------------------------------------
   触发方式：任意带 [data-contact-modal] 的元素（由 site.js 建 DOM）
   无 JS 时这些链接照常跳到 contact.html，不影响可用性
   ========================================================= */
body.is-locked {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 21, 0.64);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: #fff;
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}

.modal__close:hover {
  color: var(--ink);
  border-color: #cfdcef;
  transform: rotate(90deg);
}

.modal__close svg {
  width: 15px;
  height: 15px;
}

.modal__body {
  padding: 36px 32px 30px;
}

.modal__title {
  margin-top: 14px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.modal__lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.modal__form {
  margin-top: 24px;
  display: grid;
  gap: 15px;
}

.modal__form .field label {
  font-size: 13px;
}

.modal__submit {
  width: 100%;
  margin-top: 4px;
}

.modal__note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}

/* 校验态 */
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #e5484d;
  background: #fff8f8;
}

.field.is-invalid input:focus {
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14);
}

.field__err {
  display: none;
  font-size: 12px;
  color: #cf3a3f;
}

.field.is-invalid .field__err {
  display: block;
}

/* 提交完成态 */
.modal__done {
  margin-top: 22px;
}

.modal__ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(18, 183, 106, 0.08);
  border: 1px solid rgba(18, 183, 106, 0.2);
  color: #0b8f55;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.modal__ok svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.modal__done p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.modal__copy {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f8fc;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-all;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal__actions .btn {
  flex: 1;
}

/* 手机上做成底部抽屉，拇指更好点 */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal__panel {
    max-width: none;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .modal__body {
    padding: 30px 20px 26px;
  }

  .modal__title {
    font-size: 21px;
  }
}
