/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    color: #2c3e50;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 优化版 */
body.theme-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
}

/* 主题2: 深色科技风格 - 优化版 */
body.theme-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
}

/* 主题3: 自然清新风格 */
body.theme-nature {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
}

/* 主题4: 日落温暖风格 */
body.theme-sunset {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* 登录和注册页面样式 */
#loginPage, #registerPage {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 登录页 */
body.theme-light #loginPage,
body.theme-light #registerPage {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* 主题2: 深色科技风格 - 登录页 */
body.theme-dark #loginPage,
body.theme-dark #registerPage {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* 主题3: 自然清新风格 - 登录页 */
body.theme-nature #loginPage,
body.theme-nature #registerPage {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* 主题4: 日落温暖风格 - 登录页 */
body.theme-sunset #loginPage,
body.theme-sunset #registerPage {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 卡片 */
body.theme-light .card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(51, 65, 85, 0.08);
    border: 1px solid rgba(51, 65, 85, 0.06);
    backdrop-filter: blur(10px);
}

/* 主题2: 深色科技风格 - 卡片 */
body.theme-dark .card {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.1);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

/* 主题3: 自然清新风格 - 卡片 */
body.theme-nature .card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(22, 101, 52, 0.1);
    border: 1px solid rgba(22, 101, 52, 0.08);
    backdrop-filter: blur(10px);
}

/* 主题4: 日落温暖风格 - 卡片 */
body.theme-sunset .card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.15);
    border: 1px solid rgba(146, 64, 14, 0.1);
    backdrop-filter: blur(10px);
}

.card-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 卡片头部 */
body.theme-light .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* 主题2: 深色科技风格 - 卡片头部 */
body.theme-dark .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 导航栏 */
body.theme-light .navbar {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    box-shadow: 0 4px 15px rgba(51, 65, 85, 0.15);
}

/* 主题2: 深色科技风格 - 导航栏 */
body.theme-dark .navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 主题3: 自然清新风格 - 导航栏 */
body.theme-nature .navbar {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.2);
}

/* 主题4: 日落温暖风格 - 导航栏 */
body.theme-sunset .navbar {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 15px rgba(146, 64, 14, 0.25);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
    transition: all 0.3s ease;
}

