/* ========== News Page — 展会资讯 ========== */

/* ---------- Page Hero ---------- */
.news-hero {
    background: linear-gradient(135deg, #0f1c4d 0%, #1e3a8a 50%, #2563eb 100%);
    color: #fff;
    padding: 48px 24px 64px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 60%);
    pointer-events: none;
}

.news-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, .2) 0%, transparent 70%);
    pointer-events: none;
}

.news-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.news-hero-brand {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 12px;
}

.news-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-hero-desc {
    font-size: 15px;
    opacity: .85;
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.news-breadcrumb-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.news-breadcrumb {
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
}

.news-breadcrumb a {
    color: var(--gray-500);
    transition: color .2s;
}

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

.news-breadcrumb .sep {
    color: var(--gray-300);
}

.news-breadcrumb .current {
    color: var(--gray-700);
    font-weight: 500;
}

/* ---------- Page Layout (left + right) ---------- */
.news-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

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

.news-side {
    min-width: 0;
}

/* ---------- Filter Bar (category tabs + search) ---------- */
.news-filter-bar {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.news-category-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.news-cat-tab {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    border: 1px solid transparent;
}

.news-cat-tab:hover {
    color: var(--primary);
    background: var(--primary-lighter);
}

.news-cat-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(37, 99, 235, .3);
}

.news-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-search-input {
    width: 220px;
    padding: 7px 12px 7px 36px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font);
    transition: all .2s;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center / 15px 15px;
}

.news-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ---------- News List (left) ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all .25s ease;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.news-card-cover {
    width: 260px;
    height: 100%;
    min-height: 180px;
    background: var(--primary-lighter) center/cover no-repeat;
    position: relative;
    flex-shrink: 0;
}

.news-card-cover .news-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(37, 99, 235, .92);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.news-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.45;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-card-summary {
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--gray-500);
    flex-wrap: wrap;
    padding-top: 6px;
    border-top: 1px dashed var(--gray-100);
}

.news-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card-meta .meta-item i {
    font-size: 13px;
}

.news-card-meta .source {
    font-weight: 500;
    color: var(--gray-600);
}

.news-card-meta .hot {
    color: var(--danger);
    font-weight: 500;
}

/* ---------- Pagination ---------- */
.news-pagination {
    margin-top: 32px;
}

/* ---------- Sidebar (right) ---------- */
.news-side-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.news-side-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-side-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-side-title i {
    color: var(--primary);
    font-size: 17px;
}

.news-side-body {
    padding: 12px 20px 20px;
}

/* Recommend list (hot news) */
.news-recommend-list {
    display: flex;
    flex-direction: column;
    counter-reset: hotrank;
}

.news-recommend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background .2s;
    border-radius: 6px;
    position: relative;
}

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

.news-recommend-item:hover {
    background: var(--primary-lighter);
    margin: 0 -8px;
    padding: 12px 8px;
    border-radius: 6px;
}

.news-recommend-item::before {
    counter-increment: hotrank;
    content: counter(hotrank);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.news-recommend-item:nth-child(1)::before { background: #DC2626; color: #fff; }
.news-recommend-item:nth-child(2)::before { background: #F97316; color: #fff; }
.news-recommend-item:nth-child(3)::before { background: #F59E0B; color: #fff; }

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

.news-recommend-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
    margin-bottom: 4px;
}

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

.news-recommend-meta {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Side banner */
.news-side-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.news-side-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.news-side-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.news-side-banner-inner {
    position: relative;
    z-index: 1;
}

.news-side-banner-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .2);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-side-banner-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-side-banner-desc {
    font-size: 12.5px;
    opacity: .9;
    line-height: 1.6;
    margin-bottom: 14px;
}

.news-side-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: none;
}

.news-side-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* Side category */
.news-side-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-side-cat-item {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 12.5px;
    cursor: pointer;
    transition: all .2s;
}

.news-side-cat-item:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
    color: var(--primary);
}

.news-side-cat-item .count {
    color: var(--gray-400);
    margin-left: 2px;
    font-size: 11.5px;
}

/* ================= Detail Page ================= */
.news-detail-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

.news-article {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 40px 48px;
}

.news-article-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-100);
}

.news-article-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 16px;
}

