/* 内页通用样式 */

.page-section { padding: 50px 0 80px; }
.page-title { text-align: center; margin-bottom: 50px; padding-bottom: 25px; border-bottom: 1px solid #eee; }
.page-title h1 { font-size: 32px; color: #0F3460; font-weight: 600; margin-bottom: 10px; }
.page-title p { font-size: 14px; color: #999; letter-spacing: 2px; }

.page-content { max-width: 900px; margin: 0 auto; font-size: 15px; line-height: 2; color: #444; }
.page-content p { margin-bottom: 20px; text-indent: 2em; }
.page-content h3 { font-size: 20px; color: #0F3460; margin: 30px 0 15px; font-weight: 600; }
.page-content ul, .page-content ol { margin: 15px 0 15px 30px; }
.page-content li { margin-bottom: 8px; }

/* 列表页 */
.list-content { }
.list-item { display: flex; padding: 25px 0; border-bottom: 1px solid #f0f0f0; gap: 25px; }
.list-item:last-child { border-bottom: 0; }
.list-img { width: 240px; height: 160px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.list-item:hover .list-img img { transform: scale(1.05); }
.list-info { flex: 1; display: flex; flex-direction: column; }
.list-date { font-size: 13px; color: #999; margin-bottom: 10px; }
.list-title { font-size: 18px; font-weight: 500; color: #333; margin-bottom: 12px; line-height: 1.5; }
.list-title:hover { color: #D4AF37; }
.list-desc { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 15px; flex: 1; }

/* 详情页 */
.detail-title { text-align: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.detail-title h1 { font-size: 28px; color: #0F3460; font-weight: 600; line-height: 1.4; margin-bottom: 15px; }
.detail-info { font-size: 13px; color: #999; }
.detail-info span { margin: 0 15px; }
.detail-bottom { text-align: center; margin-top: 50px; }

/* 联系我们 */
.contact-wrap { gap: 40px; max-width: 1000px; margin: 0 auto; }
.contact-info { width: 40%; padding: 30px; background: #F8F7F2; border-radius: 8px; }
.contact-info h3 { font-size: 20px; color: #0F3460; margin-bottom: 25px; font-weight: 600; }
.contact-info ul li { line-height: 2.2; font-size: 14px; color: #555; }
.contact-info ul li strong { color: #333; margin-right: 8px; }
.contact-form { width: calc(60% - 40px); }
.contact-form h3 { font-size: 20px; color: #0F3460; margin-bottom: 25px; font-weight: 600; }

/* 证书查询 */
.query-box { max-width: 600px; margin: 0 auto 40px; }
.query-result { margin-top: 30px; padding: 25px; background: #f8f9fa; border-radius: 6px; display: none; }
.query-result.success { display: block; border-left: 4px solid #52c41a; }
.query-result.error { display: block; border-left: 4px solid #ff4d4f; }
.query-tip { max-width: 800px; margin: 0 auto; padding: 25px; background: #F8F7F2; border-radius: 8px; }
.query-tip h3 { font-size: 16px; color: #0F3460; margin-bottom: 15px; }
.query-tip ul li { line-height: 2; font-size: 13px; color: #666; padding-left: 20px; position: relative; }
.query-tip ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #D4AF37; }

/* 新闻分类封面页 */
.category-page {
    padding: 40px 0 60px;
}
.cat-news-section {
    margin-bottom: 50px;
}
.cat-news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F0EDE4;
}
.cat-news-section .section-header h2 {
    font-size: 22px;
    font-weight: bold;
    color: #0F3460;
    margin: 0;
    position: relative;
    padding-left: 12px;
}
.cat-news-section .section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #D4AF37;
}
.more-link {
    color: #D4AF37;
    font-size: 14px;
}
.more-link:hover {
    color: #0F3460;
}
.cat-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.news-card-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 52, 96, 0.08);
    transition: all 0.3s ease;
    color: #333;
}
.news-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(15, 52, 96, 0.12);
    color: #333;
}
.news-card-item .card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.news-card-item .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card-item:hover .card-img img {
    transform: scale(1.05);
}
.news-card-item .card-info {
    padding: 15px;
}
.news-card-item .card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.news-card-item .card-title {
    font-size: 15px;
    font-weight: 500;
    color: #0F3460;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-item .card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 响应式适配 */
@media (max-width: 992px) {
    .cat-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .cat-news-grid {
        grid-template-columns: 1fr;
    }
    .news-card-item .card-img {
        height: 200px;
    }
}


/* 一体式紧凑分页 适配迅睿ul原生结构，缩小尺寸 */
.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination .pagination-wrap {
    display: inline-block;
}
.pagination .pagination-wrap ul.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.pagination .pagination-wrap ul.pagination li {
    margin: 0;
}
.pagination .pagination-wrap ul.pagination li a,
.pagination .pagination-wrap ul.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;  /* 缩小宽度 */
    height: 42px;     /* 降低整体高度 */
    padding: 0 12px;
    font-size: 15px;
    border-right: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}
/* 最后一项去除右边分割线 */
.pagination .pagination-wrap ul.pagination li:last-child a,
.pagination .pagination-wrap ul.pagination li:last-child span {
    border-right: none;
}
/* hover金色交互 */
.pagination .pagination-wrap ul.pagination li a:hover {
    background-color: #D4AF37;
    color: #fff;
}
/* 当前页藏蓝底色，匹配截图深色块 */
.pagination .pagination-wrap ul.pagination li.active a {
    background-color: #0F3460;
    color: #fff;
    border-color: #0F3460;
}
/* 禁用按钮浅灰 */
.pagination .pagination-wrap ul.pagination li.disabled a {
    color: #999;
    background: #f8f8f8;
    cursor: not-allowed;
}
/* 手机端再缩小 */
@media (max-width: 576px) {
    .pagination .pagination-wrap ul.pagination li a,
    .pagination .pagination-wrap ul.pagination li span {
        min-width: 46px;
        height: 36px;
        padding: 0 6px;
        font-size: 13px;
    }
}