.hybrid-wrapper {
    --billy-orange: #F5A623; 
    --billy-blue: #008080; 
    --bg-light: #f9f9f9; 
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-800: #1e293b;
    
    font-family: 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6; 
    color: #333; 
    width: 100%; 
    max-width: 1000px;
    margin: 0 auto; 
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}
.hybrid-wrapper * { box-sizing: border-box; }

.hybrid-wrapper .sim-header h1 { 
    color: var(--billy-blue); 
    border-bottom: 3px solid var(--billy-orange); 
    padding-bottom: 10px; 
    font-size: 2em; 
    text-align: center; 
    margin-bottom: 20px; 
    margin-top: 0; 
}
.hybrid-wrapper .zh-text { color: #666; font-size: 0.9em; display: block; margin-top: 4px; font-weight: normal; }
.hybrid-wrapper .no-select { user-select: none; -webkit-user-select: none; }

.hybrid-wrapper .note-card { 
    background: var(--bg-light); 
    border-radius: 12px; 
    margin: 20px 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 4px solid var(--billy-blue); 
    overflow: hidden;
}

.hybrid-wrapper .card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    gap: 15px;
}

.hybrid-wrapper .status-badge {
    padding: 6px 24px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.hybrid-wrapper .hud-display {
    text-align: center;
    width: 100%;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.hybrid-wrapper .hud-label { font-size: 0.75rem; font-weight: bold; color: var(--slate-500); }
.hybrid-wrapper .hud-val { font-size: 1.5rem; font-family: monospace; font-weight: bold; color: var(--slate-800); line-height: 1.1; }
.hybrid-wrapper .hud-unit { font-size: 0.75rem; color: #94a3b8; font-family: sans-serif; }
.hybrid-wrapper .bar-bg { width: 100%; background: var(--slate-200); height: 6px; margin-top: 4px; border-radius: 999px; overflow: hidden; }
.hybrid-wrapper .bar-fill { height: 100%; transition: width 0.2s linear; }

/* Road & Car */
.hybrid-wrapper .road-container { position: relative; overflow: hidden; background: #87CEEB; transition: transform 0.5s ease; height: 120px; border-bottom: 4px solid #1e293b; margin: 0; }
.hybrid-wrapper .mountain { position: absolute; bottom: 40px; width: 0; height: 0; border-left: 100px solid transparent; border-right: 100px solid transparent; border-bottom: 150px solid #7f8c8d; opacity: 0.5; }
.hybrid-wrapper .road { position: absolute; bottom: 0; width: 200%; height: 40px; background: #34495e; display: flex; align-items: center; }
.hybrid-wrapper .road-lines { width: 100%; height: 4px; background: repeating-linear-gradient(90deg, transparent, transparent 20px, #fff 20px, #fff 40px); }
.hybrid-wrapper .car { position: absolute; bottom: 40px; left: 15%; width: 100px; height: 40px; background: #e74c3c; border-radius: 20px 30px 10px 10px; z-index: 10; transform-origin: bottom left; }
.hybrid-wrapper .car-top { position: absolute; top: -20px; left: 15px; width: 60px; height: 25px; background: #c0392b; border-radius: 20px 20px 0 0; }
.hybrid-wrapper .wheel { position: absolute; bottom: -8px; width: 20px; height: 20px; background: #2c3e50; border-radius: 50%; border: 2px solid #bdc3c7; display: flex; justify-content: center; align-items: center; }
.hybrid-wrapper .wheel::after { content: ''; width: 4px; height: 100%; background: #bdc3c7; position: absolute; }
.hybrid-wrapper .wheel::before { content: ''; width: 100%; height: 4px; background: #bdc3c7; position: absolute; }
.hybrid-wrapper .wheel-front { right: 12px; }
.hybrid-wrapper .wheel-back { left: 12px; }

/* Diagram */
.hybrid-wrapper .diagram-wrapper { position: relative; background: #fff; overflow: hidden; height: 420px; }
.hybrid-wrapper .flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hybrid-wrapper .flow-line { stroke-width: 6; stroke-linecap: round; fill: none; transition: stroke 0.3s; }
.hybrid-wrapper .flow-bg { stroke: #e2e8f0; stroke-width: 8; stroke-linecap: round; fill: none; }
.hybrid-wrapper .flow-animated { stroke-dasharray: 10 15; animation: flowAnim 1s linear infinite; }
@keyframes flowAnim { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }

.hybrid-wrapper .color-engine { stroke: #f97316; }
.hybrid-wrapper .color-battery { stroke: #3b82f6; }
.hybrid-wrapper .color-regen { stroke: #22c55e; }
.hybrid-wrapper .color-motor { stroke: #a855f7; }
.hybrid-wrapper .color-off { stroke: transparent; }

.hybrid-wrapper .node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 20; }
.hybrid-wrapper .node-icon { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: 3px solid #e2e8f0; transition: all 0.3s; }
.hybrid-wrapper .node-label { margin-top: 4px; font-size: 11px; font-weight: bold; background: rgba(255,255,255,0.9); padding: 2px 4px; border-radius: 4px; text-align: center; line-height: 1.2; }

@keyframes spin-anim { 100% { transform: rotate(360deg); } }
@keyframes shake-anim { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2px, 2px); } 50% { transform: translate(2px, -2px); } 75% { transform: translate(-2px, -2px); } }
.hybrid-wrapper .spinning { animation: spin-anim 0.5s linear infinite; }
.hybrid-wrapper .shaking { animation: shake-anim 0.2s linear infinite; }

.hybrid-wrapper .diagram-legend { position: absolute; bottom: 8px; left: 8px; font-size: 9px; color: var(--slate-500); display: flex; flex-direction: column; gap: 4px; z-index: 20; background: rgba(255,255,255,0.8); padding: 8px; border-radius: 4px; border: 1px solid var(--slate-200); }
.hybrid-wrapper .legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

/* Controls Overlay */
.hybrid-wrapper .controls-overlay { position: absolute; top: 0; right: 0; width: 35%; max-width: 160px; height: 100%; background: rgba(248, 250, 252, 0.95); backdrop-filter: blur(4px); border-left: 1px solid var(--slate-200); z-index: 30; display: flex; flex-direction: column; padding: 10px; box-shadow: -4px 0 15px rgba(0,0,0,0.05); }
.hybrid-wrapper .controls-section { margin-bottom: 16px; }
.hybrid-wrapper .pedals-section { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding-bottom: 8px; }
.hybrid-wrapper .controls-title { font-size: 10px; font-weight: bold; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; text-align: center; margin-bottom: 8px; }

.hybrid-wrapper .terrain-group { display: flex; flex-direction: column; gap: 6px; }
.hybrid-wrapper .terrain-btn { padding: 6px 8px; background: white; color: #334155; border: 1px solid var(--slate-300); border-radius: 4px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.hybrid-wrapper .terrain-btn i { width: 16px; text-align: center; }
.hybrid-wrapper .terrain-btn.active { background-color: var(--billy-blue); color: white; border-color: #006666; }

.hybrid-wrapper .pedal { padding: 8px; border-radius: 8px; color: white; border: none; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: transform 0.1s, background 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border-bottom-width: 4px; border-bottom-style: solid; }
.hybrid-wrapper .pedal:active, .hybrid-wrapper .pedal.active { transform: scale(0.95) translateY(2px); border-bottom-width: 2px; margin-top: 2px; }
.hybrid-wrapper .btn-gas { background: #10b981; border-bottom-color: #047857; }
.hybrid-wrapper .btn-gas.active { background: #059669; }
.hybrid-wrapper .btn-regen { background: #eab308; border-bottom-color: #a16207; }
.hybrid-wrapper .btn-regen.active { background: #ca8a04; }
.hybrid-wrapper .btn-brake { background: #ef4444; border-bottom-color: #b91c1c; }
.hybrid-wrapper .btn-brake.active { background: #dc2626; }

/* Utility Colors */
.hybrid-wrapper .text-green-600 { color: #16a34a; }
.hybrid-wrapper .text-orange-500 { color: #f97316; }
.hybrid-wrapper .bg-green-500 { background-color: #22c55e; }
.hybrid-wrapper .bg-orange-500 { background-color: #f97316; }
.hybrid-wrapper .bg-blue-500 { background-color: #3b82f6; }
.hybrid-wrapper .bg-purple-500 { background-color: #a855f7; }

/* Status Badge Colors */
.hybrid-wrapper .bg-slate-100 { background-color: #f1f5f9; }
.hybrid-wrapper .text-slate-500 { color: #64748b; }
.hybrid-wrapper .border-slate-300 { border-color: #cbd5e1; }
.hybrid-wrapper .bg-red-100 { background-color: #fee2e2; }
.hybrid-wrapper .text-red-600 { color: #dc2626; }
.hybrid-wrapper .border-red-300 { border-color: #fca5a5; }
.hybrid-wrapper .bg-green-100 { background-color: #dcfce3; }
.hybrid-wrapper .text-green-600 { color: #16a34a; }
.hybrid-wrapper .border-green-300 { border-color: #86efac; }
.hybrid-wrapper .bg-blue-100 { background-color: #dbeafe; }
.hybrid-wrapper .text-blue-600 { color: #2563eb; }
.hybrid-wrapper .border-blue-300 { border-color: #93c5fd; }
.hybrid-wrapper .bg-orange-100 { background-color: #ffedd5; }
.hybrid-wrapper .text-orange-600 { color: #ea580c; }
.hybrid-wrapper .border-orange-300 { border-color: #fdba74; }