:root {
  color-scheme: light;
  --ink: #191729;
  --muted: #575568;
  --paper: #faf9fd;
  --line: #e4e0ed;
  --dark: #131123;
  --dark-text: #f9f7ff;
  --dark-muted: #c5c0d6;
  --violet: #5632c4;
  --lilac: #c7b5ff;
  --heading-font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --body-font: Inter, system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--body-font); }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading-font); }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.15; letter-spacing: -.065em; font-weight: 760; }
h2 { font-size: clamp(1.95rem, 3.35vw, 3.05rem); line-height: 1.25; letter-spacing: -.055em; }
h3 { font-size: 1.13rem; line-height: 1.45; }
:focus-visible { outline: 3px solid #a88bfb; outline-offset: 4px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 12px; left: 12px; transform: translateY(-200%); background: white; color: var(--ink); padding: 8px 14px; }
.skip:focus { transform: none; }
.masthead { color: var(--dark-text); background: var(--dark); }
.topbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #322c46; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-weight: 760; font-size: 1.06rem; letter-spacing: -.025em; white-space: nowrap; }
.brand-icon { display: grid; grid-template-columns: 7px 7px; grid-template-rows: 7px 7px; gap: 3px; transform: rotate(-13deg); }
.brand-icon i { display: block; border-radius: 2px; background: #beacff; }
.brand-icon i:nth-child(2) { background: #8d70ef; }
.brand-icon i:nth-child(3) { background: #a991fa; }
.brand-icon i:nth-child(4) { background: #7655df; }
nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 34px); }
nav a { color: var(--dark-muted); text-decoration: none; font-size: .875rem; white-space: nowrap; }
nav a:hover { color: white; }
nav .nav-download { color: var(--lilac); }
.hero { display: grid; min-height: 550px; grid-template-columns: 1fr 1.07fr; align-items: center; gap: clamp(22px, 4vw, 65px); padding: 62px 0 74px; }
.hero-copy h1 span { display: block; color: var(--lilac); }
.eyebrow, .section-label { font-size: .875rem; font-weight: 760; letter-spacing: .06em; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--lilac); margin-bottom: 20px; }
.eyebrow > span { display: block; height: 1px; width: 22px; background: var(--lilac); }
.hero-summary { margin-top: 23px; color: var(--dark-muted); max-width: 31rem; }
.hero-actions, .download-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; font-size: .92rem; font-weight: 750; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
button.button { cursor: pointer; }
button.button:disabled { cursor: wait; opacity: .7; }
.primary { color: #21113f; background: #c6b3ff; }
.primary:hover { background: #dccfff; }
.subtle { color: var(--dark-text); background: #211d34; border-color: #504568; }
.subtle:hover { background: #332b4b; }
.neutral { color: var(--ink); background: white; border-color: #dcd4ef; }
.neutral:hover { background: #f0eafa; }
.hero-meta { margin-top: 16px; color: #b6b0c7; font-size: .85rem; }
.hero-meta span, .file-meta span { padding-inline: .25rem; }
.hero-art { position: relative; border-radius: 22px; background: #19132d; overflow: hidden; box-shadow: 0 22px 60px #09071290; }
.hero-art img { width: 100%; }
.hero-art::after { position: absolute; inset: 0; border: 1px solid #c0a7ff30; border-radius: inherit; content: ""; pointer-events: none; }
.block { padding-block: clamp(53px, 7vw, 90px); }
section[id] { scroll-margin-top: 24px; }
.section-label { margin-bottom: 11px; color: var(--violet); }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: end; }
.split-heading > p, .section-intro { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 27px; }
.features article { padding: 26px 23px; background: white; }
.features h3 { margin-top: 13px; }
.features p, .exercise-steps p { color: var(--muted); margin-top: 6px; }
.feature-glyph { display: grid; place-items: center; position: relative; width: 36px; height: 36px; border-radius: 9px; color: var(--violet); background: #eee8ff; }
.feature-glyph::before, .feature-glyph::after { content: ""; display: block; position: absolute; }
.stack::before { width: 14px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; top: 10px; left: 10px; }
.stack::after { width: 14px; height: 10px; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; border-radius: 2px; top: 15px; left: 13px; }
.search::before { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; left: 10px; top: 10px; }
.search::after { width: 8px; height: 1.5px; transform: rotate(45deg); top: 22px; left: 19px; background: currentColor; }
.calendar::before { width: 16px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; }
.calendar::after { width: 15px; height: 1.5px; background: currentColor; top: 15px; }
.exercise-band { background: #f2eff9; border-block: 1px solid var(--line); }
.exercise { display: grid; grid-template-columns: .82fr 1fr; gap: clamp(30px, 7vw, 100px); }
.section-intro { margin-top: 12px; max-width: 38rem; }
.exercise-steps { margin: 0; padding: 0 0 0 1.5em; }
.exercise-steps li { padding: 13px 0 13px 8px; border-bottom: 1px solid #dcd4ea; }
.exercise-steps li:first-child { padding-top: 3px; }
.exercise-steps li:last-child { border: 0; padding-bottom: 0; }
.exercise-steps li::marker { color: var(--violet); font-weight: bold; }
.download-panel { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(25px, 5vw, 64px); border: 1px solid #e1d8f3; background: linear-gradient(125deg, #f2eaff, #faf7ff 65%); border-radius: 18px; padding: clamp(22px, 4.5vw, 51px); }
.download-content > p:not(.section-label) { color: var(--muted); margin-top: 11px; }
.download-content .file-meta { font-weight: 650; font-size: .875rem; }
.download-content .signing { font-size: .86rem; }
.download-content .download-status { font-size: .875rem; }
.download-content .download-status:empty { display: none; }
.download-actions { margin-top: 18px; }
.download-icon { width: 15px; height: 13px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; position: relative; margin-top: 2px; }
.download-icon::before { content: ""; width: 1.5px; height: 8px; position: absolute; background: currentColor; top: -3px; left: 5.25px; }
.download-icon::after { content: ""; width: 5.5px; height: 5.5px; position: absolute; border: 1.5px solid currentColor; border-top: 0; border-left: 0; transform: rotate(45deg); top: 0; left: 3.3px; }
.integrity { min-width: 0; padding: 20px; border-radius: 12px; border: 1px solid #e1d8f3; background: white; }
.integrity-title { font-weight: 750; }
.integrity-file { color: var(--muted); font-size: .84rem; margin-top: 3px; overflow-wrap: anywhere; }
.integrity code { display: block; color: #35275e; background: #f6f3fc; border-radius: 6px; padding: 10px; margin-top: 12px; font-size: .85rem; overflow-wrap: anywhere; user-select: all; }
.integrity-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.integrity-actions a, .integrity-actions button { color: var(--violet); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.integrity-actions button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.copy-status { color: var(--muted); font-size: .875rem; display: block; }
.copy-status:not(:empty) { margin-top: 8px; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); padding: 21px 0 24px; }
.footer-brand { font-size: .93rem; color: var(--ink); }
.guide { max-width: 790px; }
.guide h1 { font-size: clamp(2.2rem, 5vw, 3.55rem); }
.guide .exercise-steps { margin-block: 28px; }
.guide .exercise-steps h2 { font-size: 1.22rem; letter-spacing: -.01em; }
.guide a:not(.button) { color: var(--violet); text-underline-offset: 3px; }
.guide pre { background: #eee9f8; color: #33264f; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border-radius: 8px; }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-block: 54px 61px; gap: 23px; }
  .hero-actions { gap: 8px; }
  .features article { padding: 21px 17px; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 36px); }
  .topbar { min-height: 71px; gap: 12px; flex-wrap: wrap; padding-block: 13px; }
  nav { gap: 14px; }
  .hero, .split-heading, .features, .exercise, .download-panel { grid-template-columns: 1fr; }
  .hero { padding-block: 41px 36px; gap: 24px; }
  .hero-summary { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-art { border-radius: 15px; }
  .hero-art img { aspect-ratio: 16 / 10; object-fit: cover; }
  .split-heading { gap: 9px; }
  .features { margin-top: 20px; }
  .download-panel { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
