        body {
            font-family: 'Segoe UI', 'Microsoft JhengHei', 'Poppins', system-ui, sans-serif;
            background: linear-gradient(135deg, #0A0F24 0%, #181D45 50%, #0C1230 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 16px;
            position: relative;
            overflow-x: hidden;
            overflow-y: scroll;          /* 强制始终显示垂直滚动条槽位 */
            font-display: optional;      /* 字体切换优化 */
        }

        body::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            pointer-events: none;
        }

        body::after {
            content: '';
            position: absolute;
            width: 150%;
            height: 150%;
            top: -25%;
            left: -25%;
            background: radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.2), transparent 55%),
                        radial-gradient(circle at 72% 65%, rgba(34, 211, 238, 0.14), transparent 50%);
            animation: pulse 8s ease-in-out infinite;
            pointer-events: none;
        }

        .glass-card {
            background: rgba(248, 250, 255, 0.96);
            backdrop-filter: blur(14px);
            border-radius: 40px;
            box-shadow: 0 25px 55px rgba(15,23,42,0.28), 0 0 40px rgba(99,102,241,0.18);
            width: 100%;
            max-width: 1650px;
            padding: 1.5rem 1.2rem 2rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            z-index: 2;
            isolation: isolate;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 10px;
            min-height: 44px;
        }

        h1 {
            font-size: 1.6rem;
            font-weight: 700;
            background: linear-gradient(120deg, #22d3ee, #818cf8 45%, #ec4899);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 2.5rem;
            line-height: 1.4;
        }

        .subtitle {
            text-align: center;
            font-size: 0.75rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid rgba(139,92,246,0.25);
            padding-bottom: 0.6rem;
            font-weight: 600;
            min-height: 1.5rem;
            line-height: 1.5;
            background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 0.4px;
        }

        .btn-group {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            min-height: 44px;
        }

        button, .action-btn {
            padding: 10px 16px;
            font-size: 0.85rem;
            font-weight: 600;
            border: none;
            border-radius: 40px;
            background: linear-gradient(90deg, #22d3ee, #6366f1);
            color: white;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 4px 10px rgba(99,102,241,0.3);
            min-width: 110px;
            justify-content: center;
        }

        button:hover, .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(99,102,241,0.4);
        }

        button:disabled, .action-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .search-box {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
        }

        .search-input {
            flex: 1;
            padding: 12px 16px;
            font-size: 0.9rem;
            border: 1px solid rgba(99,102,241,0.4);
            border-radius: 40px;
            background: #f8fafc;
            transition: all 0.2s;
        }

        .search-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
        }

        .result-card {
            margin-top: 20px;
            padding: 1rem;
            border-radius: 24px;
            background: #eef2f7;
            box-shadow: 0 6px 14px rgba(0,0,0,0.08);
            border-left: 5px solid;
            min-height: 72px; /* 预留空间，减少查询结果出现时的布局偏移（CLS） */
        }

        .result-card.success { border-left-color: #10b981; }
        .result-card.error { border-left-color: #f43f5e; }
        .result-content { line-height: 1.5; font-size: 0.85rem; }

        .warranty-badge {
            display: inline-block;
            margin-top: 0.7rem;
            padding: 6px 12px;
            border-radius: 30px;
            font-weight: 700;
            font-size: 0.75rem;
        }

        .badge-active { background: #10b981; color: white; }
        .badge-expired { background: #f43f5e; color: white; }
        .badge-today { background: #fbbf24; color: white; }

        .devices-table-container {
            overflow-x: auto;
            margin-top: 20px;
            border-radius: 24px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            position: relative;
            min-height: 540px;
            max-height: calc(100vh - 300px);
            overflow-y: auto;
            background: #f8fafc;
        }

        .pull-to-refresh {
            text-align: center;
            padding: 10px;
            font-size: 0.7rem;
            color: #6366f1;
            background: rgba(248,250,255,0.9);
            border-radius: 20px;
            margin-bottom: 10px;
            display: none;
        }

        .devices-table {
            width: 100%;
            border-collapse: collapse;
            background: #f8fafc;
            table-layout: auto;
        }

        .devices-table th, .devices-table td {
            padding: 18px 10px;
            text-align: left;
            border-bottom: 1px solid rgba(99,102,241,0.2);
            background: #f8fafc;
            vertical-align: middle;
            font-size: 0.75rem;
            line-height: 1.5;
            white-space: nowrap;
        }

        .devices-table th {
            background: #eff6ff;
            font-weight: 600;
            color: #6366f1;
            user-select: none;
            position: relative;
            overflow: hidden;
        }

        .sortable-header {
            cursor: pointer;
            transition: background 0.2s;
        }

        .sortable-header:hover {
            background: #e0e7ff;
        }

        .sort-indicator {
            margin-left: 5px;
            font-size: 0.7rem;
            color: #6366f1;
            display: inline-block;
            width: 12px;
            text-align: center;
        }

        .devices-table tr:hover td { background: #f1f5f9; }

        .progress-bar-container {
            width: 60px;
            height: 5px;
            background: #e2e8f0;
            border-radius: 3px;
            overflow: hidden;
            display: inline-block;
            vertical-align: middle;
        }

        .progress-bar-fill { height: 100%; border-radius: 3px; }
        .progress-bar-fill.positive { background: #10b981; }
        .progress-bar-fill.negative { background: #f43f5e; }

        .sort-filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .filter-select, .limit-select {
            padding: 6px 12px;
            font-size: 0.75rem;
            background: #e2e8f0;
            color: #1e293b;
            border: none;
            border-radius: 30px;
            cursor: pointer;
        }

        .pagination-bar {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
            align-items: center;
            flex-wrap: wrap;
        }

        .pagination-bar button {
            padding: 6px 12px;
            font-size: 0.7rem;
            background: #e2e8f0;
            color: #1e293b;
            box-shadow: none;
        }

        .pagination-bar button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pagination-bar input {
            width: 60px;
            padding: 6px;
            border-radius: 30px;
            border: 1px solid #6366f1;
            text-align: center;
            font-size: 0.7rem;
        }

        /* 骨架屏加载行 */
        .skeleton-row {
            height: 54px;
            background: linear-gradient(90deg, #e2e8f0 25%, #e2e8f0 50%, #e2e8f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            margin-bottom: 1px;
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .hidden { display: none; }

        footer {
            margin-top: 1.5rem;
            text-align: center;
            font-size: 0.6rem;
            color: #94a3b8;
        }

        .spinner {
            border: 3px solid rgba(99,102,241,0.3);
            border-top: 3px solid #6366f1;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 0.8s linear infinite;
            display: inline-block;
            margin-right: 6px;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0;
        }

        .checkbox-group input { width: auto; margin: 0; transform: scale(1); }

        .search-input-small {
            width: 180px;
            padding: 6px 12px;
            font-size: 0.75rem;
            border-radius: 30px;
            border: 1px solid rgba(99,102,241,0.4);
            background: #f8fafc;
        }

        .action-buttons {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            justify-content: flex-end;
            align-items: center;
            line-height: 1;
        }

        .action-btn-small {
            background: transparent;
            border: none;
            padding: 14px 20px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: normal;
            cursor: pointer;
            transition: 0.2s;
            color: white;
            line-height: 1.5;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }

        .action-btn-small.edit { background: #6366f1; }
        .action-btn-small.delete { background: #f43f5e; }
        .action-btn-small.failure { background: #fb923c; }

        .action-btn-small:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

        .action-btn-small:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .modal-content {
            background: white;
            padding: 20px;
            border-radius: 12px;
            width: 400px;
            text-align: center;
        }

        .modal-content input {
            width: 100%;
            padding: 8px;
            margin: 15px 0;
            border-radius: 8px;
            border: 1px solid #ccc;
        }

        .modal-content button {
            margin: 0 5px;
            padding: 6px 12px;
            background: #6366f1;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
        }

        .remember-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 10px 0;
        }

        .remember-row input { width: auto; margin: 0; }
        .remember-row label { margin: 0; font-weight: normal; }

        .input-group {
            margin-bottom: 15px;
            text-align: left;
        }

        .input-group label {
            display: block;
            margin-bottom: 4px;
            font-weight: 600;
            color: #334155;
            font-size: 0.8rem;
        }

        .input-group input {
            width: 100%;
            padding: 10px;
            margin: 0;
            border-radius: 8px;
            border: 1px solid #ccc;
            font-size: 0.9rem;
        }

        /* 空状态引导 */
        .empty-state {
            height: 400px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #6366f1;
        }

        .empty-state p {
            margin-bottom: 20px;
            font-size: 1rem;
        }

        .empty-state .action-btn {
            margin: 5px;
        }

        /* 进度提示条 */
        .progress-toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b;
            color: white;
            padding: 10px 24px;
            border-radius: 60px;
            font-size: 0.85rem;
            z-index: 10000;
            display: none;
        }

        /* 批量新增预览表格 */
        #batchAddPreviewArea table th,
        #batchAddPreviewArea table td {
            padding: 6px 8px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
            font-size: 0.7rem;
        }
        #batchAddPreviewArea table th {
            background: #f1f5f9;
            font-weight: 600;
        }
        .warning-area {
            background: #fef3c7;
            border-left: 4px solid #f59e0b;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.8rem;
            color: #92400e;
        }

        @media (max-width: 768px) {
            .devices-table thead { display: none; }
            .devices-table tr {
                display: block;
                margin-bottom: 1rem;
                border: 1px solid rgba(99,102,241,0.2);
                border-radius: 1rem;
                background: #f8fafc;
                padding: 0.5rem;
                box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            }
            .devices-table td {
                display: block;
                text-align: right;
                padding: 0.5rem;
                border-bottom: 1px solid rgba(99,102,241,0.1);
                position: relative;
                padding-left: 40%;
                font-size: 0.8rem;
            }
            .devices-table td:last-child { border-bottom: none; }
            .devices-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 0.5rem;
                width: 35%;
                font-weight: bold;
                color: #6366f1;
                text-align: left;
            }
            .progress-bar-container { width: 80px; height: 6px; }
            .warranty-badge { font-size: 0.7rem; padding: 4px 8px; }
            .sort-filter-bar { flex-direction: column; align-items: stretch; }
            .search-input-small { width: 100%; }
            .action-buttons { justify-content: flex-end; margin-top: 4px; }
        }
