/* 布局:首屏一句话 → 一个仿 App 的窗口(左 灯效列表 / 中 键盘 + 下方设置卡片 / 右 工具条)→ 功能、设备、下载、问答。
   风格:柔和深色、圆角面板;强调色 --acc 跟着键盘当前的颜色走。文案尽量中文 */
:root {
  /* 配色和软件 1.1 一致(DeviceBattery/src/lights.swift enum Theme):深色 = 近黑底 + 淡青强调,浅色 = 近白 + 系统蓝;跟随系统 */
  --t: 255 255 255;            /* 叠在底色上的细线、浅底:深色用白、浅色用黑,配透明度 */
  --bg: #0A0B0F;
  --win: #111218;              /* 软件窗口 Theme.panel */
  --panel: #111218;
  --panel2: #16171E;           /* 分组面板 Theme.panel2 */
  --side: rgb(var(--t) / 0.012);
  --pop: #1A1B22;
  --line: rgb(var(--t) / 0.08);
  --line2: rgb(var(--t) / 0.14);
  --hover: rgb(var(--t) / 0.06);
  --ink: #F1F2F6;
  --mute: #8B8FA3;
  --dim: #5D6175;
  --acc: #8FD3FF;              /* Theme.accent(深色) */
  --kacc: #8FD3FF;             /* 跟着键盘当前颜色走的点缀色(脚本实时改) */
  --amber: #FFB45A;
  --ok: #5BE38A;
  --pro: #FF9F0A;
  --btnbg: transparent;
  --shd: #000;
  --cjk: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --wide: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, var(--cjk);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Cascadia Mono", monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme]) {
  --t: 0 0 0;
  --bg: #FFFFFF; --win: #F7F7F8; --panel: #F7F7F8; --panel2: #FFFFFF; --side: #ECECEF; --pop: #FFFFFF;
  --line: rgb(0 0 0 / 0.08); --line2: rgb(0 0 0 / 0.14); --hover: rgb(0 0 0 / 0.045);
  --ink: #1D1D1F; --mute: #6E6E73; --dim: #8E8E93; --acc: #0A84FF; --kacc: #0A84FF; --amber: #C46A00; --ok: #1E9E50; --pro: #E8820C;
  --btnbg: #FFFFFF; --shd: rgb(20 24 40 / 0.18); --washo: .16; --glowmid: #1D1D1F;
  color-scheme: light;
} }
:root[data-theme="light"] {
  --t: 0 0 0;
  --bg: #FFFFFF; --win: #F7F7F8; --panel: #F7F7F8; --panel2: #FFFFFF; --side: #ECECEF; --pop: #FFFFFF;
  --line: rgb(0 0 0 / 0.08); --line2: rgb(0 0 0 / 0.14); --hover: rgb(0 0 0 / 0.045);
  --ink: #1D1D1F; --mute: #6E6E73; --dim: #8E8E93; --acc: #0A84FF; --kacc: #0A84FF; --amber: #C46A00; --ok: #1E9E50; --pro: #E8820C;
  --btnbg: #FFFFFF; --shd: rgb(20 24 40 / 0.18); --washo: .16; --glowmid: #1D1D1F;
  color-scheme: light;
}
/* 大标题字体:思源黑体 Black 的子集(只含标题里的字,和网页放一起,不连外网;路径相对 assets/style.css) */
@font-face { font-family: "LumoHead"; src: url("fonts/head.woff2?v=d020f6b2") format("woff2"); font-weight: 900; font-display: swap }
/* 英文大标题:Inter 可变字体(拉丁字符子集,随网站放在 assets/fonts,不连 Google);只有英文页面用到才会下载 */
@font-face { font-family: "LumoHeadEn"; src: url("fonts/inter-latin.woff2?v=026c4b8b") format("woff2"); font-weight: 100 900; font-display: swap }
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 var(--cjk); -webkit-font-smoothing: antialiased; overflow-x: clip }
a { color: inherit; text-decoration: none }
h1, h2, h3 { text-wrap: balance }
p { text-wrap: pretty }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: 24px }
@media (max-width: 600px) { .wrap { padding-inline: 16px } }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px) }
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 60px }
.brand { display: flex; align-items: center; gap: 10px }
.word { font: 700 23px/1 var(--wide); letter-spacing: -.035em; display: inline-flex; align-items: baseline }
.word .o { display: inline-block; width: .56em; height: .56em; margin-left: .03em; border: .118em solid currentColor; border-radius: 50%; position: relative; transform: translateY(.02em) }
.word .o::after { content: ""; position: absolute; left: 50%; top: 50%; width: .17em; height: .17em; margin: -.085em 0 0 -.085em; border-radius: 50%; background: var(--kacc); box-shadow: 0 0 .25em .06em var(--kacc), 0 0 .7em .1em var(--kacc) }
.brand small { font-size: 12px; color: var(--mute); padding-left: 10px; border-left: 1px solid var(--line2) }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--mute) }
.nav ul a:hover { color: var(--ink) }
.nav .dl + .btn { margin-left: -20px }
.nb { margin-left: 6px; font: 800 9px/1 var(--wide); letter-spacing: .06em; color: #fff; background: linear-gradient(90deg, #00C2FF, #8B5CFF); padding: 3px 6px; border-radius: 99px }                /* 「设备查询」和「下载」两个按钮挨着 */
@media (max-width: 760px) { .nav ul, .brand small { display: none } .nav .wrap { height: 56px } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 22px; border-radius: 999px; font-weight: 500; font-size: 15px; border: 1px solid var(--line2); background: var(--btnbg); cursor: pointer; white-space: nowrap; transition: .15s }
.btn:hover { background: rgb(var(--t) / 0.039) }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.btn.solid:hover { opacity: .88 }
.vsz { font-size: 12px; opacity: .55; margin-left: 2px }
.buynote { margin: 10px 0 0; font-size: 12px; color: var(--mute); line-height: 1.6 }
.btn.off { opacity: .5; cursor: default; pointer-events: none }
.btn.sm { height: 34px; padding-inline: 16px; font-size: 13px }
.btn svg { width: 17px; height: 17px; fill: currentColor }

/* 顶栏:外观菜单 + 语言 */
.prefs { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: -16px }
.prefs + .btn.dl { margin-left: 0 }
.pf { height: 34px; min-width: 34px; padding: 0 9px; display: inline-grid; place-items: center; border: 1px solid var(--line2); border-radius: 999px; background: var(--btnbg); color: var(--ink); cursor: pointer; font: 600 12.5px var(--wide) }
.pf:hover { background: var(--hover) }
.pf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6 }
.thm { position: relative }
.thmm { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 132px; padding: 5px; border-radius: 12px; background: var(--pop); box-shadow: 0 0 0 1px var(--line2), 0 20px 40px -12px var(--shd); display: grid; gap: 2px; animation: menuIn .18s cubic-bezier(.16, 1, .3, 1) }
.thmm[hidden] { display: none }
.thmm button { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; text-align: left; white-space: nowrap }
.thmm button:hover { background: var(--hover) }
.thmm button::before { content: ""; width: 14px; text-align: center; color: var(--acc); font-weight: 700 }
.thmm button[aria-checked="true"]::before { content: "✓" }
@media (max-width: 760px) { .nav .wrap { gap: 10px } .prefs { gap: 4px; margin-right: 0 } .pf { height: 32px; min-width: 32px; padding: 0 7px } .nav .btn.sm { padding-inline: 12px } .nav .btn.dl .nb { display: none } }
@media (max-width: 480px) { .nav .btn.dl { display: none } }
@media (max-width: 760px) { .nav .dl + .btn { margin-left: 0 } }
/* 顶栏放不下时:先收起「键盘灯光工具」小字,再收紧间距 */
@media (max-width: 1280px) { .nav .wrap { gap: 22px } .nav ul { gap: 18px } html.en .brand small { display: none } }
@media (max-width: 900px) { .nav ul { display: none } }
@media (max-width: 1120px) { .brand small { display: none } .nav ul { gap: 14px; font-size: 13.5px } html.en .nav ul li:nth-child(n+7) { display: none } }
/* 英文:大标题换成拉丁字体(思源黑体子集只有中文标题里的字) */
html.en .intro h1, html.en .shead h2, html.en .get h2, html.en .hero2 h1, html.en .whats h2, html.en .hist h2 { font-family: "LumoHeadEn", var(--wide); font-weight: 800; letter-spacing: -.03em }
html.en .intro h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.04 }
html.en .shead h2 { line-height: 1.04 }
html.en .cats { display: flex; flex-wrap: wrap } html.en .cats button { padding: 0 10px }
html.en .crail button { font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100% }
/* 首屏 */
.hero { position: relative; padding-top: 44px }
.wash { position: absolute; left: 50%; top: -60px; width: 140vw; height: 1100px; transform: translateX(-50%); z-index: -1; pointer-events: none; opacity: var(--washo, .26); filter: blur(120px);
  background: radial-gradient(35% 40% at 30% 55%, var(--c1, #ff2e9e), transparent 70%), radial-gradient(35% 40% at 70% 60%, var(--c2, #3ca8ff), transparent 70%) }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; padding-bottom: 30px }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); padding: 4px 12px 4px 8px; border: 1px solid var(--line2); border-radius: 999px; background: rgb(var(--t) / 0.024) }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--kacc); box-shadow: 0 0 10px var(--kacc) }
.intro h1 { margin: 16px 0 0; font: 900 clamp(34px, 5vw, 64px)/1.14 "LumoHead", var(--cjk); letter-spacing: -.01em }
@property --fl { syntax: "<length>"; inherits: true; initial-value: 0px }
.intro h1 .ch { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.22em) scale(.96); animation: chIn 1.1s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--i) * 55ms + 80ms) }
@keyframes chIn { to { opacity: 1; filter: blur(0); transform: none } }
.intro h1 .glow { letter-spacing: 0; animation: flow 9s linear infinite }
.intro h1 .glow .ch { background: linear-gradient(90deg, var(--c1, #ff4fa8) 0%, var(--c2, #59b8ff) 30%, var(--glowmid, #ffffff) 48%, var(--c2, #59b8ff) 66%, var(--c1, #ff4fa8) 100%) 0 0 / 12em 100% repeat-x;
  background-position-x: calc(var(--fl) - var(--j) * 1em); -webkit-background-clip: text; background-clip: text; color: transparent }
@keyframes flow { to { --fl: -12em } }
.intro .side { display: grid; gap: 16px; justify-items: end; text-align: right }
.intro .side p { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.65 }
.ctas { display: flex; gap: 10px; flex-wrap: wrap }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr } .intro .side { justify-items: start; text-align: left } }
@media (max-width: 600px) { .intro h1 .ln + .ln { display: block } .hero { padding-top: 28px } .intro { padding-bottom: 22px } .intro .ctas { display: grid; grid-template-columns: 1fr 1fr; width: 100% } }

