/* 数据大屏专用样式 */

/* 大屏主体样式 */
.dashboard-body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 顶部标题栏 */
.dashboard-header {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.8), rgba(47, 79, 79, 0.8));
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
}

.header-left i {
    font-size: 28px;
    color: var(--secondary-color);
    animation: rotate 20s linear infinite;
}

.header-center h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
    letter-spacing: 8px;
}

.header-right {
    font-size: 18px;
    color: var(--secondary-color);
}

.current-time {
    font-family: "Courier New", monospace;
    font-weight: bold;
}

/* 主要内容区 */
.dashboard-main {
    padding: 30px;
}

/* 统计卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(47, 79, 79, 0.8));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-icon.users { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-icon.resources { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-icon.courses { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.stat-icon.views { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-icon.collections { background: linear-gradient(135deg, #1abc9c, #16a085); }
.stat-icon.learning { background: linear-gradient(135deg, #e91e63, #c2185b); }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: "Arial", sans-serif;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* 图表区域 */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    overflow: hidden;
}

.chart-card.large {
    flex: 1;
}

.chart-header {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.6), rgba(47, 79, 79, 0.6));
    padding: 15px 20px;
    border-bottom: 2px solid var(--secondary-color);
}

.chart-header h3 {
    font-size: 16px;
    color: var(--secondary-color);
    margin: 0;
}

.chart-header i {
    margin-right: 10px;
}

.chart-body {
    padding: 20px;
    height: 280px;
}

.chart-card.large .chart-body {
    height: 320px;
}

/* 信息区域 */
.info-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    overflow: hidden;
}

.info-header {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.6), rgba(47, 79, 79, 0.6));
    padding: 15px 20px;
    border-bottom: 2px solid var(--secondary-color);
}

.info-header h3 {
    font-size: 16px;
    color: var(--secondary-color);
    margin: 0;
}

.info-header i {
    margin-right: 10px;
}

.info-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* 表格样式 */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table thead tr {
    background: rgba(139, 0, 0, 0.3);
}

.info-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    color: var(--secondary-color);
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
}

.info-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.info-table tbody tr:hover {
    background: rgba(218, 165, 32, 0.1);
}

.info-table td {
    padding: 12px 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.progress-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.progress-badge.high {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.progress-badge.medium {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

.progress-badge.low {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* 平台概览 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.overview-item i {
    font-size: 28px;
    color: var(--secondary-color);
}

.overview-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

.overview-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.platform-desc {
    padding: 20px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.platform-desc h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.platform-desc h4 i {
    margin-right: 10px;
    font-size: 14px;
}

.platform-desc p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* 返回按钮 */
.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.6);
}

/* 滚动条样式 */
.info-body::-webkit-scrollbar {
    width: 8px;
}

.info-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.info-body::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

/* 数字动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value {
    animation: countUp 0.6s ease;
}

/* 响应式 */
@media (max-width: 1600px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .charts-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .chart-section.center {
        grid-column: 1 / -1;
    }
    
    .info-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-center h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.stat-card:hover .stat-icon {
    animation: pulse 1s ease infinite;
}

/* 装饰性元素 */
.dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(47, 79, 79, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-main {
    position: relative;
    z-index: 1;
}
