        :root {
            --primary: #2563eb;
            --bg-body: #f1f5f9;
            --bg-card: #ffffff;
            --text-main: #0f172a;
            --text-sub: #64748b;
            --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 15px -3px rgba(0,0,0,0.05);
            --radius: 16px;
        }

        * { -webkit-tap-highlight-color: transparent; user-select: none; }

        /* --- 顶部导航 --- */
        .navbar2 {
            position: sticky; top: 0; z-index: 100;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(0,0,0,0.05);
            padding: 12px 16px;
        }
        .nav-content { display: flex; justify-content: space-between; align-items: center; height: 44px; }
        .nav-title { font-size: 18px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; }
        .live-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 8px #22c55e; animation: pulse 2s infinite; }
        @keyframes pulse { 0% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0.5; transform: scale(0.9); } }
        
        .progress-bar-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: transparent; }
        .progress-bar { height: 100%; background: var(--primary); width: 100%; transition: width 1s linear; }

        .btn-refresh { 
            width: 36px; height: 36px; border-radius: 50%; background: #eff6ff; color: var(--primary); 
            display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: all 0.2s;
        }
        .btn-refresh:active { transform: scale(0.9); background: #dbeafe; }
        .spin { animation: rotate 0.8s infinite linear; }
        @keyframes rotate { to { transform: rotate(360deg); } }

        /* 搜索框 */
        .search-wrap { margin-top: 10px; }
        .search-input {
            width: 100%; height: 36px; border-radius: 10px; border: none; background: #e2e8f0; 
            padding: 0 12px; font-size: 14px; outline: none; transition: background 0.2s;
        }
        .search-input:focus { background: #cbd5e1; }

        /* 厂区丝滑切换 Tab (无跳转刷新) */
        .tabs { display: flex; gap: 8px; margin-top: 12px; }
        .tab { 
            flex: 1; text-align: center; padding: 8px 0; background: #e2e8f0; 
            border-radius: 8px; color: #64748b; font-weight: 600; 
            cursor: pointer; font-size: 13px; transition: all 0.2s;
            border: 1px solid transparent;
        }
        .tab.active { 
            background: #fff; color: var(--primary); 
            box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
            border-color: #cbd5e1;
        }

        /* --- 容器 --- */
        .card-list { padding: 16px; max-width: 600px; margin: 0 auto; }

        /* --- 卡片设计 --- */
        .app-card {
            background: var(--bg-card); border-radius: var(--radius); 
            box-shadow: var(--shadow-card); margin-bottom: 16px; 
            overflow: hidden; transition: transform 0.2s; border: 1px solid rgba(255,255,255,0.5);
        }
        .fade-in { animation: fadeIn 0.4s ease-out; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        .vcard-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; }
        .header-user { display: flex; align-items: center; gap: 12px; }
        .avatar { 
            width: 42px; height: 42px; border-radius: 50%; background: #eff6ff; color: var(--primary); 
            font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px;
            border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .user-meta .name { font-weight: 600; font-size: 16px; color: #334155; }
        .user-meta .id-no { font-size: 12px; color: #94a3b8; margin-top: 2px; }

        .status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
        .badge-green { background: #dcfce7; color: #166534; }
        .badge-yellow { background: #fef9c3; color: #854d0e; }
        .badge-blue { background: #dbeafe; color: #1e40af; }
        .badge-gray { background: #f1f5f9; color: #64748b; }
        .badge-red { background: #fee2e2; color: #991b1b; }

        /* --- 新增：接待人分块设计 --- */
        .vcard-body { padding: 12px 16px; }
        .approver-block {
            background: #f8fafc;
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #e2e8f0;
        }
        .approver-block:last-child { margin-bottom: 0; }
        .approver-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed #cbd5e1;
        }
        .approver-name { font-size: 13px; font-weight: 600; color: #334155; }

        .row-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
        .row-left { display: flex; align-items: center; gap: 8px; }
        
        .dot { width: 8px; height: 8px; border-radius: 50%; }
        .dot-green { background: #22c55e; box-shadow: 0 0 0 2px #dcfce7; }
        .dot-blue { background: #3b82f6; box-shadow: 0 0 0 2px #dbeafe; }
        .dot-yellow { background: #eab308; box-shadow: 0 0 0 2px #fef9c3; }
        .dot-red { background: #ef4444; box-shadow: 0 0 0 2px #fee2e2; } 
        .dot-gray { background: #cbd5e1; }
        .dot-gray-light { background: #e2e8f0; }
        
        .time-range { font-size: 14px; font-weight: 500; color: #334155; font-family: monospace; letter-spacing: -0.5px; }
        
        .mini-tag { font-size: 10px; padding: 1px 5px; border-radius: 4px; transform: scale(0.9); }
        .tag-green { background: #22c55e; color: white; }
        .tag-blue { background: #3b82f6; color: white; }
        .tag-yellow { background: #eab308; color: white; }
        .tag-red { background: #ef4444; color: white; }
        .tag-gray { background: #f1f5f9; color: #64748b; }
        
        .empty-tip { text-align: center; color: #94a3b8; font-size: 12px; padding: 8px 0; }

        .history-box { margin-top: 8px; border-top: 1px dashed #e2e8f0; padding-top: 6px; }
        .history-trigger { font-size: 11px; color: #94a3b8; display: flex; justify-content: space-between; cursor: pointer; padding: 4px 0; }
        .history-content { display: none; margin-top: 4px; }
        .history-content.show { display: block; }
        .history-row { opacity: 0.6; padding: 2px 0; }
        .arrow { transition: transform 0.2s; }
        .history-trigger.active .arrow { transform: rotate(180deg); }

        .vcard-footer { 
            background: #f8fafc; border-top: 1px solid #f1f5f9; padding: 8px 16px; 
            display: flex; justify-content: space-between; align-items: center;
        }
        .footer-meta { font-size: 11px; color: #94a3b8; font-family: monospace; display: flex; align-items: center; }
        .sep { margin: 0 6px; color: #e2e8f0; }
        
        /* 恢复原版按钮样式 */
        .footer-btn { 
            font-size: 11px; font-weight: 600; color: var(--primary); 
            background: rgba(37, 99, 235, 0.08); padding: 4px 10px; border-radius: 6px; 
            cursor: pointer; display: flex; align-items: center; gap: 4px;
        }
        .footer-btn:active { background: rgba(37, 99, 235, 0.15); }

        /* 骨架屏 */
        .skeleton { animation: pulse-bg 1.5s infinite; background: #e2e8f0; border-radius: 4px; }
        .skeleton-text { height: 16px; width: 60%; margin-bottom: 6px; }
        .skeleton-circle { height: 40px; width: 40px; border-radius: 50%; }
        @keyframes pulse-bg { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

        /* Toast */
        .toast-wrap { 
            position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); 
            z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; 
        }
        .vtoast {
            background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(4px); color: white;
            padding: 10px 24px; border-radius: 30px; font-size: 13px; font-weight: 500;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
            align-self: center; width: fit-content;
            opacity: 0; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .vtoast.show { opacity: 1; transform: translateY(0); }

        /* Modal */
        .modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 200; display: none; opacity: 0; transition: opacity 0.2s;}
        .modal-mask.show { opacity: 1; }
        .modal-panel { 
            position: fixed; bottom: 0; left: 0; width: 100%; height: 70vh; background: #fff; 
            border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 201; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
        }
        .modal-panel.show { transform: translateY(0); }
        .modal-header2 { padding: 16px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
        .modal-body2 { flex: 1; overflow: auto; padding: 16px; background: #1e293b; color: #86efac; font-family: monospace; font-size: 11px; white-space: pre-wrap; word-break: break-all; }
        .btn-close2 { padding: 6px 12px; background: #f1f5f9; border-radius: 6px; font-size: 12px; border:none; color: #334155; }
        .btn-copy { padding: 6px 12px; background: #eff6ff; border-radius: 6px; font-size: 12px; border:none; color: var(--primary); margin-right: 8px;}


/* 顶部导航栏 */

