:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --surface: #ffffff;
  --ink: #1e1b18;
  --muted: #5c5349;
  --line: #e4dbce;
  --accent: #a61b1b;
  --accent-hover: #881414;
  --accent-soft: #faeaea;
  --gold: #9a6b25;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(30, 27, 24, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand-icon { width: 30px; height: 30px; border-radius: 6px; }
.brand-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid transparent;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 12px; }
.btn-ghost:hover { color: var(--accent); background: rgba(166, 27, 27, 0.06); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.seal {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Showcase */
.hero-showcase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tab-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.showcase-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f2ed;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.showcase-caption {
  margin: 10px 4px 2px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 0 0 8px; font-size: 28px; }
.section-head p { margin: 0; color: var(--muted); }

/* Feature Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: #f8f1e4;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Changelog */
.changelog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.check-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px 11px 36px;
  position: relative;
  font-size: 14px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 13px;
  color: var(--accent);
  font-weight: 700;
}
.release-note-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.release-note-box h3 { margin: 0 0 12px; font-size: 18px; }
.release-note-box ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 8px;
}
.release-note-box code, .step-card code {
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}
.text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Download */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.dl-os { font-weight: 700; font-size: 16px; }
.dl-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
}
.dl-size { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.dl-btn { margin-top: auto; width: 100%; }

/* Guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}
.step-card h3 { margin: 0 0 8px; font-size: 17px; }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .hero-grid, .changelog-grid { grid-template-columns: 1fr; }
  .cards-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cards-grid, .steps-grid, .dl-grid { grid-template-columns: 1fr; }
}
