/*
 * news.css — 大方软件新闻页面专属样式
 * 涵盖：新闻中心列表页（带分页）、新闻详情图文页
 */

/* =====================================================
   1. 新闻中心 Hero & 通用布局
   ===================================================== */
.news-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d2057 100%);
    text-align: center;
    border-bottom: none;
    color: var(--text-white);
}

.news-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.news-hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.news-page-content {
    padding: 80px 0;
    background: var(--bg-main);
    min-height: 50vh;
}

/* =====================================================
   2. 新闻列表与分页
   ===================================================== */
/* 利用原本 main.css 中的 .news-grid 和 .news-card，这里补充一些间距调整 */
.news-center-grid {
    margin-bottom: 60px;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-light);
}

/* =====================================================
   3. 新闻详情页排版
   ===================================================== */
.article-header {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 24px;
}

/* 文章内的图片规范 */
.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 30px auto;
    box-shadow: var(--shadow-sm);
    display: block;
}

.article-content h2,
.article-content h3 {
    margin: 40px 0 20px;
    color: var(--text-main);
}

.article-footer {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-hero { padding: 100px 0 40px; }
    .article-title { font-size: 1.8rem; }
    .article-content { font-size: 1.05rem; }
}
