/* ==========================================================================
   青羽 BlueQuill 官网样式（单一样式源）
   Theme: Aurora Deep Space · 深空玻璃拟态（2026-11 视觉精修版）
   说明：index.html 不再内嵌样式，本文件是唯一来源；改版请同步抬高
         index.html 里 /styles.css?v= 与 /app.js?v= 的版本号（nginx 对
         css/js 缓存 30 天，不带版本号会命中旧缓存）。
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-base: #05070f;
  --bg-surface: #0a0f1c;
  --bg-card-top: rgba(25, 35, 60, 0.55);
  --bg-card-bottom: rgba(13, 20, 38, 0.75);

  --border-subtle: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-focus: rgba(61, 123, 253, 0.5);
  --border-active: rgba(34, 211, 238, 0.55);

  --accent-primary: #3d7bfd;
  --accent-primary-hover: #2f66f0;
  --accent-secondary: #22d3ee;
  --accent-cyan: #22d3ee;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --text-main: #eef2fb;
  --text-muted: #9aa8c0;
  --text-dim: #5d6b85;
  --text-on-accent: #ffffff;

  /* Typography（补中文栈：Windows/安卓下中文不再裸奔默认字体） */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.58);
  --shadow-glow: 0 0 35px rgba(61, 123, 253, 0.3);
  --shadow-glow-cyan: 0 0 35px rgba(34, 211, 238, 0.28);
  --card-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.055);

  /* Transitions */
  --trans-fast: 0.18s ease;
  --trans-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: rgba(61, 123, 253, 0.42);
  color: #fff;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.75);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 极淡点阵纹理：给大面积深底一个「工坊图纸」的质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.075) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Aurora Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.orb-1 {
  width: 620px;
  height: 620px;
  top: -180px;
  left: 18%;
  background: radial-gradient(circle, rgba(61, 123, 253, 0.4) 0%, rgba(34, 211, 238, 0.12) 68%, transparent 100%);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 520px;
  height: 520px;
  top: 900px;
  right: -140px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, rgba(61, 123, 253, 0.08) 70%, transparent 100%);
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 560px;
  height: 560px;
  top: 2400px;
  left: -180px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.26) 0%, rgba(34, 211, 238, 0.08) 70%, transparent 100%);
  animation: floatOrb 25s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.08); }
}

/* Utilities */
.gradient-text {
  background: linear-gradient(115deg, #7dd3fc 0%, #818cf8 52%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 46px rgba(125, 211, 252, 0.22);
}

.glass-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card-top) 0%, var(--bg-card-bottom) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-md), var(--card-inset-highlight);
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
}

@media (hover: hover) {
  .glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 169, 252, 0.38);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(61, 123, 253, 0.14), var(--card-inset-highlight);
  }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans-fast);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2f66f0 0%, #1d8fd6 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(47, 102, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2a5ae0 0%, #1782c8 100%);
  box-shadow: 0 6px 26px rgba(47, 102, 240, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.42);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.08);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 14px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.72) 0%, rgba(5, 7, 15, 0) 100%);
  transition: background var(--trans-normal), border-color var(--trans-normal);
}

.navbar.scrolled {
  background: rgba(6, 9, 18, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2f66f0 0%, #22d3ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 18px rgba(47, 102, 240, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61, 123, 253, 0.14);
  color: #9db9fb;
  border: 1px solid rgba(61, 123, 253, 0.32);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--trans-fast);
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3d7bfd, #22d3ee);
  transform: translateX(-50%);
  transition: width var(--trans-fast);
}

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

