/* public/assets/css/hardware/motion-test.css */
.mo-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #3b82f6; --p-success: #10b981; --p-warning: #f59e0b; --p-text: #0f172a; --p-text-muted: #64748b; width: 100%; max-width: 1000px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.mo-wrapper *, .mo-wrapper *::before, .mo-wrapper *::after { box-sizing: border-box; }

.mo-header { text-align: center; margin-bottom: 24px; border-bottom: 1px solid var(--p-border); padding-bottom: 24px; }
.mo-title { font-size: 1.7rem; font-weight: 800; color: var(--p-text); margin: 0 0 10px 0; }
.mo-subtitle { font-size: 0.95rem; color: var(--p-text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

.mo-workspace { position: relative; min-height: 450px; background: #f8fafc; border-radius: 16px; border: 1px solid var(--p-border); padding: 30px; display: flex; flex-direction: column; overflow: hidden; }

/* Authorization Layer */
.mo-auth-layer { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 40px 0; }
.mo-auth-icon { font-size: 5rem; margin-bottom: 20px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1)); }
.mo-auth-title { font-size: 1.5rem; font-weight: 800; color: var(--p-text); margin-bottom: 10px; }
.mo-auth-hint { font-size: 1rem; color: var(--p-text-muted); line-height: 1.5; margin-bottom: 30px; }
.mo-btn-primary { padding: 16px 40px; border-radius: 50px; font-weight: 800; font-size: 1.15rem; cursor: pointer; border: none; transition: 0.2s; background: var(--p-primary); color: #ffffff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); display: inline-flex; align-items: center; gap: 8px; }
.mo-btn-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); }

/* Dashboard Layout */
.mo-layout { display: flex; gap: 30px; align-items: stretch; animation: fadeIn 0.4s; }
@media (max-width: 768px) { .mo-layout { flex-direction: column; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Data Panel */
.mo-data-panel { flex: 1.2; display: flex; flex-direction: column; }
.mo-panel-title { font-size: 1.1rem; font-weight: 800; color: var(--p-text); margin-bottom: 16px; border-bottom: 2px solid var(--p-border); padding-bottom: 8px; }
.mo-data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 500px) { .mo-data-grid { grid-template-columns: 1fr; } }
.mo-data-box { background: #ffffff; border: 1px solid var(--p-border); padding: 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.mo-label { font-size: 0.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.mo-val { font-size: 1.3rem; font-weight: 800; color: #1e293b; }
.mo-val.code { font-family: monospace; }
.text-primary { color: var(--p-primary); }
.text-success { color: var(--p-success); }

/* Visual Bubble Level Panel */
.mo-visual-panel { flex: 1; display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--p-border); border-radius: 16px; padding: 20px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); }
.mo-level-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Outer Ring */
.mo-level-outer { position: relative; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%); border: 4px solid #cbd5e1; box-shadow: inset 0 10px 20px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* Crosshairs */
.mo-crosshair-h { position: absolute; width: 100%; height: 2px; background: rgba(148, 163, 184, 0.4); top: 50%; left: 0; transform: translateY(-50%); }
.mo-crosshair-v { position: absolute; width: 2px; height: 100%; background: rgba(148, 163, 184, 0.4); left: 50%; top: 0; transform: translateX(-50%); }

/* Target Circle */
.mo-perfect-circle { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ef4444; z-index: 2; transition: border-color 0.3s; }
.mo-perfect-circle.perfect { border-color: #10b981; border-width: 3px; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }

/* The Bubble */
.mo-bubble { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb); box-shadow: inset -2px -2px 6px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.3); z-index: 3; 
    /* 硬件加速，极度顺滑 */
    transform: translate(0px, 0px);
    transition: background 0.3s;
}
.mo-bubble.perfect { background: radial-gradient(circle at 30% 30%, #34d399, #059669); }

.mo-level-status { font-size: 1rem; font-weight: 800; color: #64748b; letter-spacing: 1px; transition: color 0.3s; }
.mo-level-status.perfect { color: #10b981; }

.mo-hint-card { background: #fef2f2; border-left: 4px solid #ef4444; padding: 16px; border-radius: 0 10px 10px 0; font-size: 0.9rem; color: #7f1d1d; line-height: 1.6; margin-top: 24px; }

/* Dark Mode */
[data-theme="dark"] .mo-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mo-title, [data-theme="dark"] .mo-auth-title, [data-theme="dark"] .mo-panel-title, [data-theme="dark"] .mo-val { color: #f8fafc; }
[data-theme="dark"] .mo-subtitle, [data-theme="dark"] .mo-auth-hint, [data-theme="dark"] .mo-label { color: #94a3b8; }
[data-theme="dark"] .mo-workspace { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .mo-data-box, [data-theme="dark"] .mo-visual-panel { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mo-level-outer { background: radial-gradient(circle, #1e293b 0%, #0f172a 100%); border-color: #475569; box-shadow: inset 0 10px 20px rgba(0,0,0,0.5); }
[data-theme="dark"] .mo-crosshair-h, [data-theme="dark"] .mo-crosshair-v { background: rgba(71, 85, 105, 0.6); }
[data-theme="dark"] .mo-hint-card { background: rgba(239, 68, 68, 0.1); border-left-color: #ef4444; color: #fca5a5; }