/* ==========================================================================
   万隆蓄财金融端 · 全站统一核心样式表 (PC暗黑红金 + 移动端亮白红金)
   合并整合原 xucai_common.css 与 jiangtang.css，全站唯一入口
   ========================================================================== */
:root {
    --bg-page: #121418;
    --bg-card: #1a1d24;
    --bg-card-hover: #222630;
    --bg-header: #161920;
    --border-subtle: #262b35;
    --brand-red: #d9232e;
    --brand-red-hover: #f02b37;
    --gold-accent: #e6a23c;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ===== 1. 通用顶部二级栏目导航栏 ===== */
.xc-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.xc-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.xc-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.xc-back-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 14px;
}

.xc-back-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
}

.xc-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.xc-tabs::-webkit-scrollbar {
    display: none;
}

.xc-tab-item {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.xc-tab-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.xc-tab-item.active {
    background: var(--brand-red);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(217, 35, 46, 0.4);
}

.xc-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* 搜索框默认隐藏，保持单行极简 */
.xc-search {
    display: none !important;
}

.xc-refresh-btn {
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.xc-refresh-btn:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

/* ===== 2. 封面页大气红金主横幅 (.xc-banner) ===== */
.xc-banner {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 24px 28px;
    border-radius: 10px;
    background: linear-gradient(110deg, #6e1017 0%, #b81c25 55%, #8f141c 100%);
    border: 1px solid rgba(230, 162, 60, 0.35);
    box-shadow: 0 8px 24px rgba(184, 28, 37, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.xc-banner-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.xc-banner-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== 3. 列表页红金渐变主横幅 (.xc-list-header / .jt-list-header) ===== */
.xc-list-header,
.jt-list-header {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 20px 26px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(110deg, #6e1017 0%, #b81c25 55%, #8f141c 100%);
    border: 1px solid rgba(230, 162, 60, 0.35);
    box-shadow: 0 8px 24px rgba(184, 28, 37, 0.25);
}

.xc-breadcrumb,
.jt-breadcrumb {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 6px;
}

.xc-breadcrumb a,
.jt-breadcrumb a {
    color: #ffd591;
}

.xc-breadcrumb a:hover,
.jt-breadcrumb a:hover {
    opacity: 0.85;
}

.xc-list-title,
.jt-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.xc-banner-badge {
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 213, 145, 0.45);
    color: #ffe58f;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== 4. 主体左右双栏容器 ===== */
.xc-container {
    max-width: 1280px;
    margin: 20px auto 40px;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.xc-main {
    flex: 1;
    min-width: 0;
}

.xc-aside {
    width: 320px;
    flex-shrink: 0;
}

.xc-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.xc-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.xc-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xc-section-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--brand-red);
}

.xc-more {
    font-size: 12px;
    color: var(--text-secondary);
}

.xc-more:hover {
    color: var(--gold-accent);
}
/* ===== 5. 双列横向图文精密卡片 (.xc-course-list) ===== */
.xc-course-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.xc-course-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.xc-course-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(217, 35, 46, 0.45);
    transform: translateY(-2px);
}

.xc-thumb {
    position: relative;
    width: 150px;
    height: 86px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #14171d;
}

.xc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xc-default-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5c0e14 0%, #9c1720 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    color: #ffe58f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

/* 电脑端隐藏默认封面里的重复标题大字，杜绝右下角徽章遮挡 */
.xc-default-cover strong {
    display: none;
}

.xc-play-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
}

.xc-play-badge::before {
    content: "▶ ";
    color: var(--brand-red);
}

.xc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.xc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-course-item:hover .xc-title {
    color: var(--gold-accent);
}

.xc-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.xc-meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.xc-tag {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(217, 35, 46, 0.14);
    color: #ff6b72;
    font-size: 10px;
    white-space: nowrap;
}

.xc-hits-num {
    font-style: normal;
    color: var(--text-secondary);
}

/* ===== 6. 网格卡片 (.xc-grid) 兼容保留 ===== */
.xc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.xc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.xc-card:hover {
    border-color: rgba(217, 35, 46, 0.45);
    transform: translateY(-2px);
}

.xc-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #14171d;
}

.xc-card-thumb img,
.xc-card-thumb .xc-default-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xc-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.xc-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 7. 右侧热门榜 (.xc-hot-list) ===== */
.xc-hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xc-hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.xc-hot-item:hover {
    background: var(--bg-card-hover);
}

.xc-hot-thumb {
    position: relative;
    width: 84px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6e1017 0%, #b81c25 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.xc-hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xc-hot-fallback {
    font-size: 10px;
    color: #ffe58f;
    font-weight: 600;
}

.xc-rank {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-right-radius: 4px;
}

.xc-hot-info {
    flex: 1;
    min-width: 0;
}

.xc-hot-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xc-hot-item:hover .xc-hot-title {
    color: var(--gold-accent);
}

.xc-hot-hits {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ===== 8. 分页控件 (.xc-pages) ===== */
.xc-pages {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.xc-pages a,
.xc-pages span,
.xc-pages li a,
.xc-pages li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
}

.xc-pages .active a,
.xc-pages .active span,
.xc-pages span.current {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
    font-weight: 600;
}

/* ===== 9. 详情阅读页（护眼浅色阅读纸张） ===== */
.xc-main .xc-section:has(.xc-article-title) {
    background: #ffffff;
    border-color: #e5e8ef;
    color: #1f2329;
    padding: 28px 32px;
}

.xc-main .xc-section:has(.xc-article-title) .xc-breadcrumb {
    color: #86909c;
}

.xc-main .xc-section:has(.xc-article-title) .xc-breadcrumb a {
    color: #4e5969;
}

.xc-article-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2329;
    line-height: 1.4;
    margin-bottom: 14px;
}

.xc-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eef0f4;
}

.xc-cat-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(217, 35, 46, 0.1);
    color: var(--brand-red);
    font-weight: 600;
}

