/* 案例标题区域样式 */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.case-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.dashboard-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* 数据大屏弹窗样式 */
.dashboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.dashboard-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: dashboardSlideIn 0.4s ease-out;
}

@keyframes dashboardSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.dashboard-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dashboard-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-body {
    padding: 30px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.dashboard-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-row:last-child {
    margin-bottom: 0;
}

.chart-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.pie-chart {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    justify-content: center;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.deepseek { background: #667eea; }
.legend-color.doubao { background: #f093fb; }
.legend-color.tongyi { background: #4facfe; }
.legend-color.wenxin { background: #43e97b; }
.legend-color.yuanbao { background: #fa709a; }

/* 数据表格样式 */
.data-table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.keyword-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.keyword-table th,
.keyword-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.keyword-table th {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.keyword-table td {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.keyword-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.keyword-tag.success {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
    border: 1px solid #43e97b;
}

.rank-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.rank-tag.top {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.rank-tag.good {
    background: rgba(250, 112, 154, 0.2);
    color: #fa709a;
    border: 1px solid #fa709a;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .dashboard-content {
        width: 98%;
        height: 95vh;
    }
    
    .dashboard-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .dashboard-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 15px 20px;
    }
    
    .dashboard-title {
        font-size: 20px;
    }
    
    .chart-card {
        padding: 20px;
    }
    
    .keyword-table th,
    .keyword-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* 显示弹窗 */
.dashboard-modal.show {
    display: block;
}
