:root {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #10251d;
  background: #f6f8f4;
  --forest: #123a2a;
  --muted: #52655a;
  --line: #dce5da;
  --lime: #dfff70;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
button:focus-visible, model-viewer:focus-within {
  outline: 2px solid #0d7a4c;
  outline-offset: 3px;
}
.shell { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #f6f8f4; }
.header-row {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 650;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 28px/1 system-ui, sans-serif;
  letter-spacing: -.065em;
}
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: #45885c; align-self: flex-start; margin-top: 3px; }

.layout {
  display: grid;
  grid-template-columns: .88fr 1.3fr;
  align-items: center;
  column-gap: clamp(30px, 5.25vw, 79px);
  row-gap: 26px;
  padding-block: 62px 34px;
}
.intro { min-width: 0; }
.product-id {
  display: block;
  color: #275442;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .05em;
}
h1 {
  margin: 15px 0 17px;
  font-size: clamp(38px, 4.5vw, 65px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 790;
}
.lead {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.dimensions {
  display: grid;
  position: relative;
  grid-template-columns: 1fr 1fr 1.25fr;
  border-block: 1px solid var(--line);
  margin: 28px 0 22px;
  padding: 14px 30px 15px 0;
  gap: 10px;
}
.dimensions dt { color: var(--muted); font-size: 13px; }
.dimensions dd {
  margin: 4px 0 0;
  font: 690 clamp(20px, 2.4vw, 31px)/1 system-ui, sans-serif;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.unit { position: absolute; inset: auto 0 15px auto; color: var(--muted); font-size: 12px; }
.primary {
  display: flex;
  gap: 15px;
  min-height: 55px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--lime);
  color: #13301f;
  font-weight: 760;
  cursor: pointer;
}
.primary:hover:not(:disabled) { background: #e8ff9c; border-color: #9eba55; }
.primary:disabled { background: #e9eee4; color: #43574a; cursor: wait; }
.primary span { font-size: 22px; line-height: 1; }
.status { font-size: 13px; color: var(--muted); line-height: 1.62; margin: 10px 0 0; min-height: 2.4em; }
.recovery { margin-top: 5px; color: #245541; font-size: 14px; }
.recovery summary { width: fit-content; padding-block: 7px; font-weight: 720; cursor: pointer; }
.recovery summary:focus-visible { outline: 2px solid #0d7a4c; outline-offset: 3px; }
.recovery p { margin: 5px 0 9px; color: var(--muted); line-height: 1.65; }
.recovery-button {
  min-height: 43px;
  padding: 6px 12px;
  border: 1px solid #7d9e86;
  border-radius: 9px;
  background: #f9fbf7;
  color: #254638;
  font-weight: 700;
  cursor: pointer;
}
.recovery-button:disabled { opacity: .55; cursor: default; }
.preview { min-width: 0; }
.stage {
  display: grid;
  position: relative;
  isolation: isolate;
  height: clamp(420px, 42vw, 545px);
  overflow: hidden;
  border: 1px solid #d9e4d6;
  border-radius: 23px;
  background: radial-gradient(ellipse at 58% 36%, #fdfefb 0, #e5eee2 68%, #dce9de 100%);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(#98b6a3 0.7px, transparent 0.7px) 0 0 / 18px 18px;
  mask-image: linear-gradient(to bottom, transparent 30%, black);
  opacity: .56;
}
.stage-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 1;
  top: 16px;
  left: 16px;
  background: #f9fbf7eb;
  border: 1px solid #dce8dd;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  color: #2d5940;
  pointer-events: none;
}
.stage-label i { width: 6px; height: 6px; background: #45885c; border-radius: 50%; }
model-viewer {
  width: 100%;
  height: 100%;
  background: center center / auto 94% no-repeat url("./assets/sc-001-preview.webp");
  --poster-color: transparent;
}
model-viewer[data-ready] { background-image: none; }
.angles {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #f9fbf7ed;
  border: 1px solid #cdded0;
  border-radius: 12px;
}
.angles button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  min-height: 37px;
  min-width: 54px;
  font-size: 13px;
  color: #254638;
  cursor: pointer;
}
.angles button:disabled { opacity: .5; cursor: default; }
.angles button:hover:not(:disabled) { background: #e7f0e7; }
.preview-note {
  padding: 10px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.help { margin: 0 0 40px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.help h2 { margin: 0 0 15px; font-size: 17px; letter-spacing: .015em; }
.help ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  gap: 15px;
  margin: 0;
  list-style-position: inside;
}
.help li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}
.help li::marker { color: #2d6847; font-weight: 750; }
.help li span { display: block; margin-top: 5px; color: var(--muted); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-row { min-height: 56px; }
  .layout { grid-template-columns: 1fr; align-items: start; padding-block: 28px; }
  .intro { display: contents; }
  .product-id, h1, .lead, .dimensions, .primary, .status, .recovery, .preview { grid-column: 1; }
  .layout { row-gap: 12px; }
  h1 { margin: 0; font-size: clamp(30px, 8vw, 48px); }
  h1 br { display: none; }
  .lead { max-width: none; font-size: 14px; }
  .dimensions { margin: 3px 0 0; }
  .dimensions dd { font-size: 23px; }
  .preview { grid-row: 5; }
  .stage { height: clamp(270px, 73vw, 410px); border-radius: 16px; }
  .primary { margin-top: 2px; }
  .status { margin-top: -5px; min-height: 0; }
  .help ol { grid-template-columns: 1fr; gap: 8px; }
}
