/**
 * X032 新闻列表/详情 — 与 default 相同的数据结构与 class 命名，视觉独立（不依赖 default 的 news.css）
 * 作用域：.x032-news-page
 */

.x032-news-page {
    --x032-news-accent: var(--accent);
    --x032-news-primary: var(--primary);
}

.x032-news-page .news-page {
    background: var(--bg);
}

/* ========== 新闻列表（参考 zanall /910/news：标题 + 面包屑 + 年 | 日期 | 标题摘要 + View details） ========== */
.x032-news-list-page .news-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.x032-news-list-header {
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--border);
}

.x032-news-list-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

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

.x032-news-breadcrumb a {
    color: var(--accent);
}

.x032-news-breadcrumb a:hover {
    text-decoration: underline;
}

.x032-news-breadcrumb-sep {
    margin: 0 6px;
    opacity: 0.65;
}

.x032-news-breadcrumb-current {
    color: var(--text);
}

.x032-news-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.x032-news-search-inline {
    display: flex;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.x032-news-search-inline .search-input {
    flex: 1;
    border: 0;
    padding: 10px 12px;
    outline: none;
}

.x032-news-search-inline .search-btn {
    width: 44px;
    border: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    cursor: pointer;
}

.x032-news-class-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.x032-news-chip {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.x032-news-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.x032-news-chip.is-active {
    border-color: var(--accent);
    background: rgba(0, 176, 255, 0.12);
    color: var(--primary);
    font-weight: 600;
}

.x032-news-list-main {
    padding-top: 8px;
}

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

.x032-news-timeline-item {
    display: grid;
    grid-template-columns: 56px 72px minmax(0, 1fr);
    gap: 20px 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.x032-news-timeline-year {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.x032-news-timeline-date {
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 4px;
}

.x032-news-timeline-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}

.x032-news-timeline-title a {
    color: var(--text);
}

.x032-news-timeline-title a:hover {
    color: var(--accent);
}

.x032-news-timeline-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 12px;
}

.x032-news-view-details {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #c62828;
}

.x032-news-view-details:hover {
    color: var(--accent);
    text-decoration: underline;
}

.x032-news-empty {
    padding: 48px 20px;
}

.x032-news-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.x032-news-pagination.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.x032-news-pagination a,
.x032-news-pagination span:not(.pagination-info) {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
}

.x032-news-pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.x032-news-pagination .current,
.x032-news-pagination .active {
    border-color: var(--accent);
    background: rgba(0, 176, 255, 0.12);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .x032-news-timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .x032-news-timeline-year,
    .x032-news-timeline-date {
        display: inline-block;
        margin-right: 12px;
    }
}

/* Banner：详情等页 — 配色为 X032 主色渐变 */
.x032-news-page .news-banner {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark, #0d47a1) 0%, var(--primary, #1565c0) 45%, var(--accent, #00b0ff) 100%);
    margin: 0 calc(-1 * var(--container-gutter, 15px)) 32px;
    padding: 48px 24px;
}

.x032-news-page .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(13, 71, 161, 0.35) 100%);
    pointer-events: none;
}

.x032-news-page .banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 720px;
}

.x032-news-page .banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.x032-news-page .banner-subtitle {
    font-size: 1rem;
    opacity: 0.92;
    line-height: 1.6;
}

/* 两栏布局 */
.x032-news-page .news-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.x032-news-page .news-sidebar {
    position: sticky;
    top: 96px;
}

.x032-news-page .sidebar-search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.x032-news-page .news-search-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.x032-news-page .search-input {
    flex: 1;
    border: 0;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}

.x032-news-page .search-btn {
    width: 44px;
    border: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    cursor: pointer;
}

.x032-news-page .sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 16px 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.x032-news-page .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 176, 255, 0.25);
}

.x032-news-page .category-list .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
}

.x032-news-page .category-list .category-link:hover,
.x032-news-page .category-list .category-link.active {
    background: rgba(0, 176, 255, 0.12);
    color: var(--accent-hover, #0091ea);
}

.x032-news-page .recent-articles-list .recent-article-link {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

.x032-news-page .recent-article-title {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.45;
}

.x032-news-page .recent-article-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* 主列表 */
.x032-news-page .news-content {
    background: transparent;
}

.x032-news-page .breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.x032-news-page .breadcrumb a {
    color: var(--accent);
}

.x032-news-page .breadcrumb-separator {
    margin: 0 6px;
    opacity: 0.6;
}

.x032-news-page .news-list .news-item {
    margin-bottom: 24px;
}

.x032-news-page .news-item-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s, transform 0.25s;
}

.x032-news-page .news-item-wrapper:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.x032-news-page .news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 160px;
}

.x032-news-page .news-title a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.x032-news-page .news-item-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0 12px;
}

.x032-news-page .news-excerpt {
    font-size: 14px;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 12px;
}

.x032-news-page .read-more-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.x032-news-page .no-news {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.x032-news-page .no-news i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--border);
}

.x032-news-page .pagination {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* 详情页 */
.x032-news-page .article-detail .article-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.35;
}

.x032-news-page .article-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.x032-news-page .article-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
}

.x032-news-page .article-share {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.x032-news-page .share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.x032-news-page .share-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.x032-news-page .article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.x032-news-page .recent-articles-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.x032-news-page .recent-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.x032-news-page .recent-article-card {
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .x032-news-page .news-container {
        grid-template-columns: 1fr;
    }

    .x032-news-page .news-sidebar {
        position: static;
    }

    .x032-news-page .news-item-wrapper {
        grid-template-columns: 1fr;
    }

    .x032-news-page .article-navigation {
        grid-template-columns: 1fr;
    }

    .x032-news-page .recent-articles-grid {
        grid-template-columns: 1fr;
    }
}
