/* ============================================================
   TMS 智慧运输管理系统 - 官网样式
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --text: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(30, 41, 59, .08);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, .15);
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.logo span { white-space: nowrap; }
.logo-img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  flex: none;
}
.logo-badge {
  height: 30px;
  width: auto;
  margin-left: 4px;
  border-radius: 4px;
  flex: none;
}
.logo span b { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-2);
  white-space: nowrap;
  transition: .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a.active { color: var(--primary); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn {
  padding: 7px 16px;
  font-size: 13.5px;
  border-radius: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: .2s;
}
.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 10px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--text); border-radius: 2px; transition: .3s;
}

/* ---------- Hero（居中大标题式） ---------- */
.hero {
  position: relative;
  padding: 120px 0 130px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}
.hero-glow.g1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(167, 139, 250, .5), transparent 70%);
  top: -180px; right: -60px;
  animation: float1 9s ease-in-out infinite;
}
.hero-glow.g2 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(96, 165, 250, .45), transparent 70%);
  bottom: -260px; left: -140px;
  animation: float2 11s ease-in-out infinite;
}
.hero-glow.g3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(244, 114, 182, .28), transparent 70%);
  top: 30%; left: 58%;
  animation: float1 13s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 24px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(36px, -22px); }
}
.hero-center {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  animation: heroIn .8s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 20px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(37, 99, 235, .25);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 30px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, .12);
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
  margin-bottom: 26px;
}
.hero-title em {
  font-style: normal;
  padding: 0 6px;
  background: linear-gradient(92deg, #2563eb 5%, #7c3aed 45%, #db2777 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-2);
  margin-bottom: 42px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-white {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(30, 41, 59, .10);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(30, 41, 59, .16);
  border-color: transparent;
}

/* ---------- 核心优势（深色卡片带） ---------- */
.advantages {
  position: relative;
  padding: 84px 0;
  background:
    radial-gradient(ellipse 55% 60% at 85% 0%, rgba(59, 130, 246, .16), transparent),
    radial-gradient(ellipse 45% 55% at 8% 100%, rgba(139, 92, 246, .12), transparent),
    linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: #fff;
}
.adv-head { text-align: center; margin-bottom: 52px; }
.adv-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: 1px; }
.adv-head p { color: #8fa3bf; margin-top: 10px; font-size: 15.5px; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.adv-card {
  background: linear-gradient(165deg, rgba(30, 41, 59, .92), rgba(17, 24, 39, .92));
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 16px;
  padding: 30px 24px;
  transition: .28s;
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .7), transparent);
  opacity: 0;
  transition: .28s;
}
.adv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, .45);
  box-shadow: 0 16px 38px rgba(2, 6, 23, .55);
}
.adv-card:hover::before { opacity: 1; }
.adv-num {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #60a5fa 10%, #a78bfa 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.adv-card h3 { font-size: 17px; margin-bottom: 10px; color: #f1f5f9; }
.adv-card p { font-size: 13.5px; line-height: 1.8; color: #8fa3bf; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--text-2); max-width: 640px; margin: 0 auto; }

/* 功能卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: .25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-ico {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--text-2); font-size: 13.5px; }

/* 业务逻辑图 */
.logic-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 20px;
  overflow-x: auto;
}
.logic-wrap svg { min-width: 920px; display: block; margin: 0 auto; max-width: 100%; height: auto; }
.logic-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-2);
}
.logic-legend span { display: inline-flex; align-items: center; gap: 8px; }
.logic-legend i {
  width: 14px; height: 14px;
  border-radius: 4px;
  display: inline-block;
}

