/* 27 寸一体机产品展示。只用本机字体，不请求远程样式。 */

:root {
  --底: #f4f6f8;
  --字: #1c2430;
  --次: #5c6b7a;
  --线: #d5dde6;
  --焦点: #1d4e89;
  --选中: #1c2430;
  --环: #c4362c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--底);
  color: var(--字);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.顶栏,
.底栏 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 100%;
  padding: 8px 16px;
}

.顶栏 {
  justify-content: space-between;
}

.提示 {
  margin: 0;
  color: var(--次);
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

button,
.返回 {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--字);
  background: #fff;
  border: 1px solid var(--线);
  border-radius: 8px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button[aria-checked="true"],
button[aria-pressed="true"] {
  background: var(--选中);
  color: #fff;
  border-color: var(--选中);
}

button[aria-checked="true"] {
  box-shadow: inset 0 -3px 0 var(--环);
}

button:focus-visible,
.返回:focus-visible {
  outline: 2px solid var(--焦点);
  outline-offset: 2px;
}

.底栏[hidden] {
  display: none;
}

.舞台 {
  background: #74808d;
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.产品图 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

canvas {
  visibility: hidden;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.舞台[data-viewer-ready="true"] .产品图 {
  display: none;
}

.舞台[data-viewer-ready="true"] canvas {
  visibility: visible;
}

.状态,
.静态提示 {
  margin: 0;
  position: absolute;
  left: 16px;
  bottom: 12px;
  min-height: 44px;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--字);
  background: rgba(244, 246, 248, 0.92);
  border-radius: 8px;
  pointer-events: none;
}

.状态:empty {
  display: none;
}

.状态 button {
  pointer-events: auto;
}

.操作 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.提示 {
  margin-left: auto;
}

@media (max-width: 720px) {
  .底栏 button {
    padding-inline: 10px;
  }

  .提示 {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
