:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #17212b;
  --muted: #667585;
  --line: #dce5ee;
  --blue: #2563eb;
  --blue-dark: #1749b8;
  --green: #14b88a;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(18, 32, 48, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1180px;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-shell {
  width: min(1440px, calc(100% - 72px));
  min-width: 1120px;
  margin: 0 auto;
  padding: 26px 0 38px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px 16px;
  border: 1px solid rgba(220, 229, 238, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  color: #405164;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue);
  background: #eef4ff;
}

main {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.release-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 430px;
  padding: 54px;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.1), transparent 42%),
    linear-gradient(90deg, rgba(20, 184, 138, 0.12) 0 4px, transparent 4px),
    var(--surface);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10em;
  margin: 0;
  font-size: 64px;
  line-height: 1.05;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  gap: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.primary-button.is-loading {
  pointer-events: none;
  opacity: 0.78;
}

.secondary-button {
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #eef4ff;
}

.download-status {
  min-height: 28px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.stats-box {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 138, 0.1)),
    #f8fbff;
}

.stats-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stats-title span {
  color: var(--text);
  font-weight: 900;
}

.stats-title b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0b6b55;
  font-size: 12px;
  background: rgba(20, 184, 138, 0.16);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats-row article {
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.stats-row span,
.stats-row strong {
  display: block;
}

.stats-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.stats-row strong {
  margin-top: 6px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.release-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px;
}

.file-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.release-card h2 {
  margin: 22px 0 6px;
  font-size: 30px;
}

.release-card p,
.panel p {
  color: var(--muted);
}

.release-card p {
  margin: 0 0 22px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.panel {
  padding: 26px;
}

.panel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--green);
}

.panel-icon.blue {
  background: var(--blue);
}

.panel-icon.amber {
  background: var(--amber);
}

.panel h2,
.panel h3,
.panel p {
  margin: 0;
}

.panel h2 {
  margin-top: 16px;
  font-size: 24px;
}

.panel p {
  margin-top: 10px;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 26px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.steps article > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: var(--blue);
}

.steps h3 {
  font-size: 18px;
}

.side-panel {
  align-self: start;
}

.checksum {
  display: grid;
  gap: 12px;
}

.checksum span {
  color: var(--muted);
  font-weight: 900;
}

code {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #183b76;
  background: #eef4ff;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.6;
}

.checksum button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
  background: var(--blue);
}

.note {
  margin-top: 22px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff7e7;
}

.note strong {
  color: #8a5a00;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.guide-grid strong {
  display: block;
  font-size: 17px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: #17212b;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-shell {
    width: 1120px;
    min-width: 1120px;
  }
}
