
:root {
            --primary-color: #18bc9c;
            --secondary-color: #2c3e50;
            --dark-bg: #1a1a2e;
            --sidebar-bg: #2c3e50;
            --sidebar-hover: #34495e;
            --header-bg: #1a1a2e;
        }

        /* 游戏化深色背景 */
        body {
            background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
            min-height: 100vh;
            font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
            color: #fff;
        }

        /* 登录容器 */
        .login-container {
            background: rgba(44, 62, 80, 0.95);
            border-radius: 15px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            max-width: 1000px;
            width: 90%;
            margin: 20px auto;
            display: none;
        }

        .login-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .login-header h1 {
            font-size: 2rem;
            font-weight: bold;
            margin: 0;
        }
        
        /* 确保所有模态框正确居中显示并保持合适宽度 */
        .modal-dialog {
            /* 移除之前设置的所有影响布局的样式 */
            position: relative !important;
            margin: 1.75rem auto !important;
            display: block !important;
            min-height: auto !important;
            transform: none !important;
            width: auto !important;
            max-width: none !important;
            top: auto !important;
            left: auto !important;
        }
        
        /* 对于居中的模态框，使用Bootstrap默认的居中方式 */
        .modal-dialog.modal-dialog-centered {
            display: flex !important;
            align-items: center !important;
            min-height: calc(100% - 3.5rem) !important;
            position: relative !important;
            transform: none !important;
            top: auto !important;
            left: auto !important;
            width: auto !important;
        }
        
        .modal-dialog.modal-dialog-centered::before {
            display: block !important;
            height: calc(100vh - 3.5rem) !important;
            content: "" !important;
        }
        
        /* 确保模态框内容保持合适的宽度 */
        .modal-content {
            width: 500px !important; /* 设置固定宽度 */
            margin: 0 auto !important;
        }
        
        /* 在小屏幕上自适应宽度 */
        @media (max-width: 576px) {
            .modal-content {
                width: 90vw !important; /* 在小屏幕上使用视口宽度的90% */
            }
        }
        
        /* 增强模态框显示效果 */
        .modal-backdrop {
            background-color: rgba(0, 0, 0, 0.5) !important;
        }

        .login-body {
            padding: 30px;
        }

        .server-info {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .server-info h3 {
            color: var(--primary-color);
            font-size: 1.3rem;
            margin-bottom: 15px;
        }

        .form-control {
            border-radius: 8px;
            padding: 12px 15px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s;
            background: rgba(255, 255, 255, 0.9);
            color: #000;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(24, 188, 156, 0.25);
        }

        .btn-login {
            background: linear-gradient(135deg, var(--primary-color) 0%, #15a589 100%);
            border: none;
            border-radius: 8px;
            padding: 12px;
            font-size: 1.1rem;
            font-weight: bold;
            transition: all 0.3s;
            width: 100%;
        }

        .btn-login:hover {
            background: linear-gradient(135deg, #15a589 0%, var(--primary-color) 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
            border: none;
            border-radius: 8px;
            padding: 12px;
            font-size: 1.1rem;
            font-weight: bold;
            transition: all 0.3s;
            width: 100%;
        }

        .btn-secondary:hover {
            background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .form-label {
            font-weight: 600;
            color: #fff;
            margin-bottom: 8px;
        }

        .server-select {
            cursor: pointer;
        }

        .server-option {
            padding: 15px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            margin-bottom: 10px;
            text-align: center;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .server-option:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }

        .server-option.active {
            background: linear-gradient(135deg, var(--primary-color) 0%, #15a589 100%);
            border: 2px solid var(--primary-color);
            box-shadow: 0 4px 15px rgba(24, 188, 156, 0.4);
            transform: translateY(-3px);
        }

        .footer {
            text-align: center;
            padding: 20px;
            color: #aaa;
            font-size: 0.9rem;
        }

        /* 主界面样式 */
        .wrapper {
            display: flex;
            min-height: 100vh;
            display: none;
        }

        /* 侧边栏样式 */
        #sidebar {
            width: 250px;
            background: var(--sidebar-bg);
            color: #fff;
            transition: all 0.3s;
            box-shadow: 3px 0 10px rgba(0,0,0,0.1);
            z-index: 1000;
        }

        #sidebar .sidebar-header {
            padding: 20px;
            background: var(--header-bg);
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        #sidebar .sidebar-header h3 {
            color: var(--primary-color);
            margin: 0;
            font-size: 1.5rem;
        }

        #sidebar ul.components {
            padding: 20px 0;
        }

        /* 侧边栏按钮基础样式 */
        #sidebar ul li a {
            padding: 12px 20px;
            font-size: 1.1em;
            display: flex;
            align-items: center;
            color: #fff;
            text-decoration: none;
            transition: all 0.3s;
            border-radius: 8px;
            margin: 5px 10px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        /* 侧边栏按钮特定样式 */
        .sidebar-btn {
            justify-content: flex-start;
            gap: 12px;
            font-weight: 600;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        /* 主按钮样式 */
        .sidebar-btn.primary-btn {
            background: linear-gradient(135deg, #18bc9c 0%, #15a589 100%);
            border: 2px solid rgba(255,255,255,0.1);
        }

        /* 次要按钮样式 */
        .sidebar-btn.secondary-btn {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            border: 2px solid rgba(255,255,255,0.1);
        }

        /* 图标容器样式 */
        .btn-icon-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            flex-shrink: 0;
            transition: all 0.3s;
        }

        /* 悬停效果 */
        #sidebar ul li a:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            border: 2px solid rgba(255,255,255,0.3);
        }

        #sidebar ul li a:hover .btn-icon-container {
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }

        /* 活动状态样式 */
        #sidebar ul li.active>a {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
        }

        #sidebar ul li.active>a .btn-icon-container {
            background: rgba(255,255,255,0.4);
            transform: scale(1.1);
        }

        /* 点击动画效果 */
        #sidebar ul li a:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        /* 添加发光效果 */
        #sidebar ul li a::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
            transform: scale(0);
            opacity: 0;
            transition: all 0.3s;
        }

        #sidebar ul li a:hover::before {
            transform: scale(1);
            opacity: 1;
        }

        /* 主内容区域 */
        #content {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            background-color: rgba(255, 255, 255, 0.05);
        }

        /* 顶部导航栏 */
        .navbar {
            background: var(--header-bg);
            color: white;
            padding: 15px 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .navbar-brand {
            color: var(--primary-color);
            font-weight: bold;
        }

        .navbar-nav .nav-link {
            color: #fff;
        }

        .navbar-nav .nav-link:hover {
            color: var(--primary-color);
        }

        /* 统计卡片 */
        .stat-card {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            transition: transform 0.3s;
            border: none;
            margin-bottom: 20px;
            background: rgba(44, 62, 80, 0.7);
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-card .card-header {
            font-weight: bold;
            background: linear-gradient(45deg, #18bc9c, #2c3e50);
            color: white;
            border: none;
        }

        .stat-card .number {
            font-size: 2rem;
            font-weight: bold;
            color: white;
        }

        /* 内容区域 */
        .content-section {
            background: rgba(44, 62, 80, 0.7);
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            padding: 25px;
            margin-bottom: 25px;
            border: none;
        }

        .content-header {
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 15px;
            margin-bottom: 25px;
        }

        .content-header h2 {
            color: var(--primary-color);
            font-size: 1.8rem;
            margin: 0;
        }

        /* 表格样式 */
        .table {
            color: #fff;
        }

        .table th {
            background-color: rgba(255, 255, 255, 0.1);
            font-weight: 600;
        }

        .table-hover tbody tr:hover {
            background-color: rgba(24, 188, 156, 0.2);
        }

        /* 按钮样式 */
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .btn-primary:hover {
            background-color: #15a589;
            border-color: #15a589;
        }

        .btn-success {
            background-color: #28a745;
            border-color: #28a745;
        }

        .btn-warning {
            background-color: #ffc107;
            border-color: #ffc107;
        }

        .btn-danger {
            background-color: #dc3545;
            border-color: #dc3545;
        }

        .action-btn {
            margin-right: 5px;
            font-size: 0.875rem;
            padding: 5px 10px;
        }

        /* 登录弹窗样式 */
        .login-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .login-modal-content {
            background: rgba(44, 62, 80, 0.95);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            color: #fff;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            position: absolute;
            right: 20px;
            top: 10px;
        }

        .close:hover,
        .close:focus {
            color: white;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            #sidebar {
                width: 80px;
                text-align: center;
            }

            #sidebar .sidebar-header h3 {
                font-size: 1rem;
            }

            #sidebar ul li a span {
                display: none;
            }

            #sidebar ul li a i {
                margin-right: 0;
                font-size: 1.5rem;
            }

            #sidebarCollapse {
                margin-right: 0;
            }
            
            .login-container {
                margin: 15px;
            }
            
            .login-header {
                padding: 20px;
            }
            
            .login-header h1 {
                font-size: 1.5rem;
            }
            
            .login-body {
                padding: 20px;
            }
        }

        .footer-main {
            background: var(--header-bg);
            color: white;
            padding: 15px;
            text-align: center;
            margin-top: auto;
        }
    