/* 仿 App 窗口 */
.app [hidden] { display: none !important }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr) 88px; grid-template-rows: 46px minmax(0, 1fr); height: clamp(680px, calc(100vh - 84px), 830px);
  border-radius: 22px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--win) 94%, transparent); box-shadow: 0 60px 120px -60px var(--shd), inset 0 1px 0 rgb(var(--t) / 0.051); overflow: hidden; scroll-margin-top: 72px }
.titlebar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-inline: 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute) }
.lights { display: flex; gap: 8px } .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57 } .lights i:nth-child(2) { background: #febc2e } .lights i:nth-child(3) { background: #28c840 }
.dev-tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px; background: rgb(var(--t) / 0.039); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px var(--wide); letter-spacing: .02em; color: var(--ink) }
.dev-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok) }
.titlebar { position: relative; justify-content: space-between }
.titlebar b { font-weight: 500; color: var(--ink); position: absolute; left: 50%; transform: translateX(-50%) }
.pane { min-height: 0; min-width: 0; display: flex; flex-direction: column }
.cap { flex: none; font-size: 12px; color: var(--dim); padding: 14px 16px 6px; display: flex; justify-content: space-between }

/* 左:灯效列表 */
.side-l { position: relative; z-index: 4; border-right: 1px solid var(--line); background: var(--side) }   /* 11-09:收起后弹出的分类面板(.catpop)要盖在键盘上面,不能被中间一栏压住 */
.find { flex: none; margin: 14px 12px 6px; display: flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--btnbg); box-shadow: inset 0 0 0 1px var(--line2); padding: 0 10px; height: 34px; font-size: 13px; color: var(--dim) }
.find svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2 }
.find input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 16px; transform: scale(.8125); transform-origin: left center; width: 123% }
.find:focus-within { box-shadow: 0 0 0 1.5px var(--acc) }
/* 分类胶囊:两行,和软件一样 */
.cats { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 6px 12px 4px }
.cats button { height: 26px; padding: 0; border: 0; border-radius: 999px; background: rgb(var(--t) / 0.039); color: var(--mute); font-size: 12.5px; cursor: pointer; transition: background .15s, color .15s }
.cats button:hover { color: var(--ink); background: rgb(var(--t) / 0.071) }
.cats button[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); font-weight: 600 }
.list { flex: 1; overflow-y: auto; padding: 0 8px 14px; scrollbar-width: thin; scrollbar-color: rgb(var(--t) / 0.102) transparent; overscroll-behavior: contain }
.list details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 12px 8px 6px; font-size: 12px; color: var(--dim); user-select: none }
.list details summary::-webkit-details-marker { display: none }
.list details summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-left: 2px; transition: transform .15s }
.list details[open] summary::after { transform: rotate(45deg) translateY(-2px) }
.list details summary small { margin-left: auto; order: 2; font: 500 11px var(--mono) }
.list details summary::after { order: 3 }
.fx { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; color: var(--mute); font-size: 13.5px }
.fx canvas { width: 46px; height: 17px; display: block; border-radius: 4px; background: #05060A }
.fx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fx span { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.2; overflow-wrap: anywhere }   /* 11-09:长灯效名(英文、带括号的中文)最多折两行,不再截成「Spinning Col…」 */
html.en .fx { font-size: 12.5px }   /* 11-09:英文名字长,小一号少折行 */
.fx i { font: normal 500 10px var(--mono); color: var(--dim) }
.fx:hover { color: var(--ink); background: rgb(var(--t) / 0.031) }
.fx[aria-current="true"] { color: var(--ink); background: color-mix(in srgb, var(--acc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent) }
.list .none { padding: 14px 8px; color: var(--mute); font-size: 13px }
.sk { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 8px }
.sk i, .sk b, .skn { border-radius: 5px; background: linear-gradient(90deg, rgb(var(--t) / 0.031) 0%, rgb(var(--t) / 0.078) 50%, rgb(var(--t) / 0.031) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite }
.sk i { height: 17px } .sk b { height: 10px; width: var(--w, 60%) }
.skn { display: inline-block; width: 7em; height: .8em; vertical-align: middle }
@keyframes shimmer { to { background-position: -200% 0 } }

/* 中:键盘 */
.stagev { position: relative }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 22px 26px 16px; overflow: hidden }
.board { position: relative; width: 100%; margin-inline: auto; border-radius: 20px; padding: 2.8% 2.8% 2.4%; background: linear-gradient(180deg, #171922, #0A0B0F); border: 1px solid #ffffff14; box-shadow: 0 40px 80px -40px var(--shd), inset 0 1px 0 #ffffff10 }
.board canvas { display: block; width: 100%; height: auto }
.board .g { position: absolute; inset: 2.8% 2.8% 2.4%; width: 94.4%; filter: blur(22px) saturate(1.5); opacity: .55; pointer-events: none; transform: scale(1.05) }
.board .k { position: relative; cursor: pointer; touch-action: manipulation }
.try { position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: #0d0e14e6; box-shadow: 0 0 0 1px var(--line2), 0 12px 30px -8px #000; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #F1F2F6; font-size: 13.5px; white-space: nowrap; pointer-events: none; animation: tryIn .5s cubic-bezier(.16, 1, .3, 1) }
@keyframes tryIn { from { opacity: 0; transform: translate(-50%, 30%) } }
.try .kb { display: flex; gap: 3px }
.try .kb i { width: 9px; height: 9px; border-radius: 2.5px; background: #ffffff26; animation: tap 1.5s ease-in-out infinite }
.try .kb i:nth-child(2) { animation-delay: .25s } .try .kb i:nth-child(3) { animation-delay: .5s }
@keyframes tap { 15% { background: #8FD3FF; box-shadow: 0 0 8px #8FD3FF; transform: translateY(1px) } 40% { background: #ffffff26; box-shadow: none; transform: none } }
@media (max-width: 680px) { .try { font-size: 12px; padding: 7px 12px 7px 10px } }
.stopped { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 6px; text-align: center; border-radius: inherit; background: #0a0b0fb8; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: soft .4s cubic-bezier(.16, 1, .3, 1) }
.stopped b { font: 900 22px/1.3 var(--cjk); color: #F1F2F6 }
.stopped span { font-size: 13px; color: #B4B8C6; padding-inline: 16px }
.info { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px 4px 0 }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px) } }
.board.swap .k { animation: flash .7s cubic-bezier(.16, 1, .3, 1) }
@keyframes flash { from { filter: brightness(1.7) saturate(.6) } }
.info h2 { margin: 0; font: 900 24px/1.25 var(--cjk); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap }
.star { align-self: center; width: 28px; height: 28px; margin-left: -4px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--mute) }
.star svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transition: transform .2s }
.star:hover { color: var(--ink) } .star:active svg { transform: scale(.85) }
.star[aria-pressed="true"] { color: #FFD60A } .star[aria-pressed="true"] svg { fill: currentColor }
.info h2 small { align-self: center; font: 500 12.5px var(--cjk); color: var(--mute); padding: 2px 10px; border-radius: 999px; background: rgb(var(--t) / 0.051) }
.info p { margin: 4px 0 0; color: var(--mute); font-size: 14px }
html.en .info p { font-size: 13px }   /* 11-09:英文说明比中文长,字小一号少折行 */
.step { display: flex; align-items: center; gap: 8px }
.hints { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; margin-top: -10px } .hints:not(:has(> :not([hidden]))) { display: none } .hints > p { margin-top: 0 }   /* 11-09:圆心 / 声音 / 试试提示占整行宽,不再挤在按钮左边那一窄条里一条条折行 */
.pbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px 0 13px; border-radius: 999px; border: 1px solid var(--line2); background: var(--btnbg); cursor: pointer; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .15s }
.pbtn:hover { background: rgb(var(--t) / 0.039) }
.pbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
#stop svg { fill: currentColor; stroke: none; width: 12px; height: 12px }
#stop.on { color: #30D158; border-color: #30D15866 } #stop.on svg { width: 13px; height: 13px }
.pager { display: inline-flex; align-items: center; height: 38px; padding: 0 3px; border-radius: 999px; border: 1px solid var(--line2); background: var(--btnbg) }
.pager span { font: 500 12.5px var(--mono); color: var(--ink); padding: 0 4px; min-width: 64px; text-align: center }
.pager button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--mute) }
.pager button:hover { color: var(--ink); background: rgb(var(--t) / 0.051) }
.pager svg, .dpg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }

/* 下:灯效设置卡片(固定高度,一行横排,放不下时两头渐隐 + 翻页) */
/* 下:灯效设置(同软件 1.1:基础 / 叠加 / 音乐三张卡片,卡片高 = 设置条高,内容超高在卡片里竖着滚)。
   网页上三张始终排得下:宽的时候并排等分,窄屏(窗口拆成上下时)按宽度自动换行,手机上一张一行、内容全展开 */
.dock { flex: none; height: clamp(268px, calc(100vh - 560px), 330px); position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: rgb(var(--t) / 0.008) }
.dock > .cap { padding: 10px 22px 8px; font-size: 12.5px; line-height: 1.3; color: var(--dim) }
.cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 22px 14px }
.dcard { min-width: 0; height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 14px; border-radius: 12px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.04); scrollbar-width: thin; scrollbar-color: rgb(var(--t) / 0.102) transparent; overscroll-behavior: contain; transition: box-shadow .3s; overflow-x: hidden; position: relative; isolation: isolate }
.dpg { display: none !important }
.dcard > * { flex: none }
.dcard h3 { margin: 0; display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 600 }
.dcard h3 svg { flex: none }
.dcard h3 svg { width: 15px; height: 15px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.dcard h3 .pro-tag { margin-left: 2px }
.dcard.flash { animation: cardFlash 1.2s ease-out }
@keyframes cardFlash { 0%, 35% { box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 24px -6px var(--acc) } }
/* 卡片里的滑杆和软件一样一行:名字 —— 滑杆 —— 数值 */
.dcard .rng { grid-template-columns: 52px minmax(0, 1fr) 54px; align-items: center; gap: 8px; font-size: 13.5px }
.dcard .rng label { display: contents }
.dcard .rng label > span { gap: 4px } .dcard .rng .pro-tag, .dcard .rng .nb { display: none }
.dcard .rng input { order: 1 } .dcard .rng output { order: 2; text-align: right }
.prow { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13.5px }
/* 三张卡片并排、窗口又不宽(1081~1250)时卡片很窄:滑杆一行改成「名字 + 数值」在上、滑杆在下。
   原来用容器查询(container-type),部分 Safari 版本下网格里的卡片宽度会算错、互相盖住,改成按窗口宽度 */
@media (min-width: 1081px) and (max-width: 1250px) {
  .dcard .rng { grid-template-columns: minmax(0, 1fr) auto } .dcard .rng input { order: 3; grid-column: 1 / -1 }
  .dcard .lbs .rng { grid-template-columns: minmax(0, 1fr) auto }
  .prow { grid-template-columns: minmax(0, 1fr) } .lbox .lbh span { display: none }
}
.dpg { position: absolute; top: calc(50% + 12px); transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: var(--pop); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px -4px var(--shd) }
.dpg:hover { background: var(--panel2) } .dpg.l { left: 8px } .dpg.r { right: 8px }

/* 右:工具条(变换 / 叠加 / 音乐 / 更多),和软件一样竖着一列 */
.side-r { position: relative; align-items: center; padding: 22px 0 }
.tbar { width: 68px; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-radius: 16px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2), 0 14px 30px -14px var(--shd) }
.tb { position: relative; display: grid; justify-items: center; gap: 1px; padding: 9px 2px 8px; border: 0; background: transparent; cursor: pointer; color: var(--ink); border-radius: 12px; transition: background .15s }
.tb:hover, .tb[aria-expanded="true"] { background: rgb(var(--t) / 0.051) }
.tb svg { width: 19px; height: 19px; margin-bottom: 3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.tb b { font-size: 11.5px; font-weight: 500; line-height: 1.3 }
.tb small { max-width: 58px; font-size: 10px; line-height: 1.3; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tb .dot { position: absolute; top: 9px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: #30D158; box-shadow: 0 0 6px #30D158; opacity: 0; transition: opacity .2s }
.tb.on .dot { opacity: 1 } .tb.on small { color: var(--mute) }
.pop, .tbtip { position: absolute; z-index: 6; right: 82px; border-radius: 14px; background: var(--pop); box-shadow: 0 0 0 1px var(--line2), 0 28px 60px -16px var(--shd); animation: menuIn .22s cubic-bezier(.16, 1, .3, 1) }
.pop { top: 22px; width: 224px; padding: 14px 16px; display: grid; gap: 12px }
.pop .btn { height: 34px; font-size: 13px }
.tbtip { top: var(--y, 120px); padding: 7px 12px; font-size: 12.5px; color: var(--mute); white-space: nowrap; pointer-events: none }
/* 配色色条:和软件一样,色条右侧叠一个「配色名 ⌄」胶囊 */
.sw { position: relative; display: flex; height: 30px; border-radius: 9px; overflow: hidden; cursor: pointer }
.sw i { flex: 1 }
.sw b { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: #0000008c; color: #fff; font-size: 12px; font-weight: 600 }
.sw b::after { content: ""; width: 5px; height: 5px; border-right: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(45deg) translateY(-2px) }
.disclaim { margin: 14px 2px 0; font-size: 12px; color: var(--dim); text-align: center }
.dcard .note2 { margin: 0; font-size: 12px; color: var(--mute); line-height: 1.55 }
.note2.flash { animation: noteFlash 1.6s ease-out }
@keyframes noteFlash { 0%, 40% { color: var(--ink) } }
.rng { display: grid; gap: 4px }
.rng label { display: flex; justify-content: space-between; font-size: 13.5px }
.rng output { font: 500 12px var(--mono); color: var(--mute) }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0 }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgb(var(--t) / 0.102) }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(var(--t) / 0.102) }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--acc) }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .18), 0 2px 5px rgb(0 0 0 / .3) }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .18), 0 2px 5px rgb(0 0 0 / .3) }
.tg { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13.5px }
.tg input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: rgb(var(--t) / 0.122); position: relative; cursor: pointer; margin: 0; transition: background .2s }
.tg input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px #0006 }
.tg input:checked { background: var(--acc) }
.tg input:checked::after { transform: translateX(16px) }
/* 圆心提示 / 选中后的引导 / 分隔线(和软件一样) */
.ctip { margin: 6px 0 0; color: var(--acc); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.guide { display: inline-block; margin: 8px 0 0; padding: 6px 12px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc); font-size: 12.5px; font-weight: 600; transition: opacity .5s }
.guide.fade { opacity: 0 }
.ctip[hidden], .guide[hidden] { display: none }
hr.sub { border: 0; border-top: 1px solid var(--line, rgb(var(--t) / 0.078)); margin: 6px 0 2px }
.rng label > span { display: inline-flex; align-items: center; gap: 6px }
input[type=range]:disabled { opacity: .4 }
/* 按键叠加:和软件一样 —— 选效果(带缩略图的下拉)、叠加速度、亮度、只看叠加、按键过渡 */
.ovsel { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) 14px; gap: 10px; align-items: center; height: 38px; padding: 0 12px 0 10px; border: 0; border-radius: 11px; background: var(--btnbg); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font-size: 13.5px; cursor: pointer; text-align: left; transition: box-shadow .15s }
.ovsel:hover { box-shadow: inset 0 0 0 1px rgb(var(--t) / 0.18) }
.ovsel[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--acc) }
.ovsel canvas { width: 46px; height: 17px; display: block; border-radius: 4px; background: #05060A }
.ovsel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ovsel svg { width: 14px; height: 14px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s }
.ovsel[aria-expanded="true"] svg { transform: rotate(180deg) }
.ovmenu { position: absolute; z-index: 6; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--pop); box-shadow: 0 0 0 1px var(--line2), 0 28px 60px -16px var(--shd); scrollbar-width: thin; scrollbar-color: rgb(var(--t) / 0.102) transparent; transform-origin: bottom; animation: menuIn .22s cubic-bezier(.16, 1, .3, 1) }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98) } }
.ovmenu .gh { font-size: 11.5px; color: var(--dim); padding: 10px 8px 4px }
.ovmenu .fx { padding: 6px 8px }
.ovmenu .fx.none { grid-template-columns: 1fr }
.ovbox .btn { height: 34px; font-size: 13px }
#ovTip { color: var(--amber) }
.ovbox.dis .ovsel, .ovbox.dis .rng, .ovbox.dis .btn { opacity: .38; pointer-events: none }
.ovbox.off .rng { opacity: .38; pointer-events: none }
.hint { margin: 0; font-size: 12.5px; color: var(--mute) }
kbd { font: 600 11px var(--mono); padding: 1px 6px; border-radius: 5px; background: rgb(var(--t) / 0.071); border-bottom: 1.5px solid rgb(var(--t) / 0.125); color: var(--ink) }

