/* ==============================================================
   新闻资讯列表页样式（左右两栏布局）
   ============================================================== */

/* ===== 模块最外层 ===== */
.news-module {
    --art-primary: #FF5F2B;
    --art-text: #1e2a3e;
    --art-text-light: #5e6f8d;
    --art-border: #eef2f6;
    --art-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--art-text);
    line-height: 1.5;
    box-sizing: border-box;
}
.news-module *,
.news-module *::before,
.news-module *::after {
    box-sizing: inherit;
}

.news-page {
    padding: 20px 0;
}

/* ===== 面包屑（PC显示） ===== */
.news-breadcrumb {
    display: none;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--art-text-light);
}
.news-breadcrumb a {
    color: var(--art-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.news-breadcrumb a:hover {
    color: var(--art-primary);
}
.news-breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}
.news-breadcrumb .current {
    color: var(--art-text);
    font-weight: 500;
}

/* ===== 左右两栏容器 ===== */
.news-main-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* 左侧新闻内容区 */
.news-main-content {
    flex: 1;
    min-width: 0;
}

/* 右侧侧边栏（与 article.css 保持一致） */
.news-module .article-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ==============================================================
   页面头部（标题 + 描述）
   ============================================================== */
.news-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 8px 0 16px 0;
}
.news-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--art-text);
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.news-page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #FF5F2B, #FF8A55);
    border-radius: 3px;
}
.news-page-desc {
    font-size: 14px;
    color: var(--art-text-light);
    margin-top: 16px;
}

/* ==============================================================
   新闻列表
   ============================================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 新闻卡片 */
.news-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: var(--art-shadow);
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* 左侧装饰竖条 */
.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #FF5F2B, #FF8A55);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}
.news-card:hover::before {
    transform: scaleY(1);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 95, 43, 0.1);
    border-color: var(--art-primary);
}

.news-card-body {
    position: relative;
    z-index: 1;
}

/* 标题 */
.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--art-text);
    margin-bottom: 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.news-card:hover .news-title {
    color: var(--art-primary);
}

/* 副标题 */
.news-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

/* 底部信息 */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #f0f0f0;
    font-size: 13px;
    color: var(--art-text-light);
}
.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-date::before {
    content: '📅';
    font-size: 12px;
}
.news-read-more {
    color: var(--art-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}
.news-card:hover .news-read-more {
    transform: translateX(4px);
}

/* 分页 */
.pagination-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* ==============================================================
   平板适配（769px - 1023px）
   隐藏侧边栏，内容全宽
   ============================================================== */
@media (max-width: 1023px) {
    .news-module .article-sidebar {
        display: none;
    }
    .news-main-wrapper {
        gap: 20px;
    }
}

/* ==============================================================
   移动端适配（≤768px）
   ============================================================== */
@media (max-width: 768px) {
    .news-module {
        padding: 0 12px;
    }
    .news-page {
        padding: 12px 0;
    }

    /* 页面头部 */
    .news-header {
        margin-bottom: 24px;
        padding: 4px 0 12px 0;
    }
    .news-page-title {
        font-size: 24px;
    }
    .news-page-title::after {
        width: 32px;
        height: 2px;
        bottom: -6px;
    }
    .news-page-desc {
        font-size: 13px;
        margin-top: 12px;
    }

    /* 列表 */
    .news-list {
        gap: 14px;
    }

    /* 卡片 */
    .news-card {
        padding: 18px 16px;
        border-radius: 12px;
    }
    .news-title {
        font-size: 16px;
    }
    .news-subtitle {
        font-size: 13px;
    }
    .news-meta {
        font-size: 12px;
        padding-top: 10px;
    }
    .news-read-more {
        font-size: 12px;
    }

    /* 分页 */
    .pagination-wrapper {
        margin-top: 24px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==============================================================
   小屏手机（≤480px）
   ============================================================== */
@media (max-width: 480px) {
    .news-page-title {
        font-size: 22px;
    }
    .news-card {
        padding: 16px 14px;
    }
    .news-title {
        font-size: 15px;
    }
    .news-subtitle {
        font-size: 12px;
    }
}

/* ==============================================================
   大屏（≥1024px）：显示面包屑
   ============================================================== */
@media (min-width: 1024px) {
    .news-breadcrumb {
        display: block;
    }
    .news-main-wrapper {
        flex-wrap: nowrap;
    }
}