:root {
  --app-bg: #f5f8fc;
  --surface: #ffffff;
  --subtle: #eef4fb;
  --nav-bg: #eaf3ff;
  --brand-deep: #102a56;
  --action: #2563eb;
  --action-hover: #1d4ed8;
  --action-soft: #e8f1ff;
  --text: #102a56;
  --secondary: #52647b;
  --muted: #7a8ba1;
  --border: #c8d9ee;
  --success: #17643c;
  --success-bg: #e4f5eb;
  color: var(--text);
  background: var(--app-bg);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--app-bg);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-deep);
  text-decoration: none;
}

.brand img {
  flex: 0 0 48px;
  border-radius: 8px;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--secondary);
  font-size: 13px;
}

.admin-link {
  color: var(--action);
  font-weight: 600;
  text-decoration: none;
}

main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 32px;
}

.intro {
  max-width: 650px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--action);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 36px;
  line-height: 1.2;
}

.intro > p:last-child {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.7;
}

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

.release-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(16, 42, 86, 0.06);
}

.platform-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.platform-label {
  margin: 0 0 8px;
  color: var(--action);
  font-size: 14px;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.release-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--success);
  background: var(--success-bg);
  font-size: 12px;
  font-weight: 700;
}

.file-meta {
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--action);
  font-weight: 700;
  text-decoration: none;
}

.download-button:hover {
  background: var(--action-hover);
}

.alternate-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--secondary);
  font-size: 13px;
}

.alternate-downloads span {
  font-weight: 600;
}

.alternate-downloads a {
  color: var(--action);
  text-decoration: none;
}

.alternate-downloads a:hover {
  text-decoration: underline;
}

details {
  margin-top: 18px;
  color: var(--secondary);
  font-size: 13px;
}

summary {
  cursor: pointer;
}

code {
  display: block;
  margin-top: 10px;
  padding: 10px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--subtle);
  font-family: Consolas, monospace;
  line-height: 1.5;
}

.install-note {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--action);
  color: var(--secondary);
  background: var(--action-soft);
  font-size: 14px;
  line-height: 1.6;
}

.install-note strong {
  flex: 0 0 auto;
  color: var(--brand-deep);
}

footer {
  padding: 22px 20px 30px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .admin-link {
    font-size: 13px;
  }

  main {
    width: min(100% - 28px, 520px);
    padding-top: 34px;
  }

  h1 {
    font-size: 29px;
  }

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

  .release-card {
    padding: 20px;
  }

  .install-note {
    display: grid;
  }
}
