/* ============================================================
   HarmonyAIDraw 官网样式
   色板源自产品 logo 渐变：#3EE6C4 → #3B82F6（深底 #0A101C → #1C2E4A）
   参考 ccswitch.io 的现代开发者工具落地页风格
   ============================================================ */

/* ---------- 设计 token ---------- */
:root {
  --font-sans: "Inter", "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fira Code", "JetBrains Mono", "Cascadia Code", "SF Mono",
    Consolas, "Liberation Mono", "Courier New", monospace;

  /* 亮色 */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #101828;
  --text-2: #475467;
  --text-3: #98a2b3;

  --brand-grad: linear-gradient(120deg, #0d9488, #2563eb);
  --brand-teal: #0d9488;
  --brand-blue: #2563eb;
  --link: #1d4ed8;

  --code-bg: #0b1220;
  --code-text: #e6edf7;

  --hero-glow:
    radial-gradient(600px 300px at 20% 0%, rgba(62, 230, 196, 0.14), transparent),
    radial-gradient(800px 400px at 80% 10%, rgba(59, 130, 246, 0.16), transparent);
  --shadow-card: 0 1px 2px rgb(16 24 40 / 0.06), 0 4px 16px rgb(16 24 40 / 0.08);
  --shadow-card-hover: 0 4px 8px rgb(16 24 40 / 0.08), 0 12px 32px rgb(16 24 40 / 0.12);

  --header-bg: rgba(255, 255, 255, 0.85);
  --grad-border: linear-gradient(120deg, rgba(62, 230, 196, 0.6), rgba(59, 130, 246, 0.6));

  color-scheme: light dark;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0e1728;
  --surface: #111c30;
  --surface-2: #16233c;
  --border: #1f2d4a;
  --border-strong: #2c3d61;
  --text: #f2f6fc;
  --text-2: #b3c0d6;
  --text-3: #7e8ca6;

  --brand-grad: linear-gradient(120deg, #3ee6c4, #3b82f6);
  --brand-teal: #3ee6c4;
  --brand-blue: #4d9cff;
  --link: #7cf5dd;

  --code-bg: #0d1526;
  --code-text: #e6edf7;

  --hero-glow:
    radial-gradient(600px 300px at 20% 0%, rgba(62, 230, 196, 0.12), transparent),
    radial-gradient(800px 400px at 80% 10%, rgba(59, 130, 246, 0.18), transparent);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.40), 0 8px 32px rgb(0 0 0 / 0.35);
  --shadow-card-hover: 0 2px 4px rgb(0 0 0 / 0.45), 0 16px 48px rgb(0 0 0 / 0.45);

  --header-bg: rgba(11, 18, 32, 0.85);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; color: var(--text-2); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code { font-family: var(--font-mono); font-size: 0.9em; }

.container {
  width: min(1152px, 100% - 3rem);
  margin-inline: auto;
}

.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head .section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 0.75rem;
}
.section-lead { font-size: 1.0625rem; margin: 0; }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex: none; }

.btn-primary {
  color: #fff;
  background: var(--brand-blue);
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgb(37 99 235 / 0.45); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--link); transform: translateY(-1px); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 8px; }

/* ---------- 徽章 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-grad);
  flex: none;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none !important;
  flex: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: auto;
}
.nav-menu a {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none !important;
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { border-color: var(--brand-blue); color: var(--link); }
.icon-btn svg { width: 18px; height: 18px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
}
.lang-switch:hover { border-color: var(--brand-blue); color: var(--link); }

/* 主题切换按钮的太阳/月亮两个 svg，按主题显隐 */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background:
    var(--hero-glow),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.125rem; max-width: 34em; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2.5rem; }

.hero-visual { position: relative; }

