:root {
  --ink: #07182f;
  --navy: #0b2850;
  --blue: #1261c9;
  --signal: #e12636;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #cbd7e6;
  --muted: #53657b;
  --utility: "Consolas", "SFMono-Regular", monospace;
  --display: "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.72;
}
a { color: inherit; }
img { max-width: 100%; }
.release-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  color: var(--white);
  background: var(--signal);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, .96);
  backdrop-filter: blur(14px);
}
.release-nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 20px/1 var(--display);
  letter-spacing: .04em;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; object-fit: contain; }
.nav-links { display: flex; justify-content: center; gap: 28px; }
.nav-links a {
  color: #354b64;
  font-size: 14px;
  text-decoration: none;
}
.nav-links a:hover { color: var(--blue); }
.download-button {
  min-width: 112px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  color: var(--white);
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 2px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}
.download-button:hover { background: #bd1726; border-color: #bd1726; }
.download-button:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible {
  outline: 3px solid #ffb0b7;
  outline-offset: 3px;
}
.release-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.08) 50%, transparent 50.1%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    var(--ink);
  background-size: 100% 100%, 100% 52px, auto;
}
.release-ticker {
  min-height: 48px;
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.22);
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: .04em;
}
.ticker-label {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-inline: 18px;
  margin-left: -18px;
  background: var(--signal);
  font-weight: 700;
}
.ticker-status { padding-inline: 22px; }
.ticker-meta { color: #aabbd0; }
.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  align-items: center;
  gap: 54px;
  padding-block: 72px 66px;
}
.hero-copy { align-self: center; }
.release-code,
.section-code {
  margin: 0 0 18px;
  color: #9eb4cf;
  font: 700 12px/1.3 var(--utility);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.release-code::before,
.section-code::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  margin: 0 10px 3px 0;
  background: var(--signal);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font: 800 clamp(44px, 5.9vw, 78px)/1.06 var(--display);
  letter-spacing: -.055em;
}
.hero-lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: #cad5e4;
  font-size: 17px;
}
.version-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 670px;
  margin-bottom: 28px;
  border-block: 1px solid rgba(255,255,255,.24);
}
.version-cell { padding: 14px 0; }
.version-cell + .version-cell {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,.24);
}
.version-cell span {
  display: block;
  color: #8ea6c4;
  font: 11px/1.4 var(--utility);
  letter-spacing: .1em;
}
.version-cell strong { font-size: 15px; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.text-link {
  color: #d8e5f4;
  font-size: 14px;
  text-decoration-color: #7289a6;
  text-underline-offset: 5px;
}
.release-console {
  align-self: center;
  position: relative;
  border: 1px solid rgba(255,255,255,.28);
  background: #0d2340;
}
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font: 11px/1 var(--utility);
  letter-spacing: .08em;
}
.console-head i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  background: var(--signal);
  border-radius: 50%;
}
.console-head small { color: #8fa6c2; }
.client-stage {
  align-self: center;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  background: #e9eef5;
}
.client-stage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  clip-path: none;
  transform: none;
}
.system-dock {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
}
.system-dock span {
  min-width: 0;
  padding: 12px 5px;
  color: #d7e2ef;
  border-right: 1px solid rgba(255,255,255,.12);
  font: 10px/1.2 var(--utility);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}
.system-dock span:last-child { border-right: 0; }
.release-section { padding-block: 92px; }
.release-section + .release-section { border-top: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 46px;
}
.section-code { color: var(--blue); }
.section-heading h2,
.guide-intro h2,
.bulletin-title h2,
.final-copy h2 {
  margin-bottom: 14px;
  font: 800 clamp(32px, 4vw, 54px)/1.08 var(--display);
  letter-spacing: -.045em;
}
.section-heading div > p,
.guide-intro > p,
.bulletin-title > p { max-width: 720px; color: var(--muted); }
.compat-board { border-top: 3px solid var(--ink); }
.compat-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.6fr auto;
  gap: 20px;
  align-items: center;
  min-height: 88px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.compat-row strong { font: 800 20px/1.2 var(--display); }