.nav-links a:hover::after {
  width: 60%;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(8, 12, 22, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px 20px;
  gap: 4px;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ⚠️ 导航响应式：窄屏收起链接与次要按钮，出汉堡菜单（旧版漏掉导致手机上导航挤爆） */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 150px 24px 90px;
  text-align: center;
}

.hero-container {
  max-width: 1080px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: rgba(61, 123, 253, 0.1);
  border: 1px solid rgba(61, 123, 253, 0.3);
  box-shadow: 0 0 22px rgba(61, 123, 253, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: #b6ccfe;
  margin-bottom: 26px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0;
  margin-bottom: 22px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 38px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero-quick-api {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  margin-bottom: 54px;
  max-width: 100%;
}

.api-label {
  color: var(--text-dim);
  font-weight: 500;
  flex-shrink: 0;
}

.api-code {
  font-family: var(--font-mono);
  color: #67c9f0;
  word-break: break-all;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}

.btn-copy:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
}

/* Mockup Window */
.hero-mockup-wrapper {
  perspective: 1000px;
  margin-top: 10px;
}

.mockup-window {
  text-align: left;
  overflow: hidden;
  border-radius: 18px;
}

/* 顶部高光缝线：让窗口像悬浮玻璃面板 */
.mockup-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.55), transparent);
  z-index: 2;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(9, 13, 24, 0.92);
  border-bottom: 1px solid var(--border-subtle);
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.light.red { background: #ff5f56; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #27c93f; }

.window-title {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-badge {
  font-size: 11px;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.window-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 380px;
}

@media (max-width: 900px) {
  .window-body {
    grid-template-columns: 1fr;
  }
}

.editor-pane {
  padding: 18px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  background: rgba(7, 10, 19, 0.55);
}

@media (max-width: 900px) {
  .editor-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.rev-tag {
  background: rgba(61, 123, 253, 0.16);
  color: #9db9fb;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(61, 123, 253, 0.28);
  flex-shrink: 0;
}

.code-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.code-line {
  display: flex;
  gap: 14px;
  padding: 3px 6px;
  border-radius: 6px;
}

.code-line .ln {
  color: var(--text-dim);
  width: 28px;
  user-select: none;
  flex-shrink: 0;
}

.code-line .code-text {
  color: #dbe4f2;
}

.highlighted-ann {
  background: rgba(34, 211, 238, 0.14);
  border-left: 3px solid var(--accent-secondary);
}

.inline-annotation-card {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(27, 40, 66, 0.9) 0%, rgba(18, 28, 50, 0.9) 100%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 211, 238, 0.08);
}

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

.ann-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.ann-badge.pending {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.32);
}

.ann-author {
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.ann-content {
  font-size: 13px;
  color: #f1f5f9;
  line-height: 1.6;
  margin-bottom: 10px;
}

.ann-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.ann-footer .status-indicator {
  color: #fbbf24;
  flex-shrink: 0;
}

.terminal-pane {
  background: #06090f;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
}

.terminal-status {
  color: #38bdf8;
  font-size: 10px;
  letter-spacing: 1.5px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 2px 8px;
  border-radius: 999px;
}

.terminal-logs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  margin: 10px 0;
}

.log-row {
  line-height: 1.55;
}

.log-row .time {
  color: var(--text-dim);
}

.log-row .action {
  font-weight: 600;
  margin: 0 4px;
}

.log-row.info .action { color: #38bdf8; }
.log-row.warn .action { color: #fbbf24; }
.log-row.highlight .action { color: #c084fc; }
.log-row.success .action { color: #34d399; }

.log-row .msg {
  color: #c3cede;
}

.terminal-foot {
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
}

/* Stats Section */
.stats-section {
  padding: 36px 24px 10px;
  position: relative;
  z-index: 1;
}

.stats-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: linear-gradient(180deg, rgba(20, 29, 52, 0.5) 0%, rgba(11, 17, 32, 0.66) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 26px 20px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.45), transparent);
}

@media (hover: hover) {
  .stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 169, 252, 0.35);
    box-shadow: var(--shadow-md), 0 0 20px rgba(61, 123, 253, 0.12);
  }
}

.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(120deg, #9db9fb 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* Standard Section Layout */
.section {
  padding: 96px 24px;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8fb4ff;
  padding: 5px 14px;
  background: rgba(61, 123, 253, 0.1);
  border: 1px solid rgba(61, 123, 253, 0.3);
  border-radius: 9999px;
  margin-bottom: 16px;
}

.section-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 52px;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.3);
  position: absolute;
  top: 18px;
  right: 24px;
  line-height: 1;
  pointer-events: none;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(61, 123, 253, 0.14);
  border: 1px solid rgba(61, 123, 253, 0.26);
  color: #9db9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: 11px;
  color: #9fb2d4;
  font-family: var(--font-mono);
  padding: 4px 11px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 9999px;
}

.step-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.active-step {
  border-color: rgba(61, 123, 253, 0.42);
  box-shadow: 0 0 28px rgba(61, 123, 253, 0.14), var(--card-inset-highlight);
}

/* Simulator / Interactive Section */
.simulator-box {
  overflow: hidden;
  border-radius: 20px;
}

