﻿:root {
  --bg: #F5F5F5;
  --bg-top: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --surface-3: #FFFFFF;
  --surface-strong: oklch(0.29 0.08 262);
  --surface-strong-2: oklch(0.24 0.06 258);
  --accent: oklch(0.41 0.11 258);
  --accent-strong: oklch(0.32 0.085 259);
  --accent-soft: oklch(0.9 0.03 250);
  --accent-soft-2: oklch(0.84 0.045 248);
  --text: oklch(0.24 0.028 258);
  --text-soft: oklch(0.48 0.018 252);
  --text-muted: oklch(0.62 0.012 248);
  --text-inverse: oklch(0.985 0.004 240);
  --line: oklch(0.86 0.015 246);
  --line-strong: oklch(0.72 0.026 248);
  --shadow: 0 24px 60px color-mix(in oklab, var(--accent) 12%, transparent);
  --shadow-soft: 0 12px 30px color-mix(in oklab, var(--accent) 8%, transparent);
  --shadow-panel: 0 18px 45px color-mix(in oklab, var(--surface-strong) 8%, transparent);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --content-width: min(1760px, calc(100vw - 56px));
  --font-body: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --font-display: "Bahnschrift", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

img {
  display: block;
  max-width: 100%;
}
.previewable-image {
  cursor: zoom-in;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 28px 0 42px;
}

.protocol-warning {
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 0;
  background: var(--surface);
  color: var(--text);
  line-height: 1.7;
  box-shadow: none;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-header .back-button {
  margin-left: auto;
}

.site-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow,
.group-kicker,
.panel-kicker,
.detail-kicker {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
.group-title,
.section-chip,
.pill-button,
.back-button {
  font-family: var(--font-display);
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}

.header-rule {
  height: 1px;
  margin: 20px 0 32px;
  border-radius: 0;
  background: #D8DFEA;
}

.home-main,
.detail-main {
  display: grid;
  gap: 28px;
}

.top-grid,
.visual-grid {
  display: grid;
  gap: 24px;
}

.top-grid {
  grid-template-columns: 1fr;
}

.visual-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: start;
}

.panel {
  position: relative;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
}

.panel::before {
  content: none;
}

.group-panel,
.model-panel,
.overview-panel,
.info-panel,
.info-group-panel,
.media-gallery-panel,
.media-panel,
.not-found {
  padding: 26px;
}

.group-title-wrap,
.panel-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
}

.group-title-wrap {
  justify-content: flex-start;
}

.home-nav-panel {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
}

.home-nav-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.home-nav-summary {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.nav-step {
  display: grid;
  gap: 14px;
}

.nav-step-main {
  gap: 16px;
}

.nav-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nav-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.nav-step-copy {
  display: grid;
  gap: 4px;
}

.nav-step-kicker {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-step-title {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.nav-step-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.nav-step-divider {
  height: 1px;
  background: #edeff0;
}

.group-title,
.panel-heading-row h2,
.detail-hero h2,
.not-found h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--accent-strong);
}

.panel-heading-row h2,
.detail-hero h2,
.not-found h2 {
  margin-top: 2px;
}

.complex-actions,
.merchant-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.complex-actions {
  margin-bottom: 0;
}

.complex-actions .pill-button {
  min-width: 144px;
  min-height: 46px;
}

.merchant-actions {
  gap: 12px;
}

.merchant-actions .pill-button {
  min-width: 172px;
  min-height: 50px;
}

.pill-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #E8EDF5;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  box-shadow: none;
}

button.pill-button,
.merchant-actions .pill-button {
  padding: 10px 20px;
}

.pill-button:hover,
.pill-button:focus-visible,
.back-button:hover,
.back-button:focus-visible,
.merchant-preview:hover,
.merchant-preview:focus-visible,
.overview-switch:hover,
.overview-switch:focus-visible {
  transform: translateY(-2px);
}

.pill-button:hover,
.pill-button:focus-visible {
  background: #DCE5F1;
  box-shadow: none;
}

.pill-button.is-active {
  outline: 0;
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: none;
}

.empty-state,
.info-row dt,
.inline-link,
.not-found p,
.model-status,
.merchant-preview span,
.merchant-preview em {
  color: var(--text-soft);
}

.tag,
.section-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text-inverse);
  letter-spacing: 0.05em;
  box-shadow: none;
}

