/* ========== 全局样式 ========== */

/* ========== 富文本编辑器文件预览样式 ========== */
.video-container {
    margin: 15px 0;
    text-align: center;
}

.video-container video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-container {
    margin: 15px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.text-file-container {
    margin: 15px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-file-container h6 {
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.text-file-container pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #212529;
    background: white;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.file-download {
    margin: 15px 0;
    padding: 15px;
    background: #e9ecef;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.file-download a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.file-download a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ========== 文件管理页面样式 ========== */

/* 文件卡片样式 */
.file-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.file-preview-container {
    position: relative;
    height: 150px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.file-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-card:hover .file-preview {
    transform: scale(1.05);
}

.file-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.file-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-card:hover .file-overlay {
    opacity: 1;
}

.file-overlay .btn-group {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.file-card:hover .file-overlay .btn-group {
    transform: scale(1);
}

/* 文件缩略图样式 */
.file-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* 批量操作栏样式 */
#batch-operations {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

#batch-operations .btn-group .btn {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

#batch-operations .btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 搜索表单样式 */
#search-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#search-form .form-control,
#search-form .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* 搜索输入组样式 */
#search-form .input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

#search-form .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* 高级搜索样式 */
#advanced-search {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

#advanced-search hr {
    margin: 0.5rem 0;
    border-color: #dee2e6;
}

/* 搜索历史样式 */
#search-history {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

#search-history-list .badge {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 20px;
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6;
}

#search-history-list .badge:hover {
    background-color: #e9ecef !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#search-history-list .badge .bi-x {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
}

#search-history-list .badge .bi-x:hover {
    opacity: 1;
    color: #dc3545;
}

.cursor-pointer {
    cursor: pointer;
}

/* 搜索动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 视图切换按钮样式 */
.btn-group .btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 空状态样式 */
#empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

#empty-state .bi {
    color: #6c757d;
    opacity: 0.6;
}

/* 加载状态样式 */
#loading-state {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

/* 文件类型标签样式 */
.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

/* 表格样式优化 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* 文件操作按钮样式 */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-group-sm .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 文件预览模态框样式 */
#previewModal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#previewModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#previewModal .modal-body {
    padding: 2rem;
    background-color: #f8f9fa;
}

#previewModal img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-card {
        margin-bottom: 1rem;
    }
    
    .file-preview-container {
        height: 120px;
    }
    
    .btn-group-sm .btn {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }
    
    #batch-operations .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #batch-operations .btn-group .btn {
        width: 100%;
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .col-xl-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .file-preview-container {
        height: 100px;
    }
    
    .file-card .card-body {
        padding: 0.5rem;
    }
    
    .file-card .card-title {
        font-size: 0.875rem;
    }
    
    .file-card .card-text {
        font-size: 0.75rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-card {
    animation: fadeInUp 0.6s ease forwards;
}

.file-card:nth-child(1) { animation-delay: 0.1s; }
.file-card:nth-child(2) { animation-delay: 0.2s; }
.file-card:nth-child(3) { animation-delay: 0.3s; }
.file-card:nth-child(4) { animation-delay: 0.4s; }
.file-card:nth-child(5) { animation-delay: 0.5s; }
.file-card:nth-child(6) { animation-delay: 0.6s; }
:root {
    --sidebar-width: 280px;
    --header-height: 70px;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* ========== 侧边栏样式 ========== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.sidebar-content {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 用户信息 */
.user-info .avatar {
    min-width: 40px;
}

.username {
    font-size: 15px;
    color: #fff;
}

/* 导航菜单 */
.sidebar .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.sidebar .nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 子菜单 */
.sidebar .nav-pills .nav-pills .nav-link {
    padding: 8px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7) !important;
}

.sidebar .nav-pills .nav-pills .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

/* 侧边栏底部 */
.sidebar-footer {
    margin-top: auto;
}

/* ========== 主内容区域 ========== */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.main-content.expanded {
    margin-left: 0;
}

/* 顶部工具栏 */
.main-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 页面内容 */
.page-content {
    background-color: #f8f9fa;
    overflow-y: auto;
}

/* ========== 卡片样式 ========== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ========== 统计卡片 ========== */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: skewY(-5deg);
    transform-origin: top left;
}

.stats-card.stats-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.stats-card.stats-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stats-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.stats-icon {
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========== 表格样式 ========== */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: #555;
    padding: 16px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-buttons .btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: auto;
}

/* ========== 表单样式 ========== */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

/* ========== 徽章样式 ========== */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 6px 10px;
    font-size: 11px;
}

