/* ==========================================================================
   荣耀盾 RONGYAODUN — 全站样式
   纯静态 · 无外部依赖 · 移动优先
   ========================================================================== */

:root {
  --bg: #05080f;
  --bg-soft: #0a1020;
  --bg-card: #0d1424;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf7;
  --text-dim: #9aa8bd;
  --text-mute: #6b7a91;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 48%, #8b5cf6 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 语义色（供主题切换） */
  --code-bg: #070c17;
  --code-text: #b8c9e0;
  --card-hover: #101a2e;
  --footer-bg: #04070d;
  --cta-bg: #08101f;
  --on-accent: #04070d;
  --ghost-bg: rgba(255, 255, 255, 0.03);
  --hover-soft: rgba(255, 255, 255, 0.07);
  --panel-bg: #0b1322;
  --panel-grad: linear-gradient(160deg, #0c1526, #070c17);
  --mask: rgba(3, 6, 12, 0.74);
}

/* ============ 浅色主题 ============ */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #edf1f8;
  --bg-card: #ffffff;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-dim: #475569;
  --text-mute: #94a3b8;
  --cyan: #0e7490;
  --blue: #2563eb;
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #0891b2 0%, #2563eb 48%, #7c3aed 100%);

  --code-bg: #f1f5f9;
  --code-text: #334155;
  --card-hover: #f8fafc;
  --footer-bg: #edf1f8;
  --cta-bg: #e8f0fb;
  --on-accent: #ffffff;
  --ghost-bg: rgba(15, 23, 42, 0.03);
  --hover-soft: rgba(15, 23, 42, 0.06);
  --mask: rgba(15, 23, 42, 0.45);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
}
h3 {
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
}

ul,
ol {
  color: var(--text-dim);
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.5em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s,
    border-color 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 6px 24px -8px rgba(59, 130, 246, 0.75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(59, 130, 246, 0.9);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--ghost-bg);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background: radial-gradient(
      ellipse 60% 50% at 50% 0%,
      rgba(59, 130, 246, 0.28),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 82% 12%,
      rgba(139, 92, 246, 0.22),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 12% 24%,
      rgba(34, 211, 238, 0.16),
      transparent 70%
    );
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 10%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 10%,
    #000 20%,
    transparent 75%
  );
  opacity: 0.55;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.hero h1 {
  max-width: 15em;
  margin-bottom: 22px;
}

.hero-lead {
  max-width: 44em;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.stat {
  background: var(--bg-soft);
  padding: 26px 22px;
}

.stat b {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-mute);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

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

.section-head h2 {
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.0625rem;
  margin: 0;
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  position: relative;
  padding: 30px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease),
    background 0.3s;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.32);
  transform: translateY(-4px);
  background: var(--card-hover);
}

.card .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--cyan);
  margin-bottom: 18px;
}

.card .ico svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.0625rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- 功能列表（图文行） ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.feature-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}

.feature-copy ul {
  margin-top: 18px;
  font-size: 0.9375rem;
}

.feature-copy li::marker {
  color: var(--cyan);
}

.feature-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-grad);
  padding: 28px;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.feature-visual svg {
  width: 100%;
  height: auto;
}

/* ---------- 价格 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.plan:hover {
  border-color: rgba(34, 211, 238, 0.32);
  transform: translateY(-4px);
}

.plan.is-featured {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(170deg, rgba(34, 211, 238, 0.09), var(--panel-bg) 45%);
  box-shadow: 0 20px 50px -30px rgba(34, 211, 238, 0.6);
}

.plan-tag {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  margin-bottom: 14px;
}

.plan h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.plan .desc {
  font-size: 0.8125rem;
  color: var(--text-mute);
  margin-bottom: 18px;
  min-height: 2.6em;
}

.plan .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.plan .price .cur {
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.plan .price .num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan .price .unit {
  font-size: 0.8125rem;
  color: var(--text-mute);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.875rem;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--text-dim);
}

.plan li svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 5px;
  color: var(--cyan);
}

.plan .btn {
  width: 100%;
}

/* ---------- 节点地图 ---------- */
.nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.node-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.node-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

