/* 广交会 3D 展位页。整页就是一个 3D 画面，按钮浮在上面。颜色和 OA 一致：绿色系 */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #2f7d4f;
  --green-deep: #1f5c38;
  --green-soft: #e4f1e8;
  --dark: #15301f;
  --ink: #1b231e;
  --muted: #55635a;
  --line: #d9e5db;
  --danger: #c3262c;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #1b2a20;
  color: var(--ink);
  font: 16px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

.stage {
  position: fixed;
  inset: 0;
  touch-action: none;
  cursor: grab;
}

.stage.dragging {
  cursor: grabbing;
}

.stage.pointing {
  cursor: pointer;
}

.stage canvas {
  display: block;
}

/* ---------- 加载中 ---------- */

.loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.5s;
}

.loading.done {
  opacity: 0;
  pointer-events: none;
}

.loading img {
  width: 160px;
  height: auto;
}

.loading p {
  margin: 0;
  font-size: 14px;
}

.loading-bar {
  width: 200px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.loading-bar div {
  width: 0;
  height: 100%;
  background: #7fd3a1;
  transition: width 0.2s;
}

/* ---------- 浮在上面的东西 ---------- */

.top {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  border-radius: 14px;
  background: rgba(21, 48, 31, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  pointer-events: none;
}

.logo {
  width: 84px;
  height: auto;
}

.top-text {
  display: grid;
  font-size: 12px;
  line-height: 1.35;
}

.top-text span {
  color: rgba(255, 255, 255, 0.75);
}

.hint {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(21, 48, 31, 0.8);
  color: #fff;
  font-size: 14px;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.6s;
}

.hint.gone {
  opacity: 0;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 26px 12px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(21, 48, 31, 0) 0%, rgba(21, 48, 31, 0.5) 70%);
  pointer-events: none;
}

.spots {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}

.spots::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(21, 48, 31, 0.72);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.pill:hover {
  background: rgba(21, 48, 31, 0.92);
}

.pill[aria-current="true"] {
  border-color: #fff;
  background: #fff;
  color: var(--dark);
}




.pill:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* 看大图时下面的说明 */
.pswp__note {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(21, 48, 31, 0.88);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transform: translateX(-50%);
  white-space: nowrap;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 40;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 600px) {
  .top {
    padding: 6px 10px 6px 8px;
  }

  .logo {
    width: 66px;
  }

}
