/* 3D 车内实景模拟页面样式（/dengguang/sim.html） */
.dg-sim-shell { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.dg-sim-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid #e5e7eb; }

/* 未购下载 APP 拦截卡 */
.dg-sim-gate { padding: 28px 24px; }
.dg-gate-card { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: center; max-width: 820px; margin: 0 auto; }
.dg-gate-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fafbfc; font-size: 13px; font-weight: 600; color: #374151; }
.dg-gate-copy h2 { margin: 10px 0 6px; font-size: 21px; color: #111827; }
.dg-gate-field { margin: 0 0 12px; font-size: 14px; color: #4b5563; }
.dg-gate-field strong { color: #ec2139; font-size: 18px; }
.dg-gate-list { margin: 0 0 18px; padding-left: 18px; font-size: 14px; line-height: 1.85; color: #374151; }
.dg-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-gate-msg { margin: 12px 0 0; font-size: 13px; color: #dc2626; min-height: 18px; }

/* 3D 驾驶位舞台（16:9 居中自适应） */
.dg-sim-stage { padding: 16px; background: #0b1220; }
.sim-cockpit { position: relative; width: 100%; max-width: 920px; aspect-ratio: 16 / 9; min-height: 460px; margin: 0 auto; border-radius: 12px; overflow: hidden; background-color: #091322; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; color: #fff; }
.sim-top-tabs { display: inline-flex; align-self: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(9, 19, 34, .75); border: 1px solid rgba(255,255,255,.15); z-index: 5; }
.sim-top-tabs button { border: 0; border-radius: 999px; padding: 6px 16px; background: transparent; color: #cbd5e1; font-size: 13px; font-weight: 600; cursor: pointer; }
.sim-top-tabs button.is-active { background: #2563eb; color: #fff; }

.sim-beam-pad { position: absolute; left: 16px; top: 72px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.sim-beam-btn { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: rgba(15, 23, 42, .78); color: #e2e8f0; font-size: 12px; font-weight: 600; cursor: pointer; user-select: none; }
.sim-beam-btn.is-on { background: #2563eb; border-color: #60a5fa; color: #fff; }

.sim-hud { align-self: center; max-width: 480px; width: 100%; background: rgba(9, 19, 34, .82); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 18px; text-align: center; backdrop-filter: blur(6px); z-index: 5; }
.sim-hud.is-ok { border-color: #34d399; }
.sim-hud-meta { font-size: 12px; color: #93c5fd; margin-bottom: 4px; }
.sim-hud strong { display: block; font-size: 16px; line-height: 1.45; }
.sim-hud p { margin: 6px 0 0; font-size: 13px; color: #cbd5e1; }
.sim-countdown { color: #fde047 !important; font-weight: 700; }
.sim-judge.is-ok { color: #4ade80 !important; font-weight: 700; }
.sim-judge.is-err { color: #f87171 !important; font-weight: 700; }
.sim-hud-btns { margin-top: 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

.sim-dash-footer { display: grid; grid-template-columns: 1fr 1.6fr 0.8fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(9, 19, 34, .84); border: 1px solid rgba(255,255,255,.15); z-index: 5; }
.sim-knob-zone { display: flex; align-items: center; gap: 10px; }
.sim-knob-btns { display: flex; flex-direction: column; gap: 5px; }
.sim-knob-btns button { padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.22); background: rgba(30,41,59,.8); color: #cbd5e1; font-size: 12px; cursor: pointer; }
.sim-knob-btns button.is-on { background: #0284c7; border-color: #38bdf8; color: #fff; font-weight: 700; }
.sim-knob-dial { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); background-size: cover; background-position: center; background-color: #1e293b; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.sim-knob-dial.is-fog { border-color: #facc15; box-shadow: 0 0 12px rgba(250,204,21,.6); }

.sim-meter-zone { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.sim-stalk-ctrl { display: flex; gap: 6px; }
.sim-stalk-ctrl button { padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.22); background: rgba(30,41,59,.85); color: #e2e8f0; font-size: 12px; cursor: pointer; }
.sim-stalk-ctrl button.is-on { background: #10b981; border-color: #34d399; color: #052e16; font-weight: 700; }
.sim-indicators { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sim-ind { padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,.08); color: #64748b; font-size: 11px; font-weight: 600; }
.sim-ind.is-on { background: #16a34a; color: #fff; }
.sim-ind.is-blue.is-on { background: #2563eb; color: #fff; }

.sim-hazard-zone { display: flex; justify-content: flex-end; }
.sim-hazard-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(30,41,59,.85); color: #f1f5f9; font-size: 12px; cursor: pointer; }
.sim-hazard-btn img { width: 32px; height: 28px; object-fit: contain; }
.sim-hazard-btn.is-on { border-color: #ef4444; background: rgba(185, 28, 28, .45); }

@media (max-width: 768px) {
    .dg-gate-card { grid-template-columns: 1fr; text-align: center; }
    .dg-gate-list { text-align: left; }
    .sim-cockpit { aspect-ratio: auto; min-height: 520px; }
    .sim-beam-pad { position: static; flex-direction: row; justify-content: center; margin-top: 8px; }
    .sim-dash-footer { grid-template-columns: 1fr; }
    .sim-hazard-zone { justify-content: center; }
}
