/* ==========================================================================
   Capline — 独立官网样式（capline.app）
   零外部字体与 CDN 依赖，国内访问首屏秒开
   ========================================================================== */

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

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 品牌通用色板（同步 gptpay.top / 5xgpt.com 紫 + 绿体系） */
  --brand-primary: #7c3aed;
  --brand-primary-dark: #6d28d9;
  --brand-primary-2: #9333ea;
  --brand-soft: #f5f3ff;
  --brand-border: #e9d5ff;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #f59e0b;
  --coral: #f97316;
  --indigo: #6366f1;
  --red: #ef4444;

  /* 中性色 */
  --bg: #faf9fe;
  --surface: #ffffff;
  --surface-subtle: #f4f3fa;
  --text-strong: #141226;
  --text-body: #3f3d56;
  --text-muted: #6b6885;
  --border: rgba(20, 18, 38, 0.08);
  --border-strong: rgba(20, 18, 38, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(20, 18, 38, 0.04);
  --shadow-md: 0 12px 32px rgba(20, 18, 38, 0.07);
  --shadow-brand: 0 14px 36px rgba(124, 58, 237, 0.24);
  --shadow-stage: 0 28px 70px rgba(15, 17, 28, 0.22);
}

/* 5xGPT 站点轻微品牌特征微调（保留紫色主轴 + 增强翡翠绿徽章呼应） */
html[data-site="5xgpt"] {
  --brand-primary: #7c3aed;
  --brand-primary-2: #8b5cf6;
  --brand-accent-pill-bg: #ecfdf5;
  --brand-accent-pill-fg: #047857;
  --brand-accent-pill-border: #a7f3d0;
}

html[data-site="gptpay"] {
  --brand-accent-pill-bg: #f5f3ff;
  --brand-accent-pill-fg: #6d28d9;
  --brand-accent-pill-border: #ddd6fe;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-strong);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 72% 46% at 15% -6%, rgba(124, 58, 237, 0.09), transparent 62%),
    radial-gradient(ellipse 56% 40% at 88% 4%, rgba(16, 185, 129, 0.08), transparent 58%);
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

.container {
  width: min(100% - 32px, 1140px);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   顶部毛玻璃导航栏（独立软件官网极简布局）
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  width: min(100% - 32px, 1140px);
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24);
  flex-shrink: 0;
}

.site-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand-text strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.site-brand-text small {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-body);
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.nav-pill:hover {
  background: rgba(124, 58, 237, 0.07);
  color: var(--brand-primary);
}

.nav-pill.is-active {
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 700;
}

.nav-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  line-height: 1.4;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: all 0.16s ease;
}

.btn-ghost:hover {
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--brand-primary);
  background: var(--brand-soft);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.34);
}

/* ==========================================================================
   Hero 首屏：左侧价值主张与下载 CTA + 右侧真实 macOS 菜单栏交互预览
   ========================================================================== */

.hero {
  padding: 40px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 44px;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.app-identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-strong);
}

.app-identity-pill img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-accent-pill-bg);
  border: 1px solid var(--brand-accent-pill-border);
  color: var(--brand-accent-pill-fg);
  font-size: 12px;
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.hero-title {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 18px;
}

.hero-title .accent-gradient {
  background: linear-gradient(125deg, #7c3aed 0%, #9333ea 52%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-body);
  max-width: 540px;
  margin-bottom: 22px;
}

/* 平台切换器（macOS / Windows） */
.os-switcher-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.os-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-body);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.os-tab:hover:not(.is-active) {
  background: var(--surface-subtle);
  color: var(--text-strong);
}

.os-tab.is-active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}

.os-rec-tag {
  display: none;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  line-height: 1.45;
}

.os-rec-tag.is-visible {
  display: inline-flex;
}

.os-tab.is-active .os-rec-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-alt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 18px;
  font-size: 13px;
}

.hero-alt-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-align: left;
  transition: color 0.15s ease;
}

.hero-alt-link:hover {
  color: var(--brand-primary-dark);
  text-decoration: underline;
}

.hero-guide-link {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.15s ease;
}

.hero-guide-link:hover {
  color: var(--brand-primary);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 15px;
  background: linear-gradient(135deg, #181a24 0%, #261b47 55%, #6d28d9 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.34);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-download-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-download-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.btn-download-text strong {
  font-size: 16px;
  font-weight: 800;
}

.btn-download-text small {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
  transition: all 0.16s ease;
}

.btn-secondary-hero:hover {
  border-color: rgba(124, 58, 237, 0.38);
  color: var(--brand-primary);
  background: var(--brand-soft);
}

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.trust-chip {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}

.trust-chip strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.trust-chip span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   右侧：高保真 macOS 桌面与可点击菜单栏模拟器
   ========================================================================== */

.hero-stage {
  position: relative;
}

.macos-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.34), transparent 52%),
    radial-gradient(circle at 82% 80%, rgba(16, 185, 129, 0.24), transparent 50%),
    linear-gradient(155deg, #161829 0%, #0d1018 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-stage);
  padding-bottom: 24px;
}

