@charset "utf-8";

/* ===== 新闻资讯页样式 ===== */
.container {
    padding-top: 90px;
    background: #f9f9f9;
    min-height: 600px;
}

/* 导航面包屑 */
.nav {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.nav .con-center {
    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;
}

/* 新闻列表页 */
.news {
    padding: 40px 0;
}

/* 新闻分类导航 */
.news-head {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.news-head a {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 5px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.news-head a:hover {
    color: #009B96;
    background: #f0f0f0;
}

.news-head-active {
    color: #fff !important;
    background: #009B96 !important;
}

.news-head-p {
    color: #ddd;
    margin: 0 5px;
}

/* 新闻列表 */
.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;
}

.xw-content li a {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-decoration: none;
}

.xw-content li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,155,150,0.15);
}

.xw-li-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.xw-li-text {
    padding: 20px;
}

.xw-li-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xw-li-text div {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.xw-li-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px;
}

/* 详情页 */
.detail {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    margin: 40px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.detail-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-title p {
    color: #999;
    font-size: 14px;
}

.detail-text {
    line-height: 1.8;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.detail-buttom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.detail-buttom p {
    margin: 0;
    color: #666;
}

.detail-buttom a {
    color: #009B96;
    margin-left: 5px;
    text-decoration: none;
}

.detail-buttom a:hover {
    text-decoration: underline;
}

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

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

@media (max-width: 768px) {
    .news-head a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .detail-buttom {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-buttom p {
        text-align: center;
    }
}