
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--background-color);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
}

#container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Team Header */
.team-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.team-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--secondary-color);
    padding: 4px;
}

.team-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Analysis Cards Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

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

.analysis-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 1rem;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
}

/* Wide Card with Scrollbars */
.analysis-card.wide-card {
    grid-column: 1 / -1;
    position: relative;
    min-height: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.interactive-chart {
    position: absolute;
    top: 60px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: auto; /* 添加滚动条 */
}

.interactive-chart iframe {
    width: 100%;
    min-width: 800px; /* 保证最小宽度 */
    height: 100%;
    min-height: 600px; /* 保证最小高度 */
    border: none;
}

/* Card Titles */
.card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.card-title i {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-name {
        font-size: 2rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .analysis-card.wide-card {
        min-height: 400px;
        max-height: 70vh;
    }

    .interactive-chart {
        top: 50px;
        left: 10px;
        right: 10px;
    }

    .interactive-chart iframe {
        min-width: 100%;
        min-height: 100%;
    }
}

h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(24, 188, 156, 0.05);
}