/* LFUN night palette and shared controls are defined in site.css. */
:root {
  --quiet-surface: #14151d;
  --media-surface: #131720;
  --media-border: #343c4c;
  --content-gap: clamp(16px, 2.2vw, 32px);
  --section-space: clamp(42px, 5.3vw, 76px);
  --surface-radius: 12px;
}

figure, h4 { margin: 0; }

.content-section, .games-section, .faq { padding-block: var(--section-space); }
.content-section h3 { font-size: clamp(21px, 2.2vw, 29px); line-height: 1.32; letter-spacing: -.025em; }
.content-section p, .faq p, .fineprint { color: var(--sub); }
.section-heading { margin-bottom: 20px; }
.band, .games-section { border-block: 1px solid var(--border); }
.band { background: var(--panel); }
.caption { display: block; margin: 12px 0 0; color: var(--sub); font-size: 14px; line-height: 1.7; }

/* First view */
.hero-live .hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(22px, 4vw, 57px);
  align-items: center;
  min-height: auto;
  padding-block: clamp(34px, 4.6vw, 66px);
}
.hero-live .hero-copy, .hero-reel { min-width: 0; padding: 0; }
.hero-live h1 {
  font-size: clamp(37px, 4.14vw, 60px);
  line-height: 1.13;
  letter-spacing: -.05em;
  margin: 16px 0;
}
.hero-live h1 span { color: var(--paper); }
.hero-live .hero-copy > p { max-width: 36rem; color: #c3cadb; font-size: 16px; line-height: 1.82; }
.hero-live .hero-actions { margin-top: 22px; }
.reel-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--sub); font-size: 14px; }
#reel-counter { flex: none; font: 12px var(--mono); letter-spacing: .08em; }
.loop-frame { position: relative; overflow: hidden; border: 1px solid var(--strong-border); border-radius: 10px; background: #08090c; }
.loop-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.loop-toggle { position: absolute; bottom: 8px; right: 8px; background: #11131be8; border: 1px solid #68697a; color: #fff; border-radius: 6px; padding: 5px 11px; font-size: 13px; }
.loop-toggle:focus-visible { outline-offset: -2px; }
.reel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.reel-tabs button { border: 0; border-top: 3px solid #383946; padding: 7px 4px 3px; color: var(--sub); background: transparent; text-align: left; font-size: 14px; }
.reel-tabs button[aria-pressed=true] { border-color: var(--accent-line); color: var(--paper); }

.metrics-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; padding-block: 0; }
.metrics-inner > div { justify-content: flex-start; align-items: flex-start; gap: 12px; padding: 18px clamp(9px, 1.4vw, 21px); }
.metrics-inner > div:first-child { padding-inline-start: 0; }
.metrics-inner > div:last-child { padding-inline-end: 0; }
.metrics-inner svg { width: 22px !important; height: 22px !important; margin-top: 1px; }
.metrics-inner span { min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.metrics-inner b { font: 650 17px/1.3 var(--sans); letter-spacing: -.01em; }
.metrics-inner em { font-size: 13px; line-height: 1.5; }

/* Video linkage and software */
.linkage-intro { max-width: 48rem; margin: 0 0 24px; line-height: 1.8; }
.linkage-intro strong { color: var(--paper); }
.ai-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--content-gap); }
.ai-card, .sw-block {
  padding: clamp(16px, 2.3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--surface-radius);
  background: var(--panel-raised);
}
.ai-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; }
.platform-label { display: block; color: var(--accent-text); font-size: 14px; font-weight: 600; }
.ai-copy h3, .sw-head h3 { margin-block: 6px 8px; }
.ai-copy p, .sw-head p { line-height: 1.75; }

.shot-frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--media-surface);
  box-shadow: 0 0 0 1px var(--media-border);
  cursor: zoom-in;
  transition: box-shadow .16s ease;
}
.shot-frame:hover { box-shadow: 0 0 0 1px var(--accent-text); }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 7px; }
.screen-demo { width: min(100%, 400px); align-self: center; }
/* Show only the software area of the 1040 × 723 photo in the thumbnail. */
.shot-frame--editor { position: relative; aspect-ratio: 1002 / 653; overflow: hidden; }
.shot-frame--editor img {
  position: absolute;
  top: calc(-100% * 21 / 653);
  left: calc(-100% * 19 / 1002);
  width: calc(100% * 1040 / 1002);
  border-radius: 0;
}
.screen-demo figcaption, .sw-shot figcaption, .holder-shots figcaption {
  margin-top: 7px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: balance;
}
.mini-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.mini-points li, .sw-points li { min-width: 0; line-height: 1.58; color: var(--sub); overflow-wrap: anywhere; }
.mini-points li { padding-top: 10px; border-top: 1px solid var(--border); font-size: 14px; }
.mini-points b, .sw-points b { display: block; color: var(--paper); font-weight: 660; }
.mini-points b { margin-bottom: 3px; }
.tech-note { padding-top: 11px; border-top: 1px solid var(--border); font-size: 14px; }
.tech-note summary { cursor: pointer; color: var(--accent-text); }
.tech-note p { margin-top: 9px; line-height: 1.65; }

