* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}
.mymain {
    width: 1200px;
    overflow: hidden;
    margin: 0 auto;
}
.fl {float: left;}

.fr {float: right;}
img { 
	width: 100%;
	display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

/* 通用组件 */
/* ====================== */
/* 标题样式 */
.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 100px;
    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: 20px;
    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);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #ff4d7d;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e63c6c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 125, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #ff4d7d;
    color: #ff4d7d;
}

.btn-outline:hover {
    background-color: #ff4d7d;
    color: white;
}

/* 头部大图 */
.mybanner {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.mybanner img {width: 100%;}

/* 行业前景 */
.prospect {
    background-color: white;
}

.prospect-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.prospect-list {
    flex: 1;
    min-width: 300px;
}

.prospect-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.prospect-icon {
    color: #ff4d7d;
    font-size: 24px;
    margin-right: 15px;
    margin-top: 5px;
}

.prospect-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.prospect-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prospect-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prospect-image:hover img {
    transform: scale(1.05);
}

/* 学习步骤 */
.steps {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/steps-bg.jpg') no-repeat center center/cover;
    position: relative;
    padding-bottom: 100px;
}

.steps-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 80px;
}

.steps-flow:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff4d7d;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 15px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #ff4d7d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #ff4d7d;
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    background: #ff4d7d;
    color: white;
    transform: scale(1.1);
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.step-detail {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.step:hover .step-detail {
    opacity: 1;
    visibility: visible;
    top: 130px;
}

/* 适学人群 */
.audience {
    background-color: white;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.audience-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.audience-image {
    height: 200px;
    overflow: hidden;
}

.audience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.audience-card:hover .audience-image img {
    transform: scale(1.1);
}

.audience-content {
    padding: 20px;
    text-align: center;
}

.audience-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* 热门课程 - 轮播样式 */
.courses {
    background-color: #f9f9f9;
}

.courses-carousel {
    position: relative;
    height: 700px;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 10px;
}

.courses-track {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.course-item {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    min-height: 320px;
}

.course-image {
    position: relative;
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-duration {
    position: absolute;
    left: 15px;
    top: 15px;
    background: linear-gradient(135deg, #ff4d7d, #ff8da1);
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-image:hover img {
    transform: scale(1.05);
}

.course-content {
    flex: 1;
    min-width: 300px;
}

.course-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.course-content p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* 限制显示行数 */
  overflow: hidden;
  text-overflow: ellipsis;	
}

.employment-direction {
    background-color: #fff4f7;
    padding: 15px;
    border-left: 4px solid #ff4d7d;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}

.employment-direction h4 {
    color: #ff4d7d;
    margin-bottom: 10px;
    font-size: 18px;
}

.employment-direction p {
    margin: 0;
    line-height: 1.6;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2; /* 限制显示行数 */
	overflow: hidden;
	text-overflow: ellipsis;	
}

.course-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 专业特色 */
.features {
    background-color: white;
    padding: 80px 0;
    overflow: hidden;
}

.features-container {
    position: relative;
    max-width: 1450px;
    height: auto;
    margin: 0 auto;
}
.features-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 教学服务 */
.services {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.services-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
}

.service-item {
    background: white;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.service-icon {
    color: #ff4d7d;
    font-size: 36px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
    line-height: 1.7;
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-reverse {
    flex-direction: column-reverse;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    
    .center-image {
        width: 300px;
        height: 300px;
    }
    
    .feature-item {
        width: 220px;
    }
}

@media (max-width: 992px) {
    .services-masonry {
        grid-template-columns: 1fr;
    }
    
    .center-image {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 0 auto 40px;
    }
    
    .feature-item {
        position: static;
        transform: none !important;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {
    .steps-flow {
        flex-direction: column;
        gap: 40px;
    }
    
    .steps-flow:before {
        display: none;
    }
    
    .step-detail {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin-top: 15px;
        box-shadow: none;
        background: #f9f9f9;
    }
    
    .step:hover .step-detail {
        top: 0;
    }
    
    .service-image {
        height: 200px;
    }
    
    .courses-carousel {
        height: auto;
    }
    
    .course-item {
        flex-direction: column;
    }
    
    .consult-btn {
        padding: 12px 40px;
        font-size: 18px;
    }
    
    .section-title .main-title {
        font-size: 32px;
    }
    
    .section-title .sub-title {
        font-size: 18px;
    }
}