/* ---------- 全球节点地图 ---------- */
.map-wrap {
  margin-top: 8px;
  padding: 26px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(
      ellipse 55% 65% at 50% 42%,
      rgba(34, 211, 238, 0.055),
      transparent 72%
    ),
    #070d18;
  overflow: hidden;
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-grid {
  opacity: 0.55;
}

/* 节点脉冲 */
.map-node .pulse {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 1.1;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: nodePulse 3.2s ease-out infinite;
  animation-delay: var(--d, 0s);
}

.map-node.is-overseas .pulse {
  stroke: #a78bfa;
}

@keyframes nodePulse {
  0% {
    transform: scale(0.5);
    opacity: 0.95;
  }
  70% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* 链路流动 */
.map-arc {
  fill: none;
  stroke: url(#mapArcGrad);
  stroke-width: 1.8;
  stroke-dasharray: 6 6;
  opacity: 0.9;
  animation: arcFlow 2.4s linear infinite;
}

@keyframes arcFlow {
  to {
    stroke-dashoffset: -24;
  }
}

/* 中国区域聚合光 */
.map-glow {
  animation: glowBreath 4.5s ease-in-out infinite;
}

@keyframes glowBreath {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

/* 地图标签 */
.map-label {
  font-family: inherit;
  font-size: 11px;
  fill: #8fa3bf;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: #05080f;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-label.is-main {
  font-size: 12px;
  font-weight: 600;
  fill: #7fe7fb;
}

/* 中国香港 / 中国台湾 */
.map-node.is-region .pulse {
  stroke: #7fe7fb;
  stroke-width: 1.3;
}

.map-leader {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 0.9;
  stroke-dasharray: 2 3;
  opacity: 0.5;
}

.map-label.is-region {
  font-size: 10.5px;
  fill: #a8c4e0;
}

/* 分组标签 */
.node-group-label {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-top: 22px;
  margin-bottom: 2px;
}

.node-group-label:first-child {
  margin-top: 0;
}

.node-chip.is-overseas i {
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.85);
}

.node-chip.is-region {
  border-color: rgba(34, 211, 238, 0.32);
  color: #a8c4e0;
}

.node-chip.is-region i {
  background: #7fe7fb;
}

.map-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-mute);
  margin: 20px 0 0;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .map-wrap {
    padding: 14px 8px 8px;
  }
  .map-label {
    font-size: 9px;
    stroke-width: 2.5px;
  }
  .map-label.is-main {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-node .pulse,
  .map-arc,
  .map-glow {
    animation: none;
  }
  .map-node .pulse {
    opacity: 0;
  }
}


/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: radial-gradient(
      ellipse 70% 120% at 50% 0%,
      rgba(59, 130, 246, 0.22),
      transparent 70%
    ),
    var(--cta-bg);
  text-align: center;
  overflow: hidden;
}

.cta h2 {
  margin-bottom: 14px;
}

.cta p {
  max-width: 34em;
  margin: 0 auto 30px;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--footer-bg);
  font-size: 0.875rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand p {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--text-mute);
  max-width: 26em;
}

.footer h4 {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--text-mute);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: var(--text-mute);
}

/* ---------- 内页 ---------- */
.page-head {
  padding: 140px 0 56px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(
    ellipse 60% 100% at 50% 0%,
    rgba(59, 130, 246, 0.16),
    transparent 70%
  );
}

.page-head h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin-bottom: 12px;
}

.page-head p {
  margin: 0;
  max-width: 46em;
}

.prose {
  max-width: 800px;
  padding: 64px 0 96px;
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.0625rem;
  margin-top: 1.8em;
  color: var(--text);
}

.prose p,
.prose li {
  font-size: 0.9375rem;
  line-height: 1.85;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* 代码块（博客正文）—— docs 里的样式只作用于 .docs-main，正文需单独定义 */
.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.75;
  margin: 1.4em 0;
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  background: none;
  padding: 0;
  font-size: 1em;
  color: inherit;
  white-space: pre;
  word-break: normal;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 0.875em;
  background: rgba(34, 211, 238, 0.09);
  color: #7fe7fb;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-word;
}

/* 浅色主题下代码配色需要单独覆盖，否则对比度不足 */
[data-theme="light"] .prose code {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}

