:root {
  --page-width: 3000px;
  --page-height: 3304px;
  --page-scale: 1;
  --focus-color: rgba(147, 57, 25, 0.75);
}

* {
  box-sizing: border-box;
}

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

body {
  background: #efe1c8;
  color: #3f1f0c;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 0;
}

.viewport {
  display: flex;
  justify-content: center;
  width: 100%;
}

.canvas-shell {
  width: calc(var(--page-width) * var(--page-scale));
  height: calc(var(--page-height) * var(--page-scale));
  max-width: 100%;
}

.canvas-stage {
  position: relative;
  width: var(--page-width);
  height: var(--page-height);
  transform: scale(var(--page-scale));
  transform-origin: top left;
  overflow: hidden;
}

.page-image {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}

.overlay-layer {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  display: block;
}

.hotspot {
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
}

.hotspot:hover {
  background: rgba(126, 54, 20, 0.05);
}

.hotspot:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.hotspot-logo {
  left: 0.6%;
  top: 0.6%;
  width: 21%;
  height: 7%;
}

.hotspot-nav {
  top: 1%;
  height: 4.8%;
}

.hotspot-home {
  left: 26.6%;
  width: 8.4%;
}

.hotspot-history {
  left: 35.7%;
  width: 11.6%;
}

.hotspot-project {
  left: 48.5%;
  width: 10.9%;
}

.hotspot-store {
  left: 60.6%;
  width: 10.5%;
}

.hotspot-contact {
  left: 72%;
  width: 10.4%;
}

.hotspot-search {
  right: 2%;
  top: 1%;
  width: 14%;
  height: 4.8%;
}

.page-only {
  display: none;
}

body[data-page="store"] .page-store,
body[data-page="checkout"] .page-checkout,
body[data-page="contact"] .page-contact {
  display: block;
}

.hotspot-buy {
  top: 81.6%;
  width: 18.2%;
  height: 4.8%;
  border-radius: 18px;
}

.hotspot-buy-1 {
  left: 7.1%;
}

.hotspot-buy-2 {
  left: 30.1%;
}

.hotspot-buy-3 {
  left: 53.1%;
}

.hotspot-buy-4 {
  left: 76.2%;
}

.hotspot-close-checkout {
  left: 84.5%;
  top: 17%;
  width: 8%;
  height: 9%;
  border-radius: 999px;
}

.hotspot-submit-order {
  left: 50.3%;
  top: 79.3%;
  width: 35.7%;
  height: 4.3%;
  border-radius: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(68, 29, 10, 0.9);
  color: #fff7f0;
  box-shadow: 0 18px 45px rgba(68, 29, 10, 0.22);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.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: 768px) {
  .app-shell {
    padding: 0;
  }

  .toast {
    bottom: 18px;
    padding: 10px 14px;
    font-size: 14px;
  }
}
