/* 员工培训区域样式 */
.training-content {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.training-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    z-index: 1;
    overflow: hidden;
    border-radius: 12px;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.training-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40%; /* 缩小宽度 */
    padding: 40px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
    max-height: 80%; /* 限制最大高度 */
    z-index: 2; /* 确保文字在图片上方 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 上下居中 */
    text-align: left; /* 文本居左 */
    border-radius: 0 12px 12px 0;
}

.talent-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.talent-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.talent-detail {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* 员工活动版块样式 - 一行两列布局 */
.activities-grid {
    margin-top: 30px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* 行容器 */
.activity-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
}

/* 通用卡片样式 */
.activity-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 260px;
    transition: all 0.6s ease;
    flex-shrink: 0;
}

/* 不规则宽度布局 - 每行交替的宽度分布 */
/* 每行两张卡片，交替显示不同的宽度比例 */
.activity-card:nth-child(4n-3) {
    width: 65%;
}

.activity-card:nth-child(4n-2) {
    width: 35%;
}

.activity-card:nth-child(4n-1) {
    width: 35%;
}

.activity-card:nth-child(4n) {
    width: 65%;
}

.activity-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

/* 不同类型卡片的颜色 */
.activity-card[data-type="card-1"]::before {
    background: rgba(0, 102, 204, 1) ;
}

.activity-card[data-type="card-2"]::before {
    background: rgba(255, 102, 0, 1);
}

.activity-card[data-type="card-3"]::before {
    background: rgba(0, 153, 51, 1);
}

.activity-card[data-type="card-4"]::before {
    background: rgba(255, 165, 0, 1)
}

.activity-card[data-type="card-5"]::before {
    background: rgb(242 179 255);
}

.activity-card[data-type="card-6"]::before {
    background: rgba(0, 204, 204, 1);
}

/* 鼠标悬停效果 */

.activity-card:hover::before {
    transform: translateY(0);
}

.activity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 20px;
    color: white;
    z-index: 2;
    transition: all 0.6s ease;
}

.activity-card:hover .activity-overlay {
    padding-bottom: 30px;
}

.activity-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-title {
    transform: translateY(-5px);
}

/* 默认隐藏副标题 */
.activity-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s ease;
}

/* 悬停时显示副标题 */
.activity-card:hover .activity-subtitle {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    margin-top: 15px;
}

/* 社会公益版块样式 */
.charity-content {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.charity-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    z-index: 1;
    overflow: hidden;
    border-radius: 12px;
}

.charity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.charity-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40%;
    padding: 40px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    max-height: 80%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    border-radius: 0 12px 12px 0;
}

.charity-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.charity-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.charity-detail {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* 工作环境卡片样式 */
.environment-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 30px;
}

.environment-item {
    flex: 1 1 calc(50% - 15px);
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.environment-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.environment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.environment-text {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.environment-title {
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    margin: 0 0 15px 0;
}

.environment-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    flex: 1;
}

/* 加入我们版块样式 */
.join-us-banner {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.join-us-image-container {
    position: relative;
    height: 480px;
}

.join-us-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.join-us-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.join-us-content {
    padding: 0 80px;
}

.join-us-title {
    font-size: 30px;
    font-weight: bold;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.join-us-link {
    font-size: 20px;
    color: white;
    text-decoration: none;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
