:root {
  /* 浅色蓝紫主题 —— 暖白底 + Forge 品牌靛蓝 */
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: rgba(15, 23, 42, 0.10);
  --fg: #1a2029;
  --muted: #6b7683;
  --accent: #4f6ef7;
  --accent-2: #3b54e0;
  --accent-deep: #1e3a8a;
  --cool: #2563eb;
  --grad-accent: linear-gradient(115deg, #1e3a8a 0%, #3b6ef7 45%, #6d8bff 100%);
  --grad-accent-2: linear-gradient(135deg, #4f6ef7 0%, #3b54e0 100%);
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
img { max-width: 100%; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* 顶部导航：白色磨砂 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand-mark {
  display: block; width: 34px; height: 34px; border-radius: 13px;
  background: url('/assets/favicon.svg') center / cover no-repeat;
  box-shadow: 0 4px 16px rgba(26, 30, 42, 0.30);
}
.site-nav { display: flex; gap: 30px; color: var(--muted); font-size: 15px; align-items: center; }
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--fg); }

/* Hero 区：页面顶部光晕（已无 hero 文案，保留给特性区顶部柔和氛围） */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-accent-2); border-radius: 2px; }

.cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px; font-size: 16px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn.primary {
  background: var(--grad-accent-2); color: #fff;
  box-shadow: 0 10px 30px rgba(59, 84, 224, 0.28);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(59, 84, 224, 0.36); }
.btn.ghost { background: #fff; border-color: var(--border); color: var(--fg); }
.btn.ghost:hover { border-color: rgba(15,23,42,0.24); }
.btn.sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.hint { color: var(--muted); }
.hint[hidden] { display: none; }

/* 分区标题 */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 16px 0 0; color: var(--fg); }

/* 特性 */
.features { padding: 88px 0 48px; position: relative; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 30px 28px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
  background: radial-gradient(60% 60% at 50% 0%, rgba(79, 110, 247, 0.10), transparent 70%);
}
.feature:hover { transform: translateY(-4px); border-color: rgba(79, 110, 247, 0.5); box-shadow: 0 12px 32px rgba(15,23,42,0.08); }
.feature:hover::after { opacity: 1; }
.feature .ico {
  width: 42px; height: 42px; margin-bottom: 18px; border-radius: 11px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-2);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; color: var(--fg); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* 下载 */
.download { padding: 48px 0 96px; }
.dl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 900px; margin: 0 auto;
}
.dl-card {
  display: flex; flex-direction: column; gap: 22px;
  padding: 32px 34px; border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f2f4f7);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.dl-card .dl-body { display: flex; flex-direction: column; gap: 8px; }
.dl-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--fg); }
.dl-meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; font-family: var(--font-mono); }
.dl-sub { margin: 0; color: var(--muted); font-size: 14px; }
.dl-card .btn { align-self: flex-start; }
.dl-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 2px; }
.qr-toggle svg { width: 16px; height: 16px; }

/* 二维码弹窗 */
.qr-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.qr-modal[hidden] { display: none; }
.qr-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px);
}
.qr-dialog {
  position: relative; background: #fff; border-radius: 16px;
  padding: 26px 28px 24px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(340px, 90vw);
  animation: qr-in 0.25s ease;
}
.qr-dialog-head { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 6px; }
.qr-dialog-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg); }
.qr-close {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.qr-close:hover { color: var(--fg); border-color: rgba(15, 23, 42, 0.24); }
.qr-box {
  width: 200px; height: 200px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  display: grid; place-items: center;
}
.qr-box img, .qr-box canvas { width: 100%; height: 100%; }
.qr-dialog-hint { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
body.qr-modal-open { overflow: hidden; }

@keyframes qr-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

.release-notes {
  max-width: 760px; margin: 28px auto 0; padding: 24px 32px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.notes-head { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: var(--font-display); }
.release-notes pre {
  margin: 0; font-family: var(--font-mono); font-size: 13px; white-space: pre-wrap; color: var(--fg);
}

/* 渐入动效 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* 页脚 */
.site-footer { padding: 40px 0 56px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.server-version { font-size: 12px; color: var(--muted); opacity: 0.85; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--fg); }

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

/* 移动端：隐藏二维码（用户已在手机上），卡片居中、按钮为主 CTA */
@media (max-width: 768px) {
  .dl-card { text-align: center; align-items: center; }
  .dl-card .btn { align-self: center; }
  .dl-qr { display: none; }
}