.macos-stage[data-stage-os="win"] {
  padding-bottom: 0;
}

/* 顶部真实感 macOS 菜单栏 */
.macos-menubar {
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 14, 22, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 500;
  user-select: none;
}

.macos-menubar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.macos-menubar-left .apple-mark {
  font-size: 14px;
  opacity: 0.95;
}

.macos-menubar-left .menu-app-name {
  font-weight: 700;
  color: #fff;
}

.macos-menubar-left .menu-dim {
  opacity: 0.65;
}

.macos-menubar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.menubar-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.menubar-status-pill .mb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.menubar-clock {
  font-size: 11.5px;
  opacity: 0.82;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 舞台交互控制条（深浅模式切换 + 低额度演示） */
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px 8px;
}

.stage-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.16s ease;
}

.stage-chip-btn:hover {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
}

.stage-chip-btn.is-on {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

/* 悬浮的图标小徽章 + Popover 面板布局 */
.popover-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 18px 0;
  position: relative;
}

.floating-icon-badge {
  position: absolute;
  left: 20px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.floating-icon-badge img {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.floating-icon-badge span,
.floating-caption {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(15, 18, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Windows 态：桌面悬浮迷你胶囊条预览行（置于面板与任务栏之间，绝不遮挡面板） */
.floating-win-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  padding: 12px 18px 0;
  pointer-events: none;
}

.win-widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px 5px 10px;
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f4f6fa;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
  white-space: nowrap;
}

.win-widget-pill.is-light {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.14);
  color: #111827;
}

.win-widget-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.win-widget-btn {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.22);
  display: inline-grid;
  place-items: center;
  font-size: 8px;
}

/* Windows 11 底部任务栏 + 动态数字托盘徽章 */
.win-taskbar {
  margin-top: 16px;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 18, 28, 0.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  user-select: none;
}

.win-taskbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-start-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.win-app-chip {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.win-taskbar-tray {
  display: flex;
  align-items: center;
  gap: 9px;
}

.win-tray-chevron {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.win-tray-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 3px;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35);
}

.win-tray-num {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #f4f6fa;
  font-variant-numeric: tabular-nums;
}

.win-tray-bar-track {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #323947;
  overflow: hidden;
}

.win-tray-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.2s ease;
}

.win-tray-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.win-tray-clock strong {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.win-tray-clock small {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.64);
}

/* ==========================================================================
   1:1 还原 Capline SwiftUI Popover（严格对齐 Views.swift 配色）
   ========================================================================== */

.tb-popover {
  --tb-panel-bg: #14171c;
  --tb-card-bg: #1e222a;
  --tb-subtle-bg: #262b35;
  --tb-border: rgba(255, 255, 255, 0.12);
  --tb-divider: rgba(255, 255, 255, 0.10);
  --tb-seg-track: #0d0f13;
  --tb-seg-active: #282e3a;
  --tb-control-bg: rgba(255, 255, 255, 0.08);
  --tb-text-1: #f4f6fa;
  --tb-text-2: #b8c2d4;
  --tb-text-3: #8f9bb0;
  --tb-track: #323947;
  --tb-safe: #34d399;
  --tb-warn: #fbbf24;
  --tb-danger: #f87171;
  --tb-info: #60a5fa;
  --tb-gpt: #34d399;
  --tb-claude: #f59e6c;
  --tb-agy: #818cf8;

  width: 318px;
  max-width: 100%;
  border-radius: 16px;
  padding: 12px;
  background: var(--tb-panel-bg);
  color: var(--tb-text-1);
  border: 1px solid var(--tb-border);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-variant-numeric: tabular-nums;
}

.tb-popover.is-light {
  --tb-panel-bg: #f3f5f8;
  --tb-card-bg: #ffffff;
  --tb-subtle-bg: #f1f4f9;
  --tb-border: rgba(0, 0, 0, 0.10);
  --tb-divider: rgba(0, 0, 0, 0.08);
  --tb-seg-track: #e2e7f0;
  --tb-seg-active: #ffffff;
  --tb-control-bg: rgba(0, 0, 0, 0.06);
  --tb-text-1: #111827;
  --tb-text-2: #374151;
  --tb-text-3: #5b6474;
  --tb-track: #dde3ec;
  --tb-safe: #059669;
  --tb-warn: #b45309;
  --tb-danger: #dc2626;
  --tb-info: #1d4ed8;
  --tb-gpt: #059669;
  --tb-claude: #c2592e;
  --tb-agy: #4f46e5;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.tb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.tb-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tb-app-mini {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.tb-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tb-text-1);
}

