:root {
  color-scheme: light;
  --ink: #17251f;
  --muted: #4d5a53;
  --line: #cbd3cc;
  --light: #f2f4ed;
  --brand: #f1d167;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 "Inter","PingFang SC","Microsoft YaHei UI",sans-serif; }
h1, h2, p, figure, ul, dl, dd, fieldset { margin: 0; }
h1, h2 { line-height: 1.19; }
h2 { font-size: 41px; font-weight: 750; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, summary, label { cursor: pointer; }
button { font: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible + span { outline: 3px solid #a63c14; outline-offset: 4px; }
.shell { width: min(100% - 80px, 1240px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 10px; background: #fff; }
.site-bar { background: #121d18; color: white; }
.nav-row, .nav-row nav, .brand, .footer-row { display: flex; align-items: center; }
.nav-row, .footer-row { justify-content: space-between; gap: 12px; }
.nav-row { min-height: 64px; }
.brand { gap: 9px; color: white; font-size: 22px; font-weight: 750; white-space: nowrap; text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-row nav { gap: 26px; font-size: 14px; }
.nav-row nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.nav-row a:hover, .footer-row a:hover { color: var(--brand); }
.home-link { gap: 6px; color: #f0d882; }
.showroom { background: #e1e2dc url("studio.jpg") center / 100% 100% no-repeat; }
.showroom-inner { display: flex; align-items: center; position: relative; min-height: 395px; height: min(55vh, 550px); }
.hero-copy { position: relative; z-index: 1; width: 42%; min-width: 0; padding: 25px 0; }
.hero-copy h1 { font-size: 64px; font-weight: 800; }
.hero-copy > p { margin-top: 19px; color: #304038; font-size: 19px; line-height: 1.7; }
.stage { position: relative; width: 58%; min-width: 0; aspect-ratio: 1.78; display: flex; justify-content: center; align-items: flex-end; gap: 4.5%; }
.device, .stage-speaker { position: relative; height: auto; filter: drop-shadow(7px 12px 8px #26332745); flex: none; }
/* 展台宽度代表同一段实际距离，两类硬件使用相同的渲染比例。 */
.device, .stage-speaker { bottom: 10%; }
.device[data-model="19"] { width: 46.2000%; }
.device[data-model="22"] { width: 53.0500%; }
.device[data-model="24"] { width: 56.5000%; }
.device[data-model="27"] { width: 64.6000%; }
.stage-speaker[data-speaker-model="speaker"] { width: 20.2500%; }
.stage-speaker[data-speaker-model="speaker-huabao"] { width: 26.6000%; }
.hero-3d-view { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; pointer-events: none; filter: drop-shadow(7px 12px 8px #26332745); }
.stage[data-hero-3d="ready"] .hero-3d-view { visibility: visible; }
.stage[data-hero-3d="ready"][data-hero3d-target="display"] .device,
.stage[data-hero-3d="ready"][data-hero3d-target="speaker"] .stage-speaker { visibility: hidden; }
.hero-3d-hit { position: absolute; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.hero-3d-hit.is-dragging { cursor: grabbing; }
.stage[data-hero-3d="loading"][data-hero3d-target="display"] #hero-3d-hit,
.stage[data-hero-3d="loading"][data-hero3d-target="speaker"] #speaker-3d-hit { cursor: progress; }
.model-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 10px 12px;
  margin-top: 23px;
}
#model-picker {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
}
:is(#model-picker, #orientation-picker, #speaker-picker) label { position: relative; }
:is(#model-picker, #orientation-picker, #speaker-picker) input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
:is(#model-picker, #orientation-picker, #speaker-picker) label span { display: grid; place-items: center; min-height: 44px; padding-inline: 8px; border: 1px solid #aebbb1; border-radius: 3px; background: #fcfdfbd9; color: var(--ink); font-size: 15px; font-weight: 650; white-space: nowrap; }
#model-picker label span { padding-inline: 6px; }
:is(#model-picker, #orientation-picker, #speaker-picker) input:checked + span { background: #1d3328; border-color: #1d3328; color: #fff; }
#speaker-picker { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; padding: 0; border: 0; }
#speaker-picker label span { padding-inline: 14px; }
.measure { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.35; white-space: nowrap; }
.measure strong { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
/* 机型切换只隐藏链接，尺寸行和产品图保持位置。 */
.view3d-slot { display: flex; min-height: 44px; justify-content: flex-end; }
.view3d-slot .model-view { gap: 6px; font-size: 14px; white-space: nowrap; }
.section { padding-block: 68px; }
.shop-copy > p, .speaker-layout > div > p:not(.model-code), .questions p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 650; }
.shop { background: #edf0e8; }
.shop-inner { display: grid; grid-template-columns: 1.16fr 1fr; align-items: center; max-width: 1520px; margin: 0 auto; }
.shop-view { position: relative; }
.shop-view img { width: 100%; height: auto; }
.shop-view figcaption { position: absolute; bottom: 16px; left: 18px; padding: 3px 9px; color: #fff; background: #16231de6; font-size: 12px; }
.shop-copy { padding: 40px 13%; }
.shop-copy h2 { font-size: 48px; }
.shop-copy > p, .speaker-layout > div > p:not(.model-code) { margin: 18px 0 10px; max-width: 29em; }
.composition-heading { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; margin-bottom: 18px; }
/* 标题占满整行，音箱和方向选择在下一行左对齐，横向间距沿用 24px。 */
.composition-heading > div { flex-basis: 100%; }
.composition p { margin-top: 8px; color: var(--muted); }
#orientation-picker { display: grid; grid-template-columns: repeat(2, 72px); gap: 6px; padding: 0; border: 0; min-width: 0; }
.composition-media { display: block; cursor: zoom-in; text-decoration: none; }
.composition-media-portrait, .composition-media-upright { display: none; }
.composition[data-orientation="portrait"] :is(.composition-media-landscape, .composition-media-portrait) { display: none; }
.composition[data-orientation="portrait"] .composition-media-upright { display: block; width: min(100%, 680px); margin-inline: auto; }
.composition-media img { width: 100%; height: auto; }
.composition-media .text-link { display: flex; justify-content: flex-end; }
.composition-media:hover .text-link { text-decoration: underline; }
.speaker-layout, .questions { display: grid; align-items: center; gap: 6%; }
.speaker { background: #edf2f3; }
.speaker-layout { grid-template-columns: 1.1fr 1fr; }
.speaker-layout > img { justify-self: center; width: 70%; }
.speaker-layout > img[data-speaker-for="huabao"] { width: min(54%, 280px); height: auto; }
.model-code { color: #3e5751; font-weight: 650; margin-bottom: 7px; }
.speaker dl { width: fit-content; margin-top: 18px; padding-top: 14px; border-top: 1px solid #b8c7c6; }
.speaker dt, .speaker small { color: var(--muted); font-size: 13px; }
.speaker dd { font-size: 25px; font-weight: 700; }
.questions { align-items: start; grid-template-columns: .68fr 1.32fr; }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { padding: 16px 0; min-height: 50px; font-weight: 650; }
.questions details p { padding: 0 0 15px; }
footer { background: #121d18; color: #fff; }
.footer-row { min-height: 75px; }
.footer-row strong { font-size: 19px; }
.footer-row a { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; font-size: 14px; }
dialog { width: min(1120px, calc(100% - 28px)); padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: #101914cc; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px; }
.dialog-head h2 { font-size: 18px; }
.dialog-head button { min-height: 44px; border: 0; padding: 0 12px; background: #fff; color: var(--ink); }
dialog > img { width: 100%; max-height: calc(90vh - 54px); object-fit: contain; }
@media (max-width: 1100px) {
  .hero-copy h1 { font-size: 48px; }
  .hero-copy > p { font-size: 17px; }
  .measure { display: grid; gap: 0; }
  .showroom-inner { min-height: 330px; height: min(50vh, 480px); }
  .shop-copy h2 { font-size: 38px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .nav-row { min-height: 55px; }
  .brand { font-size: 19px; }
  .brand img { width: 27px; height: 27px; }
  .nav-row nav { gap: 18px; }
  .nav-row .scene-nav { display: none; }
  .showroom-inner { display: grid; grid-template-columns: 1fr; height: auto; min-height: 0; }
  .hero-copy { width: 100%; padding: 28px 0 4px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy > p { margin-top: 9px; font-size: 16px; }
  .model-dock { margin-top: 14px; gap: 8px 12px; }
  .stage { width: min(100%, 460px); margin: 0 auto 6px; }
  #model-picker label span { font-size: 14px; }
  .measure { font-size: 13px; }
  .measure strong { font-size: 16px; }
  .section { padding-block: 37px; }
  h2, .shop-copy h2 { font-size: 30px; }
  .shop-inner, .speaker-layout, .questions { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .shop-copy { grid-row: 1; padding: 30px 20px 0; }
  .shop-copy h2 br { display: none; }
  .shop-copy > p, .speaker-layout > div > p:not(.model-code) { margin: 10px 0 0; }
  .speaker-layout > img { width: min(69%, 320px); }
  .speaker-layout > div { grid-row: 1; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 28px); }
  .nav-row nav { gap: 12px; font-size: 13px; }
  .hero-copy h1 { font-size: 34px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .composition-media-landscape { display: none; }
  .composition-media-portrait { display: block; }
}
