/**
 * 队伍公开页顶栏主导航：紧凑 + 移动端多行换行
 * 由各 team/*.php 在 team.css 之后引入
 */
.team-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 6px;
    row-gap: 4px;
    padding: 6px 10px 8px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-link:hover {
    color: #007bff;
    background: #f1f5f9;
}

.nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #eef6ff;
}

/* 联系页、活动页（body 上已定义 --brand 等变量） */
.page-team-contact .team-nav,
.page-team-activities .team-nav {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(13, 71, 161, 0.05);
    margin-bottom: 24px;
}

.page-team-contact .nav-link,
.page-team-activities .nav-link {
    color: var(--text-muted);
}

.page-team-contact .nav-link:hover,
.page-team-activities .nav-link:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.page-team-contact .nav-link.active,
.page-team-activities .nav-link.active {
    color: var(--brand-dark);
    font-weight: 600;
    border-bottom-color: var(--brand);
    background: rgba(227, 242, 253, 0.55);
}

@media (max-width: 640px) {
    .team-nav {
        padding: 6px 4px 8px;
        justify-content: center;
        gap: 2px;
    }

    .nav-link {
        padding: 7px 8px;
        font-size: 12px;
    }
}
