:root {
  color-scheme: light dark;
  --bg: #f9f8fc;
  --surface: #fff;
  --tint: #f0ebfb;
  --ink: #221a35;
  --muted: #625970;
  --line: #e6dfef;
  --accent: #5f3db7;
  --button: #5936b6;
  --focus: #6c42ce;
  --shadow: 0 18px 56px #38225a0b;
  font: 16px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131f;
    --surface: #211a2c;
    --tint: #2d2241;
    --ink: #f3edff;
    --muted: #c4b8d2;
    --line: #40334f;
    --accent: #c9b3ff;
    --button: #6844ca;
    --focus: #d2baff;
    --shadow: 0 18px 56px #0b071831;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
a { color: var(--accent); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button, select { font: inherit; }
img { display: block; max-width: 100%; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
code { font-size: .94em; overflow-wrap: anywhere; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip {
  position: fixed; inset: .75rem auto auto .75rem; z-index: 5;
  transform: translateY(-200%); background: var(--surface); padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .56rem; width: fit-content; color: var(--ink); font-weight: 780; font-size: 1.55rem; letter-spacing: -.055em; text-decoration: none; }
.brand img { width: 35px; height: 35px; }
.menu, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.menu a, .footer-links a { text-decoration: none; font-size: .9rem; font-weight: 650; color: var(--muted); padding: .55rem .83rem; border-radius: 9px; }
.menu a:hover, .menu [aria-current="page"], .footer-links a:hover { color: var(--accent); background: var(--tint); }
.language-control { justify-self: end; }
.language-control select {
  max-width: 100%; padding: .42rem .56rem; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink); font-size: .86rem; cursor: pointer;
}

.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1.8rem, 5vw, 4.5rem); padding-block: clamp(3rem, 7vw, 6.2rem); }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .84rem; letter-spacing: .055em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.9rem, 5.25vw, 5rem); font-weight: 800; letter-spacing: -.055em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); margin-top: .11em; }
:lang(zh-Hans) .hero h1 { letter-spacing: -.045em; font-size: clamp(2.65rem, 5vw, 4.65rem); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.15rem); max-width: 53ch; margin-top: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.7rem; }
.button {
  display: inline-flex; width: fit-content; max-width: 100%; min-height: 44px; align-items: center; justify-content: center;
  gap: .55rem; background: var(--button); color: #fff; border: 1px solid transparent; border-radius: 11px;
  padding: .62rem .96rem; font: inherit; font-size: .93rem; font-weight: 720; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.09); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.platform-note { color: var(--muted); font-size: .86rem; margin-top: 1rem; }

