/* 1. Shadcn UI 官方 Dark Mode 核心设计 Token (Zinc 调和) */
        :root {
            color-scheme: dark;
            --background: #09090b;
            --foreground: #fafafa;
            --card: #09090b;
            --card-foreground: #fafafa;
            --popover: #09090b;
            --popover-foreground: #fafafa;
            --primary: #fafafa;
            --primary-foreground: #18181b;
            --primary-brand: #3b82f6;
            --primary-brand-foreground: #ffffff;
            --secondary: #27272a;
            --secondary-foreground: #fafafa;
            --muted: #27272a;
            --muted-foreground: #a1a1aa;
            --accent: #27272a;
            --accent-foreground: #fafafa;
            --destructive: #ef4444;
            --destructive-foreground: #fafafa;
            --border: #27272a;
            --border-hover: #3f3f46;
            --input: #27272a;
            --ring: #d4d4d8;
            --radius: 0.5rem; /* 8px 官方标准 */
            
            /* Typography 变量 */
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        }

        /* 2. 全局重置与排版规范 (严格遵循 Shadcn Typography 规范) */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: var(--font-sans);
            -webkit-tap-highlight-color: transparent;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
        }

        /* 现代化暗黑高质感滚动条 */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.16);
            border-radius: 999px;
            transition: background 0.2s ease;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.35);
        }
        ::-webkit-scrollbar-corner {
            background: transparent;
        }
        body {
            background-color: var(--background);
            color: var(--foreground);
            width: 100vw;
            height: 100vh;
            margin: 0;
            padding: 0;
            overflow: hidden;
            letter-spacing: -0.01em;
            line-height: 1.5;
        }
        .container {
            width: 100%;
            max-width: 1360px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* 3. 顶部导航 Header (Shadcn Navbar 风格) */
        .shadcn-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 0 16px;
            border-bottom: 1px solid var(--border);
        }
        .brand-box {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .brand-icon {
            width: 36px;
            height: 36px;
            border-radius: var(--radius);
            background: #18181b;
            border: 1px solid var(--border);
            color: #fafafa;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        }
        .brand-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--foreground);
            letter-spacing: -0.025em;
            line-height: 1.25;
        }
        .brand-subtitle {
            font-size: 12px;
            color: var(--muted-foreground);
            letter-spacing: normal;
            line-height: 1.4;
            margin-top: 2px;
        }
        .nav-meta {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* 4. Shadcn Badge 标准体系 */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 9999px;
            padding: 2px 10px;
            font-size: 12px;
            font-weight: 500;
            line-height: 1;
            letter-spacing: 0.02em;
            transition: all 0.15s ease;
            white-space: nowrap;
            height: 22px;
        }
        .badge-default { background: var(--primary); color: var(--primary-foreground); }
        .badge-secondary { background: var(--secondary); color: var(--secondary-foreground); border: 1px solid var(--border); }
        .badge-outline { border: 1px solid var(--border); color: var(--muted-foreground); background: transparent; }
        .badge-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; }
        .badge-destructive { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.24); color: #f87171; }
        
        .pulse-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #10b981;
            box-shadow: 0 0 6px #10b981;
            animation: pulseDot 2s infinite;
        }
        @keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

        /* 5. Shadcn Alert 组件 (来电横幅) */
        .alert-call {
            display: none;
            border-radius: var(--radius);
            border: 1px solid rgba(239, 68, 68, 0.4);
            background: rgba(239, 68, 68, 0.08);
            color: #fca5a5;
            padding: 16px 20px;
            align-items: center;
            justify-content: space-between;
            animation: fadeInDown 0.2s ease;
        }
        .alert-call.active { display: flex; }
        @keyframes fadeInDown {
            0% { opacity: 0; transform: translateY(-6px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        /* 6. 左右栅格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
            width: 100%;
        }
        @media (min-width: 900px) {
            .grid-layout {
                grid-template-columns: 1fr 1fr;
                gap: 24px;
                align-items: start;
            }
        }
        .grid-col {
            display: flex;
            flex-direction: column;
            gap: 24px;
            min-width: 0;
        }

        /* 7. Shadcn Card 组件规范 */
        .card {
            background-color: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .card-header {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding: 24px 24px 16px;
            border-bottom: 1px solid var(--border);
        }
        .card-title-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .card-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--foreground);
            letter-spacing: -0.02em;
            line-height: 1.25;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .card-description {
            font-size: 13px;
            color: var(--muted-foreground);
            letter-spacing: normal;
            line-height: 1.5;
        }
        .card-content {
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }
        .card-footer {
            display: flex;
            align-items: center;
            padding: 16px 24px;
            border-top: 1px solid var(--border);
            background: rgba(0, 0, 0, 0.15);
            gap: 12px;
        }

        /* 8. Shadcn Button 标准体系 (严格的高度与边距系统) */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            white-space: nowrap;
            border-radius: calc(var(--radius) - 2px);
            font-size: 14px;
            font-weight: 500;
            height: 36px;
            padding: 0 16px;
            letter-spacing: -0.01em;
            line-height: 1;
            cursor: pointer;
            transition: all 0.15s ease;
            border: 1px solid transparent;
            outline: none;
            user-select: none;
        }
        .btn:active { transform: scale(0.98); }
        .btn:focus-visible {
            outline: 2px solid var(--ring);
            outline-offset: 2px;
        }

        /* Button Variants */
        .btn-default {
            background: var(--primary);
            color: var(--primary-foreground);
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        }
        .btn-default:hover { background: #e4e4e7; }
        
        .btn-secondary {
            background: var(--secondary);
            color: var(--secondary-foreground);
            border: 1px solid var(--border);
        }
        .btn-secondary:hover { background: #3f3f46; border-color: var(--border-hover); }

        .btn-outline {
            border: 1px solid var(--border);
            background: transparent;
            color: var(--foreground);
        }
        .btn-outline:hover { background: var(--secondary); border-color: var(--border-hover); }

        .btn-destructive {
            background: #ef4444;
            color: #ffffff;
        }
        .btn-destructive:hover { background: #dc2626; }

        .btn-brand {
            background: #2563eb;
            color: #ffffff;
        }
        .btn-brand:hover { background: #1d4ed8; }

        /* Button Sizes */
        .btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: calc(var(--radius) - 2px); }
        .btn-lg { height: 40px; padding: 0 20px; font-size: 14px; border-radius: var(--radius); }
        .btn-hero {
            height: 48px;
            padding: 0 24px;
            font-size: 15px;
            font-weight: 600;
            border-radius: var(--radius);
            letter-spacing: -0.01em;
            width: 100%;
        }

        /* 9. Shadcn Tabs 规范组件 (TabsList & TabsTrigger) */
        .tabs-list {
            display: inline-flex;
            height: 36px;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius);
            background: var(--muted);
            padding: 3px;
            border: 1px solid var(--border);
            gap: 2px;
            width: 100%;
        }
        .tabs-trigger {
            display: inline-flex;
            flex: 1;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            border-radius: calc(var(--radius) - 2px);
            padding: 6px 12px;
            font-size: 13px;
            font-weight: 500;
            line-height: 1;
            letter-spacing: -0.01em;
            border: none;
            background: transparent;
            color: var(--muted-foreground);
            cursor: pointer;
            transition: all 0.15s ease;
            height: 28px;
        }
        .tabs-trigger.active {
            background: var(--background);
            color: var(--foreground);
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
            font-weight: 600;
        }
        .tabs-trigger:hover:not(.active) {
            color: var(--foreground);
        }

        /* ========================================================
           10. 极简智能门禁开锁磁贴矩阵 (Direct Action Door Tiles)
           ======================================================== */

        .card.card-door .card-header {
            padding: 18px 20px 14px;
            border-bottom: 1px solid var(--border);
        }

        .card.card-door .card-content {
            padding: 18px 20px 20px !important;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .door-tiles-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            width: 100%;
            margin: 0;
        }

        @media (max-width: 520px) {
            .door-tiles-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 现代上下双层磁贴：上图标与开门动作胶囊，下标题与副标题，100%全宽舒发展现绝不截断 */
        /* 紧凑单行横排磁贴：左侧图标，右侧文字，彻底移除多余右侧标签，精致高雅 */
        .door-tile-card {
            position: relative;
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 10px 14px;
            min-height: 56px;
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            user-select: none;
            box-sizing: border-box;
            gap: 12px;
        }

        .door-tile-card:hover {
            background: rgba(255, 255, 255, 0.055);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
        }

        .door-tile-card:active {
            transform: scale(0.98);
        }

        .door-tile-card.active-target {
            border-color: rgba(59, 130, 246, 0.55);
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.03) 100%);
            box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
        }

        .door-tile-icon-wrap {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--muted-foreground);
            transition: all 0.2s ease;
        }

        .door-tile-card:hover .door-tile-icon-wrap {
            background: rgba(59, 130, 246, 0.16);
            color: #60a5fa;
            border-color: rgba(59, 130, 246, 0.3);
        }

        .door-tile-card.active-target .door-tile-icon-wrap {
            color: #38bdf8;
            background: rgba(59, 130, 246, 0.18);
            border-color: rgba(56, 189, 248, 0.4);
        }

        /* 右侧文字内容区（大门名称与副标题） */
        .door-tile-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2px;
            min-width: 0;
            flex: 1;
        }

        .door-tile-name {
            font-size: 13.5px;
            font-weight: 600;
            color: var(--foreground);
            line-height: 1.25;
            letter-spacing: -0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .door-tile-card.active-target .door-tile-name {
            color: #ffffff;
        }

        .door-tile-sub {
            font-size: 11px;
            color: var(--muted-foreground);
            line-height: 1.3;
            display: flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .door-tile-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* 右上角楼栋选择器（解决深色模式白底白字，并去掉 emoji） */
        .building-badge-select {
            color-scheme: dark !important;
            appearance: none;
            -webkit-appearance: none;
            padding: 5px 28px 5px 12px;
            font-size: 12px;
            font-weight: 500;
            border-radius: 6px;
            background-color: #18181b !important;
            color: #f4f4f5 !important;
            border: 1px solid rgba(255, 255, 255, 0.16);
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            outline: none;
            transition: all 0.2s ease;
        }

        .building-badge-select:hover {
            border-color: rgba(255, 255, 255, 0.3);
            background-color: #27272a !important;
        }

        .building-badge-select option {
            background-color: #18181b !important;
            color: #f4f4f5 !important;
            padding: 8px 12px;
        }

        /* ========================================================
           10.1 旗舰级突出圆形长按开锁中心 (Hold to Unlock)
           ======================================================== */
        .hold-unlock-container {
            width: 100%;
            margin: 12px 0 6px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            user-select: none;
            -webkit-user-select: none;
        }

        .hold-unlock-stage {
            position: relative;
            width: 96px;
            height: 96px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 呼吸动态背景光环 */
        .hold-glow-ring {
            position: absolute;
            width: 92px;
            height: 92px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(59, 130, 246, 0.05) 55%, transparent 72%);
            animation: holdGlowBreath 3.2s infinite ease-in-out;
            pointer-events: none;
            transition: all 0.3s ease;
        }

        @keyframes holdGlowBreath {
            0%, 100% { transform: scale(0.96); opacity: 0.55; }
            50% { transform: scale(1.12); opacity: 0.95; }
        }

        /* SVG 顺时针环形充能进度条 */
        .hold-progress-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 96px;
            height: 96px;
            transform: rotate(-90deg); /* 从顶部 12 点钟位置开始顺时针绘制 */
            pointer-events: none;
            z-index: 2;
        }

        .hold-circle-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.08);
            stroke-width: 4px;
        }

        .hold-circle-bar {
            fill: none;
            stroke: #38bdf8;
            stroke-width: 4.5px;
            stroke-linecap: round;
            stroke-dasharray: 251.33; /* 2 * PI * 40 ≈ 251.33 */
            stroke-dashoffset: 251.33;
            transition: stroke-dashoffset 0.04s linear, stroke 0.25s ease;
            filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.75));
        }

        /* 核心圆形开锁大按钮 */
        .hold-unlock-btn {
            position: absolute;
            width: 76px;
            height: 76px;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 32%, #1e293b 0%, #0f172a 68%, #020617 100%);
            border: 1.5px solid rgba(96, 165, 250, 0.38);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 
                        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.22), 
                        inset 0 -2px 6px rgba(0, 0, 0, 0.75), 
                        0 0 18px rgba(37, 99, 235, 0.22);
            color: #e2e8f0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            z-index: 3;
            touch-action: none;
            overflow: hidden;
            transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
                        border-color 0.25s ease, 
                        box-shadow 0.25s ease, 
                        background 0.3s ease;
        }

        .hold-btn-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            pointer-events: none;
        }

        .hold-lock-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #60a5fa;
            transition: transform 0.2s ease, color 0.25s ease;
        }

        .hold-btn-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.06em;
            color: #94a3b8;
            transition: color 0.2s ease;
        }

        /* 鼠标悬停态 */
        .hold-unlock-btn:hover {
            border-color: rgba(96, 165, 250, 0.7);
            color: #ffffff;
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75), 
                        0 0 24px rgba(59, 130, 246, 0.42), 
                        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.32);
        }
        .hold-unlock-btn:hover .hold-lock-icon {
            color: #93c5fd;
            transform: scale(1.06);
        }
        .hold-unlock-btn:hover .hold-btn-label {
            color: #e2e8f0;
        }

        /* 长按蓄力态 (Holding) */
        .hold-unlock-stage.holding .hold-glow-ring {
            transform: scale(1.22);
            opacity: 1;
            background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.12) 60%, transparent 80%);
            animation: none;
        }

        .hold-unlock-btn.holding {
            transform: scale(0.92);
            border-color: #38bdf8;
            background: radial-gradient(circle at 35% 32%, #1e3a8a 0%, #0f172a 75%, #020617 100%);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 
                        0 0 28px rgba(56, 189, 248, 0.65), 
                        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4);
        }
        .hold-unlock-btn.holding .hold-lock-icon {
            color: #38bdf8;
            transform: scale(1.12);
        }
        .hold-unlock-btn.holding .hold-btn-label {
            color: #38bdf8;
        }

        /* 开锁成功态 (Unlocked / Success) */
        .hold-unlock-stage.unlocked .hold-glow-ring {
            transform: scale(1.35);
            opacity: 1;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.55) 0%, rgba(16, 185, 129, 0.15) 60%, transparent 80%);
            animation: none;
        }

        .hold-unlock-stage.unlocked .hold-circle-bar {
            stroke: #10b981;
            filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.9));
        }

        .hold-unlock-btn.unlocked {
            border-color: #34d399;
            background: radial-gradient(circle at 35% 30%, #10b981 0%, #059669 70%, #064e3b 100%);
            color: #ffffff;
            box-shadow: 0 4px 25px rgba(16, 185, 129, 0.65), 
                        0 0 36px rgba(16, 185, 129, 0.5), 
                        inset 0 2px 2px rgba(255, 255, 255, 0.5);
            animation: holdSuccessPop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .hold-unlock-btn.unlocked .hold-lock-icon {
            color: #ffffff;
        }
        .hold-unlock-btn.unlocked .hold-btn-label {
            color: #ffffff;
        }

        @keyframes holdSuccessPop {
            0% { transform: scale(0.9); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        /* 成功波纹扩散环 */
        .hold-ripple {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            pointer-events: none;
            opacity: 0;
        }
        .hold-unlock-btn.unlocked .hold-ripple {
            border: 2px solid rgba(16, 185, 129, 0.85);
            animation: holdRippleExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes holdRippleExpand {
            0% { transform: scale(1); opacity: 0.9; }
            100% { transform: scale(1.8); opacity: 0; }
        }

        /* 纯监控设备禁用态 */
        .hold-unlock-btn.disabled-camera {
            opacity: 0.42;
            cursor: not-allowed;
            filter: grayscale(0.85);
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: none;
        }

        /* 底部操作与目标说明 */
        .hold-hint-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            text-align: center;
        }

        .hold-action-hint {
            font-size: 13px;
            font-weight: 500;
            color: #e4e4e7;
            display: flex;
            align-items: center;
            gap: 5px;
            letter-spacing: 0.02em;
        }

        .hold-target-name {
            color: #38bdf8;
            font-weight: 600;
        }

        .hold-sub-hint {
            font-size: 11px;
            color: #71717a;
            letter-spacing: 0.02em;
        }

        /* 下拉选择器 optgroup 美化 */
        .building-badge-select optgroup {
            background: #18181b;
            color: #94a3b8;
            font-weight: 600;
            font-size: 11px;
            padding: 4px 6px;
        }
        .building-badge-select option {
            background: #18181b;
            color: #f4f4f5;
            font-weight: 400;
            padding: 4px 8px;
        }

        /* ========================================================
           10.2 兼容历史滑动解锁滑道 (Slide to Unlock - Legacy)
           ======================================================== */
        .slide-unlock-container {
            width: 100%;
            margin: 6px 0 2px 0;
            position: relative;
        }

        .slide-unlock-track {
            position: relative;
            width: 100%;
            height: 46px;
            background: rgba(10, 10, 12, 0.55);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 23px;
            overflow: hidden;
            display: flex;
            align-items: center;
            user-select: none;
            -webkit-user-select: none;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(255, 255, 255, 0.02);
            transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                        background 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* 滑动跟随的柔和科技微光轨迹 */
        .slide-unlock-progress {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0px;
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.22) 100%);
            border-radius: 23px;
            pointer-events: none;
            transition: background 0.3s ease;
        }

        /* 滑槽中央提示文本 */
        .slide-unlock-text {
            position: absolute;
            width: 100%;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
            color: #a1a1aa;
            pointer-events: none;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0 44px;
            box-sizing: border-box;
            letter-spacing: 0.02em;
            transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* 呼吸流光文字 */
        .slide-shimmer-text {
            background: linear-gradient(90deg, #71717a 0%, #e4e4e7 40%, #ffffff 50%, #e4e4e7 60%, #71717a 100%);
            background-size: 250% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: slideShimmer 3s infinite ease-in-out;
        }

        @keyframes slideShimmer {
            0% { background-position: 180% 0; }
            100% { background-position: -80% 0; }
        }

        /* 精工钛金按键质感手柄 */
        .slide-unlock-handle {
            position: absolute;
            left: 4px;
            top: 4px;
            width: 38px;
            height: 38px;
            background: linear-gradient(145deg, #27272a 0%, #18181b 100%);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 19px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #e4e4e7;
            cursor: grab;
            z-index: 3;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), 
                        inset 0 1px 0 rgba(255, 255, 255, 0.25), 
                        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
            touch-action: none;
            user-select: none;
            box-sizing: border-box;
            transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
        }

        .slide-handle-icon {
            flex-shrink: 0;
            display: block;
            margin: auto;
            transition: transform 0.2s ease;
        }

        /* 悬停微互动 */
        .slide-unlock-handle:hover {
            border-color: rgba(96, 165, 250, 0.45);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 
                        inset 0 1px 0 rgba(255, 255, 255, 0.35),
                        0 0 12px rgba(59, 130, 246, 0.25);
        }

        /* 拖拽活跃态 */
        .slide-unlock-handle.dragging {
            cursor: grabbing;
            border-color: rgba(96, 165, 250, 0.7);
            background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 
                        0 0 16px rgba(59, 130, 246, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.35);
            color: #93c5fd;
        }
        .slide-unlock-handle.dragging .slide-handle-icon {
            transform: scale(1.08);
        }

        /* 状态：开锁下发中 (Unlocking) */
        .slide-unlock-track.unlocking {
            border-color: rgba(59, 130, 246, 0.45);
            background: rgba(15, 23, 42, 0.6);
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 0 16px rgba(59, 130, 246, 0.15);
        }
        .slide-unlock-track.unlocking .slide-unlock-progress {
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.35) 100%);
        }
        .slide-unlock-track.unlocking .slide-unlock-handle {
            background: linear-gradient(145deg, #1e3a8a 0%, #1e293b 100%);
            border-color: #3b82f6;
            color: #60a5fa;
            box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
        }
        .slide-unlock-track.unlocking .slide-unlock-text {
            color: #e2e8f0;
            font-weight: 500;
        }

        /* 状态：开锁成功 (Unlocked) - 极简翡翠暗夜微光，杜绝廉价大面积绿！ */
        .slide-unlock-track.unlocked {
            border-color: rgba(16, 185, 129, 0.5);
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.12) 100%);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.18);
        }
        .slide-unlock-track.unlocked .slide-unlock-progress {
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.2) 100%);
        }
        .slide-unlock-track.unlocked .slide-unlock-handle {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border-color: #34d399;
            color: #ffffff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 
                        0 0 18px rgba(16, 185, 129, 0.5),
                        inset 0 1px 0 rgba(255, 255, 255, 0.4);
            animation: handleSuccessPulse 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes handleSuccessPulse {
            0% { transform: scale(0.92); }
            50% { transform: scale(1.08); }
            100% { transform: scale(1); }
        }

        .slide-unlock-track.unlocked .slide-unlock-text {
            color: #ffffff;
            font-weight: 600;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
        }

        .slide-success-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: #ffffff;
            font-size: 13.5px;
            letter-spacing: 0.02em;
        }
        .slide-success-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            flex-shrink: 0;
        }

        /* 旋转 Loading Spinner */
        .slide-spinner {
            width: 15px;
            height: 15px;
            border: 2px solid rgba(255, 255, 255, 0.25);
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: slideSpin 0.7s infinite linear;
            display: inline-block;
        }
        @keyframes slideSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 底部一体化呼叫自动开门栏 */
        .auto-unlock-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 9px 12px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border);
            border-radius: 9px;
            gap: 10px;
            transition: all 0.2s ease;
            margin-top: 2px;
        }
        .auto-unlock-bar:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.15);
        }
        .auto-unlock-bar-info {
            display: flex;
            align-items: center;
            gap: 9px;
            min-width: 0;
        }
        .auto-unlock-bar-icon {
            font-size: 14px;
            color: #10b981;
            flex-shrink: 0;
        }
        .auto-unlock-bar-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }
        .auto-unlock-bar-title {
            font-size: 12.5px;
            font-weight: 600;
            color: var(--foreground);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .auto-unlock-bar-sub {
            font-size: 11px;
            color: var(--muted-foreground);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* 9.2 来电呼叫自动开锁设置卡片 (Auto Unlock on Call) */
        .auto-unlock-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.025);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px 14px;
            margin: 2px 0 6px 0;
            gap: 12px;
            transition: all 0.25s ease;
        }
        .auto-unlock-card:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.15);
        }
        .auto-unlock-card.active-panel {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
            border-color: rgba(16, 185, 129, 0.35);
            box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
        }
        .auto-unlock-info {
            display: flex;
            flex-direction: column;
            gap: 3px;
            flex: 1;
            min-width: 0;
        }
        .auto-unlock-title-row {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .auto-unlock-icon {
            font-size: 14px;
            line-height: 1;
        }
        .auto-unlock-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--foreground);
            letter-spacing: -0.01em;
        }
        .auto-unlock-badge {
            font-size: 10px;
            padding: 1px 6px;
            height: 18px;
            border-radius: 4px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        .auto-unlock-desc {
            font-size: 11.5px;
            color: var(--muted-foreground);
            line-height: 1.35;
        }
        /* 现代 iOS / Shadcn Toggle Switch 开关 */
        .switch-toggle {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
            flex-shrink: 0;
            cursor: pointer;
        }
        .switch-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }
        .switch-slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            border-radius: 24px;
        }
        .switch-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 2px;
            bottom: 2px;
            background-color: #cbd5e1;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }
        .switch-toggle input:checked + .switch-slider {
            background-color: #10b981;
            border-color: #059669;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
        }
        .switch-toggle input:checked + .switch-slider:before {
            transform: translateX(20px);
            background-color: #ffffff;
        }

        /* 10. 标志性大圆形开锁按钮体系 (Circle Unlock Hero) */
        .unlock-circle-stage {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 20px 0 16px;
            width: 100%;
        }
        
        /* 外围呼吸光晕与水波纹 */
        .unlock-circle-ripple {
            position: absolute;
            width: 172px;
            height: 172px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
            pointer-events: none;
            transition: all 0.4s ease;
            animation: breathePulse 3s infinite ease-in-out;
        }
        @keyframes breathePulse {
            0%, 100% { transform: scale(0.94); opacity: 0.35; }
            50% { transform: scale(1.08); opacity: 0.75; }
        }

        /* 大圆主按钮核心 (白色极简质感设计) */
        .btn-unlock-circle {
            position: relative;
            width: 144px;
            height: 144px;
            border-radius: 50%;
            background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f4f5 68%, #e4e4e7 100%);
            border: 2px solid rgba(255, 255, 255, 0.92);
            box-shadow: 
                inset 0 1px 2px 0 #ffffff,
                inset 0 -2px 4px 0 rgba(0, 0, 0, 0.08),
                0 14px 36px -4px rgba(255, 255, 255, 0.22),
                0 8px 24px -4px rgba(0, 0, 0, 0.65);
            color: #09090b;
            cursor: pointer;
            outline: none;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
                        border-color 0.2s ease, 
                        box-shadow 0.2s ease, 
                        background 0.3s ease;
            user-select: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            z-index: 2;
        }

        .btn-unlock-circle:hover {
            transform: scale(1.03);
            border-color: #ffffff;
            box-shadow: 
                inset 0 1px 2px 0 #ffffff,
                inset 0 -1px 2px 0 rgba(0, 0, 0, 0.05),
                0 0 32px rgba(255, 255, 255, 0.45),
                0 16px 38px -8px rgba(0, 0, 0, 0.7);
        }

        .btn-unlock-circle:active {
            transform: scale(0.95);
            background: radial-gradient(circle at 50% 50%, #e4e4e7 0%, #d4d4d8 100%);
            box-shadow: 
                inset 0 2px 6px 0 rgba(0, 0, 0, 0.15),
                0 6px 14px -3px rgba(0, 0, 0, 0.5);
        }

        .unlock-circle-inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            pointer-events: none;
        }

        .unlock-icon-wrap {
            position: relative;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #18181b;
            transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .unlock-icon-wrap .icon-lock-closed {
            display: block;
            transition: opacity 0.2s ease;
        }
        .unlock-icon-wrap .icon-lock-open {
            display: none;
            transition: opacity 0.2s ease;
        }

        .unlock-circle-text {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: -0.01em;
            color: #09090b;
            line-height: 1.2;
            transition: color 0.2s ease;
        }

        .unlock-circle-sub {
            font-size: 11px;
            color: #71717a;
            font-weight: 500;
            line-height: 1;
            letter-spacing: normal;
        }

        /* 开锁成功激活态 (Unlocked) */
        .btn-unlock-circle.unlocked {
            background: radial-gradient(circle at 35% 30%, #10b981 0%, #059669 70%, #047857 100%);
            border-color: rgba(52, 211, 153, 0.8);
            box-shadow: 
                inset 0 1px 2px 0 rgba(255, 255, 255, 0.5),
                0 0 32px rgba(16, 185, 129, 0.6),
                0 12px 30px -4px rgba(16, 185, 129, 0.5);
            transform: scale(1.02);
        }
        .btn-unlock-circle.unlocked .unlock-icon-wrap {
            transform: scale(1.1);
            color: #ffffff;
        }
        .btn-unlock-circle.unlocked .icon-lock-closed {
            display: none;
        }
        .btn-unlock-circle.unlocked .icon-lock-open {
            display: block;
            stroke: #ffffff;
        }
        .btn-unlock-circle.unlocked .unlock-circle-text {
            color: #ffffff;
            font-weight: 700;
        }
        .btn-unlock-circle.unlocked .unlock-circle-sub {
            color: rgba(255, 255, 255, 0.9);
        }

        /* 开门成功时的扩散水波纹动效 */
        .unlock-circle-stage.unlocked .unlock-circle-ripple {
            animation: successRipple 1.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
        }
        @keyframes successRipple {
            0% { transform: scale(0.9); opacity: 1; }
            100% { transform: scale(1.45); opacity: 0; }
        }

        /* 纯安防监控摄像头点位禁用置灰态 (不可远程开锁) */
        .btn-unlock-circle.disabled-camera {
            background: radial-gradient(circle at 35% 30%, #27272a 0%, #18181b 68%, #09090b 100%) !important;
            border: 2px dashed rgba(148, 163, 184, 0.35) !important;
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
            cursor: not-allowed !important;
            transform: none !important;
            opacity: 0.72;
        }
        .btn-unlock-circle.disabled-camera:hover {
            transform: none !important;
            border-color: rgba(148, 163, 184, 0.4) !important;
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
        }
        .btn-unlock-circle.disabled-camera .unlock-icon-wrap {
            color: #94a3b8 !important;
        }
        .btn-unlock-circle.disabled-camera .unlock-circle-text {
            color: #cbd5e1 !important;
            font-size: 13px !important;
        }
        .btn-unlock-circle.disabled-camera .unlock-circle-sub {
            color: #64748b !important;
            font-size: 10px !important;
        }

        .tip-banner {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 12px;
            color: var(--muted-foreground);
            line-height: 1.5;
            padding: 4px 2px;
        }
        .tip-banner svg {
            flex-shrink: 0;
            margin-top: 2px;
        }

        /* 11. 监控视窗规范 */
        .video-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            max-height: 480px;
            background: #000;
            border-radius: var(--radius);
            overflow: hidden;
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .video-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            background: #020204;
            image-rendering: -webkit-optimize-contrast;
        }
        .video-overlay {
            position: absolute;
            inset: 0;
            background: rgba(9, 9, 11, 0.75);
            backdrop-filter: blur(4px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: opacity 0.2s ease;
            cursor: pointer;
            z-index: 5;
        }
        .video-overlay.hidden { opacity: 0; pointer-events: none; }
        .play-btn-badge {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #fafafa;
            color: #18181b;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
            transition: transform 0.15s ease;
        }
        .play-btn-badge:hover { transform: scale(1.05); }
        .play-btn-badge svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }

        .video-badge-top {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 4;
        }
        .video-fps {
            position: absolute;
            bottom: 10px;
            right: 12px;
            font-family: var(--font-mono);
            font-size: 11px;
            line-height: 1;
            background: rgba(9, 9, 11, 0.8);
            border: 1px solid var(--border);
            padding: 4px 8px;
            border-radius: 4px;
            color: #38bdf8;
            z-index: 4;
        }

        /* 11.5 监控源多路分类与点位切换选择器 (Cam Source Selector) */
        .cam-source-selector {
            display: flex;
            flex-direction: column;
            gap: 6px;
            width: 100%;
        }
        .cam-category-tabs {
            height: 32px;
            background: #18181b;
            padding: 2px;
        }
        .cam-category-tabs .tabs-trigger {
            height: 26px;
            font-size: 12px;
            gap: 6px;
        }
        .cam-subfilter-tabs {
            display: flex;
            align-items: center;
            gap: 4px;
            overflow-x: auto;
            padding: 2px 0;
            scrollbar-width: none;
        }
        .cam-subfilter-tabs::-webkit-scrollbar { display: none; }
        .cam-subfilter-btn {
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 4px;
            background: transparent;
            color: var(--muted-foreground);
            border: 1px solid transparent;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        .cam-subfilter-btn:hover {
            color: var(--foreground);
            background: var(--secondary);
        }
        .cam-subfilter-btn.active {
            color: #38bdf8;
            background: rgba(56, 189, 248, 0.12);
            border-color: rgba(56, 189, 248, 0.3);
            font-weight: 600;
        }
        .cam-device-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            padding: 5px;
            background: rgba(24, 24, 27, 0.45);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            min-height: 36px;
            max-height: 125px;
            overflow-y: auto;
            align-items: flex-start;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
        }
        .cam-device-pills::-webkit-scrollbar {
            width: 4px;
        }
        .cam-device-pills::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
        .cam-pill-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 10px;
            font-size: 12px;
            font-weight: 500;
            border-radius: calc(var(--radius) - 2px);
            background: transparent;
            color: var(--muted-foreground);
            border: 1px solid transparent;
            cursor: pointer;
            transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
            line-height: 1.2;
            user-select: none;
        }
        .cam-pill-btn:hover {
            color: var(--foreground);
            background: var(--secondary);
        }
        .cam-pill-btn.active {
            background: var(--background);
            color: var(--foreground);
            border-color: var(--border-hover);
            font-weight: 600;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }
        .cam-pill-badge {
            font-size: 10px;
            padding: 1px 4px;
            border-radius: 3px;
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            margin-left: 4px;
        }
        .btn-talk-intercom:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            filter: grayscale(0.9);
            box-shadow: none;
        }
        .btn-icon-square:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
        }

        /* 12. 纯图标一体化媒体控制栏 (Integrated Icon Toolbar) */
        .header-badges {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .media-control-toolbar {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 100%;
        }
        .toolbar-separator {
            width: 1px;
            height: 20px;
            background: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        /* 纯单图标动作按钮规范 */
        .btn-icon-square {
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--secondary);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            color: var(--foreground);
            cursor: pointer;
            transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
            padding: 0;
            position: relative;
            user-select: none;
            -webkit-user-select: none;
            touch-action: manipulation;
            flex-shrink: 0;
        }
        .btn-icon-square:hover {
            background: #323238;
            border-color: rgba(255, 255, 255, 0.28);
            transform: translateY(-1px);
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }
        .btn-icon-square:active {
            transform: scale(0.95);
        }
        .btn-icon-square.active {
            background: rgba(16, 185, 129, 0.16);
            border-color: rgba(16, 185, 129, 0.5);
            color: #10b981;
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
        }
        .btn-icon-square.active:hover {
            background: rgba(16, 185, 129, 0.24);
            border-color: rgba(16, 185, 129, 0.7);
            color: #34d399;
        }
        .btn-icon-square:disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
        }
        /* 监控按钮激活态 (红色) */
        .btn-icon-square.monitor-active {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.4);
            color: #f87171;
        }
        .btn-icon-square.monitor-active:hover {
            background: rgba(239, 68, 68, 0.22);
            border-color: rgba(239, 68, 68, 0.6);
            color: #fca5a5;
        }
        /* 对讲按钮按下态 (绿色) */
        .btn-icon-square.talking {
            background: rgba(16, 185, 129, 0.18);
            border-color: rgba(16, 185, 129, 0.5);
            color: #10b981;
            box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
        }
        /* 画质图标内文字 */
        .btn-icon-square .quality-badge-icon {
            font-family: var(--font-mono);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.5px;
            line-height: 1;
        }
        /* HD 高清态 */
        .btn-icon-square.quality-hd {
            border-color: rgba(59, 130, 246, 0.5);
            background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
        }
        .btn-icon-square.quality-hd:hover {
            background: rgba(59, 130, 246, 0.22);
            border-color: rgba(59, 130, 246, 0.7);
        }

        /* 声音监听与迷你音量滑块组合胶囊 */
        .audio-action-wrap {
            display: flex;
            align-items: center;
            gap: 0;
            background: var(--secondary);
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            padding: 0 8px 0 0;
            transition: border-color 0.15s ease;
            flex-shrink: 0;
        }
        .audio-action-wrap:hover {
            border-color: var(--border-hover);
        }
        .audio-action-wrap .btn-icon-square {
            border: none;
            background: transparent;
            border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px);
        }
        .audio-action-wrap .btn-icon-square.active {
            background: rgba(16, 185, 129, 0.18);
        }
        .mini-volume-control {
            display: flex;
            align-items: center;
            width: 52px;
        }
        .mini-volume-control .shadcn-slider {
            width: 48px;
            height: 4px;
            border-radius: 99px;
            accent-color: #fafafa;
            cursor: pointer;
        }


        /* 13. 信息行与代码块规范 */
        .separator {
            height: 1px;
            width: 100%;
            background: var(--border);
        }
        .data-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            line-height: 1.25;
        }
        .data-label { color: var(--muted-foreground); }
        .data-value {
            font-family: var(--font-mono);
            font-weight: 500;
            color: var(--foreground);
            letter-spacing: -0.01em;
        }

        .code-card {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .code-title {
            font-size: 12px;
            font-weight: 500;
            color: var(--muted-foreground);
        }
        .code-box {
            background: #000000;
            border: 1px solid var(--border);
            border-radius: calc(var(--radius) - 2px);
            padding: 8px 12px;
            font-family: var(--font-mono);
            font-size: 12px;
            color: #fafafa;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: border-color 0.15s ease;
        }
        .code-box:hover { border-color: var(--border-hover); }
        .code-box-text {
            word-break: break-all;
            margin-right: 8px;
            line-height: 1.4;
        }
        .code-copy-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            background: transparent;
            border: none;
            color: var(--muted-foreground);
            cursor: pointer;
            flex-shrink: 0;
            transition: color 0.15s;
        }
        .code-copy-btn:hover { color: var(--foreground); }

        /* 14. Shadcn Toast (Sonner) 规范 */
        .sonner-toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #18181b;
            border: 1px solid var(--border);
            color: var(--foreground);
            padding: 12px 18px;
            border-radius: var(--radius);
            font-size: 13px;
            font-weight: 500;
            letter-spacing: -0.01em;
            line-height: 1;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
            transform: translateY(16px);
            opacity: 0;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 100;
        }
        .sonner-toast.show { transform: translateY(0); opacity: 1; }

        /* 15. Shadcn 锁屏鉴权卡片与表单规范 */
        .login-view {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 80vh;
            width: 100%;
            padding: 20px;
        }
        .login-card {
            width: 100%;
            max-width: 400px;
            background: #09090b;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
            padding: 32px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            animation: fadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes fadeInScale {
            0% { opacity: 0; transform: scale(0.96); }
            100% { opacity: 1; transform: scale(1); }
        }
        .login-brand {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 12px;
        }
        .login-brand-icon {
            width: 46px;
            height: 46px;
            border-radius: var(--radius);
            background: #18181b;
            border: 1px solid var(--border);
            color: #fafafa;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .login-brand-title {
            font-size: 18px;
            font-weight: 600;
            letter-spacing: -0.025em;
            color: var(--foreground);
        }
        .login-brand-desc {
            font-size: 13px;
            color: var(--muted-foreground);
            line-height: 1.4;
            margin-top: 2px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .form-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--foreground);
            letter-spacing: -0.01em;
        }
        .input-wrap {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }
        .shadcn-input {
            width: 100%;
            height: 40px;
            background: #18181b;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0 40px 0 12px;
            font-size: 14px;
            color: var(--foreground);
            outline: none;
            transition: all 0.15s ease;
            font-family: inherit;
        }
        .shadcn-input:focus {
            border-color: #71717a;
            box-shadow: 0 0 0 1px #71717a;
        }
        .shadcn-input::placeholder {
            color: #71717a;
        }
        .input-eye-btn {
            position: absolute;
            right: 8px;
            background: transparent;
            border: none;
            color: var(--muted-foreground);
            cursor: pointer;
            padding: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: color 0.15s;
        }
        .input-eye-btn:hover {
            color: var(--foreground);
        }
        .auth-error {
            display: none;
            padding: 8px 12px;
            border-radius: calc(var(--radius) - 2px);
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #f87171;
            font-size: 12px;
            line-height: 1.4;
        }
        .btn-default {
            background: #fafafa;
            color: #18181b;
            font-weight: 500;
        }
        .btn-default:hover {
            background: #e4e4e7;
        }
        .btn-default:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* 16. Shadcn 对话框 Modal 规范 */
        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            z-index: 200;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .modal-card {
            width: 100%;
            max-width: 440px;
            background: #09090b;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            animation: fadeInScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .modal-title {
            font-size: 16px;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--foreground);
        }
        .modal-desc {
            font-size: 13px;
            color: var(--muted-foreground);
            line-height: 1.4;
            margin-top: -4px;
        }
        .modal-close {
            background: transparent;
            border: none;
            color: var(--muted-foreground);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.15s;
        }
        .modal-close:hover {
            color: var(--foreground);
        }
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 8px;
        }

        /* 17. 手机端与移动端专属响应式规范 (Mobile-First Optimization) */
        @media (max-width: 899px) {
            body {
                padding: 12px 12px 36px;
            }
            .container {
                gap: 16px;
            }
            .shadcn-nav {
                padding: 0 0 12px;
            }
            
            /* 移动端单流卡片重新排序：门禁开锁(置顶) -> 视频监控 -> 音频对讲 -> 网络状态 -> HA集成 */
            .grid-layout {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .grid-col {
                display: contents;
            }
            .card-door {
                order: 1; /* 开锁卡片在最顶部 */
            }
            .card-intercom-hero,
            .card-camera {
                order: 2; /* 视音频一体化交互中心在开锁卡片下方 */
            }
            .card-audio {
                order: 3;
            }
            .card-network {
                order: 4;
            }
            .card-ha {
                order: 5;
            }

            .card-header {
                padding: 16px 16px 12px;
            }
            .card-content {
                padding: 18px 16px 18px; /* 顶部给予 18px 舒缓呼吸感上边距 */
            }
            .card-footer {
                padding: 12px 16px;
            }
        }

        @media (max-width: 640px) {
            body {
                padding: 8px 8px 24px;
            }
            .container {
                gap: 10px;
            }
            
            /* 顶部导航紧凑精美排布 */
            .shadcn-nav {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 6px;
                padding: 0 0 8px;
            }
            .brand-box {
                gap: 8px;
                min-width: 0;
            }
            .brand-icon {
                width: 28px;
                height: 28px;
                flex-shrink: 0;
            }
            .brand-icon svg {
                width: 15px;
                height: 15px;
            }
            .brand-title {
                font-size: 14px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .brand-subtitle {
                font-size: 10px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .nav-meta {
                gap: 4px;
                flex-shrink: 0;
            }
            .nav-clock {
                display: none;
            }
            .nav-status-badge {
                padding: 2px 6px;
                height: 20px;
                font-size: 11px;
            }
            .nav-status-badge .status-badge-text {
                display: inline;
            }
            .nav-btn {
                padding: 0 6px;
                height: 28px;
                font-size: 12px;
                display: inline-flex;
                align-items: center;
                gap: 4px;
            }
            .nav-btn .nav-btn-text {
                display: none; /* 手机端隐藏按钮冗余汉字，仅保留正统精致图标，保持极简 */
            }

            /* 卡片在移动端的内边距与标题 */
            .card-header {
                padding: 10px 12px 8px;
            }
            .card-title {
                font-size: 13px;
            }
            .card-description {
                font-size: 11px;
            }
            .card-content {
                padding: 16px 12px 14px; /* 顶部给予 16px 舒缓留白，彻底解决紧贴标题栏问题 */
            }

            /* 监控视窗操作条：并排紧凑排布 */
            .card-footer {
                display: flex;
                flex-direction: row;
                gap: 8px;
                padding: 8px 12px;
            }
            .card-footer .btn {
                height: 34px;
                font-size: 13px;
            }
            #btnToggleMonitor {
                flex: 1;
            }
            .media-control-toolbar {
                gap: 5px;
            }
            .btn-icon-square {
                width: 34px;
                height: 34px;
            }
            .mini-volume-control {
                width: 44px;
            }
            .mini-volume-control .shadcn-slider {
                width: 40px;
            }

            /* 门禁控制卡片在手机端黄金高度 */
            .card-door .card-content {
                gap: 10px;
            }
            .status-banner {
                padding: 6px 10px;
            }
            .status-title {
                font-size: 12px;
            }
            .status-desc {
                font-size: 11px;
            }
            .unlock-circle-stage {
                padding: 8px 0 4px;
            }
            .btn-unlock-circle {
                width: 124px;
                height: 124px;
            }
            .unlock-circle-ripple {
                width: 146px;
                height: 146px;
            }
            .unlock-circle-text {
                font-size: 13px;
            }
            .unlock-circle-sub {
                font-size: 10px;
            }

            /* 来电提醒卡片移动端适配 */
            .alert-call {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
                padding: 12px;
            }
            .alert-call button {
                width: 100%;
                height: 36px;
            }

            /* 音频监听条在手机屏幕上自适应 */
            .audio-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                padding: 8px 10px;
            }
            .slider-wrap {
                width: 100%;
            }

            /* 锁屏卡片在手机屏幕上全宽并舒适边距 */
            .login-view {
                padding: 12px;
                min-height: 85vh;
            }
            .login-card {
                padding: 24px 18px;
                gap: 20px;
            }
            .login-brand-title {
                font-size: 17px;
            }

            /* 修改密码模态框在手机屏幕上自适应 */
            .modal-backdrop {
                padding: 12px;
            }
            .modal-card {
                padding: 20px 16px;
                gap: 14px;
            }
            .modal-actions {
                flex-direction: column-reverse;
                gap: 8px;
            }
            .modal-actions .btn {
                width: 100%;
                height: 38px;
            }
        }

        /* ==========================================================================
           全新 SPA 现代侧边栏与多视图布局规范 (Sidebar & Views System)
           ========================================================================== */
        
        .app-layout {
            width: 100vw;
            height: 100vh;
            display: flex;
            overflow: hidden;
            background-color: var(--background);
            position: relative;
        }

        /* 左侧质感侧边栏 (Sidebar) */
        .app-sidebar {
            width: 240px;
            min-width: 240px;
            height: 100vh;
            background: rgba(13, 13, 16, 0.96);
            backdrop-filter: blur(16px);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            z-index: 60;
            user-select: none;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* 侧边栏品牌区域 */
        .sidebar-brand {
            padding: 16px 16px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
        }
        .sidebar-brand-icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: linear-gradient(135deg, #1d4ed8, #3b82f6);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
            flex-shrink: 0;
        }
        .sidebar-brand-info {
            min-width: 0;
            flex: 1;
        }
        .sidebar-brand-title {
            font-size: 14.5px;
            font-weight: 600;
            color: #f4f4f5;
            letter-spacing: -0.01em;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .sidebar-brand-room {
            font-size: 11px;
            color: var(--muted-foreground);
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* 侧边栏状态指示条 */
        .sidebar-status-box {
            margin: 10px 14px 6px;
            padding: 6px 10px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 11px;
            color: var(--muted-foreground);
            flex-shrink: 0;
        }
        .sidebar-status-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .sidebar-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #10b981;
            box-shadow: 0 0 6px #10b981;
        }

        /* 侧边栏菜单列表 */
        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .nav-section-label {
            font-size: 10px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.35);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 10px 8px 4px;
            margin-top: 2px;
        }
        .nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 8px 10px;
            border-radius: 6px;
            border: none;
            background: transparent;
            color: #a1a1aa;
            cursor: pointer;
            text-align: left;
            transition: all 0.16s ease;
            position: relative;
            outline: none;
            font-size: 13px;
        }
        .nav-item-content {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }
        .nav-item svg {
            width: 16px;
            height: 16px;
            color: #71717a;
            transition: color 0.15s ease;
            flex-shrink: 0;
        }
        .nav-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #f4f4f5;
        }
        .nav-item:hover svg {
            color: #d4d4d8;
        }
        .nav-item.active {
            background: rgba(37, 99, 235, 0.15);
            color: #60a5fa;
            font-weight: 500;
        }
        .nav-item.active svg {
            color: #3b82f6;
        }
        .nav-item.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 6px;
            bottom: 6px;
            width: 3px;
            border-radius: 0 2px 2px 0;
            background: #3b82f6;
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
        }
        .nav-badge {
            font-size: 10px;
            font-weight: 500;
            padding: 1px 6px;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--muted-foreground);
            font-variant-numeric: tabular-nums;
        }
        .nav-badge.badge-primary {
            background: rgba(37, 99, 235, 0.2);
            color: #93c5fd;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        /* 侧边栏底栏 */
        .sidebar-footer {
            padding: 12px 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            background: rgba(0, 0, 0, 0.2);
        }
        .sidebar-clock {
            font-size: 12px;
            font-family: var(--font-mono);
            color: var(--muted-foreground);
            letter-spacing: 0.05em;
        }
        .sidebar-footer-actions {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .sidebar-icon-btn {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--muted-foreground);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .sidebar-icon-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            color: var(--foreground);
            border-color: rgba(255, 255, 255, 0.1);
        }

        /* 右侧主工作视窗 (Viewport) */
        .app-viewport {
            flex: 1;
            min-width: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: #09090b;
            position: relative;
        }

        /* 顶部轻量栏 */
        .viewport-header {
            height: 48px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            background: rgba(14, 14, 17, 0.85);
            backdrop-filter: blur(12px);
            z-index: 30;
            flex-shrink: 0;
        }
        .viewport-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sidebar-toggle-btn {
            display: none;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.04);
            color: var(--foreground);
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .view-breadcrumb {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
        }
        .breadcrumb-root {
            color: var(--muted-foreground);
        }
        .breadcrumb-sep {
            color: rgba(255, 255, 255, 0.2);
            font-size: 11px;
        }
        .breadcrumb-current {
            font-weight: 600;
            color: var(--foreground);
            letter-spacing: -0.01em;
        }

        /* 多视图容器 (View Container) */
        .view-container {
            flex: 1;
            min-height: 0;
            position: relative;
            overflow: hidden;
        }

        .view-panel {
            display: none;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .view-panel.active {
            display: flex;
            flex-direction: column;
        }

        /* 视图 1: 门禁对讲控制台 (可独立滚动) */
        #view-dashboard {
            overflow-y: auto;
            padding: 20px 24px 40px;
        }
        #view-dashboard .container {
            max-width: 1280px;
        }

        /* 视图 2: 监控大屏 (直接内置，高宽 100% 满屏填塞) */
        #view-screen {
            background: #000;
            height: 100%;
            overflow: hidden;
        }

        /* 视图 3: 设备与点位配置 */
        #view-cameras {
            background: #09090b;
            height: 100%;
            overflow: hidden;
            display: none;
            flex-direction: column;
        }
        #view-cameras.active {
            display: flex;
        }

        /* 视图 4: 网络基础设施 */
        #view-infra {
            overflow-y: auto;
            padding: 20px 24px 40px;
        }
        #view-infra .container {
            max-width: 1280px;
        }

        /* 视图 5: 系统集成与 HA */
        #view-integration {
            overflow-y: auto;
            padding: 20px 24px 40px;
        }
        #view-integration .container {
            max-width: 1080px;
        }

        /* 移动端侧边栏遮罩 */
        .sidebar-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 55;
        }

        /* ==========================================================================
           大屏控制栏与分屏矩阵集成样式 (Screen Matrix Components)
           ========================================================================== */
        
        .screen-header-bar {
            height: 48px;
            background: rgba(18, 18, 22, 0.98);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 14px;
            z-index: 40;
            flex-shrink: 0;
            gap: 10px;
        }
        .screen-header-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .split-tabs-wrap {
            display: inline-flex;
            background: #27272a;
            padding: 2px;
            border-radius: var(--radius);
            gap: 2px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .split-btn {
            background: transparent;
            border: none;
            color: var(--muted-foreground);
            font-size: 11.5px;
            font-weight: 500;
            padding: 4px 10px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }
        .split-btn:hover {
            color: var(--foreground);
            background: rgba(255, 255, 255, 0.05);
        }
        .split-btn.active {
            background: #3b82f6;
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
        }
        .screen-scene-select {
            background: #18181b;
            color: #f4f4f5;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 5px 12px;
            font-size: 12px;
            cursor: pointer;
            outline: none;
            transition: border-color 0.2s ease;
        }
        .screen-scene-select:focus {
            border-color: #3b82f6;
        }
        .screen-page-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            color: #f4f4f5;
            border-radius: var(--radius);
            padding: 4px 10px;
            font-size: 11.5px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.15s ease;
        }
        .screen-page-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--border-hover);
        }
        .screen-page-indicator {
            font-size: 11px;
            color: var(--muted-foreground);
            font-family: var(--font-mono);
            padding: 0 4px;
        }
        .screen-action-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            color: #f4f4f5;
            border-radius: var(--radius);
            padding: 4px 10px;
            font-size: 11.5px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.15s ease;
        }
        .screen-action-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--border-hover);
        }
        .screen-action-btn.active {
            background: rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.4);
            color: #34d399;
        }
        .screen-action-btn.primary {
            background: #2563eb;
            border-color: #3b82f6;
            color: #fff;
        }

        /* 矩阵分屏主网格容器 */
        .matrix-grid-wrap {
            flex: 1;
            min-height: 0;
            position: relative;
            overflow: hidden;
            padding: 6px;
            background: #020203;
        }
        .matrix-grid {
            display: grid;
            width: 100%;
            height: 100%;
            gap: 6px;
        }
        .matrix-grid.layout-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
        .matrix-grid.layout-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
        .matrix-grid.layout-6 {
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
        }
        .matrix-grid.layout-6 .cam-cell:first-child {
            grid-column: 1 / span 2;
            grid-row: 1 / span 2;
        }
        .matrix-grid.layout-9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
        .matrix-grid.layout-16 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }

        /* 单个监控宫格 Cell */
        .cam-cell {
            background: #0c0c0e;
            border: 1px solid #1f1f23;
            border-radius: 6px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .cam-cell:hover {
            border-color: #3b82f6;
        }
        .cam-cell.selected {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
        }
        .cam-cell.maximized {
            position: absolute !important;
            inset: 6px !important;
            z-index: 50 !important;
            border-color: #3b82f6 !important;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.9) !important;
        }
        .cam-media-wrap {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
        }
        .cam-media-wrap video, .cam-media-wrap video-stream {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
        video-stream .info,
        .cam-media-wrap video-stream .info {
            display: flex !important;
            position: absolute !important;
            top: 6px !important;
            left: 6px !important;
            right: auto !important;
            padding: 0 !important;
            z-index: 10 !important;
            pointer-events: none !important;
        }
        video-stream .info .mode,
        .cam-media-wrap video-stream .info .mode {
            display: inline-block !important;
            font-size: 10px !important;
            font-weight: 700 !important;
            line-height: 1 !important;
            letter-spacing: 0.5px !important;
            padding: 2.5px 5.5px !important;
            border-radius: 3px !important;
            background: rgba(0, 0, 0, 0.55) !important;
            color: rgba(255, 255, 255, 0.88) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
            text-transform: uppercase !important;
        }
        video-stream .info .mode:empty,
        .cam-media-wrap video-stream .info .mode:empty {
            display: none !important;
        }
        .cam-media-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .cell-state-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: var(--muted-foreground);
            font-size: 11px;
            z-index: 5;
            transition: opacity 0.2s ease;
        }
        .cell-state-overlay .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .empty-placeholder {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: rgba(255, 255, 255, 0.25);
            font-size: 11px;
            user-select: none;
            pointer-events: none;
        }
        .cam-cell.empty-slot .empty-placeholder {
            display: flex;
        }
        .cam-cell.empty-slot .cam-media-wrap {
            display: none !important;
        }
        .cell-overlay {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 20px 8px 6px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            pointer-events: none;
            z-index: 10;
        }
        .cell-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .cell-name {
            font-size: 11.5px;
            font-weight: 500;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 5px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        }
        .cell-meta {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.6);
            font-family: var(--font-mono);
        }
        .cell-actions {
            position: absolute;
            bottom: 8px;
            right: 8px;
            top: auto;
            display: flex;
            align-items: center;
            gap: 5px;
            opacity: 0.85;
            transition: opacity 0.18s ease, background 0.18s ease;
            z-index: 15;
            background: rgba(12, 12, 16, 0.82);
            padding: 3px 5px;
            border-radius: 6px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
            pointer-events: auto;
        }
        .cam-cell:hover .cell-actions, .cam-cell.selected .cell-actions {
            opacity: 1;
            background: rgba(12, 12, 16, 0.95);
            border-color: rgba(255, 255, 255, 0.28);
        }
        .cell-btn {
            height: 24px;
            min-width: 24px;
            padding: 0 7px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.08);
            color: #f4f4f5;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        .cell-btn:hover {
            background: rgba(255, 255, 255, 0.22);
            border-color: rgba(255, 255, 255, 0.35);
            color: #fff;
        }
        .cell-btn.btn-quality {
            font-family: var(--font-mono);
            font-weight: 600;
            font-size: 10px;
            color: #a1a1aa;
        }
        .cell-btn.btn-quality.is-hd {
            color: #60a5fa;
            border-color: rgba(59, 130, 246, 0.45);
            background: rgba(37, 99, 235, 0.35);
        }
        /* 16 宫格或紧凑尺寸时，隐藏长文字保持小巧 */
        .layout-16 .cell-actions {
            bottom: 4px;
            right: 4px;
            padding: 2px 3px;
            gap: 3px;
        }
        .layout-16 .cell-btn {
            height: 20px;
            min-width: 20px;
            padding: 0 4px;
            font-size: 10px;
        }
        .layout-16 .cell-btn span {
            display: none;
        }
        .layout-16 .cell-btn.btn-quality span {
            display: inline-block;
        }

        /* ==========================================================================
           点位配置表格与编辑组件 (Cameras Admin Components)
           ========================================================================== */
        
        .admin-toolbar-wrap {
            padding: 14px 20px 10px;
            border-bottom: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex-shrink: 0;
            background: rgba(14, 14, 17, 0.5);
        }
        .admin-stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }
        .admin-stat-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 8px 12px;
        }
        .admin-stat-label {
            font-size: 11px;
            color: var(--muted-foreground);
        }
        .admin-stat-val {
            font-size: 16px;
            font-weight: 600;
            color: var(--foreground);
            margin-top: 2px;
            font-variant-numeric: tabular-nums;
        }
        .admin-stat-unit {
            font-size: 11px;
            color: var(--muted-foreground);
            font-weight: normal;
        }
        .admin-filter-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .admin-search-wrap {
            position: relative;
            width: 260px;
            flex-shrink: 0;
        }
        .admin-search-input {
            width: 100%;
            height: 32px;
            background: #141417;
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 0 10px 0 30px;
            font-size: 12px;
            color: var(--foreground);
            outline: none;
            transition: border-color 0.2s ease;
        }
        .admin-search-input:focus {
            border-color: #3b82f6;
        }
        .admin-search-icon {
            position: absolute;
            left: 9px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted-foreground);
            pointer-events: none;
        }
        .admin-cat-tabs {
            display: flex;
            align-items: center;
            gap: 6px;
            overflow-x: auto;
            flex: 1;
            padding-bottom: 2px;
        }
        .cat-tab {
            font-size: 11px;
            padding: 4px 10px;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border);
            color: var(--muted-foreground);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        .cat-tab:hover {
            border-color: var(--border-hover);
            color: var(--foreground);
        }
        .cat-tab.active {
            background: rgba(37, 99, 235, 0.2);
            border-color: rgba(59, 130, 246, 0.4);
            color: #93c5fd;
            font-weight: 500;
        }
        .cat-tab.special-tab.active {
            background: rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.4);
            color: #6ee7b7;
        }

        /* 点位表格包装器 */
        .admin-table-scroll {
            flex: 1;
            min-height: 0;
            overflow: auto;
            position: relative;
        }
        .admin-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
            text-align: left;
        }
        .admin-table th {
            position: sticky;
            top: 0;
            background: #121215;
            color: var(--muted-foreground);
            font-weight: 500;
            font-size: 11px;
            padding: 10px 12px;
            border-bottom: 1px solid var(--border);
            z-index: 20;
            white-space: nowrap;
        }
        .admin-table td {
            padding: 8px 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            vertical-align: middle;
        }
        .admin-table tr:hover td {
            background: rgba(255, 255, 255, 0.02);
        }
        .inline-input {
            width: 100%;
            background: transparent;
            border: 1px solid transparent;
            border-radius: 4px;
            padding: 4px 6px;
            color: var(--foreground);
            font-size: 12px;
            outline: none;
            transition: all 0.15s ease;
        }
        .inline-input:hover {
            border-color: rgba(255, 255, 255, 0.15);
            background: rgba(255, 255, 255, 0.03);
        }
        .inline-input:focus {
            border-color: #3b82f6;
            background: #141417;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }
        .inline-input.ip-input {
            font-family: var(--font-mono);
            color: #93c5fd;
        }
        .select-input, .badge-select {
            width: 100%;
            min-width: 88px;
            height: 28px;
            background-color: #141417;
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 0 16px 0 6px;
            color: var(--foreground);
            font-size: 11.5px;
            outline: none;
            cursor: pointer;
            transition: all 0.15s ease;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 5px center;
            box-sizing: border-box;
            white-space: nowrap;
        }
        .select-input:hover, .badge-select:hover {
            border-color: var(--border-hover);
            background-color: #18181c;
        }
        .select-input:focus, .badge-select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }
        .select-input option, .badge-select option {
            background-color: #18181b;
            color: #f4f4f5;
        }
        .stream-cell-wrap {
            display: flex;
            align-items: center;
            gap: 4px;
            max-width: 240px;
        }
        .stream-input {
            font-family: var(--font-mono);
            font-size: 11px;
            color: #94a3b8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 状态指示点 */
        .status-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            margin-right: 6px;
            background: var(--muted-foreground);
        }
        .status-dot.online { background: #10b981; box-shadow: 0 0 6px #10b981; }
        .status-dot.offline { background: #ef4444; }
        .status-dot.checking { background: #f59e0b; animation: pulse 1s infinite; }

        /* 行内按钮 */
        .btn-preview {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 4px;
            color: #f4f4f5;
            padding: 3px 8px;
            font-size: 11px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.15s ease;
        }
        .btn-preview:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: var(--border-hover);
        }
        .action-cell {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
        }
        .btn-save {
            background: rgba(37, 99, 235, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.35);
            color: #93c5fd;
            border-radius: 4px;
            padding: 3px 8px;
            font-size: 11px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.15s ease;
        }
        .btn-save:hover {
            background: #2563eb;
            color: #fff;
        }
        .btn-save.btn-dirty {
            background: #f59e0b !important;
            border-color: #f59e0b !important;
            color: #000 !important;
            font-weight: 600;
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
        }
        .btn-del {
            background: transparent;
            border: 1px solid transparent;
            color: var(--muted-foreground);
            border-radius: 4px;
            padding: 3px 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            transition: all 0.15s ease;
        }
        .btn-del:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }
        .stream-cell-wrap {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 100%;
        }
        .copy-btn {
            background: #141417;
            border: 1px solid var(--border);
            border-radius: 4px;
            color: var(--muted-foreground);
            cursor: pointer;
            padding: 4px 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.15s ease;
        }
        .copy-btn:hover {
            color: var(--foreground);
            border-color: var(--border-hover);
        }

        /* 批量保存固定底栏 */
        .batch-save-bar {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #18181b;
            border: 1px solid rgba(245, 158, 11, 0.5);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(245, 158, 11, 0.2);
            border-radius: 30px;
            padding: 8px 18px;
            display: none;
            align-items: center;
            gap: 12px;
            z-index: 50;
            animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes slideUp {
            from { transform: translate(-50%, 20px); opacity: 0; }
            to { transform: translate(-50%, 0); opacity: 1; }
        }

        /* 实时查看浮动窗 */
        .preview-floating {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 420px;
            background: #141417;
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
            z-index: 80;
            overflow: hidden;
            display: none;
            flex-direction: column;
            animation: slideUp 0.2s ease;
        }
        .preview-header {
            background: #1a1a20;
            padding: 10px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
        }
        .preview-title {
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .preview-body {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000;
        }
        .preview-body img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
        .preview-footer {
            padding: 8px 12px;
            font-size: 11px;
            color: var(--muted-foreground);
            background: #141417;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* 移动端响应式适配 */
        @media (max-width: 900px) {
            .app-sidebar {
                position: fixed;
                left: 0;
                top: 0;
                bottom: 0;
                transform: translateX(-100%);
            }
            .app-sidebar.open {
                transform: translateX(0);
            }
            .sidebar-backdrop.open {
                display: block;
            }
            .sidebar-toggle-btn {
                display: flex;
            }
            #view-dashboard {
                padding: 14px 12px 30px;
            }
            .preview-floating {
                left: 12px;
                right: 12px;
                width: auto;
                bottom: 12px;
            }
        }

        /* ==========================================================================
           大屏监控机位选择抽屉弹窗与品牌专属徽章 (Screen Modal & Brand Badges)
           ========================================================================== */
        #camPickerModal {
            position: fixed !important;
            inset: 0 !important;
            background: rgba(0, 0, 0, 0.82) !important;
            backdrop-filter: blur(8px) !important;
            z-index: 99999 !important;
            display: none;
            align-items: center !important;
            justify-content: center !important;
        }
        #camPickerModal.active {
            display: flex !important;
        }
        #camPickerModal .modal-content {
            width: 90%;
            max-width: 760px;
            background: #18181b;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            gap: 14px;
            max-height: 85vh;
        }
        #camPickerModal .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        #camPickerModal .modal-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        #camPickerModal .modal-subtitle {
            font-size: 12px;
            color: var(--muted-foreground);
            margin-top: 2px;
        }
        #camPickerModal .modal-close-btn {
            background: transparent;
            border: none;
            color: var(--muted-foreground);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
            padding: 0 4px;
        }
        #camPickerModal .modal-close-btn:hover {
            color: #fff;
        }
        .picker-category-tabs {
            display: flex;
            gap: 6px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 8px;
            overflow-x: auto;
        }
        .picker-tab-btn {
            padding: 6px 12px;
            font-size: 12px;
            font-weight: 500;
            background: transparent;
            border: none;
            border-radius: 4px;
            color: var(--muted-foreground);
            cursor: pointer;
            white-space: nowrap;
        }
        .picker-tab-btn:hover {
            color: var(--foreground);
        }
        .picker-tab-btn.active {
            background: #27272a;
            color: #fff;
            font-weight: 600;
        }
        .picker-cam-list {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            overflow-y: auto;
            max-height: 420px;
            padding-right: 4px;
        }
        @media (max-width: 600px) {
            .picker-cam-list {
                grid-template-columns: 1fr;
            }
        }
        .picker-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            background: #27272a;
            border: 1px solid var(--border);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
            text-align: left;
        }
        .picker-item:hover {
            border-color: #3b82f6;
            background: #2d2d32;
        }
        .picker-item.in-use {
            border-color: rgba(16, 185, 129, 0.4);
            background: rgba(16, 185, 129, 0.05);
        }
        .picker-item-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--foreground);
        }
        .picker-item-sub {
            font-size: 11px;
            color: var(--muted-foreground);
            margin-top: 2px;
        }
        .picker-item-badges {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }
        .picker-badge-cat {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.08);
            color: var(--muted-foreground);
        }
        .picker-badge-playing {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.4);
        }
        .brand-badge {
            display: inline-block;
            padding: 1px 5px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: 0.3px;
            margin-right: 4px;
            vertical-align: middle;
        }
        .brand-badge.brand-mc {
            background: rgba(16, 185, 129, 0.22);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.45);
        }
        .brand-badge.brand-dahua {
            background: rgba(59, 130, 246, 0.22);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.45);
        }
        .picker-badge-brand {
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
        }
        .picker-badge-brand.mc {
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.4);
        }
        .picker-badge-brand.dahua {
            background: rgba(59, 130, 246, 0.2);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.4);
        }
        .cell-btn.btn-unlock {
            background: rgba(16, 185, 129, 0.25);
            border: 1px solid rgba(16, 185, 129, 0.5);
            color: #34d399;
        }
        .cell-btn.btn-unlock:hover {
            background: rgba(16, 185, 129, 0.45);
            color: #ffffff;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
        }

        /* 麦驰门禁专属待命/就绪卡片与监视激活样式 */
        .mc-door-standby {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at 50% 45%, #0f172a 0%, #030712 100%);
            padding: 16px;
            z-index: 4;
            text-align: center;
            user-select: none;
            transition: background 0.3s ease;
        }
        .mc-standby-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.28);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #10b981;
            margin-bottom: 10px;
            box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
        }
        .mc-standby-title {
            font-size: 13px;
            font-weight: 600;
            color: #e2e8f0;
            margin-bottom: 4px;
            letter-spacing: 0.3px;
        }
        .mc-standby-desc {
            font-size: 11px;
            color: #94a3b8;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .mc-standby-desc .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #10b981;
            box-shadow: 0 0 6px #10b981;
        }
        .mc-btn-monitor {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(37, 99, 235, 0.25) 100%);
            border: 1px solid rgba(56, 189, 248, 0.4);
            color: #38bdf8;
            border-radius: 6px;
            font-size: 11.5px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }
        .mc-btn-monitor:hover {
            background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
            border-color: #38bdf8;
            color: #ffffff;
            box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
            transform: translateY(-1px);
        }
        .mc-btn-monitor:active {
            transform: translateY(0);
        }
        .mc-live-badge {
            position: absolute;
            top: 6px;
            right: 8px;
            z-index: 12;
            font-size: 10px;
            font-weight: 600;
            color: #10b981;
            background: rgba(6, 78, 59, 0.75);
            border: 1px solid rgba(16, 185, 129, 0.4);
            border-radius: 4px;
            padding: 2px 7px;
            display: flex;
            align-items: center;
            gap: 5px;
            backdrop-filter: blur(4px);
        }
        .mc-live-badge .pulse {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #10b981;
            box-shadow: 0 0 6px #10b981;
            animation: mcPulseGlow 1.4s infinite;
        }
        @keyframes mcPulseGlow {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.35); opacity: 0.55; }
        }


