@charset "utf-8";

/* ===== 劳务新闻页面样式 ===== */
#container {
    padding-top: 80px; /* 为固定头部留出空间 */
    background: #f9f9f9;
    min-height: 600px;
}

/* ===== 主要内容区域 ===== */
.news-main {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

/* ===== 标题和面包屑导航 ===== */
.xw-title {
    overflow: hidden;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.xw-title h5 {
    float: left;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

.xw-title h5:after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #009B96;
}

.xw-title p {
    float: right;
    font-size: 14px;
    color: #999;
    line-height: 50px;
    margin: 0;
}

.xw-title p i {
    font-style: normal;
    color: #666;
    margin: 0 3px;
}

.xw-title p a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.xw-title p a:hover {
    color: #009B96;
}

.xw-title p span {
    color: #009B96;
    font-weight: 500;
}

/* ===== 新闻列表 ===== */
.xw-content {
    list-style: none;
    margin: 0 -15px;
    padding: 0;
    overflow: hidden;
}

.xw-content li {
    width: 50%;
    float: left;
    padding: 0 15px;
    box-sizing: border-box;
    margin-bottom: 30px;
    cursor: pointer;
}

/* 新闻卡片 */
.xw-content li > div {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.xw-content li:hover > div {
    box-shadow: 0 10px 25px rgba(0,155,150,0.15);
    transform: translateY(-5px);
}

/* 新闻图片 */
.xw-li-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.xw-li-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.xw-content li:hover .xw-li-img img {
    transform: scale(1.05);
}

/* 新闻内容区域 */
.xw-li-text {
    padding: 25px 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* 悬停效果类 */
.xwText {
    background: #009B96;
}

.xwText .xw-li-time h5,
.xwText .xw-li-time p,
.xwText .wx-li-p h5,
.xwText .wx-li-p p {
    color: #fff !important;
}

/* 日期区域 */
.xw-li-time {
    display: inline-block;
    text-align: center;
    margin-right: 20px;
    float: left;
}

.xw-li-time h5 {
    font-size: 28px;
    font-weight: 700;
    color: #009B96;
    margin: 0 0 5px;
    line-height: 1;
    transition: color 0.3s;
}

.xw-li-time p {
    font-size: 16px;
    color: #999;
    margin: 0;
    transition: color 0.3s;
}

/* 新闻标题和描述 */
.wx-li-p {
    overflow: hidden;
    padding-right: 30px;
}

.wx-li-p h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wx-li-p p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
}

/* 箭头图标 */
.xw-li-image {
    position: absolute;
    bottom: 25px;
    right: 20px;
}

.xw-le {
    width: 30px;
    height: 30px;
    transition: all 0.3s;
}

.xw-content li:hover .xw-le {
    transform: translateX(5px);
}

/* ===== 分页样式 ===== */
.page {
    text-align: center;
    margin-top: 40px;
    clear: both;
}

.pagination {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    margin: 0 3px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    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) {
    .news-main {
        width: 100%;
        padding: 40px 20px 60px;
    }
}

@media (max-width: 992px) {
    .xw-content li {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 30px;
        float: none;
    }
    
    .xw-title h5 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .xw-title h5 {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .xw-title p {
        float: none;
        text-align: center;
    }
    
    .xw-title h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .xw-li-img {
        height: 180px;
    }
    
    .xw-li-text {
        padding: 20px 15px;
    }
    
    .xw-li-time h5 {
        font-size: 24px;
    }
    
    .wx-li-p h5 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .xw-li-text {
        display: flex;
        flex-wrap: wrap;
    }
    
    .xw-li-time {
        width: 100%;
        margin: 0 0 15px;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }
    
    .xw-li-time h5 {
        font-size: 20px;
        margin: 0;
    }
    
    .xw-li-time p {
        font-size: 14px;
    }
    
    .wx-li-p {
        width: 100%;
        padding-right: 0;
    }
    
    .xw-li-image {
        bottom: 15px;
        right: 15px;
    }
}