dialog.yw-spatial { --sp-paper:#f1f0e9; --sp-ink:#171817; --sp-line:#1718172b; position:fixed; inset:0; margin:0; padding:0; width:100vw; height:100dvh; max-width:100vw; max-height:100dvh; border:0; color:var(--sp-ink); background:transparent; overflow:hidden; overscroll-behavior:none; isolation:isolate; font-family:Arial,"Microsoft YaHei",sans-serif; }
dialog.yw-spatial[open] { animation:none!important; }
dialog.yw-spatial::backdrop { background:transparent; backdrop-filter:none; }
.yw-spatial *,.yw-spatial *::before,.yw-spatial *::after { box-sizing:border-box; }
.yw-spatial button { font:inherit; color:inherit; background:transparent; border:0; cursor:pointer; padding:0; -webkit-tap-highlight-color:transparent; }
.yw-spatial button:focus-visible { outline:2px solid var(--sp-ink); outline-offset:4px; }
.yw-spatial__wash { position:absolute; inset:0; background:#f1f0e9e8; z-index:-2; }
.yw-spatial__axis { position:absolute; top:50%; left:0; right:0; color:#17181738; display:flex; align-items:center; gap:25px; font:8px/1 ui-monospace,Consolas,monospace; letter-spacing:.16em; pointer-events:none; z-index:-1; }
.yw-spatial__axis span { writing-mode:vertical-rl; padding-left:18px; transform:translateY(-50%); position:absolute; }
.yw-spatial__axis i { width:100%; height:1px; background:#1718170b; }
.yw-spatial__stage { position:absolute; inset:0; overflow:hidden; touch-action:none; z-index:0; }
.yw-spatial__world { position:absolute; left:50%; top:40%; width:0; height:0; transform-origin:0 0; will-change:transform; }
.yw-spatial__frame { position:absolute; display:block; background:#dedfd6!important; opacity:.18; transform:none; box-shadow:0 20px 60px #1718170b; transition:opacity .5s; }
.yw-spatial__frame img { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; user-select:none; }
.yw-spatial__frame.is-near { opacity:.38; }
.yw-spatial__frame.is-current { opacity:1; cursor:zoom-in; }
.yw-spatial__frame-marker { position:absolute; top:-24px; left:0; font:9px/1 ui-monospace,Consolas,monospace; letter-spacing:.1em; color:#17181766; pointer-events:none; }
.yw-spatial__header { position:absolute; top:0; left:0; right:0; height:86px; padding:15px clamp(20px,3.5vw,56px); display:flex; align-items:center; gap:32px; z-index:5; background:linear-gradient(var(--sp-paper),#f1f0e9e6 65%,#f1f0e900); }
.yw-spatial__back { display:flex; align-items:center; gap:11px; min-height:44px; flex:none; font-size:11px!important; }
.yw-spatial__back>span:first-child { font-size:27px; transition:transform .3s; }
.yw-spatial__back:hover>span:first-child { transform:translate(-3px,-3px); }
.yw-spatial__breadcrumb { font:9px/1.5 ui-monospace,Consolas,monospace; color:#17181780; letter-spacing:.08em; white-space:nowrap; }
.yw-spatial__projects { display:flex; align-items:center; gap:15px; margin-left:auto; }
.yw-spatial__projects button { min-height:44px; display:flex; align-items:center; gap:10px; font-size:10px; }
.yw-spatial__projects button>span[aria-hidden] { font-size:20px; }
.yw-spatial__projects button:hover { text-decoration:underline; text-underline-offset:5px; }
.yw-spatial__project-count { font:9px/1 ui-monospace,Consolas,monospace; color:#17181778; white-space:nowrap; }
.yw-spatial__caption { position:absolute; left:50%; transform:translateX(-50%); display:flex; justify-content:space-between; gap:20px; color:#17181799; font-size:10px; line-height:1.5; z-index:2; pointer-events:none; transition:opacity .3s; }
.yw-spatial__caption-kind { font-size:8px; white-space:nowrap; text-transform:uppercase; letter-spacing:.06em; }
.yw-spatial__info { position:absolute; bottom:0; left:0; right:0; padding:30px clamp(20px,3.5vw,56px) 28px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:40px; z-index:4; background:linear-gradient(#f1f0e900,var(--sp-paper) 23%); pointer-events:none; }
.yw-spatial__info button { pointer-events:auto; }
.yw-spatial__copy { max-width:650px; }
.yw-spatial__category { margin:0 0 9px; font-size:9px; color:#17181788; letter-spacing:.1em; text-transform:uppercase; }
.yw-spatial__copy h2 { font-size:clamp(26px,3.2vw,48px); line-height:1.08; letter-spacing:-.045em; font-weight:400; margin:0 0 12px; }
.yw-spatial__summary { font-size:11px; line-height:1.7; margin:0; max-width:570px; color:#17181799; }
.yw-spatial__gallery-tools { display:grid; grid-template-columns:auto auto; gap:13px 20px; align-items:center; }
.yw-spatial__frames { display:flex; gap:12px; align-items:center; }
.yw-spatial__frames button { width:44px; height:44px; border:1px solid var(--sp-line); border-radius:50%; font-size:20px; transition:background .25s; }
.yw-spatial__frames button:hover:not(:disabled) { background:#d5ff45; }
.yw-spatial__frames button:disabled { opacity:.24; cursor:default; }
.yw-spatial__frame-count { font:10px/1 ui-monospace,Consolas,monospace; min-width:46px; text-align:center; }
.yw-spatial__detail { min-height:44px; padding:0 18px!important; border:1px solid var(--sp-line)!important; border-radius:30px; font-size:11px!important; display:flex; align-items:center; gap:8px; transition:background .25s; }
.yw-spatial__detail>span:first-child { font-size:19px; }
.yw-spatial__detail:hover { background:#d5ff45; }
.yw-spatial__hint { grid-column:1/-1; font-size:8px; color:#17181777; text-align:right; white-space:nowrap; }
.yw-spatial__detail-tools[hidden] { display:none; }
.yw-spatial__detail-tools { position:absolute; top:98px; right:clamp(20px,3.5vw,56px); display:flex; align-items:center; gap:1px; z-index:6; border:1px solid var(--sp-line); background:#f1f0e9eb; border-radius:28px; padding:2px 6px; }
.yw-spatial__detail-tools button { min-width:44px; height:42px; font-size:20px; }
.yw-spatial__detail-tools button:hover { background:#d5ff45; border-radius:50%; }
.yw-spatial__zoom-value { font:9px/1 ui-monospace,Consolas,monospace; min-width:42px; text-align:center; }
.yw-spatial__detail-tools .yw-spatial__fit { font-size:10px; border-left:1px solid var(--sp-line); margin-left:4px; padding-left:4px; }
.yw-spatial.is-detail .yw-spatial__frame.is-current { cursor:grab; }
.yw-spatial.is-detail .yw-spatial__frame:not(.is-current) { opacity:0; pointer-events:none; }
.yw-spatial.is-detail .yw-spatial__caption { opacity:0; }
.yw-spatial.is-dragging .yw-spatial__frame.is-current { cursor:grabbing; }
.yw-spatial__flight { position:absolute; z-index:3; pointer-events:none; overflow:hidden; background:#dedfd6; will-change:left,top,width,height; box-shadow:0 15px 60px #1718170b; }
.yw-spatial__flight img { width:100%; height:100%; display:block; object-fit:cover; }
.yw-spatial__sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:900px) and (min-width:700px) { .yw-spatial__projects button [data-label] { display:none; } .yw-spatial__info { gap:20px; } .yw-spatial__gallery-tools { column-gap:12px; } .yw-spatial__frames { gap:7px; } .yw-spatial__copy h2 { font-size:32px; } }
@media(max-width:699px) {
  .yw-spatial__header { height:94px; padding:12px 18px 25px; gap:10px; flex-wrap:wrap; align-content:center; justify-content:space-between; }
  .yw-spatial__back { font-size:10px!important; gap:8px; }
  .yw-spatial__back>span:first-child { font-size:24px; }
  .yw-spatial__breadcrumb { position:absolute; top:71px; left:18px; font-size:8px; }
  .yw-spatial__projects { gap:7px; margin-left:0; }
  .yw-spatial__projects button { min-width:44px; justify-content:center; min-height:44px; }
  .yw-spatial__projects button [data-label] { display:none; }
  .yw-spatial__project-count { font-size:8px; }
  .yw-spatial__axis span { display:none; }
  .yw-spatial__caption { font-size:9px; gap:12px; }
  .yw-spatial__caption-text { max-width:70%; }
  .yw-spatial__caption-kind { font-size:7px; }
  .yw-spatial__info { padding:26px 18px 18px; grid-template-columns:1fr; align-items:start; gap:18px; }
  .yw-spatial__category { font-size:8px; margin-bottom:8px; }
  .yw-spatial__copy h2 { font-size:28px; margin-bottom:8px; }
  .yw-spatial__summary { font-size:10px; line-height:1.65; }
  .yw-spatial__gallery-tools { justify-content:space-between; gap:13px 12px; }
  .yw-spatial__frames { gap:10px; }
  .yw-spatial__detail { padding:0 15px!important; font-size:10px!important; }
  .yw-spatial__hint { text-align:left; white-space:normal; font-size:8px; }
  .yw-spatial__detail-tools { top:102px; right:18px; padding:1px 3px; }
  .yw-spatial__detail-tools button { min-width:40px; }
  .yw-spatial__zoom-value { font-size:8px; min-width:35px; }
}
@media(max-height:520px) {
  .yw-spatial__header { height:64px; }
  .yw-spatial__breadcrumb { display:none; }
  .yw-spatial__info { padding-top:20px; padding-bottom:16px; grid-template-columns:1fr auto; align-items:end; gap:18px; }
  .yw-spatial__copy h2 { font-size:24px; margin-bottom:7px; }
  .yw-spatial__category { margin-bottom:5px; }
  .yw-spatial__summary,.yw-spatial__hint { display:none; }
  .yw-spatial__gallery-tools { display:flex; gap:12px; }
  .yw-spatial__projects button [data-label] { display:none; }
  .yw-spatial__detail-tools { top:68px; }
}
@media(max-height:520px) and (max-width:699px) {
  .yw-spatial__info { grid-template-columns:1fr; gap:10px; padding:14px 18px; }
  .yw-spatial__category { display:none; }
  .yw-spatial__copy h2 { font-size:22px; margin-bottom:0; }
  .yw-spatial__gallery-tools { justify-content:space-between; gap:10px; }
}
@media(prefers-reduced-motion:reduce) { .yw-spatial *, .yw-spatial *::before, .yw-spatial *::after { transition:none!important; animation:none!important; } }
