:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #11140f;
  --muted: #626a5f;
  --line: #dfe3da;
  --accent: #155f45;
  --accent-soft: #edf5ef;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(246, 247, 244, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.menu {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
}

.menu > button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  display: none;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(25, 34, 22, .12);
}

.menu:hover .menu-panel,
.menu:focus-within .menu-panel {
  display: grid;
  gap: 8px;
}

.menu-panel a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
}

.menu-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.back-link {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.hero {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(320px, 1.06fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.version-hero {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  padding: 70px 0 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
}

.hero-card,
.software-card,
.records,
.record {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(38, 46, 32, .08);
}

.hero-card {
  padding: 26px;
}

.hero-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.hero-card .row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.software-card {
  padding: 28px;
}

.software-card p {
  color: var(--muted);
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.meta div {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.meta div:last-child {
  border-right: 0;
}

.meta small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

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

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.btn.muted {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.version-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  padding: 42px 0 76px;
}

.version-filter {
  display: grid;
  gap: 10px;
  align-self: start;
}

.version-filter button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.version-filter button.is-active {
  border-color: var(--ink);
  font-weight: 900;
}

.records {
  overflow: hidden;
}

.record {
  box-shadow: none;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 26px 30px;
}

.record:last-child {
  border-bottom: 0;
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.record h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

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

.record ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.download-modal[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 20, 15, 0.42);
}

.download-dialog {
  width: min(460px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(17, 20, 15, 0.2);
}

.download-dialog h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.download-dialog p {
  color: var(--muted);
}

.download-dialog dl {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.download-dialog dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.download-dialog dt {
  color: var(--muted);
}

.download-dialog dd {
  margin: 0;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .version-hero,
  .section-head,
  .software-grid,
  .version-layout {
    grid-template-columns: 1fr;
  }

  .menu,
  .back-link {
    position: static;
    transform: none;
    margin-top: 10px;
  }

  .site-header {
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }
}

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

  .meta,
  .download-dialog dl div {
    grid-template-columns: 1fr;
  }

  .meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .meta div:last-child {
    border-bottom: 0;
  }

  .actions,
  .dialog-actions {
    flex-direction: column;
  }
}