/* 音乐卡片的「正在跟随声音」:软件里是电脑正在播放的声音,网页里用和音乐律动演示同一段模拟节奏(取「频谱柱」那一帧每列亮了多高) */
.mlive { display: grid; gap: 6px; padding: 9px 10px 9px; border-radius: 10px; background: rgb(var(--t) / 0.035); box-shadow: inset 0 0 0 1px var(--line) }
.mlive canvas { display: block; width: 100%; height: 40px }
.mlive span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mute); min-width: 0 }
.mlive b { font-weight: 600; color: var(--ink); white-space: nowrap } .mlive small { margin-left: auto; min-width: 0; color: var(--dim); text-align: right; line-height: 1.25 }   /* 11-09:窄的时候折行,不截断 */
.ldot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 calc(4px + var(--lv, .5) * 10px) var(--ok); transform: scale(calc(.8 + var(--lv, .5) * .5)) }
.ldot.off { background: rgb(var(--t) / 0.2); box-shadow: none; transform: none }
.apps { display: grid; gap: 2px; padding: 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line) }
.apps span { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 12.5px; border-radius: 7px }
.apps small { margin-left: auto; font-size: 11.5px; color: var(--ok) }
.seg.sm button { height: 26px; padding: 0 10px; font-size: 12px }
.dcard .seg { display: grid; grid-template-columns: 1fr 1fr } .dcard .seg button { padding: 0 6px; overflow: hidden; text-overflow: ellipsis }
.dcard .seg.sm { border-radius: 14px } .dcard .seg.sm button { height: auto; min-height: 26px; padding: 4px 6px; white-space: normal; line-height: 1.2; border-radius: 11px }   /* 11-09:「只跟随勾选的软件」窄的时候折行,不截断 */
/* ── 1.1 新样式:标题栏 PRO / 设备胶囊、左栏收起成分类图标栏、三张卡片里的分层说明和「本层亮度 · 饱和度」 ── */
.tl-l, .tl-r { display: flex; align-items: center; gap: 12px }
.sbt { width: 30px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--mute); cursor: pointer; display: grid; place-items: center }
.sbt:hover, .sbt[aria-pressed="true"] { background: var(--hover); color: var(--ink) }
.sbt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6 }
.probtn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font: 800 11.5px/1 var(--wide); letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #FFB340, #FF7A00); box-shadow: 0 4px 14px -4px #FF8A0099, inset 0 1px 0 #ffffff40 }
.probtn:hover { filter: brightness(1.06) }
.dev-tag svg { width: 13px; height: 13px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: 1px }
.ver { flex: none; padding: 9px 18px 12px; border-top: 1px solid var(--line); font: 500 11.5px var(--wide); color: var(--dim) }
.crail { display: none }
.app.collapsed { grid-template-columns: 84px minmax(0, 1fr) 88px }
.app.collapsed .side-l > :not(.crail):not(.catpop) { display: none }
.app.collapsed .crail { display: flex; flex-direction: column; gap: 2px; margin: 14px auto; width: 64px; padding: 6px 0; border-radius: 16px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2), 0 14px 30px -14px var(--shd); overflow-y: auto; scrollbar-width: none }
.crail button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; border: 0; border-radius: 11px; background: transparent; color: var(--mute); cursor: pointer; font-size: 10.5px; line-height: 1.2 }
.crail button:hover { background: var(--hover); color: var(--ink) }
.crail button[aria-expanded="true"] { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc) }
.crail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.catpop { position: absolute; z-index: 8; left: 80px; top: 10px; bottom: 12px; width: 286px; display: flex; flex-direction: column; border-radius: 14px; background: var(--pop); box-shadow: 0 0 0 1px var(--line2), 0 28px 60px -16px var(--shd); animation: menuIn .22s cubic-bezier(.16, 1, .3, 1) }
.catpop[hidden] { display: none !important }
.cph { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 16px; font-size: 13.5px }
.cph button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--hover); color: var(--mute); cursor: pointer; font-size: 16px; line-height: 1 }
.lcall { margin: 0; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.55; color: var(--ink); background: color-mix(in srgb, var(--acc) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 32%, transparent) }
.lcall b { color: var(--acc); margin-right: 6px; font-weight: 700 }
.dcard h3 .cst { margin-left: auto; min-width: 0; font-size: 12px; font-weight: 500; color: var(--mute); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.dcard h3 .cst.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok) }
.lbox { display: grid; gap: 8px; padding: 10px 12px; border-radius: 11px; background: rgb(var(--t) / 0.03); box-shadow: inset 0 0 0 1px var(--line) }
.lbox .lbh { gap: 4px 8px; flex-wrap: wrap; font-size: 12.5px } .lbox .lbh b { font-weight: 600; margin-right: auto } .lbox .lbh span { color: var(--mute) }
.lbox .tg input { width: 32px; height: 19px } .lbox .tg input::after { width: 15px; height: 15px } .lbox .tg input:checked::after { transform: translateX(13px) }
.lbox input:disabled { opacity: .55; cursor: default }
.lbf { margin: 0; font-size: 12px; color: var(--mute) }
.lbs { display: grid; gap: 6px } .lbs[hidden] { display: none }
.dcard .lbs .rng { grid-template-columns: 52px minmax(0, 1fr) 46px }
.sh { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600 }
.sh svg { width: 15px; height: 15px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.note2.dim2 { color: var(--dim) }
.mhint { margin: 6px 0 0; font-size: 12.5px; color: var(--mute) }
.tsep { display: block; height: 1px; margin: 4px 12px; background: var(--line2) }
.kdot { position: absolute; top: 8px; right: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc) }
/* 分段胶囊(软件里的 Mac 模式 / Windows 模式、默认层 / Fn 层) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgb(var(--t) / 0.06); box-shadow: inset 0 0 0 1px var(--line) }
.seg button { height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--mute); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s }
.seg button:hover { color: var(--ink) }
.seg button[aria-pressed="true"] { background: var(--acc); color: #fff; font-weight: 600 }
:root .seg button[aria-pressed="true"] { color: #08202E }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .seg button[aria-pressed="true"] { color: #fff } }
:root[data-theme="light"] .seg button[aria-pressed="true"] { color: #fff }
.xp { display: inline-block; margin-left: 8px; vertical-align: 2px; font: 600 11.5px var(--cjk); color: var(--amber); padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--amber) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 30%, transparent) }

/* 三层说明 / 改键 */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px }
.ly { padding: 16px; display: grid; gap: 10px; align-content: start }
.ly > span { font-size: 14px; color: var(--mute); line-height: 1.65 }
@media (max-width: 900px) { .layers { grid-template-columns: 1fr } }
section { scroll-margin-top: 64px }
/* 改键:整宽键盘(键帽画法照软件改键窗口 KMBoardView:深色键帽、改过的键蓝底 + 下面一行浅蓝短字、层键同样蓝底标「层键」)
   + 下方速查(按分组多栏排满)+ 四个要点卡片 */
