/* 通用三维演示页：复用 188 的页面骨架，只覆盖三维舞台与模型标识。 */
.qdemo3d-stage {
  background:
    radial-gradient(1000px 520px at 18% 0%, rgba(90, 170, 235, .20), transparent 64%),
    radial-gradient(820px 440px at 92% 92%, rgba(242, 179, 84, .12), transparent 62%),
    linear-gradient(160deg, #f8fcff 0%, #edf6fd 54%, #e4eff9 100%);
}
.qdemo3d-canvas-wrap {
  height: clamp(460px, 62vw, 700px);
  min-height: 420px;
}
#qdemo3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline: none;
}
#qdemo3d-canvas.is-dragging { cursor: grabbing; }

.qdemo3d-model-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(31, 111, 174, .20);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--qdemo-ink);
  backdrop-filter: blur(8px);
}
.qdemo3d-model-tag span {
  color: var(--qdemo-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.qdemo3d-model-tag b {
  font-size: 13px;
  font-weight: 750;
}

.qdemo3d .qdemo-live {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
}

.qdemo3d .qdemo-loading,
.qdemo3d .qdemo-fallback {
  background: rgba(244, 250, 255, .84);
}

.qdemo3d .qdemo-fallback a {
  color: var(--qdemo-blue);
  font-weight: 700;
}

@media (max-width: 760px) {
  .qdemo3d-canvas-wrap {
    height: 54vh;
    min-height: 360px;
  }
  .qdemo3d-model-tag {
    max-width: 56vw;
    overflow: hidden;
  }
  .qdemo3d-model-tag b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 本题专属条件条：把题号、过程阶段和预填参数放在三维舞台上方。 */
.qdemo-ghost.is-primary {
  border-color: rgba(31, 111, 174, .38);
  background: rgba(31, 111, 174, .08);
  color: var(--qdemo-blue);
}
.qdemo3d-question {
  margin: 0 auto 16px;
  max-width: 1180px;
  padding: 13px 18px 15px;
  border: 1px solid rgba(31, 111, 174, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 8px 24px rgba(29, 78, 120, .05);
}
.qdemo3d-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.qdemo3d-question-kicker {
  color: var(--qdemo-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.qdemo3d-question-head b {
  color: var(--qdemo-ink);
  font-size: 12px;
  font-weight: 650;
}
.qdemo3d-question-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
}
.qdemo3d-question-label {
  flex: 0 0 auto;
  color: var(--qdemo-muted);
  font-size: 12px;
  line-height: 24px;
}
.qdemo3d-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qdemo3d-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid #dbe9f5;
  border-radius: 999px;
  background: #f8fcff;
  color: #33566f;
  font-size: 12px;
  line-height: 18px;
}
.qdemo3d-chip i {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e7f2fb;
  color: var(--qdemo-blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.qdemo3d-chip.is-value {
  border-color: #f0dfc0;
  background: #fffaf0;
  color: #765a2a;
}
.qdemo3d-chip.is-value b {
  color: #8a5a13;
}
@media (max-width: 640px) {
  .qdemo3d-question { padding: 12px 13px; }
  .qdemo3d-question-row { flex-direction: column; gap: 4px; }
  .qdemo3d-question-label { line-height: 1.4; }
}
