/* ======================================================
   pages/news.css — 新闻页面样式（与 index 风格统一）
   ====================================================== */

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes newsSpin {
    to { transform: rotate(360deg); }
}

/* ===== 基础 ===== */
body.news-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #db3710 0%, #f39800 25%, #f7f8f8 25%);
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding-bottom: 2rem;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hidden { display: none !important; }

/* ===== 背景装饰（与 index 一致的 3 个 orb） ===== */
.bg-decor {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 50%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-decor .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: newsFloat 20s infinite ease-in-out;
}
.bg-decor .orb:nth-child(1) {
    width: 500px; height: 500px;
    background: rgba(243, 152, 0, 0.14);
    top: -200px; right: -150px;
}
.bg-decor .orb:nth-child(2) {
    width: 400px; height: 400px;
    background: rgba(219, 55, 16, 0.10);
    top: 50px; left: -100px;
    animation-delay: -7s;
}
.bg-decor .orb:nth-child(3) {
    width: 300px; height: 300px;
    background: rgba(170, 133, 52, 0.10);
    bottom: -100px; left: 50%;
    animation-delay: -12s;
}
@keyframes newsFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(30px, -30px) scale(1.05); opacity: 0.3; }
    66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
}

/* ===== 头部 ===== */
.news-header {
    position: relative;
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.back-link {
    position: absolute;
    left: 0; top: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.back-link:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.page-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.page-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    letter-spacing: 1px;
}

/* ===== 新闻卡片列表 ===== */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #db3710, #db3710);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(243,152,0,0.18);
}
.news-card:hover::after {
    transform: scaleX(1);
}

/* 封面 */
.card-cover {
    width: 100%;
    min-height: 0;
    padding-top: 56.25%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #eee0cf;
    position: relative;
}
.card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #f7f8f8, #eee0cf);
}

.card-body {
    flex: 1;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 0.3rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-subtitle {
    font-size: 0.82rem;
    color: #777;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #999;
}
.meta-source {
    font-weight: 600;
    color: #db3710;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    animation: fadeIn 0.6s ease;
}
.pg-btn {
    min-width: 36px;
    height: 36px;
    border: 1.5px solid #ead8bd;
    border-radius: 10px;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 0.5rem;
}
.pg-btn:hover {
    border-color: #db3710;
    color: #db3710;
    background: rgba(243,152,0,0.08);
    transform: translateY(-1px);
}
.pg-btn-active {
    background: linear-gradient(135deg, #db3710, #db3710);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(243,152,0,0.28);
}
.pg-dots {
    color: #aaa;
    padding: 0 0.2rem;
}

/* ===== 文章详情 ===== */
.news-article {
    animation: fadeInUp 0.4s ease;
}

.article-wrap {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    margin:0 auto;
}

/* Hero 区域：封面图 + 标题叠加 */
.article-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.article-hero-noimg {
    min-height: 220px;
    background: linear-gradient(135deg, #1f1f1f 0%, #aa8534 50%, #db3710 100%);
}

.article-hero-overlay {
    width: 100%;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}

.article-hero-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
}

.article-hero-meta .meta-item {
    white-space: nowrap;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

.article-hero-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.article-content {
    max-width:960px;
    margin:0 auto;
    padding: 1.5rem 2rem;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #333;
}
.article-content img { max-width:100%; height:auto; border-radius:8px; }
.article-content table { max-width:100%; }
.article-content a {
    color: #db3710;
    text-decoration: underline;
}

/* 国内资讯（公众号文章）特殊处理：强制居中图片 */
.article-content.wx-content { overflow:hidden; }
.article-content.wx-content img {
    max-width:100% !important; height:auto !important; border-radius:8px;
    display:block !important; margin:0 auto !important; float:none !important;
}
.article-content.wx-content table {
    max-width:100%; margin:0 auto; display:table; float:none !important;
}
.article-content.bbs-content img {
    max-width:100%; height:auto; border-radius:8px;
}

/* 图片画廊 — 单列布局 */
.article-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}
.gallery-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f8f8;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s;
}
.gallery-item img:hover {
    opacity: 0.92;
}

/* ===== 加载 & 空状态 ===== */
.loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 3rem 1rem;
    color: #999;
    font-size: 0.9rem;
}
.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #ead8bd;
    border-top-color: #db3710;
    border-radius: 50%;
    animation: newsSpin 0.8s linear infinite;
}
.empty-msg {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 0.95rem;
}

