/* 球队列表页样式 */

/* 标签切换区域 */
.tab-switch-area {
    padding: 0px 20px;
}

/* team-tabs 样式（圆形标签） */
.team-tabs {
    display: flex;
    gap: 10px;
}

.team-tab {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-tab:hover {
    background-color: #e8e8e8;
    color: #333;
}

.team-tab.active {
    background-color: #FA4A4A;
    color: #fff;
}

/* tab-nav 样式（底部边框标签 - 来自luxiang_list.htm） */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.tab-nav-item {
    text-align: center;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-nav-item:hover {
    color: #ff6b6b;
}

.tab-nav-item.active {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

/* 内容区域显示/隐藏 - 兼容两种类名 */
.tab-content,
.tab-pane {
    display: none;
}

.tab-content.active,
.tab-pane.active {
    display: block;
}

.view-more:hover {
    color: #FA4A4A;
}

/* 球队区块 */
.team-section {
    margin-bottom: 30px;
}

.team-section:last-child {
    margin-bottom: 0;
}

/* 区块头部 */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
}

.team-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.team-more {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid #ff4d4f;
    border-radius: 4px;
    color: #ff4d4f;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-more:hover {
    background-color: #ff4d4f;
    color: #fff;
}

.team-more i {
    margin-left: 4px;
}

/* 球队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

/* 球队卡片 */
.team-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #fafafa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-card:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 球队信息 */
.team-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0;
}

.team-names {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.team-name-cn {
    font-size: 14px;
    color: #333;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-name-en {
    font-size: 11px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 查看按钮 */
.team-view-btn {
    display: block;
    width: 68px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #FFFFFF;
    border-radius: 99px;
    border: 1px solid #FFCBCB;
    font-size: 14px;
    font-family: Microsoft YaHei-Regular, Microsoft YaHei;
    font-weight: 400;
    color: #FA4A4A;
}

.team-view-btn:hover {
    background-color: #ff7875;
    color: #fff;
}

/* 分页盒（来自luxiang_list.htm） */
.pagination-box {
    text-align: center;
    margin-top: 30px;
}

/* 分类标题 */
.category-section {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.category-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #ff6b6b;
    margin-right: 10px;
    border-radius: 2px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination li a:hover,
.pagination li span.current {
    color: #fff;
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.pagination-inner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-num:hover {
    border-color: #FA4A4A;
    color: #FA4A4A;
}

.page-btn.disabled,
.page-num.active {
    background-color: #FA4A4A;
    border-color: #FA4A4A;
    color: #fff;
    cursor: default;
}

.page-btn.disabled {
    background-color: #f5f5f5;
    border-color: #e8e8e8;
    color: #999;
}

.page-prev,
.page-next {
    padding: 0 15px;
}

.page-ellipsis {
    color: #999;
    padding: 0 5px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .team-tabs {
        gap: 8px;
    }
    
    .team-tab {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .tab-switch-area {
        padding: 12px 15px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .team-card {
        padding: 10px;
    }
    
    .team-logo {
        width: 36px;
        height: 36px;
    }
    
    .team-name-cn {
        font-size: 13px;
    }
    
    .team-name-en {
        font-size: 10px;
    }
    
    .pagination {
        padding: 15px;
    }
    
    .page-btn,
    .page-num {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .page-prev,
    .page-next {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
