:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #f6f7f3;
  color: #152e34;
  --ink: #152e34;
  --mute: #536a6d;
  --accent: #14565d;
  --mist: #e1edeb;
  --border: #dce5de;
  --paper: #fffefa;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, model-viewer:focus-visible {
  outline: 2px solid #287f86;
  outline-offset: 3px;
}
.page { width: min(100% - 88px, 1480px); margin: 0 auto; }
.masthead {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 76px; border-bottom: 1px solid var(--border);
}
.identity { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.identity small { display: inline-block; margin-left: 12px; color: var(--mute); font-weight: 500; font-size: 13px; }
.mark {
  display: flex; flex: none; align-items: end; justify-content: center; gap: 3px;
  width: 34px; height: 34px; padding-bottom: 8px; border-radius: 7px;
  background: #194e54;
}
.mark i { display: block; background: #d9eeea; width: 4px; height: 12px; border-radius: 1px; }
.mark i:nth-child(2) { height: 18px; }
.mark i:nth-child(3) { height: 9px; }
.top-action {
  display: flex; gap: 9px; align-items: center; border: 1px solid #bccfc9;
  padding: 8px 13px; border-radius: 8px; font-size: 14px; font-weight: 650; text-decoration: none;
  white-space: nowrap;
}
.top-action:hover { background: var(--mist); }
.page-title {
  min-height: 110px; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap;
  padding: 27px 0 25px;
}
.page-title h1 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.23; letter-spacing: -.055em; }
.page-title p { color: var(--mute); margin: 0; font-size: 15px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 312px); gap: 20px; align-items: stretch; }
.stage {
  position: relative; overflow: hidden; min-height: min(61vh, 655px); border: 1px solid #d4e1dc;
  border-radius: 17px; background: radial-gradient(ellipse at 45% 43%, #f7faf7 0%, #ecf2ee 51%, #e3ebe6 100%);
}
.stage:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
model-viewer { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
model-viewer:not(:defined) {
  background: url("assets/park-poster.webp") center / min(88%, 1020px) auto no-repeat;
}
.stage-heading { position: absolute; z-index: 1; top: 24px; left: 27px; pointer-events: none; }
.stage-heading p { margin: 0 0 6px; font-size: 12px; color: #416466; font-weight: 650; }
.stage-heading h2 { margin: 0; font-size: 24px; line-height: 1.24; font-weight: 680; letter-spacing: -.045em; }
.toolbar { position: absolute; top: 22px; right: 20px; z-index: 2; display: flex; gap: 5px; }
.toolbar button, .close {
  border: 1px solid #cddbd5; border-radius: 8px; background: #fbfdfa; min-height: 36px; min-width: 36px;
  line-height: 1; font-size: 20px; padding: 0 7px; display: grid; place-items: center;
}
.toolbar #top-view { font-size: 13px; min-width: 47px; }
.toolbar button:hover, .toolbar button[aria-pressed="true"], .close:hover { background: var(--mist); }
.gesture {
  position: absolute; z-index: 1; bottom: 10px; left: 26px; padding: 7px 10px; border-radius: 6px;
  background: rgba(251, 253, 250, .91); color: #416466; font-size: 12px; margin: 0 0 8px;
  pointer-events: none;
}
.load {
  position: absolute; z-index: 2; bottom: 24px; right: 22px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 7px; padding: 9px 12px; font-size: 13px;
}
.panel {
  display: flex; flex-direction: column; padding: 23px;
  border: 1px solid var(--border); background: var(--paper); border-radius: 17px;
}
.panel h2 { margin: 0 0 15px; font-size: 17px; line-height: 1.4; }
.site-button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left;
  min-height: 42px; border: 1px solid var(--border); background: #f6f8f3; padding: 7px 11px;
  border-radius: 8px; font-weight: 650; font-size: 14px;
}
.site-button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; }
.building { margin-top: 20px; }
.building h3 { font-size: 13px; font-weight: 680; margin: 0 0 8px; }
.floors { display: grid; gap: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.floors button {
  border: 1px solid var(--border); border-radius: 7px; background: #f6f8f3; padding: 8px 2px;
  min-height: 38px; font-size: 14px; font-weight: 650;
}
.floors button:hover, .site-button:not([aria-pressed="true"]):hover { background: var(--mist); }
.floors button[aria-pressed="true"] { border-color: #1a6267; background: #dcefeb; color: #0f4d53; }
.scene-information { margin-top: 23px; border-top: 1px solid var(--border); padding-top: 19px; }
.scene-information h2 { margin-bottom: 8px; }
.scene-information p { color: var(--mute); font-size: 13px; line-height: 1.75; margin: 0; }
.scene-information dl { margin: 13px 0 0; }
.scene-information dl:empty { display: none; }
.scene-information dl div { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; margin: 7px 0; }
.scene-information dt { color: var(--mute); font-size: 12px; }
.scene-information dd { margin: 0; color: var(--accent); font-size: 14px; font-weight: 720; white-space: nowrap; }
footer { display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: space-between; padding: 19px 1px 28px; color: var(--mute); font-size: 12px; }
footer a { text-underline-offset: 3px; }
dialog {
  border: 1px solid var(--border); border-radius: 16px; padding: 23px;
  width: min(480px, 100% - 28px); background: var(--paper); color: var(--ink);
  box-shadow: 0 15px 45px #183b3e38;
}
dialog::backdrop { background: #1020248f; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; }
.dialog-heading h2 { font-size: 23px; margin: 0; }
.ar-model-view { margin: 14px 0; overflow: hidden; border-radius: 9px; aspect-ratio: 2 / 1; background: var(--mist); }
.ar-model-view img { width: 100%; height: 100%; object-fit: cover; }
dialog p { font-size: 14px; line-height: 1.65; color: var(--mute); }
.ar-note { font-size: 12px; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.primary {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px;
  text-decoration: none; background: var(--accent); color: white; border: 0;
  border-radius: 8px; font-size: 14px; font-weight: 650;
}
@media (max-width: 860px) {
  .page { width: min(100% - 32px, 680px); }
  .layout { grid-template-columns: 1fr; gap: 12px; }
  .page-title { padding: 17px 0; min-height: auto; gap: 7px 16px; }
  .stage { min-height: max(380px, 49svh); }
  .floor-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .floor-nav h2, .site-button { grid-column: 1 / -1; }
  .floor-nav h2, .building { margin: 0; }
  .panel { padding: 17px; }
}
@media (max-width: 500px) {
  .page { width: calc(100% - 22px); }
  .masthead { min-height: 62px; }
  .identity { font-size: 13px; gap: 7px; }
  .identity small { display: block; margin: 1px 0 0; font-size: 11px; }
  .mark { width: 29px; height: 29px; padding-bottom: 6px; }
  .top-action { padding: 7px 8px; font-size: 12px; gap: 4px; }
  .page-title h1 { font-size: 29px; }
  .page-title p { font-size: 12px; }
  .stage { min-height: max(330px, 44svh); border-radius: 13px; }
  .stage-heading { top: 16px; left: 13px; }
  .stage-heading h2 { font-size: 19px; }
  .stage-heading p { font-size: 11px; margin-bottom: 5px; }
  .toolbar { top: 12px; right: 9px; gap: 3px; }
  .toolbar button { min-width: 31px; min-height: 34px; padding: 0 4px; }
  .toolbar #top-view { min-width: 38px; }
  .gesture { left: 12px; bottom: 6px; }
  .load { right: 11px; bottom: 15px; }
  .floors { gap: 4px; }
}