/* 状态徽章 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.status-published {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ========== 分页样式 ========== */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #555;
    padding: 8px 12px;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== 搜索栏样式 ========== */
.search-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.search-bar .form-control {
    border-radius: 25px;
    padding-left: 40px;
}

.search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* ========== 加载动画 ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ========== 模态框样式 ========== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
}

/* ========== 工具提示 ========== */
.tooltip {
    font-size: 12px;
}

/* ========== 进度条 ========== */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.progress-bar {
    border-radius: 4px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px !important;
    }
    
    .page-content {
        padding: 16px !important;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .search-bar {
        padding: 16px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
}

/* ========== 辅助类 ========== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ========== 自定义滚动条 ========== */
.custom-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========== 动画效果 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

/* ========== 打印样式 ========== */
@media print {
    .sidebar,
    .main-header,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .page-content {
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ========== 层级下拉菜单样式 ========== */
.category-selector .dropdown-submenu {
    position: relative;
}

.category-selector .dropdown-submenu .submenu {
    position: static;
    min-width: 200px;
    display: none;
    background-color: #f8f9fa;
    border: none;
    border-top: 1px solid #dee2e6;
    border-radius: 0;
    box-shadow: none;
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.category-selector .dropdown-submenu:hover .submenu,
.category-selector .dropdown-submenu.show .submenu {
    display: block;
}

.category-selector .dropdown-item {
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    background-color: transparent;
    border: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.category-selector .dropdown-item:hover,
.category-selector .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #1e2125;
}

.category-selector .dropdown-submenu > a::after {
    display: none;
}

.category-selector .bi-chevron-right {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: auto;
}

.category-selector .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-selector .dropdown-submenu .submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #dee2e6;
        border-radius: 0;
        margin-left: 1rem;
    }
}

/* ========== 文件管理页面样式 ========== */

/* 文件卡片样式 */
.file-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.file-preview-container {
    position: relative;
    height: 150px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.file-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-card:hover .file-preview {
    transform: scale(1.05);
}

.file-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.file-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-card:hover .file-overlay {
    opacity: 1;
}

.file-overlay .btn-group {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.file-card:hover .file-overlay .btn-group {
    transform: scale(1);
}

/* 文件缩略图样式 */
.file-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* 批量操作栏样式 */
#batch-operations {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

#batch-operations .btn-group .btn {
    border-radius: 20px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

#batch-operations .btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 搜索表单样式 */
#search-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#search-form .form-control,
#search-form .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* 视图切换按钮样式 */
.btn-group .btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 空状态样式 */
#empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

#empty-state .bi {
    color: #6c757d;
    opacity: 0.6;
}

/* 加载状态样式 */
#loading-state {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

/* 文件类型标签样式 */
.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

/* 表格样式优化 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* 文件操作按钮样式 */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-group-sm .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 文件预览模态框样式 */
#previewModal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#previewModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#previewModal .modal-body {
    padding: 2rem;
    background-color: #f8f9fa;
}

#previewModal img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-card {
        margin-bottom: 1rem;
    }
    
    .file-preview-container {
        height: 120px;
    }
    
    .btn-group-sm .btn {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }
    
    #batch-operations .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #batch-operations .btn-group .btn {
        width: 100%;
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .col-xl-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .file-preview-container {
        height: 100px;
    }
    
    .file-card .card-body {
        padding: 0.5rem;
    }
    
    .file-card .card-title {
        font-size: 0.875rem;
    }
    
    .file-card .card-text {
        font-size: 0.75rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-card {
    animation: fadeInUp 0.6s ease forwards;
}

.file-card:nth-child(1) { animation-delay: 0.1s; }
.file-card:nth-child(2) { animation-delay: 0.2s; }
.file-card:nth-child(3) { animation-delay: 0.3s; }
.file-card:nth-child(4) { animation-delay: 0.4s; }
.file-card:nth-child(5) { animation-delay: 0.5s; }
.file-card:nth-child(6) { animation-delay: 0.6s; }

/* 拖拽上传区域样式 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: scale(1.02);
}

.upload-area .upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-area:hover .upload-icon {
    color: #007bff;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

/* 文件上传成功动画 */
@keyframes uploadSuccess {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.upload-success {
    animation: uploadSuccess 0.6s ease forwards;
}

/* 文件删除确认样式 */
.delete-confirm {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.delete-confirm .alert-icon {
    color: #e53e3e;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* 文件统计卡片样式 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.stats-card .stats-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stats-card .stats-label {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* 文件类型统计样式 */
.type-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.type-stat-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.type-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 响应式搜索样式 */
@media (max-width: 768px) {
    #search-form .row {
        margin: 0;
    }
    
    #search-form .col-md-3,
    #search-form .col-md-2 {
        padding: 0.25rem;
    }
    
    #advanced-search .row {
        margin: 0;
    }
    
    #advanced-search .col-md-3 {
        padding: 0.25rem;
    }
    
    #search-history-list {
        flex-direction: column;
    }
    
    #search-history-list .badge {
        margin-bottom: 0.25rem;
        text-align: center;
    }
    
    .file-card {
        margin-bottom: 1rem;
    }
    
    .batch-operations .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .batch-operations .btn {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .search-form .row {
        margin: 0;
    }
    
    .search-form .col-md-3,
    .search-form .col-md-2 {
        padding: 0.25rem;
    }
    
    .file-card .card-body {
        padding: 0.5rem;
    }
    
    #search-form .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    #search-form .d-flex {
        flex-direction: column;
    }
    
    #search-form .gap-2 {
        gap: 0.25rem !important;
    }
}