/* ===== 跑马灯 (首页用，保留在此) ===== */
.marquee-section {
    margin-bottom: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    animation: fadeInUp 0.6s ease 0.05s both;
}
.marquee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f7f8f8;
}
.marquee-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #db3710;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.marquee-badge {
    background: linear-gradient(135deg, #db3710, #fdd000);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}
.marquee-more {
    font-size: 0.78rem;
    color: #db3710;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.marquee-more:hover { color: #db3710; }

.marquee-body {
    height: 38px;
    overflow: hidden;
    position: relative;
}
.marquee-track {
    position: absolute;
    width: 100%;
    transition: top 0.5s ease;
}
.marquee-item {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.85rem;
    color: #444;
    gap: 0.5rem;
    cursor: default;
}
.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #db3710;
    flex-shrink: 0;
}
.marquee-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.marquee-date {
    color: #bbb;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    body.news-page {
        background: linear-gradient(180deg, #db3710 0%, #f39800 22%, #f7f8f8 22%);
    }
    .news-container { padding: 0 1rem; }
    .news-header { padding: 2rem 0 1rem; }
    .page-title { font-size: 1.6rem; }
    .page-subtitle { font-size: 0.85rem; }
    .news-list { grid-template-columns: 1fr; gap: 16px; }
    .card-cover { width: 100%; min-height: 0; padding-top: 56.25%; }
    .card-body { padding: 0.8rem 1rem; }
    .card-title { font-size: 0.92rem; }
    .article-hero { min-height: 240px; }
    .article-hero-title { font-size: 1.2rem; }
    .article-hero-overlay { padding: 1.2rem; }
    .article-content { padding: 1rem 1.2rem; }
}

@media (max-width: 480px) {
    .news-container { padding: 0 0.75rem; }
    body.news-page {
        background: linear-gradient(180deg, #db3710 0%, #f39800 20%, #f7f8f8 20%);
    }
    .news-header { padding: 2rem 0 1rem; }
    .page-title { font-size: 1.3rem; }
    .page-subtitle { font-size: 0.8rem; }
    .news-card { flex-direction: column; }
    .card-cover {
        width: 100%;
        min-height: 0;
        padding-top: 56.25%;
        max-height: none;
    }
    .card-body { padding: 0.8rem 1rem; }
    .card-meta { gap: 0.5rem; }
    .article-hero { min-height: 200px; }
    .article-hero-title { font-size: 1.1rem; }
    .article-hero-meta { gap: 0.5rem; }
    .back-link {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 0.5rem;
    }
    .header-center { text-align: left; }
    .news-header { text-align: left; }
}

/* ===== 底部版权 ===== */
.news-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.news-footer a.footer-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.news-footer a.footer-link:hover {
    color: #f39800;
    text-decoration: underline;
}
.news-footer .footer-beian {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}
.news-footer .footer-beian a.footer-link {
    margin: 0 0.3rem;
}

/* 瀑布流加载 */
.feed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #999;
    font-size: 0.85rem;
}
.feed-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5rem 1.5rem;
}

/* ===== 列表搜索框 ===== */
#listSearchInput:focus {
    border-color: #f39800 !important;
    box-shadow: 0 0 0 3px rgba(243,152,0,0.14);
}

