/* 人才价值提升页面专用样式 */

/* 主横幅区域 */
.talent-enhancement-hero {
    background: url('../image/talent-improve/talimpback.png') center/cover no-repeat;
 
    background-size: 100% 100%;
    padding: 0 8vw;
    height: 43vh;
    position: relative;
}
.hero-title-box {
    display: flex;
    align-items: flex-end;
}
/* 移除原有的网格背景，使用图片背景 */
.bannerTextImg{
    width: 7vw;

}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
   
  
    max-width: 100%;
    margin: 0 auto;
    gap: 4vw;
}

.hero-left {
    flex: 1;
    color: white;
    position: relative;
}

.hero-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 1vh;
}

.star {
    font-size: 1.5vw;
    color: #ffd700;
    animation: twinkle 2s infinite;
}

.star:nth-child(2) {
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-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;
}

.hero-arrows {
    display: flex;
    gap: 12px;
    margin: 1vh 0;
}

.arrow {
    font-size: 1.5vw;
    color: #ffd700;
    animation: slideRight 1.5s infinite;
}

.arrow:nth-child(2) {
    animation-delay: 0.3s;
}

.arrow:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideRight {
    0% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(10px); opacity: 0.7; }
    100% { transform: translateX(0); opacity: 1; }
}

.hero-subtitle {
    font-size: 1.5vw;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 300;
    margin-left: 11vh;
    margin-top: 1vh;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 40vh;
}

.hero-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
    position: relative;
    align-self: flex-end;
}