.hero-art {
  position: relative; display: grid; place-items: center; isolation: isolate; min-width: 0; aspect-ratio: 1.16;
  padding: 10% 9%; overflow: hidden; border-radius: 28px; background: radial-gradient(ellipse at 12% 4%, #a582ee, transparent 54%), linear-gradient(145deg, #774acb, #35205f);
  box-shadow: var(--shadow);
}
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; z-index: -1; width: 93%; aspect-ratio: 1;
  border: 1px solid #f6ddff35; border-radius: 50%; inset: auto -35% -64% auto;
  box-shadow: 0 0 0 28px #f6ddff13, 0 0 0 56px #f6ddff13;
}
.hero-art::after { inset: -72% auto auto -40%; }
.browser-art { width: 100%; min-width: 0; border-radius: 13px; overflow: hidden; background: #211538; color: #f8ecff; box-shadow: 0 23px 45px #24103875; border: 1px solid #ffffff42; }
.browser-bar { display: grid; grid-template-columns: 1fr 2.1fr 1fr; align-items: center; padding: .48rem .57rem; min-height: 31px; background: #2b2040; }
.browser-dots { display: flex; gap: clamp(3px, .5vw, 6px); }
.browser-dots i { width: clamp(4px, .65vw, 7px); aspect-ratio: 1; background: #dcabed; border-radius: 100%; }
.browser-dots i:nth-child(2) { background: #ab8cde; }
.browser-dots i:nth-child(3) { background: #776597; }
.address-art { display: block; height: 12px; border-radius: 5px; background: #46365c; }
.address-art::before { content: ""; display: block; background: #866fa6; height: 3px; width: 33%; margin: 4px auto; border-radius: 10px; }
.player-art { position: relative; display: grid; place-items: center; }
.player-art > img { width: 100%; height: auto; }
.play { position: absolute; display: grid; place-items: center; width: 16%; aspect-ratio: 1; border: 1px solid #fff9; border-radius: 50%; background: #241438c9; }
.play::after { content: ""; width: 32%; aspect-ratio: 1; background: white; clip-path: polygon(12% 0, 100% 50%, 12% 100%); }
.player-controls { display: flex; align-items: center; gap: 7px; height: clamp(18px, 3.5vw, 35px); padding: 0 .6rem; }
.player-controls i { flex: 1; height: 3px; border-radius: 5px; background: linear-gradient(90deg, #dfb8ff 41%, #5f4a77 41%); }
.player-controls b { width: 8px; height: 8px; border: 1px solid #c5abd9; border-radius: 2px; }
.caption-art {
  position: absolute; right: 4%; bottom: 8%; max-width: 80%; display: flex; align-items: center; gap: .55rem;
  background: #fdf7ff; color: #412679; padding: .52rem .68rem; border: 1px solid #f0d9ff; border-radius: 10px;
  box-shadow: 0 8px 20px #25163863; font-size: clamp(.68rem, 1.3vw, .9rem); font-weight: 710;
}
.cc { border: 1px solid currentColor; border-radius: 4px; padding: 0 .23rem; font: 750 .75rem/1.45 system-ui, sans-serif; }

.section-head { margin-bottom: 1.35rem; }
.section-head h2, .panel h2, .band h2, .prose h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.section-head p, .band p { color: var(--muted); max-width: 64ch; margin-top: .55rem; }
.feature-grid, .download-grid, .safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.feature-card, .panel, .download-card, .band, details { background: var(--surface); border: 1px solid var(--line); border-radius: 19px; }
.feature-card { padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(84px, 32%); gap: 1rem; align-items: center; }
.feature-card h3, .panel h3 { font-size: 1.27rem; letter-spacing: -.02em; }
.feature-card p, .panel p, .download-card p { color: var(--muted); margin-top: .55rem; }
.feature-art { width: 100%; max-width: 154px; aspect-ratio: 1.12; justify-self: end; display: grid; place-items: center; border-radius: 16px; }
.feature-art svg { width: 76%; height: 76%; }
.art-video { background: #ece3ff; color: #6643b7; }
.art-caption { background: #e9e8fb; color: #51429a; }
.art-book { background: #faeadb; color: #80522f; }
.art-private { background: #e7f2eb; color: #32644e; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.4rem, 4vw, 2.6rem); margin-top: 1.35rem; background: var(--tint); }
.band .button { flex-shrink: 0; }
.site-footer { margin-top: clamp(3rem, 7vw, 5.9rem); background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 91px; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { width: 25px; height: 25px; }
.brand-credit { color: var(--muted); font-size: .84rem; }

.page-hero { padding-block: clamp(2.6rem, 6vw, 4.9rem) clamp(1.8rem, 4vw, 2.9rem); }
.page-hero h1 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); letter-spacing: -.045em; }
.page-hero .lead { max-width: 65ch; }
.download-card { padding: clamp(1.2rem, 3.2vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; min-width: 0; }
.download-card h2 { font-size: 1.55rem; }
.card-top, .download-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.card-top { width: 100%; justify-content: space-between; }
.device-icon { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 13px; background: var(--tint); color: var(--accent); }
.device-icon svg { width: 29px; height: 29px; }
.device-match { color: var(--accent); background: var(--tint); border-radius: 100px; padding: .25rem .65rem; font-size: .8rem; font-weight: 750; }
.download-card.is-current-device { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.download-card p { margin-top: 0; }
.download-links { margin-top: auto; padding-top: .45rem; }
.release-note { color: var(--muted); margin-top: 1rem; font-size: .9rem; }

.panel { padding: clamp(1rem, 3vw, 1.65rem); }
.ai-section + .ai-section { margin-top: 2rem; }
.ai-section > h2 { margin-bottom: .9rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.safety-grid .panel p { font-size: .95rem; }
.steps { list-style-position: outside; margin: 0; padding-left: 1.25rem; }
.steps > li { padding-left: .4rem; }
.steps > li + li { margin-top: 1.4rem; }
.steps > li::marker { color: var(--accent); font-weight: 780; }
.command { margin-top: .7rem; display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; color: var(--accent); background: var(--tint); border-radius: 10px; padding: .65rem .78rem; }
.command code { flex: 1 1 14ch; }
.command button { min-height: 34px; padding: .22rem .6rem; font-size: .8rem; }
.commands { display: grid; gap: .8rem; margin-top: .9rem; }
.commands h4 { margin: 0; font-size: 1rem; }
pre.command { display: block; margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#copy-status { min-height: 1.6em; }
.table-shell { border: 1px solid var(--line); border-radius: 15px; background: var(--surface); overflow: hidden; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: start; }
th, td { padding: .75rem clamp(.48rem, 1.7vw, 1rem); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
thead { background: var(--tint); }
thead th:first-child { width: 25%; }
tbody th, tbody td { border-top: 1px solid var(--line); }
tbody td { color: var(--muted); }
tbody td:last-child { color: var(--ink); }

.prose { max-width: 760px; }
.prose h2 { margin-block: 1.65rem .5rem; font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
.prose p + p, .prose li + li { margin-top: .65rem; }
.prose ul { margin: .65rem 0 0; padding-inline-start: 1.35rem; }
.prose details { margin-top: .55rem; padding: .8rem 1rem; }
.prose details p { margin: .55rem 0 .15rem; color: var(--muted); }
summary { cursor: pointer; font-weight: 700; }
.fine-print { color: var(--muted); font-size: .9rem; }

@media (max-width: 850px) {
  .wrap { width: min(100% - 48px, 1160px); }
  .hero { gap: 1.7rem; }
  .feature-card { padding: 1.2rem; }
}
@media (max-width: 690px) {
  .wrap { width: min(100% - 32px, 540px); }
  .topbar { grid-template-columns: 1fr auto; gap: .5rem; padding-block: .65rem .35rem; }
  .topbar .menu { grid-area: 2 / 1 / 3 / -1; }
  .menu a, .footer-links a { padding: .44rem .62rem; }
  .topbar .menu a { padding-inline: .42rem; }
  .hero, .feature-grid, .download-grid, .safety-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.2rem 2.75rem; }
  .hero-art { border-radius: 19px; }
  .band, .footer-inner { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .feature-card { grid-template-columns: minmax(0, 1fr) minmax(75px, 28%); }
  table { font-size: .88rem; line-height: 1.44; }
}
