.news-container {
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f7;
    padding-bottom: 60px;
}

.news-banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

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

.news-banner .banner-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.news-banner .banner-content p {
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.news-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
    align-items: flex-start;
}

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

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

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

.news-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-featured {
    grid-column: 1 / -1;
}

.news-item-featured .news-img {
    height: 400px;
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

.news-tag {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    color: #555;
}

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

.sidebar-module {
    background: transparent;
    margin-bottom: 32px;
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}

.sidebar-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscribe-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}

.subscribe-input:focus {
    border-color: #000;
}

.subscribe-agree {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscribe-agree a {
    color: var(--g-color-default);
    text-decoration: none;
}

.subscribe-btn {
    width: 100%;
    padding: 12px;
    background: var(--g-color-default);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-btn:hover {
    background: var(--g-color-default);
}

.subscribe-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.subscribe-msg {
    margin: 0;
    font-size: 13px;
    min-height: 18px;
    line-height: 18px;
}

.subscribe-msg-success {
    color: #52c41a;
}

.subscribe-msg-error {
    color: #ff4d4f;
}

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

.social-list li {
    margin-bottom: 8px;
}

.social-list li:last-child {
    margin-bottom: 0;
}

.social-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 0px 16px;
    border-radius: 4px;
    background: #fff;
    transition: background 0.3s;
}

.social-list a:hover {
    background: #f0f0f0;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('../img/icon/chat.png');
    background-repeat: no-repeat;
    background-position-y: top;
    background-size: 360px 80px;
}

.icon-facebook { background-position-x: 0; }
.icon-x { background-position-x: -40px; }
.icon-youtube { background-position-x: -80px; }
.icon-linkedin { background-position-x: -120px; }
.icon-tiktok { background-position-x: -160px; }
.icon-wechat {background-position: -200px 0px; }
.icon-weibo { background-position-x: -240px; }
.icon-xiaohongshu { background-position-x: -280px; }
.icon-bilibili { background-position-x: -320px; }

/* 视频号 / 知乎:使用独立 PNG 图标(雪碧图 chat.png 中无对应图标) */
.icon-channels,
.icon-zhihu {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.icon-channels {
    background-image: url('../img/icon/icon_sph.png');
    width: 35px;
    height: 35px;
}

.icon-zhihu {
    background-image: url('../img/icon/icon_zh.png');
    width: 35px;
    height: 35px;
}

/*
 * 社交媒体二维码弹层(#newsSocialQrModal)
 * 复用 layout.html 全局加载的 footer.css 中 wechat-qr-modal 样式,
 * 这里只补充 news 侧栏颜色适配的微调(可选)
 */

/* Empty State */
.news-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
    background: #fff;
    border-radius: 8px;
}

/* Pagination */
.news-pagination {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px 0;
}

.news-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-pagination .page-link:hover {
    background: #f5f5f5;
    border-color: var(--g-color-default);
    color: var(--g-color-default);
}

.news-pagination .page-link-active {
    background: var(--g-color-default);
    border-color: var(--g-color-default);
    color: #fff;
    cursor: default;
}

.news-pagination .page-link-active:hover {
    background: var(--g-color-default);
    border-color: var(--g-color-default);
    color: #fff;
}

.news-pagination .page-link-disabled {
    color: #bbb;
    background: #fafafa;
    cursor: not-allowed;
}

.news-pagination .page-link-disabled:hover {
    color: #bbb;
    background: #fafafa;
    border-color: #e0e0e0;
}

.news-pagination .page-total {
    margin-left: 8px;
    color: #888;
    font-size: 13px;
}

@media (max-width: 992px) {
    .news-content-wrapper {
        flex-direction: column;
    }
    .news-sidebar {
        width: 100%;
    }
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
    }
}