:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #172742;
  background: #fff;
  --accent: #1d54d2;
  --accent-hover: #1746b1;
  --muted: #4c5f7b;
  --line: #dbe5f4;
  --panel: #f3f7fe;
  --max-width: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid #1d54d2; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h2, h3 { line-height: 1.2; }
.container { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto; }
.skip {
  position: fixed; z-index: 2; top: 10px; left: 10px; padding: 8px 12px;
  transform: translateY(-200%); border-radius: 6px; background: white;
}
.skip:focus { transform: translateY(0); }

.masthead { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 1.15rem; font-weight: 740; text-decoration: none; }
.brand img { width: 34px; flex: none; }
.nav, .nav nav, .footer div { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.nav a, .footer a { text-decoration: none; }
.nav a { color: var(--muted); font-size: .94rem; }
.nav a:hover, .footer a:hover, .text-action:hover { color: var(--accent-hover); text-decoration: underline; }
.nav .languages { gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; white-space: nowrap; }
.languages a { padding: 5px 8px; border-radius: 6px; font-size: .875rem; }
.languages [aria-current] { background: #e6eeff; color: var(--accent-hover); font-weight: 650; }

.hero { background: linear-gradient(145deg, #f5f9ff 25%, #e7efff 100%); border-block: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.55fr; gap: 42px; align-items: center; padding-block: 66px; }
.hero-copy { min-width: 0; }
h1 { font-size: clamp(2.5rem, 4.2vw, 3.8rem); line-height: 1.09; letter-spacing: -.045em; }
h1 span { display: block; margin-top: 3px; color: var(--accent); }
:lang(zh-CN) h1, :lang(ja) h1 { letter-spacing: -.055em; font-size: clamp(2.25rem, 3.95vw, 3.45rem); line-height: 1.17; }
.hero-copy p { max-width: 36ch; margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 27px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 17px; border-radius: 9px; background: var(--accent);
  color: white; font-size: .98rem; font-weight: 690; text-align: center; text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: white; }
.text-action { font-size: .95rem; font-weight: 620; text-underline-offset: 4px; text-decoration: none; }
.requirements { margin-top: 13px; color: var(--muted); font-size: .88rem; }
.hero-image img { border: 1px solid #bfcee8; border-radius: 15px; box-shadow: 0 18px 42px #293d6826; }
.hero-image figcaption { display: block; padding: 8px 2px 0; color: var(--muted); font-size: .8rem; }

.section { padding-top: 65px; }
.section > h2, .install h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.section > h2 { margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 21px 18px; border: 1px solid var(--line); border-radius: 13px; }
.feature-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: #e8efff; color: var(--accent); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 15px; font-size: 1.13rem; }
.feature p, .format-card p { margin-top: 8px; color: var(--muted); }

.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.format-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.format-card h3 { font-size: 1.29rem; }
.sample-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.sample-pair figure { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.demo-image {
  display: grid; place-items: center;
  background-color: #f7faff;
  background-image: conic-gradient(#e2eaf8 25%, transparent 0 50%, #e2eaf8 0 75%, transparent 0);
  background-size: 20px 20px;
}
.demo-image :is(img, canvas) { width: 100%; height: auto; }
figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 10px; padding: 7px 10px; }
figcaption a { font-weight: 700; text-underline-offset: 3px; }
figcaption span, .format-card .demo-note, .format-card .demo-status { font-size: .875rem; }
figcaption span { white-space: nowrap; color: var(--muted); }
.format-card .demo-note { margin-top: 12px; }
.demo-note strong { color: var(--accent); }
.format-card .demo-status:empty { margin-top: 0; }
.demo-play {
  margin-top: 12px; padding: 7px 11px; border: 1px solid #c6d5f0; border-radius: 7px;
  color: var(--accent); background: white; font: inherit; font-size: .93rem; font-weight: 650; cursor: pointer;
}
.demo-play:hover:not(:disabled) { background: #e8efff; }
.demo-play:disabled { cursor: wait; opacity: .75; }
.still-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.still-row dt { font-weight: 740; color: var(--accent); }
.still-row dd span { display: block; margin-top: 3px; color: var(--muted); }
.small-link { display: inline-block; margin-top: 14px; font-size: .93rem; text-underline-offset: 4px; }

.install {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #eaf1ff;
}
.install p { max-width: 63ch; margin-top: 10px; color: var(--muted); }
.install-actions { justify-self: end; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; font-size: .875rem; }
.downloads a { text-underline-offset: 4px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 35px; padding-block: 25px; color: var(--muted); font-size: .875rem; }
.download-page { padding-block: 56px; }
.download-page h1 { margin-block: 26px; font-size: min(2.5rem, 8vw); }

@media (max-width: 975px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
  .hero-copy p { max-width: 50ch; }
  .hero-image { width: min(100%, 680px); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .masthead { gap: 8px; min-height: 62px; }
  .nav nav:not(.languages) { display: none; }
  .hero-inner { padding-block: 31px; }
  .hero-copy p { margin-top: 14px; font-size: 1rem; }
  .actions { margin-top: 21px; gap: 10px 14px; }
  .section { padding-top: 42px; }
  .section > h2 { margin-bottom: 16px; }
  .format-grid, .install { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 9px; }
  .feature { padding: 14px 11px; }
  .feature h3 { font-size: 1.06rem; }
  .format-card, .install { padding: 17px; }
  .sample-pair { gap: 8px; }
  .sample-pair figcaption { gap: 3px 6px; padding-inline: 7px; }
  .install-actions { justify-self: start; }
}
@media (max-width: 355px) {
  .brand { font-size: 1rem; gap: 5px; }
  .brand img { width: 29px; }
  .languages a { padding-inline: 5px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

.guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-links h3 { margin-top: 0; }
.guide-links a, .guide-related a { text-underline-offset: 3px; }
.guide { max-width: 760px; padding-block: clamp(30px, 6vw, 72px) 16px; }
.guide h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.guide-intro { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.guide h2 { margin: 36px 0 12px; font-size: 1.4rem; }
.guide ol { padding-inline-start: 1.4em; margin: 0; }
.guide li + li { margin-top: 10px; }
.guide-shot { margin-top: 22px; }
.guide-shot a { display: block; border-radius: 10px; }
.guide-shot img { width: 100%; border: 1px solid var(--line); border-radius: inherit; }
.guide-shot figcaption { display: block; padding: 6px 0 0; color: var(--muted); font-size: .9rem; }
.guide-related { margin: 22px 0 0; padding-inline-start: 1.4em; }
@media (max-width: 640px) {
  .guide-links { grid-template-columns: 1fr; }
}

.online-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .76fr); gap: clamp(20px, 4vw, 48px);
  padding: clamp(20px, 3vw, 34px); align-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.online-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; }
.online-intro p { margin-top: 8px; color: var(--muted); }
.online-intro #online-scope { color: inherit; font-weight: 600; }
.online-intro .text-action { display: inline-block; margin-top: 12px; }
.online-tools { padding-inline-start: clamp(20px, 3vw, 36px); border-inline-start: 1px solid var(--line); }
.online-tools p { color: var(--muted); font-size: .93rem; }
.online-actions { display: grid; justify-items: start; gap: 8px; margin-top: 12px; }
.online-pick {
  width: 100%; min-height: 52px; border: 1px solid #afc5ee; background: white;
  color: var(--accent); font-family: inherit; font-size: 1rem; cursor: pointer;
}
.online-pick:hover:not(:disabled) { background: #e8efff; color: var(--accent-hover); }
.online-pick:disabled { opacity: .6; cursor: default; background: white; color: var(--accent); }
.online-download { font-size: .93rem; font-weight: 650; text-underline-offset: 3px; }
.online-status { margin-top: 10px; }
.online-status:empty { display: none; }
@media (max-width: 640px) {
  .online-panel { grid-template-columns: minmax(0, 1fr); }
  .online-tools { padding: 17px 0 0; border-inline-start: 0; border-block-start: 1px solid var(--line); }
}
