:root { color-scheme: light; font-family: "DM Sans", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif; font-synthesis: none; color: #243d62; background: #f7f6f2; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible { outline: 3px solid #c98e58; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.studio { width: min(100%, 900px); margin-inline: auto; padding: 22px 30px 20px; }
.masthead { display: flex; align-items: center; margin-bottom: 20px; }
.brand h1 { margin: 0; font-family: Georgia, serif; font-style: italic; font-size: 34px; font-weight: 500; letter-spacing: -2px; }
.stage { position: relative; overflow: hidden; width: 100%; height: clamp(250px, 49dvh, 460px); background: #eeede8; border-radius: 14px; isolation: isolate; }
/* 两路画面使用同一镜像，仅改变本地显示，不翻转发送的视频或衣图。 */
.video { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; background: #172333; transform: scaleX(-1); }
.local-video { visibility: hidden; }
.stage.has-local .local-video { visibility: visible; }
.remote-video { visibility: hidden; }
.stage.has-remote .remote-video { visibility: visible; }
.stage.has-local .empty-stage { display: none; }
.empty-stage { height: 100%; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 45%, #f8f7f3, #eeede8 75%); }
.icon-button { display: grid; place-items: center; padding: 0; border: 0; color: #243d62; background: transparent; }
.camera-button { width: 88px; height: 88px; border-radius: 50%; transition: background .15s; }
.camera-button:not(:disabled):hover { background: rgb(36 61 98 / 6%); }
.stage-toolbar { position: absolute; top: 15px; left: 16px; right: 16px; display: flex; align-items: center; z-index: 2; pointer-events: none; }
.stage-toolbar .stop-button { width: 38px; height: 38px; margin-left: auto; border-radius: 50%; background: rgb(247 246 242 / 91%); pointer-events: auto; }
.stage-toolbar .stop-button:not(:disabled):hover { background: #fff; }
.status { background: rgb(247 246 242 / 91%); border-radius: 20px; padding: 8px 12px; font-size: 11px; color: #344b68; display: inline-flex; align-items: center; gap: 7px; }
.stage:not(.is-active) .status[data-state="idle"] { display: none; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #9ba7b5; }
.status[data-state="live"]::before { background: #5c9477; }
.status[data-state="error"]::before { background: #c97c6c; }
.garment-picker { width: 100%; min-width: 0; margin: 24px auto 0; }
.garment-options { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
/* 示例独立横滑，上传入口始终留在右侧，避免窄屏把整个页面撑宽。 */
.sample-options { display: flex; gap: 16px; flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px; margin: -4px; }
.sample-options::-webkit-scrollbar { display: none; }
.garment-option { flex: 0 0 100px; width: 100px; padding: 0; border: 0; background: transparent; color: #78818b; }
.garment-thumb { height: 92px; width: 100%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; background: #eeede8; border: 1px solid transparent; border-radius: 11px; overflow: hidden; transition: border-color .15s, background .15s; }
.garment-thumb img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.garment-option:hover .garment-thumb { border-color: #a4adba; }
.garment-option[aria-pressed="true"] .garment-thumb { border: 2px solid #243d62; background: #e8e8e3; }
.garment-option[aria-pressed="true"] { color: #243d62; }
.upload-option .garment-thumb { background: transparent; border: 1px dashed #b8bdc4; }
#garment-placeholder { font-size: 27px; font-weight: 300; line-height: 1; color: #7a8797; }
.text-button { border: 1px solid #c7d2e1; padding: 9px 14px; border-radius: 9px; color: #506584; font-size: 12px; background: transparent; }
.notice { font-size: 12px; line-height: 1.65; margin: 18px 0 0; padding: 11px 14px; color: #77554b; background: #f1e9e2; border-radius: 8px; overflow-wrap: anywhere; }
.notice[data-kind="info"], .notice[data-kind="playback"] { background: #e9edf0; color: #50637a; }
.start-button { width: min(100%, 360px); border: 0; border-radius: 10px; padding: 15px 24px; color: #fff; background: #243d62; font-size: 14px; font-weight: 500; transition: background .15s; }
.start-button:not(:disabled):hover { background: #1b3153; }
.footnote { text-align: center; margin: 12px 0 0; color: #7d8899; font-size: 11px; line-height: 1.6; }
/* 公开说明页仍与试衣页共享基础排版。 */
.brand-logo { display: block; width: 112px; height: 34px; object-fit: cover; flex-shrink: 0; }
.privacy { width: min(100%, 680px); margin: 0 auto; padding: 34px 24px 50px; }
.privacy h1 { margin-bottom: 24px; letter-spacing: 0; }
.privacy-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.privacy-heading h1 { margin: 0; }
.privacy h2 { margin: 26px 0 10px; font-size: 16px; font-weight: 500; }
.privacy p { font-size: 13px; line-height: 1.9; color: #506078; }
.privacy > a { display: inline-block; margin-top: 18px; text-decoration: none; }
[data-surface="website"] .masthead { display: none; }
[data-surface="website"] .studio { height: 100dvh; display: flex; flex-direction: column; padding-top: 24px; }
[data-surface="website"] .stage { flex: 1; height: auto; min-height: 190px; }
[data-surface="website"] .garment-picker, [data-surface="website"] .notice, [data-surface="website"] .footnote { flex-shrink: 0; }
[data-surface="sidepanel"] .studio { padding: 16px; }
[data-surface="sidepanel"] .stage { height: clamp(230px, 46dvh, 460px); }
[data-surface="sidepanel"] .garment-options, [data-surface="sidepanel"] .sample-options { gap: 9px; }
[data-surface="sidepanel"] .garment-option { flex-basis: 76px; width: 76px; }
[data-surface="sidepanel"] .garment-thumb { height: 80px; }
.camera-setup { margin-top: 14px; }
.camera-setup-page { padding-top: 28px; }
.camera-setup-page h1 { font-size: 24px; }
.camera-setup-page p { font-size: 13px; line-height: 1.8; }
[data-surface="camera-setup"] .studio > :not(.camera-setup-page) { display: none; }
@media (max-width: 540px) { .studio, [data-surface="website"] .studio { padding: 14px 16px 18px; } .stage { height: clamp(230px, 43dvh, 420px); border-radius: 11px; } .garment-picker { margin-top: 20px; } .garment-options, .sample-options { gap: 9px; } .garment-option { flex-basis: 76px; width: 76px; } .garment-thumb { height: 80px; } }
@media (max-height: 670px) { .studio, [data-surface="website"] .studio { padding-top: 14px; padding-bottom: 14px; } .stage { height: 38dvh; min-height: 190px; } .garment-picker { margin-top: 15px; } .garment-thumb { height: 70px; } }