/* ===== 社交操作栏 ===== */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem 0.5rem;
    flex-wrap: wrap;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.action-btn:hover {
    background: #f7f8f8;
    border-color: #ccc;
}
.action-btn.action-like.liked {
    background: #fff0f0;
    border-color: #ff6b6b;
    color: #e53935;
}
.action-btn.action-like.liked span {
    color: #e53935;
}
.action-btn:active {
    transform: scale(0.95);
}
.action-btn.action-original {
    color: #f39800;
    text-decoration: none;
    font-size: 0.83rem;
}
.action-btn.action-original:hover {
    background: #eff6ff;
    border-color: #f39800;
}

.article-content.original-html {
    color: #1f1f1f;
    font-size: 1rem;
    line-height: 1.8;
}
.original-html p {
    margin: 0 0 1.1rem;
}
.original-html h1,
.original-html h2,
.original-html h3,
.original-html h4,
.original-html h5,
.original-html h6 {
    margin: 1.4rem 0 0.7rem;
    line-height: 1.35;
    color: #1f1f1f;
}
.original-html h1 { font-size: 1.45rem; }
.original-html h2 { font-size: 1.3rem; }
.original-html h3 { font-size: 1.16rem; }
.original-html img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 8px;
    cursor: zoom-in;
}
.original-html figure {
    margin: 1rem 0;
}
.original-html figcaption {
    margin-top: 0.45rem;
    color: #7a6250;
    font-size: 0.86rem;
    text-align: center;
}
.original-html a {
    color: #db3710;
    text-decoration: none;
}
.original-html a:hover {
    text-decoration: underline;
}
.original-html ul,
.original-html ol {
    margin: 0 0 1rem 1.4rem;
}
.original-html li {
    margin: 0.35rem 0;
}
.original-html blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid #f39800;
    background: #fffaf2;
    color: #7a6250;
}

.original-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.original-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
}
.original-viewer-panel {
    position: relative;
    width: min(980px, 96vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
}
.original-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eee0cf;
}
.original-viewer-title {
    margin: 0;
    font-size: 1rem;
    color: #1f1f1f;
}
.original-viewer-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff4df;
    color: #5f4630;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.original-viewer-close:hover {
    background: #eee0cf;
}
.original-viewer-body {
    overflow: auto;
    padding: 1.2rem;
}
.original-viewer-loading,
.original-viewer-empty {
    color: #7a6250;
    text-align: center;
    padding: 2rem 0;
}
.original-viewer-prev-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 0.4rem;
}
.original-viewer-prev-url {
    margin-bottom: 1rem;
    font-size: 0.86rem;
    word-break: break-all;
}
.original-viewer-prev-url a {
    color: #db3710;
}
.original-viewer-prev-html {
    color: #1f1f1f;
    line-height: 1.8;
}
.original-viewer-prev-html img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 8px;
    cursor: zoom-in;
}

/* ===== 评论区 ===== */
.article-comments {
    padding: 0 1.5rem 1.5rem;
}
.comments-loading, .comments-empty {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 1rem;
}
.comment-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee0cf;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}
.comment-date {
    font-weight: 400;
    color: #999;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}
.comment-body {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
}

/* ===== 评论表单 ===== */
.comment-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.comment-input, .comment-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.comment-input:focus, .comment-textarea:focus {
    border-color: #f39800;
}
.comment-textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}
.comment-submit {
    align-self: flex-end;
    padding: 0.5rem 1.2rem;
    background: #f39800;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-submit:hover {
    background: #db3710;
}

@media (max-width: 480px) {
    .article-actions {
        padding: 0.8rem 1rem 0.3rem;
        gap: 0.5rem;
    }
    .action-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    .article-comments {
        padding: 0 1rem 1rem;
    }
}

/* ===== 图片查看器（Lightbox） ===== */
.image-viewer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.image-viewer-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.image-viewer-close {
    position: fixed;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 100000;
    line-height: 1;
    font-family: Arial, sans-serif;
}
.image-viewer-close:hover {
    opacity: 1;
}

/* ======================================================
   Moto8 3.0 minimal news style
   Keep the existing data/rendering logic, but make list and detail pages
   match the clean homepage reading style.
   ====================================================== */
