:root {
  color-scheme: light;
  --bg-top: #fff8ef;
  --bg-bottom: #f4f7fb;
  --card: rgba(255, 255, 255, 0.92);
  --card-border: rgba(212, 175, 116, 0.28);
  --text-main: #1d2433;
  --text-muted: #677489;
  --accent: #ad7b2f;
  --accent-deep: #8c5d17;
  --accent-soft: rgba(173, 123, 47, 0.12);
  --shadow: 0 24px 64px rgba(21, 29, 42, 0.12);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 170, 0.55), transparent 32%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text-main);
}

.download-shell {
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
  display: grid;
  gap: 20px;
}

.hero-card,
.details-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 28px;
}

.brand-chip {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #c79b4d, #9d6518);
}

.eyebrow {
  margin: 20px 0 8px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.lead {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.status-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 175, 116, 0.18);
}

.status-label {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.status-item strong {
  font-size: 20px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.download-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.download-button {
  background: linear-gradient(135deg, #cfa65b, #9f671a);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(159, 103, 26, 0.26);
}

.download-button:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.download-button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.secondary-link {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}

.force-update {
  margin-top: 18px;
  color: #b42318;
  font-weight: 700;
}

.details-card {
  padding: 24px 28px 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 22px;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.changelog-block {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(247, 248, 250, 0.92);
  border: 1px solid rgba(31, 122, 140, 0.08);
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  line-height: 1.8;
  color: var(--text-main);
}

@media (max-width: 720px) {
  .download-shell {
    width: min(100vw - 20px, 100%);
    padding: 20px 0 28px;
  }

  .hero-card,
  .details-card {
    border-radius: 22px;
  }

  .hero-card,
  .details-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
