/* ============================================================
   官网样式 — fdmobile.top
   事实源:deploy/www/DESIGN.md(改样式先改规范)
   主色 #1890FF 与 client-web variables.scss 保持一致
   ============================================================ */

/* ---------- 2.1 色彩 / 2.2 字体 / 2.3 间距 Token ---------- */
:root {
  --c-primary: #1890ff;
  --c-primary-dark: #096dd9;
  --c-primary-light: #40a9ff;
  --c-primary-soft: rgba(24, 144, 255, 0.08);

  --c-navy-1: #0a1428;
  --c-navy-2: #0e1e42;
  --c-glow-cyan: #36cfc9;

  --grad-accent-a: #4b3bf5;
  --grad-accent-b: #c561f6;
  --c-gold: #faad14;

  --bg-light: #f5f8fc;
  --bg-white: #ffffff;

  --t-1: #1f2a44;
  --t-2: #5a6b8c;
  --t-light-1: #ffffff;
  --t-light-2: #9fb3d1;

  --c-success: #52c41a;
  --c-warning: #fa8c16;
  --c-danger: #f5222d;

  --border: rgba(15, 40, 90, 0.08);
  --border-strong: rgba(15, 40, 90, 0.14);
  --shadow: 0 8px 24px rgba(15, 40, 90, 0.08);
  --shadow-hover: 0 12px 32px rgba(24, 144, 255, 0.16);

  --r-btn: 10px;
  --r-card: 16px;
  --r-sm: 8px;

  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Courier New", monospace;

  --nav-h: 72px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--t-1);
  background: var(--bg-white);
  overflow-x: hidden;
}
a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--c-primary-dark);
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- 基础排版 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-glow-cyan));
  border-radius: 2px;
}

.sec-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head.center .eyebrow::before {
  display: none;
}
.sec-head h2 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  margin: 14px 0 12px;
  color: var(--t-1);
}
.sec-head p {
  font-size: 17px;
  color: var(--t-2);
}

.section {
  padding: 104px 0;
}
.section-light {
  background: var(--bg-light);
}
.section-white {
  background: var(--bg-white);
}

/* 渐变文字(关键词高亮) */
.grad {
  background: linear-gradient(92deg, var(--c-primary) 10%, var(--c-glow-cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 144, 255, 0.35);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 144, 255, 0.4);
}
.btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- 公告条 ---------- */
.announce {
  background: linear-gradient(90deg, #0d1f4d, #12306e);
  color: #cfe1ff;
  font-size: 13.5px;
  text-align: center;
  padding: 8px 16px;
}
.announce a {
  color: #fff;
  font-weight: 600;
  margin-left: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}
.announce a:hover {
  border-bottom-style: solid;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
/* 首屏之上:透明底白字(hero 深色延伸) */
.nav.on-hero {
  background: transparent;
  color: #fff;
}
.nav.on-hero .nav-links a {
  color: var(--t-light-2);
}
.nav.on-hero .nav-links a:hover,
.nav.on-hero .nav-links a.active {
  color: #fff;
}
.nav.on-hero .brand-name {
  color: #fff;
}
/* 滚动后:白底毛玻璃深字 */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(15, 40, 90, 0.06);
}
.nav.scrolled .nav-links a {
  color: var(--t-2);
}
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
  color: var(--c-primary);
}
.nav.scrolled .brand-name {
  color: var(--t-1);
}
.nav.scrolled .nav-toggle {
  color: var(--t-1);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--grad-accent-a) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(24, 144, 255, 0.3);
}
.brand-mark svg {
  width: 20px;
  height: 20px;
}
.brand-logo {
  height: 34px;
  width: auto;
  border-radius: 6px;
}
.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--t-1);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--t-2);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-glow-cyan));
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-actions .btn {
  padding: 9px 18px;
  font-size: 14px;
}
.nav.on-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--t-1);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* 移动端抽屉 */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 20, 40, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer.open {
  opacity: 1;
}
.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 82vw);
  height: 100%;
  background: #fff;
  padding: 88px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.nav-drawer.open .nav-drawer-panel {
  transform: translateX(0);
}
.nav-drawer-panel a {
  display: block;
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--t-1);
  border-bottom: 1px solid var(--border);
}
.nav-drawer-panel .btn {
  width: 100%;
  margin-top: 18px;
}

