/* ---------- 基础 ---------- */
:root {
  --bg: #fafaf9;
  --bg-card: #fff;
  --text: #1a1a1a;
  --text-dim: #666;
  --text-light: #999;
  --border: #e5e5e3;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --bg-card: #1a1a1a;
    --text: #e5e5e3;
    --text-dim: #999;
    --text-light: #666;
    --border: #2a2a2a;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --shadow: 0 1px 3px rgba(0,0,0,.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,249,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .navbar { background: rgba(17,17,17,.85); }
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-download-btn {
  background: var(--accent) !important; color: #fff !important;
  padding: 6px 16px; border-radius: 20px; font-weight: 500;
}
.nav-download-btn:hover { background: var(--accent-hover) !important; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 24px 80px; text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero h1 {
  font-size: 48px; font-weight: 700; letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 18px; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 13px; color: var(--text-light);
}

/* 平台切换按钮 */
.hero-platform-switch {
  display: flex; justify-content: center; gap: 8px;
  margin: 16px 0;
}
.platform-btn {
  padding: 6px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); font-size: 13px;
  cursor: pointer; transition: all .15s; font-family: var(--font);
}
.platform-btn:hover { border-color: var(--text-light); color: var(--text); }
.platform-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* 平台标签 */
.plat-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: rgba(37,99,235,.08); color: var(--accent);
  font-weight: 400; vertical-align: middle; margin-left: 6px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: none; cursor: pointer; transition: all .15s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 14px 32px; font-size: 17px; border-radius: var(--radius); }
.btn-ghost {
  background: transparent; color: var(--text-dim); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-light); color: var(--text); }

.version-badge {
  font-size: 13px; color: var(--accent); background: rgba(37,99,235,.08);
  padding: 4px 12px; border-radius: 20px; font-weight: 500;
  font-family: var(--mono);
}

/* ---------- Hero 截图 ---------- */
.hero-screenshot {
  max-width: 860px; margin: 48px auto 0; padding: 0 24px;
}
.hero-screenshot img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .hero-screenshot img {
    box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.2);
  }
}

/* ---------- Features（图文交替） ---------- */
.features { padding: 80px 24px; }
.section-inner { max-width: 960px; margin: 0 auto; }
.features h2, .changelog h2 {
  font-size: 28px; font-weight: 600; text-align: center;
  margin-bottom: 64px; letter-spacing: -.5px;
}

.feat-row {
  display: flex; align-items: center; gap: 48px;
  margin-bottom: 80px;
}
.feat-row:last-child { margin-bottom: 0; }
.feat-row.reverse { flex-direction: row-reverse; }

.feat-text { flex: 0 0 320px; }
.feat-text .feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(37,99,235,.06); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent);
}
.feat-text h3 {
  font-size: 22px; font-weight: 600; margin-bottom: 12px;
  letter-spacing: -.3px;
}
.feat-text p {
  font-size: 15px; color: var(--text-dim); line-height: 1.7;
}

.feat-img {
  flex: 1; min-width: 0;
}
.feat-img img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ---------- 更新日志 ---------- */
.changelog { padding: 80px 24px; }
.changelog-list { max-width: 640px; margin: 0 auto; }
.changelog-item {
  border-left: 2px solid var(--border);
  padding: 0 0 32px 24px;
  position: relative;
}
.changelog-item::before {
  content: ''; position: absolute; left: -5px; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.changelog-item:first-child::before {
  width: 12px; height: 12px; left: -7px; top: 4px;
}
.changelog-version {
  font-size: 18px; font-weight: 600; font-family: var(--mono);
  margin-bottom: 4px;
}
.changelog-date {
  font-size: 13px; color: var(--text-light); margin-bottom: 12px;
}
.changelog-title {
  font-size: 15px; font-weight: 500; margin-bottom: 8px;
  color: var(--text);
}
.changelog-body {
  font-size: 14px; color: var(--text-dim); line-height: 1.7;
  white-space: pre-wrap;
}
.changelog-body code {
  background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 13px;
}
@media (prefers-color-scheme: dark) {
  .changelog-body code { background: rgba(255,255,255,.1); }
}
.changelog-downloads {
  font-size: 12px; color: var(--text-light); margin-top: 8px;
}
.load-more-wrap { text-align: center; padding-top: 16px; }

.loading {
  text-align: center; color: var(--text-light); padding: 40px 0;
  font-size: 14px;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px; text-align: center;
}
.footer p { font-size: 13px; color: var(--text-light); }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .feat-row, .feat-row.reverse {
    flex-direction: column; gap: 24px; margin-bottom: 56px;
  }
  .feat-text { flex: none; width: 100%; }
  .feat-text h3 { font-size: 18px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-screenshot { margin-top: 32px; }
  .nav-links a:not(.nav-download-btn) { display: none; }
}
