/* ==========================================================================
   XK Skin — 星核游戏 NOVACORE 深空皮肤
   纯 CSS 变量覆盖 + 品牌点缀，不改任何 DOM / 主题文件，删掉引用即回滚。
   依赖：body.dark-theme（zibll 原生暗色变量组）
   ========================================================================== */

/* ---------- 1. 色板变量：深空黑底 + 霓虹青 ---------- */
body.dark-theme,
body.dark {
    /* zibll 主题变量 */
    --key-color: #E9F4FF;
    --main-color: #DCE8F5;
    --main-shadow: rgba(0, 0, 0, .55);
    --muted-color: #96A8C0;
    --muted-2-color: #7386A0;
    --muted-3-color: #55677E;
    --body-bg-color: #060912;
    --main-bg-color: #0C1220;
    --muted-bg-color: #090E1A;
    --main-border-color: rgba(43, 231, 255, .10);
    --muted-border-color: rgba(43, 231, 255, .05);
    --blur-bg: rgba(6, 9, 18, .84);
    --float-btn-bg: rgba(18, 26, 44, .62);
    --header-bg: rgba(6, 9, 18, .84);
    --header-color: #DCE8F5;
    --footer-bg: #04070E;
    --footer-color: #7386A0;

    /* xk-games 插件变量（原本挂在 body.dark，从未生效，这里一并对齐） */
    --xk-text: #DCE8F5;
    --xk-text-2: #96A8C0;
    --xk-text-3: #93A8C0;
    --xk-line: rgba(43, 231, 255, .10);
    --xk-bg: #060912;
    --xk-card: #0C1220;
    --xk-shadow: 0 4px 22px rgba(0, 0, 0, .55);
    --xk-shadow-h: 0 16px 40px rgba(0, 0, 0, .72);

    /* 品牌专有 */
    --xk-neon: #2BE7FF;
    --xk-violet: #7B5CFF;
    --xk-gold: #FFB020;
}

