
        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* ==================== 主题切换按钮 ==================== */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .theme-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        /* 页面加载遮罩层 */
        .page-loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f7fafc;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.3s ease;
        }

        .page-loader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .page-loader-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #d7e7eb;
            border-top-color: #237894;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ==================== 亮色主题 (默认) ==================== */
        body.light-theme {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            background: #f7fafc;
            min-height: 100vh;
            padding: 20px;
        }

        .light-theme .login {
            width: 350px;
            max-width: 90%;
            margin: 100px auto;
            padding: 40px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            position: relative;
        }

        /* 动画小人容器 - 放在登录表单上方 */
        .characters-container {
            position: absolute;
            top: -250px;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            height: 280px;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            z-index: 10;
        }

        /* 紫色高个子（最后面） */
        .purple-guy {
            width: 100px;
            height: 260px;
            position: absolute;
            left: 30px;
            bottom: 10px;
            z-index: 1;
        }

        .purple-guy .body {
            width: 100%;
            height: 100%;
            background: #6B4EE6;
            border-radius: 12px;
            display: flex;
            justify-content: center;
            padding-top: 55px;
            box-shadow: 5px 5px 20px rgba(0,0,0,0.15);
            transform-origin: center bottom;
            transition: transform 0.1s ease-out;
        }

        .purple-guy .eyes {
            display: flex;
            gap: 16px;
        }

        .purple-guy .eye {
            width: 22px;
            height: 22px;
            background: white;
            border-radius: 50%;
            position: relative;
            overflow: hidden;
        }

        .purple-guy .pupil {
            width: 10px;
            height: 10px;
            background: #333;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: transform 0.08s ease-out;
        }

        /* 黄色圆顶（右后） */
        .yellow-guy {
            width: 90px;
            height: 130px;
            position: absolute;
            right: 40px;
            bottom: 5px;
            z-index: 2;
        }

        .yellow-guy .body {
            width: 100%;
            height: 100%;
            background: #E5D84B;
            border-radius: 45px 45px 0 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 45px;
            box-shadow: -3px 0 15px rgba(0,0,0,0.1);
            transform-origin: center bottom;
            transition: transform 0.1s ease-out;
        }

        .yellow-guy .eyes {
            display: flex;
            gap: 20px;
            margin-bottom: 15px;
        }

        .yellow-guy .eye {
            width: 10px;
            height: 10px;
            background: #333;
            border-radius: 50%;
            position: relative;
            transition: transform 0.08s ease-out;
        }

        .yellow-guy .mouth-container {
            width: 40px;
            height: 14px;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .yellow-guy .mouth {
            width: 40px;
            height: 3px;
            background: #333;
            border-radius: 2px;
            transition: transform 0.1s ease-out;
        }

        /* 黑色中等个子（中间） */
        .black-guy {
            width: 75px;
            height: 155px;
            position: absolute;
            left: 100px;
            bottom: 8px;
            z-index: 3;
        }

        .black-guy .body {
            width: 100%;
            height: 100%;
            background: #2C2C2C;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            padding-top: 45px;
            box-shadow: 3px 3px 15px rgba(0,0,0,0.2);
            transform-origin: center bottom;
            transition: transform 0.1s ease-out;
        }

        .black-guy .eyes {
            display: flex;
            gap: 12px;
        }

        .black-guy .eye {
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
            position: relative;
            overflow: hidden;
        }

        .black-guy .pupil {
            width: 6px;
            height: 6px;
            background: #333;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        /* 橙色半圆（最前面） */
        .orange-guy {
            width: 140px;
            height: 115px;
            position: absolute;
            left: 80px;
            bottom: 0;
            z-index: 4;
        }

        .orange-guy .body {
            width: 100%;
            height: 100%;
            background: #F4A261;
            border-radius: 70px 70px 0 0;
            display: flex;
            justify-content: center;
            padding-top: 40px;
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            transform-origin: center bottom;
            transition: transform 0.1s ease-out;
        }

        .orange-guy .eyes {
            display: flex;
            gap: 24px;
        }

        .orange-guy .eye {
            width: 12px;
            height: 12px;
            background: #333;
            border-radius: 50%;
            position: relative;
            transition: transform 0.08s ease-out;
        }

        /* 眨眼动画 */
        @keyframes blink {
            0%, 90%, 100% { transform: scaleY(1); }
            95% { transform: scaleY(0.1); }
        }

        .purple-guy .eye, .black-guy .eye {
            animation: blink 4s infinite;
        }

        .black-guy .eye {
            animation-delay: 1.5s;
        }

        /* 看向别处时的样式 */
        .character.looking-away .body {
            transform: skewX(8deg) !important;
        }
        .character.looking-away .eye {
            transform: translate(-5px, -3px);
        }

        .light-theme .login h2 {
            text-align: center;
            margin-bottom: 30px;
            color: #667eea;
            font-size: 28px;
        }

        .light-theme .pwd-wrap {
            position: relative;
            width: 100%;
            margin: 10px 0;
        }
        .light-theme .pwd-wrap input {
            margin: 0 !important;
            padding-right: 46px !important;
            box-sizing: border-box;
        }
        .light-theme .pwd-eye {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #999;
            display: flex;
            align-items: center;
            user-select: none;
        }
        .light-theme .pwd-eye:hover { color: #667eea; }
        .light-theme .pwd-eye svg { width: 20px; height: 20px; }

        .light-theme .login input {
            width: 100%;
            padding: 15px;
            margin: 10px 0;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s;
            background: white;
            color: #333;
        }

        .light-theme .login input:focus {
            border-color: #667eea;
            outline: none;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .light-theme #app {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            max-width: 95%;
            margin: 0 auto;
        }

        .light-theme h1 {
            text-align: center;
            color: #667eea;
            margin-bottom: 20px;
            font-size: 36px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .light-theme .stats {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
            flex-wrap: wrap;
            gap: 10px;
        }

        .light-theme .stats span {
            font-size: 16px;
            font-weight: 600;
        }

        .light-theme .stats .nav-buttons {
            display: flex;
            gap: 8px;
        }

        button {
            padding: 10px 20px;
            margin: 4px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            white-space: nowrap;
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        button:active {
            transform: translateY(0);
        }

        .btn-primary {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: white;
        }

        .btn-danger {
            background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
            color: white;
        }

        .btn-warning {
            background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
            color: white;
        }

        .btn-info {
            background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
            color: white;
        }

        .btn-secondary {
            background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
            color: white;
        }

        .btn-success {
            background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
            color: white;
        }

        .btn-info {
            background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
            color: white;
        }

        /* 表格内的小按钮统一样式 */
        .table-btn {
            padding: 6px 10px !important;
            font-size: 14px !important;
            min-width: 32px !important;
            min-height: 32px !important;
            border-radius: 6px !important;
        }

        .nav-container {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .nav-container button {
            min-width: 100px;
            font-size: 13px;
            padding: 8px 16px;
        }

        /* 导航按钮样式 - 简洁统一风格 */
        .btn-nav-main, .btn-nav-sub, .btn-nav-accent {
            background: rgba(255, 255, 255, 0.95);
            color: #667eea;
            border: 2px solid #667eea;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-nav-main:hover, .btn-nav-sub:hover, .btn-nav-accent:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .btn-nav-main:active, .btn-nav-sub:active, .btn-nav-accent:active {
            transform: translateY(0);
        }

        /* 分页控件样式 */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .pagination-info {
            font-size: 14px;
            color: #666;
            margin: 0 10px;
        }

        .pagination button {
            padding: 8px 16px;
            margin: 0;
            font-size: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pagination button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .pagination .active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        /* 导出按钮组样式 */
        .export-buttons {
            display: flex;
            gap: 10px;
            margin: 15px 0;
            flex-wrap: wrap;
        }

        .export-buttons button {
            padding: 10px 20px;
            font-size: 14px;
        }

        .tab {
            display: none;
            padding: 25px;
            background: rgba(255, 255, 255, 0.98);
            border-radius: 15px;
            margin: 10px 0;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            animation: fadeIn 0.5s;
        }

        .tab.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .tab h3 {
            color: #667eea;
            margin-bottom: 20px;
            font-size: 24px;
            padding-bottom: 10px;
            border-bottom: 3px solid #667eea;
        }

        input {
            padding: 12px 20px;
            margin: 8px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s;
            background: white;
        }

        input:focus {
            border-color: #667eea;
            outline: none;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: white;
            border-radius: 10px;
            overflow-x: auto;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            table-layout: auto;
        }

        /* 表格容器 - 用于手机端水平滚动 */
        .table-container {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table-container table {
            min-width: 600px;
            margin: 0;
        }

        /* 预维修表格样式 */
        #preMaintenanceTable {
            width: 100%;
            min-width: 1200px;
            table-layout: fixed;
            border-collapse: collapse;
            font-size: 14px;
        }

        #preMaintenanceTable th,
        #preMaintenanceTable td {
            padding: 10px 5px;
            text-align: center;
            border-bottom: 1px solid #eee;
            white-space: nowrap;
        }

        #preMaintenanceTable th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-weight: 600;
        }

        #preMaintenanceTable tbody tr.pm-table-row:hover {
            background: #f8f9ff !important;
            transition: all 0.3s;
        }

        /* 预维修表格悬停效果 */
        #preMaintenanceTable tbody tr.pm-table-row:hover,
        tbody tr.pm-table-row:hover {
            background: #f8f9ff !important;
            transition: all 0.3s;
        }

        /* 库存总览表格 - 自适应布局，充分利用宽度 */
        #fullInventoryTable {
            width: 100%;
            table-layout: auto;
        }

        #fullInventoryTable th:nth-child(1), /* 托盘 */
        #fullInventoryTable td:nth-child(1) {
            min-width: 80px;
            width: 80px;
        }

        #fullInventoryTable th:nth-child(2), /* 箱号 */
        #fullInventoryTable td:nth-child(2) {
            min-width: 60px;
            width: 60px;
        }

        #fullInventoryTable th:nth-child(3), /* SKU */
        #fullInventoryTable td:nth-child(3) {
            min-width: 100px;
        }

        #fullInventoryTable th:nth-child(4), /* 料号 */
        #fullInventoryTable td:nth-child(4) {
            min-width: 100px;
        }

        #fullInventoryTable th:nth-child(5), /* 型号 */
        #fullInventoryTable td:nth-child(5) {
            min-width: 90px;
        }

        #fullInventoryTable th:nth-child(6), /* 品名 */
        #fullInventoryTable td:nth-child(6) {
            min-width: 120px;
        }

        #fullInventoryTable th:nth-child(7), /* 库存 */
        #fullInventoryTable td:nth-child(7) {
            min-width: 70px;
            width: 70px;
            text-align: center;
        }

        #fullInventoryTable th:nth-child(8), /* 备注 */
        #fullInventoryTable td:nth-child(8) {
            min-width: 150px;
        }

        #fullInventoryTable th:nth-child(9), /* 操作 - 自适应剩余空间 */
        #fullInventoryTable td:nth-child(9) {
            min-width: 150px;
            text-align: left;
        }

        /* 领用记录表格 - 自适应布局 */
        #recordsTable {
            width: 100%;
            table-layout: auto;
        }

        #recordsTable th:nth-child(1), /* 时间 */
        #recordsTable td:nth-child(1) {
            min-width: 160px;
        }

        #recordsTable th:nth-child(2), /* 品名 */
        #recordsTable td:nth-child(2) {
            min-width: 200px;
            text-align: left;
        }

        #recordsTable th:nth-child(2), /* 配件 */
        #recordsTable td:nth-child(2) {
            min-width: 100px;
        }

        #recordsTable th:nth-child(3), /* 型号 */
        #recordsTable td:nth-child(3) {
            min-width: 120px;
        }

        #recordsTable th:nth-child(4), /* 数量 */
        #recordsTable td:nth-child(4) {
            min-width: 80px;
            text-align: center;
        }

        #recordsTable th:nth-child(5), /* 操作 */
        #recordsTable td:nth-child(5) {
            min-width: 80px;
            text-align: center;
        }

        #recordsTable th:nth-child(6), /* 用户 */
        #recordsTable td:nth-child(6) {
            min-width: 100px;
        }

        #recordsTable th:nth-child(7), /* 备注 */
        #recordsTable td:nth-child(7) {
            min-width: 150px;
        }

        thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        th, td {
            padding: 15px 12px;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }

        /* 备注列特殊样式 */
        td.remarks-cell {
            max-width: 180px;
            min-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            cursor: help;
            position: relative;
        }

        td.remarks-cell:hover {
            white-space: normal;
            word-wrap: break-word;
            word-break: break-all;
            z-index: 100;
            background: #fff;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            padding: 15px;
            position: relative;
        }

        /* 表格操作列优化 */
        td:has(> div) {
            padding: 10px 8px !important;
            vertical-align: middle;
        }

        td:has(> div) > div {
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
        }

        td:has(> div) input[type="number"] {
            width: 70px !important;
            min-width: 60px !important;
            padding: 8px 12px !important;
            margin: 0 !important;
            font-size: 14px !important;
            border: 2px solid #e0e0e0 !important;
            border-radius: 8px !important;
            box-sizing: border-box !important;
        }

        td:has(> div) .btn-warning {
            padding: 8px 16px !important;
            font-size: 14px !important;
            margin: 0 !important;
            border-radius: 8px !important;
            white-space: nowrap !important;
            flex-shrink: 0;
        }

        /* 备注列优化 */
        td.remarks-cell {
            padding: 15px 10px !important;
            font-size: 15px;
        }

        /* 表格单元格通用优化 */
        table td {
            font-size: 15px;
            padding: 15px 10px;
        }

        table th {
            font-size: 16px;
            padding: 15px 10px;
        }

        tr:hover {
            background: #f8f9ff;
            transition: all 0.3s;
        }

        th {
            font-weight: 600;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        td {
            font-size: 15px;
        }

        td input[type="number"] {
            padding: 6px 10px;
            margin: 0;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 13px;
            width: 60px;
            min-width: 50px;
            transition: all 0.3s;
        }

        td input[type="number"]:focus {
            border-color: #fa709a;
            outline: none;
            box-shadow: 0 0 0 3px rgba(250, 112, 154, 0.1);
        }

        td button {
            padding: 6px 12px;
            margin: 0 4px;
            font-size: 12px;
            border-radius: 6px;
        }

        .search-container {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .search-container input {
            flex: 1;
            min-width: 150px;
        }

        .action-buttons {
            display: flex;
            gap: 8px;
            margin: 15px 0;
            flex-wrap: wrap;
        }

        .action-buttons button {
            padding: 8px 16px;
            font-size: 13px;
        }

        .quick-qty-btn {
            min-width: 45px;
            padding: 8px 12px;
        }

        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            th, td {
                padding: 12px 10px;
                font-size: 14px;
            }

            td.remarks-cell {
                max-width: 150px;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            h1 {
                font-size: 28px;
            }

            #app {
                padding: 20px 15px;
            }

            .stats {
                padding: 12px 15px;
            }

            .stats span {
                font-size: 14px;
            }

            .nav-container button {
                min-width: 80px;
                padding: 6px 12px;
                font-size: 12px;
            }

            button {
                padding: 8px 16px;
                font-size: 13px;
            }

            th, td {
                padding: 10px 8px;
                font-size: 13px;
            }

            td input[type="number"] {
                width: 50px;
                font-size: 12px;
                padding: 4px 8px;
            }

            td button {
                padding: 5px 8px;
                font-size: 11px;
            }

            td.remarks-cell {
                max-width: 100px;
            }

            td:has(> div) {
                min-width: 140px;
            }
        }

        @media (max-width: 480px) {
            .login {
                width: 95%;
                padding: 25px 20px;
            }

            .login h2 {
                font-size: 24px;
            }

            h1 {
                font-size: 24px;
            }

            .stats {
                flex-direction: column;
                align-items: flex-start;
            }

            .stats .nav-buttons {
                width: 100%;
                justify-content: center;
            }

            .nav-container {
                gap: 6px;
            }

            .nav-container button {
                min-width: 70px;
                padding: 6px 10px;
                font-size: 11px;
            }

            table {
                font-size: 12px;
            }

            th, td {
                padding: 8px 6px;
                font-size: 12px;
            }

            /* 手机端表格容器 */
            .table-container {
                margin: 0 -15px;
                padding: 0 15px;
            }

            .table-container table {
                min-width: 500px;
            }
        }

        /* ==================== 暗色主题 ==================== */
        body.dark-theme {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            min-height: 100vh;
            padding: 20px;
            color: #e0e0e0;
        }

        .dark-theme .login {
            width: 350px;
            max-width: 90%;
            margin: 100px auto;
            padding: 40px;
            background: rgba(30, 30, 50, 0.95);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dark-theme .login h2 {
            text-align: center;
            margin-bottom: 30px;
            color: #a855f7;
            font-size: 28px;
        }

        .dark-theme .pwd-wrap {
            position: relative;
            width: 100%;
            margin: 10px 0;
        }
        .dark-theme .pwd-wrap input {
            margin: 0 !important;
            padding-right: 46px !important;
            box-sizing: border-box;
        }
        .dark-theme .pwd-eye {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #888;
            display: flex;
            align-items: center;
            user-select: none;
        }
        .dark-theme .pwd-eye:hover { color: #a855f7; }
        .dark-theme .pwd-eye svg { width: 20px; height: 20px; }

        .dark-theme .login input {
            width: 100%;
            padding: 15px;
            margin: 10px 0;
            border: 2px solid #3d3d5c;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s;
            background: rgba(20, 20, 40, 0.8);
            color: #e0e0e0;
        }

        .dark-theme .login input:focus {
            border-color: #a855f7;
            outline: none;
            box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
        }

        .dark-theme #app {
            background: rgba(30, 30, 50, 0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            max-width: 95%;
            margin: 0 auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dark-theme h1 {
            text-align: center;
            color: #a855f7;
            margin-bottom: 20px;
            font-size: 36px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .dark-theme .stats {
            background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
            color: white;
            padding: 15px 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            flex-wrap: wrap;
            gap: 10px;
        }

        .dark-theme .stats span {
            font-size: 16px;
            font-weight: 600;
        }

        .dark-theme .stats .nav-buttons {
            display: flex;
            gap: 8px;
        }

        .dark-theme button {
            padding: 10px 20px;
            margin: 4px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            white-space: nowrap;
            color: white;
        }

        .dark-theme button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

        .dark-theme button:active {
            transform: translateY(0);
        }

        .dark-theme .btn-primary {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            color: white;
        }

        .dark-theme .btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
            color: white;
        }

        .dark-theme .btn-warning {
            background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
            color: #1a1a2e;
        }

        .dark-theme .btn-secondary {
            background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
            color: white;
        }

        .dark-theme .btn-success {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
            color: white;
        }

        .dark-theme .btn-info {
            background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
            color: white;
        }

        /* 暗色主题表格内的小按钮统一样式 */
        .dark-theme .table-btn {
            padding: 6px 10px !important;
            font-size: 14px !important;
            min-width: 32px !important;
            min-height: 32px !important;
            border-radius: 6px !important;
        }

        .dark-theme .nav-container {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .dark-theme .nav-container button {
            min-width: 100px;
            font-size: 13px;
            padding: 8px 16px;
        }

        /* 暗色主题导航按钮样式 */
        .dark-theme .btn-nav-main, .dark-theme .btn-nav-sub, .dark-theme .btn-nav-accent {
            background: transparent;
            color: #a855f7;
            border: 2px solid #a855f7;
        }

        .dark-theme .btn-nav-main:hover, .dark-theme .btn-nav-sub:hover, .dark-theme .btn-nav-accent:hover {
            background: #a855f7;
            color: white;
            box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
        }

        .dark-theme .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .dark-theme .pagination-info {
            font-size: 14px;
            color: #e0e0e0;
            margin: 0 10px;
            font-weight: 500;
        }

        .dark-theme .pagination button {
            padding: 8px 16px;
            margin: 0;
            font-size: 14px;
            background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .dark-theme .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .dark-theme .pagination button:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
        }

        .dark-theme .pagination .active {
            background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
            color: white;
        }

        .dark-theme .export-buttons {
            display: flex;
            gap: 10px;
            margin: 15px 0;
            flex-wrap: wrap;
        }

        .dark-theme .export-buttons button {
            padding: 10px 20px;
            font-size: 14px;
        }

        .dark-theme .tab {
            display: none;
            padding: 25px;
            background: rgba(40, 40, 60, 0.98);
            border-radius: 15px;
            margin: 10px 0;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.5s;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dark-theme .tab.active {
            display: block;
        }

        .dark-theme .tab h3 {
            color: #a855f7;
            margin-bottom: 20px;
            font-size: 24px;
            padding-bottom: 10px;
            border-bottom: 3px solid #a855f7;
        }

        .dark-theme input {
            padding: 12px 20px;
            margin: 8px;
            border: 2px solid #3d3d5c;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s;
            background: rgba(20, 20, 40, 0.8);
            color: #e0e0e0;
        }

        .dark-theme input:focus {
            border-color: #a855f7;
            outline: none;
            box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
        }

        .dark-theme table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: rgba(40, 40, 60, 0.95);
            border-radius: 10px;
            overflow-x: auto;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            table-layout: auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dark-theme .table-container {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .dark-theme .table-container table {
            min-width: 600px;
            margin: 0;
        }

        .dark-theme th {
            background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
            color: white;
            padding: 12px;
            text-align: left;
            font-weight: 600;
        }

        .dark-theme td {
            padding: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: #e0e0e0;
        }

        .dark-theme tr:hover {
            background: rgba(168, 85, 247, 0.1);
        }

        .dark-theme .search-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .dark-theme .pagination-info {
            color: #a0a0a0;
        }

        /* 暗色主题下的表格详情 */
        .dark-theme #fullInventoryTable tr:hover td {
            background: rgba(168, 85, 247, 0.15);
        }

        .dark-theme .backup-item {
            background: rgba(40, 40, 60, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }

        .dark-theme .backup-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px);
        }

        .dark-theme .backup-item:hover {
            background: rgba(50, 50, 70, 0.98);
        }

        .dark-theme .backup-item .backup-info h4 {
            color: #a855f7;
            margin-bottom: 8px;
        }

        .dark-theme .backup-item .backup-info p {
            color: #a0a0a0;
            margin: 4px 0;
        }


        /* 默认应用亮色主题 */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }


        /* ==================== 导航面板样式 ==================== */
        .nav-panel {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 30px;
            backdrop-filter: blur(8px);
        }

        .nav-panel-content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            padding: 25px;
            max-width: 1100px;
            width: 95%;
            max-height: calc(100vh - 60px);
            overflow-y: auto;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
        }

        .dark-theme .nav-panel-content {
            background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
        }

        .nav-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        }

        .nav-panel-header h3 {
            color: #fff;
            font-size: 1.4rem;
            margin: 0;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .nav-panel-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
        }

        @media (max-width: 1100px) {
            .nav-panel-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 850px) {
            .nav-panel-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 600px) {
            .nav-panel-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 400px) {
            .nav-panel-grid {
                grid-template-columns: 1fr;
            }
        }

        .nav-card {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 18px 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            color: white;
            display: block;
            backdrop-filter: blur(10px);
        }

        .nav-card:hover {
            transform: scale(1.05);
            background: rgba(0, 255, 255, 0.2);
            border-color: rgba(0, 255, 255, 0.5);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
        }

        .nav-card i {
            font-size: 1.8rem;
            margin-bottom: 8px;
            display: block;
            color: #00ffff;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
        }

        .nav-card-title {
            font-size: 0.85rem;
            font-weight: 500;
            line-height: 1.3;
            color: #fff;
        }

        /* ==================== 维修手册面板样式 ==================== */
        .repair-manual-container {
            padding: 10px 0;
        }

        .manual-section {
            margin-bottom: 20px;
        }

        .manual-section-title {
            color: #fff;
            font-size: 1rem;
            margin-bottom: 10px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            border-left: 3px solid #00ffff;
        }

        .manual-model-list {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
            line-height: 1.6;
            padding: 0 5px;
        }

        .manual-card {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s;
            text-decoration: none;
            color: white;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .manual-card:hover {
            transform: translateY(-3px);
            background: rgba(0, 255, 255, 0.15);
            border-color: rgba(0, 255, 255, 0.4);
            box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
        }

        .manual-card i {
            font-size: 1.2rem;
            color: #00ffff;
        }

        /* 暗色主题下的维修手册样式 */
        .dark-theme .manual-section-title {
            background: rgba(255, 255, 255, 0.05);
            border-left-color: #a855f7;
        }

        .dark-theme .manual-card:hover {
            background: rgba(168, 85, 247, 0.15);
            border-color: rgba(168, 85, 247, 0.4);
            box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
        }

        .dark-theme .manual-card i {
            color: #a855f7;
        }

        /* ==================== 贴纸打印样式 ==================== */
        .sticker-container {
            width: 403px;  /* 4.2in ≈ 403px */
            height: 202px; /* 2.1in ≈ 202px */
            background: white;
            padding: 12px;
            position: relative;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
            overflow: hidden;
        }

        .sticker-content {
            display: flex;
            flex-direction: row;
            height: 100%;
            position: relative;
        }

        .sticker-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 6px;
            padding-right: 80px;
        }

        .sticker-info-row {
            font-size: 14px;
            line-height: 1.4;
            color: #000;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sticker-info-row strong {
            font-weight: bold;
            color: #000;
        }

        .sticker-location {
            font-size: 28px;
            font-weight: bold;
            color: #000;
            margin: 8px 0;
            padding: 4px 8px;
            border: 2px solid #000;
        }

        .sticker-remarks {
            font-size: 12px;
            color: #000;
            margin-top: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sticker-qrcode {
            width: 70px;
            height: 70px;
            position: absolute;
            right: 10px;
            top: 10px;
            background: white;
        }

        .sticker-qrcode img {
            width: 70px !important;
            height: 70px !important;
        }

        /* 自适应铺满模式样式 */
        .sticker-fill-container {
            width: 403px;
            height: 202px;
            background: white;
            padding: 12px;
            position: relative;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sticker-fill-text {
            font-weight: bold;
            color: #000;
            text-align: center;
            word-break: break-word;
            line-height: 1.1;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 打印时隐藏其他内容 */
        @media print {
            @page {
                size: 4.2in 2.1in;
                margin: 0;
            }
            
            html, body {
                width: 4.2in;
                height: 2.1in;
                margin: 0;
                padding: 0;
            }
            
            body * {
                visibility: hidden;
            }
            
            #printArea {
                visibility: visible;
                position: fixed;
                left: 0;
                top: 0;
                width: 4.2in;
                height: 2.1in;
                margin: 0;
                padding: 0;
            }
            
            #printArea * {
                visibility: visible;
            }
            
            .sticker-container {
                margin: 0;
                padding: 12px;
                box-shadow: none;
                border: 1px solid #000;
                width: 4.2in;
                height: 2.1in;
                page-break-after: avoid;
                page-break-inside: avoid;
            }
        }

        /* 贴纸预览弹窗 - 支持滚动浮动显示 */
        .sticker-preview-modal {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 9999;
            justify-content: center;
            align-items: flex-start;
            padding-top: 30px;
            overflow-y: auto;
        }

        .sticker-preview-content {
            background: white;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            max-width: 500px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .sticker-preview-content h3 {
            margin-bottom: 20px;
            color: #333;
        }

        .sticker-preview-content .btn-group {
            margin-top: 20px;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        #stickerPreviewContainer .sticker-container {
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            margin: 0 auto;
        }

        /* ==================== BOM 查询模块 ==================== */
        .btn-bom {
            background: linear-gradient(135deg, #11998e, #38ef7d);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
        }
        .btn-bom:hover { opacity: 0.88; transform: translateY(-1px); }

        .bom-header { margin-bottom: 16px; }

        .bom-search-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .bom-search-bar input {
            flex: 1;
            min-width: 220px;
            padding: 10px 14px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 15px;
            outline: none;
            transition: border-color 0.2s;
        }
        .bom-search-bar input:focus { border-color: #667eea; }

        .bom-model-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(102,126,234,0.10);
            margin-bottom: 22px;
            overflow: hidden;
            border: 1px solid #e8ecf5;
        }
        .bom-model-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 12px 18px;
            color: #fff;
        }
        .bom-model-card-header h4 { margin: 0; font-size: 17px; letter-spacing: 1px; }
        .bom-model-card-header .bom-model-actions { display: flex; gap: 8px; }
        .bom-model-card-header .bom-model-actions button {
            background: rgba(255,255,255,0.18);
            border: 1px solid rgba(255,255,255,0.35);
            color: #fff;
            border-radius: 7px;
            padding: 4px 12px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s;
        }
        .bom-model-card-header .bom-model-actions button:hover { background: rgba(255,255,255,0.32); }

        .bom-category-section { padding: 0 0 6px; }
        .bom-category-title {
            background: #f0f2ff;
            color: #667eea;
            font-weight: 700;
            font-size: 13px;
            padding: 6px 18px;
            border-bottom: 1px solid #e8ecf5;
            letter-spacing: 1px;
        }
        .bom-parts-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        .bom-parts-table th {
            background: #f7f8ff;
            color: #888;
            font-weight: 600;
            padding: 7px 14px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        .bom-parts-table td {
            padding: 7px 14px;
            border-bottom: 1px solid #f2f2f2;
            color: #333;
            vertical-align: middle;
        }
        .bom-parts-table tr:last-child td { border-bottom: none; }
        .bom-parts-table tr:hover td { background: #f9f9ff; }
        .bom-del-btn {
            background: #fff0f0;
            color: #e53935;
            border: 1px solid #ffcdd2;
            border-radius: 6px;
            padding: 3px 10px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s;
        }
        .bom-del-btn:hover { background: #ffebee; }

        .bom-outbound-btn {
            background: rgba(102, 126, 234, 0.12);
            color: #667eea;
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 6px;
            padding: 3px 10px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
            font-weight: 600;
        }
        .bom-outbound-btn:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-1px);
        }

        /* BOM 出库模态框 - 支持滚动浮动显示 */
        #bomOutboundModal {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.55);
            z-index: 9999;
            display: none;
        }

        /* 模态框内容容器 - 居中显示 */
        #bomOutboundModalContent {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .bom-empty {
            text-align: center;
            color: #bbb;
            padding: 40px 20px;
            font-size: 15px;
        }

        /* 深色主题适配 */
        .dark-theme .bom-model-card { background: #2a2a3e; border-color: #3a3a5a; }
        .dark-theme .bom-category-title { background: #232338; color: #a0a8e8; border-color: #3a3a5a; }
        .dark-theme .bom-parts-table th { background: #232338; color: #aaa; border-color: #3a3a5a; }
        .dark-theme .bom-parts-table td { color: #ccc; border-color: #333; }
        .dark-theme .bom-parts-table tr:hover td { background: #2e2e4a; }
        .dark-theme .bom-search-bar input { background: #2a2a3e; border-color: #3a3a5a; color: #eee; }
        .dark-theme .bom-search-bar input:focus { border-color: #667eea; }
        .dark-theme .bom-outbound-btn { background: rgba(102, 126, 234, 0.25); border-color: rgba(102, 126, 234, 0.4); }
        .dark-theme .bom-outbound-btn:hover { background: rgba(102, 126, 234, 0.35); }
        
        /* ========== 平板适配 (768px - 1023px) ========== */
        @media (max-width: 1023px) and (min-width: 768px) {
            .light-theme #app {
                padding: 20px;
            }
            .light-theme h1 {
                font-size: 28px;
            }
            .light-theme .stats span {
                font-size: 14px;
            }
            .light-theme button {
                padding: 8px 16px;
                font-size: 13px;
            }
            .light-theme .nav-container button {
                min-width: 80px;
                font-size: 12px;
                padding: 6px 12px;
            }
        }
        
        /* ========== 手机适配 (< 768px) ========== */
        @media (max-width: 767px) {
            body.light-theme {
                padding: 10px;
            }
            .light-theme #app {
                padding: 15px;
                border-radius: 15px;
            }
            .light-theme h1 {
                font-size: 22px;
                margin-bottom: 15px;
            }
            .light-theme .stats {
                padding: 12px 15px;
                margin-bottom: 15px;
                flex-direction: column;
                align-items: flex-start;
            }
            .light-theme .stats span {
                font-size: 13px;
            }
            .light-theme .stats .nav-buttons {
                width: 100%;
                justify-content: center;
                flex-wrap: wrap;
            }
            .light-theme .stats .nav-buttons a,
            .light-theme .stats .nav-buttons button {
                padding: 6px 10px;
                font-size: 12px;
            }
            .light-theme button {
                padding: 10px 16px;
                font-size: 14px;
                width: 100%;
                margin: 3px 0;
            }
            .light-theme .nav-container {
                flex-direction: column;
                gap: 5px;
            }
            .light-theme .nav-container button {
                min-width: auto;
                width: 100%;
                font-size: 14px;
                padding: 12px;
            }
            .theme-toggle {
                top: 10px;
                right: 10px;
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            .characters-container {
                display: none;
            }
        }
        
        /* ========== 小手机 (< 400px) ========== */
        @media (max-width: 399px) {
            .light-theme h1 {
                font-size: 20px;
            }
            .light-theme .stats span {
                font-size: 12px;
            }
            .light-theme button {
                font-size: 13px;
                padding: 8px 12px;
            }
        }
    
