/* 职业技能培训页面样式 */

/* 基础样式重置 */
* {
    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; 
}

/* 面包屑导航 */
.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;
}

/* 主标题区域 */
.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.0vw;
    color: white;
    margin: 0;
    font-weight: 400;
}

/* 培训项目区域 */
.training-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;
 
}

.training-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
}

.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;
}

/* 培训项目网格 */
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
    position: relative;
    z-index: 2;
}

/* 培训项目卡片 */
.training-card {
    background: #fff;
    border-radius: 0;
    padding: 1.5vh 1.5vw;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.training-card:hover,
.training-card:focus-within,
.training-card.selected {
    border: 2px solid #1976d2;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.training-card:hover::after,
.training-card:focus-within::after,
.training-card.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('../image/skill-training/zytsgologo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.training-card:hover::before,
.training-card:focus-within::before,
.training-card.selected::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%) translateX(50%);
    width: 100%;
    height: 100%;
    background-image: url('../image/skill-training/gologoback.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

.card-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.training-title {
    font-size: 1.0vw;
    font-weight: 600;
    color: #333;
    margin: 0;
    margin-top: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-actions {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.learn-more-btn {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    min-width: 120px;
}

.learn-more-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
    background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
}

.learn-more-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 10px rgba(25, 118, 210, 0.3);
}

/* 响应式设计 */
@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;
    }
    
    .training-section {
        padding: 6vh 4vw;
    }
    
    .comLeftImg {
        width: 6px;
        height: 6px;
    }
    
    .comText {
        margin-left: 5px;
        font-size: 2.5vw;
        font-weight: 700;
    }
    
    .training-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
    }
    
    .training-card {
        min-height: 110px;
        height: 110px;
        padding: 2.5vh 2.5vw;
        border-radius: 0;
    }
    
    .training-title {
        font-size: 2.8vw;
        margin-top: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .learn-more-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }
}

@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;
    }
    
    .training-section {
        padding: 15px;
    }
    
    .training-card {
        padding: 10px;
        border-radius: 0;
        min-height: 90px;
        height: 90px;
    }
    
    .training-title {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .learn-more-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
    }
}