.type-stat-item .type-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.type-stat-item .type-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.type-stat-item .type-size {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 轮播图管理样式 */
.banner-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.banner-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.drag-handle {
    transition: all 0.2s ease;
}

.drag-handle:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.1);
}

/* 拖拽时的视觉反馈 */
.banner-card.drag-over {
    border: 2px dashed #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

/* 轮播图卡片动画 */
.banner-card {
    animation: fadeInUp 0.3s ease-out;
}

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

/* 轮播图状态标签样式 */
.banner-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 轮播图操作按钮样式 */
.banner-card .action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.banner-card .action-buttons .btn:hover {
    transform: scale(1.1);
}

/* 轮播图预览模态框样式 */
#previewModal .modal-body img {
    max-height: 60vh;
    object-fit: contain;
}

/* 轮播图统计卡片样式 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card h4 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-card small {
    opacity: 0.8;
}

/* 轮播图导入导出样式 */
.import-export-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.import-export-section .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 轮播图搜索表单样式 */
#search-form .form-control:focus,
#search-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 轮播图批量操作栏样式 */
#batch-operations {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

#batch-operations .btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

#batch-operations .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 轮播图分页样式 */
.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 轮播图空状态样式 */
#empty-state {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 3rem 1rem;
}

#empty-state i {
    color: #6c757d;
    font-size: 4rem;
}