/* ---------- Hero(深色首屏) ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--c-navy-1) 0%, var(--c-navy-2) 68%, #10265c 100%);
  color: #fff;
  overflow: hidden;
}
/* 网格纹理 + 光斑 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 340px at 18% 12%, rgba(24, 144, 255, 0.28), transparent 65%),
    radial-gradient(520px 300px at 88% 78%, rgba(54, 207, 201, 0.14), transparent 65%),
    radial-gradient(420px 260px at 70% 8%, rgba(75, 59, 245, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 110px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #cfe1ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-glow-cyan);
  box-shadow: 0 0 8px var(--c-glow-cyan);
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  margin: 22px 0 20px;
}
.hero-sub {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--t-light-2);
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 26px;
  font-size: 13.5px;
  color: #7d92b8;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-trust span + span::before {
  content: "·";
  margin-right: 10px;
}

/* 控制台示意图形 */
.hero-visual {
  position: relative;
}
.console {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(4, 12, 32, 0.55);
  overflow: hidden;
  animation: mockFloat 7s ease-in-out infinite;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.console-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.console-url {
  margin-left: 10px;
  font-size: 12px;
  color: #7d92b8;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 12px;
}
.console-body {
  padding: 18px 20px 20px;
}
.console-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.c-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
}
.c-stat-label {
  display: block;
  font-size: 11.5px;
  color: #7d92b8;
}
.c-stat-val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.c-stat-trend {
  font-size: 11.5px;
  font-weight: 600;
}
.c-stat-trend.up { color: var(--c-success); }
.c-stat-trend.wait { color: var(--c-gold); }
.console-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  margin: 16px 0 14px;
  padding: 0 4px;
}
.console-chart .bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  height: var(--h);
  background: linear-gradient(180deg, rgba(24, 144, 255, 0.85), rgba(24, 144, 255, 0.25));
}
.console-chart .bar:nth-child(2n) {
  background: linear-gradient(180deg, rgba(54, 207, 201, 0.75), rgba(54, 207, 201, 0.2));
}
.console-chart .bar.hi {
  background: linear-gradient(180deg, rgba(197, 97, 246, 0.85), rgba(197, 97, 246, 0.25));
}
.console-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #c6d6ef;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 8px 12px;
}
.c-row .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.c-pill.ok {
  color: #95de64;
  background: rgba(82, 196, 26, 0.14);
}
.c-pill.ing {
  color: #ffc53d;
  background: rgba(250, 173, 20, 0.13);
}