.tb-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tb-time {
  font-size: 11px;
  color: var(--tb-text-3);
}

.tb-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--tb-control-bg);
  border: 1px solid var(--tb-border);
  display: grid;
  place-items: center;
  color: var(--tb-text-1);
  font-size: 11px;
  transition: transform 0.2s ease, background 0.15s ease;
}

.tb-icon-btn:hover {
  background: rgba(124, 58, 237, 0.22);
}

.tb-icon-btn.is-spinning svg {
  animation: spin360 0.6s linear;
}

@keyframes spin360 {
  to { transform: rotate(360deg); }
}

.tb-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--tb-seg-track);
  border: 1px solid var(--tb-border);
  margin-bottom: 9px;
}

.tb-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 4px;
  border-radius: 8px;
  border: 1.2px solid transparent;
  transition: all 0.15s ease;
}

.tb-seg-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tb-text-2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tb-seg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tb-seg-pct {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.tb-seg.is-active {
  background: var(--tb-seg-active);
}

.tb-seg.is-active .tb-seg-label {
  color: var(--tb-text-1);
  font-weight: 700;
}

.tb-seg.is-active[data-vendor="gpt"] { border-color: rgba(52, 211, 153, 0.55); }
.tb-seg.is-active[data-vendor="claude"] { border-color: rgba(245, 158, 108, 0.55); }
.tb-seg.is-active[data-vendor="antigravity"] { border-color: rgba(129, 140, 248, 0.55); }

.tb-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-card {
  background: var(--tb-card-bg);
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  padding: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tb-card.is-highlighted {
  border-color: var(--tb-safe);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.24);
}

.tb-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 9px;
}

.tb-kpi {
  background: var(--tb-subtle-bg);
  border-radius: 8px;
  padding: 7px 9px;
}

.tb-kpi-label {
  font-size: 10.5px;
  color: var(--tb-text-3);
  margin-bottom: 2px;
}

.tb-kpi-val {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tb-kpi-sub {
  font-size: 10px;
  color: var(--tb-text-3);
  margin-top: 2px;
}

.tb-meter {
  margin-top: 7px;
}

.tb-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
}

.tb-meter-name {
  color: var(--tb-text-2);
  font-weight: 600;
}

.tb-meter-val {
  font-weight: 700;
  font-size: 11px;
}

.tb-track {
  height: 7px;
  border-radius: 999px;
  background: var(--tb-track);
  overflow: hidden;
}

.tb-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tb-meter-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--tb-text-3);
  margin-top: 3px;
}

/* 额度告急智能提示横幅 */
.tb-alert-banner {
  border-radius: 9px;
  padding: 9px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.42);
}

.tb-alert-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tb-text-1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.tb-alert-desc {
  font-size: 10.5px;
  color: var(--tb-text-2);
  margin: 2px 0 7px;
}

.tb-alert-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tb-alert-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.tb-alert-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--tb-card-bg);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: var(--tb-text-1);
  font-size: 11px;
  font-weight: 600;
}

.tb-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--tb-text-2);
  padding: 3px 0;
}

.tb-meta-row + .tb-meta-row {
  border-top: 1px solid var(--tb-divider);
  padding-top: 6px;
  margin-top: 3px;
}

.tb-meta-row strong {
  color: var(--tb-text-1);
  font-weight: 600;
}

.tb-radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 5px;
}

.tb-radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 11px;
}

.tb-radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tb-radar-pill {
  background: var(--tb-subtle-bg);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
  color: var(--tb-text-2);
}

.tb-radar-pill strong {
  color: var(--tb-text-1);
}

.tb-footer {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--tb-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--tb-text-3);
}

.tb-radar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--tb-text-2);
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--tb-subtle-bg);
  transition: background 0.15s ease;
}

.tb-radar-trigger:hover {
  background: rgba(52, 211, 153, 0.18);
  color: var(--tb-text-1);
}

/* ==========================================================================
   通用分区排版
   ========================================================================== */

.section {
  padding: 68px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-body);
}

/* 分区双平台切换 Tab */
.section-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-top: 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.section-tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-body);
  transition: all 0.16s ease;
}

.section-tab:hover:not(.is-active) {
  background: var(--surface-subtle);
  color: var(--text-strong);
}

.section-tab.is-active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
  box-shadow: 0 5px 14px rgba(124, 58, 237, 0.24);
}

/* ==========================================================================
   Bento 核心能力矩阵
   ========================================================================== */

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

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

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.22);
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

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

.bento-icon.violet { background: #f5f3ff; color: #7c3aed; }
.bento-icon.emerald { background: #ecfdf5; color: #059669; }
.bento-icon.amber { background: #fff7ed; color: #ea580c; }
.bento-icon.indigo { background: #eef2ff; color: #4f46e5; }
.bento-icon.slate { background: #f1f5f9; color: #334155; }

.bento-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.bento-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.68;
}

.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}

.provider-pill .p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.privacy-points {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.privacy-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-body);
}

.privacy-point svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   数据源一览表（清晰透明，打消安全疑虑）
   ========================================================================== */

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 660px;
}

.data-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: top;
}

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