/* 轮播图加载状态样式 */
#loading-state {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 响应式轮播图网格 */
@media (max-width: 768px) {
    .banner-card .action-buttons {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .banner-card .action-buttons .btn {
        flex: 1;
        min-width: 40px;
    }
    
    .drag-handle {
        display: none;
    }
}

@media (max-width: 576px) {
    .banner-card .card-body {
        padding: 0.75rem;
    }
    
    .banner-card .card-footer {
        padding: 0.5rem;
    }
    
    .banner-card .action-buttons .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* 个人中心样式 */
.profile-avatar {
    transition: transform 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.profile-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.profile-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.profile-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 密码强度指示器 */
.password-strength-indicator {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength-text {
    font-size: 12px;
    font-weight: 500;
}

/* 密码可见性切换按钮 */
.password-toggle-btn {
    border-left: none;
}

.password-toggle-btn:hover {
    background-color: #e9ecef;
}

/* 个人资料表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* 偏好设置开关样式 */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 账户信息卡片样式 */
.account-info-card .form-control-plaintext {
    color: #495057;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    .profile-avatar .btn {
        width: 28px;
        height: 28px;
    }
    
    .profile-card .card-body {
        padding: 1rem;
    }
}

/* 修改密码模态框样式 */
#changePasswordModal .modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

#changePasswordModal .modal-title {
    font-weight: 600;
}

#changePasswordModal .btn-close {
    filter: invert(1);
}

#changePasswordModal .alert-info {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

#changePasswordModal .alert-info h6 {
    color: #667eea;
}

/* 密码要求列表样式 */
#changePasswordModal .alert ul {
    padding-left: 1.2rem;
}

#changePasswordModal .alert li {
    margin-bottom: 0.25rem;
    color: #6c757d;
}

/* 密码匹配指示器动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

#password-match-indicator {
    animation: fadeIn 0.3s ease;
}

/* 头像上传进度样式 */
.avatar-upload-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
}

/* 个人资料保存按钮样式 */
.profile-save-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    transition: all 0.3s ease;
}

.profile-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 修改密码按钮样式 */
.change-password-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    transition: all 0.3s ease;
}

.change-password-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 系统监控样式 */
.system-monitor-card {
    transition: transform 0.2s ease-in-out;
}

.system-monitor-card:hover {
    transform: translateY(-2px);
}

.system-monitor-card .card-body {
    padding: 1.5rem;
}

.system-monitor-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.system-monitor-card .bi {
    opacity: 0.8;
}

/* 性能图表容器 */
.performance-chart-container {
    position: relative;
    height: 300px;
}

.alert-chart-container {
    position: relative;
    height: 300px;
}

/* 告警表格样式 */
.alert-row {
    transition: background-color 0.2s ease;
}

.alert-row:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.alert-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 告警过滤按钮 */
.alert-filter-btn {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.alert-filter-btn.active {
    font-weight: 600;
}

/* 系统概览卡片渐变 */
.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

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

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

/* 监控数据加载动画 */
.monitor-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .system-monitor-card h3 {
        font-size: 2rem;
    }
    
    .system-monitor-card .bi {
        font-size: 2rem !important;
    }
    
    .performance-chart-container,
    .alert-chart-container {
        height: 250px;
    }
}

/* 监控面板优化样式 */

/* 仪表盘样式 */
.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: conic-gradient(
        var(--progress-color, #28a745) 0deg,
        var(--progress-color, #28a745) calc(var(--progress, 0) * 3.6deg),
        #e9ecef calc(var(--progress, 0) * 3.6deg),
        #e9ecef 360deg
    );
    transition: all 0.3s ease;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    z-index: 1;
}

.progress-circle-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--progress-color, #28a745);
    z-index: 2;
    position: relative;
}

.progress-circle-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
    z-index: 2;
    position: relative;
}

/* 仪表盘颜色主题 */
.progress-circle-success {
    --progress-color: #28a745;
}

.progress-circle-info {
    --progress-color: #17a2b8;
}

.progress-circle-warning {
    --progress-color: #ffc107;
}

.progress-circle-danger {
    --progress-color: #dc3545;
}

/* 大屏模式样式 */
.modal-fullscreen .modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.modal-fullscreen .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-fullscreen .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 实时数据指示器 */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
}

.trend-indicator.up {
    color: #28a745;
}

