/* ==================== News Page Styles ==================== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---- Hero Banner ---- */
.hero-banner {
    position: relative; height: 480px; margin-top: 70px;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: #0a1a3a;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, #0a1a3a 0%, #1a3a6e 50%, #0d2a5e 100%);
}
.hero-bg::before {
    content: ""; position: absolute; top: 30%; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(24,144,255,0.8) 50%, transparent 100%);
    box-shadow: 0 0 30px rgba(24,144,255,0.5);
}
.hero-bg::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(24,144,255,0.2) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.hero-content h1 { font-size: 42px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.title-line { display: block; width: 40px; height: 3px; background: #1890ff; margin: 0 auto 16px; border-radius: 2px; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,0.85); font-weight: 300; }

/* ---- News Section ---- */
.news-section { padding: 50px 0 80px; background: #fff; }

/* Tabs */
.news-tabs {
    display: flex; justify-content: center; gap: 4px; margin: 0 auto 40px;
    background: #f5f7fa; border-radius: 8px; padding: 6px; max-width: 500px;
}
.news-tab {
    flex: 1; padding: 12px 30px; background: transparent; border: none;
    color: #666; font-size: 15px; border-radius: 6px; cursor: pointer;
    transition: all 0.3s ease; display: flex; align-items: center;
    justify-content: center; gap: 8px;
}
.news-tab.active { background: #1890ff; color: #fff; box-shadow: 0 4px 12px rgba(24,144,255,0.3); }
.news-tab:hover:not(.active) { background: #fff; color: #1890ff; }

/* Top Grid */
.news-top-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 24px; margin-bottom: 30px;
}

/* Large Cards */
.news-card-large-link {
    display: block; text-decoration: none; color: inherit;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card-large-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.news-image {
    height: 220px; background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.news-image::before {
    content: ""; position: absolute; top: 20%; left: 25%;
    width: 50%; height: 60%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.news-img-decoration {
    position: relative; z-index: 1; color: #fff;
    font-size: 60px; font-weight: 900; letter-spacing: 4px;
    opacity: 0.9; text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.news-body { padding: 24px; }
.news-body h3 { font-size: 18px; color: #1a2a45; margin-bottom: 12px; font-weight: 700; line-height: 1.5; }
.news-body p {
    color: #666; font-size: 13px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* News List */
.news-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }

.news-list-item-link {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border-radius: 8px; padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; color: inherit;
}
.news-list-item-link:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(24,144,255,0.1);
}
.news-list-item-link:hover .news-list-content h3 { color: #1890ff; }
.news-list-item-link:hover .news-arrow { background: #1890ff; color: #fff; transform: translateX(4px); }

.news-date { text-align: center; flex-shrink: 0; width: 60px; }
.date-day { font-size: 24px; color: #1890ff; font-weight: 700; line-height: 1; }
.date-year { font-size: 12px; color: #999; margin-top: 4px; }

.news-image-small {
    width: 140px; height: 80px; background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border-radius: 4px; flex-shrink: 0; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.news-image-small::before {
    content: ""; position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 10%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.news-image-small .news-img-decoration { font-size: 24px; letter-spacing: 2px; }

.news-list-content { flex: 1; }
.news-list-content h3 {
    font-size: 16px; color: #1a2a45; font-weight: 600;
    transition: color 0.3s ease;
}

.news-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e6f7ff; color: #1890ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all 0.3s ease; flex-shrink: 0;
}

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; }
.page-prev, .page-next { color: #1890ff; font-size: 14px; cursor: pointer; transition: color 0.3s ease; }
.page-prev:hover, .page-next:hover { color: #096dd9; }
.page-numbers { display: flex; gap: 8px; align-items: center; }
.page-numbers a {
    min-width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #666; font-size: 14px; border-radius: 4px;
    transition: all 0.3s ease;
}
.page-numbers a.active, .page-numbers a:hover { background: #1890ff; color: #fff; }
.page-numbers span { color: #666; font-size: 14px; padding: 0 4px; }

/* CTA */
.cta-section {
    padding: 80px 0;
    /*background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);*/
    text-align: center;
}
.cta-section h2 { font-size: 28px; color: #1a2a45; margin-bottom: 16px; font-weight: 600; }
.cta-section p { color: #666; font-size: 14px; margin-bottom: 32px; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 40px; background: #1890ff; color: #fff;
    border-radius: 30px; font-size: 15px; transition: all 0.3s ease;
}
.cta-btn span {
    width: 24px; height: 24px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; font-size: 12px;
}
.cta-btn:hover {
    background: #096dd9; transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24,144,255,0.3);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .news-top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-banner { height: 320px; margin-top: 60px; }
    .hero-content h1 { font-size: 28px; }
    .news-tab { padding: 10px 16px; font-size: 14px; }
    .news-image { height: 160px; }
    .news-img-decoration { font-size: 40px; }
    .news-list-item-link {
        flex-wrap: wrap; padding: 16px; gap: 12px;
    }
    .news-image-small { width: 100px; height: 60px; }
    .news-list-content { flex-basis: calc(100% - 180px); }
    .news-arrow { margin-left: auto; }
    .pagination { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .cta-section h2 { font-size: 20px; }
}

.pager{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;

}
.pager .layui-btn{
    width: 40px;
    height: 30px;
    font-size: 12px;
    line-height: 30px;
    text-align: center;
    color: #aa0406;
    margin: 0 5px;
    border: 1px solid #aa0406;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}
.pager .layui-btn-primary{
    width: 40px;
    height: 30px;
    font-size: 12px;
    line-height: 30px;
    text-align: center;
    color: #666!important;
    margin: 0 5px;
    border: 1px solid #666!important;
    border-radius: 5px;
    display: inline-block;
}
.pager .layui-btn-disabled{
    width: 40px;
    height: 30px;
    font-size: 12px;
    line-height: 30px;
    text-align: center;
    color: #cccccc;
    margin: 0 5px;
    border: 1px solid #cccccc!important;
    border-radius: 5px;
    display: inline-block;
}