/* 干线运输介绍 */
.trunk-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.trunk-tags { display: flex; gap: 10px; margin-bottom: 22px; }
.trunk-tags span {
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.trunk-tags .tt-domestic { background: var(--primary-light); color: var(--primary-dark); }
.trunk-tags .tt-global { background: #ede9fe; color: #6d28d9; }
.trunk-points li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.trunk-points li:last-child { border-bottom: none; }
.trunk-ico {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.trunk-points b { display: block; font-size: 15px; margin-bottom: 2px; }
.trunk-points p { font-size: 13.5px; color: var(--text-2); }

/* 模拟系统弹窗 */
.mock-dialog {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 12px;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 13.5px;
}
.mock-head small { font-weight: 400; color: var(--text-3); }
.mock-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 14px;
  padding: 12px 18px;
  background: var(--bg-soft);
  font-size: 11.5px;
  color: var(--text-3);
}
.mock-meta b { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
.mock-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-2);
}
.mock-tools .spacer { margin-left: auto; display: flex; gap: 8px; }
.mbtn {
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.mbtn-blue { background: var(--primary-light); color: var(--primary-dark); }
.mbtn-green { background: #dcfce7; color: #15803d; }
.mbtn-plain { background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); }
.bdg { padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bdg-blue { background: #dbeafe; color: #1d4ed8; }
.bdg-green { background: #dcfce7; color: #15803d; }
.bdg-gray { background: #f1f5f9; color: #64748b; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mock-table th, .mock-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.mock-table th { background: var(--bg-soft); color: var(--text-2); font-weight: 600; }
.mock-table tr:last-child td { border-bottom: none; }
.mock-table .st-done { color: #15803d; font-weight: 600; }
.mock-table .st-cur { color: var(--primary-dark); font-weight: 600; }

/* ---------- 为什么选择我们（深色数据卡） ---------- */
.whyus {
  position: relative;
  padding: 80px 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 10%, rgba(168, 85, 247, .14), transparent),
    radial-gradient(ellipse 45% 60% at 5% 90%, rgba(59, 130, 246, .12), transparent),
    linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: #fff;
  text-align: center;
}
.why-head { margin-bottom: 48px; }
.why-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: 1px; }
.why-head p { color: #8fa3bf; margin-top: 10px; font-size: 15px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: linear-gradient(170deg, rgba(30, 41, 59, .92), rgba(15, 23, 42, .92));
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 16px;
  padding: 38px 22px 32px;
  transition: .28s;
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, .45);
  box-shadow: 0 16px 38px rgba(2, 6, 23, .55);
}
.why-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #a78bfa 15%, #f472b6 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-card h3 { font-size: 16.5px; color: #f1f5f9; margin-bottom: 8px; }
.why-card span { font-size: 13px; color: #8fa3bf; }

/* 五端协同 */
.term-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.term-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  transition: .25s;
  position: relative;
  overflow: hidden;
}
.term-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.term-card.shift { grid-column: 2 / span 2; }
.term-ico {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.term-card h3 { font-size: 18px; margin-bottom: 4px; }
.term-card .term-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.term-card ul { margin-bottom: 4px; }
.term-card ul li {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 4px 0;
}
.term-card ul li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.term-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}
.term-link:hover { text-decoration: underline; }
.term-link.muted { color: var(--text-3); font-weight: 500; }

/* CTA */
.cta {
  margin: 0 0 0;
  padding: 72px 0;
  background: linear-gradient(120deg, var(--primary-dark), var(--accent));
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 32px; }
.cta .btn-white {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
}
.cta .btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-grid .logo { color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: 13.5px; color: #94a3b8; max-width: 300px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 13.5px; color: #94a3b8; transition: .2s; }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}

/* ============================================================
   文档页
   ============================================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 0;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.docs-sidebar .side-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-3);
  padding: 6px 22px;
}
.docs-sidebar .side-l1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: .15s;
  user-select: none;
}
.docs-sidebar .side-l1:hover { background: rgba(37, 99, 235, .06); color: var(--primary); }
.docs-sidebar .side-l1.open { color: var(--primary); border-left-color: var(--primary); background: rgba(37, 99, 235, .08); }
.docs-sidebar .side-l1 .arrow {
  font-size: 10px;
  font-style: normal;
  color: var(--text-3);
  transition: transform .2s;
}
.docs-sidebar .side-l1.open .arrow { transform: rotate(90deg); color: var(--primary); }
.docs-sidebar .submenu { display: none; padding-bottom: 10px; }
.docs-sidebar .submenu.open { display: block; }
.docs-sidebar a.sub {
  padding-left: 42px;
  font-size: 13.5px;
  position: relative;
}
.docs-sidebar a.sub::before {
  content: "";
  position: absolute;
  left: 26px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}
.docs-sidebar a {
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  color: var(--text-2);
  border-left: 3px solid transparent;
  transition: .15s;
}
.docs-sidebar a:hover { color: var(--primary); background: rgba(37, 99, 235, .06); }
.docs-sidebar a.active {
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
  background: rgba(37, 99, 235, .08);
}

.docs-main { min-width: 0; }
.docs-hero {
  background: linear-gradient(180deg, #f0f7ff, #ffffff);
  padding: 44px 0 8px;
  text-align: center;
}
.docs-hero h1 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.docs-hero p { color: var(--text-2); font-size: 14.5px; margin: 0; }

.doc-section {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.doc-section.show {
  display: block;
  animation: docIn .35s ease;
}
@keyframes docIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.doc-tag {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.doc-section h2 {
  font-size: 24px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-section h3 { font-size: 17px; margin: 24px 0 10px; }
.doc-section p, .doc-section li { color: var(--text-2); font-size: 14.5px; }
.doc-section ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.doc-section ol { padding-left: 22px; margin: 8px 0; }
.doc-section li { margin-bottom: 6px; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.doc-table th, .doc-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.doc-table th { background: var(--bg-soft); font-weight: 600; }
.doc-table td code, .doc-inline-code {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.callout {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-2);
}
.callout.warn { border-left-color: #f59e0b; background: #fffbeb; }
.callout b { color: var(--text); }

.status-tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-right: 6px;
}
.st-1 { background: #dcfce7; color: #15803d; }
.st-2 { background: #f1f5f9; color: #64748b; }
.st-3 { background: #dbeafe; color: #1d4ed8; }
.st-4 { background: #ede9fe; color: #6d28d9; }

.doc-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.doc-pager a {
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
  transition: .2s;
}
.doc-pager a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 响应式（与系统约定一致：992px 断点） ---------- */
@media (max-width: 992px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
  .header-inner { gap: 12px; }
  .logo-badge { height: 26px; }

  .hero { padding: 72px 0 80px; }
  .hero-lead br { display: none; }

  .advantages { padding: 60px 0; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .adv-head { margin-bottom: 36px; }
  .whyus { padding: 60px 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .term-grid { grid-template-columns: 1fr 1fr; }
  .term-card, .term-card.shift { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .trunk-layout { grid-template-columns: 1fr; gap: 36px; }
  .logic-hint { display: block; }
  .mock-meta { grid-template-columns: 1fr 1fr; }

  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    max-height: none;
  }
  .doc-section { padding: 26px 20px; }
}

@media (max-width: 560px) {
  .logo { font-size: 17px; gap: 8px; }
  .logo-badge { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 6px 11px; font-size: 12.5px; }
  .nav-toggle { width: 34px; }
  .nav-toggle span { width: 19px; margin: 4px auto; }

  .adv-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .term-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- 右下角联系浮窗 ---------- */
.contact-wrap {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.contact-fab {
  width: 56px; height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(29, 78, 216, .42);
  transition: transform .25s, box-shadow .25s;
}
.contact-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(29, 78, 216, .5);
}
.contact-fab.show { background: linear-gradient(135deg, #ef4444, #dc2626); }

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 40, 90, .22);
  padding: 22px 26px 16px;
  width: 264px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.96);
  transform-origin: bottom right;
  transition: .28s cubic-bezier(.34, 1.4, .64, 1);
}
.contact-card.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.contact-card h4 {
  text-align: center;
  font-size: 17px;
  margin-bottom: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
.contact-item:hover { background: #f4f8ff; }
.ci-ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ci-txt small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
  margin-bottom: 2px;
}
.ci-txt b { font-size: 16.5px; letter-spacing: .3px; }
.ci-txt .ci-link { color: var(--primary); }
.ci-txt .ci-link::after { content: " →"; }

@media (max-width: 560px) {
  .contact-wrap { right: 16px; bottom: 20px; }
  .contact-fab { width: 50px; height: 50px; font-size: 21px; }
  .contact-card { width: calc(100vw - 48px); max-width: 264px; }
}

/* ---------- 微信二维码弹窗 ---------- */
button.contact-item {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(10, 25, 55, .55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}
.qr-modal.show { opacity: 1; visibility: visible; }
.qr-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 30px 34px 22px;
  width: 300px;
  max-width: calc(100vw - 40px);
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  transform: translateY(16px) scale(.94);
  transition: .28s cubic-bezier(.34, 1.4, .64, 1);
}
.qr-modal.show .qr-card { transform: translateY(0) scale(1); }
.qr-card h4 { font-size: 19px; margin-bottom: 18px; }
.qr-card img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #eef2f7;
}
.qr-tel {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: .5px;
}
.qr-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #b7c1d0;
  cursor: pointer;
  transition: color .2s;
}
.qr-close:hover { color: var(--text); }

/* ---------- 手机端补丁：逻辑图提示 / 模拟表格滚动 ---------- */
.logic-hint {
  display: none;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
}
.logic-wrap {
  -webkit-overflow-scrolling: touch;
}
.mock-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mock-table { min-width: 560px; }

/* ---------- FAQ 常见问题 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.85;
}
.footer-contact { margin-top: 14px; }
.footer-contact li {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 4px 0;
}
.footer-contact a { color: var(--text-2); }
.footer-contact a:hover { color: var(--primary); }

/* ---------- 语言切换器 ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: .2s;
}
.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
@media (max-width: 560px) {
  .lang-switch { height: 28px; padding: 0 9px; font-size: 12px; }
}

/* ---------- 英文版排版微调（英文字符更宽） ---------- */
html[lang="en"] .hero-title { font-size: clamp(26px, 6.2vw, 54px); letter-spacing: -.5px; }
html[lang="en"] .hero-badge { font-size: 12.5px; }
html[lang="en"] .logo { font-size: 19px; }
html[lang="en"] .main-nav a { padding: 8px 13px; font-size: 14.5px; }
html[lang="en"] .docs-sidebar a.sub { font-size: 13px; line-height: 1.5; padding-top: 7px; padding-bottom: 7px; }
html[lang="en"] .faq-item summary { font-size: 15px; }
html[lang="en"] .term-card h3 { font-size: 16px; }

@media (max-width: 992px) {
  html[lang="en"] .logo { font-size: 17px; }
}
@media (max-width: 560px) {
  html[lang="en"] .logo { font-size: 15px; }
  html[lang="en"] .header-actions .btn { padding: 6px 9px; font-size: 11.5px; }
  html[lang="en"] .hero-title { font-size: 27px; }
  html[lang="en"] .hero-badge { font-size: 11.5px; padding: 5px 12px; }
}
@media (max-width: 1180px) {
  html[lang="en"] .logo-badge { display: none; }
  html[lang="en"] .main-nav a { padding: 8px 10px; font-size: 14px; }
  html[lang="en"] .main-nav { gap: 2px; }
  html[lang="en"] .header-inner { gap: 14px; }
}

/* ---------- 手册分类导航（四大手册独立页） ---------- */
.manual-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px 6px; }
.manual-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.manual-nav a:hover { background: rgba(37, 99, 235, .06); color: var(--primary); }
.manual-nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.side-sep { height: 1px; background: var(--border); margin: 8px 18px; }
