* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #2657b4;
    --secondary: #1a3a70;
    --accent: #4a7bd9;
    --chart1: #5470c6;
    --chart2: #91cc75;
    --chart3: #fac858;
    --chart4: #ee6666;
    --chart5: #73c0de;
    --light: #f8fafd;
    --dark: #333;
    --text: #333;
    --text-light: #555;
}

body {
    background-color: #f8fafd;
    color: var(--text);
    line-height: 1.7;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    background-attachment: fixed;
}

.header {
    background: linear-gradient(135deg, #1a3a70 0%, #2657b4 100%);
    color: white;
    padding: 35px 40px;
    border-radius: 15px;
    margin-bottom: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.header::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Ccircle cx='75' cy='75' r='70' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'/%3E%3Cpath d='M0,0 L150,150 M150,0 L0,150' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header h1 i {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 12px;
    font-size: 24px;
}

.header p {
    font-size: 18px;
    opacity: 0.92;
    max-width: 850px;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.report-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
    gap: 15px;
}

.report-info div {
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
}

.download-btn {
    background: #ffffff;
    color: #2657b4;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 3;
}

.download-btn:hover {
    background: #e6f0ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 87, 180, 0.3);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: linear-gradient(to bottom right, #f7f9ff, #ffffff);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(38, 87, 180, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #2657b4;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(38, 87, 180, 0.08), transparent);
    border-radius: 0 0 0 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(38, 87, 180, 0.15);
}

.stat-card h3 {
    font-size: 16px;
    color: #555;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    font-weight: 600;
    z-index: 2;
}

.stat-card h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #e6f0ff;
    color: #2657b4;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2657b4;
    margin-bottom: 15px;
    z-index: 2;
}

.stat-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    z-index: 2;
}

.data-highlight {
    color: #2657b4;
    font-weight: 600;
}

.glowing-text {
    color: #e74c3c;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.6);
    }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2657b4;
    margin: 40px 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e6f0ff;
}

.section-title i {
    background: #e6f0ff;
    color: #2657b4;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
}

.chart-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(38, 87, 180, 0.1);
    border: 1px solid rgba(38, 87, 180, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2657b4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-header h2 i {
    background: #e6f0ff;
    color: #2657b4;
    padding: 6px;
    border-radius: 50%;
    font-size: 14px;
}

.legend-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#regionChart, #ageChart, #conversionChart, #radarChart, #performanceChart, #potentialChart {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

#projectChart {
    width: 700px;
    height: 700px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #2657b4;
    text-decoration: none;
}

#athleteDetails {
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    #regionChart, #projectChart, #ageChart, #conversionChart, #radarChart, #performanceChart, #potentialChart {
        height: 400px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* 科学建议样式 */
.insight-container {
    margin-bottom: 40px;
}

.insight-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(38, 87, 180, 0.1);
    border: 1px solid rgba(38, 87, 180, 0.1);
    position: relative;
    overflow: hidden;
}

.insight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2657b4, #3a86ff, #00b894);
}

.insight-title {
    font-size: 22px;
    font-weight: 700;
    color: #2657b4;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-title i {
    background: linear-gradient(135deg, #2657b4, #3a86ff);
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
}

.insight-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #e6f0ff;
    transition: all 0.3s ease;
}

.insight-content p:hover {
    border-left-color: #2657b4;
    background: rgba(38, 87, 180, 0.02);
    padding-left: 25px;
}

.insight-content p:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
.dashboard-footer {
    background: linear-gradient(135deg, #2657b4, #1e40af);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(38, 87, 180, 0.2);
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo i {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
}

.footer-text {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Tooltip 样式 */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 8px;
    font-size: 16px;
    color: #2657b4;
    transition: all 0.3s ease;
}

.tooltip:hover {
    transform: scale(1.1);
}

.tooltiptext {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    background-color: #2657b4;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    top: 125%;
    left: 50%;
    margin-left: -140px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #2657b4 transparent;
}

.tooltip.active .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* 图例说明样式 */
.chart-description {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(58, 134, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-description h3 {
    color: #2657b4;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-demo {
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.legend-color {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    margin-right: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.legend-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.legend-text strong {
    color: #2657b4;
    font-weight: 600;
}

.chart-note {
    background: rgba(58, 134, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #3a86ff;
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.chart-note i {
    color: #f39c12;
    margin-right: 6px;
}

.chart-note strong {
    color: #2657b4;
    font-weight: 600;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .insight-box {
        padding: 20px;
    }
    
    .insight-title {
        font-size: 20px;
    }
    
    .insight-content p {
        font-size: 15px;
        padding-left: 15px;
    }
    
    .dashboard-footer {
        padding: 25px 20px;
    }
    
    .footer-logo {
        font-size: 18px;
    }
    
    .tooltiptext {
        width: 250px;
        margin-left: -125px;
        font-size: 13px;
    }
}