.km { padding: 18px 18px 20px; display: grid; gap: 14px }
.km-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.km-tip { flex: 1 1 260px; margin: 0 0 0 6px; font-size: 13px; color: var(--mute) }
.km-scroll { border-radius: 16px; background: linear-gradient(180deg, #171922, #0C0D12); border: 1px solid #ffffff14; box-shadow: inset 0 1px 0 #ffffff10; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent }
.km-kb { position: relative; margin: 2.2% 2%; min-width: 700px; container-type: inline-size }
.km-kb .k { position: absolute; display: flex; flex-direction: column; justify-content: space-between; padding: .45cqw .5cqw .4cqw; border-radius: .55cqw; background: #292B36; color: #ffffffc7; overflow: hidden; box-shadow: inset 0 -1px 0 #00000059, inset 0 1px 0 #ffffff0d }
.km-kb .k b { font: 600 max(8px, 1.15cqw)/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.km-kb .k i { position: absolute; right: .5cqw; top: .4cqw; font: 500 max(7px, .9cqw)/1 -apple-system, "Segoe UI", sans-serif; font-style: normal; color: #ffffff6b }
.km-kb .k em { font: 700 max(8.5px, 1.3cqw)/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-style: normal; color: #9EE0FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.km-kb .k em.s { font-size: max(8px, 1.05cqw) } .km-kb .k em.xs { font-size: max(7.5px, .88cqw) }
.km-kb .k.on { background: #1A5285; color: #fff; box-shadow: inset 0 0 0 1px #8FD3FF66, inset 0 -1px 0 #00000059 }
.km-kb .k.dim { background: #1F2026; color: #ffffff59 }
.km-kb .k.off { background: #1A1A1F; color: #ffffff2e }
.km-leg { columns: 4 200px; column-gap: 14px }
.lgg { break-inside: avoid; margin-bottom: 14px; padding: 12px 14px 10px; border-radius: 12px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line) }
.lgg > i { display: block; margin-bottom: 8px; font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--dim) }
.lgg > span { display: grid; grid-template-columns: minmax(30px, auto) minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--ink); border-top: 1px solid var(--line) }
.lgg > span:first-of-type { border-top: 0 }
.lgg kbd { min-width: 26px; text-align: center }
.lgg small { font: 700 12px var(--cjk); color: var(--acc); white-space: nowrap }
.km-pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px }
.kpt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line) }
.kic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent) }
.kic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.kpt b { display: block; font-weight: 700; margin: 1px 0 3px }
.kpt span { color: var(--mute); font-size: 14px; line-height: 1.6 }
@media (max-width: 760px) { .km { padding: 12px } .km-pts { grid-template-columns: minmax(0, 1fr) } .kpt { padding: 14px 16px } .km-tip { margin-left: 2px } }
@media (max-width: 520px) { .seg button { padding: 0 12px; font-size: 12.5px } .probtn { display: none } .titlebar b { display: none } }

/* 窄屏:窗口拆成上下 —— 键盘、说明和设置卡片在上,工具条横排,列表在下(限高可滚) */
@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto }
  .titlebar { height: 44px }
  .stagev { order: 1 }
  .side-r { order: 2; padding: 10px 16px; border-top: 1px solid var(--line) }
  .tbar { width: 100%; max-width: 420px; flex-direction: row; padding: 4px 6px }
  .tb { flex: 1; min-width: 0; padding: 7px 2px 6px }
  .pop, .tbtip { top: auto; bottom: calc(100% - 4px); right: 16px }
  .side-l { order: 3; border-right: 0; border-top: 1px solid var(--line); height: 420px }
  .cats { display: flex; flex-wrap: wrap } .cats button { padding: 0 14px }
  .sbt, .ver, .tsep { display: none }
  .tbar .tsep + .tb { display: grid }
  .view { padding: 22px 22px 16px }
  .dock { height: auto }
  .cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) }
  .dcard { height: 300px }
}
@media (max-width: 680px) {
  .app { border-radius: 18px; margin-inline: -4px }
  .titlebar { padding-inline: 14px }
  .view { padding: 14px 10px 14px }
  .board { border-radius: 12px }
  .info { grid-template-columns: minmax(0, 1fr); padding: 12px 4px 0; gap: 10px }
  .info h2 { font-size: 19px } .info p { font-size: 13px }
  .step { flex-wrap: wrap; gap: 6px } .pbtn { height: 34px; padding: 0 12px 0 10px; font-size: 13px } .pager { height: 34px }
  .dock > .cap { padding-inline: 14px } .cards { padding-inline: 14px }
  .cards { grid-template-columns: minmax(0, 1fr) }
  .dcard { height: auto; overflow: visible }
  .side-l { height: 380px }
  .hint { display: none }
}

