/* 统计弹窗样式 */
.statistics .modal-body {
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 周统计区块样式 */
.week-stats {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.week-stats h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.week-stats h4 small {
    color: #666;
    font-size: 0.8em;
    margin-left: 10px;
}

/* 小组排名列表样式 */
.group-rankings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

/* 恢复悬停效果 */
.group-rank-item:hover {
    transform: translateX(5px);
}

/* 前三名样式 */
.group-rank-item.top-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
}

.group-rank-item.top-2 {
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
}

.group-rank-item.top-3 {
    background: linear-gradient(135deg, #8D6E63 0%, #795548 100%);
}

/* 前三名的文字颜色 */
.group-rank-item.top-1 .group-name,
.group-rank-item.top-1 .group-total,
.group-rank-item.top-1 .points,
.group-rank-item.top-2 .group-name,
.group-rank-item.top-2 .group-total,
.group-rank-item.top-2 .points,
.group-rank-item.top-3 .group-name,
.group-rank-item.top-3 .group-total,
.group-rank-item.top-3 .points {
    color: #fff;
}

/* 排名信息样式 */
.rank-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);  /* 改为白色半透明 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-number {
    font-size: 1.3em;
    color: #fff;  /* 白色文字 */
}

/* 非前三名的样式 */
.group-rank-item:not(.top-1):not(.top-2):not(.top-3) {
    background: #fff;
}

.group-rank-item:not(.top-1):not(.top-2):not(.top-3) .group-name {
    color: #333;
}

.group-rank-item:not(.top-1):not(.top-2):not(.top-3) .group-total {
    color: #666;
}

.group-rank-item:not(.top-1):not(.top-2):not(.top-3) .points {
    color: #4ecdc4;
}

.group-rank-item:not(.top-1):not(.top-2):not(.top-3) .rank-circle {
    background: rgba(0, 0, 0, 0.05);  /* 非前三名使用黑色半透明 */
}

.group-rank-item:not(.top-1):not(.top-2):not(.top-3) .rank-number {
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .group-rank-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .group-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* 周列表样式 */
.weeks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.week-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.week-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.week-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.week-number {
    font-size: 1.4em;
    font-weight: 500;
    color: #333;
}

.week-date {
    font-size: 0.9em;
    color: #666;
}

.week-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-groups {
    display: flex;
    gap: 10px;
}

.top-group {
    font-size: 1.1em;
    color: #666;
}

.arrow {
    font-size: 1.2em;
}

/* 规则标签样式 */
.rules-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    margin-bottom: 10px;  /* 减小底部间距 */
    background: #f8f9fa;  /* 添加背景色 */
    border-bottom: 1px solid #eee;  /* 添加底部边框 */
}

.rule-tab {
    flex: 1;
    min-width: 120px;
    max-width: fit-content;  /* 根据内容自适应宽度 */
    padding: 10px 15px;  /* 增加水平内边距 */
    border: none;
    border-radius: 10px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;  /* 稍微减小字体 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;  /* 文字不换行 */
    overflow: hidden;  /* 超出部分隐藏 */
    text-overflow: ellipsis;  /* 超出显示省略号 */
}

.rule-tab:hover {
    background: #e0e0e0;
}

.rule-tab.active {
    background: #4ecdc4;
    color: white;
}

/* 规则内容样式 */
.rule-content {
    display: none;
    padding: 10px 15px;  /* 调整内边距 */
}

.rule-content.active {
    display: block;
}

/* 排名列表样式 */
.rule-rankings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 前三名样式 */
.rule-rank-item:nth-child(1) {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    color: white;
}

.rule-rank-item:nth-child(2) {
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
    color: white;
}

.rule-rank-item:nth-child(3) {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: white;
}

/* 前三名的文字颜色 */
.rule-rank-item:nth-child(-n+3) span {
    color: white;
}

/* 非前三名样式 */
.rule-rank-item:nth-child(n+4) {
    background: white;
}

.rule-rank-item:nth-child(n+4) span:first-child {
    color: #333;
}

.rule-rank-item:nth-child(n+4) span:last-child {
    color: #4ecdc4;
}

/* 排名序号和名字 */
.rule-rank-item span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

/* 分数 */
.rule-rank-item span:last-child {
    font-size: 1.2em;
    font-weight: bold;
} 