/* 新闻Banner */
.news-banner {
    background: url('../img/remoteL17093492387302.png') no-repeat center center;
    background-size: cover;
    margin-top: 60px;
    padding: 70px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.news-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.news-banner-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.news-banner-content p {
    font-size: 16px;
    opacity: 0.85;
    max-width: 560px;
    line-height: 1.8;
}

/* 新闻三栏布局 */
.news-section {
    padding: 40px 0 60px;
    background: #f0f2f5;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

/* 左侧分类导航 */
.news-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    padding: 16px 0;
    height: fit-content;
}

.news-sidebar a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.news-sidebar a:hover {
    background: #f5f7fa;
    color: var(--primary-link);
}

.news-sidebar a.active {
    background: #f0f7ff;
    color: var(--primary-link);
    border-left-color: var(--primary-link);
    font-weight: 600;
}

.news-sidebar a .sidebar-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    opacity: 0.5;
}

.news-sidebar a.active .sidebar-icon {
    opacity: 1;
}

/* 中间新闻列表 */
.news-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 4px;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
}

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

.news-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.news-empty-state img {
    width: 160px;
    height: auto;
    margin-bottom: 16px;
}

.news-empty-state p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.news-list-item-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    animation: newsFadeIn 0.4s ease both;
}

@keyframes newsFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-list-item-row:hover {
    background: #fafbfc;
}

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

.news-item-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: contain;
}

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

.news-item-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
}

.news-item-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

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

.news-item-time {
    color: #999;
    font-size: 13px;
}

.news-item-tag {
    display: inline-block;
    padding: 2px 10px;
    background: #e6f4ff;
    color: var(--primary-link);
    border-radius: 12px;
    font-size: 12px;
}

.news-item-link {
    color: var(--primary-link);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 16px;
    flex-shrink: 0;
}

.news-item-link:hover {
    text-decoration: underline;
}

/* 分页 */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
    padding-bottom: 8px;
}

.news-total-text {
    color: #999;
    font-size: 14px;
}

.news-total-text span {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 4px;
}

.news-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    align-items: center;
}

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

.news-pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 13px;
}

.news-pagination li a svg {
    width: 14px;
    height: 14px;
}

.news-pagination li a:hover {
    border-color: var(--primary-link);
    color: var(--primary-link);
}

.news-pagination li a.active {
    background: var(--primary-link);
    color: #fff;
    border-color: var(--primary-link);
}

.news-pagination li a.page-ellipsis {
    border: none;
    cursor: default;
}

.news-pagination .page-size-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.news-pagination .page-size-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 6px 32px 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.news-pagination .page-size-select:hover {
    border-color: var(--primary-link);
}

.news-pagination .page-size-select:focus {
    border-color: var(--primary-link);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.news-pagination .page-size-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #999;
    pointer-events: none;
}

/* 右侧最新资讯 */
.news-aside {
    width: 280px;
    flex-shrink: 0;
}

.news-aside-banner {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-aside-banner img {
    width: 100%;
    display: block;
}

.news-aside-news {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
}

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

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

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

.aside-news-number {
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    margin-right: 12px;
    flex-shrink: 0;
}

.aside-news-item:nth-child(1) .aside-news-number,
.aside-news-item:nth-child(2) .aside-news-number,
.aside-news-item:nth-child(3) .aside-news-number {
    background: var(--primary-link);
    color: #fff;
}

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

.aside-news-title {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s;
}

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

.aside-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aside-news-tag {
    display: inline-block;
    padding: 1px 8px;
    background: #e6f4ff;
    color: var(--primary-link);
    border-radius: 10px;
    font-size: 11px;
}

.aside-news-time {
    color: #bbb;
    font-size: 12px;
}

/* 新闻详情 */
.news-detail-section {
    padding: 100px 0 60px;
    background: #f0f2f5;
}

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

.news-detail-section .detail-breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.news-detail-section .detail-breadcrumb a {
    color: #666;
    text-decoration: none;
}

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

.news-detail-section .bc-sep {
    margin: 0 8px;
    color: #ccc;
}

.news-detail-section .bc-current {
    color: #333;
    font-weight: 500;
}

.news-detail-section .detail-layout {
    display: flex;
    gap: 20px;
}

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

.news-detail-section .detail-card {
    background: #fff;
    border-radius: 4px;
    padding: 30px 40px;
}

.news-detail-section .detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    line-height: 1.4;
}

.news-detail-section .detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
    font-size: 14px;
}

.news-detail-section .detail-source {
    color: #999;
}

.news-detail-section .detail-source-tag {
    display: inline-block;
    padding: 2px 12px;
    background: #e6f4ff;
    color: var(--primary-link);
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
}

.news-detail-section .detail-source-tag:hover {
    background: #bae0ff;
}