/* 叠加卖点:氛围 + 按键 = 叠加后 */
.eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.35fr); gap: 14px; align-items: center }
.eq .op { font: 300 34px/1 var(--wide); color: var(--dim); text-align: center }
.mixc { padding: 14px 14px 16px; display: grid; gap: 10px; min-width: 0 }
.mixc canvas { width: 100%; height: auto; display: block; border-radius: 10px; background: #000 }
.mixc b { font-size: 15px; display: flex; align-items: baseline; gap: 8px }
.mixc b small { font-weight: 400; font-size: 12.5px; color: var(--mute) }
.mixc.res { border-color: color-mix(in srgb, var(--kacc) 35%, transparent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--kacc) 60%, transparent) }
.mixc.res b { font-size: 17px }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chips button { border: 0; padding: 3px 11px; border-radius: 999px; background: rgb(var(--t) / 0.039); color: var(--mute); font-size: 12.5px; cursor: pointer; transition: .15s }
.chips button:hover { color: var(--ink) }
.chips button[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent) }
@media (max-width: 1000px) { .eq { grid-template-columns: 1fr 1fr; } .eq .op { display: none } .mixc.res { grid-column: 1 / -1 } }
@media (max-width: 600px) { .eq { grid-template-columns: 1fr; gap: 12px } .eq .op { display: block; font-size: 26px } .mixc.res { grid-column: auto } }

