.product-stage {
  min-height: 440px;
  background:
    radial-gradient(circle at 58% 26%, rgba(126, 156, 162, .32), transparent 30%),
    linear-gradient(145deg, #1d252a 0%, #11181d 54%, #252b2d 100%);
  border: 1px solid #3b474c;
  box-shadow: 0 22px 46px rgba(12, 19, 22, .28);
}

.product-stage:before,
.product-stage:after {
  display: none;
}

#luggageCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  cursor: grab;
}

#luggageCanvas:active {
  cursor: grabbing;
}

.stage-grid {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  z-index: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(147, 172, 174, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 172, 174, .2) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom;
}

.stage-toolbar {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.stage-tool {
  height: 34px;
  min-width: 48px;
  padding: 0 12px;
  border: 1px solid rgba(205, 218, 218, .24);
  border-radius: 4px;
  background: rgba(16, 24, 28, .74);
  color: #e9f1f0;
  font: 12px "Microsoft YaHei", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.stage-tool:hover,
.stage-tool.active {
  border-color: #d4a15d;
  color: #fff;
  background: rgba(51, 66, 71, .88);
}

.part-panel {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  width: min(250px, calc(100% - 32px));
  padding: 13px;
  border: 1px solid rgba(211, 224, 224, .18);
  border-radius: 6px;
  background: rgba(15, 22, 26, .82);
  color: #dce7e6;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
  transition: opacity .2s ease, transform .2s ease;
}

.part-panel span {
  display: block;
  color: #d4a15d;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}

.part-panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 7px;
}

.part-component {
  display: block;
  color: #e4c28f;
  font-size: 11px;
  margin: -2px 0 7px;
}

.part-panel p {
  color: #aebcbd;
  font-size: 11px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.product-stage.is-exploded .part-panel p {
  display: none;
}

.product-stage.is-exploded:not(.has-selected-part) .part-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.part-panel-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #b77b39;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 11px;
  text-decoration: none;
}

.part-panel-link:after {
  content: "→";
  margin-left: 8px;
}

.parts-drawer {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 320px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(211, 224, 224, .18);
  border-radius: 6px;
  background: rgba(15, 22, 26, .93);
  color: #dce7e6;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .3);
  backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.parts-drawer.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.parts-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(211, 224, 224, .16);
}

.parts-drawer-head span {
  color: #d4a15d;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.parts-close {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(211, 224, 224, .24);
  border-radius: 4px;
  background: rgba(16, 24, 28, .74);
  color: #e9f1f0;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.parts-close:hover {
  border-color: #d4a15d;
  color: #fff;
}

.parts-groups {
  overflow-y: auto;
  padding: 4px 10px 16px;
}

.parts-group h4 {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  margin: 13px 4px 6px;
}

.parts-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.parts-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 4px;
  color: #aebcbd;
  font-size: 11px;
  cursor: pointer;
}

.parts-item:hover {
  background: rgba(183, 123, 57, .14);
  color: #e8efef;
}

.parts-item.active {
  background: rgba(183, 123, 57, .24);
  color: #fff;
}

.parts-no {
  color: #d4a15d;
  font: 700 11px Georgia, serif;
}

.parts-name {
  color: inherit;
}

.parts-demand {
  color: #8fa0a2;
  font-size: 9px;
  text-align: right;
}

.parts-item em {
  grid-column: 4;
  color: #8fa0a2;
  font-style: normal;
  font-size: 9px;
}

.parts-item.refined em {
  color: #7fae9a;
}

.product-stage .hero-caption {
  display: none;
}

.product-stage .hero-caption strong {
  font-size: 19px;
  line-height: 1.25;
}

.truth-section {
  padding-bottom: 70px;
}

.truth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.truth-card,
.process-card,
.route-card-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.truth-card {
  padding: 24px;
  border-top: 3px solid #b77b39;
}

.truth-card span,
.route-card-item span {
  color: #b77b39;
  font: 700 11px Georgia, serif;
}

.truth-card h3,
.cost-panel h3,
.route-card-item h3 {
  color: var(--jade-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.35;
  margin: 11px 0 8px;
}

.truth-card p,
.cost-panel p,
.route-card-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  animation: process-page-in .22s ease;
}

@keyframes process-page-in {
  from { opacity: .25; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.process-card {
  min-height: 190px;
  padding: 16px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.process-card:hover {
  transform: translateY(-2px);
  border-color: #b77b39;
  box-shadow: 0 10px 24px rgba(28, 47, 51, .12);
}

.process-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.process-stage-label {
  color: #9a7a4e;
  font-size: 10px;
  letter-spacing: .8px;
}

.process-card-top b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 4px;
  background: #17262c;
  color: #f4f8f7;
  font: 700 12px Georgia, serif;
}

.priority-stars {
  color: #b77b39;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.process-card h3 {
  color: var(--jade-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  margin: 0 0 8px;
}

.process-line {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.58;
  margin: 0 0 4px;
}

.process-line strong {
  color: #7e8b8e;
  font-weight: 600;
}

.process-card > .priority-stars {
  display: block;
  margin-top: 10px;
  color: #b77b39;
  letter-spacing: 1px;
  font-size: 11px;
}

.process-card dl {
  margin: 0;
}

.process-card dt {
  color: #9a7a4e;
  font-size: 10px;
  margin-top: 9px;
}

.process-card dd {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 2px 0 0;
}

.process-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.process-page-label {
  color: #879397;
  font-size: 11px;
  min-width: 30px;
  text-align: center;
}

.process-carousel-nav button {
  width: 32px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--jade-dark);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.process-carousel-nav button:hover:not(:disabled) {
  border-color: #b77b39;
  color: #b77b39;
}

.process-carousel-nav button:disabled {
  color: #b4bdbe;
  cursor: not-allowed;
  opacity: .55;
}

.process-map-note {
  color: #8b989a;
  font-size: 11px;
  margin: 15px 0 0;
}

.cost-layout {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.cost-panel {
  background: #17262c;
  color: #edf4f4;
  border-radius: 6px;
  padding: 28px;
}

.cost-panel h3 {
  color: #fff;
  font-size: 25px;
  margin-top: 0;
}

.cost-panel p {
  color: #b7c5c5;
  margin-bottom: 22px;
}

.cost-panel .section-link {
  color: #fff;
}

.cost-bars {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.validation-inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 24px 0 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.validation-inline-heading .eyebrow {
  margin-bottom: 8px;
}

.validation-inline-heading h3 {
  color: var(--jade-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.35;
  margin: 0;
}

.validation-inline-heading > span {
  color: #8a989a;
  font-size: 11px;
  white-space: nowrap;
  padding-bottom: 3px;
}

.cost-validation-section .validation-grid {
  margin-top: 15px;
}

.cost-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cost-row:last-child {
  border-bottom: 0;
}

.cost-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.cost-track {
  height: 10px;
  border-radius: 999px;
  background: #e4eaeb;
  overflow: hidden;
}

.cost-fill {
  height: 100%;
  width: var(--cost-width);
  border-radius: inherit;
  background: linear-gradient(90deg, #355d66, #bd8542);
}

.cost-share {
  color: #8a6b42;
  font-size: 11px;
  text-align: right;
}

.cost-row small {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-card-item {
  padding: 20px;
  min-height: 190px;
}

.route-card-item h3 {
  font-size: 18px;
}

.route-card-item dl {
  margin: 12px 0 0;
}

.route-card-item dt {
  color: #9a7a4e;
  font-size: 10px;
}

.route-card-item dd {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.prefill-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #17262c;
  color: #ecf3f2;
  border-radius: 6px;
  padding: 15px 18px;
  margin-bottom: 16px;
}

.prefill-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.35;
}

.prefill-note span {
  color: #b8c7c7;
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 850px) {
  .product-stage {
    min-height: 390px;
  }

  .truth-grid,
  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-layout {
    grid-template-columns: 1fr;
  }

  .validation-inline-heading {
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .hero-section {
    padding-top: 38px;
    padding-bottom: 32px;
  }

  .hero-art {
    margin-top: 28px;
  }

  .product-stage {
    min-height: 300px;
  }

  .stage-toolbar {
    top: 12px;
    left: 12px;
    right: 12px;
    justify-content: flex-start;
  }

  .stage-tool {
    min-width: 54px;
    height: 32px;
    padding: 0 10px;
  }

  .part-panel {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 8px 10px;
  }

  .part-panel span {
    display: none;
  }

  .part-panel p {
    display: none;
  }

  .part-panel strong {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .part-component {
    font-size: 10px;
    margin: 0 0 5px;
  }

  .part-panel-link {
    padding: 4px 8px;
  }

  .parts-drawer {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 62%;
    transform: translateY(18px);
  }

  .parts-drawer.open {
    transform: none;
  }

  .product-stage .hero-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .truth-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 12px;
    margin-right: -20px;
    padding-right: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b77b39 #e2e8e9;
    touch-action: pan-x;
  }

  .process-card {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
    min-height: 190px;
  }

  .process-grid::-webkit-scrollbar {
    height: 7px;
  }

  .process-grid::-webkit-scrollbar-track {
    background: #e2e8e9;
    border-radius: 999px;
  }

  .process-grid::-webkit-scrollbar-thumb {
    background: #b77b39;
    border-radius: 999px;
  }

  .process-carousel-nav {
    margin-top: 12px;
    justify-content: flex-start;
  }

  .truth-section {
    padding-bottom: 55px;
  }

  .process-card {
    min-height: 0;
  }

  .cost-row {
    grid-template-columns: 72px minmax(0, 1fr) 50px;
    gap: 9px;
  }

  .validation-inline-heading {
    display: block;
  }

  .validation-inline-heading > span {
    display: block;
    margin-top: 7px;
  }

  .prefill-note {
    display: block;
  }

  .prefill-note span {
    display: block;
    text-align: left;
    margin-top: 6px;
  }
}

/* ---------- 分解动画：影棚暗角 + 零件引线标注 ---------- */

.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background .8s ease;
  background: radial-gradient(125% 85% at 52% 40%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .46) 100%);
}

/* 播放分解时补一层顶部柔光，模拟影棚灯箱 */
.product-stage.is-playing .stage-vignette {
  background:
    radial-gradient(78% 58% at 50% 26%, rgba(158, 198, 208, .18), transparent 64%),
    radial-gradient(125% 85% at 52% 40%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, .54) 100%);
}

.part-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* 引线单独放在 SVG 里，可以自由画出“零件圆点 → 两侧文字”的斜线 */
.part-leaders {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.part-leaders circle {
  fill: #e8cd92;
}

.part-leaders line {
  stroke: rgba(226, 195, 131, .68);
  stroke-width: 1;
}

.part-leaders .leader {
  opacity: 0;
  transition: opacity .45s ease;
}

.part-leaders .leader.show {
  opacity: 1;
}

.part-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  white-space: nowrap;
  will-change: transform, opacity;
  transition: opacity .45s ease;
}

.part-label.show {
  opacity: 1;
}

/* 标注可点击：点一下进入该零件的特写 */
.part-label {
  pointer-events: auto;
  cursor: pointer;
}

.part-label:hover b,
.part-label.active b {
  color: #e2c383;
}

.part-label:hover {
  transform-origin: left center;
}

.stage-tool[hidden] {
  display: none;
}

.focus-exit {
  border-color: rgba(226, 195, 131, .55);
  color: #e2c383;
}

.part-label b {
  font: 500 9.5px/1.2 "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #eef4f3;
  letter-spacing: .01em;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px rgba(6, 13, 16, .78);
  text-shadow: 0 1px 6px rgba(4, 10, 12, .8);
}

.part-label em {
  font: 600 8.5px/1.2 "Microsoft YaHei", sans-serif;
  font-style: normal;
  color: #e2c383;
  letter-spacing: .04em;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px rgba(6, 13, 16, .78);
  text-shadow: 0 1px 6px rgba(4, 10, 12, .8);
}

.part-label.active b {
  color: #fff8e8;
}

.part-label.active em {
  color: #ffe9b5;
}

@media (max-width: 650px) {
  .part-label b {
    font-size: 10px;
  }
}

/* ---------- 悬停零件提示 ---------- */

.part-hint {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  max-width: 60%;
  padding: 5px 9px;
  border: 1px solid rgba(226, 195, 131, .42);
  border-radius: 6px;
  background: rgba(10, 18, 21, .93);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  color: #eef4f3;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -150%);
  transition: opacity .12s ease;
}

.part-hint.show {
  opacity: 1;
}

.part-hint em {
  margin-right: 5px;
  color: #e2c383;
  font-style: normal;
  font-weight: 700;
}

/* ---------- 全屏查看 ---------- */

.product-stage:fullscreen,
.product-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 全屏后画面宽得多，标注和面板相应放大，免得挤在角落看不清 */
.product-stage:fullscreen .part-label b,
.product-stage:-webkit-full-screen .part-label b {
  font-size: 15px;
}

.product-stage:fullscreen .part-label em,
.product-stage:-webkit-full-screen .part-label em {
  font-size: 13px;
}

.product-stage:fullscreen .part-label-line,
.product-stage:-webkit-full-screen .part-label-line {
  width: 30px;
}

.product-stage:fullscreen .stage-tool,
.product-stage:-webkit-full-screen .stage-tool {
  height: 40px;
  min-width: 58px;
  font-size: 14px;
}

.product-stage:fullscreen .part-panel,
.product-stage:-webkit-full-screen .part-panel {
  width: min(330px, calc(100% - 48px));
  padding: 18px;
}

.product-stage:fullscreen .part-panel strong,
.product-stage:-webkit-full-screen .part-panel strong {
  font-size: 19px;
}

.product-stage:fullscreen .parts-drawer,
.product-stage:-webkit-full-screen .parts-drawer {
  width: min(420px, 42%);
}