.eco-links { display: grid; gap: 8px; }
.eco-note { margin-top: 10px; font-size: 13px; line-height: 1.55; }
.eco-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.eco-item:hover { border-color: var(--accent-text); }
.eco-icon { flex: none; display: block; width: 38px; height: 38px; border-radius: 7px; object-fit: contain; }
.eco-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.eco-item b, .eco-item small { display: block; }
.eco-item b { font-size: 15px; }
.eco-item small { margin-top: 3px; color: var(--sub); font-size: 14px; }

#software { border-top: 1px solid var(--border); }
.sw-block {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.4fr);
  grid-template-areas: "title shots" "points shots";
  grid-template-rows: auto 1fr;
  column-gap: clamp(21px, 3.2vw, 48px);
  row-gap: 18px;
  align-items: start;
}
.sw-block + .sw-block { margin-top: 16px; }
.sw-head { grid-area: title; }
.sw-points {
  grid-area: points;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sw-points li { padding-top: 9px; border-top: 1px solid var(--border); font-size: 14px; }
.sw-points b { margin-bottom: 4px; font-size: 15px; }
.sw-shots {
  grid-area: shots;
  display: grid;
  gap: clamp(8px, 1.1vw, 15px);
  min-width: 0;
  align-self: center;
  justify-items: center;
  align-items: end;
  padding: clamp(10px, 1.5vw, 18px);
  border: 1px solid var(--media-border);
  border-radius: 10px;
  background: var(--media-surface);
}
.sw-shot { min-width: 0; width: 100%; }
.sw-shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Column widths follow the two screenshot aspect ratios so both render at the same height. */
.sw-shots.pair {
  grid-template-columns: minmax(0, 3.10743fr) minmax(0, 1fr);
  align-items: start;
}
.sw-block--app .sw-shots { grid-template-columns: repeat(2, minmax(0, 172px)); justify-content: center; align-items: start; }

#shot-dialog { width: min(1200px, calc(100% - 24px)); }
#shot-dialog .dialog-bar { padding: 10px 14px; }
#shot-title { min-width: 0; font-size: clamp(15px, 2.4vw, 20px); }
.shot-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.shot-actions .mini-tab { white-space: nowrap; }
.shot-view { overflow: auto; overscroll-behavior: contain; max-height: calc(90dvh - 70px); padding: 0 12px 12px; background: var(--media-surface); }
.shot-view img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(90dvh - 88px); margin: 0 auto; border-radius: 6px; }
.shot-view.is-full img { max-width: none; max-height: none; }
body:has(#shot-dialog[open]) { overflow: hidden; }

/* Six-axis model and film controls */
.mini-tab, #axis-buttons button {
  border: 1px solid var(--strong-border);
  border-radius: 6px;
  background: var(--quiet-surface);
  color: var(--sub);
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.5;
}
.mini-tab[aria-pressed=true], #axis-buttons button[aria-pressed=true], .finish-colors button[aria-pressed=true] {
  color: var(--on-action);
  border-color: var(--action-border);
  background: var(--action);
}
.model-studio {
  display: grid;
  grid-template-columns: minmax(225px, .78fr) minmax(0, 1.45fr);
  overflow: hidden;
  margin-top: var(--content-gap);
  border: 1px solid var(--strong-border);
  border-radius: var(--surface-radius);
  background: var(--panel-raised);
}
.model-options { padding: clamp(18px, 3vw, 44px); align-self: center; }
.model-options > p { margin: 6px 0 16px; }
#axis-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#axis-buttons button { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 12px; font-size: 16px; }
#axis-buttons small { color: inherit; font: 12px var(--mono); }
.demo-links button, .full-model, .model-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--strong-border);
  border-radius: 7px;
  background: var(--panel-raised);
  color: var(--paper);
  font-size: 14px;
}
.demo-links button:hover, .full-model:hover, .model-tools button:hover, #axis-buttons button:hover { border-color: var(--accent-text); }
.demo-links svg, .full-model svg { width: 16px; height: 16px; color: inherit; }
.full-model { margin-top: 16px; }
.model-stage { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--border); background: #13151d; }
.model-screen { position: relative; aspect-ratio: 1.68; }
.model-screen video, .model-screen canvas { position: absolute; display: block; width: 100%; height: 100%; object-fit: contain; }
.model-screen canvas { cursor: grab; touch-action: pan-y; }
.model-screen canvas:active { cursor: grabbing; }
.model-screen canvas:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -3px; }
.model-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--border); color: var(--sub); font-size: 14px; }
.model-tools > div { display: flex; gap: 6px; }
.model-tools button { padding: 4px 9px; font-size: 13px; }
#film-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 13px; }
#performance-labels { display: grid; grid-template-columns: repeat(3,1fr); padding: 5px 0 8px; text-align: center; color: var(--sub); }
#film-dialog[data-mode=noise] { width: min(480px, calc(100% - 28px)); }
#film-dialog[data-mode=noise] #player { height: min(60dvh, 550px); }