html {
    background: #fff;
    color: #1f1f1f;
    -webkit-text-size-adjust: 100%;
}

body.news-page {
    margin: 0;
    padding: 0 0 42px;
    background: #fff !important;
    color: #1f1f1f;
    font-family: "FZLanTingHeiS", "Lantinghei SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
}

.bg-decor,
.bg-grid {
    display: none !important;
}

.news-container {
    width: min(720px, calc(100% - 34px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: right;
    padding: 18px 0 16px;
    border-bottom: 1px solid #eee0cf;
    animation: none;
}

.news-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    flex: 0 0 auto;
}

.news-brand-logo {
    width: auto;
    height: 72px;
    border-radius: 6px;
    display: block;
    object-fit: contain;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    flex: 1 1 280px;
}

.back-link {
    position: static;
    display: none;
    width: fit-content;
    margin: 0 0 14px;
    padding: 0;
    color: #777;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.back-link:hover {
    color: #db3710;
    background: transparent;
}

.page-title {
    margin: 0;
    color: #1f1f1f;
    text-shadow: none;
    letter-spacing: 0;
    font-size: 26px;
    line-height: 1.28;
    font-weight: 850;
}

.page-subtitle {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0;
}

.source-tabs {
    justify-content: flex-end !important;
    gap: 12px !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    overflow-x: auto;
}

.source-tab {
    flex: 0 0 auto;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 0 8px !important;
    background: transparent !important;
    color: #777 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 650 !important;
}

.source-tab:hover,
.source-tab.active {
    color: #db3710 !important;
    border-bottom: 2px solid #db3710 !important;
}

.source-tab-count {
    margin-left: 5px;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
}

#listView {
    padding-top: 16px;
}

.list-filter-bar {
    margin: 0 0 14px !important;
    padding: 0 !important;
}

#listSearchInput {
    width: 100% !important;
    max-width: none !important;
    height: 42px;
    border: 1px solid #eee0cf !important;
    border-radius: 6px !important;
    background: #fffaf2 !important;
    color: #222;
    font-size: 14px !important;
    padding: 0 13px !important;
    box-shadow: none !important;
}

#listSearchInput:focus {
    border-color: #f39800 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.wx-index-panel {
    margin: 0 0 14px !important;
    padding: 12px 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-top: 1px solid #eee0cf !important;
    border-bottom: 1px solid #eee0cf !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.wx-index-head {
    margin-bottom: 8px !important;
}

.wx-index-title {
    color: #5f4630 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

.wx-index-clear {
    color: #db3710 !important;
}

.wx-index-label {
    color: #999 !important;
}

.wx-chip {
    border: 1px solid #ead8bd !important;
    border-radius: 999px !important;
    background: #fffaf2 !important;
    color: #5f4630 !important;
    box-shadow: none !important;
}

.wx-chip:hover,
.wx-chip.active {
    border-color: #db3710 !important;
    background: #db3710 !important;
    color: #fff !important;
}

.list-summary {
    margin: 0 0 12px !important;
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: none;
}

.news-card,
.news-card.bbs-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 13px;
    padding: 16px 0;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #eee0cf !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    cursor: pointer;
    transition: none;
}

.news-card::after {
    display: none !important;
}

.news-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #eee0cf !important;
}

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

.card-cover {
    grid-column: 2;
    grid-row: 1;
    width: 128px;
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 0;
    padding-top: 0;
    border-radius: 5px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.card-cover-placeholder {
    display: block;
}

.card-cover-placeholder span {
    display: none;
}

.news-card.feature-card,
.news-card.bbs-card.feature-card {
    display: block;
    padding: 0 0 18px;
    position: relative;
    border-bottom: 0 !important;
    overflow: hidden;
    border-radius: 7px !important;
    margin: 2px 0 12px;
    background: #1f1f1f !important;
}

.news-card.feature-card .card-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
    border-radius: 7px;
}