.trend-indicator.down {
    color: #dc3545;
}

.trend-indicator.stable {
    color: #6c757d;
}

/* 监控面板动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.monitor-card {
    transition: all 0.3s ease;
}

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

.monitor-card.critical {
    animation: pulse 2s infinite;
}

/* 时间范围选择器 */
.time-range-selector .btn {
    border-radius: 0;
    border-left: none;
}

.time-range-selector .btn:first-child {
    border-left: 1px solid #dee2e6;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.time-range-selector .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* 告警状态指示器 */
.alert-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.alert-status-indicator.critical {
    background-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.alert-status-indicator.error {
    background-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.alert-status-indicator.warning {
    background-color: #17a2b8;
    box-shadow: 0 0 8px rgba(23, 162, 184, 0.5);
}

/* 系统活动图表容器 */
.activity-chart-container {
    position: relative;
    height: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-circle {
        width: 80px;
        height: 80px;
    }
    
    .progress-circle::before {
        width: 60px;
        height: 60px;
    }
    
    .progress-circle-value {
        font-size: 1.25rem;
    }
    
    .progress-circle-label {
        font-size: 0.75rem;
    }
    
    .modal-fullscreen .modal-body {
        padding: 1rem;
    }
}

/* 数据导出按钮样式 */
.export-btn {
    position: relative;
    overflow: hidden;
}

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

.export-btn:hover::before {
    left: 100%;
}

/* 报告生成进度条 */
.report-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 9999;
}

.report-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    width: 0%;
    transition: width 0.3s ease;
}

/* 监控大屏全屏样式 */
.fullscreen-monitor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9998;
    overflow: hidden;
}

