/* 优化后的CSS代码 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img { 
	width: 100%;
	display: block;
}

.mymain {
    width: 1200px;
    overflow: hidden;
    margin: 0 auto;
}
.fl {float: left;}

.fr {float: right;}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式 - 已更新 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .main-title {
    font-size: 42px;
    color: #ff4d7d;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title .main-title:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff4d7d, #ff8da1);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title .sub-title {
    font-size: 20px;
    color: #666;
}

/* 按钮样式 */
.consult-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 60px;
    background: linear-gradient(135deg, #ff4d7d, #ff8da1);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 77, 125, 0.3);
}

.consult-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 77, 125, 0.4);
}

/* 首图区域 */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../images/banner.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
}

/* 指导服务部分  */
.guidance-section {
    padding: 80px 0;
    background-color: white;
}

.timeline-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.timeline-card {
    width: 23%;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;
}

.timeline-card:hover {
    transform: translateY(-10px);
    border-color: #ff4d7d;
}

.timeline-card .card-image {
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.timeline-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-card:hover .card-image img {
    transform: scale(1.1);
}

.timeline-card .number {
    width: 40px;
    height: 40px;
    background: #ff4d7d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: -50px auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 5px #f9f9f9;
}

.timeline-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ff4d7d;
}

.timeline-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 就业体系流程图样式 */
.employment-system {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow-x: auto;
}

.employment-system .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 曲线时间轴容器 */
.timeline-flow.curved-timeline {
    position: relative;
    padding: 170px 0;
    display: flex;
    min-height: 400px;
    justify-content: space-between;
    align-items: center;
}

/* SVG曲线样式 */
.timeline-curve {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-50%);
    z-index: 1;
}

/* 步骤容器 */
.timeline-flow.curved-timeline .timeline-step {
    position: relative;
    width: 15%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 奇数步骤在下，偶数步骤在上 - 形成交替节奏 */
.timeline-flow.curved-timeline .timeline-step:nth-child(odd) .step-content {
    transform: translateY(175px); /* 下移固定距离 */
}

.timeline-flow.curved-timeline .timeline-step:nth-child(even) .step-content {
    transform: translateY(-175px); /* 上移固定距离 */
}

/* 卡片样式 */
.step-content {
    width: 100%;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 图标样式 */
.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #ff4d7d;
}

/* 步骤数字 - 悬浮于曲线上 */
.step-number {
    width: 45px;
    height: 45px;
    background: #ff4d7d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(255, 77, 125, 0.3);
}

/* 标题和内容样式 */
.step-content h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.step-detail p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 活动与支持合并部分 - 优化版 */
.activities-support-section-improved {
    padding: 80px 0;
    background-color: white;
}

.activities-support-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    gap: 30px;
    margin-top: 40px;
}

.activities-header, .support-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 77, 125, 0.05) 0%, rgba(255, 141, 161, 0.05) 100%);
    border-radius: 10px;
    border-left: 4px solid #ff4d7d;
}

.activities-header h2, .support-header h2 {
    font-size: 24px;
    color: #ff4d7d;
    margin-bottom: 10px;
}

.activities-header p, .support-header p {
    color: #666;
}

.activities-header {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.support-header {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

.activities-container-improved {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.activity-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: white;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.activity-image {
    position: relative;
    height: 215px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4d7d;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.activity-content {
    padding: 20px;
}

.activity-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.activity-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.activity-link {
    color: #ff4d7d;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.activity-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.activity-link:hover i {
    transform: translateX(5px);
}

.support-container-improved {
    grid-column: 1 / 2;
    grid-row: 5 / 6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.support-card-improved {
    padding: 20px;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.support-card-improved:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: #ff4d7d;
    transition: all 0.3s ease;
}

.support-card-improved:hover .support-icon {
    background: #ff4d7d;
    color: white;
}

.support-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.support-content p {
    font-size: 14px;
    color: #666;
}

/* 创新网格布局 - 不对称图片排列 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 80px);
    gap: 15px;
    margin-top: 50px;
}

.masonry-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.masonry-item:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
}

.masonry-item:nth-child(2) {
    grid-column: 5 / 9;
    grid-row: 1 / 3;
}

.masonry-item:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1 / 4;
}

.masonry-item:nth-child(4) {
    grid-column: 1 / 5;
    grid-row: 4 / 7;
}

.masonry-item:nth-child(5) {
    grid-column: 5 / 9;
    grid-row: 3 / 7;
}

.masonry-item:nth-child(6) {
    grid-column: 9 / 13;
    grid-row: 4 / 7;
}

.overlay-new {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px;
    font-size: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.masonry-item:hover .overlay-new {
    transform: translateY(0);
}

/* 校企合作部分 - 已优化 */
.cooperation-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.cooperation-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.cooperation-info {
    width: 48%;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cooperation-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.cooperation-point .point-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 77, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d7d;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cooperation-point h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.cooperation-gallery {
    width: 48%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cooperation-gallery .gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
}

.cooperation-gallery .gallery-item:first-child {
    grid-column: 1 / 3;
    height: 200px;
}

.cooperation-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cooperation-gallery .gallery-item:hover img {
    transform: scale(1.1);
}

.swiper-container {
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    height: 200px;
    
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.logo-slider {
    margin-top: 60px;
    padding: 20px 0;
}

.logo-slider .swiper-container {
    padding: 15px 0 40px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 10px;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.logo-item img {
    width: 90%;
    object-fit: contain;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
}

.swiper-logos .swiper-pagination {
    bottom: 0;
}

.swiper-logos .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    margin: 0 5px;
}

.swiper-logos .swiper-pagination-bullet-active {
    background: #ff4d7d;
}

.logo-slider-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
}

.logo-slider-title:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background: #ff4d7d;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}  

/* 响应式设计 */
@media (max-width: 992px) {
    .timeline-cards {
        justify-content: center;
    }
    
    .timeline-card {
        width: 48%;
        margin-bottom: 30px;
    }
    
    .timeline-flow {
        padding: 0 10px;
    }
    
    .step-content {
        width: 85%;
    }
    
    .activities-container-improved,
    .support-container-improved {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cooperation-content {
        flex-direction: column;
    }
    
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title .main-title {
        font-size: 32px;
    }
    
    .section-title .sub-title {
        font-size: 16px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .timeline-card {
        width: 100%;
        max-width: 350px;
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: center;
        margin-bottom: 80px;
    }
    
    .step-left, .step-right {
        justify-content: center;
        text-align: center;
    }
    
    .step-content {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .step-left .step-content:after,
    .step-right .step-content:after {
        display: none;
    }
    
    .step-number {
        position: relative;
        margin: -30px auto 20px;
    }
    
    .activities-container-improved,
    .support-container-improved {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 1fr);
    }
}