.news-wrap {
    background: #f5f7fb;
    min-height: 100vh;
    padding: 80px 0 48px; /* 56px 固定顶栏 + 24px 间距 */
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.news-container-detail {
    grid-template-columns: 1fr 280px;
}

.news-sidebar,
.news-detail-sidebar {
    position: sticky;
    top: 72px; /* 56px 顶栏 + 16px 间距 */
}

.news-sidebar-block {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.news-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #1e293b;
}

.news-sidebar-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 14px;
}

.news-cat-list,
.news-related-list,
.news-tool-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-cat-list li,
.news-related-list li,
.news-tool-list li {
    margin-bottom: 8px;
}

.news-cat-list a,
.news-related-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
}

.news-cat-list a:hover,
.news-related-list a:hover,
.news-tool-list a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.news-cat-list a.active {
    background: #2563eb;
    color: #fff;
}

.news-main,
.news-article-main {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.news-page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.news-search {
    display: flex;
    gap: 8px;
}

.news-search input {
    width: 220px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.news-search button {
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-item {
    border-bottom: 1px solid #f1f5f9;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-link {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    color: inherit;
}

.news-item-link:hover .news-item-title {
    color: #2563eb;
}

.news-item-thumb {
    flex: 0 0 180px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-body {
    flex: 1;
    min-width: 0;
}

.news-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.news-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    color: #0f172a;
}

.news-item-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #f1f5f9;
    color: #64748b;
}

.news-tag-top {
    background: #fef3c7;
    color: #b45309;
}

.news-tag-reco {
    background: #dbeafe;
    color: #1d4ed8;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 15px;
}

.news-pagination {
    margin-top: 24px;
}

.news-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.news-pagination li {
    display: inline-block;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0 10px;
    font-size: 14px;
}

.news-pagination .active span {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.news-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.news-breadcrumb a {
    color: #64748b;
}

.news-breadcrumb a:hover {
    color: #2563eb;
}

.news-breadcrumb span {
    margin: 0 6px;
}

.news-article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    color: #0f172a;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.news-article-cover {
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
}

.news-article-cover img {
    width: 100%;
    display: block;
}

.news-article-content {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.news-article-content p {
    margin: 0 0 16px;
}

.news-article-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-promo {
    margin-top: 32px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    padding: 28px;
    color: #fff;
}

.news-promo h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.news-promo p {
    margin: 0 0 16px;
    opacity: 0.92;
    line-height: 1.6;
}

.news-cta-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #fff;
    color: #2563eb !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.news-cta-btn:hover {
    background: #eff6ff;
}

.news-tool-list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.news-tool-list a strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.news-tool-list a span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .news-container,
    .news-container-detail {
        grid-template-columns: 1fr;
    }

    .news-sidebar,
    .news-detail-sidebar {
        position: static;
        order: 2;
    }

    .news-main,
    .news-article-main {
        order: 1;
        padding: 20px 16px;
    }

    .news-item-link {
        flex-direction: column;
    }

    .news-item-thumb {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .news-article-title {
        font-size: 22px;
    }

    .news-search input {
        width: 160px;
    }
}