.prose td {
  color: var(--text-dim);
}

.note {
  padding: 18px 20px;
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 10px 10px 0;
  margin: 1.6em 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .feature-row {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
  }
  .nav-cta .btn-ghost {
    display: none;
  }
  .hero {
    padding: 132px 0 72px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }
  .section {
    padding: 72px 0;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }
  .feature-row.reverse .feature-copy {
    order: 0;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .cta {
    padding: 56px 24px;
  }
}

@media (max-width: 600px) {
  .price-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .prose table {
    font-size: 0.8125rem;
  }
  .prose th,
  .prose td {
    padding: 9px 10px;
  }
}

/* ---------- 右侧悬浮客服 ---------- */
.side-service {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.side-service a,
.side-service button {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  height: 52px;
  padding-right: 15px;
  overflow: hidden;
  background: rgba(13, 20, 36, 0.94);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: width 0.3s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s;
}

.side-service a:hover,
.side-service button:hover {
  width: 142px;
  background: var(--card-hover);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.32);
}

.side-service svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.side-service .ss-label {
  margin-right: 12px;
  font-size: 0.8125rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s;
}

.side-service a:hover .ss-label,
.side-service button:hover .ss-label {
  opacity: 1;
}

.side-service .ss-top {
  display: none;
}

.side-service .ss-top.is-on {
  display: flex;
}

/* 主客服按钮 —— 突出样式 */
.side-service .ss-primary {
  position: relative;
  width: 62px;
  height: 62px;
  padding-right: 20px;
  background: var(--grad);
  border: 0;
  border-radius: 14px 0 0 14px;
  color: var(--on-accent);
  box-shadow: 0 10px 28px -8px rgba(59, 130, 246, 0.85);
}

.side-service .ss-primary:hover {
  width: 150px;
  background: var(--grad);
  color: var(--on-accent);
  border-color: transparent;
  animation: none;
  box-shadow: 0 14px 34px -8px rgba(59, 130, 246, 0.95);
}

.side-service .ss-primary svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.side-service .ss-primary .ss-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--on-accent);
}

/* 呼吸光圈（直接作用在元素上，避免被 overflow:hidden 裁剪） */
.side-service .ss-primary {
  animation: ss-pulse 2.6s ease-out infinite;
}

@keyframes ss-pulse {
  0% {
    box-shadow: 0 10px 28px -8px rgba(59, 130, 246, 0.85),
      0 0 0 0 rgba(34, 211, 238, 0.5);
  }
  70% {
    box-shadow: 0 10px 28px -8px rgba(59, 130, 246, 0.85),
      0 0 0 15px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 10px 28px -8px rgba(59, 130, 246, 0.85),
      0 0 0 0 rgba(34, 211, 238, 0);
  }
}

/* 在线状态点 */
.side-service .ss-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22e07a;
  box-shadow: 0 0 0 2px rgba(6, 10, 19, 0.75);
  animation: ss-blink 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes ss-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* 首次进入自动展开提示 */
.side-service .ss-primary.is-hint {
  width: 150px;
}

.side-service .ss-primary.is-hint .ss-label {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .side-service .ss-primary,
  .side-service .ss-dot {
    animation: none;
  }
}

@media (max-width: 860px) {
  .side-service a,
  .side-service button {
    width: 44px;
    height: 44px;
    padding-right: 11px;
  }
  .side-service a:hover,
  .side-service button:hover {
    width: 44px;
  }
  .side-service .ss-label {
    display: none;
  }
  .side-service svg {
    width: 19px;
    height: 19px;
  }
}


/* ==========================================================================
   文档中心
   ========================================================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 60px;
  padding: 126px 0 96px;
  align-items: start;
}

.docs-side {
  position: sticky;
  top: 92px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--line);
}

.docs-nav a {
  display: block;
  padding: 9px 0 9px 18px;
  margin-left: -1px;
  font-size: 0.875rem;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.docs-nav a:hover {
  color: var(--text);
}

.docs-nav a[aria-current="page"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.09), transparent);
}

.docs-group {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  padding: 20px 0 8px 18px;
  font-weight: 600;
}

.docs-group:first-child {
  padding-top: 0;
}

.docs-main {
  min-width: 0;
}

.docs-main h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.8125rem;
  color: var(--text-mute);
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.doc-meta span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.7;
}

/* 代码 */
.docs-main pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.75;
  margin: 1.2em 0;
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

