/* public/assets/css/hardware/mic-test.css */
.mic-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #06b6d4; --p-primary-hover: #0891b2; --p-success: #10b981; --p-danger: #ef4444; --p-text: #0f172a; --p-text-muted: #64748b; width: 100%; max-width: 1200px; 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; }
.mic-wrapper *, .mic-wrapper *::before, .mic-wrapper *::after { box-sizing: border-box; }

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

/* Dashboard */
.mic-dashboard { display: flex; gap: 16px; margin-bottom: 24px; background: #f8fafc; border: 1px solid var(--p-border); padding: 20px; border-radius: 16px; align-items: center; flex-wrap: wrap; }
.mic-stat-box { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--p-border); padding-right: 16px; }
.mic-stat-box:last-child { border-right: none; padding-right: 0; }
.mic-stat-label { font-size: 0.85rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.mic-stat-val { font-size: 1.8rem; font-weight: 800; color: #1e293b; font-family: monospace; transition: color 0.1s; }
.mic-stat-val.highlight { color: var(--p-primary); }
.mic-stat-val.text-success { color: var(--p-success); }
.mic-unit { font-size: 1rem; color: #94a3b8; font-weight: 600; }

.mic-stat-status { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: #475569; margin-top: 4px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #94a3b8; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); transition: 0.3s; }
.status-dot.active { background: #10b981; box-shadow: 0 0 10px #10b981; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* Interactive Visualization Zone */
.mic-board-container { position: relative; width: 100%; height: 400px; background: #020617; border-radius: 16px; box-shadow: inset 0 4px 30px rgba(0,0,0,0.5); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mic-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.mic-overlay-state { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.mic-overlay-icon { font-size: 3.5rem; opacity: 0.8; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.mic-overlay-text { color: #cbd5e1; font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }

/* Toggles */
.mic-visual-toggles { position: absolute; top: 20px; right: 20px; z-index: 3; display: flex; gap: 8px; background: rgba(15, 23, 42, 0.6); padding: 6px; border-radius: 10px; backdrop-filter: blur(4px); }
.visual-btn { padding: 6px 12px; border-radius: 6px; border: none; background: transparent; color: #94a3b8; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: 0.2s; }
.visual-btn:hover { color: #f8fafc; }
.visual-btn.active { background: rgba(255,255,255,0.1); color: var(--p-primary); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* Actions */
.mic-action-area { display: flex; justify-content: center; margin-top: 24px; gap: 16px; }
.mic-btn-primary, .mic-btn-danger { padding: 16px 40px; border-radius: 50px; font-weight: 800; font-size: 1.15rem; cursor: pointer; border: none; transition: 0.2s; color: #ffffff; display: flex; align-items: center; gap: 8px; }
.mic-btn-primary { background: var(--p-primary); box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); }
.mic-btn-primary:hover { background: var(--p-primary-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4); }
.mic-btn-danger { background: var(--p-danger); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
.mic-btn-danger:hover { background: #dc2626; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4); }

.mic-device-info { text-align: center; margin-top: 16px; font-size: 0.9rem; color: #475569; }
.mic-device-info strong { color: var(--p-primary); }

.mic-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; }
.mic-hint-card code { background: rgba(239, 68, 68, 0.1); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* 黑夜模式 */
[data-theme="dark"] .mic-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mic-title, [data-theme="dark"] .mic-stat-val { color: #f8fafc; }
[data-theme="dark"] .mic-subtitle, [data-theme="dark"] .mic-stat-label, [data-theme="dark"] .mic-device-info { color: #94a3b8; }
[data-theme="dark"] .mic-dashboard { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .mic-stat-box { border-color: #334155; }
[data-theme="dark"] .mic-stat-status { color: #cbd5e1; }
[data-theme="dark"] .mic-hint-card { background: rgba(239, 68, 68, 0.1); border-left-color: #ef4444; color: #fca5a5; }