:root {
  color-scheme: light;
  color: #1c1d1b;
  background: #f7f7f5;
  --paper: #f7f7f5;
  --ink: #1b201d;
  --soft: #505550;
  --line: #272e272e;
  --gold: #e6ca87;
  --heading: "Noto Serif SC", "Songti SC", SimSun, "STSong", serif;
  font: 16px/1.65 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; isolation: isolate; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #786328; outline-offset: 4px; }
[disabled] { opacity: .55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: -4rem; z-index: 2; background: var(--paper); padding: 10px; }
.skip:focus { top: 8px; }
.masthead { border-bottom: 1px solid var(--line); background: #fafaf7e8; }
.mast-inner { min-height: 61px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { font: 700 23px var(--heading); text-decoration: none; white-space: nowrap; }
.nav-download { text-decoration: none; font-size: 15px; font-weight: 650; }
.nav-download:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { min-height: clamp(350px, 54svh, 530px); display: grid; place-items: start center; padding-block: clamp(72px, 11vh, 120px) 54px; text-align: center; }
.intro { display: grid; justify-items: center; gap: 17px; }
h1 { font-size: clamp(46px, 7vw, 90px); line-height: 1.13; letter-spacing: .035em; }
h2 { font-size: clamp(29px, 3.4vw, 43px); line-height: 1.18; }
h3 { font-size: 20px; line-height: 1.3; }
.intro .platform { font-size: 13px; color: #4d534e; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 8px 20px; border: 1px solid #252a25; border-radius: 5px; background: #252a25; color: #fff; text-decoration: none; font-weight: 650; }
.cta:hover { background: #394139; }
.landscape { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #f7f7f5; }
.landscape img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 56% center; }
.landscape::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 65% 42% at 50% 28%, #fffb, #fff4 64%, transparent 100%); }
.download-band { padding-block: 34px; color: #faf9f1; background: #1f2521ed; border-block: 1px solid #50574e; }
.download-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; }
.download-inner h2 { margin-bottom: 7px; }
.download-inner p, .download-band details { color: #e3e4de; }
.download-band .cta { background: #f2f1e9; border-color: #f2f1e9; color: #252b25; }
.download-band .cta:hover { background: #fff; }
.download-band details { margin-top: 12px; }
.download-band summary { cursor: pointer; }
.download-band code { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.details-surface { background: #fafaf7ed; }
.block { padding-block: 48px; }
.section-title { margin-bottom: 23px; }
.guide ol { padding: 0; margin: 0; list-style-position: inside; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide li::marker { color: #52594f; font: 700 20px var(--heading); }
.guide li h3 { display: inline; }
.guide li p { margin-top: 5px; color: var(--soft); }
.footer { border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; background: #fafaf7ed; padding-block: 16px 74px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; }
.footer a { text-underline-offset: 4px; }
.support-trigger, .jade-panel {
  color-scheme: dark;
  color: #f8eed3;
  background: #1b2c24;
  border: 1px solid #997b46;
  box-shadow: 0 6px 18px #0c1c1a32;
}
.support-trigger {
  position: fixed;
  z-index: 2;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.support-trigger svg, .jade-close, .jade-channel { color: var(--gold); }
.support-trigger:hover { background: #2a4234; }
.support-trigger:focus-visible, .jade-panel :focus-visible, .download-band :focus-visible { outline-color: #efcf80; }
.jade-dialog { width: min(400px, calc(100% - 28px)); max-height: calc(100% - 28px); margin: auto; padding: 0; border: none; border-radius: 7px; overflow: auto; background: #1b2c24; }
.jade-dialog::backdrop { background: #0d17158c; }
.jade-panel { position: relative; border-radius: 7px; padding: 23px; }
.jade-panel h2 { font: 650 23px/1.25 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; padding-right: 37px; }
.jade-close { position: absolute; top: 13px; right: 13px; width: 40px; height: 40px; display: grid; place-content: center; border: 1px solid transparent; border-radius: 4px; background: transparent; font-size: 27px; line-height: 1; cursor: pointer; }
.jade-close:hover { border-color: #b79854; }
.jade-primary { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; padding: 9px 12px; min-height: 44px; border-radius: 4px; color: #1e2118; background: #e6ca87; font-weight: 650; text-decoration: none; }
.jade-primary:hover { background: #f2dda2; }
.jade-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.jade-copy input, .jade-copy button { min-width: 0; min-height: 43px; border: 1px solid #b69e69; border-radius: 4px; background: #101f19; color: #faedcd; padding: 6px 10px; font-size: 14px; }
.jade-copy input::placeholder { color: #d8c9a1; }
.jade-copy button:not(:disabled) { cursor: pointer; }
.jade-copy button:not(:disabled):hover { background: #263d2f; }
.jade-feedback { color: #e6dcc8; font-size: 13px; }
.jade-feedback:not(:empty) { margin-top: 6px; }
.jade-channel { display: inline-block; margin-top: 8px; font-size: 14px; text-underline-offset: 4px; }
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: 330px; padding-block: 75px 44px; }
  .landscape img { object-position: 61% center; }
  .landscape::after { background: radial-gradient(ellipse 102% 40% at 50% 28%, #fffc, #fff6 65%, transparent); }
  .guide ol { grid-template-columns: 1fr; gap: 17px; }
  .block { padding-block: 34px; }
  .support-trigger { inset-inline-end: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 330px) {
  .jade-copy { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