/* Game library */
#games .section-intro { margin-top: 0; }
#game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--content-gap); }
.game-row { --cover-size: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 2px; cursor: default; }
.game-row:has(> .game-cover) { grid-template-columns: var(--cover-size) minmax(0, 1fr) auto; }
.game-row:hover { background: transparent; }
.game-row > .game-cover { width: var(--cover-size); height: var(--cover-size); display: block; object-fit: cover; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); }
.game-cover.placeholder { display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #fff; background: hsl(var(--h) 30% 31%); }
.game-row .primary-name { line-height: 1.4; overflow-wrap: anywhere; }
.game-row .secondary-name { margin-top: 3px; line-height: 1.45; }
.game-tags { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.game-tags .plugin-tag { margin: 0; }
.vr-tag { color: var(--accent-text); border-color: var(--strong-border); }

/* Product options and mounting */
.finishes {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, .85fr);
  align-items: center;
  gap: clamp(20px, 4vw, 62px);
}
.finish-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finish-photos figure { overflow: hidden; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-raised); }
.finish-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.finish-photos figcaption { padding: 12px 14px; line-height: 1.45; }
.finish-photos strong { display: block; margin-bottom: 4px; }
.finish-photos span { display: block; color: var(--sub); font-size: 14px; }
.finish-diameter { margin-top: 3px; }
.finish-diameter b, .holder-size b { white-space: nowrap; color: var(--paper); }
.finish-controls > p { margin-top: 8px; }
.finish-colors { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 16px; }
.finish-colors button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; min-height: 36px; border-radius: 7px; border: 1px solid var(--strong-border); background: var(--panel); color: var(--sub); font-size: 14px; }
.finish-colors button::before { content: ""; width: 13px; height: 13px; background: var(--swatch); border: 1px solid #ffffff35; border-radius: 50%; }
.finish-note { font-size: 14px; line-height: 1.65; }
.hardware-group { margin-top: clamp(36px, 5vw, 68px); }
.motor-table { margin-top: 14px; border-block: 1px solid var(--strong-border); }
.motor-table article { display: grid; grid-template-columns: minmax(76px, .36fr) minmax(94px, .53fr) minmax(0, 2fr); align-items: center; gap: clamp(13px, 2.7vw, 34px); padding: 14px 10px; }
.motor-table article + article { border-top: 1px solid var(--border); }
.motor-table img { width: 100%; height: 88px; object-fit: contain; }
.motor-spec { min-width: 0; }
.motor-spec h3 { font-size: clamp(18px, 2vw, 24px); }
.motor-spec p { margin-top: 4px; color: var(--accent-text); font: 600 19px/1.4 var(--mono); }
.motor-spec span { color: var(--sub); font: 400 13px/1.4 var(--sans); }
.motor-table h4 { margin-bottom: 4px; font-size: 16px; }
.motor-table article p { line-height: 1.65; }
.demo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.holder-intro { margin: 7px 0 17px; }
.holder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.holder-grid article {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 7px;
  min-width: 0;
  padding: clamp(11px, 1.7vw, 20px);
  border: 1px solid var(--border);
  border-radius: var(--surface-radius);
  background: var(--panel-raised);
}
.holder-shots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin-bottom: 5px; }
.holder-shots img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--media-surface); border-radius: 7px; }
.holder-grid h4 { font-size: 19px; }
.holder-grid .holder-tag { width: fit-content; padding: 2px 8px; border: 1px solid var(--strong-border); border-radius: 5px; color: var(--accent-text); font-size: 13px; }
.holder-grid ul { display: grid; gap: 3px; margin: 3px 0; padding-left: 1.05em; color: var(--sub); font-size: 14px; line-height: 1.55; }
.holder-grid li::marker { color: var(--accent-line); }
.holder-size { margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 14px; }
.holder-size b { font: 650 17px var(--mono); }