.news-card.feature-card .card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    padding: 42px 16px 14px !important;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.74));
}

.news-card.feature-card .card-title {
    font-size: 20px;
    line-height: 1.34;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0,0,0,.45);
}

.news-card.feature-card .card-subtitle {
    display: none;
}

.news-card.feature-card .forum-badge {
    display: none;
}

.news-card.feature-card .card-tags {
    display: none !important;
}

.news-card.feature-card .card-meta {
    margin-top: 8px;
    color: rgba(255,255,255,.78);
}

.news-card.feature-card .meta-source,
.news-card.feature-card .author-badge,
.news-card.feature-card .views-badge,
.news-card.feature-card .meta-date,
.news-card.feature-card .meta-stat {
    color: rgba(255,255,255,.78) !important;
}

.card-body {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 0 !important;
    display: block;
}

.channel-pill,
.forum-badge {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: #9b1c12 !important;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.card-title {
    margin: 0;
    color: #222;
    font-size: 16px;
    line-height: 1.38;
    font-weight: 750;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.card-subtitle {
    margin: 6px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-tags {
    display: none !important;
}

.card-meta {
    margin-top: 8px;
    display: flex;
    gap: 7px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
    flex-wrap: wrap;
}

.meta-source,
.author-badge,
.views-badge,
.meta-date,
.meta-stat {
    color: #aaa !important;
    font-weight: 400;
}

.meta-source,
.author-badge {
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagination {
    margin: 18px 0 0;
    padding: 0;
    gap: 6px;
    animation: none;
}

.pg-btn,
.page-btn {
    min-width: 34px;
    height: 34px;
    border: 1px solid #eee0cf;
    border-radius: 6px;
    background: #fff;
    color: #555;
    box-shadow: none;
    font-size: 13px;
    font-weight: 500;
}

.pg-btn:hover,
.page-btn:hover,
.pg-btn-active {
    background: #db3710;
    border-color: #db3710;
    color: #fff;
    transform: none;
    box-shadow: none;
}

#detailView {
    padding-top: 16px;
}

.news-article {
    animation: none;
}

.article-wrap {
    margin: 0 auto;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 15px;
    border-radius: 6px;
    background: #eee center / cover no-repeat;
}

.article-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff !important;
    border-bottom: 1px solid #eee0cf;
}

.article-hero-overlay {
    width: 100%;
    padding: 0 0 18px;
    background: transparent;
    color: #1f1f1f;
}

.article-hero-title {
    margin: 0;
    color: #1f1f1f;
    text-shadow: none;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 850;
    letter-spacing: -0.015em;
}

.article-hero-meta {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}

.article-hero-meta .meta-item,
.bbs-detail-meta .meta-item {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #999;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-weight: 400;
}

.article-content {
    max-width: none;
    margin: 0;
    padding: 18px 0 0;
    color: #333;
    font-size: 16px;
    line-height: 1.85;
}

.article-content p {
    margin: 0 0 1em;
}

.article-content.wx-content,
.article-content.wx-content * {
    max-width: 100% !important;
    color: inherit;
    background-color: transparent !important;
    box-shadow: none !important;
}

.article-content.wx-content section,
.article-content.wx-content div,
.article-content.wx-content p {
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-content img,
.article-content.wx-content img,
.article-content.bbs-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    display: block !important;
    margin: 16px auto !important;
}

.article-content a {
    color: #db3710;
    text-decoration: underline;
}

.article-gallery {
    padding: 16px 0 0;
    gap: 12px;
}

.gallery-item {
    border-radius: 6px;
    background: #f7f8f8;
}

.article-actions {
    justify-content: flex-start;
    gap: 8px;
    margin: 18px 0 0;
    padding: 16px 0;
    border-top: 1px solid #eee0cf;
}

.action-btn,
.comment-submit {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #eee0cf;
    border-radius: 6px;
    background: #fff;
    color: #333;
    box-shadow: none;
    font-size: 13px;
    font-weight: 500;
}

.action-btn:hover,
.comment-submit:hover {
    background: #db3710;
    color: #fff;
    border-color: #db3710;
    transform: none;
    box-shadow: none;
}

.article-comments {
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid #eee0cf;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.comment-input,
.comment-textarea {
    border: 1px solid #eee0cf;
    border-radius: 6px;
    background: #fffaf2;
}

.bbs-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    color: #999;
    border: 0;
    background: transparent;
}

.bbs-body {
    color: #333;
    font-size: 16px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
}

.bbs-body .bbs-img-missing {
    margin: 14px 0;
    padding: 12px;
    border-radius: 6px;
    background: #fffaf2;
    color: #999;
    font-size: 14px;
}

.bbs-pagination {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee0cf;
}

.feed-divider {
    margin: 30px 0;
    border: 0;
    border-top: 8px solid #f7f8f8;
}

.news-footer {
    width: min(720px, calc(100% - 34px));
    margin: 28px auto 0;
    padding: 18px 0 0;
    border-top: 1px solid #eee0cf;
    color: #999;
    text-align: left;
    font-size: 12px;
    line-height: 1.7;
}

.news-footer .footer-link {
    color: #777;
}

.loading-wrap,
.empty-msg {
    color: #777;
}

.loading-spinner {
    border-color: #eee0cf;
    border-top-color: #db3710;
}

@media (max-width: 560px) {
    .news-container,
    .news-footer {
        width: calc(100% - 28px);
    }

    .news-header {
        align-items: flex-start;
        gap: 12px;
        flex-wrap: nowrap;
        padding-top: 14px;
    }

    .news-brand-logo {
        height: 50px;
    }

    .header-center {
        flex: 1 1 auto;
        min-width: 0;
        align-self: stretch;
        justify-content: flex-end;
    }

    .page-subtitle {
        display: none;
    }

    .page-title {
        font-size: 23px;
    }

    .source-tabs {
        justify-content: flex-end !important;
        width: 100%;
        max-width: 100%;
        gap: 1em !important;
        margin-top: 0 !important;
        padding-bottom: 2px !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .source-tabs::-webkit-scrollbar {
        display: none;
    }

    .source-tab {
        flex: 0 0 auto !important;
        min-width: max-content;
        white-space: nowrap;
        word-break: keep-all;
        line-height: 1.4;
        text-align: center;
        font-size: 0 !important;
    }

    .source-tab::before {
        content: attr(data-short-label);
        font-size: 14px;
    }

    .source-tab-count {
        display: none;
    }

    .wx-index-panel {
        padding: 12px 0 !important;
    }

    .wx-index-body {
        max-height: 58vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .wx-index-row {
        display: block !important;
        margin-top: 12px !important;
    }

    .wx-index-label {
        display: block;
        margin: 0 0 7px !important;
        line-height: 1.35 !important;
    }

    .wx-index-chips {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px 7px !important;
        overflow: visible !important;
        padding: 0 0 2px !important;
    }

    .wx-chip {
        flex: 0 1 auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        padding: 7px 11px !important;
        word-break: keep-all;
    }

    .news-card,
    .news-card.bbs-card {
        grid-template-columns: minmax(0, 1fr) 108px;
        gap: 12px;
        padding: 14px 0;
    }

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

    .card-cover {
        width: 108px;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .news-card.feature-card,
    .news-card.bbs-card.feature-card {
        padding: 0;
        margin: 2px 0 10px;
    }

    .news-card.feature-card .card-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .news-card.feature-card .card-title {
        font-size: 18px;
        color: #fff;
    }

    .news-card.feature-card .card-subtitle {
        display: none;
    }

    .news-card.feature-card .card-body {
        padding: 34px 12px 12px !important;
    }

    .card-title {
        font-size: 16px;
        line-height: 1.38;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .card-subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        font-size: 12px;
    }

    .article-hero-title {
        font-size: 24px;
    }

    .article-content,
    .bbs-body {
        font-size: 15px;
    }
}
