/* 团队展示样式 */
/* 全局尺寸规范 - 与style.css保持一致 */
:root {
    /* 网站标准尺寸 */
    --site-width: 1920px;
    --site-height: 1080px;
    
    /* 主体内容区域宽度 */
    --content-width: 1200px;
    
    /* 导航栏高度范围 */
    --navbar-height-min: 60px;
    --navbar-height-max: 100px;
    
    /* Banner高度范围 */
    --banner-height-min: 300px;
    --banner-height-max: 800px;
}

.group-showcase {
    background-color: rgba(26, 26, 26, 0.65);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.showcase-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #ff85c0);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.showcase-name {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff69b4;
}

.group-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc;
}

.group-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background-color: rgba(45, 45, 45, 0.7);
    padding: 20px;
    border-radius: 10px;
    min-width: 120px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #ff69b4;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #888888;
}

.group-division {
    margin-bottom: 40px;
}

.division-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ff69b4;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.division-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 30px;
    background-color: #ff69b4;
    border-radius: 5px;
    margin-right: 10px;
}

/* 参赛队伍列表网格 */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* 参赛队伍卡片样式 */
.team-card {
    background-color: rgba(26, 26, 26, 0.65);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
    border-top: 4px solid var(--team-color, #ff69b4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.team-logo {
    width: 80px;
    height: 80px;
    background-color: #ff69b4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-info {
    flex: 1;
    padding: 20px 20px 20px 0;
}

.team-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.team-description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.team-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #aaa;
    flex-wrap: wrap;
}

.team-stats .stat {
    background-color: rgba(45, 45, 45, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
}

.btn-view-team-details {
    background-color: var(--team-color, #ff69b4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-view-team-details:hover {
    opacity: 0.9;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background-color: rgba(26, 26, 26, 0.85);
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    color: #fff;
}

/* 团队详情样式 */
.team-detail-header {
    text-align: center;
    padding: 40px 20px 30px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.team-detail-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff69b4, #ff85c0);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 25px;
    border-radius: 50%;
}

.team-detail-name {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: #fff;
    font-weight: 800;
}

.team-detail-content {
    padding: 40px 30px;
    background-color: rgba(24, 24, 24, 0.95);
    border-radius: 0 0 15px 15px;
}

.team-detail-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 40px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.team-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.team-detail-stats .stat-item {
    background: linear-gradient(135deg, #2d2d2d, #222222);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.team-detail-stats .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff69b4;
    margin-bottom: 8px;
    display: block;
}

.team-detail-stats .stat-label {
    font-size: 1rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.team-highlights {
    margin-bottom: 40px;
    background: rgba(30, 30, 30, 0.7);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.team-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-left: 20px;
    font-weight: 700;
}

.team-highlights h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #ff69b4, #ff85c0);
    border-radius: 2px;
}

.team-highlights ul {
    padding-left: 20px;
    margin: 0;
}

.team-highlights li {
    margin-bottom: 12px;
    color: #e0e0e0;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.team-highlights li::before {
    content: '❀';
    color: #ff69b4;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.modal-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    background-color: rgba(45, 45, 45, 0.3);
}

.members-section {
    margin-bottom: 40px;
}

.members-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.members-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff69b4, transparent);
    border-radius: 3px;
}

.close-modal-btn {
    background: linear-gradient(135deg, #666, #777);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.close-modal-btn:hover {
    background: linear-gradient(135deg, #555, #666);
}

/* 筛选和搜索功能 */
.teams-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(26, 26, 26, 0.9);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.teams-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 25px;
    font-size: 14px;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #ff69b4;
}

.search-input::placeholder {
    color: #888888;
}

/* 空状态样式 */
.teams-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888888;
}

.teams-empty h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #cccccc;
}

.teams-empty p {
    font-size: 16px;
    line-height: 1.6;
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.teams-loading {
    text-align: center;
    padding: 40px;
    color: #888888;
    animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .team-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teams-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .teams-search {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .team-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .group-stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .showcase-name {
        font-size: 28px;
    }
    
    .showcase-logo {
        width: 120px;
        height: 120px;
        font-size: 36px;
    }
    
    .search-input {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .team-detail-stats {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    
    .team-logo {
        margin: 20px auto;
    }
    
    .team-info {
        padding: 0 20px 20px;
    }
    
    .group-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
    
    .showcase-name {
        font-size: 24px;
    }
    
    .showcase-logo {
        width: 100px;
        height: 100px;
        font-size: 32px;
    }
    
    .group-description {
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .team-detail-content {
        padding: 20px;
    }
    
    .team-detail-name {
        font-size: 1.5rem;
    }
    
    .search-input {
        min-width: 120px;
        font-size: 12px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 焦点样式 */
*:focus {
    outline: 2px solid #ff69b4;
    outline-offset: 2px;
}

/* 自定义滚动条 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #ff85c0;
}