.model-panel,
.overview-panel {
  min-height: 760px;
}

.home-page .model-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
}

.home-page .overview-panel {
  overflow-x: hidden;
}

.overview-panel {
  padding: 18px;
  min-height: 628px;
}

.model-frame {
  position: relative;
  min-height: min(620px, calc(100vh - 190px));
  height: min(620px, calc(100vh - 190px));
  margin-top: 22px;
  overflow: hidden;
  border-radius: 8px;
  border: 0;
  background: var(--surface);
}

.model-frame::after {
  content: none;
  position: absolute;
  inset: auto 9% 5% 9%;
  height: 22%;
  border-radius: 50%;
  background: none;
  filter: none;
  pointer-events: none;
}

.model-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.model-status {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.status-error {
  color: #b74242;
}

.model-gallery {
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto auto;
  gap: 14px;
  min-height: 620px;
  padding: 14px;
}

.model-gallery-stage {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #edeff0;
  background: #fff;
}

.model-gallery-stage img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  padding: 14px;
  object-fit: contain;
  object-position: center;
}

.model-gallery-stage figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  font-family: var(--font-display);
  box-shadow: var(--shadow-soft);
}

.model-gallery-controls,
.model-gallery-thumbs {
  display: flex;
  gap: 10px;
}

.model-gallery-controls {
  justify-content: flex-end;
}

.model-gallery-arrow,
.model-gallery-thumb {
  border-radius: 8px;
  background: #E8EDF5;
  color: var(--accent-strong);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.model-gallery-arrow {
  min-width: 92px;
  min-height: 38px;
  padding: 8px 14px;
}

.model-gallery-arrow:hover,
.model-gallery-arrow:focus-visible,
.model-gallery-thumb:hover,
.model-gallery-thumb:focus-visible {
  transform: translateY(-2px);
  background: #DCE5F1;
}

.model-gallery-thumbs {
  overflow-x: auto;
  padding-bottom: 2px;
}

.model-gallery-thumb {
  flex: 0 0 110px;
  height: 74px;
  padding: 5px;
}

.model-gallery-thumb.is-active {
  background: var(--accent);
}

.model-gallery-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.overview-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.overview-dynamic-content {
  display: grid;
  gap: 16px;
}

.overview-map {
  min-height: 216px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #edeff0;
  background: var(--surface);
}

.overview-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
}

.overview-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.overview-switch {
  flex: 1 1 116px;
  min-width: 0;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: #E8EDF5;
  color: var(--accent-strong);
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.overview-switch.is-active {
  background: var(--accent);
  color: var(--text-inverse);
}

.overview-gallery {
  min-width: 0;
}

.overview-media-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  animation: fade-up 260ms ease;
}

.overview-media-panel.is-active {
  display: grid;
}

.overview-media-card {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #edeff0;
  background: var(--surface);
}

.overview-contact-card {
  grid-column: 1 / -1;
}

.overview-contact-list {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 18px;
  border-radius: 8px;
  background: #F6F8FB;
}

.overview-contact-list p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
}

.overview-inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.overview-media-card h3,
.media-card-title {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1.3;
}

.overview-media-frame {
  height: 168px;
  overflow: hidden;
  border-radius: 8px;
  border: 0;
  background: var(--surface);
}

.overview-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.detail-shell {
  padding-bottom: 56px;
}

.detail-header {
  align-items: center;
}

.back-button {
  min-width: 174px;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.detail-hero {
  display: grid;
  gap: 10px;
  padding: 2px 4px 0;
}

.detail-kicker {
  margin-bottom: 0;
}

.detail-subtitle {
  max-width: 72ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-info-stack {
  display: grid;
  gap: 16px;
  align-self: start;
  height: auto;
  min-height: 0;
  border-radius: 8px;
}

.info-group-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
}

.info-section {
  display: block;
}

.info-section + .info-section {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--line) 88%, white);
}