/* Pro 标记、价格 */
.pro-tag { display: inline-block; margin-left: 6px; vertical-align: 1px; color: var(--pro); background: color-mix(in srgb, var(--pro) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pro) 35%, transparent); border-radius: 999px; padding: 3px 6px; font: 700 9px/1 var(--wide); letter-spacing: .06em }
.mac { display: inline-block; font-size: 11.5px; font-weight: 500; color: var(--acc); padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--acc) 14%, transparent); margin-left: 8px; vertical-align: 2px }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.plan { padding: 26px 26px 28px; display: grid; gap: 18px; align-content: start }
.plan .ph2 { display: flex; justify-content: space-between; align-items: baseline }
.plan .ph2 b { font-size: 20px }
.plan .price { font: 800 30px/1 var(--wide) } .plan .price small { font: 400 12.5px var(--cjk); color: var(--mute); margin-left: 6px }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--mute) }
.plan li { padding-left: 22px; position: relative } .plan li b { color: var(--ink); font-weight: 600 }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(-45deg) }
.plan.pro { border-color: color-mix(in srgb, var(--pro) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--pro) 6%, transparent), transparent 40%), var(--panel) }
.plan.pro li::before { border-color: var(--pro) }
.plan .btn { justify-self: start }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr } }

/* 分节 */
section { padding-top: 120px }
@media (max-width: 600px) { section { padding-top: 80px } }
.shead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 26px }
.shead h2 { margin: 0; font: 900 clamp(28px, 4vw, 46px)/1.15 "LumoHead", var(--cjk) }
.shead p { margin: 0; color: var(--mute); font-size: 15px }
.card { border-radius: 20px; border: 1px solid var(--line); background: var(--panel) }
.demo, .mixc canvas, .mus canvas { color-scheme: dark }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.trio article { padding: 16px 16px 22px; display: grid; gap: 14px; align-content: start; min-width: 0 }
.trio h3 { margin: 4px 4px 0; font: 700 17px var(--cjk) }
.trio p { margin: -8px 4px 0; color: var(--mute); font-size: 14px }
.demo { height: 150px; border-radius: 14px; background: #08090D; border: 1px solid var(--line); color: #F1F2F6; padding: 14px; display: grid; align-content: center }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr } }
.menu { display: grid; gap: 9px; font-size: 13px }
.menu .row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 10px; align-items: center }
.menu .row b { font: 600 12.5px var(--mono); text-align: right }
.menu .meter { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: #ffffff12 }
.menu .meter i { display: block; height: 100%; background: #F1F2F6; border-radius: 2px }
.menu .meter i.low { background: #FFB45A }
#typeDemo, #matrix { width: 100%; height: auto; display: block; border-radius: 8px; background: #000 }
.knobs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px }
.knob { font-size: 13px; padding: 5px 14px; border-radius: 999px; background: rgb(var(--t) / 0.039); color: var(--mute) }

/* 说明气泡(设备旁的「!」等,脚本在 src/prefs.html) */
.dinfo { flex: none; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center; font: 800 11px/1 var(--wide); color: var(--mute); background: transparent; box-shadow: inset 0 0 0 1.4px currentColor; cursor: pointer }
.dinfo:hover, .dinfo[aria-expanded="true"], .dinfo:focus-visible { color: var(--acc) }
.tipop { position: absolute; z-index: 60; max-width: min(320px, calc(100vw - 20px)); padding: 10px 13px; border-radius: 12px; background: var(--pop); color: var(--ink); font-size: 13px; line-height: 1.55; box-shadow: 0 0 0 1px var(--line2), 0 18px 40px -12px var(--shd); animation: menuIn .16s cubic-bezier(.16, 1, .3, 1); pointer-events: auto }
.tipop[hidden] { display: none }
.tipop i { position: absolute; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--pop); transform: rotate(45deg); box-shadow: 1px 1px 0 var(--line2) }
.tipop.below i { bottom: auto; top: -6px; box-shadow: -1px -1px 0 var(--line2) }
[data-tip]:not(.dinfo) { cursor: help }
/* 支持的设备:两列紧凑网格,筛选 + 搜索,默认先露 12 款 */
.dtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px }
.dtools .chips i { font-style: normal; font: 500 11px var(--mono); opacity: .7; margin-left: 2px }
.dfind { margin: 0; width: min(280px, 100%) }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden }
.dv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-content: start; padding: 14px 18px; border-top: 1px solid var(--line); min-width: 0 }
.dgrid .dv:nth-child(odd) { border-right: 1px solid var(--line) }
.dgrid .dv.first2 { border-top: 0 }
.dvh { display: flex; align-items: center; gap: 8px; min-width: 0 } .dvh b { font: 700 15px var(--cjk); overflow-wrap: anywhere }
.dvc { grid-column: 1; font-size: 12.5px; color: var(--mute) }
.dvw { grid-column: 1 / -1; font-size: 13px; color: var(--mute) }
.dv .os { grid-column: 2; grid-row: 1 / 3; align-self: start; font-size: 11.5px }
.dtag { flex: none; font: 600 11px var(--cjk); padding: 1px 8px; border-radius: 999px; color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent) }
.dtag.soon { color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent) }
.dv.more { grid-column: 1 / -1; background: repeating-linear-gradient(135deg, transparent 0 10px, rgb(var(--t) / 0.016) 10px 20px) }
.dv.more .dvh b { color: var(--mute) }
.dv.hide { display: none }
.dextra { margin-top: 12px; grid-template-columns: minmax(0, 1fr) } .dextra .dv:first-child { border-top: 0 } .dextra .dv { border-right: 0 !important }
.dmore { display: flex; justify-content: center; margin-top: 12px } .dmore:has(> [hidden]) { display: none }
.dnone { text-align: center }
.dno { margin: 12px 2px 0; font-size: 12.5px; color: var(--dim) }
@media (max-width: 760px) { .dgrid { grid-template-columns: minmax(0, 1fr) } .dgrid .dv:nth-child(odd) { border-right: 0 } .dv { padding: 13px 16px } }
.rows { overflow: hidden }
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 240px; gap: 24px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line) }
.dev:first-child { border-top: 0 }
.dev b { font: 700 16px var(--cjk) }
.dev b small { display: block; font: 400 12.5px var(--cjk); color: var(--mute); margin-top: 2px }
.dev .what { color: var(--mute); font-size: 14px }
.os { display: flex; gap: 6px; font-size: 12px; justify-content: flex-end }
.os span { padding: 2px 10px; border-radius: 999px; background: rgb(var(--t) / 0.051) }
.dev.more { background: repeating-linear-gradient(135deg, transparent 0 10px, rgb(var(--t) / 0.016) 10px 20px) }
.dev.more b { color: var(--mute) }
.os span.soon { color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent) }
.os span.beta { color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent) }
@media (max-width: 760px) { .dev { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px } .os { justify-content: flex-start } }

