:root {
  color-scheme: light;
  --bg: #f6f1e7;
  --ink: #17201a;
  --muted: #657067;
  --line: rgba(23, 32, 26, 0.14);
  --panel: rgba(255, 252, 245, 0.82);
  --accent: #256d59;
  --accent-strong: #164938;
  --gold: #d49a2a;
  --shadow: 0 28px 80px rgba(24, 34, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 20%, rgba(212, 154, 42, 0.23), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(37, 109, 89, 0.18), transparent 30rem),
    linear-gradient(135deg, #fbf8f1 0%, var(--bg) 58%, #e8efe9 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 32, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 26, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
}

.shell {
  width: min(1040px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 92px) 0;
  display: grid;
  align-content: center;
  gap: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 11vw, 9rem);
  font-weight: 560;
  line-height: 0.86;
}

.hero-copy {
  max-width: 13rem;
  margin: 0 0 12px;
  color: var(--muted);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.downloads {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.guide-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.7);
  box-shadow: 0 18px 54px rgba(24, 34, 28, 0.1);
  backdrop-filter: blur(18px);
}

.guide-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
}

.guide-download h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 620;
  line-height: 1.08;
}

.guide-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

.guide-button {
  width: 100%;
  padding-inline: 18px;
}

.table-header,
.download-row {
  display: grid;
  grid-template-columns: 0.78fr 1.25fr 1fr 8.5rem;
  align-items: center;
  gap: 18px;
}

.table-header {
  min-height: 54px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 760;
}

.download-list {
  display: grid;
}

.download-row {
  min-height: 86px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.download-row:last-child {
  border-bottom: 0;
}

.version {
  font-variant-numeric: tabular-nums;
  font-size: 1.06rem;
}

.name {
  min-width: 0;
  font-size: 1.16rem;
  font-weight: 650;
}

.system {
  color: var(--muted);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(22, 73, 56, 0.24);
  border-radius: 6px;
  background: var(--accent);
  color: #fffdf8;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.download-button:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 28px rgba(22, 73, 56, 0.18);
  transform: translateY(-1px);
}

.download-button:focus-visible {
  outline: 3px solid rgba(212, 154, 42, 0.5);
  outline-offset: 3px;
}

.status {
  padding: 30px 24px;
  color: var(--muted);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 520px);
    align-content: start;
    padding-top: 36px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-copy {
    max-width: none;
    margin-bottom: 0;
  }

  .table-header {
    display: none;
  }

  .download-list {
    gap: 0;
  }

  .download-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 22px;
  }

  .download-row > span::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-family:
      ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 760;
  }

  .version::before {
    content: "版本";
  }

  .name::before {
    content: "名称";
  }

  .system::before {
    content: "系统";
  }

  .download-button {
    margin-top: 8px;
    width: 100%;
  }

  .guide-download {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