/* 浮动统计芯片 */
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(13, 26, 52, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 14px 34px rgba(4, 12, 32, 0.5);
}
.chip .num {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(92deg, #fff, #9fd4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chip .lbl {
  font-size: 12px;
  color: var(--t-light-2);
  line-height: 1.45;
}
.chip-1 { top: -20px; right: -14px; animation: chipFloat 6s ease-in-out infinite; }
.chip-2 { bottom: 66px; left: -30px; animation: chipFloat 6.6s ease-in-out 0.8s infinite; }
.chip-3 { bottom: -22px; right: 34px; animation: chipFloat 7.2s ease-in-out 1.6s infinite; }

@keyframes mockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 三端入口 ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portal-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(24, 144, 255, 0.35);
}
.portal-card .tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-tile svg {
  width: 24px;
  height: 24px;
}
.it-blue { background: linear-gradient(135deg, #1890ff, #4b3bf5); }
.it-cyan { background: linear-gradient(135deg, #36cfc9, #1890ff); }
.it-purple { background: linear-gradient(135deg, #c561f6, #4b3bf5); }
.it-gold { background: linear-gradient(135deg, #faad14, #fa8c16); }
.it-green { background: linear-gradient(135deg, #52c41a, #36cfc9); }
.portal-card h3,
.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--t-1);
  margin-bottom: 10px;
}
.portal-card p,
.feature-card p {
  font-size: 14.5px;
  color: var(--t-2);
  flex: 1;
}
.portal-card .go {
  margin-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portal-card:hover .go {
  gap: 10px;
}
.portal-card .go,
.portal-card .go svg {
  transition: all 0.25s ease;
}

/* ---------- 产品与服务 ---------- */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(24, 144, 255, 0.35);
}
.feature-card h3 {
  font-size: 17.5px;
}
.feature-card p {
  font-size: 13.5px;
  line-height: 1.75;
}
.feature-card .en {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9aa8c4;
  display: block;
  margin-bottom: 12px;
}
.chips-row {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chips-row .chips-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--t-1);
  margin-right: 8px;
}
.chips-row .chip-item {
  font-size: 13px;
  color: var(--t-2);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  transition: all 0.2s ease;
}
.chips-row .chip-item:hover {
  color: var(--c-primary);
  border-color: rgba(24, 144, 255, 0.4);
  background: var(--c-primary-soft);
}

/* ---------- 供应链能力(深色带) ---------- */
.section-dark {
  background: linear-gradient(155deg, var(--c-navy-1), #0d1c40 70%, #10265c);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 300px at 85% 10%, rgba(24, 144, 255, 0.16), transparent 65%),
    radial-gradient(460px 260px at 8% 92%, rgba(54, 207, 201, 0.1), transparent 65%);
  pointer-events: none;
}
.section-dark .sec-head h2 {
  color: #fff;
}
.section-dark .sec-head p {
  color: var(--t-light-2);
}
.cards-dark {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.dark-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  padding: 28px 26px;
  transition: all 0.25s ease;
}
.dark-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(24, 144, 255, 0.45);
  transform: translateY(-3px);
}
.dark-card .icon-tile {
  margin-bottom: 16px;
}
.dark-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.dark-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--t-light-2);
}

/* ---------- 开放平台 ---------- */
.open-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
/* 防止长代码行撑破 grid 轨道(grid item 默认 min-width:auto) */
.open-grid > *,
.about-grid > * {
  min-width: 0;
}
.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 30px;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(24, 144, 255, 0.35), rgba(54, 207, 201, 0.18));
}
.step:last-child::before {
  display: none;
}
.step-num {
  counter-increment: step;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--grad-accent-a));
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.35);
}
.step-num::before {
  content: counter(step);
}
.step h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--t-1);
  line-height: 36px;
}
.step p {
  font-size: 13.5px;
  color: var(--t-2);
  margin-top: 4px;
}

.open-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.api-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.api-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--t-1);
  transition: all 0.2s ease;
}
.api-group:hover {
  border-color: rgba(24, 144, 255, 0.4);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.1);
}
.api-group svg {
  width: 18px;
  height: 18px;
  color: var(--c-primary);
  flex-shrink: 0;
}
.api-group .n {
  margin-left: auto;
  font-size: 11px;
  color: #9aa8c4;
  font-weight: 600;
}