.hero-graphics {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 数据图表 */
.chart-container {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 200px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.chart-screen {
    padding: 15px;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: space-around;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100%;
}

.bar {
    width: 20px;
    background: linear-gradient(to top, #4CAF50, #8BC34A);
    border-radius: 2px 2px 0 0;
    animation: growUp 2s ease-out;
}

@keyframes growUp {
    from { height: 0; }
    to { height: var(--height, 60%); }
}

/* 云图标 */
.cloud-icon {
    position: absolute;
    top: 20%;
    right: 20%;
    font-size: 3vw;
    color: rgba(255, 255, 255, 0.8);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 笔记本电脑 */
.laptop-icon {
    position: absolute;
    bottom: 20%;
    right: 30%;
    width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.laptop-screen {
    width: 100%;
    height: 70%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin: 8px;
    position: relative;
    overflow: hidden;
}

.laptop-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.line-chart {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800);
    border-radius: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 机器人图标 */
.robot-icon {
    position: absolute;
    bottom: 10%;
    left: 20%;
    font-size: 2.5vw;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 连接线 */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    height: 1px;
    animation: flow 3s linear infinite;
}

.line-1 {
    top: 30%;
    left: 0;
    right: 0;
    animation-delay: 0s;
}

.line-2 {
    top: 60%;
    left: 0;
    right: 0;
    animation-delay: 1s;
}

.line-3 {
    top: 80%;
    left: 0;
    right: 0;
    animation-delay: 2s;
}

@keyframes flow {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* 人才价值提升通道区域 */
/* 外層包裹，承載背景圖 */
.enhancement-wrapper {
    position: relative;
    padding: 0 0 1vw 0;
    background: url(../image/index/BankBg.png);
    background-size: 100% 100%;
    background-position: bottom center;
}

.talent-enhancement-channels { 
    padding: 8vh 10vw;
    position: relative;
    min-height: 50vh;
}

.talent-enhancement-channels::before {
    content: '';
    position: absolute;
    background: url(../image/talent-improve/talimpback1.png);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 1;
}

.talent-enhancement-channels::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30vh;
    /* 背景移至外層容器，僅保留漸層裝飾可在此自定義 */
    z-index: 0; /* 降低層級，避免覆蓋後續內容 */
    opacity: 0.8;
    pointer-events: none;
}

.channels-header {
    display: flex;
    align-items: center;
    margin-bottom: 6vh;
    position: relative;
    z-index: 2;
}

.channels-icon {
    font-size: 2vw;
    margin-right: 1vw;
    color: #1976d2;
}

.channels-title {
    margin-left: 10px;
    font-size: 1.3vw;
    font-weight: 700;
    color: #333;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3vw;
    position: relative;
    z-index: 2;
}

.channel-card {
    background: url('../image/talent-improve/tstdlogoback.png') center/cover no-repeat;
    border-radius: 1vw;
    padding: 3vh 2vw;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.channel-card .card-title {
    color: black;
    text-shadow: none;
    position: relative;
    z-index: 2;
    margin-top: 5px;
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.channel-card:hover .card-icon {
    transform: scale(1.1);
}

.channel-card:hover .card-button {
    opacity: 1;
    visibility: visible;
}

.card-icon {
    margin-bottom: 1vh;
    margin-top: -5vh;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-logo {
    width: 6vw;
    height: 6vw;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.card-title {
    font-size: 1.4vw;
    font-weight: 600;
    color: #333;
    margin: 10px 0 0 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
}


.card-button:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.1);
}

.button-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}
/* =================== 新增：人才技能大赛 =================== */
.talent-competition { 
    padding: 0vh 10vw;
    position: relative; /* 確保在疊層中高於上一區塊的 ::after */
    z-index: 3;
}

.competition-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2.5vh;
}

.competition-title {
    font-size: 1.3vw;
    font-weight: 700;
    color: #333;
}

.competition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vh;
    padding: 2vh 10vw
}

.competition-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eef5;
    padding: 20px 24px;
    box-shadow: 0 6px 16px rgba(27, 79, 200, 0.06);
}

/* 交互高亮：悬浮、选中、键盘聚焦时显示轮廓 */
.competition-card:hover,
.competition-card.is-selected,
.competition-card[aria-selected="true"],
.competition-card:focus-within {
    outline: 2px solid #cfe1ff;
}

.comp-left-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.comp-content h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: #222;
}

.comp-content p {
    margin: 0;
    font-size: 14px;
    color: #67b3ff;
}

.comp-btn {
    background: #4da3ff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.comp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(77,163,255,.35); }

/* =================== 新增：科研课题研究横幅 =================== */
.research-banner {
    position: relative; 
    background-color: #004aad;
    background: url('../image/talent-improve/ketiback.png') center/cover no-repeat;
    border-radius: 14px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    overflow: hidden;
    z-index: 3;
    margin: 8vh 10vw;
}

/* 右侧进入按钮尺寸（图片） */
.research-banner > img {
    width: 200px; /* 调整为更合适的宽度 */
    height: auto;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.research-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,74,173,.8), rgba(0,96,221,.6) 55%, rgba(0,120,255,.3) 80%);
}

.research-text { position: relative; z-index: 1; color: #fff; }
.research-text h3 { margin: 0 0 6px; font-size: 28px; }
.research-text p { margin: 0; opacity: .9; font-size: 20px; }

 

.research-btn {
    position: relative;
    z-index: 1;
    background: #ff8a26;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255,138,38,.35);
}

@media (max-width: 768px) {
    .competition-title { font-size: 3.6vw; }
    .competition-grid { grid-template-columns: 1fr; }
    .competition-card { grid-template-columns: 80px 1fr auto; }
    .research-banner { height: 140px; padding: 0 20px; }
    .research-text h3 { font-size: 20px; }
    .research-text p { font-size: 16px; }
    .research-banner > img { width: 180px; }
}

/* 职业技能培训图标 */
.icon-folder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.folder-chart {
    position: relative;
    width: 40px;
    height: 40px;
}

.pie-chart {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: conic-gradient(#fff 0deg 120deg, rgba(255,255,255,0.3) 120deg 360deg);
    position: absolute;
    top: 0;
    left: 0;
}

.bar-chart-mini {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 20px;
    background: linear-gradient(to top, #fff, rgba(255,255,255,0.7));
    border-radius: 2px;
}

/* 学历提升培训图标 */
.icon-money {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF9800, #FFC107);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.money-bag {
    font-size: 2.5vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.money-chart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 15px;
    background: linear-gradient(to top, #fff, rgba(255,255,255,0.7));
    border-radius: 2px;
}

/* 员工培训图标 */
.icon-gear {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9C27B0, #E91E63);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.gear-icon {
    font-size: 2.5vw;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.trend-line {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 25px;
    height: 2px;
    background: linear-gradient(45deg, #fff, rgba(255,255,255,0.7));
    border-radius: 1px;
}

.trend-line::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #fff;
}

/* 管理咨询图标 */
.icon-documents {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #607D8B, #90A4AE);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(96, 125, 139, 0.3);
}

.document-1 {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 25px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-2 {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 25px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.person-icon, .diamond-icon {
    font-size: 1.2vw;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .talent-enhancement-hero {
        min-height: 50vh;
        padding: 0 4vw;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 4vh;
    }
    
   
    
    
    .star {
        font-size: 4vw;
    }
    
    .arrow {
        font-size: 4vw;
    }
    
    .hero-right {
        height: 30vh;
    }
    
    .chart-container {
        width: 150px;
        height: 90px;
    }
    
    .cloud-icon {
        font-size: 6vw;
    }
    
    .laptop-icon {
        width: 80px;
        height: 60px;
    }
    
    .robot-icon {
        font-size: 5vw;
    }
    
    .talent-enhancement-channels {
        padding: 6vh 4vw;
    }
    
    .channels-title {
        margin-left: 5px;
        font-size: 2.5vw;
    }
    
    .channels-icon {
        font-size: 4vw;
    }
    
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
    }
    
    .channel-card {
        min-height: 150px;
        height: 150px;
        padding: 4vh 3vw;
    }
    
    .card-title {
        font-size: 3vw;
        margin-top: 15px;
    }
    
    .card-logo {
        width: 10vw;
        height: 10vw;
    }
    
    .card-button {
        padding: 6px;
        bottom: 15px;
        opacity: 0;
        visibility: hidden;
    }
    
    .button-icon {
        width: 70px;
        height: 70px;
    }
    
    .icon-folder,
    .icon-money,
    .icon-gear,
    .icon-documents {
        width: 60px;
        height: 60px;
    }
    
    .person-icon, .diamond-icon {
        font-size: 3vw;
    }
    
    .channel-card:hover .card-button {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 3vh;
    }
    
    .channel-card {
        min-height: 120px;
        height: 120px;
        padding: 3vh 4vw;
    }
    
    .card-title {
        font-size: 4vw;
        margin-top: 10px;
    }
    
    .card-logo {
        width: 15vw;
        height: 15vw;
    }
    
    .card-button {
        padding: 5px;
        bottom: 10px;
        opacity: 0;
        visibility: hidden;
    }
    
    .button-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-folder,
    .icon-money,
    .icon-gear,
    .icon-documents {
        width: 50px;
        height: 50px;
    }
    
    .person-icon, .diamond-icon {
        font-size: 4vw;
    }
    
    .channel-card:hover .card-button {
        opacity: 1;
        visibility: visible;
    }
}
