:root {
  color-scheme: dark;
  --background: #0b1118;
  --surface: #121b24;
  --line: #283742;
  --text: #f1f6f7;
  --muted: #aebfc9;
  --accent: #a5f3dc;
  --accent-strong: #c8ffed;
  --sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.7 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell { width: min(100% - 6rem, 78rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.75rem); }
.section-heading { margin-bottom: clamp(1.8rem, 4vw, 2.75rem); }
.section-heading .eyebrow { margin-bottom: .5rem; }
.section-heading .muted { margin-top: .85rem; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.3vw, 3.65rem); font-weight: 760; letter-spacing: -.045em; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.025em; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .11em; }
html:lang(en) .eyebrow { text-transform: uppercase; }
.muted { color: var(--muted); }

.skip-link { position: fixed; z-index: 10; left: 1rem; top: 1rem; translate: 0 -200%; background: var(--accent); color: var(--background); padding: .5rem 1rem; border-radius: .4rem; }
.skip-link:focus { translate: 0; }
.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid #1e3039; background: #0b1118ee; backdrop-filter: blur(16px); }
.header-inner { min-height: 4.5rem; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; column-gap: 1.5rem; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .7rem; font-size: 1.125rem; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.brand img { border-radius: .6rem; }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3.2vw, 3rem); }
.main-nav a, .site-footer nav a { color: var(--muted); font-size: .9375rem; font-weight: 550; }
.main-nav a:hover, .site-footer nav a:hover { color: var(--accent); }
.language-switch { display: flex; justify-self: end; gap: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: .65rem; background: #111a22; }
.language-switch button { border: 0; border-radius: .43rem; padding: .32rem .64rem; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 700; line-height: 1.45; cursor: pointer; }
.language-switch button:hover { color: var(--text); }
.language-switch button[aria-pressed="true"] { background: #2a3e45; color: var(--accent-strong); }

.hero { position: relative; isolation: isolate; overflow: clip; background: radial-gradient(ellipse at 69% 42%, #1b4451 0%, #102831 35%, #0b1118 72%); }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background-image: linear-gradient(#a0e9e011 1px, transparent 1px), linear-gradient(90deg, #a0e9e011 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 77% 45%, black, transparent 68%); }
.hero-inner { display: grid; align-items: center; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(2rem, 4.5vw, 4.5rem); padding-block: clamp(5rem, 10vw, 9.375rem) clamp(4rem, 8vw, 7.5rem); }
.hero-copy { padding-bottom: 1.75rem; }
.platform-line { display: inline-flex; align-items: center; gap: .62rem; }
.platform-line::before { width: 1.3rem; height: 2px; border-radius: 1px; background: currentColor; content: ""; }
.hero h1 { margin-block: 1.1rem 1.4rem; font-size: clamp(3.2rem, 5.55vw, 5.75rem); font-weight: 800; letter-spacing: -.072em; }
.hero h1 span { display: block; }
html:lang(zh) .hero h1 { letter-spacing: -.055em; }
.accent { color: var(--accent); }
.hero-description { max-width: 28rem; color: #becfd7; font-size: clamp(1rem, 1.65vw, 1.15rem); line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 3.05rem; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: .68rem; font-size: .9375rem; font-weight: 740; line-height: 1.45; text-align: center; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.primary { background: var(--accent); color: #10231f; }
.primary:hover { background: var(--accent-strong); }
.secondary { background: #141e26; border-color: #354751; color: var(--text); }
.secondary:hover { background: #1b2c35; border-color: #68838c; }
.hero-visual { min-width: 0; }
.tv-frame { padding: clamp(.33rem, .85vw, .7rem); border: 1px solid #82b7bc80; border-radius: clamp(.75rem, 1.8vw, 1.5rem); background: linear-gradient(150deg, #354e5b, #151f27 38%, #100f18 85%); box-shadow: 0 26px 75px #030b13ad, 0 0 75px #69d9d824; }
.tv-frame img { width: 100%; aspect-ratio: 16 / 9; border-radius: clamp(.44rem, 1.16vw, 1rem); background: #0c1a24; }
.hero-visual figcaption { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: .9rem; color: var(--muted); font-size: .8125rem; }
.capture-mark { width: .85rem; height: .55rem; border: 1px solid #84b7b9; border-radius: .13rem; }

.source-band { background: #0f181f; border-block: 1px solid #21343e; }
.source-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.2rem; }
.source-inner > p { color: var(--muted); font-size: .875rem; font-weight: 650; }
.protocols { display: flex; flex-wrap: wrap; gap: .4rem .55rem; margin: 0; padding: 0; list-style: none; }
.protocols li { padding: .22rem .75rem; border: 1px solid #31454e; border-radius: 100px; color: #d6e7ec; font-size: .875rem; font-weight: 600; white-space: nowrap; }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr); gap: 1rem; }
.feature-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--surface); }
.feature-copy { padding: clamp(1.4rem, 3.1vw, 2.25rem); }
.feature-copy p { margin-top: .7rem; color: var(--muted); }
.feature-library { display: flex; flex-direction: column; justify-content: space-between; grid-row: span 2; background: linear-gradient(145deg, #192a33, #141d27 55%); }
.feature-library img { width: calc(100% - clamp(1.4rem, 3.1vw, 2.25rem)); align-self: end; aspect-ratio: 16 / 9; border: 1px solid #3a505a; border-right: 0; border-bottom: 0; border-radius: .9rem 0 0; }
.feature-danmaku { background: radial-gradient(ellipse at 87% 100%, #25344d, transparent 70%), var(--surface); }
.comment-samples { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; padding: 0 clamp(1.4rem, 3.1vw, 2.25rem) 1.4rem; }
.comment-samples span { border: 1px solid #4b5573; padding: .15rem .62rem; border-radius: .42rem; background: #1f2b42; color: #e0dcff; font-size: .875rem; }
.comment-samples span:last-child { color: #aff5e2; }
.feature-playback { background: radial-gradient(ellipse at 90% 100%, #153a34, transparent 75%), var(--surface); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem .8rem; padding: 0 clamp(1.4rem, 3.1vw, 2.25rem) 1.4rem; color: var(--accent); font-size: .875rem; font-weight: 650; }

.showcase { background: #0e171f; border-block: 1px solid #21313a; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.showcase .section-heading { margin-bottom: 1rem; }
.showcase h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); }
.gallery-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.gallery-controls button { padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: #151f28; color: var(--muted); font-size: .875rem; font-weight: 650; cursor: pointer; }
.gallery-controls button:hover { color: var(--text); border-color: #647784; }
.gallery-controls button[aria-pressed="true"] { border-color: #497b73; background: #173630; color: var(--accent-strong); }
.gallery-image { position: relative; display: block; overflow: hidden; border: 1px solid #344855; border-radius: .9rem; background: #070c12; box-shadow: 0 12px 35px #0004; }
.gallery-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.gallery figcaption { min-height: 2.7rem; margin-top: .7rem; color: var(--muted); font-size: .875rem; }
.enlarge-icon { position: absolute; right: .65rem; bottom: .65rem; width: 2.35rem; height: 2.35rem; border: 1px solid #536a75; border-radius: .5rem; background: #101920ec; }
.enlarge-icon::before, .enlarge-icon::after { content: ""; position: absolute; width: .52rem; height: .52rem; border: solid var(--accent); }
.enlarge-icon::before { top: .65rem; right: .65rem; border-width: 2px 2px 0 0; }
.enlarge-icon::after { bottom: .65rem; left: .65rem; border-width: 0 0 2px 2px; }
.gallery-image:hover .enlarge-icon { background: #23463c; }

.format-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 4vw, 3rem); }
.format-list > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.format-list dt { font-size: 1.075rem; font-weight: 700; }
.format-list dd { margin-top: .3rem; color: var(--muted); }
.compatibility-note { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem 1.2rem; color: var(--muted); }
.text-link { width: fit-content; color: var(--accent); font-size: .9375rem; font-weight: 650; text-decoration: underline; text-decoration-color: #5e9b91; text-underline-offset: .25em; }
.text-link:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

.download { background: radial-gradient(ellipse at 48% 4%, #16383b, transparent 75%), #0e181f; border-block: 1px solid #21313a; }
.download .section-heading { text-align: center; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 54rem; margin-inline: auto; }
.download-card { display: flex; align-items: flex-start; flex-direction: column; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid #334851; border-radius: 1rem; background: #131f28; }
.download-card .device-icon { width: 2.25rem; height: 2.25rem; margin-bottom: .85rem; color: var(--accent); position: relative; }
.device-icon::before, .device-icon::after { position: absolute; content: ""; }
.tv-icon::before { inset: .19rem 0 .58rem; border: 2px solid currentColor; border-radius: .23rem; }
.tv-icon::after { bottom: .21rem; inset-inline: .65rem; height: 2px; background: currentColor; }
.phone-icon::before { inset: 0 .5rem .13rem; border: 2px solid currentColor; border-radius: .25rem; }
.phone-icon::after { bottom: .4rem; inset-inline: .9rem; height: 2px; border-radius: 2px; background: currentColor; }
.download-card p { flex: 1; margin-block: .65rem 1.4rem; color: var(--muted); }
.other-builds, .download-links { display: flex; flex-wrap: wrap; gap: .3rem 1.15rem; }
.other-builds { margin-top: .8rem; }
.download-links { justify-content: center; margin-top: 1.45rem; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.25rem; }
.footer-inner p { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.lightbox { width: fit-content; max-width: min(74rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: .8rem; border: 1px solid #3d525e; border-radius: .9rem; color: var(--text); background: #111a22; }
.lightbox::backdrop { background: #060b11e8; }
.lightbox form { display: flex; justify-content: end; margin-bottom: .7rem; }
.lightbox img { width: auto; max-height: 77vh; object-fit: contain; border-radius: .42rem; }
body:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 62rem) {
  .shell { width: min(100% - 3rem, 78rem); }
  .hero-inner { gap: 1.75rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.3vw, 4.5rem); }
  .showcase-grid { gap: 2rem; }
}

@media (max-width: 47rem) {
  .hero-inner, .showcase-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 3.75rem 2.4rem; gap: 2rem; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.9rem); }
  .hero { background: radial-gradient(ellipse at 64% 72%, #1a4450, #10232d 43%, #0b1118 78%); }
  .source-inner { align-items: flex-start; flex-direction: column; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-library { grid-row: auto; }
}

@media (max-width: 35rem) {
  :root { scroll-padding-top: 1rem; }
  .shell { width: calc(100% - 2rem); }
  .site-header { position: static; }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: .75rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: .6rem 1.35rem; flex-wrap: wrap; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 2.65rem; }
  .hero-inner { padding-top: 2.7rem; }
  .hero h1 { margin-block: .85rem 1.1rem; }
  .actions { margin-top: 1.35rem; }
  .format-list, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
