:root {
  --ink: #15171a;
  --muted: #757a80;
  --line: #e9ebed;
  --paper: #ffffff;
  --soft: #f5f6f7;
  --accent: #252b31;
  --site-font: "Noto Sans SC", "Noto Sans", sans-serif;
  color-scheme: light;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/NotoSansSC-Regular-subset.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/fonts/NotoSansSC-Bold-subset.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--site-font);
}

main { min-height: calc(100svh - 82px); }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.76), rgba(255,255,255,0));
  pointer-events: none;
}

.brand-logo { width: min(170px, 32vw); height: 52px; object-fit: contain; object-position: left center; }
.model-name { position: absolute; left: 50%; transform: translateX(-50%); font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: .1em; color: #343a40; white-space: nowrap; }
.scene { min-height: calc(100svh - 82px); padding: 108px clamp(20px, 6vw, 100px) 30px; text-align: center; }
.scene[hidden] { display: none !important; }
.exterior-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.eyebrow { margin: 0 0 16px; font-size: 12px; color: var(--muted); letter-spacing: .08em; line-height: 1.6; }
.eyebrow b { color: #b3b8bd; font-weight: 400; padding: 0 5px; }

.spin-stage {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 1876 / 1238;
  height: auto;
  min-height: 0;
  overflow: visible;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 72%, #f2f3f4 0%, #fff 58%);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.spin-stage.is-dragging { cursor: grabbing; }
.spin-stage img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.loading { font-size: 14px; color: var(--muted); }
.drag-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 9px 14px; color: #5d646b; background: rgba(255,255,255,.82); border: 1px solid rgba(225,228,230,.9); border-radius: 16px; font-size: 10px; line-height: 1.45; text-align: left; backdrop-filter: blur(8px); pointer-events: none; white-space: nowrap; }
.drag-hint .drag-arrow { font-size: 19px; line-height: 1; }

.interior-scene { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f5f7f8; color: var(--ink); }
.interior-scene .eyebrow { color: var(--muted); }
.pano-stage { width: min(1280px, 100%); height: min(67vh, 690px); min-height: 360px; overflow: hidden; background: #fff; border: 1px solid #e3e7e9; border-radius: 12px; box-shadow: 0 14px 36px rgba(36, 45, 52, .10); cursor: grab; touch-action: none; }
.pano-stage.is-dragging { cursor: grabbing; }
.pano-stage canvas { display: block; width: 100%; height: 100%; }
.pano-hint { margin: 16px 0 0; color: #596068; font-size: 13px; line-height: 1.65; }

.scene-switcher { position: relative; z-index: 20; display: flex; width: max-content; max-width: calc(100% - 28px); margin: 0 auto 20px; gap: 4px; padding: 5px; border: 1px solid rgba(214,218,221,.86); border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(20,24,28,.12); }
.scene-switcher button { min-width: 178px; border: 0; border-radius: 18px; padding: 9px 13px; color: #596068; background: transparent; font-family: var(--site-font); cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease; white-space: nowrap; line-height: 1.3; }
.scene-switcher button span { display: block; font-size: 15px; font-weight: 700; }
.scene-switcher button small { display: block; font-size: 12px; opacity: .78; }
.scene-switcher button:hover { color: var(--ink); background: rgba(239,241,243,.92); }
.scene-switcher button[aria-current="page"] { color: #fff; background: var(--accent); box-shadow: 0 3px 10px rgba(22,27,31,.22); cursor: default; }

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 12px 18px; }
  .brand-logo { width: 104px; height: 36px; }
  .model-name { display: block; left: auto; right: 18px; transform: none; font-size: 16px; letter-spacing: .06em; }
  main { min-height: calc(100svh - 76px); }
  .scene { min-height: calc(100svh - 76px); padding: 86px 14px 22px; }
  .spin-stage { width: 100%; height: auto; min-height: 0; }
  .pano-stage { height: 65vh; min-height: 380px; border-radius: 9px; }
  .scene-switcher { width: calc(100% - 28px); justify-content: space-between; margin-bottom: max(14px, env(safe-area-inset-bottom)); }
  .scene-switcher button { min-width: 0; flex: 1; padding: 8px 4px; }
  .scene-switcher button span { font-size: 12px; }
  .scene-switcher button small { font-size: 9px; }
  .drag-hint { bottom: 12px; font-size: 8px; padding: 7px 10px; }
}
