:root {
  color: #172033;
  background: #f4f6f8;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f4f6f8;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe3e8;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #14213d;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

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

.back-link {
  color: #42526e;
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: #1668dc;
  text-decoration: underline;
}

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

.intro {
  min-height: 250px;
  padding: 54px 0 38px;
  border-bottom: 1px solid #dfe3e8;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #1668dc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: #101828;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: #596579;
  font-size: 16px;
}

.release-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 13px;
}

.state-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #98a2b3;
}

.release-state.ready .state-dot {
  background: #12a150;
}

.release-state.error .state-dot {
  background: #d92d20;
}

.downloads {
  padding: 36px 0 44px;
}

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

.product-card {
  min-width: 0;
  min-height: 330px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(16 24 40 / 5%);
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.product-heading h2 {
  margin: 0 0 3px;
  color: #101828;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0;
}

.platform {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.version-row {
  margin: 26px 0 18px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #eaecf0;
}

.version {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.file-size,
.release-note,
.unavailable-note {
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.release-note,
.unavailable-note {
  min-height: 44px;
  margin-bottom: 18px;
}

.hash-row {
  min-width: 0;
  margin-top: auto;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
}

.hash-value {
  min-width: 0;
  padding: 8px 10px;
  overflow: hidden;
  color: #475467;
  background: #f7f8fa;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  font-family: Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #475467;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: #1668dc;
  border-color: #1668dc;
}

.download-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: #1668dc;
  border: 1px solid #1668dc;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.download-button:hover,
.download-button:focus-visible {
  background: #0958c5;
  border-color: #0958c5;
}

.download-button.disabled {
  color: #98a2b3;
  background: #f2f4f7;
  border-color: #e4e7ec;
  cursor: not-allowed;
}

.integrity {
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  align-items: end;
  gap: 36px;
  border-top: 1px solid #dfe3e8;
}

.integrity h2 {
  margin: 0;
  color: #101828;
  font-size: 22px;
  letter-spacing: 0;
}

.integrity > p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.load-error {
  padding: 18px;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
}

footer {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #667085;
  border-top: 1px solid #dfe3e8;
  font-size: 12px;
}

@media (max-width: 840px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    height: 62px;
  }

  .intro {
    min-height: 220px;
    padding: 38px 0 28px;
  }

  h1 {
    font-size: 34px;
  }

  .downloads {
    padding: 24px 0 32px;
  }

  .product-card {
    min-height: 0;
    padding: 20px;
  }

  .integrity {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  footer {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