.fullscreen-monitor .monitor-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fullscreen-monitor .monitor-header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fullscreen-monitor .monitor-body {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

/* 数据可视化增强 */
.chart-container {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 性能指标卡片 */
.performance-metric {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.performance-metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.performance-metric .metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.performance-metric .metric-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 告警列表增强 */
.alert-list {
    max-height: 400px;
    overflow-y: auto;
}

.alert-item {
    padding: 1rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.alert-item.critical {
    border-left-color: #dc3545;
}

.alert-item.error {
    border-left-color: #ffc107;
}

.alert-item.warning {
    border-left-color: #17a2b8;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 数据表格增强 */
.monitor-table {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    overflow: hidden;
}

.monitor-table th {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.monitor-table td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.monitor-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 分页样式增强 */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.pagination .page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
}

/* 工具提示增强 */
.tooltip {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: white;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== 监控大屏炫酷样式 ===== */

/* 监控大屏背景和整体样式 */
.modal-fullscreen .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: none;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-fullscreen .modal-header {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* 渐变卡片背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 8px 32px rgba(17, 153, 142, 0.3);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(240, 147, 251, 0.3);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

/* 卡片悬停效果 */
.modal-fullscreen .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.modal-fullscreen .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 进度条动画 */
.modal-fullscreen .progress-bar {
    transition: width 0.8s ease-in-out;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 300% 100%;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 图标动画 */
.modal-fullscreen .fs-1 i {
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px currentColor);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 状态徽章动画 */
.modal-fullscreen .badge {
    animation: badgeGlow 1.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.modal-fullscreen .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShine 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

@keyframes badgeShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 表格行悬停效果 */
.modal-fullscreen .table-hover tbody tr {
    transition: all 0.2s ease;
}

.modal-fullscreen .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 按钮组样式 */
.modal-fullscreen .btn-group .btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-fullscreen .btn-group .btn:hover,
.modal-fullscreen .btn-group .btn.active {
    background: rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
    color: white;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

/* 时间戳闪烁效果 */
.modal-fullscreen #fs-timestamp {
    animation: timestampBlink 3s ease-in-out infinite;
    font-weight: 500;
}

@keyframes timestampBlink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 刷新计数动画 */
.modal-fullscreen #fs-refresh-count {
    animation: countBounce 0.5s ease-in-out;
    font-weight: bold;
}

@keyframes countBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 数据更新闪烁效果 */
.modal-fullscreen .card-body h3 {
    transition: all 0.3s ease;
}

.modal-fullscreen .card-body h3.updated {
    animation: dataUpdate 0.6s ease-in-out;
}

@keyframes dataUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #fff; }
    100% { transform: scale(1); }
}

/* 系统信息卡片样式 */
.modal-fullscreen .border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
}

.modal-fullscreen .border-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* 图表容器样式 */
.modal-fullscreen canvas {
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .modal-fullscreen .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .modal-fullscreen .fs-1 {
        font-size: 2rem !important;
    }
    
    .modal-fullscreen .card-body h3 {
        font-size: 1.5rem;
    }
}

/* 深色主题优化 */
.modal-fullscreen .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.modal-fullscreen .table-dark {
    background: transparent;
}

.modal-fullscreen .table-dark th {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-fullscreen .table-dark td {
    border-color: rgba(255, 255, 255, 0.1);
}

/* 加载状态指示器 */
.modal-fullscreen .loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.modal-fullscreen .loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25em;
}

/* ===== 无感刷新动画样式 ===== */

/* 数值更新动画 */
.value-updating {
    animation: valueUpdate 0.5s ease-in-out;
    position: relative;
}

.value-updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: valueShine 0.5s ease-in-out;
}

@keyframes valueUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); color: #fff; }
    100% { transform: scale(1); }
}

@keyframes valueShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 进度条平滑过渡 */
.progress-bar {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图表无感更新 */
.chart-container {
    position: relative;
}

.chart-container.updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    animation: chartUpdate 0.3s ease-in-out;
}

@keyframes chartUpdate {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 卡片数据更新指示器 */
.card-body h3.updating {
    animation: cardDataUpdate 0.6s ease-in-out;
}

@keyframes cardDataUpdate {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); color: #fff; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 仪表盘更新动画 */
.progress-circle.updating {
    animation: gaugeUpdate 0.8s ease-in-out;
}

@keyframes gaugeUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 表格行更新动画 */
.table-hover tbody tr.updating {
    animation: rowUpdate 0.4s ease-in-out;
}

@keyframes rowUpdate {
    0% { background: rgba(255, 255, 255, 0.1); }
    50% { background: rgba(255, 255, 255, 0.2); }
    100% { background: transparent; }
}

/* 表格淡入淡出效果 */
.table-responsive {
    transition: opacity 0.2s ease-in-out;
}

.table-responsive.loading {
    opacity: 0.6;
}

/* 分页淡入淡出效果 */
.pagination {
    transition: opacity 0.2s ease-in-out;
}

.pagination.loading {
    opacity: 0.6;
}

/* 告警表格行动画 */
.alert-row {
    transition: all 0.2s ease-in-out;
}

.alert-row:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 表格内容更新指示器 */
.table-updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: tableShine 0.5s ease-in-out;
    pointer-events: none;
}

@keyframes tableShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 状态指示器动画 */
.status-indicator {
    position: relative;
    overflow: hidden;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: statusShine 2s ease-in-out infinite;
}

@keyframes statusShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 无感刷新加载指示器 */
.silent-refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.silent-refresh-indicator.show {
    opacity: 1;
}

.silent-refresh-indicator .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* 数据变化提示 */
.data-change-hint {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: dataChangePulse 1s ease-in-out infinite;
}

@keyframes dataChangePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

/* 响应式无感刷新优化 */
@media (max-width: 768px) {
    .value-updating {
        animation-duration: 0.3s;
    }
    
    .progress-bar {
        transition-duration: 0.5s;
    }
}

/* 性能优化：减少重绘 */
.silent-update {
    will-change: transform, opacity;
}

.silent-update * {
    will-change: auto;
}

/* ===== 大屏界面优化 ===== */

/* 大屏文本更新动画 */
.text-updating {
    animation: textUpdate 0.3s ease-in-out;
    position: relative;
}

.text-updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: textShine 0.3s ease-in-out;
}

@keyframes textUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

@keyframes textShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 大屏数值更新优化 */
.modal-fullscreen .fs-value {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-fullscreen .fs-value.updating {
    animation: fsValueUpdate 0.4s ease-in-out;
}

@keyframes fsValueUpdate {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* 大屏进度条优化 */
.modal-fullscreen .progress {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-fullscreen .progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 大屏表格优化 */
.modal-fullscreen .table {
    transition: opacity 0.3s ease-in-out;
}

.modal-fullscreen .table.updating {
    opacity: 0.7;
}

/* 大屏卡片优化 */
.modal-fullscreen .card {
    transition: all 0.3s ease-in-out;
}

.modal-fullscreen .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 大屏状态指示器优化 */
.modal-fullscreen .status-indicator {
    transition: all 0.3s ease-in-out;
}

.modal-fullscreen .status-indicator.updating {
    animation: statusUpdate 0.5s ease-in-out;
}

@keyframes statusUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 大屏时间戳优化 */
.modal-fullscreen .timestamp {
    transition: opacity 0.3s ease-in-out;
}

.modal-fullscreen .timestamp.updating {
    opacity: 0.6;
}

/* 大屏状态指示器优化 - 减少闪烁 */
.modal-fullscreen .badge {
    transition: all 0.3s ease-in-out;
}

.modal-fullscreen .badge.bg-success {
    animation: none; /* 移除动画，保持稳定 */
}

/* 大屏标题区域优化 */
.modal-fullscreen .modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-bottom: none;
}

.modal-fullscreen .modal-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 大屏实时监控标识 */
.modal-fullscreen .badge.bg-success i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 大屏刷新计数优化 */
.modal-fullscreen .refresh-count {
    transition: all 0.3s ease-in-out;
}

.modal-fullscreen .refresh-count.updating {
    animation: countUpdate 0.4s ease-in-out;
}

@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #fff; }
    100% { transform: scale(1); }
}

/* 大屏响应式优化 */
@media (max-width: 768px) {
    .modal-fullscreen .text-updating {
        animation-duration: 0.2s;
    }
    
    .modal-fullscreen .progress {
        transition-duration: 0.5s;
    }
    
    .modal-fullscreen .card:hover {
        transform: none;
    }
}

/* ========== 访问统计页面样式 ========== */

/* 统计卡片样式 */
.border-left-primary {
    border-left: 4px solid #007bff !important;
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 4px solid #ffc107 !important;
}

.border-left-danger {
    border-left: 4px solid #dc3545 !important;
}

/* 统计卡片内容样式 */
.text-xs {
    font-size: 0.75rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-gray-800 {
    color: #343a40 !important;
}

.text-gray-300 {
    color: #dee2e6 !important;
}

/* 图表容器样式 */
.card-body canvas {
    max-height: 300px;
}

/* 热门内容列表样式 */
.popular-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.popular-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 搜索关键词卡片样式 */
.search-keyword-card {
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-keyword-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.search-keyword-card .card-body {
    padding: 1rem;
}

.search-keyword-card .fw-bold {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.search-keyword-card .text-muted {
    font-size: 0.8rem;
}

/* 访问记录表格样式 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* 访问类型徽章样式 */
.badge.bg-primary {
    background-color: #007bff !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* 日期范围选择样式 */
#date-range-display {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.btn-group-sm .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* 图表响应式优化 */
@media (max-width: 768px) {
    .card-body canvas {
        max-height: 200px;
    }
    
    .popular-item {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .search-keyword-card .card-body {
        padding: 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* 加载动画优化 */
.spinner-border.text-primary {
    width: 2rem;
    height: 2rem;
}

/* 空数据提示样式 */
.text-muted.text-center {
    padding: 2rem;
    font-style: italic;
    color: #6c757d !important;
}

/* 分页样式优化 */
.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}