.nav-link {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* 主题1: 浅色现代风格 - 导航链接 */
body.theme-light .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.theme-light .nav-link.active {
    background: rgba(255, 255, 255, 0.3);
}

/* 主题2: 深色科技风格 - 导航链接 */
body.theme-dark .nav-link:hover {
    background: rgba(0, 123, 255, 0.2);
}

body.theme-dark .nav-link.active {
    background: rgba(0, 123, 255, 0.3);
}

/* 仪表板卡片样式 */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.card.bg-primary:hover, .card.bg-success:hover, .card.bg-warning:hover, .card.bg-info:hover {
    transform: translateY(-5px);
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 表格 */
body.theme-light .table {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 主题2: 深色科技风格 - 表格 */
body.theme-dark .table {
    background: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #e9ecef;
}

.table thead th {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 表格头部 */
body.theme-light .table thead th {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* 主题2: 深色科技风格 - 表格头部 */
body.theme-dark .table thead th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.table tbody tr {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #ecf0f1;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 主题1: 浅色现代风格 - 表格行 */
body.theme-light .table tbody tr:hover {
    background-color: #f1f3f4;
}

/* 主题2: 深色科技风格 - 表格行 */
body.theme-dark .table tbody tr {
    border-bottom: 1px solid #404040;
}

body.theme-dark .table tbody tr:hover {
    background-color: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* 主题2: 深色科技风格 - 表格单元格 */
body.theme-dark .table tbody td {
    color: #e9ecef;
}

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
}

/* 主题1: 浅色现代风格 - 主要按钮 */
body.theme-light .btn-primary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

/* 主题2: 深色科技风格 - 主要按钮 */
body.theme-dark .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* 主题3: 自然清新风格 - 主要按钮 */
body.theme-nature .btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* 主题4: 日落温暖风格 - 主要按钮 */
body.theme-sunset .btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
}

/* 表单控件样式 */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* 主题1: 浅色现代风格 - 表单控件 */
body.theme-light .form-control,
body.theme-light .form-select {
    border-color: #dee2e6;
    background: white;
}

body.theme-light .form-control:focus,
body.theme-light .form-select:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* 主题2: 深色科技风格 - 表单控件 */
body.theme-dark .form-control,
body.theme-dark .form-select {
    border-color: #404040;
    background: #2d2d2d;
    color: #e9ecef;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 表单标签 */
body.theme-light .form-label {
    color: #495057;
}

/* 主题2: 深色科技风格 - 表单标签 */
body.theme-dark .form-label {
    color: #e9ecef;
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    color: #3498db;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* 主题1: 浅色现代风格 - 分页 */
body.theme-light .pagination .page-link {
    color: #6c757d;
}

body.theme-light .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* 主题2: 深色科技风格 - 分页 */
body.theme-dark .pagination .page-link {
    color: #007bff;
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.theme-dark .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

body.theme-dark .pagination .page-link:hover {
    background: #404040;
}

/* 徽章样式 */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

.badge.bg-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: white;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 模态框 */
body.theme-light .modal-content {
    background: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 主题2: 深色科技风格 - 模态框 */
body.theme-dark .modal-content {
    background: #2d2d2d;
    color: #e9ecef;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    transition: all 0.3s ease;
}

/* 主题1: 浅色现代风格 - 模态框头部 */
body.theme-light .modal-header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* 主题2: 深色科技风格 - 模态框头部 */
body.theme-dark .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.modal-body {
    padding: 20px;
    transition: all 0.3s ease;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

/* 主题2: 深色科技风格 - 模态框底部 */
body.theme-dark .modal-footer {
    border-top: 1px solid #404040;
}

/* 主题切换器样式 */
.theme-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 12px;
    transition: all 0.3s ease;
    min-width: 140px;
}

/* 主题1: 浅色现代风格 - 主题切换器 */
body.theme-light .theme-switcher {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(51, 65, 85, 0.12);
    backdrop-filter: blur(10px);
}

/* 主题2: 深色科技风格 - 主题切换器 */
body.theme-dark .theme-switcher {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

/* 主题3: 自然清新风格 - 主题切换器 */
body.theme-nature .theme-switcher {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.15);
    backdrop-filter: blur(10px);
}

/* 主题4: 日落温暖风格 - 主题切换器 */
body.theme-sunset .theme-switcher {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(146, 64, 14, 0.2);
    backdrop-filter: blur(10px);
}

.theme-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin: 2px 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.theme-option:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.theme-option.active {
    background: #3498db;
    color: white;
    font-weight: 600;
}

/* 主题1: 浅色现代风格 - 主题选项 */
body.theme-light .theme-option {
    color: #495057;
}

body.theme-light .theme-option:hover {
    background: #f1f3f4;
}

body.theme-light .theme-option.active {
    background: #6c757d;
}

/* 主题2: 深色科技风格 - 主题选项 */
body.theme-dark .theme-option {
    color: #e9ecef;
}

body.theme-dark .theme-option:hover {
    background: #404040;
}

body.theme-dark .theme-option.active {
    background: #007bff;
}

/* 主题切换按钮 */
.theme-toggle-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 主题1: 浅色现代风格 - 主题切换按钮 */
body.theme-light .theme-toggle-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* 主题2: 深色科技风格 - 主题切换按钮 */
body.theme-dark .theme-toggle-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* 导航栏按钮对齐样式 */
.navbar-nav .nav-item .btn {
    min-width: 70px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
}

.navbar-nav .nav-item .btn i {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-nav .nav-item .btn {
        min-width: 60px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .navbar-nav .nav-item .btn i {
        font-size: 14px;
    }
    
    .theme-switcher {
        top: 70px;
        right: 10px;
        padding: 8px;
    }
    
    .theme-toggle-btn {
        top: 70px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .theme-option {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    #debugToggle {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    #batchCopyBtn, #batchExportBtn, #batchDeleteBtn {
        min-width: 80px;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    #selectedCount {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.footer-link:hover::before {
    left: 100%;
}

.footer-link:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.footer-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.footer-link i {
    font-size: 1.1rem;
    margin-right: 0.25rem;
    transition: transform 0.3s ease;
}

.footer-link:hover i {
    transform: scale(1.1);
}

.footer-separator {
    opacity: 0.6;
    font-weight: 300;
    user-select: none;
}

/* 确保主应用页面有足够的最小高度 */
#mainApp {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#mainApp .container-fluid {
    flex: 1;
}

/* 主题1: 浅色现代风格 - 页脚 */
body.theme-light .footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
    border-top: 1px solid rgba(51, 65, 85, 0.1);
    box-shadow: 0 -2px 10px rgba(51, 65, 85, 0.1);
}

body.theme-light .footer-link {
    color: rgba(51, 65, 85, 0.7);
}

body.theme-light .footer-link::before {
    background: linear-gradient(90deg, transparent, rgba(51, 65, 85, 0.1), transparent);
}

body.theme-light .footer-link:hover {
    color: #334155;
    background: rgba(51, 65, 85, 0.1);
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.15);
}

body.theme-light .footer-link:focus {
    outline: 2px solid rgba(51, 65, 85, 0.3);
    color: #334155;
    background: rgba(51, 65, 85, 0.15);
    transform: translateY(-1px);
}

body.theme-light .footer-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

body.theme-light .footer-separator {
    color: rgba(51, 65, 85, 0.5);
}

/* 主题2: 深色科技风格 - 页脚 */
body.theme-dark .footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.theme-dark .footer-link {
    color: rgba(226, 232, 240, 0.7);
}

body.theme-dark .footer-link::before {
    background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.1), transparent);
}

body.theme-dark .footer-link:hover {
    color: #e2e8f0;
    background: rgba(226, 232, 240, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.theme-dark .footer-link:focus {
    outline: 2px solid rgba(226, 232, 240, 0.3);
    color: #e2e8f0;
    background: rgba(226, 232, 240, 0.15);
    transform: translateY(-1px);
}

body.theme-dark .footer-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

body.theme-dark .footer-separator {
    color: rgba(226, 232, 240, 0.5);
}

/* 主题3: 自然清新风格 - 页脚 */
body.theme-nature .footer {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-top: 1px solid rgba(22, 101, 52, 0.1);
    box-shadow: 0 -2px 10px rgba(22, 101, 52, 0.1);
}

body.theme-nature .footer-link {
    color: rgba(22, 101, 52, 0.7);
}

body.theme-nature .footer-link::before {
    background: linear-gradient(90deg, transparent, rgba(22, 101, 52, 0.1), transparent);
}

body.theme-nature .footer-link:hover {
    color: #166534;
    background: rgba(22, 101, 52, 0.1);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.15);
}

body.theme-nature .footer-link:focus {
    outline: 2px solid rgba(22, 101, 52, 0.3);
    color: #166534;
    background: rgba(22, 101, 52, 0.15);
    transform: translateY(-1px);
}

body.theme-nature .footer-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

body.theme-nature .footer-separator {
    color: rgba(22, 101, 52, 0.5);
}

/* 主题4: 日落温暖风格 - 页脚 */
body.theme-sunset .footer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-top: 1px solid rgba(146, 64, 14, 0.1);
    box-shadow: 0 -2px 10px rgba(146, 64, 14, 0.1);
}

body.theme-sunset .footer-link {
    color: rgba(146, 64, 14, 0.7);
}

body.theme-sunset .footer-link::before {
    background: linear-gradient(90deg, transparent, rgba(146, 64, 14, 0.1), transparent);
}

body.theme-sunset .footer-link:hover {
    color: #92400e;
    background: rgba(146, 64, 14, 0.1);
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.15);
}

body.theme-sunset .footer-link:focus {
    outline: 2px solid rgba(146, 64, 14, 0.3);
    color: #92400e;
    background: rgba(146, 64, 14, 0.15);
    transform: translateY(-1px);
}

body.theme-sunset .footer-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

body.theme-sunset .footer-separator {
    color: rgba(146, 64, 14, 0.5);
}

/* 页脚响应式设计 */
@media (max-width: 768px) {
    .footer {
        text-align: center;
        padding: 1rem 0;
    }
    
    .footer .row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer .col-md-6 {
        width: 100%;
        text-align: center !important;
    }
    
    .footer-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.95rem;
    }
    
    .footer-link i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 0.75rem 0;
    }
    
    .footer .row {
        gap: 0.5rem;
    }
    
    .footer-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
        min-width: 80px;
        justify-content: center;
    }
    
    .footer-link i {
        font-size: 0.9rem;
        margin-right: 0.2rem;
    }
    
    .footer-separator {
        display: none;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 许可证密钥显示样式 */
.license-key {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    word-break: break-all;
}

/* 成功/错误消息样式 */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* 页面切换动画 */
.page-content {
    transition: opacity 0.3s ease;
}

.page-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 统计卡片悬停效果 */
.stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 40px;
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #6c757d;
}

/* 复制按钮样式 */
.copy-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    transition: color 0.3s ease;
}

.copy-btn:hover {
    color: #5a6fd8;
}

/* 许可证状态指示器 */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-active {
    background-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-inactive {
    background-color: #6c757d;
}

.status-suspended {
    background-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.status-expired {
    background-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
} 

/* 批量操作按钮样式 */
#batchCopyBtn, #batchExportBtn, #batchDeleteBtn {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    min-width: 120px;
}

#batchCopyBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

#batchCopyBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

#batchExportBtn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

#batchExportBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

#batchDeleteBtn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

#batchDeleteBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 禁用状态样式 */
#batchCopyBtn:disabled, #batchExportBtn:disabled, #batchDeleteBtn:disabled {
    background: #6c757d !important;
    color: #adb5bd !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}

/* 选中计数样式 */
#selectedCount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#selectedCountNumber {
    font-weight: bold;
    color: #ffd700;
}

/* 调试开关按钮样式 */
#debugToggle {
    transition: all 0.3s ease;
    border-radius: 20px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
}

#debugToggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#debugToggle.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    #debugToggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    #batchCopyBtn, #batchExportBtn, #batchDeleteBtn {
        min-width: 100px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    #selectedCount {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between.align-items-center h3 {
        margin-bottom: 0;
        text-align: center;
    }
    
    .d-flex.justify-content-between.align-items-center > div {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    #debugToggle {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        margin-right: 0.3rem;
    }
    
    #batchCopyBtn, #batchExportBtn, #batchDeleteBtn {
        min-width: 80px;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    #selectedCount {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}