/* 正式站样式：由方案 A（终末地暗色）的 base.css + theme-a.css 合并，并追加弹窗/名人堂样式 */
/* ===== 结构和布局（三套方案相同）。颜色、圆角、字体等都走变量，由后面的主题部分定义 ===== */
@font-face { font-family: "印品鸿蒙体"; src: url('../assets/fonts/YinPinHongMeng.woff2') format('woff2'); font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }
.deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 28px; background: var(--top-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { flex: none; width: 28px; height: 28px; background: var(--accent); }
.brand h1 { margin: 0; font: 400 21px/1.1 var(--font-head); white-space: nowrap; letter-spacing: .02em; }
.brand h1 i { font-style: normal; color: var(--dim); margin: 0 2px; }
.brand p { margin: 5px 0 0; font: 600 10px/1 var(--font-num); letter-spacing: .2em; color: var(--dim); white-space: nowrap; }
.search { flex: 1; max-width: 400px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.search svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; }
.search input::placeholder { color: var(--dim); }
.search:focus-within { border-color: var(--focus); }
.top-actions { display: flex; gap: 8px; }
.btn { height: 36px; padding: 0 14px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn.off { color: var(--dim); cursor: default; }

/* 筛选条 */
.bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; max-width: 1560px; margin: 0 auto; padding: 16px 28px 4px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.seg button { height: 32px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--dim); border-radius: var(--radius-in); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.scene-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.seg-cap { font-size: 12px; color: var(--dim); flex: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin-left: auto; cursor: pointer; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 36px; height: 20px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--dim); transition: .2s; }
.switch input:checked + .sw { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .sw::after { left: 18px; background: var(--accent-ink); }

/* 三栏：左试听台 / 中天梯 / 右曲线台 */
.stage { display: grid; grid-template-columns: 288px minmax(0, 1fr) 404px; gap: 20px; align-items: start; max-width: 1560px; margin: 0 auto; padding: 12px 28px 64px; }
.dock { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.dock-h { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dock-tag { flex: none; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--font-num); }
.dock-h h2 { margin: 0; font: 400 17px/1 var(--font-head); }
.dock-h em { font: 600 10px/1 var(--font-num); letter-spacing: .16em; color: var(--dim); font-style: normal; margin-top: 3px; }
.sheet-x { display: none; margin-left: auto; height: 32px; padding: 0 12px; font-size: 12px; color: var(--dim); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.hint { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--dim); }
.hint b { color: var(--text); font-weight: 600; }

.now { display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.now-pic { flex: none; width: 72px; height: 72px; }
.now-pic img { width: 100%; height: 100%; object-fit: contain; }
.now-txt { min-width: 0; }
.now-txt small { display: block; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.now-txt strong { display: block; font-size: 17px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-txt span { display: block; margin-top: 4px; font-size: 12px; color: var(--dim); }
.transport { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 14px; }
.t-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--act-radius); }
.t-btn svg { width: 20px; height: 20px; }
.t-play { width: 60px; height: 60px; display: grid; place-items: center; background: var(--audio); color: var(--audio-ink); border-radius: var(--act-radius); }
.t-play svg { width: 28px; height: 28px; }
.prog { height: 4px; background: var(--track); position: relative; overflow: hidden; border-radius: 2px; }
.prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--audio-bar); }
.prog-t { display: flex; justify-content: space-between; margin-top: 7px; font: 600 11px/1 var(--font-num); color: var(--dim); letter-spacing: .04em; }

.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.legend:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 2px 0 8px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }
.chip i { flex: none; width: 10px; height: 10px; background: var(--cc); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { flex: none; width: 26px; height: 26px; color: var(--dim); font-size: 16px; line-height: 1; }
.plot { position: relative; height: 300px; background: var(--plot-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plot-in { position: absolute; inset: 0; }
.plot-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; text-align: center; font-size: 13px; color: var(--dim); }
.plot text, .fr text { font: 600 10px var(--font-num); fill: var(--plot-text); }
.g { stroke: var(--grid); stroke-width: 1; }
.g0 { stroke: var(--grid-strong); }
.cv { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.cv.dash { stroke-width: 1.4; stroke-dasharray: 4 4; }
.dock-actions { display: flex; gap: 8px; margin-top: 12px; }
.dock-actions .btn { flex: 1; }

/* 天梯 */
.lhead, .row { display: grid; grid-template-columns: 44px 40px 60px minmax(0, 1fr) minmax(170px, 36%) 44px; align-items: center; column-gap: 12px; }
.lhead { position: sticky; top: 64px; z-index: 20; height: 36px; padding: 0 11px; font-size: 12px; color: var(--dim); background: var(--bg); }
.lhead .c { text-align: center; }
.lhead b { color: var(--text); font-weight: 600; }
.h-qi { text-align: right; }
.row { position: relative; min-height: 66px; padding: 0 10px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; outline: 0; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.row:hover, .row:focus-visible { background: var(--surface-2); border-color: var(--line-strong); }
.act { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--act-radius); transition: .15s; }
.act svg { width: 20px; height: 20px; }
.act:hover { border-color: var(--focus); }
.act.ph { border-style: dashed; opacity: .35; }
.row.playing .listen { background: var(--audio); border-color: var(--audio); color: var(--audio-ink); }
.row.charted .curve { background: var(--cc); border-color: var(--cc); color: var(--cc-ink); }
.rk { font: var(--num-style) 24px/1 var(--font-num); text-align: center; color: var(--dim); }
.row.top3 .rk { color: var(--rank-top); }
.pic { height: 48px; display: grid; place-items: center; }
.pic img { width: 100%; height: 48px; object-fit: contain; }
.nm { min-width: 0; padding: 9px 0; }
.nm small { display: block; font-size: 11.5px; line-height: 1.25; font-weight: 700; color: var(--accent-text); }
.nm strong { display: block; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm .meta { display: block; font-size: 12px; line-height: 1.35; color: var(--dim); }
.qi { display: flex; align-items: center; gap: 12px; }
.track { flex: 1; height: 6px; background: var(--track); position: relative; overflow: hidden; border-radius: var(--bar-radius); }
.track i { position: absolute; inset: 0 auto 0 0; background: var(--bar); border-radius: inherit; }
.row.top3 .track i { background: var(--bar-top); }
.qi b { flex: none; width: 60px; text-align: right; font: var(--num-style) 26px/1 var(--font-num); font-variant-numeric: tabular-nums; }
.qi b.na { color: var(--dim); }
.row.censored { cursor: not-allowed; opacity: .55; }
.row.censored strong { font-size: 13px; font-weight: 400; color: var(--dim); }
.empty, .foot-note { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--dim); }

/* 详情（单击条目展开） */
.detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.detail.open { grid-template-rows: 1fr; }
.d-in { overflow: hidden; min-height: 0; }
.d-box { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.row.opened { border-color: var(--line-strong); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.d-cap { font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.d-cap em { font-style: normal; opacity: .85; margin-left: 8px; }
.fr { position: relative; height: 160px; background: var(--plot-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.nil { color: var(--dim); font-weight: 400; }
p.nil { margin: 0; height: 100%; display: grid; place-items: center; font-size: 12px; }
.d-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 14px; }
.d-info dt { font-size: 11.5px; color: var(--dim); }
.d-info dd { margin: 0; font-size: 14px; font-weight: 600; word-break: break-word; }
/* 详情里的场景行：固定 4 格一排，桌面/手机都不换行（室内 / 地铁通勤 / 施工重地 / 航旅机舱） */
.d-sc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.d-sc div { padding: 6px 4px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.d-sc small { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-sc b { display: block; font: 400 15px/1.3 var(--font-num); }
.d-sc i { display: block; font: 400 10.5px/1.2 var(--font-num); color: var(--dim); font-style: normal; letter-spacing: .02em; }
.d-sc .cur { border-color: var(--focus); background: var(--cur-bg); }

.mbar { display: none; }
#toast { position: fixed; left: 50%; bottom: 96px; z-index: 90; transform: translate(-50%, 12px); padding: 9px 14px; font-size: 13px; background: var(--text); color: var(--bg); border-radius: var(--radius); opacity: 0; pointer-events: none; transition: .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 窄屏：两个台子改成底部抽屉，入口固定在屏幕底部的左右两侧 */
@media (max-width: 1100px) {
  .top { height: 56px; padding: 0 16px; gap: 12px; }
  .bar { padding: 12px 16px 2px; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 6px 16px calc(84px + env(safe-area-inset-bottom)); }
  .lhead { top: 56px; }
  .dock { position: fixed; z-index: 60; left: 0; right: 0; top: auto; bottom: calc(60px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; transform: translateY(calc(100% + 90px)); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--sheet-shadow); }
  .dock.open { transform: none; }
  .sheet-x { display: inline-block; }
  .dock .hint { display: none; }
  .plot { height: min(32vh, 280px); }
  .mbar { position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--mbar-bg); border-top: 1px solid var(--line-strong); }
  .mbar button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 16px; text-align: left; }
  .mbar button + button { flex-direction: row-reverse; text-align: right; border-left: 1px solid var(--line-strong); }
  .m-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--act-radius); }
  .m-ic svg { width: 20px; height: 20px; }
  .m-tx { min-width: 0; }
  .m-tx b { display: block; font-size: 14px; line-height: 1.3; }
  .m-tx small { display: block; font-size: 11.5px; line-height: 1.3; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .live .m-ic { background: var(--audio); border-color: var(--audio); color: var(--audio-ink); }
  .mbar #m-chart.live .m-ic { background: var(--c1); border-color: var(--c1); color: var(--cc-ink); }
  .mbar .on { background: var(--surface-2); }
  body.sheet-audio .stage { padding-bottom: 340px; }
  body.sheet-chart .stage { padding-bottom: calc(32vh + 240px); }
}

@media (max-width: 640px) {
  .brand-mark { width: 24px; height: 24px; }
  .brand h1 { display: flex; flex-direction: column; font-size: 17px; line-height: 1.15; }
  .brand h1 i { display: none; }
  .brand h1 .b1 { font-size: 11px; color: var(--dim); letter-spacing: .08em; }
  .brand p, .top-actions { display: none; }
  .search { height: 36px; }
  .bar { gap: 10px 12px; }
  .scene-wrap { order: 3; flex-basis: 100%; }
  .scenes { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .scenes::-webkit-scrollbar { display: none; }
  .switch { font-size: 12px; }
  .lhead, .row { grid-template-columns: 44px 24px minmax(0, 1fr) 62px 44px; column-gap: 8px; }
  .lhead { padding: 0 9px; font-size: 11px; }
  .pic, .h-pic { display: none; }
  .row { min-height: 64px; padding: 0 8px; }
  .rk { font-size: 18px; }
  .nm strong { font-size: 15px; }
  .qi { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .qi b { width: auto; font-size: 21px; }
  .track { flex: none; height: 3px; }
  .h-qi b { display: none; }
  .d-box { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .now { min-height: 76px; }
  .now-pic { width: 52px; height: 52px; }
  .transport { margin: 12px 0; }
  .t-play { width: 52px; height: 52px; }
}

/* ===== THE FIRST LISTEN 品牌字标 ===== */
.brand-logo { height: 34px; width: auto; display: block; margin: 0 auto 6px; }
.brand-cn { display: inline-block; font-weight: 900; font-style: italic; font-size: 14px; letter-spacing: 3px; color: #8a8a8a; margin-top: 2px; }
@media (max-width: 640px) { .brand-logo { height: 24px; margin-bottom: 4px; } .brand-cn { font-size: 11px; } }

/* ===== 品牌字标布局修正（隐藏旧方块标记，字标与「降噪天梯」同行） ===== */
.brand-mark { display: none !important; }
.brand h1 { display: flex !important; align-items: center; gap: 10px; line-height: 1 !important; white-space: nowrap; }
.brand-logo { height: 28px !important; width: auto !important; display: block !important; margin: 0 !important; flex: none; }
.brand-cn { font-size: 12px !important; letter-spacing: 3px !important; color: #8a8a8a !important; font-weight: 900; font-style: italic; margin: 0 !important; }
@media (max-width: 640px) {
  .brand-logo { height: 21px !important; }
  .brand-cn { font-size: 10px !important; letter-spacing: 2px !important; }
  .brand h1 > * { align-self: center; }
}

/* 手机端：品牌区只留字标，避免与搜索框抢宽度 */
@media (max-width: 640px) {
  .brand-cn { display: none !important; }
  .brand-logo { height: 18px !important; }
  .brand h1 { gap: 0 !important; }
}

/* ===== 手机端：耳机图回到原站逻辑——绝对定位在行右侧当背景（灰度暗色叠底），点开/按下才提亮 ===== */
@media (max-width: 640px) {
  /* 只留 5 列：播放 / 名次 / 机型 / QI / 曲线，图片不占格子，长型号名不会被挤窄 */
  .lhead, .row { grid-template-columns: 40px 22px minmax(0, 1fr) 54px 38px; column-gap: 7px; }
  .row { min-height: 66px; position: relative; overflow: hidden; }
  .pic {
    position: absolute; right: 21%; top: -22%; height: 144%; width: 132px;
    display: block; pointer-events: none; z-index: 0;
    opacity: .11; filter: grayscale(1);
    transition: opacity .25s ease, filter .25s ease;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 92%);
    mask-image: radial-gradient(ellipse at center, #000 45%, transparent 92%);
  }
  .pic img { width: 100%; height: 100%; object-fit: contain; object-position: center right; }
  .row.opened .pic, .row:active .pic { filter: none; opacity: .55; }
  .rk, .nm, .qi, .act { position: relative; z-index: 1; }
}

/* ===== 场景条：右侧渐隐 + 箭头，提示还能右滑 ===== */
.scene-wrap { position: relative; overflow: hidden; }
.scene-wrap .scenes { scroll-behavior: smooth; }
.scene-fade {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,10,0) 0%, var(--bg, #0a0a0a) 78%);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 6px;
  transition: opacity .2s;
}
.scene-fade::after { content: '›'; font-size: 20px; font-weight: 900; color: var(--accent, #f1c40f); line-height: 1; }
.scene-fade.hide { opacity: 0; }

/* ===== 耳机图统一：方形画布 + 同轴居中（图片已离线裁切/补白为 640×640） =====
   ⚠ 仅桌面端生效：手机端由上面的 @media(max-width:640px) 接管（绝对定位当背景图）。
   注意：必须按高度定尺寸并用 width:auto，否则浏览器按列宽(60px)推高度导致被 overflow 裁掉底部 */
@media (min-width: 641px) {
  .pic { display: grid; place-items: center; overflow: hidden; height: 48px; }
  .pic img { width: auto !important; height: 48px !important; max-width: 100% !important; object-fit: contain; object-position: center; }
}
@media (max-width: 640px) {
  .pic img { object-position: center right; }
}

/* ===== 印品鸿蒙体相关元素一律不加粗（2026-11-17） ===== */
.brand h1, .brand h1 *, .dock-h h2, .brand-cn { font-weight: normal !important; }

/* ===== 曲线绘制动画：线条沿 X 轴从左到右"画"出来（降噪曲线 + 频响曲线通用） ===== */
@keyframes cv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cv.draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: cv-draw var(--draw-dur, .8s) cubic-bezier(.25, .6, .3, 1) forwards; }
@media (prefers-reduced-motion: reduce) { .cv.draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } }
/* ===== 详情里的场景名次：只显示"第 X 名"，按顺位着色（2026-11-17） ===== */
.d-sc .rk { display: block; font: 400 14.5px/1.3 var(--font-num); letter-spacing: .01em; }
.d-sc .rk-1 { color: #ffd54a; }        /* 第 1 名 金 */
.d-sc .rk-2 { color: #c9d1dc; }        /* 第 2 名 银 */
.d-sc .rk-3 { color: #d08a4a; }        /* 第 3 名 铜 */
.d-sc .rk-top { color: var(--rank-top, #ffe600); }   /* 4~10 名 主题高亮 */
.d-sc .rk-mid { color: var(--text); }  /* 11~30 名 常规 */
.d-sc .rk-low { color: var(--dim); }   /* 30 名以后 */
.d-sc .rk-out { color: var(--dim); opacity: .75; }   /* 末 20 名：-- */


/* ===== 方案 A：终末地暗色（工业终端）。石墨黑底、亮黄单一强调色、细线、直角和切角 ===== */
:root {
  --bg: #0e0f11; --surface: #16181b; --surface-2: #1e2024;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .2);
  --text: #eceef1; --dim: #8d929b;
  --accent: #ffe600; --accent-ink: #0b0b0b; --accent-text: #ffe600; --focus: #ffe600;
  --audio: #ffe600; --audio-ink: #0b0b0b; --audio-bar: #ffe600;
  --track: rgba(255, 255, 255, .06); --bar: #c9ced6; --bar-top: #ffe600; --rank-top: #ffe600;
  --c1: #ffe600; --c2: #f2f4f7; --c3: #46d9e8; --c4: #ff8a3d; --c5: #b592ff; --c6: #7cf29a; --cc-ink: #0b0b0b;
  --radius: 2px; --radius-in: 1px; --radius-lg: 2px; --act-radius: 2px; --bar-radius: 0;
  --font-head: "印品鸿蒙体", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --num-style: 600;
  --top-bg: rgba(14, 15, 17, .9); --mbar-bg: #111214;
  --plot-bg: #0b0c0e; --plot-text: #7d828b; --grid: rgba(255, 255, 255, .06); --grid-strong: rgba(255, 255, 255, .28);
  --cur-bg: rgba(255, 230, 0, .08); --sheet-shadow: 0 -16px 48px rgba(0, 0, 0, .6);
}
.deco {
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(900px 520px at 88% -8%, rgba(255, 230, 0, .08), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(70, 217, 232, .05), transparent 60%),
    #0e0f11;
}
.top { border-bottom-color: rgba(255, 255, 255, .14); }
.top::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 132px; height: 2px; background: var(--accent); }
.brand-mark { position: relative; clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.brand-mark::after { content: ""; position: absolute; left: 7px; top: 7px; width: 7px; height: 7px; background: #0b0b0b; }
.btn:not(.ghost), .t-play, .seg button.on { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.dock::before, .dock::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.dock::before { left: -1px; top: -1px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.dock::after { right: -1px; bottom: -1px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.dock-h { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dock-h em::before { content: "// "; }
.lhead { border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.row::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: transparent; transition: .15s; }
.row:hover::before, .row.opened::before { background: var(--line-strong); }
.row.playing::before { background: var(--accent); }
.row.playing { background: linear-gradient(90deg, rgba(255, 230, 0, .1), transparent 46%), var(--surface); }
.row.charted { box-shadow: inset -3px 0 0 var(--cc); }
.row.top3 .rk::before { content: "NO."; display: block; margin-bottom: 3px; font-size: 9px; letter-spacing: .12em; color: var(--dim); }
.nm small { letter-spacing: .06em; }
.track { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 10%), rgba(255, 255, 255, .05); }
.d-sc .cur b { color: var(--accent); }
@media (max-width: 640px) {
  .row.top3 .rk::before { display: none; }
}

/* ===== 弹窗与名人堂（正式站迁入，配色与方案 A 一致） ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  position: relative;
  width: min(560px, 100%); max-height: 86vh;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}
.modal-title { margin: 0; font: 400 17px/1.3 var(--font-head); color: var(--accent); letter-spacing: .02em; }
.modal-scroll-area {
  overflow: auto; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13px; line-height: 1.75; color: var(--text);
}
.modal-scroll-area p { margin: 0 0 10px; }
.modal-scroll-area b, .modal-scroll-area strong { color: var(--accent-text); font-weight: 400; }
.modal-scroll-area a { color: var(--accent); }
.modal-btn-group { display: flex; gap: 10px; }
.modal-btn-group .btn { flex: 1; height: 40px; }
.btn.danger { background: transparent; color: var(--dim); border: 1px solid var(--line-strong); }
.modal-x {
  position: absolute; right: 14px; top: 12px;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-x:hover { color: var(--text); background: var(--surface-2); }

/* QI 计算原理排版 */
#qi-calc-content h3 { margin: 16px 0 8px; font: 400 14px/1.4 var(--font-head); color: var(--accent); }
#qi-calc-content ul { margin: 0 0 10px; padding-left: 20px; }
#qi-calc-content li { margin: 3px 0; }
#qi-calc-content hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
#qi-calc-content .qi-math { margin: 10px 0; overflow-x: auto; color: var(--text); }
#qi-calc-content .qi-err { color: var(--dim); text-align: center; padding: 40px 0; }

/* 名人堂 */
.hof-box {
  width: min(1180px, 100%); max-height: 86vh;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}
.hof-header { display: flex; align-items: baseline; gap: 12px; }
.hof-title { margin: 0; font: 400 20px/1 var(--font-head); color: var(--text); }
.hof-subtitle { font-size: 12px; color: var(--dim); letter-spacing: .18em; }
.hof-close-btn {
  position: absolute; right: 22px; top: 18px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: transparent; color: var(--dim); font-size: 26px; line-height: 1; cursor: pointer;
}
.hof-close-btn:hover { color: var(--text); background: var(--surface-2); }
#hof-list {
  overflow: auto; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding-right: 4px;
}
.hof-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text);
}
.hof-card:hover { border-color: var(--accent); }
.hof-card img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.hof-rk { flex: none; width: 26px; font: 400 16px/1 var(--font-num); color: var(--dim); text-align: right; }
.hof-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hof-tx small { font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }
.hof-tx b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hof-tx i { font-style: normal; font-size: 11px; color: var(--accent-text); font-family: var(--font-num); }
.hof-card.hof-top1 .hof-rk { color: #ffd54a; }
.hof-card.hof-top2 .hof-rk { color: #c9d1dc; }
.hof-card.hof-top3 .hof-rk { color: #d08a4a; }
.hof-card.hof-top1 { border-color: rgba(255, 213, 74, .45); }
.hof-desc { margin: 0 0 12px; }
.hof-pros b { color: var(--accent); font-weight: 400; }
.hof-cons b { color: #e07a5f; font-weight: 400; }
.hof-empty { color: var(--dim); text-align: center; padding: 30px 0; }
@media (max-width: 640px) {
  .hof-box { padding: 14px; max-height: 90vh; }
  #hof-list { grid-template-columns: 1fr; }
  .modal-box { padding: 16px; max-height: 90vh; }
}
/* ===== 名人堂：横向轮播大卡片（恢复原正式站形态，配色沿用方案 A） ===== */
.hof-box {
  width: min(1400px, 100%); max-height: 92vh;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 18px 20px 10px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}
.hof-carousel { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.hof-nav {
  flex: none; width: 36px; height: 72px; z-index: 3;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
}
.hof-nav:hover { border-color: var(--accent); color: var(--accent); }
#hof-list {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden;
  padding: 26px 6px 18px; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#hof-list::-webkit-scrollbar { display: none; }
.hof-card {
  position: relative; flex: 0 0 228px; height: 356px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; cursor: pointer; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); color: var(--text);
  scroll-snap-align: start;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s;
}
.hof-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.hof-card img {
  position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  width: 76%; height: 56%; object-fit: contain; opacity: .9;
  transition: transform .3s ease, opacity .3s;
}
.hof-card:hover img { transform: translateX(-50%) scale(1.05); opacity: 1; }
.hof-rank {
  position: absolute; left: 14px; top: 10px;
  font: 400 34px/1 var(--font-num); font-style: italic;
  color: var(--dim); letter-spacing: -.02em;
}
.hof-card.hof-top10 { border-color: rgba(241, 196, 15, .45); }
.hof-card.hof-top10 .hof-rank { color: var(--accent); }
.hof-card.hof-top1 { border-color: #ffd54a; }
.hof-card.hof-top2 { border-color: #c9d1dc; }
.hof-card.hof-top3 { border-color: #d08a4a; }
.hof-badge {
  position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 74px 74px 0; z-index: 2;
}
.hof-badge i {
  position: absolute; top: 10px; right: -66px;
  font: 400 15px/1 var(--font-num); font-style: italic;
  color: #111; transform: rotate(45deg);
}
.hof-top1 .hof-badge { border-color: transparent #ffd54a transparent transparent; }
.hof-top2 .hof-badge { border-color: transparent #c9d1dc transparent transparent; }
.hof-top3 .hof-badge { border-color: transparent #d08a4a transparent transparent; }
.hof-card-bottom { display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.hof-brand { font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.hof-name { font-size: 17px; font-weight: 600; line-height: 1.25; word-break: break-word; }
.hof-score {
  align-self: flex-start; margin-top: 6px; padding: 3px 9px;
  background: var(--accent); color: #111;
  font: 400 13px/1.2 var(--font-num); font-style: normal; border-radius: 4px;
}
.hof-header { display: flex; align-items: baseline; gap: 12px; padding: 0 2px; }
@media (max-width: 760px) {
  .hof-box { padding: 12px 10px 4px; max-height: 94vh; }
  .hof-nav { display: none; }
  .hof-card { flex: 0 0 170px; height: 270px; padding: 12px; }
  .hof-rank { font-size: 26px; }
  .hof-name { font-size: 14px; }
  .hof-badge { border-width: 0 56px 56px 0; }
  .hof-badge i { top: 7px; right: -50px; font-size: 12px; }
  #hof-list { gap: 12px; padding: 18px 2px 12px; }
}


/* 华为机型：不计排名 */
.d-sc .rk-na { font-size: 11.5px; letter-spacing: .04em; color: var(--dim); }

/* ===== 欢迎入口（全屏，覆盖在天梯之上） ===== */
.welcome {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  background: #0b0b0c; overflow: auto;
  transition: opacity .45s ease, visibility .45s;
}
.welcome.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.wl-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wl-grid {
  position: absolute; inset: -40%;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(680px) rotateX(58deg) translateY(6%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
}
.wl-glow {
  position: absolute; left: 50%; top: 18%; width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,230,0,.16), rgba(255,230,0,.05) 55%, transparent 78%);
  filter: blur(10px);
}
.wl-glow-2 {
  left: 14%; top: 82%; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(120,160,255,.10), transparent 75%);
}
.wl-inner { position: relative; width: min(760px, 100%); text-align: center; }
.wl-logo { height: 70px; width: auto; margin: 0 auto 14px; display: block; }
.wl-eyebrow { margin: 0 0 8px; font: 400 12px/1 var(--font-num); letter-spacing: .32em; color: var(--accent); }
.wl-title {
  margin: 0; font: 400 clamp(38px, 7vw, 62px)/1.05 var(--font-head);
  letter-spacing: .06em; color: var(--text);
  text-shadow: 0 0 42px rgba(255, 230, 0, .18);
}
.wl-sub { margin: 14px auto 0; max-width: 560px; font-size: 13.5px; line-height: 1.85; color: var(--dim); }
.wl-visual { position: relative; height: 250px; margin: 6px 0 2px; }
.wl-visual-glow {
  position: absolute; left: 50%; top: 54%; width: 460px; height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,230,0,.14), transparent 76%);
  filter: blur(6px);
}
.wl-curve { position: absolute; left: 0; right: 0; top: 26px; width: 100%; height: 190px; overflow: visible; }
.wl-curve-line { fill: none; stroke: url(#wlCurveGrad); stroke-width: 2.2; stroke-linecap: round; }
.wl-curve-glow { fill: none; stroke: #ffe600; stroke-width: 8; opacity: .10; filter: blur(6px); }
.wl-curve-base { stroke: rgba(255,255,255,.10); stroke-dasharray: 5 7; stroke-width: 1; }
.wl-prod {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: auto; pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.75));
}
.wl-prod.back { height: 190px; top: 44%; left: calc(50% + 118px); opacity: .82; filter: drop-shadow(0 18px 28px rgba(0,0,0,.6)) brightness(.88); }
.wl-prod.mid { height: 158px; top: 56%; left: calc(50% - 128px); opacity: .9; }
.wl-prod.front { height: 214px; top: 54%; z-index: 3; }
.wl-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 4px auto 0; padding-top: 16px; max-width: 460px;
  border-top: 1px solid var(--line);
}
.wl-stats div { text-align: center; }
.wl-stats div + div { border-left: 1px solid var(--line); }
.wl-stats strong { display: block; font: 400 30px/1.1 var(--font-num); color: var(--text); }
.wl-stats span { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); }
.wl-enter {
  margin: 26px auto 0; height: 50px; min-width: 240px; padding: 0 34px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: #111;
  font: 600 15px/1 var(--font-body); letter-spacing: .06em; cursor: pointer;
  box-shadow: 0 12px 34px rgba(255, 230, 0, .18);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
}
.wl-enter:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(255, 230, 0, .3); }
.wl-enter:active { transform: translateY(0) scale(.99); }
.wl-foot { margin: 16px 0 0; font-size: 12px; color: var(--dim); display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.wl-link { background: none; border: 0; padding: 0; color: var(--dim); font-size: 12px; text-decoration: underline; cursor: pointer; }
.wl-link:hover { color: var(--accent); }
@media (max-width: 720px) {
  .wl-logo { height: 48px; margin-bottom: 10px; }
  .wl-visual { height: 208px; }
  .wl-prod.front { height: 168px; }
  .wl-prod.mid { height: 124px; left: calc(50% - 96px); }
  .wl-prod.back { height: 148px; left: calc(50% + 88px); }
  .wl-curve { height: 150px; top: 30px; }
  .wl-stats strong { font-size: 24px; }
  .wl-enter { width: 100%; min-width: 0; }
}
/* ===== 背景网格：从上往下持续流动（降噪天梯 + 欢迎页） ===== */
@keyframes bg-fall {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, var(--bg-tile, 64px), 0); }
}

/* 主页面：横线层改成独立伪元素并向下滚动，竖线与光晕保持静止 */
.deco {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(900px 520px at 88% -8%, rgba(255, 230, 0, .08), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(70, 217, 232, .05), transparent 60%),
    #0e0f11;
  overflow: hidden;
}
.deco::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(-1 * var(--bg-tile, 64px));
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .03) 0 1px,
    transparent 1px var(--bg-tile, 64px)
  );
  animation: bg-fall 3s linear infinite;
  will-change: transform;
}

/* 欢迎页：透视网格里的横线向下流 */
.wl-grid {
  --bg-tile: 46px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 100%;
  overflow: hidden;
}
.wl-grid::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(-1 * var(--bg-tile));
  bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .045) 0 1px,
    transparent 1px var(--bg-tile)
  );
  animation: bg-fall 2.2s linear infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .deco::after, .wl-grid::after { animation: none; }
}


/* 欢迎页：内容区不上网格，边缘做大范围虚化过渡 */
.wl-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 54% 60% at 50% 46%,
      #0b0b0c 0%,
      #0b0b0c 54%,
      rgba(11, 11, 12, .82) 70%,
      rgba(11, 11, 12, .38) 84%,
      rgba(11, 11, 12, 0) 100%);
  pointer-events: none;
}
@media (max-width: 720px) {
  .wl-fade {
    background:
      radial-gradient(ellipse 92% 56% at 50% 47%,
        #0b0b0c 0%,
        #0b0b0c 58%,
        rgba(11, 11, 12, .8) 74%,
        rgba(11, 11, 12, .34) 86%,
        rgba(11, 11, 12, 0) 100%);
  }
}

/* ===== 欢迎页主视觉修正：不透明+调暗、去掉横向虚线、左右耳机替换、双光斑交替闪烁 ===== */

/* 1) 三款机型：全部不透明，靠亮度/饱和度压暗区分前后层次 */
.wl-prod { opacity: 1 !important; }
.wl-prod.front {
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .8));
}
.wl-prod.mid {
  filter: brightness(.62) saturate(.88) drop-shadow(0 18px 26px rgba(0, 0, 0, .7));
}
.wl-prod.back {
  filter: brightness(.47) saturate(.82) drop-shadow(0 16px 24px rgba(0, 0, 0, .6));
}
.wl-prod.back { left: calc(50% + 122px); }

/* 2) 横向虚线去掉 */
.wl-curve-base { display: none; }

/* 3) 左下 / 右下两个光斑交替缓慢呼吸 */
.wl-glow-2 {
  left: 10%; top: 84%; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(255, 230, 0, .13), rgba(255, 230, 0, .04) 55%, transparent 76%);
  animation: wl-breathe 9s ease-in-out infinite;
}
.wl-glow-3 {
  position: absolute; right: 8%; bottom: -10%; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(70, 217, 232, .10), rgba(70, 217, 232, .03) 55%, transparent 76%);
  filter: blur(12px);
  animation: wl-breathe 9s ease-in-out infinite;
  animation-delay: -4.5s;
}
@keyframes wl-breathe {
  0%, 100% { opacity: .25; transform: scale(.92); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .wl-glow-2, .wl-glow-3 { animation: none; opacity: .5; }
}
/* ===== 双光斑：加大呼吸幅度，左右交替 ===== */
.wl-glow-2 {
  left: 8%; top: 82%; width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(255, 230, 0, .22), rgba(255, 230, 0, .07) 55%, transparent 78%);
  animation: wl-breathe 8s ease-in-out infinite;
}
.wl-glow-3 {
  right: 6%; bottom: -12%; width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(70, 217, 232, .17), rgba(70, 217, 232, .05) 55%, transparent 78%);
  animation: wl-breathe 8s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes wl-breathe {
  0%, 100% { opacity: .12; transform: scale(.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}
/* 侧边两款略微放大，和中间的 AirPods Max 平衡 */
.wl-prod.mid  { height: 176px; }
.wl-prod.back { height: 208px; left: calc(50% + 128px); }
@media (max-width: 720px) {
  .wl-prod.mid  { height: 132px; }
  .wl-prod.back { height: 156px; }
}

/* ===== 主视觉尺寸：中间最大，左右两款同尺寸且更小 ===== */
.wl-prod.front { height: 238px; top: 53%; }
.wl-prod.mid,
.wl-prod.back { height: 142px; }
.wl-prod.mid  { left: calc(50% - 148px); top: 57%; filter: brightness(.6) saturate(.88) drop-shadow(0 14px 22px rgba(0, 0, 0, .7)); }
.wl-prod.back { left: calc(50% + 148px); top: 50%; filter: brightness(.5) saturate(.85) drop-shadow(0 14px 22px rgba(0, 0, 0, .65)); }

@media (max-width: 720px) {
  .wl-prod.front { height: 176px; top: 53%; }
  .wl-prod.mid,
  .wl-prod.back { height: 104px; }
  .wl-prod.mid  { left: calc(50% - 96px); top: 58%; }
  .wl-prod.back { left: calc(50% + 96px); top: 52%; }
}


/* ===== 入耳机型（TWS）条目图片：缩小 35% + 整体左移 10%（左移 30% 后回撤 20%） ===== */
@media (min-width: 641px) {
  .row[data-type="tws"] .pic img { height: 31px !important; transform: translateX(-10%); }
}
@media (max-width: 640px) {
  .row[data-type="tws"] .pic img { transform: translateX(-10%) scale(.65); transform-origin: center right; }
}

/* ===== QI 列表头：桌面显示全称，手机只显示 QI（避免 "·" 换行） ===== */
.h-qi-mob { display: none; }
.h-qi { white-space: nowrap; }
@media (max-width: 640px) {
  .h-qi-desk, .h-qi-dot, #h-scene { display: none; }
  .h-qi-mob { display: inline; }
  .h-qi { letter-spacing: .04em; }
}
/* ===== 双语：欢迎页双按钮 + 页脚 ===== */
.wl-actions {
  display: flex; gap: 14px; justify-content: center; align-items: stretch;
  margin: 26px auto 0; flex-wrap: wrap;
}
.wl-actions .wl-enter { margin: 0; min-width: 210px; }
.wl-enter-alt {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: none;
}
.wl-enter-alt:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}

/* 页脚：QI 原理 / 名人堂 / 语言切换，手机可见 */
.site-foot {
  max-width: 1560px; margin: 18px auto 0; padding: 18px 24px calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center; color: var(--dim);
}
.site-foot .sf-link {
  background: none; border: 0; padding: 2px 4px; cursor: pointer;
  color: var(--dim); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px;
}
.site-foot .sf-link:hover { color: var(--accent); }
.site-foot .sf-dot { margin: 0 8px; opacity: .5; }
.site-foot .sf-copy { margin: 10px 0 0; font-size: 11px; line-height: 1.6; opacity: .75; letter-spacing: .02em; }
#lang-toggle { font-family: var(--font-num); letter-spacing: .1em; }

@media (max-width: 1100px) {
  .site-foot { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .wl-actions { gap: 10px; }
  .wl-actions .wl-enter { width: 100%; min-width: 0; }
  .site-foot { padding: 16px 16px calc(112px + env(safe-area-inset-bottom)); }
  .site-foot .sf-copy { font-size: 10.5px; }
}

/* ===== 双语补充：手机头部快捷按钮 / 英文排版微调 ===== */
.head-links { display: none; gap: 6px; flex: none; }
.hl-btn {
  width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 9px; color: var(--dim);
  font: 600 12px/1 var(--font-num); cursor: pointer;
}
.hl-btn:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 1100px) {
  .head-links { display: flex; }
}

/* 英文文本更长，适当收一下字号，避免截断/换行 */
html[lang="en"] .now-txt strong { font-size: 15px; }
html[lang="en"] .wl-title { font-size: clamp(30px, 6vw, 52px); letter-spacing: .01em; }
html[lang="en"] .dock-h h2 { font-size: 15px; }
html[lang="en"] .h-qi-desk { letter-spacing: 0; }
@media (max-width: 640px) {
  html[lang="en"] .wl-title { font-size: clamp(24px, 7.4vw, 34px); }
}

/* ===== 手机头部：logo 缩小避免被截断（新增 QI / ★ 按钮后空间变紧） ===== */
@media (max-width: 640px) {
  .brand { flex: 0 1 auto; min-width: 0; overflow: visible; }
  .brand-logo { height: 22px; width: auto; max-width: 104px; object-fit: contain; object-position: left center; }
  .brand-cn { font-size: 12px; letter-spacing: 2px; }
  .search { min-width: 0; }
}
@media (max-width: 400px) {
  .brand-logo { max-width: 84px; }
}

/* ===== 名人堂：恢复旧版的 3D 层叠卡（适配新配色） ===== */
#hof-list {
  perspective: 1400px;
  perspective-origin: 50% 45%;
}
.hof-card {
  transform: rotateY(-13deg) scale(.96);
  transform-origin: left center;
  box-shadow: -14px 10px 24px rgba(0, 0, 0, .55);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .22s, box-shadow .28s;
}
.hof-card:hover {
  transform: rotateY(0deg) scale(1.045) translateY(-8px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .72);
  z-index: 3;
}
.hof-card.hof-top1 {
  box-shadow: -14px 10px 24px rgba(0, 0, 0, .55), inset 0 0 26px rgba(255, 213, 74, .10);
}
.hof-card.hof-top1:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, .72), inset 0 0 30px rgba(255, 213, 74, .16);
}

@media (max-width: 760px) {
  #hof-list { perspective: 900px; }
  .hof-card { transform: rotateY(-8deg) scale(.98); }
  .hof-card:hover, .hof-card:active { transform: rotateY(0deg) scale(1.02) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hof-card, .hof-card:hover { transform: none; }
}

/* ===== 名人堂：3D 层叠卡（加强版，更接近旧版的"斜插一叠"观感） ===== */
#hof-list {
  perspective: 1100px;
  perspective-origin: 50% 42%;
  padding-left: 10px;
}
.hof-card {
  transform: rotateY(-17deg) scale(.95);
  transform-origin: left center;
  box-shadow: -20px 12px 28px rgba(0, 0, 0, .62), -2px 0 0 rgba(255, 255, 255, .04) inset;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .22s, box-shadow .3s;
}
.hof-card:hover {
  transform: rotateY(0deg) scale(1.05) translateY(-9px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .78);
  z-index: 3;
}
.hof-card.hof-top1 {
  box-shadow: -20px 12px 28px rgba(0, 0, 0, .62), inset 0 0 26px rgba(255, 213, 74, .10);
}
.hof-card.hof-top1:hover {
  box-shadow: 0 20px 42px rgba(0, 0, 0, .78), inset 0 0 30px rgba(255, 213, 74, .16);
}

@media (max-width: 760px) {
  #hof-list { perspective: 780px; }
  .hof-card { transform: rotateY(-10deg) scale(.97); }
  .hof-card:hover, .hof-card:active { transform: rotateY(0deg) scale(1.02) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hof-card, .hof-card:hover { transform: none; }
}

/* ===== 开屏计数动画：数字块与按钮的等待态 ===== */
.wl-stat strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  transition: color .25s ease, text-shadow .25s ease;
}
.wl-stat strong.is-counting {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(255, 230, 0, .45);
}
.wl-stats .wl-stat { opacity: .55; transition: opacity .35s ease; }
.wl-stats .wl-stat:has(strong.is-counting),
.wl-stats .wl-stat:has(strong[data-done]) { opacity: 1; }

/* 按钮：未就绪 = 灰、不可点；就绪 = 恢复原样式 */
.wl-enter {
  transition: background .35s ease, color .35s ease, border-color .35s ease,
              box-shadow .35s ease, transform .18s ease, opacity .35s ease;
}
.wl-enter[disabled] {
  background: #24262b;
  color: #7b8088;
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.wl-enter-alt[disabled] {
  background: transparent;
  color: #6d727a;
  border-color: rgba(255, 255, 255, .12);
}
.wl-enter.is-ready {
  animation: wl-btn-pop .42s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes wl-btn-pop {
  0% { transform: scale(.97); }
  55% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wl-enter.is-ready { animation: none; }
  .wl-stat strong.is-counting { text-shadow: none; }
}

/* ===== 开屏大按钮：载入进度 → 左右两半进入 ===== */
.wl-cta {
  position: relative;
  width: min(460px, 100%);
  height: 56px;
  margin: 26px auto 0;
  border-radius: 999px;
  background: #1b1d21;
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

/* 底部黄色进度条 */
.wl-cta-progress {
  position: absolute;
  left: 0; bottom: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, #ffd60a, var(--accent));
  box-shadow: 0 0 14px rgba(255, 230, 0, .65);
  transition: width .12s linear;
  border-radius: 0 4px 4px 0;
}

/* 载入态文字 */
.wl-cta-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: #9aa0a8; font-size: 14px; letter-spacing: .03em;
  transition: opacity .3s ease;
}
.wl-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 230, 0, .8);
  animation: wl-dot 1s ease-in-out infinite;
}
@keyframes wl-dot {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* 就绪态：整体变黄，左右两半 */
.wl-cta-ready {
  position: absolute; inset: 0;
  display: flex; opacity: 0; pointer-events: none;
  transition: opacity .34s ease;
}
.wl-cta-half {
  flex: 1; border: 0; background: transparent;
  color: #14151a; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  cursor: pointer; padding: 0 14px;
  transition: background .2s ease, color .2s ease;
}
.wl-cta-half.zh { border-radius: 999px 0 0 999px; }
.wl-cta-half.en { border-radius: 0 999px 999px 0; }
.wl-cta-half:hover:not([disabled]) { background: rgba(0, 0, 0, .10); }
.wl-cta-half:active:not([disabled]) { background: rgba(0, 0, 0, .18); }
.wl-cta-split {
  width: 1px; margin: 13px 0;
  background: rgba(0, 0, 0, .18);
}

.wl-cta.is-ready {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(255, 230, 0, .22);
  animation: wl-cta-pop .44s cubic-bezier(.2, .9, .3, 1.2);
}
.wl-cta.is-ready .wl-cta-loading { opacity: 0; }
.wl-cta.is-ready .wl-cta-progress { opacity: 0; transition: opacity .3s ease; }
.wl-cta.is-ready .wl-cta-ready { opacity: 1; pointer-events: auto; }
@keyframes wl-cta-pop {
  0% { transform: scale(.975); }
  55% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@media (max-width: 640px) {
  .wl-cta { height: 52px; margin-top: 22px; }
  .wl-cta-loading { font-size: 13px; }
  .wl-cta-half { font-size: 14px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-cta.is-ready { animation: none; }
  .wl-cta-dot { animation: none; }
}

/* ===== 测试现场（LAB）弹窗 ===== */
.lab-figs { display: flex; flex-direction: column; gap: 14px; }
.lab-fig { margin: 0; }
.lab-fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(255, 255, 255, .10);
  background: #0b0c0e;
}
.lab-fig figcaption {
  margin-top: 7px; font-size: 12px; line-height: 1.5;
  color: var(--dim); letter-spacing: .01em;
}
.lab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) {
  .lab-row { grid-template-columns: 1fr; }
  .lab-fig figcaption { font-size: 11.5px; }
}

/* QI 原理弹窗顶部的测试现场题图 */
.qi-hero {
  margin: 0 0 14px; border: 1px solid rgba(255, 255, 255, .09);
  overflow: hidden; background: #0b0c0e;
}
.qi-hero img { display: block; width: 100%; height: 184px; object-fit: cover; object-position: 50% 54%; }
@media (max-width: 760px) { .qi-hero img { height: 116px; } }


/* 测试现场：底部两张图等高对齐 */
.lab-row { align-items: start; }
.lab-row .lab-fig img { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 760px) { .lab-row .lab-fig img { aspect-ratio: auto; } }


/* ===== QI 说明页里的测试照片（首尾 banner + 正文插图） ===== */
.qi-fig { margin: 18px 0 6px; }
.qi-fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(255, 255, 255, .10);
  background: #0b0c0e;
}
.qi-fig figcaption {
  margin-top: 7px; font-size: 11.5px; line-height: 1.5;
  color: var(--dim); letter-spacing: .01em;
}
.qi-fig-end { margin-top: 22px; }
@media (max-width: 760px) {
  .qi-hero img { height: 104px; }
  .qi-fig figcaption { font-size: 11px; }
}