.sim-toolbar {
  padding: 14px 20px;
  background: rgba(10, 15, 27, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-tabs {
  display: flex;
  gap: 10px;
}

.sim-tab {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.sim-tab.active {
  background: rgba(61, 123, 253, 0.2);
  color: #b6ccfe;
}

.sim-status {
  font-size: 12px;
  color: var(--text-dim);
}

.badge-status {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .sim-main-grid {
    grid-template-columns: 1fr;
  }
}

.sim-doc-area {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .sim-doc-area {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

.sim-doc-title {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.sim-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.sim-line {
  display: flex;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--trans-fast), box-shadow var(--trans-fast);
}

.sim-line:hover {
  background: rgba(148, 163, 184, 0.06);
}

.sim-line .ln {
  color: var(--text-dim);
  width: 20px;
  user-select: none;
  flex-shrink: 0;
}

.sim-line .txt {
  color: #dbe4f2;
}

.sim-selected {
  background: rgba(34, 211, 238, 0.14) !important;
  border-left: 3px solid var(--accent-secondary);
}

.sim-ann-creator {
  padding: 16px;
  background: rgba(7, 11, 20, 0.72);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.creator-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #9db9fb;
  font-weight: 600;
  margin-bottom: 10px;
}

.text-hint {
  color: var(--text-dim);
  font-weight: 400;
}

.creator-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 13px;
  font-family: var(--font-sans);
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.creator-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(61, 123, 253, 0.14);
}

.creator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.assign-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sim-feedback-area {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #070a11;
}

.feedback-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
}

.step-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.prog-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.prog-step.done {
  color: #34d399;
}

.prog-step.active {
  color: #8fb4ff;
}

.prog-line {
  flex-grow: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.12);
  margin: 0 8px;
}

.prog-line.done {
  background: #10b981;
}

.sim-diff-box {
  background: rgba(10, 15, 27, 0.85);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 16px;
}

.diff-header {
  padding: 8px 12px;
  background: rgba(148, 163, 184, 0.04);
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.diff-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.diff-line.del {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.55;
}

.diff-line.add {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 5px 8px;
  border-radius: 6px;
  line-height: 1.55;
}

.sim-agent-reply-box {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(25, 37, 62, 0.85) 0%, rgba(16, 26, 47, 0.85) 100%);
  border-radius: 12px;
  border: 1px solid rgba(61, 123, 253, 0.28);
}

.reply-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.agent-tag {
  font-size: 11px;
  font-weight: 700;
  color: #b6ccfe;
}

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

.reply-text {
  font-size: 12.5px;
  color: #c3cede;
  line-height: 1.6;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.glow-indigo { background: rgba(61, 123, 253, 0.15); color: #8fb4ff; }
.glow-purple { background: rgba(129, 140, 248, 0.15); color: #b3b5fd; }
.glow-cyan { background: rgba(34, 211, 238, 0.14); color: #67e8f9; }
.glow-pink { background: rgba(236, 72, 153, 0.14); color: #f472b6; }
.glow-amber { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.glow-emerald { background: rgba(16, 185, 129, 0.14); color: #34d399; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Prompt Generator Tool Section */
.prompt-tool-box {
  padding: 28px;
}

.tool-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .tool-controls {
    grid-template-columns: 1fr;
  }
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.control-group input {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.control-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(61, 123, 253, 0.14);
}

.tool-output-area {
  border-radius: 14px;
  background: #05080e;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.output-header {
  padding: 12px 18px;
  background: rgba(148, 163, 184, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.output-code {
  padding: 18px;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: auto;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c3cede;
  line-height: 1.65;
}

/* Downloads Section */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.platform-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(61, 123, 253, 0.12);
  border: 1px solid rgba(61, 123, 253, 0.26);
  color: #7fb0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.platform-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.platform-meta {
  font-size: 12px;
  color: #8fb4ff;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.platform-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 套餐加载中 / 错误态：一张居中的占位卡，不再散排 */
.pricing-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 34px 28px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 14px;
  background: rgba(11, 17, 32, 0.4);
}

.popular-card {
  border-color: rgba(61, 123, 253, 0.45);
  box-shadow: 0 0 30px rgba(61, 123, 253, 0.18), var(--card-inset-highlight);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2f66f0 0%, #1d8fd6 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.early-bird-card {
  border-color: rgba(245, 158, 11, 0.4);
}

.early-bird-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
}

.plan-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
}

.plan-price .currency {
  font-size: 20px;
  font-weight: 600;
}

.plan-price .period {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 13.5px;
  color: #c3cede;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
}

.faq-item {
  padding: 20px 24px;
  cursor: pointer;
}

.faq-item.active {
  border-color: rgba(61, 123, 253, 0.35);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(148, 163, 184, 0.07);
  color: #8fb4ff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--trans-fast), border-color var(--trans-fast), background var(--trans-fast);
}

.faq-item:hover .faq-icon {
  border-color: rgba(61, 123, 253, 0.4);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(61, 123, 253, 0.16);
  border-color: rgba(61, 123, 253, 0.4);
}

.faq-answer {
  display: none;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #7fd0f0;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 1px 6px;
  border-radius: 6px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.footer {
  background: #030509;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 24px 30px;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 123, 253, 0.45), rgba(34, 211, 238, 0.35), transparent);
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 800px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-slogan {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 14px 0 16px;
  max-width: 340px;
  line-height: 1.7;
}

.footer-status {
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color var(--trans-fast);
}

.footer-status:hover {
  color: #7fd0f0;
}

.footer-status code {
  color: #67c9f0;
  font-family: var(--font-mono);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-links-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--trans-fast);
  width: fit-content;
}

.footer-links-col a:hover {
  color: #b6ccfe;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.09);
  padding-top: 24px;
}

.footer-bottom-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.bottom-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bottom-tags span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #8fa3c2;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.05);
}

/* ==========================================================================
   动效层：滚动淡入（进入视口逐个亮起；JS 挂了/截图场景由 app.js 兜底强制点亮）
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

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

/* 深色滚动条（提示词预览等滚动区） */
.output-code::-webkit-scrollbar,
.output-code::-webkit-scrollbar-corner {
  width: 10px;
  height: 10px;
}

.output-code::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.output-code::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.38);
  background-clip: content-box;
}

.output-code::-webkit-scrollbar-track {
  background: transparent;
}