.news-article-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--gray-500);
}

.news-article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-article-meta .author-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-article-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.news-article-cover {
    width: 100%;
    height: 360px;
    border-radius: var(--radius);
    background: var(--primary-lighter) center/cover no-repeat;
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
}

.news-article-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .15) 100%);
}

.news-article-body {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.9;
}

.news-article-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    line-height: 1.5;
}

.news-article-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 24px 0 10px;
}

.news-article-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.news-article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px 16px 24px;
    background: var(--primary-lighter);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--gray-700);
    font-style: italic;
    position: relative;
}

.news-article-body blockquote::before {
    content: '\201C';
    position: absolute;
    left: 8px;
    top: 4px;
    font-size: 32px;
    color: var(--primary);
    opacity: .3;
    font-family: Georgia, serif;
    line-height: 1;
}

.news-article-body ul,
.news-article-body ol {
    margin: 12px 0 16px 24px;
}

.news-article-body li {
    list-style: disc;
    margin-bottom: 8px;
}

.news-article-body ol li {
    list-style: decimal;
}

.news-article-body strong {
    color: var(--gray-900);
    font-weight: 600;
}

.news-article-body .info-box {
    background: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
}

.news-article-body .info-box-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-article-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    box-shadow: var(--shadow);
}

.news-article-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-article-tags-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-right: 4px;
}

.news-article-tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 12.5px;
    cursor: pointer;
    transition: all .2s;
}

.news-article-tag:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
    color: var(--primary);
}

.news-article-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.news-action-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-action-share-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-right: 4px;
}

.news-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    color: var(--gray-600);
    font-size: 15px;
}

.news-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.news-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.news-like-btn:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

.news-like-btn.liked {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

/* Navigation between articles */
.news-nav-box {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .2s;
    min-width: 0;
}

.news-nav-item:hover {
    background: var(--primary-lighter);
}

.news-nav-item.prev { justify-content: flex-start; }
.news-nav-item.next { justify-content: flex-end; text-align: right; }

.news-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.news-nav-item:hover .news-nav-icon {
    background: var(--primary);
    color: #fff;
}

.news-nav-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-nav-label {
    font-size: 12px;
    color: var(--gray-400);
}

.news-nav-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    transition: color .2s;
}

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

.news-side-related-title {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
    cursor: pointer;
}

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

.news-side-related-time {
    font-size: 11.5px;
    color: var(--gray-400);
}

/* ================ Responsive ================ */
@media (max-width: 1200px) {
    .news-layout,
    .news-detail-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 24px;
    }

    .news-card {
        grid-template-columns: 220px 1fr;
    }

    .news-card-cover {
        width: 220px;
    }

    .news-article {
        padding: 32px 36px;
    }
}

@media (max-width: 900px) {
    .news-breadcrumb-wrap {
        padding: 0 16px;
        margin-top: -24px;
    }

    .news-layout,
    .news-detail-layout {
        grid-template-columns: 1fr;
        padding: 0 16px 48px;
        gap: 24px;
    }

    .news-side {
        order: -1;
    }

    .news-hero {
        padding: 40px 16px 64px;
    }

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

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

    .news-card-cover {
        width: 100%;
        min-height: 200px;
        height: 200px;
    }

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

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

    .news-article-cover {
        height: 220px;
    }

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

    .news-nav-item.next {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .news-hero {
        padding: 32px 16px 56px;
    }

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

    .news-hero-desc {
        font-size: 13.5px;
    }

    .news-filter-bar {
        padding: 12px 14px;
    }

    .news-search-input {
        width: 100%;
    }

    .news-search-wrap {
        width: 100%;
    }

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

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

    .news-card-summary {
        font-size: 13px;
    }

    .news-card-meta {
        gap: 10px;
    }

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

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

    .news-article-cover {
        height: 180px;
    }

    .news-article-body {
        font-size: 14px;
    }

    .news-article-body h2 {
        font-size: 17px;
    }

    .news-article-body h3 {
        font-size: 15.5px;
    }

    .news-article-meta {
        gap: 14px;
    }

    .news-article-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-side-banner,
    .news-side-card {
        border-radius: var(--radius-sm);
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination button {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 10px;
    }
}
