/* XStream 融合视频接入管理平台 · 统一页面样式 */

:root {
  --brand: #2B85FB;
  --brand-2: #1890FF;
  --brand-soft: #EAF2FF;
  --navy: #0A1A2F;
  --navy-2: #0F2440;
  --navy-3: #163457;
  --ink: #16243A;
  --body: #4C5D73;
  --muted: #7B8AA0;
  --line: #E2EAF5;
  --paper: #F5F8FC;
  --white: #FFFFFF;
  --ph: #9A6200;
  --ph-bg: #FFF9EC;
  --ph-line: #E5C489;
  --shadow: 0 18px 50px rgba(13, 35, 66, .10);
  --radius: 14px;
  --max: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
::selection { background: #CDE1FF; color: var(--navy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 26, 47, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; display: block; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .055em; }
.brand-sub {
  font-size: 11px; color: #93ACCB; letter-spacing: .13em;
  margin-left: 6px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .18);
}
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  position: relative; display: block; padding: 10px 13px; border-radius: 8px;
  color: #C3D3E8; font-size: 13.5px; white-space: nowrap; transition: .2s;
}
.site-nav a:hover { color: #fff; background: rgba(43, 133, 251, .14); }
.site-nav a.active { color: #fff; background: rgba(43, 133, 251, .20); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.header-version {
  font: 600 11px/1 Arial, sans-serif; letter-spacing: .1em; color: #8FB6F2;
  border: 1px solid rgba(96, 160, 255, .35); border-radius: 999px;
  padding: 7px 11px; white-space: nowrap;
}
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px;
  background: transparent; cursor: pointer; padding: 9px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 76% 8%, rgba(43, 133, 251, .26), transparent 68%),
    radial-gradient(700px 500px at 8% 92%, rgba(24, 144, 255, .13), transparent 70%),
    linear-gradient(160deg, #0A1A2F 0%, #0D213B 58%, #0A1A2F 100%);
  padding: 88px 0 82px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(120, 170, 240, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 240, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}
.hero::after {
  content: ""; position: absolute; right: -160px; top: -160px; width: 560px; height: 560px;
  border: 1px solid rgba(88, 156, 255, .16); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 90px rgba(88, 156, 255, .045), 0 0 0 190px rgba(88, 156, 255, .03);
}
.hero-inner {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.06fr .94fr; gap: 62px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11.5px/1 Arial, sans-serif; letter-spacing: .2em; color: #8FBBFF;
  border: 1px solid rgba(96, 160, 255, .32); background: rgba(43, 133, 251, .10);
  padding: 9px 14px; border-radius: 999px; text-transform: uppercase;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #63A8FF; box-shadow: 0 0 0 4px rgba(99, 168, 255, .18); }
.hero h1 {
  margin: 26px 0 20px; font-size: clamp(36px, 4.3vw, 60px);
  line-height: 1.18; letter-spacing: -.025em; font-weight: 700;
}
.hero h1 em { font-style: normal; color: #6BABFF; }
.hero-lead { font-size: 16.5px; line-height: 1.95; color: #B8CCE5; max-width: 560px; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 22px; border-radius: 9px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: .22s; white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(43, 133, 251, .28); }
.btn--primary:hover { background: #1B6FE0; color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .24); color: #E6EFFB; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: #6BABFF; color: #fff; background: rgba(43, 133, 251, .12); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--brand-soft); color: var(--navy); }
.btn--outline { border-color: #C9DAF1; background: #fff; color: var(--navy); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn .arrow { font-family: Arial, sans-serif; font-size: 16px; line-height: 1; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 30px; margin-top: 46px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-facts div { min-width: 120px; }
.hero-facts b { display: block; font: 700 20px/1.2 Arial, var(--font); color: #fff; letter-spacing: .01em; }
.hero-facts span { display: block; margin-top: 7px; font-size: 11.5px; color: #8FA9C9; letter-spacing: .03em; }

/* 信号流图 */
.flow-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 24px 22px 18px;
  background: linear-gradient(155deg, rgba(22, 52, 87, .92), rgba(9, 24, 43, .96));
  border: 1px solid rgba(96, 160, 255, .26);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .38);
}
.flow-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 170, 240, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 240, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.flow-head { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.flow-head span { font-size: 12px; color: #A9C6EA; letter-spacing: .08em; }
.flow-head b { font: 600 10.5px/1 Arial, sans-serif; letter-spacing: .16em; color: #6FA5EE; }
.flow-svg { position: relative; display: block; width: 100%; height: auto; }
.flow-svg text { font-family: var(--font); }
.flow-svg .node-bg { fill: rgba(255, 255, 255, .045); stroke: rgba(120, 174, 255, .24); }
.flow-svg .node-idx { fill: rgba(43, 133, 251, .9); }
.flow-svg .node-num { fill: #fff; font: 700 11px Arial, sans-serif; }
.flow-svg .node-label { fill: #F0F6FF; font-size: 14.5px; font-weight: 600; }
.flow-svg .node-sub { fill: #89A9CF; font-size: 10.5px; }
.flow-svg .link { stroke: #3F92FF; stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .75; animation: dash 7s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -88; } }
.flow-foot {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .09);
}
.flow-foot i {
  font-style: normal; font: 500 10.5px/1 Arial, var(--font); color: #A9C6EA;
  border: 1px solid rgba(120, 174, 255, .25); border-radius: 5px; padding: 5px 8px;
}

/* ============ 内页页头 ============ */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 62px 0 58px;
  background:
    radial-gradient(760px 340px at 82% -20%, rgba(43, 133, 251, .24), transparent 70%),
    linear-gradient(140deg, #0A1A2F, #102745);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -220px; width: 480px; height: 480px;
  border: 1px solid rgba(88, 156, 255, .14); border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(88, 156, 255, .035);
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { font-size: 12px; color: #8FA9C9; margin-bottom: 18px; }
.crumb a { color: #A9C6EA; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; color: #54708F; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
.page-hero p { margin-top: 16px; max-width: 760px; color: #B8CCE5; font-size: 15.5px; line-height: 1.9; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-hero .hero-meta i {
  font-style: normal; font-size: 11.5px; color: #B7D0EE;
  border: 1px solid rgba(120, 174, 255, .28); background: rgba(43, 133, 251, .09);
  border-radius: 999px; padding: 6px 13px;
}

/* ============ 通用区块 ============ */
.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section--dark {
  color: #fff;
  background:
    radial-gradient(700px 420px at 88% 6%, rgba(43, 133, 251, .18), transparent 70%),
    linear-gradient(150deg, #0A1A2F, #102541);
}
.section--tight { padding: 62px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-head .head-left { max-width: 760px; }
.section-index {
  display: block; font: 700 11px/1 Arial, sans-serif; letter-spacing: .22em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 15px;
}
.section--dark .section-index { color: #7FB2FF; }
.section-head h2 { font-size: clamp(26px, 2.9vw, 38px); line-height: 1.3; letter-spacing: -.018em; font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--body); font-size: 15px; line-height: 1.9; max-width: 700px; }
.section--dark .section-head p { color: #AEC4DF; }
.head-aside { flex-shrink: 0; font-size: 12px; color: var(--muted); line-height: 1.8; text-align: right; max-width: 280px; }
.section--dark .head-aside { color: #8FA9C9; }
.small-note { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 18px; }
.section--dark .small-note { color: #8FA9C9; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 6px 24px rgba(16, 42, 78, .035); transition: .25s;
}
.card:hover { transform: translateY(-4px); border-color: #BED6FF; box-shadow: var(--shadow); }
.card .num { font: 700 11.5px/1 Arial, sans-serif; letter-spacing: .12em; color: var(--brand); }
.card h3 { font-size: 18px; margin: 15px 0 10px; line-height: 1.4; }
.card p { font-size: 13.8px; line-height: 1.85; color: var(--body); }
.card a.inline-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; }

.card--dark {
  background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .12);
  box-shadow: none; color: #fff;
}
.card--dark:hover { border-color: rgba(107, 171, 255, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #B0C6E2; }
.card--dark .num { color: #7FB2FF; }

.src {
  display: inline-block; margin-top: 16px; font-size: 11px; line-height: 1.5;
  color: #4E76AC; background: #EEF4FD; border: 1px solid #D8E6FA;
  border-radius: 5px; padding: 3px 8px;
}
.section--dark .src { color: #A9C6EA; background: rgba(43, 133, 251, .13); border-color: rgba(120, 174, 255, .26); }
.src-inline { font-size: 11.5px; color: #6B86A8; }
.section--dark .src-inline { color: #8FA9C9; }

.placeholder {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1.5px dashed var(--ph-line); background: var(--ph-bg);
  border-radius: 12px; padding: 18px 20px;
}
.section--dark .placeholder { background: rgba(255, 214, 140, .07); border-color: rgba(229, 196, 137, .5); }
.ph-tag {
  flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ph);
  background: #FFF1D6; border: 1px solid var(--ph-line); border-radius: 5px; padding: 3px 8px;
}
.section--dark .ph-tag { color: #F4CE8B; background: rgba(255, 214, 140, .1); border-color: rgba(229, 196, 137, .5); }
.placeholder strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; color: #7A5A28; }
.section--dark .placeholder strong { color: #F1D7A6; }
.placeholder p { font-size: 13px; line-height: 1.8; color: #8A6C3E; }
.section--dark .placeholder p { color: #C7AF88; }
.placeholder-stack { display: grid; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #3B5372;
}
.section--dark .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #C7D9EF; }

/* 指标 */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
.metric b { display: block; font: 700 29px/1.2 Arial, var(--font); color: var(--navy); }
.metric span { display: block; margin-top: 10px; font-size: 13px; color: var(--body); line-height: 1.65; }
.metric small { display: block; margin-top: 12px; font-size: 11px; color: var(--muted); }

/* 界面截图 */
.browser {
  border: 1px solid #D9E4F2; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  background: #F0F4FA; border-bottom: 1px solid #DCE6F3;
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #C9D6E8; }
.browser-bar span { margin-left: 10px; font-size: 11.5px; color: #7B8AA0; }
.browser img { display: block; width: 100%; }
.figure-cap { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.section--dark .figure-cap { color: #8FA9C9; }

/* 网络结构图 */
.topology {
  border: 1px solid rgba(127, 178, 255, .22); border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24); overflow: hidden;
}
.topology-scroll { overflow-x: auto; }
.topology-scroll img { display: block; width: 100%; min-width: 900px; height: auto; }
.topology-hint { display: none; }
@media (max-width: 780px) {
  .topology-hint {
    display: block; padding: 9px 16px; font-size: 11.5px; color: #8FA9C9;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }
}

/* 站点导航卡片 */
.nav-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nav-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: .22s;
}
.nav-card:hover { transform: translateY(-3px); border-color: #BED6FF; box-shadow: var(--shadow); }
.nav-card .nc-num { font: 700 12px/1 Arial, sans-serif; color: var(--brand); letter-spacing: .1em; }
.nav-card .nc-body { flex: 1; }
.nav-card strong { display: block; font-size: 16px; color: var(--ink); }
.nav-card small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.nav-card .arrow { font: 400 18px/1 Arial, sans-serif; color: var(--brand); }

/* CTA 条 */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding: 40px 44px; border-radius: 18px; color: #fff;
  background:
    radial-gradient(500px 260px at 92% 0%, rgba(43, 133, 251, .4), transparent 70%),
    linear-gradient(120deg, #102A4B, #0A1A2F);
  border: 1px solid rgba(96, 160, 255, .24);
}
.cta-band h3 { font-size: 24px; line-height: 1.4; }
.cta-band p { margin-top: 8px; font-size: 13.5px; color: #AEC4DF; }
.cta-band .btn { flex-shrink: 0; }

/* ============ 核心能力 ============ */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 13px; transition: .2s;
}
.tab:hover { border-color: #AEC9F5; color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(43, 133, 251, .22); }
.cap-card { display: flex; flex-direction: column; }
.cap-card .cap-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cap-card .cap-idx { font: 700 22px/1 Arial, sans-serif; color: #D3E2F8; }
.cap-card h3 { margin-top: 12px; }
.cap-card .cap-tags { margin-top: auto; padding-top: 16px; }
.cap-group-label { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.feature-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-item .fi-num { font: 700 12px/1.6 Arial, sans-serif; color: var(--brand); letter-spacing: .08em; flex-shrink: 0; width: 26px; }
.feature-item strong { display: block; font-size: 15.5px; margin-bottom: 5px; }
.feature-item p { font-size: 13.2px; color: var(--body); line-height: 1.8; }
.section--dark .feature-item { border-color: rgba(255, 255, 255, .11); }
.section--dark .feature-item strong { color: #fff; }
.section--dark .feature-item p { color: #AEC4DF; }
.section--dark .feature-item .fi-num { color: #7FB2FF; }

/* ============ 场景 / 流程 ============ */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
}
.step { padding: 26px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .step-num { font: 700 11px/1 Arial, sans-serif; letter-spacing: .16em; color: var(--brand); }
.step h3 { font-size: 17px; margin: 14px 0 10px; }
.step p { font-size: 13.2px; color: var(--body); line-height: 1.8; }
.step .chips { margin-top: 16px; }
.step .chip { font-size: 11px; padding: 5px 9px; }
.scenario-card { display: flex; flex-direction: column; min-height: 210px; }
.scenario-card .sc-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font: 700 13px/1 Arial, sans-serif; margin-bottom: 18px;
}
.scenario-card h3 { margin: 0 0 10px; }
.scenario-card p { flex: 1; }
.scenario-card .sc-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }

/* ============ 系统组成 ============ */
.layers { display: grid; gap: 14px; }
.layer {
  display: grid; grid-template-columns: 150px 1fr;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
}
.layer-name {
  background: linear-gradient(160deg, #123356, #0A1A2F); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 24px 22px;
}
.layer-name b { font-size: 18px; letter-spacing: .04em; }
.layer-name span { font: 600 10px/1 Arial, sans-serif; letter-spacing: .16em; color: #7FB2FF; margin-bottom: 10px; }
.layer-body { padding: 24px 28px; }
.layer-body p { font-size: 13.8px; color: var(--body); line-height: 1.85; }
.layer-body .chips { margin-top: 16px; }
.device-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.device {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 14px; text-align: center; transition: .22s;
}
.device:hover { transform: translateY(-3px); border-color: #BED6FF; box-shadow: var(--shadow); }
.device img { width: 54px; height: 54px; object-fit: contain; }
.device strong { display: block; margin-top: 12px; font-size: 13.5px; }
.device span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 190px; color: var(--ink); font-weight: 600; background: #FAFCFF; }
.spec-table td { color: var(--body); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }

/* ============ 资料入口 ============ */
.res-row {
  display: grid; grid-template-columns: 1fr 110px 150px 96px; gap: 20px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; margin-bottom: 12px; transition: .22s;
}
.res-row:hover { border-color: #BED6FF; box-shadow: 0 10px 28px rgba(16, 42, 78, .06); }
.res-row h3 { font-size: 15.5px; line-height: 1.5; }
.res-row p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.badge {
  display: inline-block; font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .1em;
  color: var(--brand); background: var(--brand-soft); border: 1px solid #CFE1FF;
  border-radius: 5px; padding: 6px 9px;
}
.res-meta { font-size: 12px; color: var(--muted); line-height: 1.7; }
.res-row .btn { padding: 9px 15px; font-size: 12.5px; }
.res-note { margin-top: 22px; }

/* ============ 联系支持 ============ */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.company-card {
  background: linear-gradient(150deg, #102A4B, #0A1A2F); color: #fff;
  border: 1px solid rgba(96, 160, 255, .24); border-radius: 16px; padding: 34px;
}
.company-card .section-index { color: #7FB2FF; }
.company-card h3 { font-size: 24px; line-height: 1.45; margin: 8px 0 14px; }
.company-card p { font-size: 13.5px; color: #AEC4DF; line-height: 1.9; }
.company-card .src { margin-top: 22px; }
.field-grid { display: grid; gap: 12px; }
.field {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; background: #fff;
}
.field span { font-size: 13px; color: var(--ink); font-weight: 600; }
.field em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* 联系信息条目 */
.info-list { display: grid; gap: 12px; }
.info-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: #fff; transition: .22s;
}
.info-item:hover { border-color: #BED6FF; box-shadow: 0 10px 28px rgba(16, 42, 78, .06); }
.info-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center;
}
.info-icon svg { width: 18px; height: 18px; display: block; }
.info-label { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.info-value {
  display: inline-block; margin-top: 3px; font-size: 17px; font-weight: 600;
  color: var(--ink); word-break: break-all; line-height: 1.5;
}
a.info-value:hover { color: var(--brand); }
.info-src { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.info-note {
  border: 1px solid #D8E6FA; background: #F4F8FF; border-radius: 12px;
  padding: 16px 20px; font-size: 12.5px; line-height: 1.85; color: #4E6A90;
}
.info-note strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 3px; }

/* API 入口卡片 / 接口资料状态表 */
.api-entry {
  display: flex; align-items: center; gap: 22px;
  border: 1px solid #C9DEFF; border-radius: 16px; padding: 26px 28px; margin-bottom: 22px;
  background: linear-gradient(110deg, #F1F7FF, #FFFFFF 72%);
  color: var(--ink); transition: .22s;
}
.api-entry:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.api-entry-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(43, 133, 251, .25);
}
.api-entry-icon svg { width: 26px; height: 26px; display: block; }
.api-entry-body { flex: 1; min-width: 0; }
.api-entry-body h3 { font-size: 20px; margin: 6px 0 8px; }
.api-entry-body p { font-size: 13.5px; color: var(--body); line-height: 1.8; }
.api-entry .btn { flex-shrink: 0; }
.spec-table td.state { width: 110px; white-space: nowrap; }
@media (max-width: 720px) {
  .api-entry { flex-direction: column; align-items: flex-start; padding: 22px; gap: 16px; }
  .spec-table td.state { width: auto; }
}

/* ============ 上下页 / 页脚 ============ */
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 30px 0 60px; }
.pager a {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 20px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 180px;
  transition: .22s;
}
.pager a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.pager a small { font-size: 11px; color: var(--muted); }
.pager a strong { font-size: 14px; color: var(--ink); }
.pager a.next { margin-left: auto; text-align: right; align-items: flex-end; }
.pager .pager-empty { flex: 1; }

.site-footer { background: #081629; color: #9FB2CC; padding: 62px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 18px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand b { font-size: 18px; letter-spacing: .05em; }
.footer-intro { font-size: 12.8px; line-height: 1.9; color: #8FA6C4; max-width: 330px; }
.footer-col h4 { font-size: 13px; color: #fff; margin-bottom: 16px; letter-spacing: .04em; }
.footer-col a { display: block; font-size: 12.8px; color: #8FA6C4; padding: 5px 0; }
.footer-col a:hover { color: #7FB2FF; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 11.8px; color: #7189A8; line-height: 1.8;
}

/* ============ 动效 ============ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .flow-svg .link { animation: none; }
  * { scroll-behavior: auto !important; }
}
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .site-header { position: static; }
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .brand-sub { display: none; }
  .header-version { display: none; }
  .site-nav a { padding: 10px 9px; font-size: 12.8px; }
  .hero-inner { gap: 36px; }
  .device-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--last { display: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .flow-card { max-width: 560px; }
  .grid-3, .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .head-aside { text-align: left; }
  .feature-list { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .res-row { grid-template-columns: 1fr 90px 90px; }
  .res-row .res-meta { display: none; }
}
@media (max-width: 720px) {
  .wrap, .header-inner { padding-left: 20px; padding-right: 20px; }
  .header-inner { height: 62px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 62px; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px 20px 20px; background: rgba(8, 22, 41, .99);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 14px; }
  .site-nav a.active::after { left: 14px; right: auto; width: 22px; }
  .hero { padding: 60px 0 62px; }
  .hero-facts { gap: 22px; }
  .hero-facts div { min-width: 100px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 32px; }
  .grid-2, .grid-3, .grid-4, .metrics, .nav-cards, .device-grid, .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .layer { grid-template-columns: 1fr; }
  .layer-name { flex-direction: row; align-items: center; gap: 12px; padding: 16px 20px; }
  .layer-name span { margin: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .res-row { grid-template-columns: 1fr; gap: 12px; }
  .res-row .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col--last { display: block; }
  .pager { padding-bottom: 40px; }
  .pager a { min-width: 0; flex: 1; }
  .browser-bar span { font-size: 10px; }

  /* 窄屏下资料表格改为堆叠式，避免多列被压成竖排 */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100% !important; }
  .spec-table tr { padding: 15px 18px; border-bottom: 1px solid var(--line); }
  .spec-table tr:last-child { border-bottom: 0; }
  .spec-table th, .spec-table td { padding: 0; border: 0; background: transparent; text-align: left; }
  .spec-table th { font-size: 14px; margin-bottom: 8px; }
  .spec-table td.state { white-space: normal; margin-bottom: 7px; }
  .spec-table td:not(.state) { font-size: 12.8px; line-height: 1.75; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .btn { padding: 11px 17px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ API 接口说明页 ============ */
[hidden] { display: none !important; }
body[data-page="api"] code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .92em; background: #EEF4FD; border: 1px solid #DCE9FA;
  border-radius: 4px; padding: 1px 5px; color: #1E4E8C; word-break: break-all;
}
body[data-page="api"] section[id] { scroll-margin-top: 88px; }

.api-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
.api-stat { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px 14px; text-align: center; }
.api-stat b { display: block; font: 700 26px/1.2 Arial, var(--font); color: var(--navy); }
.api-stat span { display: block; margin-top: 8px; font-size: 12px; color: var(--body); line-height: 1.55; }
.api-stats--small { grid-template-columns: repeat(3, 1fr); }
.api-stats--small .api-stat b { font-size: 22px; }
.api-subhead { margin: 40px 0 18px; }
.api-subhead h3 { font-size: 19px; margin: 6px 0; }
.api-subhead p { font-size: 13.5px; color: var(--body); }
.api-dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.api-dtable th { background: #F3F7FD; color: var(--ink); font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.api-dtable td { padding: 10px 14px; border-bottom: 1px solid #EDF2F9; color: var(--body); vertical-align: top; }
.api-dtable tr:last-child td { border-bottom: 0; }

.api-toolbar {
  position: sticky; top: 72px; z-index: 60; margin-bottom: 18px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(13, 35, 66, .08);
}
.api-toolbar-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.5fr; gap: 12px; }
.api-search span, .api-select span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.api-search input, .api-select select {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 11px; font: inherit; font-size: 13px; color: var(--ink); background: #fff;
}
.api-search input:focus, .api-select select:focus { outline: 2px solid #BBD7FF; outline-offset: 1px; border-color: var(--brand); }
.api-toolbar-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.api-count { font-size: 12.5px; color: var(--body); }
.api-count b { color: var(--brand); font-size: 15px; }
.api-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.api-actions button {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  border-radius: 7px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.api-actions button:hover { border-color: var(--brand); color: var(--brand); }

.api-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.api-chips--nav { margin: 0 0 26px; }
.api-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--body);
}
.api-chip i { font-style: normal; font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; }
.api-chip:hover, .api-chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.api-chip-sm {
  display: inline-block; font-size: 11.5px; padding: 3px 8px; border-radius: 5px;
  background: #F1F6FD; border: 1px solid #DDE9F9; color: #3C5C85; margin: 0 5px 5px 0;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}
.api-chip-sm.st { background: #E9F7EF; border-color: #C8E8D5; color: #246B45; }

.api-group { margin-bottom: 34px; scroll-margin-top: 150px; }
.api-group-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 12px; }
.api-group-no { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 13px Arial, sans-serif; }
.api-group-head h3 { font-size: 19px; }
.api-group-count { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.api-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.api-item[open] { border-color: #C9DEFF; box-shadow: 0 6px 18px rgba(43, 133, 251, .08); }
.api-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 15px; cursor: pointer; list-style: none; font-size: 13.5px; }
.api-sum::-webkit-details-marker { display: none; }
.api-sum:hover { background: #F8FBFF; }
.api-no { font: 600 11px Arial, sans-serif; color: var(--muted); min-width: 34px; }
.api-name { font-weight: 600; color: var(--ink); min-width: 150px; }
.api-m { font: 700 10.5px Arial, sans-serif; letter-spacing: .05em; color: #fff; border-radius: 4px; padding: 3px 7px; }
.m-get { background: #1B8A5A; } .m-post { background: #2B85FB; } .m-put { background: #B8730B; }
.m-delete { background: #D0453B; } .m-patch { background: #7A5AC8; } .m-any { background: #5A6B84; }
code.api-path {
  font-size: 12px; flex: 0 1 auto; max-width: 100%; word-break: break-all;
  background: transparent; border: 0; padding: 0; color: #1E4E8C;
}
.api-sum .api-flag { margin-left: auto; }
.api-sum .api-chev { margin-left: 0; }
.api-flag { font-size: 11px; font-weight: 600; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.api-flag.ok { color: #1C7A4C; background: #E7F7EE; border: 1px solid #BFE8D0; }
.api-flag.warn { color: #8A6200; background: #FFF6DF; border: 1px solid #EBD49A; }
.api-flag.diff { color: #A33B2A; background: #FFF0EC; border: 1px solid #F2C8BE; }
.api-flag.code { color: #245EA8; background: #EAF3FF; border: 1px solid #C9DEFF; }
.api-chev { margin-left: auto; color: var(--muted); transition: transform .2s; font-size: 15px; }
details[open] > summary .api-chev { transform: rotate(180deg); }

.api-detail { border-top: 1px solid var(--line); padding: 18px 20px 22px; background: #FCFDFF; }
.api-meta-row { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.api-block { margin-bottom: 18px; }
.api-block:last-child { margin-bottom: 0; }
.api-block h5 { font-size: 12px; letter-spacing: .06em; color: var(--brand); margin-bottom: 8px; font-weight: 700; }
.api-block p { font-size: 13px; color: var(--body); line-height: 1.8; margin-bottom: 6px; }
.api-block .src { margin-top: 8px; }
.api-purp { color: var(--ink) !important; }
.api-unclear-text { color: #8A6C3E; font-size: 12.5px; }
.api-label { font-size: 11.5px; color: var(--muted); margin: 10px 0 6px !important; }
.api-tip { font-size: 12px !important; color: var(--muted) !important; }
.api-ptable { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.api-ptable th { background: #F3F7FD; color: var(--ink); font-weight: 600; text-align: left; padding: 8px 11px; border-bottom: 1px solid var(--line); font-size: 12px; }
.api-ptable td { padding: 8px 11px; border-bottom: 1px solid #EDF2F9; color: var(--body); vertical-align: top; }
.api-ptable tr:last-child td { border-bottom: 0; }
.api-json, .api-raw pre {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 11.5px; line-height: 1.65;
  background: #0F2440; color: #C9E0FF; border-radius: 8px; padding: 14px 16px;
  overflow-x: auto; white-space: pre; margin: 0 0 8px;
}
.api-raw { margin-top: 10px; }
.api-raw summary { cursor: pointer; font-size: 12px; color: var(--brand); }
.api-raw pre { background: #F4F8FD; color: #39516E; border: 1px solid var(--line); margin-top: 8px; white-space: pre-wrap; word-break: break-word; }

.api-notice { display: flex; gap: 13px; align-items: flex-start; border: 1px solid #C9DEFF; background: #F1F7FF; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.api-notice p { font-size: 13px; line-height: 1.8; color: #3C5C85; }
.api-module { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.api-module-sum { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; background: #F8FBFF; }
.api-module-sum::-webkit-details-marker { display: none; }
.api-module-sum:hover { background: #F1F7FF; }
.api-module-name { font-weight: 600; font-size: 14px; }
.api-module-body { padding: 8px 12px 12px; }
.api-code-row { border: 1px solid #E8EFF8; border-radius: 9px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.api-code-row:last-child { margin-bottom: 0; }
.api-code-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.api-code-top code.api-path { flex: 0 1 auto; }
.api-code-top .api-flag { margin-left: auto; }
.api-code-top .api-chev { margin-left: 0; }
.api-code-fields { display: grid; gap: 5px; }
.api-code-fields > div { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--body); line-height: 1.7; }
.api-k { flex: 0 0 68px; font-size: 11.5px; color: var(--muted); }
.api-code-purpose { color: var(--ink); }

@media (max-width: 1100px) {
  .api-toolbar-row { grid-template-columns: 1fr 1fr; }
  .api-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .api-toolbar { position: static; }
}
@media (max-width: 720px) {
  .api-toolbar-row { grid-template-columns: 1fr; }
  .api-stats, .api-stats--small { grid-template-columns: repeat(2, 1fr); }
  .api-sum { gap: 7px; padding: 11px 12px; }
  .api-name { min-width: 0; flex: 1 1 100%; }
  code.api-path { flex: 1 1 100%; }
  .api-detail { padding: 14px; }
  .api-ptable, .api-ptable tbody, .api-ptable tr, .api-ptable td { display: block; width: 100% !important; }
  .api-ptable thead { display: none; }
  .api-ptable tr { padding: 9px 11px; border-bottom: 1px solid var(--line); }
  .api-ptable tr:last-child { border-bottom: 0; }
  .api-ptable td { border: 0; padding: 2px 0; font-size: 12px; }
  .api-ptable td::before { content: attr(data-label) "："; color: var(--muted); display: inline-block; width: 44px; }
  .api-dtable, .api-dtable tbody, .api-dtable tr, .api-dtable td { display: block; width: 100% !important; }
  .api-dtable thead { display: none; }
  .api-dtable tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .api-dtable tr:last-child { border-bottom: 0; }
  .api-dtable td { border: 0; padding: 2px 0; }
  .api-code-fields > div { flex-direction: column; gap: 2px; }
  .api-k { flex: none; }
}
@media (max-width: 420px) {
  .api-stats, .api-stats--small { grid-template-columns: 1fr 1fr; }
}
@media print {
  .api-toolbar, .api-actions, .api-chips--nav { display: none !important; }
  .api-item, .api-module, .api-code-row { break-inside: avoid; }
}