.docs-main pre code {
  background: none;
  padding: 0;
  font-size: 1em;
  color: inherit;
}

.docs-main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 0.875em;
  background: rgba(34, 211, 238, 0.09);
  color: #7fe7fb;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 步骤 */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.4em 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
}

/* 警告 / 提示 */
.warn {
  padding: 16px 20px;
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.07);
  border-radius: 0 10px 10px 0;
  margin: 1.4em 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.warn strong {
  color: #fbbf24;
}

.tip {
  padding: 16px 20px;
  border-left: 3px solid var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 10px 10px 0;
  margin: 1.4em 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-dim);
}

/* 下载条 */
.dl-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.08), rgba(59, 130, 246, 0.04));
  margin: 1.6em 0;
}

.dl-box .dl-txt {
  font-size: 0.9375rem;
  color: var(--text);
}

.dl-box .dl-txt small {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-mute);
  margin-top: 4px;
}

/* 文档中心卡片 */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.doc-card {
  display: block;
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}

.doc-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-3px);
  background: var(--card-hover);
}

.doc-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.doc-card p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-dim);
}

.doc-card .tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 100px 0 72px;
  }
  .docs-side {
    position: static;
  }
  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
  }
  .docs-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    margin: 0;
    font-size: 0.8125rem;
  }
  .docs-nav a[aria-current="page"] {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.08);
  }
  .docs-group {
    display: none;
  }
  .doc-cards {
    grid-template-columns: 1fr;
  }
}

/* 语言切换 Tab */
.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
}

.lang-tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-tabs button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.lang-tabs button.is-on {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--cyan);
}

.lang-panel {
  display: none;
}

.lang-panel.is-on {
  display: block;
}

.lang-panel > h3:first-child {
  margin-top: 0;
}

/* 平台对照表 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.2em 0;
}

.spec-table th,
.spec-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.spec-table th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  width: 32%;
}

.spec-table td {
  color: var(--text-dim);
}

.spec-table code {
  font-size: 0.8125rem;
}

/* ---------- 客服弹层 ---------- */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cs-modal.is-open {
  display: flex;
}

.cs-mask {
  position: absolute;
  inset: 0;
  background: var(--mask);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.cs-panel {
  position: relative;
  width: 100%;
  max-width: 384px;
  padding: 30px 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.85);
  animation: csIn 0.28s var(--ease);
}

@keyframes csIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cs-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-mute);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.cs-close:hover {
  color: var(--text);
  background: var(--hover-soft);
}

.cs-panel h3 {
  font-size: 1.125rem;
  margin: 0 0 6px;
}

.cs-sub {
  font-size: 0.8125rem;
  color: var(--text-mute);
  margin: 0 0 22px;
}

.cs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 12px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
}

.cs-k {
  flex: none;
  color: var(--text-mute);
}

.cs-v {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9375rem;
  word-break: break-all;
}

.cs-v a {
  color: var(--cyan);
}

.cs-copy {
  flex: none;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cyan);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cs-copy:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.4);
}

.cs-btn {
  width: 100%;
  margin-bottom: 12px;
}

.cs-tip {
  margin: 14px 0 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-mute);
  text-align: center;
}