.news-detail-section .detail-time {
    color: #999;
    margin-left: 8px;
}

.news-detail-section .detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.news-detail-section .detail-content p {
    margin-bottom: 16px;
}

.news-detail-section .detail-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

/* 二维码区域 */
.news-detail-section .aside-qrcode {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    gap: 10px;
    position: relative;
}

.news-detail-section .aside-qrcode-info {
    flex: 1;
    min-width: 0;
}

.news-detail-section .aside-qrcode-img {
    width: 120px;
    height: 120px;
    margin: 10px auto 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-detail-section .aside-qrcode-img img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.news-detail-section .aside-qrcode-text {
    font-size: 13px;
    color: #555;
    text-align: center;
    line-height: 1.7;
    margin: 0;
}

.news-detail-section .aside-qrcode-figure {
    width: 78px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.news-detail-section .detail-aside {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.news-detail-section .aside-banner {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-detail-section .aside-banner img {
    width: 100%;
    display: block;
}

.news-detail-section .aside-news-box {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
}

/* 上下篇导航 */
.news-detail-section .detail-page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.news-detail-section .detail-page-item {
    font-size: 14px;
    color: #999;
    max-width: 48%;
    line-height: 1.6;
}

.news-detail-section .detail-page-item a {
    color: var(--primary-link);
    text-decoration: none;
    transition: color 0.2s;
}

.news-detail-section .detail-page-item a:hover {
    color: var(--primary-link);
}

/* 分享栏 */
.news-detail-section .detail-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-detail-section .share-label {
    font-size: 13px;
    color: #999;
}

.news-detail-section .share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.news-detail-section .share-btn:hover {
    transform: scale(1.1);
    background: #f5f5f5;
}

.news-detail-section .share-btn svg {
    width: 22px;
    height: 22px;
}

/* 分享弹窗 */
.share-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.share-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.share-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.share-modal-close:hover {
    color: #333;
}

/* 微信弹窗 */
.wx-modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
}

.wx-modal-subtitle {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
}

.wx-qrcode-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.wx-qrcode-wrap img {
    width: 200px;
    height: 200px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
}

.wx-steps {
    margin-bottom: 20px;
}

.wx-step {
    font-size: 13px;
    color: #666;
    line-height: 2;
    display: flex;
    align-items: center;
}

.wx-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-link);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 8px;
    flex-shrink: 0;
}

.wx-step-icon {
    color: var(--primary-link);
    font-weight: 700;
}

.wx-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: var(--primary-link);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.wx-copy-btn svg {
    width: 16px;
    height: 16px;
}

.wx-copy-btn:hover {
    background: #40a9ff;
}

/* 海报弹窗 */
.poster-modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}

.poster-canvas-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.poster-canvas-wrap canvas {
    max-width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
}

.poster-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: var(--primary-link);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.poster-download-btn svg {
    width: 16px;
    height: 16px;
}

.poster-download-btn:hover {
    background: #40a9ff;
}

/* 顶部复制提示条 */
.share-top-bar {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #52c41a;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: top 0.3s ease;
    white-space: nowrap;
}

.share-top-bar.show {
    top: 20px;
}

.share-top-bar svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Toast 提示 */
.share-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.share-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 响应式 */
@media (max-width: 1024px) {
    .news-aside,
    .news-detail-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .news-banner {
        margin-top: 60px;
        padding: 40px 0;
        min-height: 160px;
    }

    .news-banner-content h1 {
        font-size: 24px;
    }

    .news-banner-content p {
        font-size: 14px;
    }

    .news-section {
        padding: 20px 0;
    }

    .news-detail-section {
        padding: 80px 0 20px;
    }

    .news-container {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 12px;
        gap: 8px;
    }

    .news-sidebar a {
        padding: 8px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .news-sidebar a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-link);
    }

    .news-main {
        padding: 16px;
    }

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

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

    .news-detail-layout {
        flex-direction: column;
    }

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

    .news-footer {
        flex-direction: column;
        gap: 16px;
    }

    .news-pagination {
        flex-wrap: wrap;
    }

    /* 详情页适配 */
    .news-detail-section .detail-breadcrumb {
        font-size: 13px;
        line-height: 1.6;
    }

    .news-detail-section .detail-layout {
        flex-direction: column;
        gap: 16px;
    }

    .news-detail-section .detail-card {
        padding: 16px;
    }

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

    .news-detail-section .detail-meta {
        flex-wrap: wrap;
        gap: 4px 8px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .news-detail-section .detail-time {
        margin-left: 0;
    }

    .news-detail-section .detail-content {
        font-size: 15px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .news-detail-section .detail-aside {
        display: none;
    }

    .news-detail-section .detail-page-nav {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 16px;
    }

    .news-detail-section .detail-page-item {
        max-width: 100%;
    }

    .news-detail-section .detail-share-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
}