.get { margin-top: 120px; position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center }
.get::before { content: ""; position: absolute; inset: 40% -20% -80%; background: radial-gradient(50% 50% at 50% 50%, var(--c1, #ff2e9e), transparent 70%); opacity: var(--washo, .3); filter: blur(50px); pointer-events: none }
.get > * { position: relative }
.get h2 { margin: 0 0 22px; font: 900 clamp(32px, 5vw, 56px)/1.1 "LumoHead", var(--cjk) }
.get .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--mute) }
.tip { display: grid; justify-items: center; gap: 10px; font-size: 13px; color: var(--mute) }
.qr { width: 148px; height: 148px; border-radius: 18px; background: #fff; padding: 8px; box-shadow: 0 10px 30px var(--shd) }
.qr img { width: 100%; height: 100%; display: block; border-radius: 10px }
@media (max-width: 760px) { .get { grid-template-columns: minmax(0, 1fr); margin-top: 80px } .get .ctas .btn { min-width: 0; padding-inline: 12px } .tip { justify-items: start } .get .ctas { display: grid; grid-template-columns: 1fr 1fr } }

.inst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.inst > div { padding: 22px 24px }
.inst h3 { margin: 0 0 14px; font: 700 17px var(--cjk); display: flex; align-items: center; gap: 8px }
.inst h3 svg { width: 18px; height: 18px; fill: currentColor }
.inst ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px }
.inst li { counter-increment: s; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--mute); line-height: 1.65 }
.inst li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: rgb(var(--t) / 0.063); color: var(--ink); font: 600 12px/22px var(--cjk); text-align: center; margin-top: 1px }
.inst li b { color: var(--ink); font-weight: 600 }
.inst .alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute) }
.cmd { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: rgb(var(--t) / 0.05); border: 1px solid var(--line) }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink) }
.cmd button { flex: none; border: 0; border-radius: 7px; padding: 4px 10px; font: 12px var(--cjk); color: var(--ink); background: rgb(var(--t) / 0.078); cursor: pointer }
.cmd button:hover { background: rgb(var(--t) / 0.133) }
.get .meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--t) / 0.251) }
@media (max-width: 760px) { .inst { grid-template-columns: minmax(0, 1fr) } }

