/* 重置样式 */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', 'HarmonyOS Sans', system-ui, sans-serif;
            background: linear-gradient(135deg, #071426 0%, #0a1a2f 100%);
            color: #e0e6ed;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .app-container {
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* ========== 头部 ========== */
        .header {
            background: rgba(10, 26, 47, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 18px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #1e3a5f;
            margin-bottom: 20px;
        }
        
        .logo-area {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-icon { font-size: 28px; }
        
        .logo-text h1 {
            font-size: 18px;
            font-weight: 600;
            color: #e0e6ed;
        }
        
        .logo-text p {
            font-size: 10px;
            color: #8ba0b5;
            margin-top: 2px;
        }
        
        .system-status {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(30, 58, 95, 0.5);
            padding: 6px 14px;
            border-radius: 40px;
        }
        
        .status-dot {
            width: 8px;
            height: 8px;
            background: #2ecc71;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .status-text { font-size: 12px; }
        
        /* ========== 摄像头区域 ========== */
        .camera-section {
            background: rgba(10, 26, 47, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid #1e3a5f;
            overflow: hidden;
            margin-bottom: 16px;
        }
        
        .camera-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 18px;
            background: rgba(0, 0, 0, 0.3);
            border-bottom: 1px solid #1e3a5f;
        }
        
        .camera-header h3 {
            font-size: 14px;
            font-weight: 500;
        }
        
        .camera-status-badge {
            font-size: 11px;
            color: #5bc0be;
            background: rgba(91, 192, 190, 0.15);
            padding: 4px 10px;
            border-radius: 20px;
        }
        
        .camera-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 4 / 3;
            background: #000;
            overflow: hidden;
        }
        
        #video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .camera-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }
        
        .scan-frame {
            position: relative;
            width: 200px;
            height: 80px;
        }
        
        .frame-corner {
            position: absolute;
            width: 25px;
            height: 25px;
            border-color: #5bc0be;
            border-style: solid;
        }
        .frame-corner.top-left { top: 0; left: 0; border-width: 3px 0 0 3px; }
        .frame-corner.top-right { top: 0; right: 0; border-width: 3px 3px 0 0; }
        .frame-corner.bottom-left { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
        .frame-corner.bottom-right { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
        
        .scan-tip {
            margin-top: 100px;
            font-size: 12px;
            background: rgba(0, 0, 0, 0.6);
            padding: 5px 14px;
            border-radius: 20px;
            color: #8ba0b5;
        }
        
        .recognition-tip {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            padding: 6px 14px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            z-index: 10;
        }
        
        .tip-dot {
            width: 8px;
            height: 8px;
            background: #5bc0be;
            border-radius: 50%;
            animation: blink 1s infinite;
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        
        /* ========== 识别结果卡片 ========== */
        .result-card {
            background: rgba(10, 26, 47, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid #1e3a5f;
            overflow: hidden;
            margin-bottom: 16px;
            transition: all 0.3s ease;
        }
        
        .result-card.hidden {
            display: none;
        }
        
        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 18px;
            background: rgba(91, 192, 190, 0.1);
            border-bottom: 1px solid rgba(91, 192, 190, 0.3);
        }
        
        .result-header h4 {
            font-size: 14px;
            font-weight: 500;
            color: #5bc0be;
        }
        
        .result-header .badge {
            font-size: 11px;
            padding: 3px 12px;
            border-radius: 20px;
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
        }
        
        .result-header .badge.exit {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
        }
        
        .result-body {
            padding: 16px 18px 20px;
        }
        
        .result-plate {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            margin-bottom: 14px;
        }
        
        .result-plate .plate-icon {
            font-size: 28px;
        }
        
        .result-plate .plate-number {
            font-size: 24px;
            font-weight: 700;
            font-family: monospace;
            letter-spacing: 3px;
            color: #5bc0be;
        }
        
        .result-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        
        .info-item {
            background: rgba(16, 36, 56, 0.6);
            border-radius: 10px;
            padding: 10px 12px;
            text-align: center;
        }
        
        .info-item .label {
            font-size: 10px;
            color: #8ba0b5;
            display: block;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .info-item .value {
            font-size: 14px;
            font-weight: 600;
            color: #e0e6ed;
        }
        
        .info-item .value.highlight {
            color: #f1c40f;
        }
        
        .info-item .value.green {
            color: #2ecc71;
        }
        
        .info-item .value.red {
            color: #e74c3c;
        }
        
        .info-item.full-width {
            grid-column: 1 / -1;
        }
        
        /* ========== Toast ========== */
        .toast-message {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.85);
            color: white;
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 13px;
            z-index: 1000;
            white-space: nowrap;
            animation: fadeOut 3s forwards;
        }
        
        @keyframes fadeOut {
            0% { opacity: 1; }
            70% { opacity: 1; }
            100% { opacity: 0; visibility: hidden; }
        }
        
        /* ========== 响应式 ========== */
        @media (max-width: 500px) {
            body { padding: 12px; }
            .header { padding: 12px 16px; }
            .logo-text h1 { font-size: 15px; }
            .result-plate .plate-number { font-size: 20px; }
            .result-info { grid-template-columns: 1fr; }
        }