.info-section .section-chip {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  justify-content: flex-start;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: none;
}

.info-section .section-chip::after {
  content: none;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
}

.info-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  min-height: 32px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.info-row dt {
  align-self: start;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.info-row dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.58;
  word-break: break-word;
  white-space: normal;
}

.media-gallery-panel {
  min-width: 0;
  padding: 18px;
}

.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.media-card {
  min-width: 0;
  padding: 0;
  border-radius: 8px;
  border: 0;
  background: var(--surface);
}

.media-figure {
  margin: 14px 0 0;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 0;
  background: var(--surface);
}

.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#storefrontImage {
  border-radius: 0;
}

.wide-figure img {
  object-fit: contain;
  background: white;
}

.image-missing {
  display: grid;
  place-items: center;
}

.image-missing::after {
  content: "图片缺失";
  color: var(--text-soft);
}

.image-missing img {
  opacity: 0;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.image-lightbox.hidden {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 36px;
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.image-lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  padding: 14px 14px 10px;
  border-radius: 8px;
  background: #fff;
}

.image-lightbox-image {
  display: block;
  max-width: min(90vw, 1360px);
  max-height: calc(86vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-lightbox-caption {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.lightbox-open {
  overflow: hidden;
}

.not-found {
  max-width: 680px;
}

.inline-link {
  display: inline-flex;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-header > div,
.top-grid > .home-nav-panel,
.visual-grid > .panel,
.detail-hero,
.detail-layout > *,
.not-found {
  animation: fade-up 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1480px) {
  .page-shell {
    width: min(96vw, 1440px);
  }

  .top-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .visual-grid {
    grid-template-columns: 1fr;
  }

  .model-panel,
  .overview-panel {
    min-height: auto;
  }

  .home-page .model-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  .home-page .overview-panel {
    overflow: hidden;
  }

  .model-frame {
    min-height: 520px;
    height: auto;
  }
}

@media (max-width: 1120px) {
  .page-header,
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-nav-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-media-panel,
  .media-gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(calc(100vw - 24px), 100%);
    padding-top: 18px;
  }

  .group-panel,
  .home-nav-panel,
  .model-panel,
  .overview-panel,
  .info-panel,
  .info-group-panel,
  .media-gallery-panel,
  .media-panel,
  .not-found {
    padding: 18px;
  }

  .header-rule {
    margin: 16px 0 24px;
  }

  .pill-button,
  .back-button,
  .overview-switch {
    width: 100%;
  }

  .merchant-actions,
  .complex-actions,
  .overview-switches {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-step-head {
    gap: 12px;
  }

  .info-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .model-frame,
  .overview-map,
  .media-figure,
  .overview-media-frame {
    min-height: 280px;
    height: auto;
  }

  .model-gallery {
    grid-template-rows: minmax(280px, 1fr) auto auto;
    min-height: 360px;
    padding: 10px;
  }

  .model-gallery-stage,
  .model-gallery-stage img {
    min-height: 280px;
  }

  .model-gallery-controls {
    justify-content: stretch;
  }

  .model-gallery-arrow {
    flex: 1;
  }

  .model-status {
    right: 18px;
    left: 18px;
    max-width: none;
  }

  .image-lightbox-dialog {
    padding: 18px;
  }

  .image-lightbox-figure {
    width: 100%;
    padding: 10px 10px 8px;
  }

  .image-lightbox-image {
    max-width: 100%;
  }
}
.detail-description { max-width: 780px; color: #69758a; line-height: 1.8; margin: 12px 0 0; white-space: pre-wrap; }
.media-card-description { color: #758299; font-size: 13px; line-height: 1.6; margin: -8px 0 12px; }
.overview-group-description { color: #758299; line-height: 1.7; margin: 0 0 14px; white-space: pre-wrap; }