/* 仿浏览器窗框（包裹产品截图） */
.browser-frame {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}
.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.browser-frame-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.browser-frame-bar .addr {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  padding: 0.25rem 0.875rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-frame img, .browser-frame .frame-body { display: block; width: 100%; }

/* ---------- 指标带 ---------- */
.metrics-strip { border-block: 1px solid var(--border); background: var(--bg-soft); padding: 2.25rem 0; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.metric-item .metric-num {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-item .metric-label {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  display: block;
}

/* ---------- 特性卡 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}
.feature-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-teal);
  border: 1px solid var(--grad-border);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
}
.feature-card h3 { margin: 0; }
.feature-card h3 .grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature-card p { margin: 0; font-size: 0.9375rem; }
.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}
.feature-card ul li {
  font-size: 0.8125rem;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}
.feature-card img {
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
  display: block;
}

/* ---------- 架构区 ---------- */
.arch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.figure-card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.figure-card img { display: block; width: 100%; border-radius: 6px; }
.figure-card figcaption {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: #475467;
  text-align: center;
}

.arch-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.arch-table th, .arch-table td {
  text-align: left;
  padding: 0.7rem 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.arch-table th { color: var(--text); font-weight: 600; white-space: nowrap; }
.arch-table td { color: var(--text-2); }
.arch-table td:last-child { width: 100%; }
.arch-table .layer-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--brand-teal);
  font-weight: 600;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--grad-border);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}
.chip svg { width: 14px; height: 14px; color: var(--brand-teal); flex: none; }

/* ---------- 安装卡 ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.install-card {
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.install-card header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.install-card header .ide-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand-blue);
  flex: none;
}
.install-card header .ide-icon svg { width: 22px; height: 22px; }
.install-card header h3 { margin: 0; }
.install-card header .ver {
  font-size: 0.8125rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.install-card p { margin: 0; font-size: 0.9375rem; }
.install-card .install-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-2);
  font-size: 0.9rem;
}
.install-card .install-steps li { margin-bottom: 0.4rem; }
.install-card footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.875rem;
  color: var(--text-2);
}
.note strong { color: var(--text); }

/* ---------- 快速开始 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  background: var(--brand-grad);
  margin-bottom: 0.875rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; font-size: 0.9rem; }
.step code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  font-size: 0.8125rem;
  color: var(--text);
}

/* 终端演示块 */
.quickstart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.terminal {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  position: relative;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #16233c;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.terminal-bar .term-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #7e8ca6;
}
.terminal-body {
  margin: 0;
  padding: 1.25rem 1.4rem 1.5rem;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
}
.tok-cmd { color: #7cf5dd; font-weight: 500; }
.tok-flag { color: #ffd479; }
.tok-str { color: #a5d6ff; }
.tok-cmt { color: #7e8ca6; font-style: italic; }
.tok-out { color: #e6edf7; }
.tok-ok { color: #3ee6c4; font-weight: 600; }
.tok-prompt { color: #4d9cff; user-select: none; }

.copy-btn {
  position: absolute;
  top: 52px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.08);
  color: #e6edf7;
  font: inherit;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgb(255 255 255 / 0.16); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn .icon-check { display: none; color: #3ee6c4; }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: inline; }

/* 聊天演示 */
.chat-demo {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-msg {
  max-width: 88%;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.chat-msg.user {
  align-self: flex-end;
  color: #fff;
  background: var(--brand-blue);
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-bottom-left-radius: 4px;
}
.chat-msg.ai strong { color: var(--text); }
.chat-trace {
  align-self: flex-start;
  width: 100%;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.chat-trace ol { margin: 0; padding-left: 1.25rem; }
.chat-trace li { margin: 0.2rem 0; }
.chat-trace .trace-done { color: var(--brand-teal); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.05rem 1.4rem;
  font-weight: 600;
  font-size: 0.9688rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item .faq-answer {
  padding: 0 1.4rem 1.15rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.faq-item .faq-answer p { margin: 0; }
.faq-item .faq-answer p + p { margin-top: 0.6rem; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(62, 230, 196, 0.18), transparent),
    radial-gradient(600px 300px at 85% 100%, rgba(59, 130, 246, 0.22), transparent),
    linear-gradient(135deg, #101828, #16233c);
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(226, 236, 250, 0.8); max-width: 36em; margin: 0 auto 1.75rem; }
.cta-banner .btn-primary { background: #3ee6c4; color: #06281f; box-shadow: 0 2px 12px rgba(62, 230, 196, 0.4); }
.cta-banner .btn-primary:hover { box-shadow: 0 4px 20px rgba(62, 230, 196, 0.5); }
.cta-banner .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: #e6ecfa; }
.cta-banner .btn-ghost:hover { border-color: #3ee6c4; color: #3ee6c4; }

/* ---------- 下载页 ---------- */
.page-hero { padding: 3.5rem 0 2.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p { max-width: 40em; margin: 0.75rem auto 0; }

.dl-list { display: flex; flex-direction: column; gap: 2rem; }
.dl-card {
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.dl-card header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dl-card header .ide-icon {
  width: 48px; height: 48px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand-blue);
  flex: none;
}
.dl-card header .ide-icon svg { width: 26px; height: 26px; }
.dl-card header h2 { margin: 0; font-size: 1.375rem; }
.dl-card header .dl-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto;
}
.dl-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin: 1.25rem 0; }
.dl-req { font-size: 0.9rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.875rem; margin-top: 0.9rem; max-width: 26em; }
.footer-col h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--text-2); font-size: 0.9rem; }
.footer-col a:hover { color: var(--link); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer-bottom .footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--link); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 6rem 0; }
.error-page .err-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}
.error-page p { color: var(--text-2); }
.error-page .error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-lead { max-width: none; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .arch-layout, .quickstart-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .container { width: min(1152px, 100% - 2rem); }
  .site-header .container { height: 56px; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 0.875rem;
    box-shadow: var(--shadow-card-hover);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.7rem 0.875rem; border-radius: 8px; }
  .nav-actions .btn-download-label { display: none; }
  .nav-burger { display: inline-flex; }
  .lang-switch span { display: none; }
  .lang-switch { width: 38px; padding: 0; justify-content: center; }

  .feature-grid, .install-grid, .steps { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .dl-card header .dl-meta { margin-left: 0; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-item .metric-num { font-size: 1.15rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .step, .feature-card, .install-card, .dl-card { padding: 1.25rem; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .nav-actions, .copy-btn, .chat-demo, .hero-visual { display: none !important; }
  body { color: #000; background: #fff; }
}