/* ---------- 2. 页面底：深空渐变 + 星网底纹 ---------- */
body.dark-theme {
    background-color: #060912;
    background-image:
        radial-gradient(1100px 560px at 12% -8%, rgba(43, 231, 255, .10), transparent 62%),
        radial-gradient(900px 520px at 92% 2%, rgba(123, 92, 255, .10), transparent 60%),
        linear-gradient(rgba(43, 231, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 231, 255, .028) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
    background-attachment: fixed;
    background-position: 0 0, 0 0, -1px -1px, -1px -1px;
}

/* ---------- 3. 顶栏 ---------- */
body.dark-theme .navbar,
body.dark-theme .header-nav {
    background: rgba(6, 9, 18, .86) !important;
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(43, 231, 255, .10);
    box-shadow: 0 12px 34px -22px rgba(43, 231, 255, .55);
}
body.dark-theme .navbar .nav > li > a,
body.dark-theme .navbar-nav > li > a {
    color: #C7D6E8;
}
body.dark-theme .navbar .nav > li > a:hover,
body.dark-theme .navbar-nav > li > a:hover {
    color: #FFFFFF;
}

/* 修正：被主题染成粉色的 current-menu-item（951/876 是频道入口，非页面级高亮） */
body.dark-theme ul.nav.navbar-nav > li.xk-mi-p3387 > a,
body.dark-theme ul.nav.navbar-nav > li.xk-mi-lx > a,
body.dark-theme ul.nav.navbar-nav > li.current-menu-item > a,
body.dark-theme ul.nav.navbar-nav > li.current-menu-ancestor > a {
    color: #C7D6E8 !important;
}
body.dark-theme ul.nav.navbar-nav > li.xk-mi-p3387 > a::after,
body.dark-theme ul.nav.navbar-nav > li.current-menu-item > a::after {
    display: none !important;
}
body.dark-theme ul.nav.navbar-nav > li.xk-mi-lx > a {
    color: #FFC65C !important;
}

/* 顶栏 Logo 文字在深底上转亮 */
body.dark-theme .xk-logo-t { color: #EAF5FF; }
body.dark-theme .xk-logo-t em { color: #2BE7FF; }
body.dark-theme .xk-logo > img {
    box-shadow: 0 0 0 1px rgba(43, 231, 255, .38), 0 0 18px -4px rgba(43, 231, 255, .9);
}

/* 下拉面板 */
body.dark-theme .navbar-nav .sub-menu {
    background: #0B1120;
    box-shadow: 0 26px 54px -22px rgba(0, 0, 0, .8), 0 0 0 1px rgba(43, 231, 255, .12);
}
body.dark-theme .navbar-nav .sub-menu > li > a { color: #C7D6E8; }
body.dark-theme .navbar-nav .sub-menu > li > a:hover {
    background: rgba(43, 231, 255, .09);
    color: #FFFFFF;
}
body.dark-theme .navbar-nav .sub-menu > li.xk-mi-lx > a { color: #FFC65C; }
body.dark-theme .navbar-nav .sub-menu > li.xk-mi-lx > a:hover {
    background: rgba(255, 176, 32, .12);
    color: #FFD98A;
}

/* ---------- 4. 卡片与容器 ---------- */
body.dark-theme .box,
body.dark-theme .box-body,
body.dark-theme .theme-box,
body.dark-theme .zib-widget,
body.dark-theme .card,
body.dark-theme .panel {
    background: #0C1220;
    border: 1px solid rgba(43, 231, 255, .09);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .95);
}
body.dark-theme .box,
body.dark-theme .theme-box { border-radius: 14px; }

/* 游戏卡（xk-games） */
body.dark-theme .xk-card,
body.dark-theme .xk-game-item,
body.dark-theme .game-card {
    background: #0C1220;
    border: 1px solid rgba(43, 231, 255, .08);
    box-shadow: 0 10px 28px -20px rgba(0, 0, 0, .9);
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
body.dark-theme .xk-card:hover,
body.dark-theme .xk-game-item:hover,
body.dark-theme .game-card:hover {
    border-color: rgba(43, 231, 255, .34);
    box-shadow: 0 18px 42px -22px rgba(43, 231, 255, .32), 0 0 0 1px rgba(43, 231, 255, .12);
    transform: translateY(-3px);
}

/* ---------- 4b. 分类筛选胶囊（原为 #fff 底） ---------- */
body.dark-theme .xk-cat-tabs a {
    background: rgba(12, 18, 32, .55) !important;
    border-color: rgba(43, 231, 255, .10) !important;
    color: #8FA3BC !important;
    border-radius: 999px !important;
    padding: 6px 15px !important;
    font-size: 13px !important;
    box-shadow: none !important;
}
body.dark-theme .xk-cat-tabs a em { color: #647792 !important; }
body.dark-theme .xk-cat-tabs a:hover {
    border-color: rgba(43, 231, 255, .42) !important;
    color: #2BE7FF !important;
    background: rgba(43, 231, 255, .07) !important;
}
/* 激活态：不再用实心亮底（在深色页面里太抢眼，且与上方平台 Tab 打架）
   改为淡青底 + 青边 + 亮青字，重量明显低于 Tab */
body.dark-theme .xk-cat-tabs a.active {
    background: rgba(43, 231, 255, .15) !important;
    border-color: rgba(43, 231, 255, .45) !important;
    color: #7FEBFF !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(43, 231, 255, .12), 0 0 20px -8px rgba(43, 231, 255, .9) !important;
}
body.dark-theme .xk-cat-tabs a.active em { color: #5FC8E0 !important; }

/* ---------- 4c. 列表项标题（主题给了硬编码深色，必须强制） ---------- */
body.dark-theme .posts-item {
    background: #0C1220 !important;
    border: 1px solid rgba(43, 231, 255, .08);
    box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .95) !important;
}
body.dark-theme .posts-item .item-heading,
body.dark-theme .posts-item .item-heading > a,
body.dark-theme .item-heading > a { color: #EAF5FF !important; }
body.dark-theme .posts-item .item-heading > a:hover,
body.dark-theme .item-heading > a:hover { color: #2BE7FF !important; }
body.dark-theme .item-excerpt { color: #96A8C0 !important; }
body.dark-theme .posts-item .item-meta,
body.dark-theme .posts-item .item-meta a { color: #7386A0 !important; }

/* ---------- 5. 文字与链接 ---------- */
body.dark-theme,
body.dark-theme p,
body.dark-theme .text-muted,
body.dark-theme .muted { color: #DCE8F5; }
body.dark-theme a { color: #9FD9EA; }
body.dark-theme a:hover { color: #2BE7FF; }
body.dark-theme .muted-2-color,
body.dark-theme .text-muted { color: #96A8C0 !important; }
body.dark-theme .muted-3-color { color: #6B7E96 !important; }
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3,
body.dark-theme h4, body.dark-theme h5 { color: #EAF5FF; }

/* ---------- 6. 表单 / 输入框 ---------- */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .form-control {
    background: #0A1020 !important;
    border-color: rgba(43, 231, 255, .16) !important;
    color: #DCE8F5 !important;
}
body.dark-theme input::placeholder { color: #5E7089; }

/* ---------- 7. 页脚 ---------- */
body.dark-theme .footer,
body.dark-theme #footer {
    background: #04070E;
    color: #7386A0;
    border-top: 1px solid rgba(43, 231, 255, .08);
}
body.dark-theme .footer a { color: #96A8C0; }
body.dark-theme .footer a:hover { color: #2BE7FF; }

/* ---------- 8. 滚动条 ---------- */
body.dark-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
body.dark-theme ::-webkit-scrollbar-track { background: #070B14; }
body.dark-theme ::-webkit-scrollbar-thumb {
    background: #1B2740;
    border-radius: 6px;
    border: 2px solid #070B14;
}
body.dark-theme ::-webkit-scrollbar-thumb:hover { background: #27405F; }

/* ---------- 9. 选中态 ---------- */
body.dark-theme ::selection { background: rgba(43, 231, 255, .26); color: #FFFFFF; }

/* ---------- 10. 品牌化点缀（去掉遗留的红色，换青紫/金） ---------- */
/* 分节标题前的四点阵：红 → 青紫交替，带发光 */
body.dark-theme .xk-sec-ico {
    background:
        radial-gradient(circle at 28% 28%, #2BE7FF 41%, transparent 42%),
        radial-gradient(circle at 72% 28%, #7B5CFF 41%, transparent 42%),
        radial-gradient(circle at 28% 72%, #7B5CFF 41%, transparent 42%),
        radial-gradient(circle at 72% 72%, #2BE7FF 41%, transparent 42%) !important;
    filter: drop-shadow(0 0 6px rgba(43, 231, 255, .55));
}

/* 折扣徽标：红 → 金（金色只用于折扣，符合方案） */
body.dark-theme .xk-discount,
body.dark-theme .xk-slide-badges .b-red {
    background: linear-gradient(135deg, #FFD98A 0%, #FFB020 100%) !important;
    color: #3A2400 !important;
    box-shadow: 0 6px 18px -8px rgba(255, 176, 32, .8);
    text-shadow: none !important;
}

/* 福利文案：绿 → 荧光薄荷，深底上更透 */
body.dark-theme .xk-slide-badges .b-green { color: #3DF0B4 !important; }

/* 卡片标签白底 → 深底描边 */
body.dark-theme .xk-tag {
    background: #141C2E !important;
    color: #96A8C0 !important;
    border: 1px solid rgba(43, 231, 255, .08);
}

/* "更多 ›" 悬停转青 */
body.dark-theme .xk-sec-more:hover { color: #2BE7FF !important; }

/* 分节竖条：红 → 青紫 */
body.dark-theme .xk-block-title i {
    background: linear-gradient(180deg, #2BE7FF 0%, #7B5CFF 100%) !important;
    box-shadow: 0 0 10px -2px rgba(43, 231, 255, .8);
}

/* 主下载按钮：红 → 金（深色文字，确保对比度） */
body.dark-theme .xk-dl-btn {
    background: linear-gradient(135deg, #FFD98A 0%, #FFB020 100%) !important;
    color: #3A2400 !important;
    font-weight: 800;
    box-shadow: 0 12px 28px -14px rgba(255, 176, 32, .9) !important;
}
body.dark-theme .xk-dl-btn:hover {
    color: #3A2400 !important;
    box-shadow: 0 14px 32px -12px rgba(255, 176, 32, 1) !important;
}
body.dark-theme .xk-dl-btn--off {
    background: #141C2E !important;
    color: #5E7089 !important;
}
body.dark-theme .xk-dl-qr em { color: #96A8C0; }
body.dark-theme .xk-dl-qr img { border-color: rgba(43, 231, 255, .16); }

/* hero 轮播「查看详情」：红 → 金 */
body.dark-theme .xk-slide-btn {
    background: linear-gradient(135deg, #FFD98A 0%, #FFB020 100%) !important;
    color: #3A2400 !important;
    font-weight: 800;
    box-shadow: 0 10px 26px -12px rgba(255, 176, 32, .9) !important;
}
body.dark-theme .xk-slide-btn:hover { color: #3A2400 !important; }

/* ---------- 11. 导航当前项指示器：主题粉紫 → 青紫（顶栏那条短线） ---------- */
body.dark-theme .navbar-top li.current-menu-item:before,
body.dark-theme .navbar-top li.current-menu-item > a:before,
body.dark-theme ul.nav.navbar-nav > li.current-menu-item > a:before,
body.dark-theme ul.nav.navbar-nav > li.current-menu-ancestor > a:before {
    background: linear-gradient(90deg, #2BE7FF 0%, #7B5CFF 100%) !important;
    box-shadow: 0 0 12px -1px rgba(43, 231, 255, .85) !important;
}

/* ---------- 12. 移动端：卡片标签不再被截成「三国…」 ---------- */
@media (max-width: 640px) {
    body.dark-theme .xk-hcard-meta { flex-wrap: wrap; row-gap: 4px; }
    body.dark-theme .xk-hcard-meta .tg {
        flex: 0 0 auto !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }
}

/* 修正：.b-green 在移动端有绿色实底，文字同为薄荷绿会导致绿底绿字（对比度极差）
   → 改为半透明薄荷底 + 薄荷字，深浅屏都成立 */
body.dark-theme .xk-slide-badges .b-green {
    background: rgba(61, 240, 180, .14) !important;
    color: #3DF0B4 !important;
    padding: 3px 9px;
    border-radius: 5px;
    font-weight: 700;
}

/* ---------- 13. 首页双平台等宽入口（page-hall.php 输出） ---------- */
body.dark-theme .xk-plat-duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin: 0 0 24px;
}
body.dark-theme .xk-pc {
    position: relative;
    display: block;
    padding: 20px 22px 18px;
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(155deg, #0D1526 0%, #090E1A 100%);
    border: 1px solid rgba(43, 231, 255, .14);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
/* 顶部一条渐显光带，区分两个平台 */
body.dark-theme .xk-pc::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2BE7FF, transparent);
    opacity: .75;
}
body.dark-theme .xk-pc.is-b {
    border-color: rgba(255, 176, 32, .18);
}
body.dark-theme .xk-pc.is-b::before {
    background: linear-gradient(90deg, transparent, #FFB020, transparent);
}
body.dark-theme .xk-pc:hover {
    transform: translateY(-2px);
    border-color: rgba(43, 231, 255, .42);
    box-shadow: 0 18px 40px -24px rgba(43, 231, 255, .55);
}
body.dark-theme .xk-pc.is-b:hover {
    border-color: rgba(255, 176, 32, .45);
    box-shadow: 0 18px 40px -24px rgba(255, 176, 32, .5);
}
body.dark-theme .xk-pc-kick {
    display: block;
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #6B7E96;
    text-transform: uppercase;
    margin-bottom: 8px;
}
body.dark-theme .xk-pc-name {
    margin: 0 0 7px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #EAF5FF;
    line-height: 1.15;
}
body.dark-theme .xk-pc.is-b .xk-pc-name { color: #FFD98A; }
body.dark-theme .xk-pc-desc {
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #7386A0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.dark-theme .xk-pc-go {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: #2BE7FF;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(43, 231, 255, .10);
    border: 1px solid rgba(43, 231, 255, .22);
}
body.dark-theme .xk-pc.is-b .xk-pc-go {
    color: #FFC65C;
    background: rgba(255, 176, 32, .10);
    border-color: rgba(255, 176, 32, .24);
}
body.dark-theme .xk-pc-go i { font-style: normal; font-size: 15px; line-height: 1; }
body.dark-theme .xk-pc-num {
    position: absolute;
    right: 20px;
    bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
body.dark-theme .xk-pc-num b {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #2BE7FF;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 22px rgba(43, 231, 255, .45);
}
body.dark-theme .xk-pc.is-b .xk-pc-num b {
    color: #FFB020;
    text-shadow: 0 0 22px rgba(255, 176, 32, .45);
}
body.dark-theme .xk-pc-num em {
    font-style: normal;
    font-size: 11px;
    color: #5E7089;
}

/* 移动端：两列并排（压缩文案——隐藏描述行、数字移至右上角、缩小 CTA） */
@media (max-width: 640px) {
    body.dark-theme .xk-plat-duo {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
        margin-bottom: 18px;
    }
    body.dark-theme .xk-pc {
        padding: 11px 12px 12px;
        border-radius: 13px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    body.dark-theme .xk-pc-kick {
        font-size: 8.5px;
        letter-spacing: .2px;
        margin-bottom: 5px;
        padding-right: 42px;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.dark-theme .xk-pc-name {
        font-size: 15.5px;
        margin-bottom: 10px;
        letter-spacing: 0;
        white-space: nowrap;
    }
    /* 描述在移动端隐藏：分类已由下方 Tab 完整呈现，重复且挤宽度 */
    body.dark-theme .xk-pc-desc { display: none; }
    body.dark-theme .xk-pc-go {
        margin-top: auto;
        font-size: 10px;
        padding: 4px 9px;
        gap: 3px;
        border-radius: 14px;
    }
    body.dark-theme .xk-pc-go i { font-size: 12px; }
    body.dark-theme .xk-pc-num { right: 11px; top: 10px; bottom: auto; }
    body.dark-theme .xk-pc-num b { font-size: 17px; }
    body.dark-theme .xk-pc-num em { display: none; }
}

/* 锚点跳转不被固定顶栏遮住 */
#all-games { scroll-margin-top: 84px; }

/* ---------- 14. 龙翔板块（首页混合流第 3 位） ---------- */
/* 标题与图标走暖金，与 3387 的青紫区分 */
body.dark-theme .xk-sec-lx .xk-sec-ico.is-lx {
    background:
        radial-gradient(circle at 28% 28%, #FFD98A 41%, transparent 42%),
        radial-gradient(circle at 72% 28%, #FFB020 41%, transparent 42%),
        radial-gradient(circle at 28% 72%, #FFB020 41%, transparent 42%),
        radial-gradient(circle at 72% 72%, #FFD98A 41%, transparent 42%) !important;
    filter: drop-shadow(0 0 7px rgba(255, 176, 32, .6));
}
body.dark-theme .xk-sec-lx .xk-sec-title { color: #FFD98A; }
body.dark-theme .xk-sec-lx .xk-sec-title em {
    color: #A8792F;
    font-size: 12px;
    font-weight: 500;
    margin-left: 9px;
}
body.dark-theme .xk-sec-lx .xk-sec-more { color: #C99A4E; }
body.dark-theme .xk-sec-lx .xk-sec-more:hover { color: #FFC65C !important; }

/* 龙翔是 400×400 方图，16:9 容器会裁字 —— 改 contain + 暖色底纹，永不裁切 */
body.dark-theme .xk-sec-lx .xk-hcard-poster {
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 176, 32, .14) 0%, rgba(20, 16, 26, 0) 64%),
        linear-gradient(160deg, #201A12 0%, #12141E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-theme .xk-sec-lx .xk-hcard-poster img {
    width: auto !important;
    height: auto !important;
    max-width: 72%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 11px;
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 176, 32, .22);
}
body.dark-theme .xk-sec-lx .xk-hcard:hover .xk-hcard-poster img {
    transform: scale(1.04);
}
/* 龙翔块的卡片描边略带金色 */
body.dark-theme .xk-sec-lx .xk-hcard {
    border-color: rgba(255, 176, 32, .10);
}
body.dark-theme .xk-sec-lx .xk-hcard:hover {
    border-color: rgba(255, 176, 32, .38);
    box-shadow: 0 22px 48px -26px rgba(255, 176, 32, .38);
}

/* ---------- 15. 平台 Tab（纯前端过滤，不改查询） ---------- */
body.dark-theme .xk-plat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
body.dark-theme .xk-plat-tabs button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #96A8C0;
    background: #0C1220;
    border: 1px solid rgba(43, 231, 255, .16);
    border-radius: 9px;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, box-shadow .18s;
}
body.dark-theme .xk-plat-tabs button:hover {
    color: #EAF5FF;
    border-color: rgba(43, 231, 255, .40);
}
body.dark-theme .xk-plat-tabs button.active {
    color: #EAF5FF;
    background: linear-gradient(135deg, rgba(43, 231, 255, .16), rgba(123, 92, 255, .16));
    border-color: rgba(43, 231, 255, .52);
    box-shadow: 0 10px 26px -16px rgba(43, 231, 255, .95);
}
body.dark-theme .xk-pt-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    display: inline-block;
    flex: 0 0 auto;
}
body.dark-theme .xk-pt-dot.is-a {
    background: linear-gradient(135deg, #5EE6FF, #0E7FA8);
    box-shadow: 0 0 8px -1px rgba(43, 231, 255, .9);
}
body.dark-theme .xk-pt-dot.is-b {
    background: linear-gradient(135deg, #FFD980, #C97A12);
    box-shadow: 0 0 8px -1px rgba(255, 176, 32, .85);
}
@media (max-width: 480px) {
    body.dark-theme .xk-plat-tabs { gap: 6px; }
    body.dark-theme .xk-plat-tabs button { padding: 7px 12px; font-size: 12px; }
}

/* ---------- 16. 详情页平台条（标明归属 + 同平台入口） ---------- */
body.dark-theme .xk-platbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 12px;
    margin: 0 0 14px;
    padding: 10px 15px;
    border-radius: 12px;
    background: linear-gradient(100deg, rgba(43, 231, 255, .07) 0%, rgba(10, 16, 28, .72) 62%);
    border: 1px solid rgba(43, 231, 255, .16);
}
body.dark-theme .xk-platbar.is-b {
    background: linear-gradient(100deg, rgba(255, 176, 32, .09) 0%, rgba(20, 16, 10, .72) 62%);
    border-color: rgba(255, 176, 32, .20);
}
body.dark-theme .xk-pb-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .3px;
    color: #7FEBFF;
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    background: rgba(43, 231, 255, .12);
    border: 1px solid rgba(43, 231, 255, .26);
    white-space: nowrap;
}
body.dark-theme .xk-platbar.is-b .xk-pb-tag {
    color: #FFD98A;
    background: rgba(255, 176, 32, .13);
    border-color: rgba(255, 176, 32, .30);
}
body.dark-theme .xk-pb-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #5EE6FF, #0E7FA8);
    box-shadow: 0 0 8px -1px rgba(43, 231, 255, .9);
}
body.dark-theme .xk-platbar.is-b .xk-pb-dot {
    background: linear-gradient(135deg, #FFD980, #C97A12);
    box-shadow: 0 0 8px -1px rgba(255, 176, 32, .85);
}
body.dark-theme .xk-pb-desc {
    font-size: 12.5px;
    color: #8FA3BC;
    min-width: 0;
}
body.dark-theme .xk-pb-link {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 700;
    color: #2BE7FF;
    text-decoration: none;
    padding: 4px 11px;
    border-radius: 8px;
    background: rgba(43, 231, 255, .08);
    border: 1px solid rgba(43, 231, 255, .20);
    transition: background .18s, border-color .18s;
}
body.dark-theme .xk-platbar.is-b .xk-pb-link {
    color: #FFC65C;
    background: rgba(255, 176, 32, .09);
    border-color: rgba(255, 176, 32, .24);
}
body.dark-theme .xk-pb-link:hover {
    color: #EAF5FF !important;
    background: rgba(43, 231, 255, .20);
    border-color: rgba(43, 231, 255, .5);
}
body.dark-theme .xk-platbar.is-b .xk-pb-link:hover {
    color: #3A2400 !important;
    background: #FFC65C;
    border-color: #FFC65C;
}
@media (max-width: 640px) {
    body.dark-theme .xk-platbar { padding: 9px 11px; gap: 7px 9px; }
    body.dark-theme .xk-pb-desc { font-size: 11.5px; width: 100%; order: 3; }
    body.dark-theme .xk-pb-link { font-size: 11.5px; padding: 3px 9px; }
}

/* ---------- 17. 龙翔怀旧频道页（category-lx.php） ---------- */
body.dark-theme .xk-lx-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 34px 32px 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 176, 32, .18);
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 176, 32, .20) 0%, rgba(11, 14, 22, 0) 58%),
        radial-gradient(circle at 8% 96%, rgba(123, 92, 255, .14) 0%, rgba(11, 14, 22, 0) 56%),
        linear-gradient(152deg, #1B1409 0%, #0B0E16 72%);
}
/* 斜向细纹：像老录像带的扫描线 */
body.dark-theme .xk-lx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(115deg, rgba(255, 217, 138, .05) 0 1px, transparent 1px 9px);
    mask-image: linear-gradient(105deg, rgba(0, 0, 0, .9), transparent 72%);
    -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, .9), transparent 72%);
}
body.dark-theme .xk-lx-hero-in { position: relative; z-index: 1; max-width: 620px; }
/* 右侧大号描边数字：背景纹理，用真实款数驱动 */
body.dark-theme .xk-lx-mark {
    position: absolute;
    right: 30px;
    bottom: -14px;
    z-index: 0;
    font-size: 200px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -8px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 176, 32, .20);
    text-stroke: 1.5px rgba(255, 176, 32, .20);
    pointer-events: none;
    user-select: none;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .xk-lx-hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 176, 32, .16) 0%, rgba(255, 176, 32, 0) 68%);
    z-index: 0;
    pointer-events: none;
}
body.dark-theme .xk-lx-kick {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #C99A4E;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 176, 32, .10);
    border: 1px solid rgba(255, 176, 32, .22);
    margin-bottom: 13px;
}
body.dark-theme .xk-lx-title {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(100deg, #FFF3D6 0%, #FFD98A 42%, #FFB020 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #FFD98A;
}
body.dark-theme .xk-lx-sub {
    margin: 0 0 20px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #BCA684;
}
body.dark-theme .xk-lx-stats { display: flex; gap: 26px; margin-bottom: 22px; }
body.dark-theme .xk-lx-stat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: #FFC65C;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 22px rgba(255, 176, 32, .45);
}
body.dark-theme .xk-lx-stat em {
    font-style: normal;
    font-size: 11.5px;
    color: #7E6E58;
    letter-spacing: .4px;
}
body.dark-theme .xk-lx-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 800;
    color: #3A2400 !important;
    text-decoration: none;
    background: linear-gradient(135deg, #FFD98A 0%, #FFB020 100%);
    box-shadow: 0 14px 30px -16px rgba(255, 176, 32, .95);
    transition: transform .18s, box-shadow .18s;
}
body.dark-theme .xk-lx-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(255, 176, 32, 1); }

/* 平台对照条：两个平台并列，当前项高亮 */
body.dark-theme .xk-lx-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 22px;
}
body.dark-theme .xk-lx-sw {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    color: #96A8C0;
    background: #0C1220;
    border: 1px solid rgba(43, 231, 255, .12);
    transition: border-color .18s, background .18s;
}
body.dark-theme .xk-lx-sw .nm { flex: 0 0 auto; }
body.dark-theme .xk-lx-sw em {
    font-style: normal;
    font-size: 11.5px;
    color: #5E7089;
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .xk-lx-sw:hover { border-color: rgba(43, 231, 255, .38); color: #EAF5FF; }
body.dark-theme .xk-lx-sw.is-b { border-color: rgba(255, 176, 32, .30); color: #FFD98A; }
body.dark-theme .xk-lx-sw.is-b em { color: #A8792F; }
body.dark-theme .xk-lx-sw.is-on {
    background: linear-gradient(120deg, rgba(255, 176, 32, .14), rgba(20, 16, 10, .6));
    border-color: rgba(255, 176, 32, .42);
    box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .10);
    cursor: default;
}
body.dark-theme .xk-lx-sw.is-on::after {
    content: "当前";
    font-size: 10px;
    font-weight: 700;
    color: #3A2400;
    background: #FFC65C;
    border-radius: 20px;
    padding: 1px 7px;
    margin-left: 8px;
}
body.dark-theme .xk-lx-sw.is-on em { color: #C99A4E; }

/* 合集网格：桌面 4 列，逐步降级 */
body.dark-theme .xk-lx-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
body.dark-theme .xk-lx-rec { margin-top: 30px; }

@media (max-width: 1024px) {
    body.dark-theme .xk-lx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    body.dark-theme .xk-lx-hero { padding: 24px 20px 22px; border-radius: 15px; }
    body.dark-theme .xk-lx-title { font-size: 27px; }
    body.dark-theme .xk-lx-sub { font-size: 12.5px; margin-bottom: 16px; }
    body.dark-theme .xk-lx-stats { gap: 18px; margin-bottom: 18px; }
    body.dark-theme .xk-lx-stat b { font-size: 21px; }
    body.dark-theme .xk-lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    body.dark-theme .xk-lx-switch { gap: 8px; margin-bottom: 16px; }
    body.dark-theme .xk-lx-sw { padding: 10px 12px; font-size: 12.5px; }
    body.dark-theme .xk-lx-sw.is-on::after { display: none; }
}
@media (max-width: 768px) {
    body.dark-theme .xk-lx-mark { display: none; }
    body.dark-theme .xk-lx-sw em { font-size: 10.5px; }
}

/* ---------- 18. 图片占位底色：避免懒加载阶段露出白块 ---------- */
body.dark-theme .xk-hcard-poster,
body.dark-theme .xk-hcard-poster img,
body.dark-theme .xk-dl-qr img,
body.dark-theme .xk-shot,
body.dark-theme .xk-card-logo,
body.dark-theme .xk-hcard-body .ico,
body.dark-theme .xk-side-item img,
body.dark-theme .xk-rank-item img {
    background-color: #0E1524 !important;
}

/* ---------- 19. 首页 hero 轮播：深色化重构 ---------- */
/* 容器：加高、加青色描边与底部发光边 */
body.dark-theme .xk-banner {
    height: 460px;
    border-radius: 18px;
    border: 1px solid rgba(43, 231, 255, .16);
    box-shadow: 0 26px 60px -30px rgba(43, 231, 255, .35), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    background: #060912;
}
body.dark-theme .xk-banner::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 231, 255, .55), transparent);
    z-index: 4;
    pointer-events: none;
}

/* 图片压暗偏冷：内联只设了 background-image，可安全叠加底色 + 混合模式 */
body.dark-theme .xk-slide {
    background-color: #A2AEC2;
    background-blend-mode: multiply;
}

/* 遮罩改成三层：青光氛围 + 主横向渐变 + 底部垂直收边 */
body.dark-theme .xk-slide-shade {
    background:
        radial-gradient(circle at 16% 42%, rgba(43, 231, 255, .17) 0%, rgba(6, 9, 18, 0) 54%),
        radial-gradient(circle at 4% 96%, rgba(123, 92, 255, .14) 0%, rgba(6, 9, 18, 0) 46%),
        linear-gradient(96deg, rgba(6, 9, 18, .975) 0%, rgba(6, 9, 18, .955) 28%, rgba(6, 9, 18, .90) 50%, rgba(6, 9, 18, .58) 68%, rgba(6, 9, 18, .18) 100%),
        linear-gradient(0deg, rgba(6, 9, 18, .88) 0%, rgba(6, 9, 18, .52) 24%, rgba(6, 9, 18, 0) 60%),
        radial-gradient(circle at 96% 104%, rgba(6, 9, 18, .72) 0%, rgba(6, 9, 18, 0) 46%);
}
/* 网格底纹只压左侧文字区，向右渐隐 */
body.dark-theme .xk-slide-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(43, 231, 255, .055) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(43, 231, 255, .055) 0 1px, transparent 1px 44px);
    -webkit-mask-image: linear-gradient(96deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .55) 34%, transparent 62%);
    mask-image: linear-gradient(96deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .55) 34%, transparent 62%);
    pointer-events: none;
}

/* 文案区 */
body.dark-theme .xk-slide-inner { padding: 0 64px; max-width: 624px; }

/* 徽标：统一胶囊，福利=薄荷、折扣=金 */
body.dark-theme .xk-slide-badges { gap: 9px; margin-bottom: 16px; }
body.dark-theme .xk-slide-badges .b-green {
    color: #3DF0B4 !important;
    background: rgba(61, 240, 180, .13) !important;
    border: 1px solid rgba(61, 240, 180, .28);
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .3px;
    padding: 4px 11px;
    border-radius: 6px;
    line-height: 1.4;
}
body.dark-theme .xk-slide-badges .b-red {
    background: linear-gradient(135deg, #FFD98A 0%, #FFB020 100%) !important;
    color: #3A2400 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .4px;
    padding: 4px 11px !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 20px -10px rgba(255, 176, 32, .85);
    line-height: 1.4;
}

/* 标题 */
body.dark-theme .xk-slide-inner h2 {
    color: #F4FAFF !important;
    font-size: 42px !important;
    line-height: 1.16 !important;
    font-weight: 900 !important;
    letter-spacing: .5px;
    margin: 0 0 14px !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .7), 0 0 40px rgba(43, 231, 255, .18);
}

/* 描述 */
body.dark-theme .xk-slide-inner p {
    color: rgba(214, 229, 245, .74) !important;
    font-size: 14.5px !important;
    line-height: 1.78 !important;
    margin: 0 0 18px !important;
}

/* 元信息行：评分金色胶囊 / 人数次色 / 标签深底青边 */
body.dark-theme .xk-slide-meta { gap: 9px !important; margin-bottom: 24px !important; }
body.dark-theme .xk-slide-meta span {
    color: #8FA3BC !important;
    font-size: 12.5px !important;
}
body.dark-theme .xk-slide-meta .pt {
    color: #FFC65C !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 176, 32, .12);
    border: 1px solid rgba(255, 176, 32, .26);
    line-height: 1.5;
}
body.dark-theme .xk-slide-meta .tg {
    background: rgba(12, 18, 32, .82) !important;
    border: 1px solid rgba(43, 231, 255, .18);
    color: #93B4CE !important;
    border-radius: 5px !important;
    padding: 3px 9px !important;
}

/* 按钮：金色 + 切角 */
body.dark-theme .xk-slide-btn {
    background: linear-gradient(135deg, #FFD98A 0%, #FFB020 100%) !important;
    color: #3A2400 !important;
    font-weight: 800 !important;
    padding: 12px 26px !important;
    border-radius: 0 !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 16px 34px -16px rgba(255, 176, 32, .95) !important;
    letter-spacing: .4px;
}
body.dark-theme .xk-slide-btn:hover {
    color: #3A2400 !important;
    box-shadow: 0 18px 38px -14px rgba(255, 176, 32, 1) !important;
}
body.dark-theme .xk-slide-btn i { color: #3A2400 !important; }

/* 指示器：细点 → 长条，当前项青紫渐变 */
body.dark-theme .xk-banner-dots { bottom: 22px; left: 64px; gap: 7px; }
body.dark-theme .xk-banner-dots button {
    width: 8px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, .26) !important;
    transition: width .3s, background .3s, box-shadow .3s;
}
body.dark-theme .xk-banner-dots button.active {
    width: 30px !important;
    background: linear-gradient(90deg, #2BE7FF 0%, #7B5CFF 100%) !important;
    box-shadow: 0 0 12px -1px rgba(43, 231, 255, .9);
}

/* 箭头：玻璃深底 + 青边 */
body.dark-theme .xk-banner-arrow {
    background: rgba(8, 12, 22, .55) !important;
    border: 1px solid rgba(43, 231, 255, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #BEE9FF !important;
}
body.dark-theme .xk-banner-arrow:hover {
    background: rgba(43, 231, 255, .20) !important;
    border-color: rgba(43, 231, 255, .55);
    color: #EAF5FF !important;
}

/* 平板 */
@media (max-width: 1100px) {
    body.dark-theme .xk-banner { height: 380px; }
    body.dark-theme .xk-slide-inner { padding: 0 40px; }
    body.dark-theme .xk-slide-inner h2 { font-size: 34px !important; }
    body.dark-theme .xk-banner-dots { left: 40px; }
}

/* 手机：全宽垂直遮罩，文字压在深底上 */
@media (max-width: 720px) {
    body.dark-theme .xk-banner {
        height: 300px;
        border-radius: 15px;
        margin-bottom: 18px;
    }
    body.dark-theme .xk-slide { background-color: #B8C3D4; }
    body.dark-theme .xk-slide-shade {
        background:
            radial-gradient(circle at 20% 30%, rgba(43, 231, 255, .14) 0%, rgba(6, 9, 18, 0) 58%),
            linear-gradient(180deg, rgba(6, 9, 18, .62) 0%, rgba(6, 9, 18, .90) 46%, rgba(6, 9, 18, .97) 100%),
            linear-gradient(96deg, rgba(6, 9, 18, .88) 0%, rgba(6, 9, 18, .55) 62%, rgba(6, 9, 18, .20) 100%);
    }
    body.dark-theme .xk-slide-shade::after {
        -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, transparent 76%);
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, transparent 76%);
    }
    body.dark-theme .xk-slide-inner { padding: 0 20px; max-width: 100%; }
    body.dark-theme .xk-slide-badges { gap: 6px; margin-bottom: 9px; }
    body.dark-theme .xk-slide-badges .b-green,
    body.dark-theme .xk-slide-badges .b-red {
        font-size: 10.5px !important;
        padding: 2px 8px !important;
        border-radius: 5px !important;
    }
    body.dark-theme .xk-slide-inner h2 {
        font-size: 21px !important;
        margin-bottom: 9px !important;
        letter-spacing: .3px;
    }
    body.dark-theme .xk-slide-inner p { display: none; }
    body.dark-theme .xk-slide-meta { gap: 6px !important; margin-bottom: 14px !important; }
    body.dark-theme .xk-slide-meta span { font-size: 11px !important; }
    body.dark-theme .xk-slide-meta .pt {
        font-size: 11px !important;
        padding: 2px 7px;
        border-radius: 5px;
    }
    body.dark-theme .xk-slide-meta .tg { padding: 2px 7px !important; }
    body.dark-theme .xk-slide-btn {
        padding: 9px 18px !important;
        font-size: 12px !important;
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    }
    body.dark-theme .xk-banner-dots { left: auto; right: 16px; bottom: 11px; gap: 6px; }
    body.dark-theme .xk-banner-dots button { height: 3px !important; }
    body.dark-theme .xk-banner-dots button.active { width: 22px !important; }
}


/* ---------- 20. 导航当前项指示条微调（主题给 50x5px，偏粗） ---------- */
body.dark-theme .navbar-nav > li.current-menu-item::before {
    height: 3px !important;
    border-radius: 0 0 3px 3px !important;
}

/* ---------- 21. 详情页遗留浅色块（硬编码 #f8f9fc 配浅色文字 = 看不见） ---------- */
body.dark-theme .xk-tool {
    background: #0C1220 !important;
    border: 1px solid rgba(43, 231, 255, .10);
}
body.dark-theme .xk-tool h3 { color: #E8F3FF !important; }
body.dark-theme .xk-tool p { color: #8FA3BC !important; }
body.dark-theme .xk-tool svg { color: #2BE7FF !important; }

/* ---------- 22. 分页器与侧栏分类格：原为白底，暗色组挂 body.dark 从未生效 ---------- */
body.dark-theme .xk-pager .page-numbers {
    background: #0C1220 !important;
    border-color: rgba(43, 231, 255, .14) !important;
    color: #8FA3BC !important;
}
body.dark-theme .xk-pager .page-numbers:hover {
    background: rgba(43, 231, 255, .12) !important;
    border-color: rgba(43, 231, 255, .45) !important;
    color: #7FEBFF !important;
}
body.dark-theme .xk-pager .page-numbers.current {
    background: linear-gradient(135deg, #2BE7FF 0%, #7B5CFF 100%) !important;
    border-color: transparent !important;
    color: #04121A !important;
    box-shadow: 0 8px 22px -10px rgba(43, 231, 255, .85) !important;
}
body.dark-theme .xk-pager .page-numbers.dots {
    background: none !important;
    border-color: transparent !important;
    color: #647792 !important;
}
body.dark-theme .xk-pager-info { color: #93A8C0 !important; }

body.dark-theme .xk-side-cat {
    background: #0C1220 !important;
    border: 1px solid rgba(43, 231, 255, .10);
    color: #A8C4DC !important;
}
body.dark-theme .xk-side-cat:hover {
    background: rgba(43, 231, 255, .10) !important;
    border-color: rgba(43, 231, 255, .40);
    color: #7FEBFF !important;
}
body.dark-theme .xk-side-cat em { color: #93A8C0 !important; }

/* ---------- 23. 龙翔频道页网格：21 款 ÷ 4 = 5 行 + 1 张，末行贴左显孤
   改 flex 换行 + 居中，末行自动收拢居中 ---------- */
body.dark-theme .xk-lx-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
body.dark-theme .xk-lx-grid > * {
    flex: 0 0 calc((100% - 42px) / 4);
    max-width: calc((100% - 42px) / 4);
}
@media (max-width: 1024px) {
    body.dark-theme .xk-lx-grid > * {
        flex: 0 0 calc((100% - 28px) / 3);
        max-width: calc((100% - 28px) / 3);
    }
}
@media (max-width: 768px) {
    body.dark-theme .xk-lx-grid { gap: 10px; }
    body.dark-theme .xk-lx-grid > * {
        flex: 0 0 calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
    }
}

/* ---------- 24. 品牌页脚（主题页脚被关闭，这里补一个轻量深色页脚） ---------- */
body.dark-theme .xk-foot {
    margin-top: 46px;
    padding: 40px 0 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(43, 231, 255, .065) 0%, rgba(6, 9, 18, 0) 48%),
        radial-gradient(circle at 88% 0%, rgba(123, 92, 255, .05) 0%, rgba(6, 9, 18, 0) 42%),
        linear-gradient(180deg, #080D18 0%, #05070E 100%);
    border-top: 1px solid rgba(43, 231, 255, .12);
}
body.dark-theme .xk-foot-in {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
    gap: 34px;
    padding-bottom: 30px;
}
body.dark-theme .xk-foot-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}
body.dark-theme .xk-foot-logo > img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: block;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(43, 231, 255, .28), 0 10px 22px -12px rgba(43, 231, 255, .8);
}
body.dark-theme .xk-foot-name {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.06;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .6px;
    color: #EAF5FF;
}
body.dark-theme .xk-foot-name em {
    font-style: normal;
    font-size: 8.5px;
    letter-spacing: 2.6px;
    color: #7E93AC;
    margin-top: 3px;
}
body.dark-theme .xk-foot-slogan {
    margin: 14px 0 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #93A8C0;
    max-width: 300px;
}
body.dark-theme .xk-foot-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #93A8C0;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(43, 231, 255, .06);
    border: 1px solid rgba(43, 231, 255, .13);
}
body.dark-theme .xk-foot-badge b {
    font-size: 14px;
    color: #2BE7FF;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .xk-foot-nav h4,
body.dark-theme .xk-foot-about h4 {
    margin: 2px 0 13px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #C9D8EA;
}
body.dark-theme .xk-foot-nav a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: #A3B5CA;
    padding: 5px 0;
    text-decoration: none;
    transition: color .15s ease;
}
body.dark-theme .xk-foot-nav a:hover { color: #2BE7FF; }
body.dark-theme .xk-foot-nav a em {
    font-style: normal;
    font-size: 10.5px;
    color: #7C90A8;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .xk-foot-about p {
    margin: 0 0 9px;
    font-size: 12px;
    line-height: 1.75;
    color: #93A8C0;
}
body.dark-theme .xk-foot-about p:last-child { margin-bottom: 0; }
body.dark-theme .xk-foot-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    font-size: 11.5px;
    color: #8FA3BC;
}
body.dark-theme .xk-foot-sep { color: #2A3648; }

@media (max-width: 992px) {
    body.dark-theme .xk-foot-in {
        grid-template-columns: 1fr 1fr;
        gap: 26px 22px;
    }
    body.dark-theme .xk-foot-brand,
    body.dark-theme .xk-foot-about { grid-column: 1 / -1; }
    body.dark-theme .xk-foot-slogan { max-width: 100%; margin: 12px 0 12px; }
    body.dark-theme .xk-foot-about p { max-width: 100%; }
}
@media (max-width: 640px) {
    /* 底部多留 54px，避免主题的「回到顶部」悬浮球压住版权行 */
    body.dark-theme .xk-foot { margin-top: 30px; padding: 26px 0 54px; }
    body.dark-theme .xk-foot-in { gap: 20px 16px; padding-bottom: 20px; }
    body.dark-theme .xk-foot-name { font-size: 15.5px; }
    body.dark-theme .xk-foot-slogan { font-size: 12px; }
    body.dark-theme .xk-foot-nav h4,
    body.dark-theme .xk-foot-about h4 { font-size: 11px; margin-bottom: 10px; }
    body.dark-theme .xk-foot-nav a { font-size: 12px; padding: 4px 0; }
    body.dark-theme .xk-foot-about p { font-size: 11.5px; }
    body.dark-theme .xk-foot-bar { font-size: 10.5px; gap: 6px; padding-top: 14px; }
}

/* ---------- 25. 详情页「福利信息」侧卡：插件写死米白渐变，暗色下是一整块白板 ---------- */
body.dark-theme .xk-welfare-side {
    background: linear-gradient(160deg, #131A28 0%, #0A0F18 62%) !important;
    border: 1px solid rgba(255, 176, 32, .16) !important;
}
body.dark-theme .xk-welfare-badge {
    background: rgba(255, 176, 32, .10) !important;
    border-color: rgba(255, 176, 32, .26) !important;
    color: #FFD98A !important;
}
/* 原来这个提示在米白卡上是浅色（220,232,245），换深底后要压成暖灰 */
body.dark-theme .xk-welfare-tip { color: #8A7A5E !important; }
/* 正文原来是深灰 #5b6472，在深底上对比不足 */
body.dark-theme .xk-welfare-list .txt { color: #8FA3BC !important; }
body.dark-theme .xk-welfare-list li h3::after { background: rgba(255, 77, 61, .45) !important; }

/* ---------- 26. 搜索页（/?s=）：主题原生列表 → 品牌卡片网格 ---------- */
body.dark-theme .xk-sch-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 32px 32px 28px;
    border-radius: 18px;
    border: 1px solid rgba(43, 231, 255, .16);
    background:
        radial-gradient(circle at 86% 8%, rgba(43, 231, 255, .13) 0%, rgba(7, 10, 19, 0) 56%),
        radial-gradient(circle at 4% 98%, rgba(123, 92, 255, .12) 0%, rgba(7, 10, 19, 0) 52%),
        linear-gradient(152deg, #0C1526 0%, #070A13 74%);
}
body.dark-theme .xk-sch-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(115deg, rgba(43, 231, 255, .045) 0 1px, transparent 1px 10px);
    mask-image: linear-gradient(108deg, rgba(0, 0, 0, .85), transparent 70%);
    -webkit-mask-image: linear-gradient(108deg, rgba(0, 0, 0, .85), transparent 70%);
}
body.dark-theme .xk-sch-hero-in { position: relative; z-index: 1; max-width: 660px; }
body.dark-theme .xk-sch-mark {
    position: absolute;
    right: 26px;
    bottom: -16px;
    z-index: 0;
    font-size: 176px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -8px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(43, 231, 255, .17);
    text-stroke: 1.5px rgba(43, 231, 255, .17);
    pointer-events: none;
    user-select: none;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .xk-sch-kick {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: #5C7E9E;
    margin-bottom: 10px;
}
body.dark-theme .xk-sch-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .4px;
    color: #EAF5FF;
    word-break: break-word;
}
body.dark-theme .xk-sch-title em {
    font-style: normal;
    background: linear-gradient(92deg, #2BE7FF 0%, #7B5CFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.dark-theme .xk-sch-sub {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #7B8FA8;
}
body.dark-theme .xk-sch-sub b { color: #2BE7FF; font-variant-numeric: tabular-nums; }

/* 搜索框 */
body.dark-theme .xk-sch-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
}
body.dark-theme .xk-sch-ico {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -9px;
    border: 2px solid #4E6C8A;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
}
body.dark-theme .xk-sch-ico::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #4E6C8A;
    transform: rotate(45deg);
}
body.dark-theme .xk-sch-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 16px 0 42px;
    border-radius: 12px;
    border: 1px solid rgba(43, 231, 255, .2);
    background: rgba(255, 255, 255, .045);
    color: #E6F1FF;
    font-size: 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
    -webkit-appearance: none;
    appearance: none;
}
body.dark-theme .xk-sch-form input::placeholder { color: #4E6C8A; }
body.dark-theme .xk-sch-form input:focus {
    border-color: rgba(43, 231, 255, .55);
    box-shadow: 0 0 0 3px rgba(43, 231, 255, .1);
}
body.dark-theme .xk-sch-form button {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #3A2400;
    cursor: pointer;
    background: linear-gradient(180deg, #FFD98A 0%, #FFB020 100%);
    box-shadow: 0 10px 22px -12px rgba(255, 176, 32, .9);
    transition: filter .16s ease;
}
body.dark-theme .xk-sch-form button:hover { filter: brightness(1.06); }

/* 热门词 */
body.dark-theme .xk-sch-hot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
body.dark-theme .xk-sch-hot .lb { font-size: 11.5px; color: #4E6C8A; margin-right: 2px; }
body.dark-theme .xk-sch-hot a {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    color: #93A8C0;
    text-decoration: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
body.dark-theme .xk-sch-hot a:hover {
    color: #2BE7FF;
    border-color: rgba(43, 231, 255, .3);
    background: rgba(43, 231, 255, .07);
}
body.dark-theme .xk-sch-hot a.is-on {
    color: #3A2400;
    font-weight: 700;
    background: linear-gradient(180deg, #FFD98A 0%, #FFB020 100%);
    border-color: transparent;
}

/* 其他内容（页面等非游戏条目） */
body.dark-theme .xk-sch-other {
    margin: 2px 0 26px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .06);
}
body.dark-theme .xk-sch-other-h {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #C9D8EA;
}
body.dark-theme .xk-sch-other ul { margin: 0; padding: 0; list-style: none; }
body.dark-theme .xk-sch-other li a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: #8FA3BC;
    text-decoration: none;
}
body.dark-theme .xk-sch-other li a:hover { color: #2BE7FF; }

/* 空结果 */
body.dark-theme .xk-sch-empty {
    margin: 2px 0 28px;
    padding: 50px 24px 44px;
    text-align: center;
    border-radius: 18px;
    border: 1px dashed rgba(43, 231, 255, .18);
    background: radial-gradient(circle at 50% 0%, rgba(43, 231, 255, .06) 0%, rgba(6, 9, 18, 0) 62%);
}
body.dark-theme .xk-sch-empty-ico {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border: 2px solid rgba(43, 231, 255, .3);
    border-radius: 50%;
}
body.dark-theme .xk-sch-empty-ico::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -6px;
    width: 14px;
    height: 3px;
    border-radius: 3px;
    background: rgba(43, 231, 255, .38);
    transform: rotate(45deg);
}
body.dark-theme .xk-sch-empty h2 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    color: #EAF5FF;
}
body.dark-theme .xk-sch-empty p {
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 1.7;
    color: #7B8FA8;
}
body.dark-theme .xk-sch-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
body.dark-theme .xk-sch-cats a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 12.5px;
    color: #B7C7DA;
    text-decoration: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}
body.dark-theme .xk-sch-cats a em {
    font-style: normal;
    font-size: 10.5px;
    color: #4E6C8A;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .xk-sch-cats a:hover {
    color: #2BE7FF;
    border-color: rgba(43, 231, 255, .3);
    background: rgba(43, 231, 255, .07);
}
body.dark-theme .xk-sch-cats a.is-lx {
    color: #FFD98A;
    background: rgba(255, 176, 32, .09);
    border-color: rgba(255, 176, 32, .24);
}
body.dark-theme .xk-sch-cats a.is-lx em { color: #9C7A3E; }
body.dark-theme .xk-sch-empty-cta {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    color: #3A2400;
    text-decoration: none;
    background: linear-gradient(180deg, #FFD98A 0%, #FFB020 100%);
    box-shadow: 0 10px 24px -12px rgba(255, 176, 32, .9);
}

@media (max-width: 640px) {
    body.dark-theme .xk-sch-hero { margin-bottom: 16px; padding: 24px 18px 22px; border-radius: 15px; }
    body.dark-theme .xk-sch-mark { font-size: 116px; right: 12px; bottom: -10px; letter-spacing: -5px; }
    body.dark-theme .xk-sch-kick { font-size: 9.5px; letter-spacing: 2px; margin-bottom: 8px; }
    body.dark-theme .xk-sch-title { font-size: 21px; margin-bottom: 8px; }
    body.dark-theme .xk-sch-sub { font-size: 12px; margin-bottom: 14px; }
    body.dark-theme .xk-sch-form { gap: 8px; }
    body.dark-theme .xk-sch-form input { height: 44px; font-size: 13px; padding: 0 14px 0 38px; }
    body.dark-theme .xk-sch-ico { left: 14px; }
    body.dark-theme .xk-sch-form button { height: 44px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
    body.dark-theme .xk-sch-hot { margin-top: 12px; gap: 6px; }
    body.dark-theme .xk-sch-hot a { font-size: 11.5px; padding: 4px 10px; }
    body.dark-theme .xk-sch-empty { padding: 36px 16px 32px; }
    body.dark-theme .xk-sch-empty h2 { font-size: 16.5px; }
    body.dark-theme .xk-sch-empty p { font-size: 12px; }
    body.dark-theme .xk-sch-cats a { font-size: 12px; padding: 6px 11px; }
}

/* ---------- 27. 龙翔统一封面：用「图标 + 磨砂底纹」替代界面截图海报 ---------- */
body.dark-theme .xk-hcard.is-lx .xk-lx-cv {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(155deg, #2B1E0D 0%, #0C0805 100%);
    border-bottom: 1px solid rgba(255, 176, 32, .14);
}
body.dark-theme .xk-hcard.is-lx .xk-lx-cv .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .2;
    filter: blur(7px) saturate(.65);
    transform: scale(1.08);
    transition: transform .5s ease;
}
body.dark-theme .xk-hcard.is-lx:hover .xk-lx-cv .bg { transform: scale(1.14); }
body.dark-theme .xk-hcard.is-lx .xk-lx-cv .veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 46%, rgba(255, 176, 32, .2) 0%, rgba(8, 6, 3, .5) 68%);
}
body.dark-theme .xk-hcard.is-lx .xk-lx-cv .ico {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    background: #0E1524;
    box-shadow:
        0 0 0 2px rgba(255, 217, 138, .6),
        0 0 0 7px rgba(255, 176, 32, .09),
        0 18px 32px -14px rgba(0, 0, 0, .95);
    transition: transform .3s ease;
}
body.dark-theme .xk-hcard.is-lx:hover .xk-lx-cv .ico { transform: translateY(-2px) scale(1.04); }
body.dark-theme .xk-hcard.is-lx .kick {
    position: absolute;
    left: 10px;
    top: 9px;
    font-size: 10px;
    letter-spacing: 1.2px;
    line-height: 1.6;
    color: #C79A55;
    background: rgba(255, 176, 32, .08);
    border: 1px solid rgba(255, 176, 32, .2);
    padding: 2px 7px;
    border-radius: 5px;
}
body.dark-theme .xk-hcard.is-lx .kick.is-648 {
    left: auto;
    right: 10px;
    color: #FFD98A;
    background: linear-gradient(135deg, rgba(255, 159, 26, .92), rgba(255, 111, 0, .92));
    border-color: transparent;
}
body.dark-theme .xk-hcard-body.is-lx { padding: 12px 14px 14px; }
body.dark-theme .xk-hcard.is-lx:hover { border-color: rgba(255, 176, 32, .34); }

@media (max-width: 640px) {
    body.dark-theme .xk-hcard.is-lx .xk-lx-cv .ico {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        box-shadow: 0 0 0 1.5px rgba(255, 217, 138, .55), 0 0 0 5px rgba(255, 176, 32, .08), 0 12px 22px -12px rgba(0, 0, 0, .95);
    }
    body.dark-theme .xk-hcard.is-lx .kick { font-size: 9px; padding: 1px 6px; letter-spacing: .8px; left: 8px; top: 7px; }
    body.dark-theme .xk-hcard.is-lx .kick.is-648 { left: auto; right: 8px; }
    body.dark-theme .xk-hcard-body.is-lx { padding: 10px 11px 11px; }
    /* 手机上搜索页的大号数字会压住热门词，直接藏掉 */
    body.dark-theme .xk-sch-mark { display: none; }
}

/* 手机上热门词改成横向滑动：避免只剩一个胶囊孤零零掉到第二行 */
@media (max-width: 640px) {
    body.dark-theme .xk-sch-hot {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 3px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    body.dark-theme .xk-sch-hot::-webkit-scrollbar { display: none; }
    body.dark-theme .xk-sch-hot .lb,
    body.dark-theme .xk-sch-hot a { flex: 0 0 auto; }
}

/* ---------- 28. 搜索页增强：题材筛选行 + 输入联想下拉 ---------- */
body.dark-theme .xk-sch-hero .xk-sch-cats {
    justify-content: flex-start;
    margin: 14px 0 0;
    gap: 7px;
}
body.dark-theme .xk-sch-hero .xk-sch-cats .lb {
    font-size: 11.5px;
    color: #4E6C8A;
    margin-right: 2px;
}
body.dark-theme .xk-sch-hero .xk-sch-cats a {
    padding: 5px 11px;
    font-size: 12px;
}
body.dark-theme .xk-sch-hero .xk-sch-cats a em { font-size: 10px; }
body.dark-theme .xk-sch-hero .xk-sch-cats a.is-on {
    color: #3A2400;
    font-weight: 700;
    background: linear-gradient(180deg, #FFD98A 0%, #FFB020 100%);
    border-color: transparent;
}
body.dark-theme .xk-sch-hero .xk-sch-cats a.is-on em { color: #7A5410; }
body.dark-theme .xk-sch-hero .xk-sch-cats a.is-lx {
    color: #FFD98A;
    background: rgba(255, 176, 32, .09);
    border-color: rgba(255, 176, 32, .24);
}
body.dark-theme .xk-sch-hero .xk-sch-cats a.is-lx em { color: #9C7A3E; }

/* 联想下拉 */
body.dark-theme .xk-sch-sug {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    padding: 6px;
    max-height: 340px;
    overflow-y: auto;
    background: #0C1220;
    border: 1px solid rgba(43, 231, 255, .22);
    border-radius: 12px;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .92);
}
body.dark-theme .xk-sch-sug[hidden] { display: none; }
body.dark-theme .xk-sch-sug-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 13px;
    color: #C9D8EA;
    text-decoration: none;
}
body.dark-theme .xk-sch-sug-item:hover,
body.dark-theme .xk-sch-sug-item.is-cur {
    background: rgba(43, 231, 255, .1);
    color: #EAF5FF;
}
body.dark-theme .xk-sch-sug-item img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 34px;
    background: #0E1524;
}
body.dark-theme .xk-sch-sug-nopic {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0E1524;
    flex: 0 0 34px;
}
body.dark-theme .xk-sch-sug-item .nm {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.dark-theme .xk-sch-sug-item em {
    font-style: normal;
    font-size: 11px;
    color: #4E6C8A;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    body.dark-theme .xk-sch-hero .xk-sch-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 3px;
    }
    body.dark-theme .xk-sch-hero .xk-sch-cats::-webkit-scrollbar { display: none; }
    body.dark-theme .xk-sch-hero .xk-sch-cats .lb,
    body.dark-theme .xk-sch-hero .xk-sch-cats a { flex: 0 0 auto; }
    body.dark-theme .xk-sch-sug { max-height: 260px; }
}

/* 联想下拉是绝对定位在 hero 里的，hero 不能 overflow:hidden，否则下拉会被裁掉 */
body.dark-theme .xk-sch-hero { overflow: visible; }
body.dark-theme .xk-sch-hero::after { border-radius: 18px; }
@media (max-width: 640px) {
    body.dark-theme .xk-sch-hero::after { border-radius: 15px; }
}

/* 全站搜索联想宿主（顶栏搜索框 / 主题 ajax 搜索层） */
body.dark-theme .xk-sug-host { position: relative; }
body.dark-theme .xk-sug-host .xk-sch-sug { top: calc(100% + 6px); }

/* ---------- 29. 分类页排序条 ---------- */
body.dark-theme .xk-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .05);
}
body.dark-theme .xk-sort .lb { font-size: 11.5px; color: #4E6C8A; margin-right: 2px; }
body.dark-theme .xk-sort a {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    color: #93A8C0;
    text-decoration: none;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}
body.dark-theme .xk-sort a:hover {
    color: #2BE7FF;
    border-color: rgba(43, 231, 255, .3);
    background: rgba(43, 231, 255, .07);
}
body.dark-theme .xk-sort a.is-on {
    color: #3A2400;
    font-weight: 700;
    background: linear-gradient(180deg, #FFD98A 0%, #FFB020 100%);
    border-color: transparent;
}
@media (max-width: 640px) {
    body.dark-theme .xk-sort { gap: 6px; margin-top: 10px; padding-top: 10px; }
    body.dark-theme .xk-sort a { font-size: 11.5px; padding: 4px 10px; }
}

/* ---------- 30. 首页「本周热门榜」 ---------- */
body.dark-theme .xk-sec-hot .xk-sec-ico.is-hot {
    background:
        radial-gradient(circle at 30% 70%, #FF9F1A 41%, transparent 42%),
        radial-gradient(circle at 70% 70%, #FFD98A 41%, transparent 42%),
        radial-gradient(circle at 30% 30%, #FFD98A 41%, transparent 42%),
        radial-gradient(circle at 70% 30%, #FF6F00 41%, transparent 42%) !important;
    filter: drop-shadow(0 0 7px rgba(255, 159, 26, .55));
}
body.dark-theme .xk-sec-hot .xk-sec-title { color: #FFD1A1; }
body.dark-theme .xk-sec-hot .xk-sec-title em { color: #A8792F; font-size: 12px; font-weight: 500; }

/* 排名角标 */
body.dark-theme .xk-hcard .xk-rank {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #04121A;
    background: linear-gradient(135deg, #2BE7FF 0%, #7B5CFF 100%);
    box-shadow: 0 8px 18px -8px rgba(43, 231, 255, .9);
}
body.dark-theme .xk-hcard .xk-rank.r1 {
    background: linear-gradient(135deg, #FFE7A8 0%, #FFB020 100%);
    color: #3A2400;
    box-shadow: 0 10px 22px -8px rgba(255, 176, 32, .95);
}
body.dark-theme .xk-hcard .xk-rank.r2 {
    background: linear-gradient(135deg, #EAF0F8 0%, #A6B6CA 100%);
    color: #16202C;
}
body.dark-theme .xk-hcard .xk-rank.r3 {
    background: linear-gradient(135deg, #F3C7A4 0%, #C4834F 100%);
    color: #2A1608;
}
/* 有排名时，「天天送648」角标让到左下角，避免叠在一起 */
body.dark-theme .xk-hcard .xk-rank ~ .xk-hcard-648 { top: auto; bottom: 10px; }
@media (max-width: 640px) {
    body.dark-theme .xk-hcard .xk-rank { left: 8px; top: 8px; min-width: 22px; height: 22px; font-size: 11.5px; border-radius: 7px; }
    body.dark-theme .xk-hcard .xk-rank ~ .xk-hcard-648 { bottom: 8px; }
}

/* ---------- 31. 首页「0.1 折专区」 ---------- */
body.dark-theme .xk-sec-cheap .xk-sec-ico.is-cheap {
    background:
        radial-gradient(circle at 28% 28%, #FFD98A 41%, transparent 42%),
        radial-gradient(circle at 72% 28%, #FFB020 41%, transparent 42%),
        radial-gradient(circle at 28% 72%, #FFB020 41%, transparent 42%),
        radial-gradient(circle at 72% 72%, #FFD98A 41%, transparent 42%) !important;
    filter: drop-shadow(0 0 7px rgba(255, 176, 32, .6));
}
body.dark-theme .xk-sec-cheap .xk-sec-title { color: #FFD98A; }
body.dark-theme .xk-sec-cheap .xk-sec-title em { color: #A8792F; font-size: 12px; font-weight: 500; }
body.dark-theme .xk-sec-cheap {
    background: linear-gradient(180deg, rgba(255, 176, 32, .045) 0%, rgba(6, 9, 18, 0) 42%);
    border-radius: 16px;
    padding: 4px 14px 16px;
}

/* ---------- 32. 对比度修正：次级文字提亮 + 浅底上的文字压深 ---------- */
/* 次级数字 / 标签统一提到 #93A8C0（在 #0C1220 上约 5.4:1） */
body.dark-theme .xk-cat-tabs a em { color: #93A8C0 !important; }
body.dark-theme .xk-pc-num em { color: #93A8C0; }
body.dark-theme .xk-lx-sw em { color: #93A8C0; }
body.dark-theme .xk-sort .lb,
body.dark-theme .xk-sch-hero .xk-sch-cats .lb,
body.dark-theme .xk-sch-hot .lb { color: #93A8C0; }
body.dark-theme .xk-foot-badge { color: #93A8C0; }
body.dark-theme .xk-sec-title em { color: #93A8C0; }
body.dark-theme .xk-foot-name em { color: #7E93AC; }
body.dark-theme .xk-hall-title em { color: #8FA3BC; }

/* 导航里的「龙翔怀旧」：主题内联样式是深棕 #B4530A，深色底上只有 3.1:1 */
body.dark-theme .mobile-navbar li.xk-mi-lx > a,
body.dark-theme .navbar-nav .sub-menu > li.xk-mi-lx > a { color: #FFC65C !important; }

/* 详情页「免费版 · 天天送648」是米色浅底卡片，说明文字却是浅蓝，几乎看不见 */
body.dark-theme .xk-648 p { color: #8A5F1E !important; }
body.dark-theme .xk-648 strong { color: #8A4E00 !important; }

/* ---------- 33. 收尾对比度修正 ---------- */
/* 侧栏/榜单里的折扣小徽标：主题把它写成浅粉底红字（深色组挂在 body.dark，从不生效） */
body.dark-theme .xk-rank-item .d,
body.dark-theme .xk-side-item .meta .d {
    background: rgba(255, 77, 61, .16) !important;
    color: #FF8A72 !important;
}
/* 平台卡里的「款在架」暖灰小字 */
body.dark-theme .xk-pc-num em { color: #A3B0C2 !important; }
/* 搜索页题材胶囊里的款数 */
body.dark-theme .xk-sch-hero .xk-sch-cats a em { color: #93A8C0; }
body.dark-theme .xk-sch-hero .xk-sch-cats a.is-on em { color: #6E4C10; }
/* 龙翔 hero 统计里的「款在架 / 折起 / 屏看全」小字（暖底上要够亮） */
body.dark-theme .xk-lx-stat em { color: #C9A870; }

/* ---------- 34. 首页常驻搜索条 + 首屏图预加载 ---------- */
body.dark-theme .xk-hall-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(43, 231, 255, .16);
    background: linear-gradient(120deg, rgba(12, 21, 36, .92) 0%, rgba(7, 10, 19, .92) 100%);
}
body.dark-theme .xk-hall-search .lb {
    font-size: 12.5px;
    color: #93A8C0;
    flex: 0 0 auto;
}
body.dark-theme .xk-hall-search form {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}
body.dark-theme .xk-hall-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(43, 231, 255, .22);
    background: rgba(255, 255, 255, .05);
    color: #E6F1FF;
    font-size: 13.5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
body.dark-theme .xk-hall-search input::placeholder { color: #5E7A96; }
body.dark-theme .xk-hall-search input:focus {
    border-color: rgba(43, 231, 255, .55);
    box-shadow: 0 0 0 3px rgba(43, 231, 255, .1);
}
body.dark-theme .xk-hall-search button {
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #3A2400;
    cursor: pointer;
    background: linear-gradient(180deg, #FFD98A 0%, #FFB020 100%);
    box-shadow: 0 8px 18px -10px rgba(255, 176, 32, .9);
}
body.dark-theme .xk-hall-search .hot {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
body.dark-theme .xk-hall-search .hot a {
    font-size: 12px;
    color: #8FA3BC;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: color .16s ease, border-color .16s ease;
}
body.dark-theme .xk-hall-search .hot a:hover {
    color: #2BE7FF;
    border-color: rgba(43, 231, 255, .3);
}
@media (max-width: 860px) {
    body.dark-theme .xk-hall-search { flex-wrap: wrap; gap: 10px; padding: 12px; }
    body.dark-theme .xk-hall-search form { flex: 1 1 100%; order: 2; }
    body.dark-theme .xk-hall-search .hot { order: 3; }
}
@media (max-width: 640px) {
    body.dark-theme .xk-hall-search { margin-bottom: 12px; border-radius: 12px; }
    body.dark-theme .xk-hall-search .hot a { font-size: 11.5px; padding: 3px 9px; }
    body.dark-theme .xk-hall-search input,
    body.dark-theme .xk-hall-search button { height: 38px; }
}

/* ---------- 35. 详情页主视觉：左海报 + 右信息 ---------- */
body.dark-theme .xk-hero-card {
    display: flex;
    gap: 20px;
    align-items: stretch;
}
body.dark-theme .xk-hero-main { flex: 1 1 auto; min-width: 0; }
body.dark-theme .xk-hero-cover {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    aspect-ratio: 16 / 9;
    align-self: flex-start;
    overflow: hidden;
    border-radius: 14px;
    background: #0E1524;
    border: 1px solid rgba(43, 231, 255, .14);
}
body.dark-theme .xk-hero-cover .art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.dark-theme .xk-hero-cover .veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 18, 0) 55%, rgba(6, 9, 18, .55) 100%);
}
/* 龙翔：海报是界面截图，改用统一封面（图标 + 琥珀底纹），与卡片区一致 */
body.dark-theme .xk-hero-cover.is-lx {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 176, 32, .22) 0%, rgba(8, 6, 3, .5) 68%),
        linear-gradient(155deg, #2B1E0D 0%, #0C0805 100%);
    border-color: rgba(255, 176, 32, .22);
}
body.dark-theme .xk-hero-cover.is-lx .ico {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 24px;
    object-fit: cover;
    background: #0E1524;
    box-shadow:
        0 0 0 2px rgba(255, 217, 138, .6),
        0 0 0 8px rgba(255, 176, 32, .09),
        0 18px 34px -16px rgba(0, 0, 0, .95);
}
@media (max-width: 900px) {
    body.dark-theme .xk-hero-card { flex-direction: column; gap: 16px; }
    body.dark-theme .xk-hero-cover { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 640px) {
    body.dark-theme .xk-hero-cover { border-radius: 12px; }
    body.dark-theme .xk-hero-cover.is-lx .ico { width: 74px; height: 74px; border-radius: 18px; }
}

/* ---------- 36. 详情页：封面与卡片图标去重 + 截图等比显示 ---------- */
/* 有主视觉封面时，卡片里的小图标就多余了 */
body.dark-theme .xk-hero-card.has-cover .xk-card-logo { display: none; }
/* 游戏截图素材横竖不一（龙翔是横版宣传图，3387 多是竖版）：
   改成横向滚动画廊，每张按自身比例完整显示，不再裁切也不留黑边 */
body.dark-theme .xk-shots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
body.dark-theme .xk-shots::-webkit-scrollbar { height: 6px; }
body.dark-theme .xk-shots::-webkit-scrollbar-thumb {
    background: rgba(43, 231, 255, .25);
    border-radius: 3px;
}
body.dark-theme .xk-shots::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); }
body.dark-theme .xk-shot {
    flex: 0 0 auto;
    width: 210px;
    aspect-ratio: auto;
    background: #0E1524;
    border: 1px solid rgba(255, 255, 255, .06);
    scroll-snap-align: start;
}
body.dark-theme .xk-shot img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #0E1524;
}
@media (max-width: 640px) {
    body.dark-theme .xk-shots { gap: 8px; }
    body.dark-theme .xk-shot { width: 132px; }
    body.dark-theme .xk-shot img { max-height: 260px; }
}

/* ---------- 37. 首页「口碑榜」（评分最高） ---------- */
body.dark-theme .xk-sec-point .xk-sec-ico.is-point {
    background:
        radial-gradient(circle at 28% 28%, #3DF0B4 41%, transparent 42%),
        radial-gradient(circle at 72% 28%, #2BE7FF 41%, transparent 42%),
        radial-gradient(circle at 28% 72%, #2BE7FF 41%, transparent 42%),
        radial-gradient(circle at 72% 72%, #3DF0B4 41%, transparent 42%) !important;
    filter: drop-shadow(0 0 7px rgba(61, 240, 180, .5));
}
body.dark-theme .xk-sec-point .xk-sec-title { color: #B7F5DE; }
body.dark-theme .xk-sec-point .xk-sec-title em { color: #4E8C76; font-size: 12px; font-weight: 500; }

/* ---------- 38. 关于我们页 / 网站地图页 ---------- */
body.dark-theme .xk-about-hero,
body.dark-theme .xk-map-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 18px;
    padding: 34px 32px 30px;
    border-radius: 18px;
    border: 1px solid rgba(43, 231, 255, .16);
    background:
        radial-gradient(circle at 88% 10%, rgba(43, 231, 255, .13) 0%, rgba(7, 10, 19, 0) 56%),
        radial-gradient(circle at 6% 98%, rgba(123, 92, 255, .12) 0%, rgba(7, 10, 19, 0) 52%),
        linear-gradient(152deg, #0C1526 0%, #070A13 74%);
}
body.dark-theme .xk-about-mark {
    position: absolute;
    right: 26px;
    bottom: -16px;
    z-index: 0;
    font-size: 168px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -8px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(43, 231, 255, .17);
    text-stroke: 1.5px rgba(43, 231, 255, .17);
    pointer-events: none;
    user-select: none;
}
body.dark-theme .xk-about-hero-in { position: relative; z-index: 1; max-width: 680px; }
body.dark-theme .xk-about-kick,
body.dark-theme .xk-map-kick {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: #5C7E9E;
    margin-bottom: 10px;
}
body.dark-theme .xk-about-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .4px;
    color: #EAF5FF;
}
body.dark-theme .xk-about-sub,
body.dark-theme .xk-map-sub {
    margin: 0 0 20px;
    font-size: 13.5px;
    line-height: 1.85;
    color: #93A8C0;
    max-width: 660px;
}
body.dark-theme .xk-about-sub b { color: #2BE7FF; }
body.dark-theme .xk-about-stats { display: flex; gap: 34px; }
body.dark-theme .xk-about-stat { display: flex; flex-direction: column; line-height: 1.1; }
body.dark-theme .xk-about-stat b {
    font-size: 30px;
    font-weight: 900;
    color: #FFD98A;
    font-variant-numeric: tabular-nums;
}
body.dark-theme .xk-about-stat em {
    font-style: normal;
    font-size: 11.5px;
    color: #7E93AC;
    margin-top: 5px;
}
body.dark-theme .xk-about-block { margin-bottom: 18px; }
body.dark-theme .xk-about-text p {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.95;
    color: #93A8C0;
}
body.dark-theme .xk-about-text strong { color: #C9D8EA; font-weight: 600; }
body.dark-theme .xk-about-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.dark-theme .xk-about-line {
    display: block;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    background: #0C1220;
    border: 1px solid rgba(43, 231, 255, .12);
    transition: border-color .18s ease, transform .18s ease;
}
body.dark-theme .xk-about-line:hover { transform: translateY(-2px); border-color: rgba(43, 231, 255, .34); }
body.dark-theme .xk-about-line.is-b { background: linear-gradient(150deg, #1B1409 0%, #0B0E16 70%); border-color: rgba(255, 176, 32, .2); }
body.dark-theme .xk-about-line .nm { display: block; font-size: 16px; font-weight: 800; color: #EAF5FF; margin-bottom: 6px; }
body.dark-theme .xk-about-line.is-b .nm { color: #FFD98A; }
body.dark-theme .xk-about-line em { display: block; font-style: normal; font-size: 12px; color: #93A8C0; margin-bottom: 12px; }
body.dark-theme .xk-about-line .go { font-size: 12.5px; font-weight: 700; color: #2BE7FF; }
body.dark-theme .xk-about-line.is-b .go { color: #FFB020; }
body.dark-theme .xk-about-cats { display: flex; flex-wrap: wrap; gap: 9px; }
body.dark-theme .xk-about-cats a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13px;
    color: #B7C7DA;
    text-decoration: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}
body.dark-theme .xk-about-cats a em { font-style: normal; font-size: 11px; color: #6E839C; }
body.dark-theme .xk-about-cats a:hover { color: #2BE7FF; border-color: rgba(43, 231, 255, .3); }
body.dark-theme .xk-map-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    color: #EAF5FF;
}
body.dark-theme .xk-map-form { max-width: 560px; }
body.dark-theme .xk-map-links { display: flex; flex-wrap: wrap; gap: 9px; }
body.dark-theme .xk-map-links a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 13px;
    color: #B7C7DA;
    text-decoration: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}
body.dark-theme .xk-map-links a em { font-style: normal; font-size: 11px; color: #6E839C; }
body.dark-theme .xk-map-links a:hover { color: #2BE7FF; border-color: rgba(43, 231, 255, .3); }
body.dark-theme .xk-map-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
body.dark-theme .xk-map-games a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    color: #93A8C0;
    text-decoration: none;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .05);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.dark-theme .xk-map-games a:hover { color: #2BE7FF; border-color: rgba(43, 231, 255, .26); }
body.dark-theme .xk-foot-page {
    display: inline-block;
    margin-top: 10px;
    margin-right: 14px;
    font-size: 12.5px;
    color: #A3B5CA;
    text-decoration: none;
}
body.dark-theme .xk-foot-page:hover { color: #2BE7FF; }
@media (max-width: 640px) {
    body.dark-theme .xk-about-hero,
    body.dark-theme .xk-map-hero { padding: 24px 18px 22px; border-radius: 15px; }
    body.dark-theme .xk-about-mark { display: none; }
    body.dark-theme .xk-about-title { font-size: 21px; }
    body.dark-theme .xk-about-sub,
    body.dark-theme .xk-map-sub { font-size: 12.5px; }
    body.dark-theme .xk-about-stats { gap: 22px; }
    body.dark-theme .xk-about-stat b { font-size: 22px; }
    body.dark-theme .xk-about-lines { grid-template-columns: 1fr; }
    body.dark-theme .xk-map-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.dark-theme .xk-map-title { font-size: 21px; }
}

/* ---------- 39. 题材计数小字提亮到 4.5:1 ---------- */
body.dark-theme .xk-about-cats a em,
body.dark-theme .xk-map-links a em { color: #8FA3BC; }
