:root {
  --ink: #101820;
  --muted: #5e6a71;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --line: #dce3e1;
  --teal: #176b65;
  --teal-dark: #0c4845;
  --amber: #d58a12;
  --green: #4f8d5b;
  --red: #b44a3f;
  --steel: #465869;
  --shadow: 0 18px 45px rgba(14, 25, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Inter",
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: #f7fbf9;
  background: rgba(11, 22, 26, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  color: #0c3431;
  background: #cfe9df;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: min(760px, 86vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #0d1a1f;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 15, 18, 0.82) 0%, rgba(6, 15, 18, 0.58) 46%, rgba(6, 15, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 15, 18, 0.58) 0%, rgba(6, 15, 18, 0.04) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 86px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 760;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #09211e;
  background: #d7f4e8;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.summary-band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  background: var(--line);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.summary-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 22px 18px;
  background: #ffffff;
}

.summary-value {
  overflow: hidden;
  color: var(--teal-dark);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.downloads-section,
.updates-section,
.about-section {
  padding: clamp(54px, 9vw, 92px) 0;
}

.downloads-section {
  background: linear-gradient(180deg, #f7faf8 0%, #f2f6f4 100%);
}

.updates-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-section {
  background: #f8faf7;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(31, 47, 54, 0.06);
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: var(--steel);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tab-button {
  min-height: 38px;
  padding: 8px 13px;
  color: var(--steel);
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
}

.tab-button:hover,
.tab-button:focus-visible,
.tab-button.is-active {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

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

.file-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 302px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(28, 43, 48, 0.08);
}

.file-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.file-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--teal);
}

.file-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--teal-dark);
  background: #e3f2ed;
  border: 1px solid #c8e2d8;
  font-size: 12px;
  font-weight: 780;
}

.status-pill.draft {
  color: #704b09;
  background: #fff1d4;
  border-color: #f0d39c;
}

.file-body {
  min-width: 0;
}

.file-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.meta-row span {
  padding: 4px 8px;
  color: #31424c;
  background: #f1f4f2;
  border: 1px solid #e1e7e4;
  font-size: 12px;
  font-weight: 700;
}

.file-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hash {
  min-width: 0;
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.download-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-link.is-disabled {
  color: #465057;
  background: #e5ebe8;
  pointer-events: none;
}

.empty-state {
  margin: 26px 0 0;
  padding: 18px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-date {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.timeline-title {
  margin: 0;
  font-size: 17px;
  font-weight: 820;
}

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

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.45fr);
  gap: clamp(28px, 7vw, 86px);
}

.about-copy {
  display: grid;
  gap: 12px;
  color: #33424a;
  font-size: 17px;
}

.about-copy p {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.76);
  background: #0e181d;
  font-size: 14px;
}

.site-footer a {
  color: #d7f4e8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .toolbar,
  .two-column,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    justify-content: flex-start;
  }

  .downloads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    min-height: 62px;
    padding: 12px 16px;
  }

  .brand-text {
    max-width: 44vw;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    padding: 118px 0 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 15, 18, 0.88) 0%, rgba(6, 15, 18, 0.7) 64%, rgba(6, 15, 18, 0.26) 100%),
      linear-gradient(0deg, rgba(6, 15, 18, 0.64) 0%, rgba(6, 15, 18, 0.08) 46%);
  }

  .button {
    width: 100%;
  }

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

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

  .file-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .download-link {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  background: #f8faf7;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1;
}

.error-page p {
  margin: 0 0 8px;
  color: var(--muted);
}
