/* 贡献者展示区 */
.contributors-section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* 子区标题 */
.subsection-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.subsection-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--accent-yellow);
    position: absolute;
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

/* 统计容器 */
.stats-container {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

/* 统计项 */
.stat-item {
    text-align: center;
}

/* 统计值 */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--neutral-dark);
}

/* 高亮值 */
.highlight {
    color: var(--primary-color);
}

/* 统计数字加载动画 */
.highlight.loading {
    display: inline-block;
    position: relative;
    width: 3em;
    height: 1em;
    background: linear-gradient(90deg, 
        var(--neutral-light) 0%, 
        var(--neutral-lightest) 50%, 
        var(--neutral-light) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
}

/* 统计标签 */
.stat-label {
    font-size: 1rem;
    color: var(--neutral-medium);
}

/* 贡献者网格 */
.contributors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    min-height: 110px; /* 确保即使在加载时也有一定高度 */
}

/* 贡献者头像 */
.contributor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contributor-avatar.placeholder {
    opacity: 0.5;
    background-color: var(--neutral-light);
    animation: placeholderPulse 1.5s infinite alternate;
}

/* 贡献者头像悬停效果 */
.contributor-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contributor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 贡献者加载和错误状态样式 */
.contributors-loading,
.contributors-error {
    width: 100%;
    text-align: center;
    padding: var(--spacing-md);
    color: var(--neutral-medium);
    font-size: 1rem;
}

.contributors-loading i {
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
}

.contributors-error {
    color: var(--accent-pink);
}

/* 社区生态区 */
.community-ecosystem {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.ecosystem-container {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

/* 贡献者列 */
.contributors-column {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.view-all-contributors {
    margin-top: var(--spacing-md);
    margin-top: auto;
    padding-top: var(--spacing-md);
    text-align: center;
}

/* Star History 列 */
.star-history-column {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.star-chart-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.star-chart-img {
    max-width: 100%;
    border-radius: 8px;
}

.star-chart-footer {
    margin-top: auto;
    text-align: center;
}

.chart-description {
    color: var(--neutral-medium);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .ecosystem-container {
        flex-direction: column;
    }
    
    .contributors-column,
    .star-history-column {
        width: 100%;
    }
}

/* 增长趋势图表 */
.growth-trends {
    margin-top: var(--spacing-xl);
    text-align: center;
}

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

.chart-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 加载动画 */
@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* 占位符动画 */
@keyframes placeholderPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
} 