/* 复用之前的 Banner 样式，确保统一 */
.page-banner {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    text-align: center;
    color: #fff;
}

.banner-text h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 18px;
    opacity: 0.9;
}

/* === 列表页布局 === */
.news-page-section {
    background-color: #f7f8fa;
    padding: 0px 0 80px;
}

/* --- 左侧新闻列表 --- */
.news-list-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    /* 去除链接下划线 */
}

.news-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #eee;
}

/* 图片容器 */
.news-img-box {
    width: 260px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 25px;
    position: relative;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-list-item:hover .news-img-box img {
    transform: scale(1.08);
}

/* 文字内容 */
.news-content-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    transition: color 0.3s;
    /* 限制单行 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.news-list-item:hover .news-item-title {
    color: var(--brand-color);
}

.news-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    /* 限制显示3行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
    /* 约等于3行高度 */
}

/* 底部信息栏 (日期 + 标签) */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    font-size: 13px;
    color: #999;
}

.news-date i {
    margin-right: 5px;
    color: var(--brand-color);
}

.news-more {
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
    padding: 3px 12px;
    border-radius: 20px;
    transition: 0.3s;
}

.news-list-item:hover .news-more {
    background-color: var(--brand-color);
    color: #fff;
}

/* --- 右侧侧边栏 --- */
.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 16px;
    background: var(--brand-color);
    border-radius: 2px;
}

/* 搜索框 */
.widget-search {
    display: flex;
    position: relative;
}

.widget-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0 40px 0 10px;
    outline: none;
    transition: 0.3s;
}

.widget-search input:focus {
    border-color: var(--brand-color);
}

.widget-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.widget-search button:hover {
    color: var(--brand-color);
}

/* 分类列表 */
.cate-list li {
    border-bottom: 1px dashed #eee;
}

.cate-list li:last-child {
    border-bottom: none;
}

.cate-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #555;
    font-size: 15px;
}

.cate-list a:hover {
    color: var(--brand-color);
    padding-left: 5px;
}

.cate-list a i {
    font-size: 12px;
    color: #ccc;
}

/* 热门文章 (小图模式) */
.hot-news-item {
    display: flex;
    margin-bottom: 15px;
    text-decoration: none;
}

.hot-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}

.hot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-info {
    flex-grow: 1;
}

.hot-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    transition: 0.3s;
}

.hot-date {
    font-size: 12px;
    color: #999;
}

.hot-news-item:hover .hot-title {
    color: var(--brand-color);
}

/* === 响应式适配 === */
@media (max-width: 991.98px) {
    .page-banner {
        height: 200px;
    }

    .banner-text h1 {
        font-size: 28px;
    }

    /* 列表变竖排 */
    .news-list-item {
        flex-direction: column;
        padding: 15px;
    }

    .news-img-box {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .news-item-desc {
        display: none;
        /* 手机端隐藏描述，太长了 */
    }

    .news-item-title {
        white-space: normal;
        /* 允许换行 */
    }

    /* 侧边栏 */
    .sidebar-area {
        margin-top: 40px;
    }
}