/* 赛事动态页面专用样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 主内容区域 */
.main-content {
    margin: 0 auto;
}

/* 主标题区域 */
.hero-section {
    background: url(../image/skill-training/trainback.png) center/cover no-repeat;
    background-size: 100% 100%;
    padding: 0 8vw;
    height: 43vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: left;
    color: white;
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 0px;
}

.main-title {
    font-size: 2vw;
    font-weight: 700;
    margin: 0 0 0 11vh;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1vh;
}

.subtitle-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0 0 0 10vh;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    width: 80%;
}

.subtitle {
    font-size: 1.2vw;
    color: white;
    margin: 0;
    font-weight: 400;
}

/* 面包屑导航 */
.breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 8vw;
    font-size: 14px;
    color: white;
    z-index: 3;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb .current {
    color: white;
    font-weight: 500;
}

/* 赛事动态区域 */
.competition-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 8vh 8vw;
    position: relative;
    min-height: 50vh;
    background-image: url(../image/talent-improve/talimpback2.png);
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
}

.competition-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.section-header {
    display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        margin-bottom: 4vh;
        position: relative;
        z-index: 2;
}

.comBoxLeft {
    display: flex;
    align-items: center;
    gap: 10px;
}


.comText {
    margin-left: 10px;
    font-size: 1.3vw;
    font-weight: 700;
    color: #333;
}

/* 赛事列表 */
.competition-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2vh;
    margin-bottom: 4vh;
    position: relative;
    z-index: 2;
}

.competition-card {
    background: white;
    border-radius: 12px;
    padding: 3vh 3vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.competition-card:hover .competition-title,
.competition-card.selected .competition-title {
    color: #328bd8;
}


.card-content {
    flex: 1;
    margin-right: 2vw;
}

.competition-title {
    font-size: 1.2vw;
    font-weight: 600;
    color: #333;
    margin: 0 0 1vh 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1vh;
}

.competition-tag {
    background: #f0f0f0;
    color: #007bff;
    padding: 0.2vh 0.8vw;
    border-radius: 6px;
    font-size: 0.8vw;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.competition-date {
    color: #666;
    font-size: 0.8vw;
    font-weight: 400;
    margin-top: 0.5vh;
}

.card-action {
    flex-shrink: 0;
}

.learn-more-btn {
    background: none;
    color: white;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 1vw;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    width: auto;
    height: auto;
}

.learn-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: none;
    background: none;
}

.btn-icon {
    width: 7.5vw;
    height: auto;
}

/* 悬浮和选中状态下的competition-card样式 */
.competition-card:hover,
.competition-card.active {
    background: #f0f8ff;
    border: 3px solid #007bff;
    box-shadow: 0 0.5vh 1.5vw rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.competition-card:hover .learn-more-btn .btn-icon,
.competition-card.active .learn-more-btn .btn-icon {
    opacity: 0;
}

.competition-card:hover .learn-more-btn::after,
.competition-card.active .learn-more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7.5vw;
    height: 3.5vw;
    background-image: url('../image/talent-improve/talljgdlogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    margin-top: 4vh;
    position: relative;
    z-index: 10;
}

.page-btn {
    background: white;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.8vh 0.8vh;
    border-radius: 6px;
    font-size: 1vw;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 3vw;
    height: 3vw;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #41a6f0;
    color: #41a6f0;
}

.page-btn.active {
    background: #41a6f0;
    color: white;
    border-color: #41a6f0;
}

.page-btn.prev-btn,
.page-btn.next-btn {
    font-size: 1.2vw;
    font-weight: bold;
}

.page-ellipsis {
    color: #999;
    font-size: 1vw;
    padding: 0 0.5vw;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 0 4vw;
    }
    
    .hero-content {
        text-align: left;
        padding-top: 15px;
    }
    
    .main-title {
        font-size: 6vw;
    }
    
    .subtitle {
        font-size: 3vw;
    }
    
    .breadcrumb {
        left: 4vw;
        bottom: 15px;
    }
    
    .competition-section {
        padding: 6vh 4vw;
    }
    
    .comLeftImg {
        width: 6px;
        height: 6px;
    }
    
    .comText {
        margin-left: 5px;
        font-size: 2.5vw;
        font-weight: 700;
    }
    
    .competition-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 3vh 4vw;
        gap: 2vh;
    }
    
    .card-content {
        margin-right: 0;
        width: 100%;
    }
    
    .competition-title {
        font-size: 3.5vw;
        margin-bottom: 2vh;
    }
    
    .card-meta {
        gap: 3vw;
    }
    
    .competition-tag {
        font-size: 2.5vw;
        padding: 0.5vh 2vw;
    }
    
    .competition-date {
        font-size: 2.5vw;
    }
    
    .learn-more-btn {
        font-size: 2.5vw;
        padding: 1.5vh 3vw;
        align-self: flex-end;
    }
    
    .btn-icon {
        width: 3vw;
    }
    
    .page-btn {
        font-size: 2.5vw;
        padding: 1vh 2vw;
        min-width: 6vw;
    }
    
    .page-btn.prev-btn,
    .page-btn.next-btn {
        font-size: 3vw;
    }
    
    .page-ellipsis {
        font-size: 2.5vw;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .hero-section {
        padding: 0 15px;
    }
    
    .hero-content {
        padding-top: 10px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .comLeftImg {
        width: 5px;
        height: 5px;
    }
    
    .comText {
        margin-left: 5px;
        font-size: 18px;
        font-weight: 700;
    }
    
    .breadcrumb {
        left: 15px;
        bottom: 10px;
        font-size: 12px;
    }
    
    .competition-section {
        padding: 15px;
    }
    
    .competition-title {
        font-size: 4vw;
    }
    
    .competition-tag {
        font-size: 3vw;
    }
    
    .competition-date {
        font-size: 3vw;
    }
    
    .learn-more-btn {
        font-size: 3vw;
        padding: 2vh 4vw;
    }
    
    .btn-icon {
        width: 4vw;
    }
    
    .page-btn {
        font-size: 3vw;
        padding: 1.5vh 2.5vw;
        min-width: 8vw;
    }
    
    .page-btn.prev-btn,
    .page-btn.next-btn {
        font-size: 4vw;
    }
    
    .page-ellipsis {
        font-size: 3vw;
    }
}
