:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --ink: #142442;
  --muted: #4a5c79;
  --blue: #164edb;
  --blue-strong: #123eb0;
  --line: #d9e4f5;
  --pale: #f2f7ff;
  background: #fff;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #e56612; outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }

.wrap { width: min(100% - 3.5rem, 73rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: #fff; z-index: 2; }
.skip:not(:focus) { transform: translateY(-150%); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .55rem;
  background: var(--blue);
  color: #fff;
  font: 800 1.25rem/1 system-ui, sans-serif;
}
.brand-text { display: flex; align-items: baseline; gap: .45rem; white-space: nowrap; }
.brand-text strong { font: 800 1.22rem/1 system-ui, sans-serif; letter-spacing: .025em; }
.brand-text span { color: var(--muted); font-size: .875rem; }
nav { display: flex; gap: clamp(1rem, 4vw, 2.75rem); }
nav a, .feedback, footer a { text-decoration: none; font-size: .9375rem; font-weight: 600; }
nav a:hover, footer a:hover { color: var(--blue); }
.feedback { padding: .45rem .85rem; border: 1px solid var(--line); border-radius: .5rem; }
.feedback:hover { background: var(--pale); border-color: #aac1ef; }

.hero { background: linear-gradient(110deg, #f5f8ff, #eaf3ff); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5.5rem); }
.eyebrow { color: var(--blue-strong); font-size: .9375rem; font-weight: 700; letter-spacing: .09em; }
h1 { margin-top: .8rem; font-size: clamp(2.9rem, 5.15vw, 4.5rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 800; }
h1 span { color: var(--blue); }
.hero-lede { max-width: 29rem; margin-top: 1.25rem; font-size: 1.0625rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.95rem;
  padding: .6rem 1.1rem;
  border-radius: .55rem;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-strong); }
.text-link { color: var(--blue-strong); font-weight: 650; text-underline-offset: .24em; }
.text-link:hover { color: var(--blue); }
.hero-image {
  aspect-ratio: 1.62;
  overflow: hidden;
  border: .32rem solid #fff;
  border-radius: 1.15rem;
  box-shadow: 0 1.05rem 2.4rem #2855a027;
  background: #d5e7fa;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }

.section { padding-block: clamp(2.5rem, 5.1vw, 4.5rem); }
.section-head { margin-bottom: 1.35rem; }
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -.035em; }
.section-head p { color: var(--muted); margin-top: .4rem; }
.patch { border: 1px solid #c5d8f9; border-radius: .95rem; background: #f8fbff; overflow: hidden; }
.patch-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: clamp(1rem, 3vw, 1.65rem); }
.patch-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.patch-heading h3 { font-size: clamp(1.25rem, 2.3vw, 1.55rem); line-height: 1.3; }
.tag { color: #153b9d; background: #e1ebff; border-radius: 100px; padding: .15rem .6rem; font-size: .875rem; font-weight: 700; }
.patch-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.15rem; margin-top: .6rem; font-size: .9375rem; }
.patch-meta div { display: flex; gap: .4rem; }
.patch-meta dt { color: var(--muted); }
.patch-meta dd, time { font-variant-numeric: tabular-nums; }
.patch-meta dd { font-weight: 650; }
.patch-description { margin-top: .6rem; color: var(--muted); }
.download-icon { position: relative; width: .95rem; height: .95rem; border-bottom: 2px solid currentColor; }
.download-icon::before { content: ""; position: absolute; top: 0; left: calc(50% - 1px); width: 2px; height: .52rem; background: currentColor; }
.download-icon::after { content: ""; position: absolute; top: .25rem; left: calc(50% - .2rem); width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; display: block; width: .55rem; height: .55rem; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15rem) rotate(45deg); }
details[open] > summary::after { transform: translateY(.1rem) rotate(225deg); }
.verification { border-top: 1px solid #dce7f9; }
.verification > summary { display: flex; align-items: center; gap: 1rem; padding: .8rem clamp(1rem, 3vw, 1.65rem); color: var(--blue-strong); font-size: .9375rem; font-weight: 650; }
.verification > summary:hover { background: #edf4ff; }
.verification-content { padding: .15rem clamp(1rem, 3vw, 1.65rem) 1.1rem; }
.verification-content p, .download-note { color: var(--muted); font-size: .9375rem; }
.verification-content code { overflow-wrap: anywhere; }
.file-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0 0 .7rem; list-style: none; }
.file-links a { color: var(--blue-strong); text-underline-offset: .23em; }
.download-note { margin-top: .85rem; }

.about { background: var(--pale); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-grid article { background: #fff; border: 1px solid var(--line); border-top: 3px solid #82a8ff; border-radius: .7rem; padding: 1.2rem; }
.feature-grid h3 { margin-bottom: .4rem; font-size: 1.125rem; }
.feature-grid p { color: var(--muted); }
.timeline { border-top: 1px solid var(--line); }
.release { border-bottom: 1px solid var(--line); }
.release summary { display: flex; align-items: center; gap: .75rem clamp(.75rem, 3vw, 1.75rem); padding-block: 1rem; }
.release summary:hover strong { color: var(--blue); }
.release-version { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .8rem; }
.release-version strong { font-size: 1.125rem; }
.release-version span, .release time { font-size: .9375rem; color: var(--muted); }
.release time { white-space: nowrap; }
.release-body { padding: 0 0 1.15rem; color: var(--muted); }
.release-body ul { margin-block: 0 .65rem; padding-left: 1.3rem; }
.release-body li + li { margin-top: .25rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 4.6rem; font-size: .9375rem; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; }

@media (max-width: 56rem) {
  .hero-grid { gap: 1.5rem; }
  h1 { font-size: clamp(2.5rem, 6vw, 3.7rem); }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0 .7rem; padding-top: .75rem; }
  .header-inner nav { order: 3; width: 100%; gap: 0; justify-content: space-between; margin-top: .35rem; }
  nav a { padding-block: .6rem; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 2.15rem; }
  .hero-image { aspect-ratio: 1.72; }
  .hero-lede { margin-top: .95rem; }
  .hero-actions { margin-top: 1.2rem; }
  .patch-summary { flex-direction: column; align-items: stretch; }
  .patch-download { align-self: start; }
  .feature-grid { grid-template-columns: 1fr; gap: .7rem; }
  .footer-inner { flex-wrap: wrap; padding-block: .8rem; }
}
