@charset "utf-8";

/* 培训专业页面样式 */
.container {
    padding-top: 80px; /* 为固定header留出空间 */
}

/* banner区域 */
.banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #009B96 0%, #006B66 100%);
}

.banner-img {
    width: 100%;
    height: 100%;
}

.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* 导航面包屑 */
.nav {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.nav .con-center {
    width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    color: #666;
}

.nav a {
    color: #666;
    margin: 0 5px;
    text-decoration: none;
}

.nav a:hover {
    color: #009B96;
}

.nav i {
    font-style: normal;
    margin: 0 5px;
    color: #ccc;
}

.nav span {
    color: #009B96;
    margin-left: 5px;
}

/* 专业列表 - 居中显示 */
.mien {
    width: 1200px;
    margin: 50px auto; /* 上下50px，左右自动居中 */
    padding: 0 20px;
}

.mien-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 水平居中 */
    align-items: stretch; /* 所有项目高度一致 */
    margin: 0 -15px;
    padding: 0;
    list-style: none;
}

.mien-ul li {
    width: calc(50% - 30px); /* 每行2个，减去间距 */
    margin: 0 15px 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mien-ul li:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,155,150,0.15);
}

/* 专业图片 */
.mien-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.mien-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mien-ul li:hover .mien-img img {
    transform: scale(1.08);
}

/* 专业文字内容 */
.mien-text {
    padding: 25px 25px 30px;
    text-align: center; /* 文字居中 */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mien-text h3 {
    font-size: 24px;
    color: #009B96;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.mien-text h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #009B96;
    border-radius: 2px;
}

.mien-text p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
    margin: 10px 0 0;
    text-align: center; /* 段落文字居中 */
    word-break: break-word;
}

/* 清除浮动 */
.clearfloat {
    clear: both;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .mien {
        width: 100%;
        padding: 0 30px;
    }

    .mien-ul li {
        width: calc(50% - 30px);
    }
}

@media (max-width: 992px) {
    .mien-ul li {
        width: calc(50% - 20px);
        margin: 0 10px 30px;
    }

    .mien-text h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .mien {
        padding: 0 20px;
    }

    .mien-ul li {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 30px;
    }

    .mien-text {
        padding: 20px;
    }

    .mien-text h3 {
        font-size: 20px;
    }

    .mien-text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mien {
        padding: 0 15px;
    }

    .mien-img {
        height: 200px;
    }

    .mien-text {
        padding: 15px;
    }
}