.mus { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px }
.mus .stage { padding: 14px 14px 16px; display: grid; gap: 12px; min-width: 0; border-color: color-mix(in srgb, var(--kacc) 30%, transparent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--kacc) 55%, transparent) }
.mus canvas { width: 100%; height: auto; display: block; border-radius: 10px; background: #000 }
.mus .stage small { color: var(--dim); font-size: 12px }
.mus .pts { padding: 22px 24px; display: grid; gap: 16px; align-content: start }
.mus .pts div b { display: block; font-weight: 700; margin-bottom: 3px }
.mus .pts div > span { color: var(--mute); font-size: 14px; line-height: 1.6 }
@media (max-width: 900px) { .mus { grid-template-columns: 1fr } }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.faq div { padding: 20px 22px }
.faq b { display: block; margin-bottom: 4px; font-weight: 700 }
.faq span { color: var(--mute); font-size: 14px }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr } }

footer { margin-top: 110px; border-top: 1px solid var(--line); padding-block: 30px 44px; font-size: 13px; color: var(--mute) }
footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start }
footer p { margin: 0; max-width: 60em }
footer .sig { color: var(--ink) }
a.ul { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--t) / 0.251) }
a.ul:hover { text-decoration-color: currentColor }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; gap: 14px } }
.note { color: var(--mute); font-size: 13px; padding-block: 20px }
/* 滚到才出现:脚本跑起来(html.js)才先藏,脚本挂了也不会白屏 */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s) }
.js .rv.in { opacity: 1; transform: none }
/* 窗口分层入场:先是窗口本体,再依次是标题栏 → 左栏 → 键盘 → 说明 → 工具条 → 设置卡片 */
.app { animation: appIn 1.2s .4s cubic-bezier(.16, 1, .3, 1) both }
@keyframes appIn { from { opacity: 0; transform: translateY(30px) scale(.985) } }
.titlebar { animation: soft .8s .65s cubic-bezier(.16, 1, .3, 1) both }
.side-l { animation: fromL 1s .75s cubic-bezier(.16, 1, .3, 1) both }
.board { animation: boardIn 1.2s .85s cubic-bezier(.16, 1, .3, 1) both }
.info { animation: soft 1s 1s cubic-bezier(.16, 1, .3, 1) both }
.dcard { animation: soft 1s cubic-bezier(.16, 1, .3, 1) both } .dcard:nth-child(1) { animation-delay: 1.05s } .dcard:nth-child(2) { animation-delay: 1.15s } .dcard:nth-child(3) { animation-delay: 1.25s }   /* 音乐卡片接在叠加后面进场 */
.tbar { animation: fromR 1s .9s cubic-bezier(.16, 1, .3, 1) both }
@keyframes fromL { from { opacity: 0; transform: translateX(-14px) } }
@keyframes fromR { from { opacity: 0; transform: translateX(14px) } }
@keyframes boardIn { from { opacity: 0; transform: translateY(14px) scale(.965); filter: blur(4px) } }
/* 列表行、同组缩略图:一排排错开出来 */
.fx.in { animation: soft .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--k, 0) * 28ms) }
/* 切换灯效:名字 → 分组 → 说明,依次上来 */
.info.swap h2 > span { animation: soft .55s cubic-bezier(.16, 1, .3, 1) both }
.info.swap h2 small { animation: soft .55s .06s cubic-bezier(.16, 1, .3, 1) both }
.info.swap p { animation: soft .55s .12s cubic-bezier(.16, 1, .3, 1) both }
.pill i { animation: pulse 2.4s ease-in-out infinite }
@keyframes pulse { 50% { box-shadow: 0 0 16px var(--kacc); transform: scale(1.3) } }
.pill { animation: soft .9s cubic-bezier(.16, 1, .3, 1) both }
.intro .side { animation: soft 1s .35s cubic-bezier(.16, 1, .3, 1) both }
@keyframes soft { from { opacity: 0; transform: translateY(10px); filter: blur(6px) } }
.nav { transition: box-shadow .3s }
.nav.scrolled { box-shadow: 0 1px 0 var(--line) }
.btn:hover { transform: translateY(-1px) }
.card { transition: border-color .25s, transform .25s, opacity .8s cubic-bezier(.2, .7, .1, 1) }
.trio .card.in:hover, .faq .card.in:hover { border-color: var(--line2); transform: translateY(-3px) }
.fx canvas { transition: transform .2s } .fx:hover canvas { transform: scale(1.06) }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { animation: none !important; transition: none !important } .js .rv, .intro h1 .ch { opacity: 1; transform: none; filter: none } }
