@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;
}

/* ===== 新闻列表页 ===== */
.news {
    width: 1200px;
    margin: 50px auto; /* 居中显示 */
    padding: 0 20px;
}

.news-ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-ul li {
    margin-bottom: 25px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,155,150,0.15);
}

.news-ul li a {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    text-decoration: none;
    color: inherit;
}

/* 日期区域 */
.news-time {
    width: 100px;
    height: 100px;
    background: #009B96;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 15px 0;
    margin-right: 30px;
    flex-shrink: 0;
    box-shadow: 0 5px 10px rgba(0,155,150,0.2);
}

.news-time p {
    font-size: 20px;
    margin: 0 0 5px;
    font-weight: 300;
    line-height: 1.2;
}

.news-time h3 {
    font-size: 32px;
    margin: 0;
    font-weight: bold;
    line-height: 1.2;
}

/* 新闻内容区域 */
.news-text {
    flex: 1;
    padding-right: 20px;
}

.news-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s;
    line-height: 1.4;
}

.news-ul li:hover .news-title {
    color: #009B96;
}

.news-text p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 箭头图标 */
.news-ri {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.news-ri img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.news-ul li:hover .news-ri {
    background: #009B96;
}

.news-ul li:hover .news-ri img {
    transform: translateX(5px);
    filter: brightness(0) invert(1);
}

/* ===== 新闻详情页 ===== */
.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-title {
    text-align: center; /* 标题居中 */
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-title h3 {
    font-size: 32px;
    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: 50px 0 30px;
}

.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;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .nav .con-center,
    .news,
    .detail {
        width: 100%;
        padding: 0 30px;
    }

    .detail {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .news-ul li a {
        padding: 20px;
    }

    .news-time {
        width: 80px;
        height: 80px;
        margin-right: 20px;
    }

    .news-time p {
        font-size: 16px;
    }

    .news-time h3 {
        font-size: 24px;
    }

    .news-title {
        font-size: 20px;
    }

    .detail {
        padding: 40px;
    }

    .detail-title h3 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .news-ul li a {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .news-time {
        margin: 0 auto 20px;
    }

    .news-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 15px;
    }

    .news-title {
        font-size: 18px;
    }

    .detail {
        padding: 25px 20px;
    }

    .detail-title h3 {
        font-size: 24px;
    }

    .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) {
    .news {
        padding: 0 15px;
    }

    .detail {
        padding: 20px 15px;
    }

    .detail-title h3 {
        font-size: 20px;
    }

    .detail-text {
        font-size: 15px;
    }
}