.data-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--brand-primary-dark);
}

.tag-vendor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
}

/* ==========================================================================
   三步极速安装 + macOS 首次打开指引（解决 ad-hoc 签名拦截）
   ========================================================================== */

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-body);
}

/* Gatekeeper 解决方法卡片 */
.gatekeeper-box {
  background: linear-gradient(135deg, #161829 0%, #1d1838 100%);
  color: #f4f6fa;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: var(--shadow-md);
}

.gatekeeper-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.gatekeeper-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gatekeeper-title h3 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.gatekeeper-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.gatekeeper-methods {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.gk-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px 18px;
}

.gk-panel h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #e9d5ff;
  margin-bottom: 8px;
}

.gk-panel p {
  font-size: 13px;
  color: rgba(244, 246, 250, 0.8);
  line-height: 1.65;
}

.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cmd-box code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #6ee7b7;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: rgba(124, 58, 237, 0.65);
}

.copy-btn.is-copied {
  background: #059669;
}

/* ==========================================================================
   版本信息、校验和与更新日志
   ========================================================================== */

.release-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.release-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.release-head img {
  width: 56px;
  height: 56px;
}

.release-head h3 {
  font-size: 20px;
  font-weight: 800;
}

.release-head p {
  font-size: 13px;
  color: var(--text-muted);
}

.release-notes {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-body);
}

.release-notes li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.release-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  margin-top: 9px;
  flex-shrink: 0;
}

.checksum-panel {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.artifact-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(20, 18, 38, 0.06);
  border: 1px solid var(--border);
}

.artifact-tab {
  padding: 6px 6px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-body);
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artifact-tab:hover:not(.is-active) {
  color: var(--text-strong);
}

.artifact-tab.is-active {
  background: var(--surface);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.sha-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sha-dl-mini {
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--emerald-soft);
}

.sha-dl-mini:hover {
  background: #d1fae5;
}

.checksum-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.checksum-kv span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.checksum-kv strong {
  font-size: 13.5px;
  color: var(--text-strong);
}

.sha-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.sha-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.sha-row-head span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.sha-copy-mini {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
}

.sha-copy-mini:hover {
  background: var(--brand-border);
}

.sha-value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-body);
  word-break: break-all;
  line-height: 1.5;
}

/* ==========================================================================
   FAQ 手风琴
   ========================================================================== */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-chevron {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.16s ease, color 0.16s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.72;
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface-subtle);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--brand-primary-dark);
}

/* ==========================================================================
   底部行动转化卡片 + 页脚
   ========================================================================== */

.cta-banner {
  border-radius: var(--radius-xl);
  padding: 42px 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.22), transparent 46%),
    radial-gradient(circle at 88% 82%, rgba(167, 139, 250, 0.30), transparent 50%),
    linear-gradient(135deg, #17152c 0%, #24194a 55%, #161826 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-stage);
}

.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 600px;
}

.cta-banner-left img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

.cta-banner h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 850;
  line-height: 1.25;
  margin-bottom: 6px;
}

.cta-banner p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
}

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

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 13px;
  background: #fff;
  color: #16142b;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition: transform 0.16s ease;
}

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

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.16s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.20);
}

.site-footer {
  margin-top: 52px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-body);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Toast 与仅本地预览可见的站点切换器
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  background: #14171c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.toast a {
  color: #6ee7b7;
  text-decoration: underline;
}

.preview-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.preview-switcher.is-visible {
  display: inline-flex;
}

.preview-switch-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  transition: all 0.15s ease;
}

.preview-switch-btn.is-active {
  background: #7c3aed;
  color: #fff;
}

.preview-sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 2px;
}

/* ==========================================================================
   响应式适配（平板 & 手机端）
   ========================================================================== */

@media (max-width: 1180px) {
  .floating-icon-badge {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .col-7, .col-5, .col-4, .col-6 {
    grid-column: span 12;
  }

  .install-grid,
  .gatekeeper-methods,
  .release-card {
    grid-template-columns: 1fr;
  }

  .top-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    height: 60px;
  }

  .site-brand-text small,
  .btn-ghost {
    display: none;
  }

  .hero-trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .trust-chip {
    padding: 9px 10px;
  }

  .floating-icon-badge,
  .win-app-chip,
  .macos-menubar-left .menu-dim {
    display: none;
  }

  .artifact-tabs {
    grid-template-columns: 1fr;
  }

  .stage-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 28px 22px;
  }

  .cta-banner-left {
    flex-direction: column;
    align-items: flex-start;
  }
}