/* ============ 浅色主题下的局部处理 ============ */
/* 含内联 SVG 示意图的容器保持深色底，避免图内颜色失效 */
[data-theme="light"] .feature-visual,
[data-theme="light"] .map-wrap {
  background: var(--panel-grad);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .map-wrap {
  background: radial-gradient(
      ellipse 55% 65% at 50% 42%,
      rgba(34, 211, 238, 0.055),
      transparent 72%
    ),
    #070d18;
}

/* 推荐套餐卡在浅色下不能变深 */
[data-theme="light"] .plan.is-featured {
  background: linear-gradient(170deg, rgba(8, 145, 178, 0.08), #ffffff 45%);
  box-shadow: 0 20px 50px -30px rgba(8, 145, 178, 0.5);
}

/* 浅色下的地图标签描边 */
[data-theme="light"] .map-label {
  stroke: #05080f;
}

/* 内联强调链接色 */
.link-accent {
  color: var(--cyan);
}

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--ghost-bg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .ico-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .ico-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .ico-moon {
  display: none;
}

/* 浅色主题的层次感：卡片加投影 */
[data-theme="light"] .card,
[data-theme="light"] .plan,
[data-theme="light"] .doc-card,
[data-theme="light"] .info-item,
[data-theme="light"] .form-card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05),
    0 4px 14px -8px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .plan:hover,
[data-theme="light"] .doc-card:hover {
  box-shadow: 0 14px 32px -14px rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .map-wrap,
[data-theme="light"] .feature-visual {
  box-shadow: 0 18px 44px -22px rgba(15, 23, 42, 0.32);
}

[data-theme="light"] .cs-panel {
  box-shadow: 0 32px 80px -24px rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .hero::before {
  background: radial-gradient(
      ellipse 60% 50% at 50% 0%,
      rgba(37, 99, 235, 0.12),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 82% 12%,
      rgba(124, 58, 237, 0.1),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 12% 24%,
      rgba(8, 145, 178, 0.08),
      transparent 70%
    );
}

[data-theme="light"] .cta {
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.25);
}


/* ============ 地图 v2：点阵 + 扫描 + 角标 ============ */
.land-dots {
  fill: none;
  stroke: url(#mapLand);
  stroke-width: 2.3;
  stroke-linecap: round;
}

.land-glow {
  stroke: #22d3ee;
  stroke-width: 5;
  opacity: 0.07;
}

.map-scan {
  animation: mapScan 9s linear infinite;
  pointer-events: none;
}

@keyframes mapScan {
  0% {
    transform: translateY(-56px);
  }
  100% {
    transform: translateY(360px);
  }
}

.map-corners {
  opacity: 0.55;
}

.map-node.is-region .pulse {
  stroke: #7fe7fb;
  stroke-width: 1.3;
}

/* 地图容器微调 */
.map-wrap {
  padding: 20px 16px 14px;
}

[data-theme="light"] .land-dots {
  stroke: url(#mapLand);
}

@media (prefers-reduced-motion: reduce) {
  .map-scan {
    animation: none;
    opacity: 0;
  }
}

/* 文档内的截图 */
.docs-main figure {
  margin: 20px 0;
}

.docs-main figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--code-bg);
}

.docs-main figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-mute);
  text-align: center;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2.4em 0 0.8em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}

.step-head:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 1.4em;
}

.step-head .num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.32);
  color: var(--cyan);
  font-size: 0.875rem;
  font-weight: 700;
}

.step-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
}

/* 原尺寸较小的截图不放大，保持清晰 */
.docs-main figure img.img-narrow {
  width: auto;
  max-width: min(100%, 560px);
  margin: 0 auto;
  display: block;
}

/* ---------- 代码块复制按钮 ---------- */
.docs-main pre {
  position: relative;
}

.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-mute);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
}

.docs-main pre:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
}

.code-copy:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.45);
}

.code-copy.is-done {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.45);
  opacity: 1;
}

@media (max-width: 860px) {
  .code-copy {
    opacity: 1;
  }
}

/* ---------- 焦点可见性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline-offset: 3px;
}

/* 跳过导航（键盘用户） */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--grad);
  color: var(--on-accent);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 博客列表 ---------- */
.blog-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.blog-item {
  display: block;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}

.blog-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
  background: var(--card-hover);
}

.blog-item h2,
.blog-item h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  color: var(--text);
  border: 0;
  padding: 0;
}

.blog-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-mute);
}

.blog-meta span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 7px;
  vertical-align: middle;
  opacity: 0.65;
}

[data-theme="light"] .blog-item {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px -8px rgba(15, 23, 42, 0.1);
}

