@charset "UTF-8";

/* ==========================================================================
   新闻与媒体页面专用样式 (news.css)
   项目：华创精工
   迁移自 huachuangzhiqu/css/style.css，并适配本项目品牌色与容器宽度
   ========================================================================== */

/* ============= 新闻列表区域 ============= */
/* 栏目标题栏 */
.news-category-bar {
    background: #f5f5f5;
    padding: 40px 0;
}

.news-category-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 栏目名称 */
.category-name {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
}

/* 新闻列表整体区域 */
.news-list-section {
    padding: 40px 0 80px;
    background: #fff;
}

/* 新闻列表容器 */
.news-list-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 单条新闻项 */
.news-list-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-list-item:hover {
    background: #f9f9f9;
    margin: 0 -20px;
    padding: 25px 20px;
}

/* 新闻封面图 */
.news-list-img {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    margin-right: 25px;
    overflow: hidden;
    border-radius: 4px;
}

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

.news-list-item:hover .news-list-img img {
    transform: scale(1.1);
}

/* 新闻文字内容 */
.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 新闻日期 */
.news-list-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 400;
}

/* 新闻标题 */
.news-list-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: bold;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.news-list-item:hover .news-list-title {
    color: var(--primary-color);
}

/* ============= 分页控件 ============= */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-btn.more {
    min-width: 80px;
}

/* ============= 新闻详情页 ============= */
/* 面包屑导航 */
.detail-category-nav {
    margin-bottom: 30px;
}

.detail-category-nav .breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.detail-category-nav .breadcrumb-list li {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.detail-category-nav .breadcrumb-list li + li::before {
    content: ">";
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}

.detail-category-nav .breadcrumb-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.detail-category-nav .breadcrumb-list a:hover {
    color: var(--primary-color);
}

.detail-category-nav .breadcrumb-list .current {
    color: #333;
}

/* 详情容器 */
.news-detail-page {
    padding: 60px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 详情头部 */
.detail-header {
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

/* 详情主标题 */
.detail-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: bold;
    text-align: left;
}

/* 元信息（日期、来源） */
.detail-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
}

/* 详情正文 */
.detail-content {
    font-size: 16px;
    color: #444;
    line-height: 2;
}

.detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
}

/* ============= 响应式适配 ============= */
@media (max-width: 768px) {
    .news-category-bar {
        padding: 30px 0;
    }

    .category-name {
        font-size: 24px;
    }

    .news-list-section {
        padding: 0 0 40px 0;
    }

    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .news-list-item:hover {
        margin: 0;
        padding: 20px 0;
    }

    .news-list-img {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .news-list-title {
        font-size: 16px;
    }

    .news-pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 40px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .news-detail-page {
        padding: 40px 15px;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .detail-content {
        font-size: 15px;
    }

    .detail-content p {
        text-indent: 0;
    }
}