.faq { display: grid; grid-template-columns: minmax(140px, .6fr) minmax(0, 1.6fr); gap: 0 var(--content-gap); align-items: start; }
.faq h2 { grid-row: 1 / 5; }
.faq .spec-details { grid-column: 2; padding: 12px 0; border-top: 1px solid var(--border); }
.faq .spec-details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { color: var(--paper); cursor: pointer; }
.faq p { padding: 8px 0 0 16px; line-height: 1.75; }
.fineprint { padding-bottom: 22px; font-size: 13px; }

@media (min-width: 981px) {
  .ai-card .mini-points { min-height: 82px; }
  .eco-item { padding-block: 14px; }
}

@media (max-width: 980px) {
  .ai-pair { grid-template-columns: 1fr; }
  .hero-live h1 { font-size: clamp(30px, 4.35vw, 45px); }
  .sw-block { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
  .sw-points { gap: 10px; }
  .game-row, .game-row:has(> .game-cover) { grid-template-rows: auto auto; gap: 5px 10px; }
  .game-row { grid-template-columns: minmax(0, 1fr); }
  .game-row:has(> .game-cover) { grid-template-columns: var(--cover-size) minmax(0, 1fr); }
  .game-row > .game-cover { grid-row: 1 / 3; }
  .game-tags { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .hero-live .hero-layout, .finishes, .model-studio, .faq { grid-template-columns: 1fr; }
  .hero-live .hero-layout { gap: 21px; padding-block: 27px 18px; }
  .hero-live h1 { font-size: clamp(29px, 7.8vw, 48px); margin: 11px 0 13px; }
  .hero-live .hero-copy > p { font-size: 15px; line-height: 1.72; }
  .hero-live .hero-actions { margin-top: 16px; }
  .metrics-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-inner > div, .metrics-inner > div:first-child, .metrics-inner > div:last-child { gap: 8px; padding: 12px 9px; }
  .metrics-inner > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .metrics-inner > div:nth-child(3) { border-left: 0; }
  .metrics-inner svg { width: 18px !important; height: 18px !important; }
  .metrics-inner b { font-size: 15px; }
  .metrics-inner em { font-size: 12px; }
  .section-heading { margin-bottom: 15px; }
  .ai-card { gap: 14px; }
  .mini-points { gap: 8px; }
  .mini-points li { font-size: 13px; }

  .sw-block { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "shots" "points"; gap: 14px; }
  .sw-block--app .sw-shots { grid-template-columns: repeat(2, minmax(0, 148px)); }
  .model-options { padding: 16px; }
  .model-options > p { margin: 4px 0 11px; }
  #axis-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  #axis-buttons button { padding: 7px 8px; font-size: 14px; }
  .full-model { margin-top: 12px; padding-block: 6px; }
  .model-stage { border-left: 0; border-top: 1px solid var(--border); }
  .model-screen { aspect-ratio: 1.36; }
  #game-list { grid-template-columns: 1fr; }
  .game-row { --cover-size: 49px; }
  .finish-controls { grid-row: 1; }
  .finish-colors { margin-block: 12px; }
  .finish-photos { gap: 8px; }
  .finish-photos figcaption { padding: 8px; }
  .finish-photos span { font-size: 13px; }
  .holder-grid { grid-template-columns: 1fr; }
  .holder-grid article { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 14px; }
  .holder-shots { grid-row: 1 / 5; align-self: center; margin-bottom: 0; }
  .faq h2 { grid-row: auto; margin-bottom: 15px; }
  .faq .spec-details { grid-column: 1; }
}

@media (max-width: 520px) {
  .sw-block--desktop .sw-shots { grid-template-columns: 1fr; gap: 14px; }
  .finish-colors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .finish-colors button { flex-direction: column; gap: 4px; padding: 6px 1px; font-size: 13px; }
  .motor-table article { grid-template-columns: 74px minmax(0, 1fr); gap: 7px 13px; padding: 12px 0; }
  .motor-table img { height: 66px; }
  .motor-table article > div:last-child { grid-column: 1 / -1; }
  .motor-table article > div:last-child p { font-size: 15px; }
  .holder-grid article { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .holder-shots { grid-row: auto; }
}

@media (max-width: 350px) {
  .hero-live h1 { font-size: clamp(24px, 8.35vw, 29px); }
  .metrics-inner b { font-size: 14px; }
  .metrics-inner > div { gap: 5px; padding-inline: 5px; }
  .sw-points { gap: 10px; }
}

/* 页脚备用线路提示（2026-11-28） */
.mirror-note { display: inline-block; margin-top: 4px; color: var(--sub); font-size: 12.5px; }
.mirror-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
