:root {
  color-scheme: dark;
  --bg: #07131d;
  --bg-deep: #050d14;
  --surface: #0b1a25;
  --surface-2: #102431;
  --line: #273c47;
  --brass: #d9a84f;
  --brass-light: #f0ca7b;
  --text: #f0e8da;
  --muted: #9aa9b2;
  --green: #5dca72;
  --amber: #e3a43b;
  --red: #e45650;
  --gray: #83919a;
  --container: 1380px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 8%, rgba(36, 78, 94, .22), transparent 30rem),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(113, 145, 153, .045) 80px),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(113, 145, 153, .035) 120px),
    var(--bg);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 max(32px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(217, 168, 79, .42);
  background: rgba(5, 14, 22, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brass-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand small {
  padding-left: 12px;
  border-left: 1px solid #4a5152;
  color: #c9c3b8;
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.brand-mark {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.brand-mark .brand-needle { fill: var(--brass); stroke: none; }

nav { display: flex; gap: 42px; }

nav a {
  color: #d2d7d8;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s ease;
}

nav a:hover, nav a:focus-visible { color: var(--brass-light); }

.hero {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  align-items: center;
  gap: 52px;
  min-height: 580px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 58px 32px;
}

.hero h1 {
  margin: 0;
  color: var(--brass-light);
  font-family: Georgia, "STSong", "SimSun", serif;
  font-size: clamp(42px, 3.85vw, 60px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: .02em;
}

.hero h1 span { white-space: nowrap; }

.hero-copy > p {
  max-width: 520px;
  margin: 24px 0 0;
  color: #d2d9dc;
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid #f0c871;
  border-radius: 6px;
  color: #16130d;
  background: linear-gradient(135deg, #edc671, #c99035);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.download-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.release-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8ec9e5;
  text-decoration: none;
}

.release-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-copy .build-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.product-window {
  overflow: hidden;
  border: 1px solid #52646a;
  border-radius: 10px;
  background: rgba(6, 16, 23, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .43);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #2f4149;
  color: var(--muted);
  font-size: 11px;
}

.window-bar strong { color: #d6d8d4; font-size: 12px; }
.window-bar i { flex: 1; }
.window-bar b { color: #c9d0d3; font-weight: 400; }
.mini-mark { color: var(--brass); font-size: 19px; }

.window-content {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(320px, 1.15fr);
  gap: 18px;
  padding: 18px;
}

.voyage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  aspect-ratio: 1;
}

.cell {
  display: grid;
  place-items: center;
  border: 2px solid var(--gray);
  border-radius: 6px;
  background: rgba(17, 34, 42, .72);
  color: #d9d2c5;
  font-family: Georgia, serif;
  font-size: 22px;
}

.cell.high { border-color: var(--green); }
.cell.medium { border-color: var(--amber); }
.cell.low { border-color: var(--red); }
.cell.unknown { border-color: var(--gray); }
.cell.selected { box-shadow: inset 0 0 0 2px rgba(93, 202, 114, .28); }

.decision-panel {
  padding: 15px 17px;
  border: 1px solid #344a54;
  border-radius: 7px;
  background: #091720;
}

.decision-panel h2 {
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #263b44;
  color: #e1bf78;
  font-size: 15px;
}

.decision-panel dl { margin: 0; }
.decision-panel dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.decision-panel dt { color: var(--muted); }
.decision-panel dd { margin: 0; color: #d6dcdd; }
.green { color: var(--green) !important; }
.amber { color: var(--amber) !important; }

.mod-list {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #253a43;
  border-radius: 5px;
}

.mod-list p {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  margin: 3px 0;
  color: #bdc8cb;
  font-size: 11px;
}

.mod-list b { color: #aebcc0; font-weight: 500; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.green-dot { background: var(--green); }
.amber-dot { background: var(--amber); }

.next-step {
  margin: 11px 0 0;
  color: var(--brass-light);
  font-size: 11px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 10px;
}

.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border: 1.5px solid; }
.legend-high { border-color: var(--green) !important; }
.legend-medium { border-color: var(--amber) !important; }
.legend-low { border-color: var(--red) !important; }
.legend-unknown { border-color: var(--gray) !important; }
.legend em { margin-left: auto; font-style: normal; }

.workflow {
  padding: 36px max(32px, calc((100vw - var(--container)) / 2));
  border-top: 1px solid rgba(217, 168, 79, .36);
  border-bottom: 1px solid rgba(217, 168, 79, .36);
  background: rgba(5, 15, 22, .74);
}

.workflow > h2, .safety h2 {
  margin: 0;
  color: var(--brass);
  font-family: Georgia, "STSong", serif;
  font-size: 25px;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 4px 24px 4px 0;
}

.workflow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 14px;
  width: 28px;
  height: 1px;
  background: #65747a;
}

.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #a77937;
  border-radius: 50%;
  color: var(--brass-light);
  font-family: Georgia, serif;
  font-size: 12px;
}

.workflow strong { font-size: 15px; }
.workflow p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.safety {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 55px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 32px;
}

.section-title p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.safety-points {
  display: grid;
  grid-template-columns: 1fr .72fr 1.3fr;
  align-items: center;
}

.safety-points > * {
  min-height: 112px;
  padding: 0 28px;
  border-left: 1px solid #2b424b;
}

.safety-points ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 22px;
  margin: 0;
  padding-top: 7px;
  list-style: none;
}

.safety-points li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 700;
}

.memory-reading, .preview-limit { display: flex; flex-direction: column; justify-content: center; }
.memory-reading span, .memory-reading small { color: var(--muted); font-size: 11px; }
.memory-reading strong { color: var(--brass-light); font-family: Georgia, serif; font-size: 29px; }
.preview-limit strong { color: var(--brass-light); }
.preview-limit p { margin: 6px 0 0; color: #b6c0c3; font-size: 12px; line-height: 1.7; }

.release {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 40px;
  padding: 30px max(32px, calc((100vw - var(--container)) / 2));
  border-top: 1px solid rgba(217, 168, 79, .38);
  border-bottom: 1px solid rgba(217, 168, 79, .38);
  background: #0a202c;
}

.release h2 { margin: 0; color: var(--brass); font-size: 25px; }
.release > div > p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.release-meta {
  display: grid;
  grid-template-columns: 115px 115px minmax(260px, 1fr);
  margin: 0;
}

.release-meta div { padding: 0 18px; border-left: 1px solid #39505a; }
.release-meta dt { color: var(--muted); font-size: 10px; }
.release-meta dd { overflow-wrap: anywhere; margin: 4px 0 0; color: #d4dcde; font-size: 11px; }

.release-actions { display: flex; gap: 9px; }
.small-download, #copy-checksum {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--brass);
  border-radius: 5px;
  color: var(--brass-light);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.small-download { display: inline-flex; align-items: center; }
#copy-checksum:hover, .small-download:hover { background: rgba(217, 168, 79, .1); }

footer {
  display: flex;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 27px 32px 38px;
  color: #75868e;
  font-size: 11px;
}

footer p { margin: 0; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 740px; }
  .safety { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; }
  .release-actions { justify-self: start; }
}

@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 0 18px; }
  .brand { font-size: 15px; }
  .brand small, nav { display: none; }
  .hero { min-height: auto; padding: 42px 18px; }
  .hero h1 { font-size: 39px; }
  .hero h1 span { white-space: normal; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .window-content { grid-template-columns: 1fr; }
  .legend { flex-wrap: wrap; }
  .legend em { width: 100%; margin-left: 0; }
  .workflow { padding: 32px 18px; }
  .workflow ol { grid-template-columns: 1fr; gap: 20px; }
  .workflow li:not(:last-child)::after { display: none; }
  .safety { gap: 25px; padding: 38px 18px; }
  .safety-points { grid-template-columns: 1fr; }
  .safety-points > * { min-height: auto; padding: 20px 0; border-top: 1px solid #2b424b; border-left: 0; }
  .safety-points ul { grid-template-columns: 1fr; }
  .release { gap: 24px; padding: 32px 18px; }
  .release-meta { grid-template-columns: 1fr; gap: 14px; }
  .release-meta div { padding-left: 12px; }
  .release-actions { flex-wrap: wrap; }
  footer { display: block; padding: 24px 18px 36px; }
  footer p + p { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
