@charset "utf-8";

/* ==========================================================================
   Modern News/Article Page Styles
   ========================================================================== */

:root {
    --primary-color: #0052d9;
    --primary-hover: #003cab;
    --text-main: #1d2129;
    --text-regular: #4e5969;
    --text-light: #86909c;
    --bg-body: #f7f9fc;
    --white: #ffffff;
    --border-color: #f0f2f5;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 82, 217, 0.08);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-hero {
    position: relative;
    background: #fff;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 82, 217, 0.05) 0%, rgba(0, 82, 217, 0.01) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-regular);
    margin-bottom: 20px;
}

/* Layout */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

/* Keep the article navigation visually separated from the global footer CTA. */
.article-detail-layout {
    padding-bottom: 80px;
}

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

.sidebar-area {
    width: 360px;
    flex-shrink: 0;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

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

.news-thumb {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    margin-right: 24px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #f2f3f5;
    border: 1px solid #f0f0f0;
}

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

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

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.news-header {
    margin-bottom: 8px;
}

.news-cat {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 82, 217, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

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

.news-desc {
    font-size: 14px;
    color: var(--text-regular);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f2f3f5;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.meta-item i {
    margin-right: 6px;
    font-size: 14px;
}

.news-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-left: 20px;
    flex-shrink: 0;
    transition: var(--transition);
    opacity: 0.9;
}

.news-card:hover .news-arrow {
    transform: translateX(4px);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f3f5;
}

.widget-title i, .widget-title .icon-bar {
    color: var(--primary-color);
    margin-right: 10px;
}
.widget-title .icon-bar {
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
    display: inline-block;
    margin-right: 12px;
}

/* Sidebar Search */
.sidebar-search {
    position: relative;
}
.sidebar-search input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: #f7f9fc;
    transition: var(--transition);
}
.sidebar-search input:focus {
    background: #fff;
    border-color: var(--primary-color);
    outline: none;
}
.sidebar-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.sidebar-search button:hover {
    background: var(--primary-hover);
}

/* Sidebar Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: #f2f3f5;
    color: var(--text-regular);
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}
.tag-item:hover {
    background: rgba(0, 82, 217, 0.1);
    color: var(--primary-color);
}

/* Sidebar Categories */
.sidebar-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    color: var(--text-regular);
    text-decoration: none;
    transition: var(--transition);
}
.sidebar-cat-item:hover, .sidebar-cat-item.active {
    background: rgba(0, 82, 217, 0.05);
    color: var(--primary-color);
}
.sidebar-cat-item .cat-name {
    display: flex;
    align-items: center;
    font-weight: 500;
}
.sidebar-cat-item .dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 12px;
    transition: var(--transition);
}
.sidebar-cat-item:hover .dot, .sidebar-cat-item.active .dot {
    background: var(--primary-color);
}

/* Hot Articles (Sidebar) */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f2f3f5;
}

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

