/* public/assets/css/hardware/fingerprint-scanner.css */
.scan-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --p-danger: #ef4444; --p-warning: #f59e0b; --p-success: #10b981; --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; }
.scan-wrapper *, .scan-wrapper *::before, .scan-wrapper *::after { box-sizing: border-box; }

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

.scan-workspace { display: flex; flex-direction: column; gap: 24px; }

.scan-actions { display: flex; justify-content: center; }
.scan-btn-primary { padding: 16px 40px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; cursor: pointer; border: none; transition: 0.2s; background: var(--p-primary); color: #ffffff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); display: flex; align-items: center; gap: 10px; }
.scan-btn-primary:hover { background: #7c3aed; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); }

.scan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; animation: fadeIn 0.4s; }
@media (max-width: 850px) { .scan-grid { grid-template-columns: 1fr; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.scan-card { background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: 0.2s; }
.scan-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* 卡片顶部威胁等级颜色条 */
.threat-high { border-top: 4px solid var(--p-danger); }
.threat-medium { border-top: 4px solid var(--p-warning); }
.threat-low { border-top: 4px solid var(--p-success); }

.scan-card-header { padding: 16px 20px; border-bottom: 1px solid var(--p-border); background: #ffffff; display: flex; align-items: center; gap: 10px; }
.scan-icon { font-size: 1.2rem; }
.scan-card-title { font-size: 1.05rem; font-weight: 800; color: var(--p-text); margin: 0; flex: 1; }
.scan-badge { font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.scan-badge-danger { background: #fee2e2; color: #dc2626; }
.scan-badge-warning { background: #fef3c7; color: #d97706; }
.scan-badge-success { background: #d1fae5; color: #059669; }
.scan-badge-neutral { background: #e2e8f0; color: #475569; }

.scan-card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.scan-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-size: 0.95rem; border-bottom: 1px dashed #e2e8f0; padding-bottom: 8px; }
.scan-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.scan-label { font-weight: 700; color: #64748b; flex-shrink: 0; }
.scan-value { font-weight: 700; color: #1e293b; text-align: right; word-break: break-all; }
.scan-value.code { font-family: 'Consolas', monospace; }
.scan-value.highlight { color: var(--p-primary); }

.scan-desc { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; margin: 16px 0 0 0; background: #ffffff; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }

.scan-canvas-preview { width: 100%; height: 60px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.scan-canvas-preview canvas { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 黑夜模式 */
[data-theme="dark"] .scan-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .scan-title, [data-theme="dark"] .scan-card-title, [data-theme="dark"] .scan-value { color: #f8fafc; }
[data-theme="dark"] .scan-subtitle, [data-theme="dark"] .scan-label { color: #94a3b8; }
[data-theme="dark"] .scan-card { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .scan-card-header { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .scan-row { border-bottom-color: #334155; }
[data-theme="dark"] .scan-desc { background: #1e293b; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .scan-canvas-preview { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .scan-badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
[data-theme="dark"] .scan-badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
[data-theme="dark"] .scan-badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }