:root {
  --ink: #14110f;
  --paper: #fffaf0;
  --paper-strong: #ffffff;
  --muted: #625c54;
  --line: #ded4c2;
  --yellow: #ffd12f;
  --green: #187455;
  --cyan: #167c99;
  --red: #c94735;
  --shadow: 0 18px 36px rgba(20, 17, 15, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(20, 17, 15, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 17, 15, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fff7dc 0%, #f7fbff 44%, #fffdf7 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.topbar,
.summary,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
  background: var(--yellow);
}

.status {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.stage {
  padding-top: 40px;
}

.intro {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.summary {
  margin-top: 30px;
  padding: 12px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.summary span:first-child {
  color: var(--ink);
  font-weight: 800;
}

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

.card {
  min-height: 290px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 20px;
  box-shadow: var(--shadow);
  animation: enter 360ms ease both;
}

.card.windows {
  border-top: 10px solid var(--cyan);
}

.card.macos {
  border-top: 10px solid var(--green);
}

.card.desktop {
  border-top: 10px solid var(--red);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.platform-name {
  font-size: 14px;
  font-weight: 900;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.file-name {
  margin: 14px 0 0;
  min-height: 58px;
  font-size: 22px;
  line-height: 1.3;
  word-break: break-word;
}

.details {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.checksum {
  margin-top: 12px;
  padding: 10px;
  border-radius: 6px;
  background: var(--paper);
  color: #3d3832;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download,
.copy {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.download {
  background: var(--yellow);
  color: var(--ink);
}

.copy {
  background: var(--ink);
  color: var(--paper-strong);
}

.download:focus-visible,
.copy:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.empty,
.error {
  grid-column: 1 / -1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 22px;
  color: var(--muted);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #fff, #fff1bb, #fff);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 22px, 560px);
    padding-top: 14px;
  }

  .topbar,
  .summary,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage {
    padding-top: 24px;
  }

  h1 {
    font-size: 38px;
  }

  .intro p:last-child {
    font-size: 16px;
  }

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

  .card {
    min-height: 270px;
    padding: 16px;
  }

  .file-name {
    min-height: auto;
    font-size: 20px;
  }
}
