:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --ink: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --cyan: #0891b2;
  --cyan-soft: #ecfeff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --rose: #dc2626;
  --rose-soft: #fef2f2;

  --code-bg: #0b1120;
  --code-surface: #111a2e;
  --code-border: #1e293b;
  --code-ink: #e2e8f0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 44px -12px rgba(15, 23, 42, 0.16);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

code,
pre,
.mono-sm,
.mono-lg,
.tag-mono {
  font-family: var(--font-mono);
}

code {
  background: rgba(37, 99, 235, 0.08);
  color: #1e40af;
  padding: 0.1em 0.38em;
  border-radius: 5px;
  font-size: 0.9em;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.16s ease;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-muted);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.35);
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.btn-ghost {
  background: var(--surface-muted);
  color: var(--ink-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--border);
  color: var(--ink);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none !important;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 11px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.main-nav a {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  padding: 8px 4px;
  color: var(--ink);
  font-weight: 500;
}

/* Hero 商业化光感首屏 + 交互式产品展示台 */
.hero-showcase-section {
  position: relative;
  padding: 58px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 52%, #f8fafc 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.55;
}

.hero-glow-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
}

.hero-glow-2 {
  width: 560px;
  height: 560px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.22) 0%, rgba(79, 70, 229, 0.14) 45%, transparent 75%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 92%);
  pointer-events: none;
}