.compat-row span { color: var(--muted); font-size: 14px; }
.compat-row .condition {
  justify-self: start;
  padding: 4px 9px;
  color: var(--blue);
  border: 1px solid #9abce7;
  font: 11px/1.3 var(--utility);
}
.compat-row .download-button { min-width: 104px; min-height: 38px; }
.log-section { background: #e9eff6; }
.log-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid #aebed1;
  border-top: 4px solid var(--blue);
}
.log-entry {
  min-height: 238px;
  padding: 28px;
  border-right: 1px solid #aebed1;
}
.log-entry:last-child { border-right: 0; }
.log-entry .log-type {
  display: block;
  margin-bottom: 45px;
  color: var(--signal);
  font: 700 11px/1.3 var(--utility);
  letter-spacing: .11em;
}
.log-entry h3 { font: 800 23px/1.2 var(--display); }
.log-entry p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.guide-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.guide-intro { position: sticky; top: 112px; }
.guide-intro .download-button { margin-top: 14px; }
.release-steps { counter-reset: release-step; border-top: 3px solid var(--ink); }
.release-step {
  counter-increment: release-step;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.release-step::before {
  content: "0" counter(release-step);
  color: var(--signal);
  font: 800 25px/1 var(--utility);
}
.release-step h3 { margin-bottom: 8px; font: 800 21px/1.2 var(--display); }
.release-step p { margin-bottom: 0; color: var(--muted); }
.bulletin-section { color: var(--white); background: var(--navy); }
.bulletin-header {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  margin-bottom: 52px;
}
.bulletin-title > p { color: #b6c5d9; }
.bulletin-note {
  align-self: end;
  padding: 18px 20px;
  border-left: 3px solid var(--signal);
  background: rgba(255,255,255,.06);
  color: #c7d4e4;
  font-size: 13px;
}
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.timeline::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: #547093;
}
.timeline article { position: relative; padding: 43px 38px 0 0; }
.timeline article::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--navy);
  border: 3px solid var(--signal);
  border-radius: 50%;
}
.timeline time { color: #9db2ce; font: 11px/1 var(--utility); letter-spacing: .12em; }
.timeline h3 { margin: 14px 0 9px; font: 800 21px/1.25 var(--display); }
.timeline p { color: #b8c7d9; font-size: 14px; }
.final-release { padding-block: 62px; background: var(--white); }
.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.final-copy h2 { margin-bottom: 8px; font-size: clamp(30px, 3.5vw, 46px); }
.final-copy p { margin-bottom: 0; color: var(--muted); }
.site-footer { padding-block: 58px 24px; color: #aebdd0; background: #051326; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr .7fr .7fr;
  gap: 50px;
}
.footer-grid h2, .footer-grid h3 { color: var(--white); font-family: var(--display); }
.footer-grid p { max-width: 520px; font-size: 14px; }
.footer-grid a { display: block; margin: 8px 0; font-size: 14px; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.copyright {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid #20324a;
  font: 11px/1.5 var(--utility);
}

@media (max-width: 900px) {
  .release-nav { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-bottom: 14px; overflow-x: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .release-console { width: min(620px, 100%); justify-self: center; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .compat-row { grid-template-columns: 1fr 1fr; }
  .compat-row .download-button { justify-self: end; }
  .log-board { grid-template-columns: 1fr; }
  .log-entry { min-height: 0; border-right: 0; border-bottom: 1px solid #aebed1; }
  .log-entry:last-child { border-bottom: 0; }
  .log-entry .log-type { margin-bottom: 18px; }
  .guide-layout { grid-template-columns: 1fr; gap: 44px; }
  .guide-intro { position: static; }
  .bulletin-header { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .release-shell { width: min(100% - 28px, 1180px); }
  .release-nav { gap: 14px; }
  .nav-links { gap: 20px; }
  .release-nav > .download-button { min-width: 96px; }
  .release-ticker { grid-template-columns: auto 1fr; }
  .ticker-meta { display: none; }
  .hero-grid { padding-block: 52px 46px; gap: 38px; }
  h1 { font-size: clamp(40px, 14vw, 60px); }
  .version-bar { grid-template-columns: 1fr; }
  .version-cell + .version-cell { padding-left: 0; border-top: 1px solid rgba(255,255,255,.24); border-left: 0; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { padding-block: 7px; }
  .system-dock { grid-template-columns: 1fr; }
  .system-dock span { padding: 11px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .release-section { padding-block: 68px; }
  .compat-row { grid-template-columns: 1fr; gap: 8px; padding-block: 23px; }
  .compat-row .download-button { justify-self: start; }
  .release-step { grid-template-columns: 48px 1fr; gap: 14px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline article { padding: 0 0 0 40px; }
  .timeline article::before { top: 3px; left: 0; }
  .final-grid, .footer-grid { grid-template-columns: 1fr; }
  .final-grid .download-button { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Hero media safety override: natural ratio, never stretched or cropped. */
.release-hero .hero-grid { align-items: center; }
.release-hero .release-console { align-self: center; }
.release-hero .client-stage {
  align-self: center;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip-path: none;
  transform: none;
}
.release-hero .client-stage img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  clip-path: none;
  transform: none;
}
