:root {
  color-scheme: dark;
  --bg: #121416;
  --surface: #1b1e21;
  --line: #34383b;
  --text: #f4f3ef;
  --soft: #b4b9bc;
  --dim: #989fa3;
  --orange: #ffad5b;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 4; background: var(--text); color: #121416; padding: 8px 14px; }
.bar { border-bottom: 1px solid #292d2f; background: #151719; }
.bar-inner, .brand, nav, .platform, .download, .service, .filters, .device, .foot { display: flex; align-items: center; }
.bar-inner { min-height: 70px; justify-content: space-between; gap: 20px; }
.brand { gap: 17px; flex-shrink: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.brand img { width: 62px; height: auto; display: block; }
.brand span { padding-inline-start: 17px; border-inline-start: 1px solid #45494b; }
nav { gap: 24px; font-size: 13px; color: var(--soft); }
nav a:hover, .foot a:hover { color: var(--orange); }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: 310px; padding: 38px clamp(25px, 4vw, 49px); margin-top: 32px;
  border: 1px solid #3b3c39; border-radius: 18px; background: linear-gradient(110deg, #262729 0%, #232526 51%, #2b2723 100%);
}
.hero-content { position: relative; z-index: 1; width: min(63%, 650px); }
.platform { width: max-content; gap: 8px; margin: 0 0 12px; color: #dec2a6; font-size: 13px; font-weight: 600; }
.windows { display: inline-block; width: 6px; height: 6px; margin: 0 8px 8px 0; background: currentColor; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(33px, 4vw, 52px); letter-spacing: -.055em; line-height: 1.21; font-weight: 700; }
.intro { margin-top: 15px; color: #c5c5c2; max-width: 36em; }
.download-box { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.download { min-height: 44px; width: max-content; gap: 10px; border-radius: 7px; background: var(--orange); color: #25190d; font-weight: 700; font-size: 14px; padding: 10px 16px; transition: background .15s; }
.download:hover { background: #ffc184; }
.download-icon { flex-shrink: 0; width: 15px; height: 15px; position: relative; border-bottom: 2px solid currentColor; }
.download-icon::before { content: ""; position: absolute; top: 0; left: 6.5px; height: 10px; border-left: 2px solid currentColor; }
.download-icon::after { content: ""; position: absolute; left: 4px; top: 4px; width: 5px; height: 5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.desktop-meta { color: #b3b6b6; font-size: 12px; overflow-wrap: anywhere; }
.signal {
  position: absolute; z-index: 0; inset: 0 0 0 56%; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 66% 50%, #93572e32, transparent 65%),
              radial-gradient(#b4845940 .8px, transparent 1px); background-size: auto, 9px 9px;
  mask-image: linear-gradient(90deg, transparent, #000 27%);
}
.spectrum { position: absolute; inset: 0 -6% 0 0; display: flex; justify-content: space-between; align-items: center; gap: 3px; transform: skewY(-5deg); }
.spectrum i { flex: 1; max-width: 7px; height: var(--h); background: linear-gradient(#febe75, #e99a52 49%, #9f5a2e); mask-image: repeating-linear-gradient(to bottom, #000 0 3px, transparent 3px 6px); opacity: var(--opacity); }
.firmware { margin-top: 46px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 21px; }
h2 { font-size: clamp(27px, 3vw, 34px); letter-spacing: -.045em; line-height: 1.25; }
.section-head p { margin-top: 6px; color: var(--soft); font-size: 14px; }
.service { flex-shrink: 0; font-size: 12px; gap: 8px; color: var(--soft); }
.service i { width: 7px; height: 7px; border-radius: 50%; background: #a1a6aa; }
.service[data-state="ok"] i { background: #8dd8ab; box-shadow: 0 0 0 3px #8dd8ab12; }
.service[data-state="error"] i { background: #ffad5b; }
.library { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.filters { gap: 5px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.filters button, #retry { background: none; border: 1px solid transparent; border-radius: 6px; padding: 5px 12px; min-height: 33px; color: var(--soft); font-size: 13px; }
.filters button[aria-pressed="true"] { color: #ffc17e; background: #392e25; border-color: #574133; font-weight: 650; }
.filters button:hover, #retry:hover { color: var(--text); background: #292d30; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
th { color: var(--dim); background: #181b1d; font-size: 11px; letter-spacing: .06em; font-weight: 600; }
th, td { padding: 9px 16px; }
tr > :first-child { width: 36%; padding-left: 24px; }
tr > :last-child { width: 14%; padding-right: 24px; text-align: right; }
tbody td { border-top: 1px solid #2c3033; padding-block: 12px; font-size: 14px; }
.device { gap: 12px; }
.device-icon { width: 32px; height: 32px; flex: 0 0 32px; position: relative; display: grid; place-items: center; border-radius: 7px; color: #d2ab85; background: #302b27; }
.device-icon::before, .device-icon::after { content: ""; display: block; position: absolute; }
.device-icon[data-role="p4"]::before { width: 14px; height: 10px; top: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.device-icon[data-role="p4"]::after { width: 8px; height: 3px; top: 20px; border-bottom: 1.5px solid currentColor; }
.device-icon[data-role="transmitter"]::before, .device-icon[data-role="receiver"]::before { width: 12px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; }
.device-icon[data-role="transmitter"]::after, .device-icon[data-role="receiver"]::after { width: 4px; height: 4px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(-45deg); }
.device-icon[data-role="receiver"]::after { transform: rotate(135deg); }
.model { font-weight: 650; line-height: 1.3; }
.role { color: var(--dim); font-size: 11px; margin-top: 2px; }
.version, td.size { color: #c0c4c6; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; overflow-wrap: anywhere; }
.size { white-space: nowrap; }
.list-message { text-align: center; padding: 32px 18px; color: var(--soft); font-size: 14px; }
#retry { margin: 10px auto 0; border-color: #45494c; }
details { margin-top: 15px; padding: 12px 0; color: var(--soft); font-size: 13px; }
summary { color: var(--soft); width: max-content; max-width: 100%; cursor: pointer; }
details p { max-width: 70em; margin: 10px 0 0; }
.foot { margin-top: 26px; border-top: 1px solid #2c2f31; justify-content: space-between; padding-block: 22px 28px; color: var(--dim); font-size: 12px; }
@media (max-width: 750px) {
  .wrap { width: calc(100% - 40px); }
  .hero { min-height: 280px; }
  .intro { max-width: 25em; }
  .hero-content { width: 74%; }
  .signal { left: 61%; }
  .section-head { align-items: flex-start; }
  .service { margin-top: 6px; }
  tr > :first-child { width: 42%; }
  tr > :last-child { width: 15%; }
}
@media (max-width: 550px) {
  .wrap { width: calc(100% - 28px); }
  .bar-inner { min-height: 58px; gap: 8px; }
  .brand { gap: 8px; font-size: 12px; }
  .brand img { width: 43px; }
  .brand span { padding-left: 9px; }
  nav { gap: 12px; font-size: 12px; }
  .hero { margin-top: 16px; min-height: 260px; padding: 25px 19px; border-radius: 12px; }
  .hero-content { width: 100%; }
  .signal { left: 66%; opacity: .26; }
  .spectrum { gap: 2px; }
  .spectrum i { min-width: 3px; }
  .intro { max-width: 23em; font-size: 14px; }
  .download-box { margin-top: 22px; gap: 8px 12px; }
  .download { min-height: 42px; }
  .firmware { margin-top: 32px; }
  .section-head { display: block; margin-bottom: 13px; }
  .section-head p { font-size: 13px; }
  .service { margin-top: 9px; }
  .filters { padding: 9px; gap: 2px; flex-wrap: wrap; }
  .filters button { padding: 4px 9px; }
  th, td { padding-inline: 8px; }
  tr > :first-child { width: 44%; padding-left: 12px; }
  tr > :nth-child(2) { padding-right: 12px; }
  table .size { display: none; }
  .device-icon { display: none; }
  .model { font-size: 13px; overflow-wrap: anywhere; }
  .version { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