.xc-content {
    font-size: 16px;
    line-height: 1.85;
    color: #262b33;
    word-break: break-word;
}

.xc-content p {
    margin-bottom: 16px;
}

.xc-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
    margin: 12px 0;
}

.xc-prev-next {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #eef0f4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.xc-prev-next a {
    color: #1f2329;
    font-weight: 500;
}

.xc-prev-next a:hover {
    color: var(--brand-red);
}

.xc-disclaimer {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f8f9fb;
    border: 1px solid #ebedf0;
    font-size: 12px;
    line-height: 1.7;
    color: #64748b;
}

.xc-disclaimer p {
    margin-bottom: 6px;
}

.xc-disclaimer p:last-child {
    margin-bottom: 0;
}

/* 详情页右侧同栏目列表 */
.xc-playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 620px;
    overflow-y: auto;
}

.xc-play-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    font-size: 13px;
    color: var(--text-primary);
}

.xc-play-item:hover {
    background: var(--bg-card-hover);
}

.xc-play-item.current {
    background: rgba(217, 35, 46, 0.14);
    border-color: rgba(217, 35, 46, 0.45);
}

.xc-play-num {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.xc-play-item.current .xc-play-num {
    background: var(--brand-red);
    color: #ffffff;
}

/* ===== 10. 万隆讲堂视频课节列表与全屏弹窗播放器 ===== */
.xc-video-list {
    margin: 16px 0 24px;
    border: 1px solid #e5e8ef;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.xc-video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s;
}

.xc-video-item:last-child {
    border-bottom: none;
}

.xc-video-item:hover {
    background: #fff8f8;
}

.xc-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--brand-red);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.xc-video-btn:hover {
    background: var(--brand-red-hover);
}

.xc-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.xc-modal-mask.active {
    display: flex;
}

.xc-modal-box {
    width: 100%;
    max-width: 960px;
    background: #14171d;
    border: 1px solid #2c323d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.xc-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #1a1d24;
    border-bottom: 1px solid #262b35;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.xc-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.xc-modal-close:hover {
    background: var(--brand-red);
    color: #ffffff;
}

.xc-modal-body {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
}