/* 相关阅读 */
.related-posts {
  margin: 40px 0 0;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-posts h3 {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: var(--text);
  border: 0;
  padding: 0;
}

.related-posts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.related-posts li {
  margin: 0;
  font-size: 0.875rem;
}

.related-posts a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.related-posts a:hover {
  color: var(--cyan);
}

.related-posts a::before {
  content: "→ ";
  color: var(--cyan);
  opacity: 0.6;
}

[data-theme="light"] .related-posts {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px -8px rgba(15, 23, 42, 0.1);
}

/* ============================================================
   移动端体验优化
   1. 客服按钮从右侧中间移到右下角，避免遮挡正文
   2. 增大文字链接的触摸区域（≥44px）
   3. 表格横向滚动，避免撑破布局
   ============================================================ */
@media (max-width: 860px) {
  /* 客服悬浮按钮：移到右下角，改成圆形 */
  .side-service {
    top: auto;
    bottom: 18px;
    right: 14px;
    gap: 8px;
  }

  .side-service .ss-primary {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    animation: none;
    box-shadow: 0 8px 22px -6px rgba(59, 130, 246, 0.8);
  }

  .side-service .ss-primary:hover {
    width: 54px;
    border-radius: 50%;
  }

  .side-service .ss-primary .ss-dot {
    top: 4px;
    right: 4px;
  }

  /* 其他侧边按钮：缩小为圆角方块 */
  .side-service a,
  .side-service button:not(.ss-primary) {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
    border-right: 1px solid var(--line);
  }

  .side-service a:hover,
  .side-service button:not(.ss-primary):hover {
    width: 46px;
  }

  /* 正文链接：加大点击区域 */
  .prose p a,
  .prose li a,
  .related-posts a {
    display: inline-block;
    padding: 3px 0;
    min-height: 32px;
    line-height: 1.6;
  }

  .related-posts li {
    padding: 4px 0;
  }

  .related-posts a {
    display: block;
    min-height: 44px;
    padding: 10px 0;
  }

  /* 文档侧边栏：加大触摸高度 */
  .docs-nav a,
  .doc-side a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* 表格：允许横向滚动，不撑破页面 */
  .prose table,
  .spec-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 正文底部留出客服按钮的空间 */
  .prose {
    padding-bottom: 8px;
  }
}

/* 移动端：禁止客服按钮的提示展开状态撑宽 */
@media (max-width: 860px) {
  .side-service .ss-primary.is-hint {
    width: 54px;
  }

  .side-service .ss-primary.is-hint .ss-label {
    display: none;
    opacity: 0;
  }
}

/* ---------- HTML 站点地图页 ---------- */
.sm-group {
  margin: 0 0 40px;
  padding: 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sm-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.0625rem;
  color: var(--text);
  border: 0;
  padding: 0;
}

.sm-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sm-desc {
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: var(--text-mute);
}

.sm-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-list li {
  margin: 0;
  font-size: 0.9375rem;
}

.sm-list a {
  display: block;
  padding: 9px 0 9px 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
  position: relative;
}

.sm-list a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.sm-list a:hover {
  color: var(--cyan);
  padding-left: 20px;
}

.sm-list a:hover::before {
  opacity: 1;
}

[data-theme="light"] .sm-group {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px -8px rgba(15, 23, 42, 0.1);
}

@media (max-width: 860px) {
  .sm-group {
    padding: 20px 18px;
  }

  .sm-list {
    grid-template-columns: 1fr;
  }

  .sm-list a {
    padding: 12px 0 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ---------- FAQ 聚合页（details 手风琴） ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.32);
  background: var(--card-hover);
}

.faq-item > summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  transition: color 0.2s;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cyan);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] > summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item > summary:hover {
  color: var(--cyan);
}

.faq-q {
  flex: 1 1 auto;
}

.faq-a {
  padding: 0 22px 20px 22px;
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 16px;
}

.faq-a p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.faq-a p:last-child {
  margin-bottom: 0;
}

.faq-more {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--cyan);
  border-bottom: 1px dashed rgba(34, 211, 238, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s, opacity 0.2s;
}

.faq-more:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--cyan);
}

[data-theme="light"] .faq-item {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 860px) {
  .faq-item > summary {
    padding: 16px 16px;
    font-size: 0.9375rem;
    min-height: 56px;
  }

  .faq-a {
    padding: 0 16px 18px;
    padding-top: 14px;
  }

  .faq-a p {
    font-size: 0.9375rem;
    line-height: 1.8;
  }

  .faq-more {
    display: block;
    padding: 8px 0;
  }
}
