/* 专门用于Dashboard页面的样式 */

/* 仪表盘英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #0a2239 0%, #1d1d1f 100%);
    color: white;
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.title-highlight {
    background: linear-gradient(90deg, #4568dc, #b06ab3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 仪表盘内容区域 */
.main-content.dashboard-content {
    padding: 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 仪表盘头部 */
.dashboard-header {
    text-align: center;
    margin: 30px 0;
}

.current-time {
    display: inline-flex;
    gap: 20px;
    background: #f5f5f7;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 概览卡片 */
.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.overview-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.card-icon {
    font-size: 24px;
    color: #333333;
}

.entropy-value {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 15px 0;
}

.entropy-label {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 10px;
}

.entropy-change {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.entropy-change.positive {
    color: #2ecc71;
}

.entropy-change.negative {
    color: #e74c3c;
}

/* 主仪表盘布局 */
.main-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.dashboard-main {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 25px;
    text-align: center;
}

/* 仪表盘样式 */
.entropy-gauge {
    text-align: center;
    margin: 30px 0;
}

.gauge-container {
    position: relative;
    width: 250px;
    height: 125px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.gauge {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 125px 125px 0 0;
    position: relative;
    overflow: hidden;
}

.gauge-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 125px 125px 0 0;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 45%;
    background: #333;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-45deg);
    z-index: 10;
    border-radius: 4px 4px 0 0;
}

.gauge-value {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 15px 0;
}

.gauge-label {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 20px;
}

/* 图表容器 */
.chart-container {
    height: 300px;
    background-color: #f5f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-size: 16px;
}

/* 侧边栏卡片 */
.alert-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.alert-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.alert-badge {
    background: #f5f5f7;
    color: #333333;
    padding: 5px 12px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
}

.alert-list {
    list-style: none;
    padding: 0;
}

.metrics-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-item {
    text-align: center;
    padding: 15px 0;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 14px;
    color: #86868b;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-dashboard {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 15px 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .current-time {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .dashboard-overview {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 70px 10px 30px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .overview-card {
        padding: 20px 15px;
    }
    
    .entropy-value {
        font-size: 30px;
    }
    
    .gauge-container {
        width: 200px;
        height: 100px;
    }
}