.hero-showcase-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.text-gradient {
  background: linear-gradient(120deg, #2563eb 10%, #4f46e5 55%, #0891b2 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 26px;
  color: var(--ink-secondary);
  font-size: 16.5px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-dev-shortcut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.hero-dev-shortcut a {
  font-weight: 600;
}

.dot-sep {
  color: var(--border-strong);
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trust-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}

.trust-card strong {
  font-size: 14px;
  color: var(--ink);
}

.trust-card span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* 右侧产品体验展示台 */
.showcase-stage {
  position: relative;
  padding: 12px 0;
}

.floating-badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.fb-top {
  top: -2px;
  right: 16px;
}

.fb-bottom {
  bottom: -2px;
  left: -12px;
}

.fb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fb-dot.green { background: var(--emerald); }
.fb-dot.blue { background: var(--primary); }

.showcase-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 20px;
  box-shadow: 0 24px 54px -16px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.showcase-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.sc-tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-tab.active {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.sc-panel {
  display: none;
  min-height: 368px;
}

.sc-panel.active {
  display: flex;
  flex-direction: column;
}

/* 仿真聊天界面 */
.chat-app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.chat-peer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.avatar.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
}

.avatar-blue { background: linear-gradient(135deg, #2563eb, #0891b2); }
.avatar-teal { background: linear-gradient(135deg, #0d9488, #0284c7); }
.avatar-indigo { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

.peer-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.peer-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--emerald);
}

.online-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.enc-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: #065f46;
}

.chat-stream {
  flex: 1;
  padding: 14px 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-height: 256px;
  overflow-y: auto;
}

.msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.msg-row.self {
  justify-content: flex-end;
}

.bubble {
  max-width: 82%;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.peer-bubble {
  background: #ffffff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.self-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

.bubble-meta {
  font-size: 10.5px;
  opacity: 0.72;
  margin-top: 4px;
  text-align: right;
}

.read-tick {
  font-weight: 600;
  color: #a7f3d0;
}

.file-chip {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 6px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.voice-bubble {
  background: #ffffff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
}

.play-tri {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 9px;
  display: grid;
  place-items: center;
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.voice-bars span {
  width: 3px;
  border-radius: 2px;
  background: #60a5fa;
}

.voice-bars span:nth-child(odd) { height: 14px; }
.voice-bars span:nth-child(even) { height: 8px; }
.voice-bars span:nth-child(3n) { height: 18px; background: var(--primary); }

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

.chat-demo-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.composer-hint {
  font-size: 12px;
  color: var(--ink-muted);
}

/* 来电与离线唤醒仿真 */
.push-mockup {
  flex: 1;
  padding: 22px 18px;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #172554 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lockscreen-time {
  text-align: center;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lockscreen-date {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.ios-notif-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
}

.notif-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #93c5fd;
  margin-bottom: 4px;
}

.notif-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.notif-body {
  font-size: 12.5px;
  color: #e2e8f0;
}

.voip-call-card {
  margin-top: auto;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voip-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voip-name {
  font-size: 14px;
  font-weight: 700;
}

.voip-sub {
  font-size: 11.5px;
  color: #cbd5e1;
}

.voip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.voip-btn {
  text-align: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.voip-btn.decline { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.voip-btn.accept { background: #10b981; color: #ffffff; }

/* 云端护航卡片 */
.cloud-monitor-card {
  flex: 1;
  padding: 20px 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.status-pill-ok {
  background: var(--emerald-soft);
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.cm-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cm-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cm-box span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.cm-box strong {
  font-size: 16px;
  color: var(--ink);
}

.cm-box small {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.cm-footer-note {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 500;
}

/* Bento Grid 商业优势区 */
.center-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}

.bento-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.bento-card h3 {
  margin: 0;
  font-size: 18px;
}

.bento-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.bi-blue { background: var(--primary-soft); color: var(--primary); }
.bi-cyan { background: var(--cyan-soft); color: var(--cyan); }
.bi-emerald { background: var(--emerald-soft); color: var(--emerald); }

.compare-bars {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compare-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.compare-track {
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.compare-track span {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bar-legacy {
  background: #94a3b8;
  color: #ffffff;
}

.bar-imcore {
  background: linear-gradient(90deg, #2563eb, #0891b2);
  color: #ffffff;
  min-width: fit-content;
}

.msg-type-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.msg-type-cloud span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.bento-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.bento-badges-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-check {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* 行业应用场景区 */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.sc-blue { background: var(--primary-soft); color: var(--primary); }
.sc-cyan { background: var(--cyan-soft); color: var(--cyan); }
.sc-emerald { background: var(--emerald-soft); color: var(--emerald); }
.sc-indigo { background: #eef2ff; color: #4f46e5; }

.scenario-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.scenario-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* 开发者中心视觉过渡横幅 */
.dev-hub-banner {
  background: linear-gradient(135deg, #0b1120 0%, #172554 60%, #0f172a 100%);
  color: #ffffff;
  padding: 64px 0;
  border-top: 1px solid #1e293b;
}

.dev-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

.dev-hub-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #67e8f9;
  margin-bottom: 10px;
}

.dev-hub-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.28;
}

.dev-hub-copy p {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 15px;
}

.dev-hub-copy code {
  background: rgba(255, 255, 255, 0.14);
  color: #93c5fd;
}

.dev-hub-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.dh-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dh-stat strong {
  font-size: 14px;
  color: #ffffff;
}

.dh-stat span {
  font-size: 12px;
  color: #94a3b8;
}

.dev-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 协议速览终端 */
.hero-terminal {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 16px;
  border: 1px solid var(--code-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--code-surface);
  border-bottom: 1px solid var(--code-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.t-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.t-tab.active {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.btn-copy-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-copy-mini:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.terminal-body {
  margin: 0;
  padding: 16px 18px;
  font-size: 12.5px;
  line-height: 1.62;
  overflow-x: auto;
  min-height: 310px;
  max-height: 360px;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--code-surface);
  border-top: 1px solid var(--code-border);
  font-size: 12px;
  color: #94a3b8;
}

.terminal-footer code {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.badge-tls {
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* 通用区块 */
.section {
  padding: 68px 0;
}

.section-muted {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15.5px;
}

/* 核心能力网格 */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cap-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.cap-blue { background: var(--primary-soft); color: var(--primary); }
.cap-cyan { background: var(--cyan-soft); color: var(--cyan); }
.cap-emerald { background: var(--emerald-soft); color: var(--emerald); }
.cap-indigo { background: #eef2ff; color: #4f46e5; }
.cap-amber { background: var(--amber-soft); color: var(--amber); }
.cap-slate { background: var(--surface-muted); color: #334155; }

.cap-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.cap-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.cap-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
}

/* 架构拓扑与步骤 */
.arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

.arch-diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tag-mono {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
}

.arch-svg {
  width: 100%;
  height: auto;
  display: block;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.step-item h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
}

.step-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* 文档中心标签页 */
.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.doc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.doc-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.doc-tab.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.count-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.doc-tab.active .count-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.doc-panel {
  display: none;
}

.doc-panel.active {
  display: block;
}

/* RPC 控制栏与列表 */
.api-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pill-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.api-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-box {
  flex: 1 1 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
}

.search-box input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--primary);
}

.flag-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flag-btn {
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.flag-btn.active {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: #92400e;
}

.service-banner {
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.service-banner h3 {
  margin: 0 0 3px;
  font-size: 15.5px;
  color: #1e3a8a;
}

.service-banner p {
  margin: 0;
  font-size: 13.5px;
  color: #1e40af;
}

.rpc-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.rpc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.rpc-card.expanded {
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
}

.rpc-card-head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.rpc-card-head:hover {
  background: #f8fafc;
}

.rpc-main-info {
  min-width: 0;
  flex: 1;
}

.rpc-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rpc-service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--ink-secondary);
}

.rpc-full-method {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.badge-cat {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.badge-warn {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-stream {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.rpc-summary {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.rpc-sig-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.type-chip {
  background: var(--surface-muted);
  color: var(--primary-hover);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
}

.type-chip:hover {
  background: var(--primary-soft);
  border-color: #93c5fd;
}

.rpc-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rpc-details {
  border-top: 1px solid var(--border);
  background: #f8fafc;
  padding: 16px;
}

.rpc-io-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.io-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.io-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.field-table th {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.field-table tr:last-child td {
  border-bottom: none;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

/* 数据结构与枚举 */
.schema-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.schema-kind-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.schema-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schema-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.schema-card-head h4 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14.5px;
}

.kind-badge-enum {
  background: #ede9fe;
  color: #5b21b6;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}

.kind-badge-msg {
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}

.schema-comment {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* 鉴权与代码卡 */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.doc-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.doc-card > p {
  margin: 0 0 14px;
  color: var(--ink-secondary);
  font-size: 14px;
}

.table-scroll {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-table th {
  background: var(--surface-muted);
  color: var(--ink-secondary);
  font-size: 12px;
}

.formula-box {
  margin-top: 14px;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 10px;
  padding: 12px 14px;
}

.formula-title {
  font-size: 12px;
  color: #93c5fd;
  margin-bottom: 6px;
}

.formula-title code {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.formula-box pre {
  margin: 0;
  font-size: 12px;
  overflow-x: auto;
}

.card-head-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head-inline h3 {
  margin: 0;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.code-block-dark {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}

.code-block-dark.compact {
  padding: 12px 14px;
  font-size: 12px;
}

.code-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.status-active { background: var(--emerald-soft); color: #065f46; }
.status-grace { background: var(--amber-soft); color: #92400e; }
.status-expired { background: var(--rose-soft); color: #991b1b; }
.status-suspended { background: var(--surface-muted); color: #334155; }

.note-line {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* 在线调试工具箱 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-head p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.input-inline {
  display: flex;
  gap: 6px;
}

.input-inline input {
  min-width: 0;
  flex: 1;
}

.tool-actions {
  margin: 14px 0;
}

.tool-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.output-row {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.output-row code {
  flex: 1;
  word-break: break-all;
}

.output-row.highlight {
  margin-top: 12px;
  background: var(--primary-soft);
  border-color: #bfdbfe;
}

.output-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.pair-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pair-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.divider {
  border: none;
  border-top: 1px dashed var(--border-strong);
  margin: 18px 0;
}

.decode-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 13px;
}

/* 下载区 */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.download-card.featured {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dl-kind {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.dl-size {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.download-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.download-card p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.sha-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--surface-muted);
  padding: 6px 8px;
  border-radius: 6px;
  word-break: break-all;
}

/* Proto 源码浏览器 */
.proto-viewer-card {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--code-border);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.proto-viewer-head {
  padding: 14px 18px;
  background: var(--code-surface);
  border-bottom: 1px solid var(--code-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.proto-viewer-head code {
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
}

.proto-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.proto-search-input {
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1120;
  color: #f8fafc;
  font-size: 13px;
  min-width: 230px;
}

.proto-jump-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px;
  background: #0f172a;
  border-bottom: 1px solid var(--code-border);
}

.jump-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.jump-pill:hover {
  background: rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

.proto-code-scroll {
  max-height: 460px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
}

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

.proto-code-table tr.hit {
  background: rgba(250, 204, 21, 0.14);
}

.proto-ln {
  width: 52px;
  text-align: right;
  padding: 0 12px;
  color: #64748b;
  user-select: none;
  border-right: 1px solid #1e293b;
}

.proto-lc {
  padding: 0 16px;
  white-space: pre;
}

.tok-kw { color: #93c5fd; font-weight: 600; }
.tok-type { color: #5eead4; }
.tok-str { color: #fde68a; }
.tok-cmt { color: #64748b; font-style: italic; }
.tok-num { color: #fca5a5; }

.codegen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.codegen-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.codegen-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.codegen-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* 合作方案（无价格） */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border-color: var(--primary);
  box-shadow: 0 16px 36px -14px rgba(37, 99, 235, 0.25);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

.plan-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.plan-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.plan-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* 底部 CTA 与页脚 */
.cta-banner {
  background: linear-gradient(125deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 48px 0;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-inner h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.cta-inner p {
  margin: 0;
  color: #cbd5e1;
}

.cta-inner code {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

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

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 13.5px;
}

/* 悬浮按钮 */
.floating-sales-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
  transition: transform 0.18s ease;
}

.floating-sales-btn:hover {
  transform: translateY(-2px);
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-dialog {
  position: relative;
  width: 100%;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-height: 92vh;
  overflow-y: auto;
}

.sales-dialog {
  max-width: 680px;
}

.schema-dialog {
  max-width: 720px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close.inline-close {
  position: static;
}

.sales-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sales-modal-header h2 {
  margin: 0 0 2px;
  font-size: 20px;
}

.tg-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #229ed9, #2563eb);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sales-contact-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}

.sales-qr-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.qr-svg-wrap svg {
  display: block;
  border-radius: 6px;
}

.sales-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sales-account-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface-muted);
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.mono-lg {
  font-size: 16px;
  color: var(--ink);
}

.extra-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.sales-template-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.template-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  cursor: pointer;
}

.compact-field input {
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
}

.prefill-preview {
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.prefill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}

.prefill-preview p {
  margin: 0;
  font-size: 13px;
  color: #1e3a8a;
  word-break: break-word;
}

.schema-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.schema-modal-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 18px;
}

.muted-sm {
  font-size: 13px;
  color: var(--ink-muted);
}

.muted-xs {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-showcase-grid,
  .dev-hub-grid,
  .bento-split,
  .arch-layout,
  .rpc-io-grid,
  .auth-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cap-grid,
  .downloads-grid,
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .main-nav,
  .hide-sm {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .bento-grid,
  .scenarios-grid,
  .cap-grid,
  .downloads-grid,
  .plans-grid,
  .hero-trust-grid,
  .dev-hub-stats,
  .cm-metrics,
  .form-grid,
  .sales-contact-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-2 {
    grid-column: span 1;
  }

  .floating-badge {
    display: none;
  }

  .floating-sales-btn {
    right: 14px;
    bottom: 14px;
    padding: 10px 15px;
  }
}