/* 代码块 */
.code {
  background: var(--c-navy-1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(10, 25, 60, 0.18);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #7d92b8;
}
.code-head .dots {
  display: flex;
  gap: 6px;
}
.code-head .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}
.code-lang {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9fd4ff;
  background: rgba(24, 144, 255, 0.12);
  padding: 2px 9px;
  border-radius: 999px;
}
.code pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: #c6d6ef;
}
.code pre b {
  font-weight: 400;
}
.tk-m { color: #c561f6; font-weight: 600; }   /* 方法/命令 */
.tk-u { color: #69b1ff; }                      /* URL/路径 */
.tk-k { color: #9fd4ff; }                      /* JSON 键 */
.tk-s { color: #95de64; }                      /* 字符串值 */
.tk-c { color: #5c7099; }                      /* 注释 */
.tk-p { color: #ffc53d; }                      /* 特殊标记 */

.open-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.open-cta .hint {
  font-size: 13.5px;
  color: var(--t-2);
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.about-copy p {
  font-size: 16px;
  line-height: 2;
  color: var(--t-2);
  margin-bottom: 18px;
}
.about-copy p strong {
  color: var(--t-1);
}
.values {
  display: grid;
  gap: 14px;
}
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.2s ease;
}
.value-item:hover {
  border-color: rgba(24, 144, 255, 0.35);
  box-shadow: var(--shadow-hover);
}
.value-item .icon-tile {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 11px;
}
.value-item .icon-tile svg {
  width: 21px;
  height: 21px;
}
.value-item h4 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--t-1);
}
.value-item p {
  font-size: 13px;
  color: var(--t-2);
  margin-top: 3px;
}

/* ---------- 联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 30px;
  text-align: center;
  transition: all 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(24, 144, 255, 0.35);
}
.contact-card h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--t-1);
  margin: 16px 0 8px;
}
.contact-card p {
  font-size: 13.5px;
  color: var(--t-2);
}
.qr-box {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-box svg {
  width: 44px;
  height: 44px;
  color: #b9c6dd;
}
.contact-card .icon-tile {
  margin: 0 auto 4px;
}

/* ---------- 转化收口 ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(140deg, var(--c-navy-1), #0d1f4d 60%, #13346f);
  color: #fff;
  text-align: center;
  padding: 96px 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 300px at 50% 0%, rgba(24, 144, 255, 0.22), transparent 70%),
    radial-gradient(420px 240px at 12% 100%, rgba(75, 59, 245, 0.16), transparent 70%),
    radial-gradient(420px 240px at 88% 100%, rgba(54, 207, 201, 0.12), transparent 70%);
}
.cta-band .container {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 16.5px;
  color: var(--t-light-2);
  max-width: 520px;
  margin: 0 auto 34px;
}
.cta-band .hero-cta {
  justify-content: center;
  margin-top: 0;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #070f21;
  color: var(--t-light-2);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand .brand-name {
  color: #fff;
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.9;
  max-width: 300px;
}
.footer h5 {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--t-light-2);
  padding: 5px 0;
}
.footer-col a:hover {
  color: #fff;
}
.footer.footer-slim {
  padding-top: 26px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #63769c;
}
.footer-bottom a {
  color: #8ba3c9;
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-extra {
  width: 100%;
}

/* ---------- 滚动动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--d, 0s);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 锚点定位偏移(粘性导航高度) ---------- */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 44px;
  }
  .cards-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-drawer {
    display: block;
    pointer-events: none;
  }
  .nav-drawer.open {
    pointer-events: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 88px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-visual {
    max-width: 560px;
  }
  .chip-2 {
    left: -8px;
  }
  .cards-3,
  .cards-dark,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .open-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
    grid-template-columns: 1fr;
  }
  }
}
@media (max-width: 768px) {
  /* 移动端:按钮组只留汉堡(入口在抽屉里有副本),避免导航横向溢出 */
  .nav-actions .btn {
    display: none;
  }
  .section {
    padding: 68px 0;
  }
  .container {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-sub {
    font-size: 15.5px;
  }
  .hero-badge {
    font-size: 12px;
  }
  .btn-lg {
    padding: 12px 24px;
    font-size: 15px;
  }
  .sec-head h2 {
    font-size: 25px;
  }
  .sec-head {
    margin-bottom: 38px;
  }
  .console-stats {
    gap: 8px;
  }
  .c-stat-val {
    font-size: 17px;
  }
  .chip {
    padding: 8px 13px;
  }
  .chip .num {
    font-size: 19px;
  }
  .chip-1 {
    top: -16px;
    right: -4px;
  }
  .chip-3 {
    right: 10px;
  }
  .cards-3,
  .cards-dark,
  .cards-4,
  .contact-grid,
  .api-groups {
    grid-template-columns: 1fr;
  }
  .step h4 {
    line-height: 1.5;
    padding-top: 5px;
  }
  .step p {
    margin-top: 6px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .announce {
    font-size: 12.5px;
  }
}
@media (max-width: 480px) {
  .hero-cta .btn {
    width: 100%;
  }
  .hero-trust {
    font-size: 12.5px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .chips-row {
    padding: 18px 20px;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .console,
  .chip {
    animation: none !important;
  }
  .btn,
  .portal-card,
  .feature-card,
  .dark-card,
  .contact-card,
  .value-item {
    transition: none;
  }
}
