@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; /* 居中显示 */
    padding: 0 20px;
}

/* 风采列表 - 三列布局 */
.mien-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 水平居中 */
    margin: 0 -15px;
    padding: 0;
    list-style: none;
}

.mien-ul li {
    width: calc(33.333% - 30px); /* 每行3个，减去间距 */
    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;
    cursor: pointer;
}

.mien-ul li:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,155,150,0.15);
}

.mien-ul li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 风采图片 */
.mien-img {
    width: 100%;
    height: 220px;
    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: 20px;
    text-align: center; /* 文字居中 */
}

.mien-text h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s;
    line-height: 1.5;
}

.mien-ul li:hover .mien-text h3 {
    color: #009B96;
}

/* ===== 培训风采详情页 ===== */
.detail {
    width: 1000px;
    margin: 50px auto; /* 居中显示 */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    padding: 50px;
}

.detail-nav {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.detail-nav .con-center {
    width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    color: #666;
}

.detail-nav a {
    color: #666;
    margin: 0 5px;
    text-decoration: none;
}

.detail-nav a:hover {
    color: #009B96;
}

.detail-nav i {
    font-style: normal;
    margin: 0 5px;
    color: #ccc;
}

.detail-nav span {
    color: #009B96;
    margin-left: 5px;
}

.detail-title {
    text-align: center; /* 标题居中 */
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-title h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.detail-title p {
    color: #999;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.detail-title p:before {
    content: '📅';
    margin-right: 8px;
    opacity: 0.7;
}

/* 详情内容 */
.detail-text {
    line-height: 2;
    color: #444;
    font-size: 16px;
    margin-bottom: 50px;
    text-align: left; /* 内容左对齐，便于阅读 */
}

.detail-text p {
    margin-bottom: 20px;
}

.detail-text img {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 上下篇导航 */
.detail-buttom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.detail-buttom p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.detail-buttom .le,
.detail-buttom .ri {
    max-width: 45%;
}

.detail-buttom a {
    color: #009B96;
    margin-left: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.detail-buttom a:hover {
    color: #006B66;
    text-decoration: underline;
}

/* 当没有上一篇/下一篇时 */
.detail-buttom a[href="javascript:void(0);"] {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== 分页样式 ===== */
.pages {
    text-align: center;
    margin: 30px 0 20px;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination a:hover {
    background: #009B96;
    color: #fff;
    border-color: #009B96;
}

.pagination .current {
    background: #009B96;
    color: #fff;
    border-color: #009B96;
    font-weight: 500;
}

/* 清除浮动 */
.clearfloat {
    clear: both;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .nav .con-center,
    .detail-nav .con-center,
    .mien,
    .detail {
        width: 100%;
        padding: 0 30px;
    }
    
    .detail {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .mien-ul li {
        width: calc(50% - 30px); /* 每行2个 */
    }
    
    .mien-img {
        height: 200px;
    }
    
    .detail {
        padding: 40px;
    }
    
    .detail-title h3 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .mien-ul li {
        width: 100%; /* 每行1个 */
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .mien-img {
        height: 220px;
    }
    
    .detail {
        padding: 30px 20px;
    }
    
    .detail-title h3 {
        font-size: 22px;
    }
    
    .detail-buttom {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .detail-buttom .le,
    .detail-buttom .ri {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mien {
        padding: 0 15px;
    }
    
    .mien-img {
        height: 180px;
    }
    
    .mien-text h3 {
        font-size: 16px;
    }
    
    .detail {
        padding: 20px 15px;
    }
    
    .detail-title h3 {
        font-size: 20px;
    }
    
    .detail-text {
        font-size: 15px;
    }
}