.xc-modal-body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 底部资质栏默认隐藏 */
.xc-footer {
    display: none !important;
}
/* 电脑端卡片底部日期与阅读数禁止折行 */
.xc-meta-left span:last-child,
.xc-meta > span:last-child {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   11. 移动端与客户端窄窗亮白红金自适应 (<= 768px) —— 千人千面核心规则
   ========================================================================== */
@media (max-width: 768px) {
    body {
        background-color: #f5f6f8 !important;
        color: #1f2329 !important;
    }

    /* 顶部导航栏亮白单行自适应 */
    .xc-topbar {
        background: #ffffff !important;
        border-bottom: 1px solid #ebedf0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .xc-topbar-inner {
        padding: 0 12px !important;
        height: 48px !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .xc-nav-left {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .xc-back-btn {
        background: #f2f3f5 !important;
        border-color: #e5e6eb !important;
        color: #1f2329 !important;
    }

    .xc-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    .xc-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .xc-tab-item {
        background: #f5f6f8 !important;
        color: #4e5969 !important;
        padding: 5px 12px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .xc-tab-item.active {
        background: #d9232e !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .xc-refresh-btn {
        background: #f5f6f8 !important;
        border-color: #e5e6eb !important;
        color: #4e5969 !important;
    }

    /* 封面页红金主横幅手机端紧凑化 */
    .xc-banner {
        margin: 12px 12px 0 !important;
        padding: 16px 18px !important;
    }

    .xc-banner-title {
        font-size: 17px !important;
    }

    .xc-banner-sub {
        font-size: 12px !important;
    }

    .xc-banner > div:last-child {
        display: none !important;
    }

    /* 列表页顶部横幅切换为亮白左红边卡片 */
    .xc-list-header,
    .jt-list-header {
        margin: 12px 12px 0 !important;
        padding: 14px 16px !important;
        background: #ffffff !important;
        border: 1px solid #ebedf0 !important;
        border-left: 4px solid #d9232e !important;
        box-shadow: none !important;
    }

    .xc-breadcrumb,
    .jt-breadcrumb {
        color: #86909c !important;
    }

    .xc-breadcrumb a,
    .jt-breadcrumb a {
        color: #4e5969 !important;
    }

    .xc-list-title,
    .jt-list-title {
        font-size: 16px !important;
        color: #1f2329 !important;
        text-shadow: none !important;
    }

    .xc-list-header > div:last-child,
    .jt-list-header > div:last-child,
    .xc-banner-badge {
        display: none !important;
    }

    /* 主体双栏改为上下垂直堆叠，彻底消除重叠 */
    .xc-container {
        flex-direction: column !important;
        margin: 12px auto 24px !important;
        padding: 0 12px !important;
        gap: 12px !important;
    }

    .xc-main,
    .xc-aside {
        width: 100% !important;
        flex: none !important;
    }

    .xc-section {
        background: #ffffff !important;
        border-color: #ebedf0 !important;
        padding: 14px !important;
        margin-bottom: 12px !important;
    }

    .xc-section-hd {
        border-bottom-color: #f0f2f5 !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .xc-section-title {
        color: #1f2329 !important;
        font-size: 15px !important;
    }

    /* 列表改为单列亮白紧凑图文卡片 */
    .xc-course-list,
    .xc-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .xc-course-item {
        background: #ffffff !important;
        border-color: #f0f2f5 !important;
        padding: 8px !important;
        gap: 10px !important;
        transform: none !important;
    }

    .xc-thumb {
        width: 96px !important;
        height: 62px !important;
    }

    .xc-title {
        color: #1f2329 !important;
        font-size: 14px !important;
    }

    .xc-meta {
        color: #86909c !important;
        margin-top: 6px !important;
    }

    .xc-hits-num {
        color: #86909c !important;
    }

    .xc-hits-num::before {
        content: "👁 ";
    }

    .xc-hot-item {
        background: #f9fafb !important;
    }

    .xc-hot-title {
        color: #1f2329 !important;
    }

    /* 详情页黄金阅读字号 */
    .xc-main .xc-section:has(.xc-article-title) {
        padding: 18px 16px !important;
    }

    .xc-article-title {
        font-size: 19px !important;
    }

    .xc-content {
        font-size: 17px !important;
        line-height: 1.85 !important;
    }

    .xc-play-item {
        background: #f9fafb !important;
        color: #1f2329 !important;
    }
}
/* ===== 放大重设顶部工具栏“返回”与“刷新”按钮（全站统一金融红金风格） ===== */
.xc-topbar a[onclick*="xcGoBack"],
.xc-topbar .xc-btn-back,
.xc-subnav a[onclick*="xcGoBack"],
.xc-subnav .xc-btn-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 72px !important;
    height: 32px !important;
    padding: 0 12px !important;
    margin-right: 10px !important;
    background: #23262e !important;
    border: 1px solid #3f4451 !important;
    border-radius: 6px !important;
    color: #f3f4f6 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.xc-topbar a[onclick*="xcGoBack"]:hover,
.xc-subnav a[onclick*="xcGoBack"]:hover {
    background: #2e323d !important;
    border-color: #d4af37 !important;
    color: #ffd700 !important;
}

/* 右侧刷新按钮放大 + 红金高亮 */
.xc-topbar .xc-btn-refresh,
.xc-subnav .xc-btn-refresh,
.xc-topbar button[class*="refresh"],
.xc-subnav button[class*="refresh"],
.xc-topbar a[class*="refresh"],
.xc-subnav a[class*="refresh"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 84px !important;
    height: 32px !important;
    padding: 0 14px !important;
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    border: 1px solid #d4af37 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.35) !important;
    transition: all 0.2s !important;
}

/* 手机端自动适配亮白主题 */
@media (max-width: 768px) {
    .xc-topbar a[onclick*="xcGoBack"],
    .xc-subnav a[onclick*="xcGoBack"] {
        background: #f3f4f6 !important;
        border-color: #d1d5db !important;
        color: #1f2937 !important;
        min-width: 64px !important;
        height: 30px !important;
    }
}
/* ================= 手机端（H5 / App内嵌）紧凑卡片布局优化 ================= */
@media screen and (max-width: 768px) {
    body, .xc-wrap, .xc-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        overflow-x: hidden;
    }
    .xc-card, .xc-panel, .xc-box, .xc-item-card {
        padding: 12px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }
    .xc-grid-2, .xc-card-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .xc-card-title, .xc-item-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .xc-card-meta, .xc-item-desc {
        font-size: 12px !important;
    }
    .xc-header-nav, .xc-tab-bar {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
    }
    .xc-header-nav::-webkit-scrollbar, .xc-tab-bar::-webkit-scrollbar {
        display: none;
    }
}
