* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部 */
.header {
    text-align: center;
    color: white;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.last-update {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* 统计概览 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.95em;
}

/* 团队部分 */
.team-section, .ranking-section, .activity-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.team-section h2, .ranking-section h2, .activity-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

/* 团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.member-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2em;
    color: white;
    font-weight: bold;
}

.member-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.member-role {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.member-stat {
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.member-stat-value {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
}

.member-stat-label {
    font-size: 0.8em;
    color: #666;
}

/* 排行榜 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(10px);
}

.ranking-rank {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-right: 20px;
}

.ranking-rank.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.ranking-rank.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.ranking-rank.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.ranking-points {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.ranking-tasks {
    color: #666;
    font-size: 0.9em;
}

/* 活动列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.activity-icon {
    font-size: 1.5em;
    margin-right: 15px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.activity-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.activity-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: #999;
}

.activity-user {
    color: #667eea;
    font-weight: 600;
}

/* 页脚 */
.footer {
    text-align: center;
    color: white;
    padding: 30px 20px;
    opacity: 0.9;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.repo-link {
    margin-top: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ranking-item {
        flex-direction: column;
        text-align: center;
    }

    .ranking-rank {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
