:root {
  color-scheme: light;
  font-family: var(--site-font, "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", system-ui, sans-serif);
  color: var(--ink);
  background: #fff;
  --ink: var(--site-text, #111622);
  --muted: var(--site-muted, #525d70);
  --accent: var(--site-blue, #1d5fd1);
  --accent-hover: var(--site-blue-hover, #164eae);
  --accent-soft: var(--site-blue-soft, #eaf1ff);
  --line: var(--site-line, #e6e8ee);
  --surface: var(--site-soft, #f5f7fb);
  --panel-shadow: var(--site-shadow, 0 18px 48px rgb(17 22 34 / .07));
  --header-height: 66px;
  --radius: 24px;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, dl, dd { margin: 0; }
body { line-height: 1.7; }
a { color: inherit; }
a, summary { -webkit-tap-highlight-color: rgb(29 95 209 / .13); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }

.shell {
  width: min(1100px, calc(100% - 2 * clamp(18px, 4vw, 54px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: 10px;
  left: 12px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #fff;
  color: var(--accent-hover);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--site-glass, rgb(255 255 255 / .82));
  box-shadow: var(--site-nav-shadow, 0 7px 19px rgb(34 56 91 / .075));
  backdrop-filter: blur(20px) saturate(160%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  gap: 18px;
}

.brand, .section-nav a, .preview-link, .button, .site-footer a { text-decoration: none; }
.brand, .preview-link, .section-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.brand { justify-self: start; gap: 9px; font-weight: 750; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.section-nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(17 22 34 / .045); }
.section-nav a { min-height: 36px; padding-inline: 15px; border-radius: 999px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.section-nav a:hover { background: #fff; color: var(--ink); }
.preview-link { justify-self: end; padding-inline: 12px; border-radius: 12px; font-size: .875rem; font-weight: 650; color: var(--muted); }
.preview-link:hover { background: var(--surface); color: var(--ink); }

body:has(#important:target) .section-nav a[href="#important"],
body:has(#updates:target, #removed:target) .section-nav a[href="#updates"],
body:has(#sponsor:target) .section-nav a[href="#sponsor"],
body:has(#faq:target) .section-nav a[href="#faq"] { background: #fff; color: var(--accent-hover); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(24px, 4.5vw, 58px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 4vw, 38px);
  background: var(--site-gradient, linear-gradient(145deg, #fff, #eaf1ff));
  box-shadow: var(--panel-shadow);
}

.hero-copy { align-self: center; padding: clamp(24px, 4.5vw, 62px); }
.release-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-hover);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.release-status span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin-top: 8px;
  font-size: clamp(2.28rem, 4.8vw, 4.4rem);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -.048em;
  text-wrap: balance;
}

.version {
  display: inline-block;
  color: #d62b42;
  background: linear-gradient(180deg, #e5445a 8%, #b51d37 91%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Arial Black", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.08em;
}

.hero-subtitle { margin-top: 12px; font-size: clamp(1.125rem, 2.2vw, 1.55rem); font-weight: 750; line-height: 1.4; }
.hero-description { margin-top: 6px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.button-primary { color: #fff; background: var(--accent); box-shadow: 0 5px 12px rgb(29 95 209 / .18); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: #dedfe8; background: rgb(255 255 255 / .72); color: #313a4c; }
.button-secondary:hover { background: #fff; border-color: #c3c6d3; }

.hero-stage {
  position: relative;
  min-height: clamp(320px, 34vw, 448px);
}

.hero-device {
  position: absolute;
  top: var(--y, 54%);
  left: var(--x);
  width: var(--width);
  aspect-ratio: 578 / 1205;
  filter: drop-shadow(0 11px 18px rgb(35 32 57 / .19));
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
}

.hero-device::after {
  position: absolute;
  inset: 0;
  background: url("/3.0/scene-phone-frame.webp") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.hero-device img {
  position: absolute;
  top: 1%;
  left: 2.08%;
  width: 94.81%;
  height: 97.93%;
  border-radius: 14.5% / 6.8%;
  object-fit: cover;
}

.hero-device-library { --x: 24%; --width: min(26%, 140px); --tilt: -7deg; }
.hero-device-player { --x: 49%; --y: 49%; --width: min(31%, 172px); z-index: 1; }
.hero-device-playlists { --x: 74%; --width: min(26%, 140px); --tilt: 7deg; }

.section { margin-top: clamp(40px, 6vw, 78px); }
.section-title {
  display: flex;
  align-items: center;
  gap: .4em;
  margin-bottom: clamp(16px, 2.5vw, 24px);
  font-size: clamp(1.625rem, 4.8vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.035em;
}

.section-title::before { flex: none; width: 3px; height: .72em; border-radius: 3px; background: var(--accent); content: ""; }

.notice {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: clamp(18px, 3.2vw, 38px);
  padding: clamp(19px, 3.5vw, 38px);
  border: 1px solid #efdae0;
  border-radius: var(--radius);
  background: linear-gradient(138deg, #fdf3f6, #fffcfd 54%, #fff);
  box-shadow: 0 10px 30px rgb(136 42 65 / .045);
}

.notice h3 { font-size: clamp(1.1875rem, 2.6vw, 1.675rem); font-weight: 800; line-height: 1.4; letter-spacing: -.025em; }
.protocol-name { white-space: nowrap; }
.notice-intro p { margin-top: 8px; color: #514956; }
.notice-intro strong { color: var(--ink); }
.notice-action { margin-top: 16px; }
.install { align-self: start; padding-inline-start: clamp(18px, 3vw, 35px); border-inline-start: 1px solid #efdde3; }
.install h4 { font-size: 1.0625rem; font-weight: 750; }
.steps { margin: 8px 0 0; padding-left: 1.26em; color: #514956; }
.steps li { padding-left: .3em; }
.steps li + li { margin-top: 6px; }
.steps li::marker { color: var(--accent-hover); font-weight: 700; }
.protocols { grid-column: 1 / -1; display: grid; grid-template-columns: 1.18fr 1fr; gap: 16px clamp(18px, 3.2vw, 38px); padding-top: 17px; border-top: 1px solid #efdde3; }
.protocols dt { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #f1eef3; color: #403a48; font-size: .875rem; font-weight: 750; }
.protocols > div:first-child dt { background: var(--accent-soft); color: var(--accent-hover); }
.protocols dd { margin-top: 4px; color: #514956; }

.updates-section { padding: clamp(34px, 5.2vw, 66px) 0; background: var(--surface); border-block: 1px solid #eff0f4; }
.change-group + .change-group { margin-top: clamp(32px, 5vw, 54px); }
.group-title { margin-bottom: 12px; font-size: clamp(1.1875rem, 3.3vw, 1.55rem); line-height: 1.4; font-weight: 750; letter-spacing: -.02em; }
.change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 18px); }
.change-card {
  padding: clamp(17px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--panel-shadow);
}

.change-card h4 { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #edeff4; font-size: 1.0625rem; font-weight: 750; }
.change-list { display: grid; gap: 8px; margin: 0; padding-left: 1.08em; color: #2e384b; }
.change-list li::marker { color: #788496; font-size: .82em; }
.change-list li p { margin-top: 1px; color: var(--muted); font-size: .9375rem; }
.dependency {
  display: inline-block;
  padding: 0 7px;
  border-radius: 99px;
  background: #eef1f7;
  color: #485974;
  font-size: .875rem;
  line-height: 1.45;
  vertical-align: .06em;
  white-space: nowrap;
}

.fixes .change-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }

.sponsor-intro { max-width: 38em; margin: -4px 0 17px; color: var(--muted); }
.sponsor-card h3 { margin-bottom: 12px; font-size: 1.125rem; font-weight: 750; }
.sponsor-card dl > div + div { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edeff4; }
.sponsor-card dt { color: #2e384b; font-weight: 700; }
.sponsor-card dd { color: var(--muted); }
.sponsor-card strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sponsor-changes > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.sponsor-changes > div:last-child strong { color: var(--accent-hover); }
.sponsor-changes dd { text-align: right; }
.sponsor-upgrades dd { margin-top: 3px; }
.sponsor-action { margin-top: 15px; }

.faq-list { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.faq-list details + details { border-top: 1px solid #edeff4; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px clamp(17px, 3vw, 28px);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border: solid #57657b;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}

.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--accent-hover); }
.faq-list p { max-width: 68ch; padding: 0 clamp(17px, 3vw, 28px) 18px; color: var(--muted); }
.faq-list a { color: var(--accent-hover); text-underline-offset: .18em; }

.site-footer { margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 72px; color: var(--muted); font-size: .9375rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.site-footer a:hover { color: var(--accent-hover); }

@media (max-width: 700px) {
  :root { --header-height: 99px; --radius: 19px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 10px; padding-block: 4px 5px; }
  .preview-link { grid-column: 2; grid-row: 1; }
  .section-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .section-nav a { padding-inline: 2px; font-size: .875rem; text-align: center; white-space: normal; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
    background:
      radial-gradient(ellipse at 92% 72%, #f5e2ea, transparent 52%),
      radial-gradient(ellipse at 14% 101%, #e0e7f8, transparent 47%),
      var(--site-gradient, linear-gradient(145deg, #fff, #eaf1ff));
  }
  .hero-copy { padding: 21px clamp(17px, 5vw, 27px) 9px; }
  .hero h1 { font-size: clamp(2.25rem, 9.6vw, 3.15rem); }
  .hero-description { max-width: 23em; }
  .hero-actions { margin-top: 15px; }
  .hero-stage { min-height: clamp(162px, 50vw, 235px); }
  .hero-device { filter: drop-shadow(0 5px 9px rgb(35 32 57 / .2)); }
  .hero-device-library { --x: 26%; --width: min(20%, 86px); }
  .hero-device-player { --x: 50%; --y: 49%; --width: min(24%, 104px); }
  .hero-device-playlists { --width: min(20%, 86px); }
  #important { margin-top: 30px; }
  .notice, .protocols, .change-grid, .fixes .change-list { grid-template-columns: 1fr; }
  .notice { gap: 17px; }
  .notice-action { width: 100%; }
  .install { padding: 16px 0 0; border: 0; border-top: 1px solid #efdde3; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

@media (forced-colors: active) {
  .version { background: none; -webkit-text-fill-color: currentColor; }
}