.hot-index {
    width: 24px;
    height: 24px;
    background: #f2f3f5;
    color: #999;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.hot-item:nth-child(1) .hot-index { background: linear-gradient(135deg, #ff4d4f, #ff7875); color: #fff; }
.hot-item:nth-child(2) .hot-index { background: linear-gradient(135deg, #ff7a45, #ff9c6e); color: #fff; }
.hot-item:nth-child(3) .hot-index { background: linear-gradient(135deg, #ffa940, #ffc069); color: #fff; }
.hot-item:nth-child(4) .hot-index { background: linear-gradient(135deg, #ffc53d, #ffd666); color: #fff; }
.hot-item:nth-child(5) .hot-index { background: linear-gradient(135deg, #a0d911, #b3e680); color: #fff; }
.hot-item:nth-child(6) .hot-index { background: linear-gradient(135deg, #52c41a, #73d13d); color: #fff; }
.hot-item:nth-child(7) .hot-index { background: linear-gradient(135deg, #13c2c2, #36cfc9); color: #fff; }
.hot-item:nth-child(8) .hot-index { background: linear-gradient(135deg, #1890ff, #40a9ff); color: #fff; }

.hot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hot-title-link {
    font-size: 14px;
    font-weight: 500;
    color: #2f3b4a;
    margin-bottom: 6px;
    line-height: 1.5;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-title-link:hover {
    color: var(--primary-color);
}

.hot-meta {
    font-size: 13px;
    color: #9aa3af;
    display: flex;
    align-items: center;
}

.hot-meta i {
    margin-right: 4px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 48px;
}

/* The pagination renderer nests a second <ul class="pagination">. Keep the
   inner list from adding another top margin on top of the outer wrapper. */
.pagination ul.pagination {
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-regular);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover, .pagination .active span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .disabled span {
    background: #f7f9fc;
    color: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    .sidebar-area {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .article-detail-layout {
        padding-bottom: 48px;
    }

    .news-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .news-thumb {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    .news-content {
        height: auto;
        min-height: auto;
        width: 100%;
    }
    .news-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .news-meta {
        justify-content: center;
    }
    .meta-item {
        margin: 0 10px;
    }
    
    /* Responsive Prev/Next */
    .article-nav {
        flex-direction: column;
    }
    .nav-item {
        width: 100%;
    }
}

/* ==========================================================================
   Article Details Page Specific Styles
   ========================================================================== */

.article-container {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.article-breadcrumb {
    padding: 16px 24px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-regular);
}
.article-breadcrumb a {
    color: var(--text-regular);
    text-decoration: none;
}
.article-breadcrumb a:hover {
    color: var(--primary-color);
}
.article-breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.article-body {
    padding: 40px;
}

/* Content Typography */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.article-content p { margin-bottom: 24px; }
.article-content h1, .article-content h2, .article-content h3 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}
.article-content h2 {
    font-size: 24px;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}
.article-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
}
.article-content code {
    background: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #c7254e;
}

/* Article Footer */
.article-footer {
    padding: 24px 40px;
    background: #f9fafb;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-regular);
    text-decoration: none;
    transition: var(--transition);
}
.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}
.share-btn[data-type="wechat"]:hover { background: #07c160; border-color: #07c160; }
.share-btn[data-type="qq"]:hover { background: #12b7f5; border-color: #12b7f5; }
.share-btn[data-type="weibo"]:hover { background: #fa7d3c; border-color: #fa7d3c; }
.share-btn[data-type="telegram"]:hover,
.share-btn[data-type="telegram"]:focus-visible { background: #0088cc; border-color: #0088cc; color: #fff; }

/* Prev/Next Nav */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}
.nav-item {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    width: 50%;
    display: flex;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
}
.nav-item:hover:not(.disabled) {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.nav-item.disabled {
    background: #f9fafb;
    border-color: #f0f2f5;
    cursor: default;
}

.nav-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f2f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a7b3;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

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

.nav-thumb i {
    font-size: 24px;
}

.nav-content {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Added overflow hidden to container */
}

.nav-label {
    font-size: 13px;
    color: #bfc5cc;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #2e2e2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    display: block; /* Ensure it's a block level element for ellipsis to work */
    width: 100%; /* Ensure it takes full width of container */
}

.nav-item.disabled .nav-title {
    color: #8a93a0;
    font-weight: 400;
}

/* Contact Widget (Sidebar) */
.contact-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #003cab) 100%);
    color: #fff;
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.contact-decoration-1, .contact-decoration-2 {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.contact-decoration-1 { width: 100px; height: 100px; top: -30px; right: -30px; }
.contact-decoration-2 { width: 60px; height: 60px; bottom: -20px; left: -20px; }

.contact-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    margin-top: 16px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.contact-btn:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

/* News pages share the header's 1400px rail. Keep this layer scoped: help
   details also load this stylesheet and must retain their existing layout. */
.news-page {
    --news-blue: var(--primary-blue, #006eff);
    --news-blue-dark: #1454bd;
    --news-ink: #1d2b42;
    --news-muted: #63748b;
    --news-line: #e7edf5;
    --news-surface: #fff;
    --news-wash: #f6f8fc;
    --news-radius: 12px;
    /* Match the website's base font stack in mian.css. */
    font-family: Arial, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: var(--news-wash);
    color: var(--news-ink);
}

.news-page *, .news-page *::before, .news-page *::after { box-sizing: border-box; }

/* Match .header-container-modern exactly, with no second inset. */
.news-page .news-shell {
    width: calc(100% - 16px);
    max-width: var(--max-width, 1400px);
    margin-inline: auto;
    padding-inline: 0;
}

.news-page .news-hero {
    position: relative;
    padding: 52px 0 48px;
    border-bottom: 1px solid var(--news-line);
    background: var(--ibd-hero-bg, linear-gradient(115deg, #f6faff 0%, #eef5ff 58%, #e5f3ff 100%));
    overflow: hidden;
}

.news-page .news-hero::after {
    content: '';
    position: absolute;
    top: -170px;
    right: 8%;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(0, 110, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(0, 110, 255, .025), 0 0 0 104px rgba(0, 110, 255, .02);
    pointer-events: none;
}

.news-page .news-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.news-page .news-hero-copy { min-width: 0; max-width: 760px; }
.news-page .news-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ibd-hero-text-sub, var(--news-blue-dark)); font-size: 13px; font-weight: 600; }
.news-page .news-eyebrow > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--news-blue); box-shadow: 0 0 0 4px rgba(0,110,255,.08); }
.news-page .news-eyebrow-en { margin-left: 4px; color: var(--ibd-hero-text-sub, #6b83a2); font-size: 11px; letter-spacing: .12em; }
.news-page .news-hero h1 { margin: 16px 0 14px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--ibd-hero-text, var(--news-ink)); overflow-wrap: anywhere; }
.news-page .news-hero-copy > p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--ibd-hero-text-sub, var(--news-muted)); }
.news-page .news-mobile-heading { display: none; }

.news-page .news-overview { display: flex; flex: 0 0 auto; align-items: center; gap: 30px; padding: 24px 30px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(255,255,255,.86); }
.news-page .news-overview-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; color: var(--news-blue); background: #e9f2ff; font-size: 28px; transform: rotate(-6deg); }
.news-page .news-overview > div { display: flex; flex-direction: column; gap: 4px; }
.news-page .news-overview > div + div { padding-left: 26px; border-left: 1px solid #dce7f4; }
.news-page .news-overview strong { color: var(--news-blue-dark); font-size: 30px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
.news-page .news-overview small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--news-muted); }
.news-page .news-overview div > span { font-size: 12px; color: var(--news-muted); }

.news-page .news-category-band { background: #fff; border-bottom: 1px solid var(--news-line); }
.news-page .news-categories { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-block: 12px; }
.news-page .news-category { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #526178; text-decoration: none; transition: background-color .2s, color .2s; overflow-wrap: anywhere; }
.news-page .news-category:hover { background: #f1f6ff; color: var(--news-blue-dark); }
.news-page .news-category.is-active { background: var(--news-blue); color: #fff; box-shadow: 0 4px 10px rgba(0,110,255,.14); }

.news-page .news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; padding-block: 30px 72px; }
.news-page .news-feed, .news-page .news-widget { background: var(--news-surface); border: 1px solid var(--news-line); border-radius: var(--news-radius); box-shadow: 0 4px 18px rgba(31,65,117,.025); min-width: 0; }
.news-page .news-feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--news-line); }
.news-page .news-feed-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; font-size: 20px; line-height: 1.5; font-weight: 650; }
.news-page .news-feed-heading h2 > span { color: var(--news-muted); font-weight: 400; font-size: 13px; }
.news-page .news-page-number { color: var(--news-muted); font-size: 13px; flex-shrink: 0; }
.news-page .news-rows { padding: 0 28px; }
.news-page .news-entry { display: grid; grid-template-columns: 192px minmax(0, 1fr) 36px; align-items: center; gap: 24px; padding: 26px 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--news-line); }
.news-page .news-entry:last-child { border-bottom: 0; }
.news-page .news-entry-cover { position: relative; width: 100%; aspect-ratio: 16 / 11; border: 1px solid #e0eaf8; border-radius: 10px; background: linear-gradient(130deg, #f0f6ff, #e8f2ff); overflow: hidden; }
.news-page .news-cover-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #618ac4; }
.news-page .news-cover-fallback i { font-size: 32px; }
.news-page .news-cover-fallback > span { font-size: 12px; letter-spacing: .16em; }
.news-page .news-entry-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-page .news-entry-content { min-width: 0; }
.news-page .news-entry-category { display: inline-block; padding: 2px 8px; color: var(--news-blue-dark); background: #eef5ff; border-radius: 4px; font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
.news-page .news-entry h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; transition: color .2s; }
.news-page .news-entry-description { margin: 0 0 14px; color: var(--news-muted); font-size: 14px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.news-page .news-entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; color: var(--news-muted); font-size: 12px; line-height: 1.5; }
.news-page .news-entry-meta > * { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.news-page .news-entry-meta i { color: #7791b0; flex-shrink: 0; }
.news-page .news-entry-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e4ecf8; border-radius: 50%; color: #758aa6; transition: color .2s, background-color .2s, border-color .2s; }
.news-page .news-entry:hover h3, .news-page .news-entry:focus-visible h3 { color: var(--news-blue-dark); }
.news-page .news-entry:hover .news-entry-arrow, .news-page .news-entry:focus-visible .news-entry-arrow { color: #fff; background: var(--news-blue); border-color: var(--news-blue); }
.news-page .news-entry:hover img { transform: scale(1.025); }
.news-page .news-empty { padding: 64px 24px; text-align: center; }
.news-page .news-empty > i { font-size: 36px; color: #83a6d6; }
.news-page .news-empty h3 { font-size: 20px; margin: 20px 0 8px; }
.news-page .news-empty p { color: var(--news-muted); margin-bottom: 16px; }
.news-page .news-empty a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--news-blue-dark); }

.news-page .news-sidebar { min-width: 0; display: grid; gap: 20px; }
.news-page .news-widget { padding: 22px; }
.news-page .news-widget > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--news-ink); }
.news-page .news-widget > h2 > i { color: var(--news-blue); font-size: 16px; }
.news-page .news-widget > h2 > span { margin-left: auto; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 400; background: #eef5ff; color: var(--news-blue-dark); }
.news-page .news-search-form { display: flex; gap: 0; border: 1px solid #dce5f2; border-radius: 8px; background: #f9fbff; }
.news-page .news-search-form:focus-within { border-color: var(--news-blue); box-shadow: 0 0 0 3px rgba(0,110,255,.1); }
.news-page .news-search-form input { width: 100%; min-width: 0; flex: 1; height: 46px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--news-ink); font: inherit; font-size: 14px; background: transparent; }
.news-page .news-search-form input::placeholder { color: #738399; }
.news-page .news-search-form button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; border: 0; border-radius: 7px; color: var(--news-blue-dark); background: transparent; cursor: pointer; }
.news-page .news-search-form button:hover { background: #eaf2ff; }
.news-page .news-side-categories { display: grid; gap: 6px; }
.news-page .news-side-categories a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: #53657c; font-size: 14px; line-height: 1.6; font-weight: 400; text-decoration: none; }
.news-page .news-side-categories a span { min-width: 0; overflow-wrap: anywhere; }
.news-page .news-side-categories a:hover, .news-page .news-side-categories a[aria-current] { background: #edf5ff; color: var(--news-blue-dark); }
.news-page .news-side-categories a[aria-current] { font-weight: 500; }
.news-page .news-popular-list { list-style: none; margin: 0; padding: 0; }
.news-page .news-popular-list li + li { border-top: 1px solid #eef2f7; }
.news-page .news-popular-list a { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 15px 0; color: inherit; text-decoration: none; }
.news-page .news-popular-list li:first-child a { padding-top: 0; }
.news-page .news-popular-list li:last-child a { padding-bottom: 0; }
.news-page .news-popular-number { flex: 0 0 28px; min-width: 28px; white-space: nowrap; margin-top: 1px; color: #8c9bb0; font-size: 19px; line-height: 1.4; font-weight: 700; font-style: italic; font-variant-numeric: tabular-nums; }
.news-page .news-popular-list li:nth-child(-n+3) .news-popular-number { color: var(--news-blue); }
.news-page .news-popular-text { min-width: 0; }
.news-page .news-popular-text strong { display: block; font-size: 14px; line-height: 1.65; font-weight: 500; overflow-wrap: anywhere; }
.news-page .news-popular-list a:hover strong { color: var(--news-blue-dark); }
.news-page .news-popular-text time { display: block; margin-top: 6px; color: var(--news-muted); font-size: 12px; }
.news-page .news-support { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; background: linear-gradient(135deg, #eef5ff, #f7fbff); border-color: #dce9fb; box-shadow: none; }
.news-page .news-support-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--news-blue); background: #fff; border-radius: 12px; font-size: 23px; }
.news-page .news-support h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.news-page .news-support p { margin: 0; color: var(--news-muted); font-size: 13px; line-height: 1.7; }
.news-page .news-support > a { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px; border: 1px solid #cddff8; border-radius: 8px; color: var(--news-blue-dark); background: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.news-page .news-support > a:hover { border-color: var(--news-blue); }

.news-page .news-pagination { padding: 22px 24px 26px; border-top: 1px solid var(--news-line); }
.news-page .news-pagination .pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.news-page .news-pagination a, .news-page .news-pagination span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 6px; font-size: 14px; color: #526178; }
.news-page .news-pagination a:hover, .news-page .news-pagination .active span { color: #fff; background: var(--news-blue); border-color: var(--news-blue); }
.news-page .news-pagination .disabled span { color: #758397; background: #f6f8fb; }

.news-page .news-hero--article { padding-block: 38px 42px; }
.news-page .news-hero--article > .news-shell { position: relative; z-index: 1; }
.news-page .article-hero-category { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 6px; color: var(--news-blue-dark); background: #e5efff; font-size: 13px; text-decoration: none; }
.news-page .news-hero h1.news-detail-title { max-width: 1100px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.45; margin: 16px 0; }
.news-page .article-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ibd-hero-text-sub, var(--news-muted)); font-size: 13px; }
.news-page .article-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.news-page .article-detail-layout { padding-bottom: 80px; }
.news-page .article-container { border-color: var(--news-line); border-radius: var(--news-radius); box-shadow: 0 4px 18px rgba(31,65,117,.025); }
.news-page .article-breadcrumb { background: #fafbfe; line-height: 1.8; overflow-wrap: anywhere; }
.news-page .article-body { padding: 36px 40px; }
.news-page .article-content { max-width: 76ch; margin-inline: auto; overflow-wrap: anywhere; }
.news-page .article-content pre { max-width: 100%; }
.news-page .article-footer { background: #fafbfe; }
.news-page .article-nav .nav-item { border-color: var(--news-line); }
.news-page .share-btn { width: 40px; height: 40px; }

.news-page .news-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.news-page a:focus-visible, .news-page button:focus-visible, .news-page input:focus-visible { outline: 2px solid var(--news-blue-dark); outline-offset: 3px; }

/* Header switches to .mobile-topbar at this breakpoint (16px side padding). */
@media (max-width: 1200px) {
    .news-page .news-shell { width: calc(100% - 32px); }
    .news-page .news-hero-inner { gap: 28px; }
    .news-page .news-overview { gap: 20px; padding: 20px; }
    .news-page .news-overview-icon { display: none; }
    .news-page .news-layout { gap: 22px; grid-template-columns: minmax(0,1fr) 300px; }
    .news-page .news-entry { grid-template-columns: 150px minmax(0,1fr); gap: 20px; }
    .news-page .news-entry-arrow { display: none; }
    .news-page .news-rows { padding-inline: 22px; }
}
@media (max-width: 1000px) {
    .news-page .news-layout { grid-template-columns: minmax(0,1fr); }
    .news-page .news-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .news-page .news-popular { grid-column: 2; grid-row: 1 / span 3; }
    .news-page .news-entry { grid-template-columns: 174px minmax(0,1fr) 36px; }
    .news-page .news-entry-arrow { display: grid; }
}
@media (max-width: 768px), (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
    /* News and help share this shell; keep phone portraits and landscapes focused on content. */
    .news-page .news-hero { display: none; }
    .news-page .news-mobile-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-block: 20px 16px; }
    .news-page .news-mobile-heading h1 { min-width: 0; margin: 0; color: var(--news-ink); font-size: 22px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
    .news-page .news-mobile-heading > span { color: var(--news-muted); font-size: 13px; line-height: 1.6; }
}
@media (max-width: 768px) {
    .news-page .news-hero-inner { display: block; }
    .news-page .news-overview { display: none; }
    .news-page .news-hero h1 { margin-block: 12px; }
    .news-page .news-category { padding-inline: 16px; font-size: 14px; }
    .news-page .news-categories { gap: 6px; }
    .news-page .news-layout { padding-top: 22px; padding-bottom: 48px; }
    .news-page .news-feed-heading { padding: 18px; }
    .news-page .news-feed-heading h2 { font-size: 18px; gap: 8px; }
    .news-page .news-entry { grid-template-columns: 128px minmax(0,1fr); gap: 18px; padding-block: 22px; }
    .news-page .news-entry-arrow { display: none; }
    .news-page .news-entry h3 { font-size: 18px; }
    .news-page .news-rows { padding-inline: 18px; }
    .news-page .news-search-form input { font-size: 16px; }
    .news-page .article-body { padding: 24px 20px; }
    .news-page .article-footer { padding: 20px; }
    .news-page .article-nav { flex-direction: column; }
    .news-page .article-nav .nav-item { width: 100%; padding: 18px; }
    .news-page .article-hero-meta { gap: 8px 16px; }
}
@media (max-width: 600px) {
    .news-page .news-category { padding-inline: 13px; }
    .news-page .news-entry { grid-template-columns: minmax(0,1fr) 84px; align-items: start; gap: 14px; }
    .news-page .news-entry-cover { grid-column: 2; grid-row: 1; margin-top: 34px; aspect-ratio: 1; }
    .news-page .news-entry-content { grid-column: 1; grid-row: 1; }
    .news-page .news-cover-fallback i { font-size: 26px; }
    .news-page .news-cover-fallback > span { display: none; }
    .news-page .news-entry-meta { gap: 7px 12px; }
    .news-page .news-entry-author { display: none; }
    .news-page .news-sidebar { grid-template-columns: minmax(0,1fr); }
    .news-page .news-popular { grid-column: auto; grid-row: auto; }
    .news-page .news-widget { padding: 20px; }
    .news-page .news-pagination { padding-inline: 14px; }
    .news-page .news-pagination a, .news-page .news-pagination span { min-width: 36px; height: 40px; padding-inline: 8px; }
}
/* Match the compact mobile header's 12px inset as well. */
@media (max-width: 360px) {
    .news-page .news-shell { width: calc(100% - 24px); }
    .news-page .news-entry { grid-template-columns: minmax(0,1fr) 72px; gap: 10px; }
    .news-page .news-rows { padding-inline: 14px; }
    .news-page .news-feed-heading h2 > span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .news-page *, .news-page *::before, .news-page *::after { animation: none; transition: none; }
    .news-page .news-entry:hover img { transform: none; }
}
