.navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.news-center-page {
    padding-top: 68px;
}

.news-center-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.news-center-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.news-center-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
}

.news-center-breadcrumb i {
    font-style: normal;
}

.news-center-container {
    display: flex;
    gap: 32px;
    padding: 48px 24px;
    max-width: 1280px;
}

.news-sidebar {
    flex: 0 0 260px;
    flex-shrink: 0;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40%;
    height: 2px;
    background: var(--primary);
}

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

.sidebar-nav li {
    margin-bottom: 0;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.25s;
    text-decoration: none;
}

.sidebar-nav li a:hover {
    color: var(--primary);
    background: rgba(13, 110, 253, 0.05);
}

.sidebar-nav li a.active {
    color: #fff;
    background: var(--primary);
    font-weight: 600;
}

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

.sidebar-news-list li {
    margin-bottom: 0;
    border-bottom: 1px dashed var(--border-light);
}

.sidebar-news-list li:last-child {
    border-bottom: none;
}

.sidebar-news-list li a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.25s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.news-featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.news-featured-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.news-featured-image {
    flex: 0 0 45%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f7ff, #d8ecff);
}

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

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

.news-featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(13, 110, 253, 0.2);
    font-size: 48px;
}

.news-featured-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.news-featured-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
    line-height: 1.4;
    transition: color 0.25s;
}

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

.news-featured-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 110, 253, 0.2);
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #f0f2f5);
}

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

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

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(13, 110, 253, 0.15);
    font-size: 36px;
}

.news-card-body {
    padding: 20px;
}

.news-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.4;
    transition: color 0.25s;
}

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

.news-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-pagination {
    text-align: center;
    margin-top: 48px;
}

.news-pagination>div {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: #fff;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.news-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
    padding: 0 12px;
}

.news-pagination a:hover {
    color: var(--primary);
    background: rgba(13, 110, 253, 0.05);
}

.news-pagination span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .news-center-container {
        flex-direction: column;
        padding: 32px 20px;
    }

    .news-sidebar {
        flex: none;
        width: 100%;
    }

    .sidebar-card {
        margin-bottom: 16px;
        position: static;
    }

    .news-list-grid {
        grid-template-columns: 1fr;
    }

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

    .news-featured-image {
        flex: none;
        aspect-ratio: 16/9;
    }

    .news-featured-content {
        padding: 24px;
    }

    .news-featured-title {
        font-size: 20px;
    }

    .news-center-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .news-center-hero {
        padding: 40px 0;
    }

    .news-center-title {
        font-size: 24px;
    }

    .news-center-container {
        padding: 24px 16px;
        gap: 24px;
    }

    .sidebar-card {
        padding: 20px;
    }

    .news-featured-content {
        padding: 20px;
    }

    .news-featured-title {
        font-size: 18px;
    }

    .news-featured-excerpt {
        font-size: 14px;
    }

    .news-card-body {
        padding: 16px;
    }

    .news-card-title {
        font-size: 15px;
    }
}

.news-detail-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0a66c2 100%);
    padding: 116px 0 48px;
}

.news-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.news-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.news-detail-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-arrow {
    opacity: 0.6;
}

.news-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-divider {
    opacity: 0.4;
}

.news-detail-wrapper {
    background: var(--bg-gray);
    padding: 48px 0;
}

.news-detail-wrapper .news-detail-container {
    display: flex;
    gap: 32px;
}

.news-detail-sidebar {
    flex: none;
    width: 260px;
}

.sidebar-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

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

.sidebar-cat-list li {
    margin-bottom: 0;
}

.sidebar-cat-list li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-light);
    border-radius: 8px;
    transition: all 0.25s;
    text-decoration: none;
}

.sidebar-cat-list li a:hover {
    color: var(--primary);
    background: rgba(13, 110, 253, 0.05);
}

.sidebar-cat-list li a.active {
    color: #fff;
    background: var(--primary);
    font-weight: 600;
}

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

.sidebar-art-list li {
    margin-bottom: 0;
    border-bottom: 1px dashed var(--border-light);
}

.sidebar-art-list li:last-child {
    border-bottom: none;
}

.sidebar-art-list li a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.25s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-art-list li a:hover {
    color: var(--primary);
}

.news-detail-content {
    flex: 1;
    min-width: 0;
}

.news-detail-article {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 6px 0;
}

/* 全站 img 为块级元素（index.css 中 display:block），图片后面紧跟的 <br> 无法产生换行，
   只会多撑出一整行空白（约 24px），这里直接隐藏 */
.news-detail-body img + br {
    display: none;
}

.news-detail-body h2,
.news-detail-body h3 {
    font-weight: 600;
    margin: 24px 0 16px;
    color: var(--dark);
}

.news-detail-body h2 {
    font-size: 22px;
}

.news-detail-body h3 {
    font-size: 18px;
}

.news-detail-body ul,
.news-detail-body ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.news-detail-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.news-detail-nav .nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-detail-nav .nav-prev {
    justify-content: flex-start;
}

.news-detail-nav .nav-next {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.news-detail-nav .nav-arrow {
    font-size: 28px;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.25s;
}

.news-detail-nav .nav-item:hover .nav-arrow {
    transform: scale(1.2);
}

.news-detail-nav .nav-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-detail-nav .nav-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.news-detail-nav .nav-title {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-detail-nav .nav-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.25s;
}

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

.news-detail-nav .nav-title:empty {
    color: var(--text-light);
    font-style: italic;
}

.news-detail-nav .nav-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.news-detail-nav .nav-item:only-child {
    flex: none;
    width: 100%;
    justify-content: center;
}

.news-detail-nav .nav-item:only-child .nav-content {
    text-align: center;
}

@media (max-width: 1024px) {
    .news-detail-wrapper .news-detail-container {
        flex-direction: column;
    }

    .news-detail-sidebar {
        width: 100%;
    }

    .news-detail-article {
        padding: 24px;
    }

    .news-detail-title {
        font-size: 28px;
    }

    .news-detail-nav {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .news-detail-nav .nav-divider {
        width: 100%;
        height: 1px;
    }

    .news-detail-nav .nav-next {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .news-detail-hero {
        padding: 90px 0 32px;
    }

    .news-detail-container {
        padding: 0 16px;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-detail-wrapper {
        padding: 24px 0;
    }

    .news-detail-article {
        padding: 20px;
    }

    .news-detail-body {
        font-size: 15px;
    }
}