:root {
  color-scheme: light;
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: #1e1b30;
  background: #f7f7fa;
  --muted: #625e74;
  --border: #e6e3ee;
  --accent: #6141c6;
  --surface: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 300px; margin: 0; }
a { color: var(--accent); text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid #724bdf; outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-row, .header-row nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-row { min-height: 76px; }
.header-row a { color: inherit; text-decoration: none; }
.header-row nav a { font-size: 14px; }
.header-row nav a:hover, .header-row nav a[aria-current] { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 23px; font-weight: 750; letter-spacing: -.055em; }
.hero { min-height: 430px; display: grid; grid-template-columns: 5fr 6fr; align-items: center; gap: 32px; padding: 48px 32px; margin: 34px 0 28px; border: 1px solid #e6ddf6; border-radius: 22px; background: linear-gradient(105deg, #f8f5ff 15%, #eee7ff 100%); }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 650; letter-spacing: .12em; margin: 0 0 16px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(38px, 4.8vw, 60px); font-weight: 800; line-height: 1.17; letter-spacing: -.05em; }
.lead { max-width: 33em; color: var(--muted); font-size: 16px; line-height: 1.85; margin: 24px 0; }
.actions, .platform-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #5032b2; }
.secondary { border: 1px solid var(--border); color: #3d3551; background: var(--surface); }
.secondary:hover { border-color: var(--accent); }
.hero-image { display: block; padding: 12px; background: #fcfaff; border: 1px solid #e2d7fa; border-radius: 15px; box-shadow: 0 5px 16px #3a257808; }
.hero-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.downloads { padding: 32px 0 56px; border-top: 1px solid var(--border); scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h2 { font-size: clamp(23px, 3vw, 34px); letter-spacing: -.035em; }
.platforms { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; }
.platform { min-width: 0; padding: 21px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.platform.available { border-color: #d9c7f4; background: #fcfaff; }
.platform h3 { font-size: 21px; }
.platform p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.version { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.footer { padding: 20px 0 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.guide { padding: 56px 0; }
.guide-layout { display: grid; grid-template-columns: 170px minmax(0, 700px); gap: 42px; margin-top: 32px; }
.toc { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 24px; }
.guide-content { color: var(--muted); line-height: 1.85; }
.guide-content h2 { color: #1e1b30; }
.guide-content section { border-top: 1px solid var(--border); padding: 18px 0; scroll-margin-top: 20px; }
.guide-content ol { padding-left: 1.5em; }
.guide-content code { overflow-wrap: anywhere; color: #3d3551; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 28px 24px; }
  .hero-image { max-width: 650px; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 28px); }
  .hero { margin-top: 17px; padding: 24px 16px; gap: 20px; }
  .header-row, .header-row nav { gap: 10px; }
  .header-row nav a { font-size: 13px; }
  .brand { font-size: 20px; }
  .platform { padding: 14px; }
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: static; }
}

.handoff { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0; border-top: 1px solid var(--border); }
.handoff h2 { font-size: 23px; }
.handoff p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.handoff .button { font-family: inherit; cursor: pointer; }
.handoff .button.primary { border: 1px solid transparent; }

.handoff .button[hidden] { display: none; }
#site-link { margin-top: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; font: inherit; color: inherit; background: var(--surface); }
#share-status:empty { display: none; }
.phone-handoff { display: none; }
@media (max-width: 850px) {
  .phone-handoff { display: inline-flex; }
}
@media (max-width: 420px) {
  .header-row { flex-wrap: wrap; gap: 6px 14px; padding-block: 10px; }
  .hero h1 { font-size: clamp(29px, 9vw, 39px); }
  .hero .actions, .handoff .actions { gap: 8px; }
  .hero .button, .handoff .button { padding: 11px 10px; }
  .platform.available { grid-column: 1 / -1; }
}
