:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-subtle: #f4f4f5;
  --ink: #09090b;
  --ink-secondary: #52525b;
  --ink-muted: #71717a;
  --border: #e4e4e7;
  --border-subtle: #eaeaea;
  --ring: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --green: #10b981;
  --green-bg: #ecfdf5;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航栏 */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  border-radius: 6px;
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-pill {
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.contact-pill:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

/* 按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.99);
}

.btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 9px;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #27272a;
}

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

.btn-secondary:hover {
  background: #e4e4e7;
}

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

.btn-outline:hover {
  background: var(--bg);
  border-color: #d4d4d8;
}

/* 公告条 */
.announce-ribbon {
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 13px;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-secondary);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.dot-green {
  background: var(--green);
}

.dot-blue {
  background: var(--blue);
}

/* Hero 首屏 */
.hero-section {
  padding: 76px 0 68px;
  background: radial-gradient(circle at 50% 0%, #f4f4f5 0%, #ffffff 68%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-inner {
  text-align: center;
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--ring);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.hero-title {
  margin: 0 auto 20px;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 48px;
}

.hero-meta .sep {
  color: var(--border);
}

/* 三阶段流水线示意卡 */
.pipeline-preview {
  display: flex;
  align-items: stretch;
  gap: 12px;
  text-align: left;
  background: var(--bg);
  padding: 16px;
  border-radius: 14px;
  box-shadow: var(--ring);
}

.pipe-step {
  flex: 1;
  background: var(--surface);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--ring);
}

.pipe-step.active {
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), var(--shadow-sm);
}

.pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  flex: none;
}

.pipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.pipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  padding: 2px 8px;
  border-radius: 999px;
}

.pipe-badge.green {
  background: var(--green-bg);
  color: #047857;
}

.pipe-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--ink);
}

.pipe-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* 通用分区 */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section.alt-bg {
  background: var(--bg);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

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

/* 4 步安装向导网格 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--ring), var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-card.highlight-step {
  box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-md);
}

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

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.step-head-row .step-num {
  margin-bottom: 0;
}

.must-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

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

.step-card code,
.faq-body code,
.pair-box code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface-subtle);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.mock-box {
  margin-top: auto;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--ring);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.mock-tree {
  display: flex;
  flex-direction: column;
  padding-left: 22px;
  color: var(--ink-muted);
  font-size: 11.5px;
}

.copy-bar-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 7px 10px;
  border-radius: 8px;
  box-shadow: var(--ring);
}

.copy-bar code {
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 500;
  color: var(--ink);
}

.copy-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: #a1a1aa;
}

.mock-switch-box {
  margin-top: auto;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--ring);
}

.mock-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-switch-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

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

.fake-toggle {
  width: 38px;
  height: 21px;
  border-radius: 999px;
  background: var(--ink);
  position: relative;
  flex: none;
}

.fake-toggle i {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 核心功能网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--ring);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg);
  box-shadow: var(--ring);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

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

.feature-card p:last-child {
  margin-bottom: 0;
}

/* 批量导入与素材配对 */
.pairing-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pair-box {
  background: var(--bg);
  border-radius: 11px;
  padding: 18px 20px;
  box-shadow: var(--ring);
}

.pair-box h4 {
  margin: 6px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.pair-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.code-showcase {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--ring), var(--shadow-sm);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.code-tab {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.code-tab:hover {
  color: var(--ink);
}

.code-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--ring), var(--shadow-sm);
}

.code-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-pre {
  margin: 0;
  padding: 20px 22px;
  background: #09090b;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--ring);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink-muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
  font-size: 14px;
}

/* 页脚 */
.site-footer {
  padding: 40px 0 48px;
  background: var(--surface);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13px;
}

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

.footer-legal {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.65;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 840px) {
  .nav-links {
    display: none;
  }
  .pipeline-preview {
    flex-direction: column;
  }
  .pipe-arrow {
    transform: rotate(90deg);
  }
  .steps-grid,
  .feature-grid,
  .pairing-modes {
    grid-template-columns: 1fr;
  }
}
