.news-hero {
    background: linear-gradient(135deg, var(--primary-color), #1e3a8a);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width=\"60\" height=\"60\" viewBox=\"0 0 60 60\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cg fill=\"none\" fill-rule=\"evenodd\"%3E%3Cg fill=\"%23ffffff\" fill-opacity=\"0.05\"%3E%3Ccircle cx=\"30\" cy=\"30\" r=\"2\"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.news-hero-content {
    position: relative;
    z-index: 2;
}

.news-filters {
    background: white;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.news-filters .container-fluid { padding: .75rem 1rem; display:flex; align-items:center; gap:.75rem; justify-content: space-between; }
.filters-bar { display:flex; align-items:center; gap:.75rem; justify-content: space-between; width:100%; }
.filters-left { display:flex; flex:1 1 auto; }
.filters-right { display:flex; flex:0 0 auto; justify-content:flex-end; }

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    text-decoration: none;
    color: #495057;
    background: #fff;
    transition: .2s;
    font-weight: 500;
    flex: 0 0 auto;
}

.filter-tab:hover { transform: translateY(-1px); }
.filter-tab.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }

.search-form { display: flex; gap: 10px; max-width: 400px; }

.search-input { flex: 1; padding: 10px 16px; border: 1px solid #dee2e6; border-radius: 999px; outline: none; transition: border-color .2s; }

.search-input:focus { border-color: var(--primary-color); }

.search-btn { padding: 10px 18px; background: var(--primary-color); color: #fff; border: none; border-radius: 999px; cursor: pointer; }

.search-btn:hover {
    background: #1e3a8a;
}

.news-content {
    padding: 60px 0;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 36px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.news-card.featured::before {
    content: "推荐";
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.news-image {
    height: 340px;
    position: relative;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content-area {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 180px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-dark);
}

.sidebar-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-news-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-news-content {
    flex: 1;
}

.sidebar-news-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
}

.sidebar-news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-news-title a:hover {
    color: var(--primary-color);
}

.sidebar-news-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-link {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

/* 底部双列：热门 / 最新 */
.news-footer {
    padding: 60px 0 100px;
    background: linear-gradient(180deg, #eef2f7 0%, #0f172a 120%);
    position: relative;
    overflow: hidden;
}
.news-footer .container { max-width: 100%; padding-left: 24px; padding-right: 24px; }
.news-footer .row { margin-left: 0; margin-right: 0; }
.news-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1000px 300px at 20% 0%, rgba(99,102,241,0.15), transparent),
                radial-gradient(800px 300px at 80% 0%, rgba(34,197,94,0.12), transparent);
    transform: translate3d(0,0,0);
    pointer-events: none;
}

.footer-section {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(2,6,23,0.25);
    padding: 20px 20px 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.footer-section::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 120%;
    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(34,197,94,0.18));
    filter: blur(40px);
    transform: rotate(-8deg);
}
.footer-section:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(2,6,23,0.35); }

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(15,23,42,0.08);
    padding-bottom: 10px;
}

.footer-title { font-size: 1.15rem; font-weight: 700; margin: 0; letter-spacing: .02em; }
.footer-more { text-decoration: none; color: var(--text-light); font-weight: 600; }
.footer-more:hover { color: var(--primary-color); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform .2s ease, box-shadow .2s ease;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 6px 16px rgba(2,6,23,0.12);
    position: relative;
    overflow: hidden;
}
.footer-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(34,197,94,0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
.footer-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 24px rgba(2,6,23,0.22); }

.footer-thumb { width: 120px; height: 84px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #f3f4f6; box-shadow: 0 6px 16px rgba(2,6,23,0.15); }
.footer-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.footer-card:hover .footer-thumb img { transform: scale(1.06); }
.footer-thumb-placeholder { width: 100%; height: 100%; background: #f3f4f6; }

.footer-info { flex: 1; }
.footer-title-text { font-size: .95rem; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.footer-meta { display: flex; gap: 14px; color: var(--text-light); font-size: .85rem; }
.footer-tabs { display:flex; gap:10px; }
.tab-btn { border:none; background: linear-gradient(135deg,#f3f4f6,#e5e7eb); color:var(--text-dark); padding:8px 14px; border-radius:999px; cursor:pointer; font-weight:700; box-shadow: 0 4px 10px rgba(2,6,23,0.12); }
.tab-btn.active { background: linear-gradient(135deg, #6366f1, #22c55e); color:#fff; box-shadow: 0 8px 18px rgba(99,102,241,0.35); }
.footer-grid.hidden { display:none; }
.footer-tabs { display:flex; gap:10px; }
.tab-btn { border:none; background:#f3f4f6; color:var(--text-dark); padding:8px 14px; border-radius:999px; cursor:pointer; font-weight:600; }
.tab-btn.active { background: var(--primary-color); color:#fff; }
.footer-grid.hidden { display:none; }
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.news-content .container {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.news-content .row {
    margin-left: 0;
    margin-right: 0;
}

.news-content .col-lg-8,
.news-content .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .news-hero {
        padding: 100px 0 60px;
    }
    
    .news-filters {
        padding: 8px 0;
        position: static;
    }
    .news-filters .container-fluid { flex-wrap: wrap; justify-content:flex-start; }
    .filters-bar { flex-wrap: wrap; }
    .filters-left, .filters-right { flex:1 1 100%; }
    .filters-left { order: 1; }
    .filters-right { order: 2; justify-content:flex-start; }
    
    .filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        margin-bottom: 6px;
        padding-bottom: 3px;
    }
    .filter-tab { flex: 0 0 auto; }
    
    .search-form {
        max-width: 100%;
        width: 100%;
        order: 2;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .news-content {
        padding: 40px 0;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
}
