/* ==========================================================================
   黑神话·悟空 主题  (WUKONG THEME — Black Myth Style)
   --------------------------------------------------------------------------
   设计语言：
     · 底色为「墨」——深墨黑带暖褐，非纯黑，模拟古卷与青铜
     · 主色为「金」——古金 #c9a45c，用于边框、标题、强调
     · 点缀为「朱砂」——#a32b2b，用于徽标、印章、警示
     · 文字为「宣纸」——#ddd3c0，暖白，久看不刺眼
     · 纹饰：四角回纹角标、金线描边、云纹分隔、印章徽标
   说明：
     本文件被 13 个 wukong 模板共用，所有原有类名一律保留，
     仅重绘视觉与布局，不改结构，避免影响其它主题。
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
    /* 墨色层次 */
    --ink-0: #080706;
    --ink-1: #0d0b09;
    --ink-2: #14110e;
    --ink-3: #1c1814;
    --bg-body: #0a0807;
    --bg-card: rgba(22, 18, 14, 0.88);
    --bg-card-solid: #16120e;
    --bg-card-hover: rgba(32, 26, 20, 0.95);

    /* 金色体系 */
    --gold: #c9a45c;
    --gold-bright: #e8c87a;
    --gold-deep: #8a6d34;
    --gold-dim: rgba(201, 164, 92, 0.10);
    --gold-line: rgba(201, 164, 92, 0.22);
    --gold-glow: rgba(201, 164, 92, 0.30);

    /* 朱砂 */
    --cinnabar: #a32b2b;
    --cinnabar-bright: #c94141;
    --cinnabar-dim: rgba(163, 43, 43, 0.16);

    /* 青玉（次要强调） */
    --jade: #5b8c7a;
    --jade-dim: rgba(91, 140, 122, 0.14);

    /* 文字 */
    --text: #ddd3c0;
    --text2: #9d9384;
    --text3: #6d6558;

    /* 边框 */
    --border: rgba(201, 164, 92, 0.14);
    --border-hover: rgba(201, 164, 92, 0.42);

    /* 尺度 */
    --radius: 4px;
    --radius-lg: 6px;
    --sidebar-w: 64px;
    --header-h: 58px;

    /* 字体 */
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "宋体", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

    /* 回纹角标尺寸 */
    --corner: 13px;
    --corner-w: 1px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    /* 墨底 + 两处极淡的暖光晕，模拟烛火与云气 */
    background-image:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(201, 164, 92, 0.07), transparent 70%),
        radial-gradient(ellipse 50% 40% at 12% 105%, rgba(163, 43, 43, 0.05), transparent 70%);
    background-attachment: fixed;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .2s, border-color .2s; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; letter-spacing: .5px; }

/* 选中文字 */
::selection { background: var(--gold-deep); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink-1); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-deep), #4a3a1c);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ==========================================================================
   纹饰工具：四角回纹角标
   用 8 个背景渐变在四角画出 L 形金线，不占用 ::before/::after
   ========================================================================== */
.wk-ccard,
.wk-hot-card,
.wk-side-card,
.wk-content-card,
.wk-stats-inner,
.wk-article-body-wrap {
    position: relative;
    background-image:
        linear-gradient(var(--gold-line), var(--gold-line)),
        linear-gradient(var(--gold-line), var(--gold-line)),
        linear-gradient(var(--gold-line), var(--gold-line)),
        linear-gradient(var(--gold-line), var(--gold-line)),
        linear-gradient(var(--gold-line), var(--gold-line)),
        linear-gradient(var(--gold-line), var(--gold-line)),
        linear-gradient(var(--gold-line), var(--gold-line)),
        linear-gradient(var(--gold-line), var(--gold-line));
    background-size:
        var(--corner) var(--corner-w), var(--corner-w) var(--corner),
        var(--corner) var(--corner-w), var(--corner-w) var(--corner),
        var(--corner) var(--corner-w), var(--corner-w) var(--corner),
        var(--corner) var(--corner-w), var(--corner-w) var(--corner);
    background-position:
        left top, left top,
        right top, right top,
        left bottom, left bottom,
        right bottom, right bottom;
    background-repeat: no-repeat;
    transition: background-position .2s, border-color .2s;
}
/* 悬停时角标微微外扩，产生"金线亮起"的呼吸感 */
.wk-ccard:hover,
.wk-side-card:hover {
    background-position:
        left top, left top,
        right top, right top,
        left bottom, left bottom,
        right bottom, right bottom;
}

/* ==========================================================================
   左侧导航栏
   ========================================================================== */
/* ==========================================================================
   左侧导航栏（可展开）
   默认窄条 64px 只显示图标；点击顶部按钮展开为 190px 并显示文字，
   展开时把顶栏与主内容一起推开（不是浮层遮挡），带过渡动画。
   ========================================================================== */
.wk-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w); z-index: 100;
    background: linear-gradient(180deg, #100d0a 0%, #0a0807 100%);
    border-right: 1px solid var(--gold-line);
    box-shadow: 1px 0 0 rgba(201, 164, 92, 0.06), 4px 0 24px rgba(0, 0, 0, 0.6);
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 0 18px;
    overflow-x: hidden; overflow-y: auto;
    scrollbar-width: none;
    transition: width .26s cubic-bezier(.22, 1, .36, 1);
}
.wk-sidebar::-webkit-scrollbar { width: 0; }

/* 展开/收起按钮 */
.wk-sidebar-toggle {
    width: 40px; height: 32px; flex-shrink: 0;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    background: rgba(201, 164, 92, 0.07);
    border: 1px solid var(--gold-line);
    color: var(--gold);
    font-size: 14px; cursor: pointer;
    transition: all .2s;
}
.wk-sidebar-toggle:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 14px rgba(201, 164, 92, 0.22);
}
.wk-sidebar-toggle i { line-height: 1; }

.wk-sidebar-logo {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-bottom: 20px;
    border: 1px solid var(--gold-line);
    box-shadow: 0 0 16px rgba(201, 164, 92, 0.18), inset 0 0 10px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    transition: width .26s ease, height .26s ease, border-radius .26s ease;
}
/*
 * 站点 logo 通常是横向长图（实测 346x86），直接塞进小方块会被压扁或裁掉文字。
 * 这里用 cover + 左对齐，只取 logo 最左侧的图形标记部分，当作侧栏图标使用。
 */
.wk-sidebar-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: left center;
}

.wk-sidebar a {
    display: flex; align-items: center;
    width: 46px; height: 46px; border-radius: var(--radius);
    color: var(--text3); font-size: 11px; gap: 12px;
    margin-bottom: 2px; transition: all .2s;
    position: relative;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
.wk-sidebar a i {
    font-size: 18px; transition: transform .2s;
    width: 20px; text-align: center; flex-shrink: 0;
}
.wk-sidebar a span {
    font-size: 13px; line-height: 1;
    font-family: var(--font-serif);
    letter-spacing: 1px;
    white-space: nowrap;
    /* 窄条态隐藏文字 */
    opacity: 0; width: 0; overflow: hidden;
    transition: opacity .18s ease;
}
.wk-sidebar a:hover {
    color: var(--gold-bright);
    background: linear-gradient(135deg, var(--gold-dim), transparent);
}
.wk-sidebar a:hover i { transform: translateY(-1px); }
.wk-sidebar a.active {
    color: var(--gold-bright); font-weight: 600;
    background: linear-gradient(135deg, rgba(201, 164, 92, 0.18), rgba(201, 164, 92, 0.04));
    border: 1px solid var(--gold-line);
}
/* 左侧朱砂竖条，仿印章边栏 */
.wk-sidebar a.active::before {
    content: ''; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
    width: 2px; height: 22px;
    background: linear-gradient(180deg, var(--gold-bright), var(--cinnabar));
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ---------- 展开态 ---------- */
body.wk-sidebar-open .wk-sidebar {
    width: 190px;
    align-items: stretch;
    padding-left: 12px; padding-right: 12px;
}
body.wk-sidebar-open .wk-sidebar-toggle {
    width: 100%;
    justify-content: flex-start;
    padding-left: 13px;
}
body.wk-sidebar-open .wk-sidebar-logo {
    width: 100%; height: 46px; border-radius: 8px;
    margin-bottom: 18px;
}
body.wk-sidebar-open .wk-sidebar-logo img {
    object-fit: contain; object-position: center;
}
body.wk-sidebar-open .wk-sidebar a {
    width: 100%;
    justify-content: flex-start;
    padding-left: 13px;
}
body.wk-sidebar-open .wk-sidebar a span {
    opacity: 1; width: auto;
}
/* 展开时把顶栏与内容区一起推开 */
body.wk-sidebar-open .wk-header { left: 190px; }
body.wk-sidebar-open .wk-wrap { margin-left: 190px; }
.wk-header, .wk-wrap { transition: margin-left .26s cubic-bezier(.22, 1, .36, 1), left .26s cubic-bezier(.22, 1, .36, 1); }

/* ==========================================================================
   顶部栏
   ========================================================================== */
.wk-header {
    position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: var(--header-h);
    z-index: 99; display: flex; align-items: center;
    padding: 0 24px; gap: 20px;
    background: linear-gradient(180deg, rgba(16, 13, 10, 0.97), rgba(10, 8, 7, 0.92));
    border-bottom: 1px solid var(--gold-line);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.wk-header-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
/* 顶栏空间充足，完整显示横向 logo，不做裁切 */
.wk-header-brand > img {
    height: 34px; width: auto; max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
}
.wk-brand-text { display: flex; flex-direction: column; }
.wk-brand-name {
    font-family: var(--font-serif);
    font-size: 16px; font-weight: 700; line-height: 1.2;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.wk-brand-slogan { font-size: 11px; color: var(--text3); display: block; letter-spacing: .5px; }
.wk-footer-stats { margin-top: 8px; }

.wk-header-search { flex: 1; max-width: 420px; margin: 0 auto; }
.wk-header-search form { display: flex; align-items: center; position: relative; }
.wk-header-search input {
    width: 100%; height: 36px;
    border: 1px solid var(--gold-line); border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.45); color: var(--text);
    padding: 0 40px 0 14px; font-size: 13px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.wk-header-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.12), inset 0 0 12px rgba(201, 164, 92, 0.06);
}
.wk-header-search input::placeholder { color: var(--text3); }
.wk-header-search button {
    position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border: none; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #1a1208; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
    transition: filter .2s;
}
.wk-header-search button:hover { filter: brightness(1.15); }

.wk-header-right { display: flex; gap: 18px; flex-shrink: 0; }
.wk-header-right a { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 5px; }
.wk-header-right a:hover { color: var(--gold-bright); }
.wk-header-right a i { font-size: 14px; }

/* ==========================================================================
   主体包裹
   ========================================================================== */
.wk-wrap { margin-left: var(--sidebar-w); padding-top: var(--header-h); min-height: 100vh; }

/* ==========================================================================
   Hero 区
   ========================================================================== */
.wk-hero {
    position: relative;
    /*
     * 用 min-height 而非固定 height：窄屏下分类图标会换行，
     * 固定高度会把最后一行图标裁掉。
     * 这里整体加高，让背景图有更多纵向空间、主体不被压缩。
     */
    min-height: 470px;
    padding: 54px 0 48px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--gold-line);
}
.wk-hero-bg {
    position: absolute; inset: 0;
    /*
     * 背景图：原图 1666x944（约 16:9）。
     * cover + center 会在上下各裁掉一大截，导致画面主体（悟空/远山）顶部被切。
     * 改为 center top 锚定顶部，保证图片上方内容完整；同时整体略微放大让构图更饱满。
     */
    background: url('/templates/wukong/images/hero-bg.png') center top / cover no-repeat;
    /*
     * 背景图可见度：原来 brightness(0.42) 压得太暗，悟空形象几乎看不清。
     * 这里提到 0.78，同时把遮罩减淡，让画面主体显现出来；
     * 底部仍保留较深的渐隐，保证标题/搜索区文字可读。
     */
    filter: brightness(0.78) saturate(1.15) contrast(1.02);
}
.wk-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 62% 62% at 50% 42%, rgba(201, 164, 92, 0.10), transparent 72%),
        linear-gradient(180deg, rgba(10, 8, 7, 0.30) 0%, rgba(10, 8, 7, 0.52) 55%, rgba(10, 8, 7, 0.94) 100%);
}
.wk-hero-content { position: relative; z-index: 1; text-align: center; padding: 0 24px; width: 100%; }
.wk-hero-title { margin-bottom: 10px; }
.wk-hero-title h1 {
    font-family: var(--font-serif);
    font-size: 42px; font-weight: 800; letter-spacing: 4px;
    background: linear-gradient(180deg, #fff8e6 0%, var(--gold-bright) 45%, var(--gold-deep) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 18px rgba(201, 164, 92, 0.35));
    display: inline-flex; align-items: center; gap: 12px;
}
/* 印章式徽标 */
.wk-hero-title .wk-tag {
    font-family: var(--font-serif);
    font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--cinnabar-bright), var(--cinnabar));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    padding: 3px 7px;
    letter-spacing: 1px;
    vertical-align: super;
    box-shadow: 0 2px 10px rgba(163, 43, 43, 0.5);
    -webkit-text-fill-color: #fff;
}
.wk-hero-subtitle {
    font-size: 14px; color: var(--text2); margin-bottom: 22px;
    letter-spacing: 2px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.wk-hero-search { max-width: 500px; margin: 0 auto 18px; }
.wk-hero-search form {
    display: flex; align-items: center;
    background: rgba(8, 6, 5, 0.75);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(201, 164, 92, 0.04);
    transition: border-color .2s, box-shadow .2s;
}
.wk-hero-search form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(201, 164, 92, 0.14);
}
.wk-hero-search input {
    flex: 1; height: 44px; border: none; background: transparent;
    color: var(--text); padding: 0 16px; font-size: 14px; outline: none;
}
.wk-hero-search input::placeholder { color: var(--text3); }
.wk-hero-search button {
    width: 48px; height: 44px; border: none;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #1a1208; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    flex-shrink: 0; transition: filter .2s;
}
.wk-hero-search button:hover { filter: brightness(1.15); }

.wk-hero-tags { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.wk-hero-tags a {
    font-size: 12px; color: var(--text2);
    padding: 4px 12px; border-radius: 999px;
    background: rgba(201, 164, 92, 0.06);
    border: 1px solid var(--gold-line);
    display: inline-flex; align-items: center; gap: 5px;
    transition: all .2s;
}
.wk-hero-tags a:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
    background: var(--gold-dim);
}
.wk-hero-tags .wk-tag-icon { width: 14px; height: 14px; border-radius: 2px; }

/* ==========================================================================
   分类卡片（Hero 区内 · 黑神话·悟空风格）
   纹饰角标 + 金色光晕 + 悬停流光，取代原来的小圆形图标
   ========================================================================== */
.wk-cat-grid {
    display: grid;
    /* 4 列布局：8 个分类正好排成 4×2，视觉更整齐 */
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 728px;
    margin: 0 auto;
    padding: 0 4px;
}

.wk-cat-card {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    padding: 20px 12px 17px;
    min-height: 118px;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    /* 底：暗玉色渐变，模拟青铜/玉石牌位 */
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(201, 164, 92, 0.16), transparent 68%),
        linear-gradient(180deg, rgba(38, 30, 22, 0.92), rgba(16, 13, 10, 0.94));
    border: 1px solid var(--gold-line);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), inset 0 0 22px rgba(201, 164, 92, 0.05);
    /* 四角回纹角标 */
    background-image:
        linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
        linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
        linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold)),
        linear-gradient(var(--gold), var(--gold)), linear-gradient(var(--gold), var(--gold));
    background-size:
        16px 2px, 2px 16px, 16px 2px, 2px 16px,
        16px 2px, 2px 16px, 16px 2px, 2px 16px;
    background-position:
        left top, left top, right top, right top,
        left bottom, left bottom, right bottom, right bottom;
    background-repeat: no-repeat;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* 悬停流光扫过 */
.wk-cat-card-beam {
    position: absolute; top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(232, 200, 122, 0.22), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.wk-cat-card:hover .wk-cat-card-beam {
    opacity: 1;
    animation: wkBeam 1.1s ease-out;
}
@keyframes wkBeam {
    from { left: -60%; }
    to   { left: 120%; }
}

.wk-cat-card-icon {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 21px;
    color: var(--gold-bright);
    background: radial-gradient(circle at 34% 30%, rgba(201, 164, 92, 0.26), rgba(0, 0, 0, 0.35) 70%);
    border: 1px solid var(--gold-line);
    box-shadow: inset 0 0 14px rgba(201, 164, 92, 0.10);
    text-shadow: 0 0 14px rgba(201, 164, 92, 0.5);
    transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.wk-cat-card-name {
    font-family: var(--font-serif);
    font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
    color: var(--text);
    text-align: center; line-height: 1.3;
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .25s ease;
}

.wk-cat-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 26px rgba(201, 164, 92, 0.22), inset 0 0 26px rgba(201, 164, 92, 0.10);
}
.wk-cat-card:hover .wk-cat-card-icon {
    transform: scale(1.08);
    color: #fff6dd;
    box-shadow: 0 0 22px rgba(201, 164, 92, 0.5), inset 0 0 16px rgba(201, 164, 92, 0.18);
}
.wk-cat-card:hover .wk-cat-card-name { color: var(--gold-bright); }

/* 兼容旧类名（其它模板可能仍在用） */
.wk-cat-icons { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.wk-cat-icon-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text2); font-size: 12px; transition: all .25s;
}
.wk-cat-icon-item:hover { color: var(--gold-bright); transform: translateY(-3px); }
.wk-cat-icon {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: radial-gradient(circle at 32% 28%, rgba(201, 164, 92, 0.18), transparent 68%), rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gold-line);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 0 14px rgba(201, 164, 92, 0.06);
    transition: all .25s;
}
.wk-cat-icon-item:hover .wk-cat-icon {
    border-color: var(--gold);
    box-shadow: 0 0 26px rgba(201, 164, 92, 0.32), inset 0 0 18px rgba(201, 164, 92, 0.12);
}
.wk-cat-icon.blue, .wk-cat-icon.green, .wk-cat-icon.purple,
.wk-cat-icon.orange, .wk-cat-icon.pink, .wk-cat-icon.cyan,
.wk-cat-icon.red { color: var(--gold); }
.wk-cat-split { margin-left: 44px; }

/* ==========================================================================
   优秀站点推荐（置顶站点）
   重做：图标统一尺寸、VIP 改为印章角标、名称省略、悬停金色描边
   ========================================================================== */
.wk-hot-bar { max-width: 1120px; margin: 0 auto; padding: 22px 24px 0; }
.wk-hot-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px 20px;
}
.wk-hot-label {
    font-family: var(--font-serif);
    font-size: 14px; font-weight: 700; color: var(--gold);
    margin-bottom: 16px; padding-bottom: 12px;
    display: flex; align-items: center; gap: 8px; letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
/* 标题下金色毛笔短横 */
.wk-hot-label::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 46px; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.wk-hot-label > i { font-size: 14px; color: var(--cinnabar-bright); }
.wk-hot-buy {
    margin-left: auto;
    font-family: var(--font-sans); font-size: 11px; font-weight: 400;
    letter-spacing: 0; color: var(--text2);
    border: 1px solid var(--gold-line); border-radius: 999px;
    padding: 4px 13px; text-decoration: none;
    transition: all .2s; white-space: nowrap;
}
.wk-hot-buy:hover {
    color: var(--gold-bright); border-color: var(--gold);
    background: var(--gold-dim);
}

.wk-hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 16px 10px;
}
.wk-hot-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none; min-width: 0;
}

/* 图标位：方形玉牌，四角回纹 */
.wk-hot-icon {
    position: relative;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(201, 164, 92, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(40, 32, 24, 0.9), rgba(16, 13, 10, 0.92));
    border: 1px solid var(--gold-line);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.wk-hot-icon img {
    width: 32px; height: 32px; border-radius: 4px;
    object-fit: contain;
}
.wk-hot-item:hover .wk-hot-icon {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 20px rgba(201, 164, 92, 0.28);
}
/* VIP 印章：右上角小方印 */
.wk-hot-vip {
    position: absolute; top: -6px; right: -6px;
    font-family: var(--font-sans);
    font-size: 8px; font-weight: 700; line-height: 1;
    letter-spacing: .5px;
    color: #fff;
    padding: 3px 4px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--cinnabar-bright), var(--cinnabar));
    border: 1px solid rgba(255, 246, 221, 0.35);
    box-shadow: 0 2px 8px rgba(163, 43, 43, 0.6);
    z-index: 2;
}
.wk-hot-name {
    font-size: 11.5px; color: var(--text2); text-align: center;
    line-height: 1.35; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .2s;
}
.wk-hot-item:hover .wk-hot-name { color: var(--gold-bright); }
/* 兼容旧结构（名称直接是裸 span） */
.wk-hot-item > span:last-child:not(.wk-hot-name):not(.wk-hot-icon) {
    font-size: 11.5px; color: var(--text2); text-align: center;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==========================================================================
   主区 + 右侧栏
   ========================================================================== */
.wk-body { max-width: 1120px; margin: 0 auto; padding: 20px 24px 0; display: flex; gap: 18px; }
.wk-main { flex: 1; min-width: 0; }
.wk-aside-right {
    width: 268px; flex-shrink: 0;
    position: sticky; top: calc(var(--header-h) + 18px);
    max-height: calc(100vh - var(--header-h) - 36px);
    overflow-y: auto; scrollbar-width: thin;
}
.wk-aside-right::-webkit-scrollbar { width: 4px; }
.wk-aside-right::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 2px; }

/* ==========================================================================
   分类卡片网格
   ========================================================================== */
.wk-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.wk-ccard {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    /*
     * 关键：grid 子项默认 min-width:auto，会被超长站名撑开，
     * 导致整列宽度失控、内容溢出到右侧栏下方。必须显式归零。
     */
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.wk-ccard:hover {
    border-color: var(--border-hover);
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 164, 92, 0.08);
}
.wk-ccard-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
/* 标题下的一道金色短横，仿毛笔起笔 */
.wk-ccard-head::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 34px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.wk-ccard-head h3 {
    font-size: 13px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 7px; letter-spacing: .5px;
}
.wk-ccard-head h3 i { color: var(--gold); font-size: 14px; }
/* 分类图标色统一为金，保持黑金一致性 */
.wk-ccard-head h3 i.blue,
.wk-ccard-head h3 i.green,
.wk-ccard-head h3 i.purple,
.wk-ccard-head h3 i.orange,
.wk-ccard-head h3 i.pink,
.wk-ccard-head h3 i.cyan,
.wk-ccard-head h3 i.red { color: var(--gold); }
.wk-ccard-head a { font-size: 11px; color: var(--text3); }
.wk-ccard-head a:hover { color: var(--gold-bright); }
.wk-ccard-list { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.wk-ccard-link {
    display: flex; align-items: center; gap: 9px;
    font-size: 12.5px; color: var(--text2);
    padding: 6px 6px; text-decoration: none;
    border-radius: 3px;
    border-left: 2px solid transparent;
    min-width: 0;
    transition: color .15s, background .15s, border-color .15s, padding-left .15s;
}
.wk-ccard-link:hover {
    color: var(--gold-bright);
    background: linear-gradient(90deg, var(--gold-dim), transparent 85%);
    border-left-color: var(--gold);
    padding-left: 10px;
}
/* 站点图标：统一尺寸，加载失败时显示默认图标 */
.wk-ccard-fav {
    width: 18px; height: 18px; border-radius: 3px;
    flex-shrink: 0;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}
.wk-ccard-name {
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 兼容旧结构（裸文本 + 圆点） */
.wk-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold-deep); flex-shrink: 0;
    transition: background .15s, box-shadow .15s;
}
.wk-ccard-link:hover .wk-dot { background: var(--gold-bright); box-shadow: 0 0 6px var(--gold-glow); }

/* ==========================================================================
   右侧栏卡片
   ========================================================================== */
.wk-side-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}
.wk-side-card h4 {
    font-size: 13px; font-weight: 700; color: var(--text);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 7px;
    padding-bottom: 9px; border-bottom: 1px solid var(--border);
    position: relative; letter-spacing: .5px;
}
.wk-side-card h4::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
}
.wk-side-card h4 i { color: var(--gold); font-size: 13px; }

/* 天气 */
.wk-weather { display: flex; align-items: center; justify-content: space-between; }
.wk-weather-left .wk-weather-city { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.wk-weather-left .wk-weather-temp {
    font-family: var(--font-serif);
    font-size: 30px; font-weight: 700; color: var(--gold-bright); line-height: 1.1;
}
.wk-weather-left .wk-weather-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }
.wk-weather-right i { font-size: 36px; color: var(--gold); opacity: .85; }

/* 时钟 */
.wk-clock { text-align: center; }
.wk-clock-time {
    font-family: var(--font-serif);
    font-size: 30px; font-weight: 700; color: var(--gold-bright);
    font-variant-numeric: tabular-nums; letter-spacing: 2px;
    text-shadow: 0 0 18px rgba(201, 164, 92, 0.25);
}
.wk-clock-date { font-size: 12px; color: var(--text2); margin-top: 4px; letter-spacing: 1px; }

/* 快捷工具 */
.wk-tools-grid { display: flex; flex-direction: column; gap: 2px; }
.wk-tool-item {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px; color: var(--text2); padding: 6px 4px;
    border-radius: var(--radius);
    transition: color .15s, background .15s, padding-left .15s;
}
.wk-tool-item:hover { color: var(--gold-bright); background: var(--gold-dim); padding-left: 7px; }
.wk-tool-item i { font-size: 13px; color: var(--gold); width: 16px; text-align: center; }

/* 排行榜 */
.wk-rank-list { display: flex; flex-direction: column; gap: 7px; }
.wk-rank-item { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text2); padding: 3px 0; transition: color .15s; }
.wk-rank-item:hover { color: var(--gold-bright); }
.wk-rank-num {
    width: 20px; height: 20px; border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; flex-shrink: 0;
    font-family: var(--font-sans);
}
/* 前三名用金/朱砂渐变，其余用暗金描边 */
.wk-rank-num.top1 { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #1a1208; box-shadow: 0 0 10px var(--gold-glow); }
.wk-rank-num.top2 { background: linear-gradient(135deg, var(--cinnabar-bright), var(--cinnabar)); color: #fff; }
.wk-rank-num.top3 { background: linear-gradient(135deg, #8a6d34, #5a4520); color: var(--gold-bright); }
.wk-rank-num.top4 { background: rgba(201, 164, 92, 0.08); color: var(--text3); border: 1px solid var(--border); }

/* ==========================================================================
   排行榜页：列表行（rank-row / rank-txt 为模板原有类名，此前无对应样式）
   ========================================================================== */
.rank-row {
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    font-size: 13px;
    transition: background .2s, border-color .2s, padding-left .2s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover {
    background: linear-gradient(90deg, var(--gold-dim), transparent 80%);
    border-left-color: var(--gold);
    padding-left: 17px;
}
/* 名次图标略大，与站点图标对齐 */
.rank-row .wk-rank-num { width: 22px; height: 22px; font-size: 11px; }
.rank-row img { border: 1px solid var(--border); background: rgba(0, 0, 0, 0.35); }

.rank-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rank-txt > span:first-child {
    color: var(--text2); font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .2s;
}
.rank-row:hover .rank-txt > span:first-child { color: var(--gold-bright); }
.rank-txt > span:last-child { color: var(--text3); }
/* 右侧数值列 */
.rank-row > span:last-child {
    color: var(--text3); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.rank-row:hover > span:last-child { color: var(--gold); }

/* ==========================================================================
   统计条
   ========================================================================== */
.wk-stats { max-width: 1120px; margin: 0 auto; padding: 0 24px 18px; }
.wk-stats-inner {
    background:
        linear-gradient(135deg, rgba(201, 164, 92, 0.07), rgba(201, 164, 92, 0.02));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 30px;
    display: flex; align-items: center; justify-content: space-between;
}
.wk-stat-item { text-align: center; }
.wk-stat-num {
    font-family: var(--font-serif);
    font-size: 26px; font-weight: 700;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wk-stat-num small { font-size: 13px; font-weight: 400; }
.wk-stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; letter-spacing: 1px; }
.wk-stat-slogan { font-size: 13px; color: var(--text2); text-align: right; line-height: 1.7; }
.wk-stat-slogan strong { color: var(--gold-bright); }

/* ==========================================================================
   页脚
   ========================================================================== */
.wk-footer { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wk-footer-inner { border-top: 1px solid var(--border); padding: 20px 0 24px; text-align: center; }
.wk-footer-links { margin-bottom: 10px; }
.wk-footer-links a { font-size: 12px; color: var(--text2); padding: 0 9px; }
.wk-footer-links a:hover { color: var(--gold-bright); }
.wk-footer-links .wk-sep { color: var(--text3); font-size: 12px; }
.wk-footer-copyright { font-size: 12px; color: var(--text3); letter-spacing: .5px; }

/* ==========================================================================
   通用内容卡片
   ========================================================================== */
.wk-content-card {
    background-color: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}
.wk-ccard-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.wk-ccard-head h3 { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; }
.wk-ccard-head h3 i { color: var(--gold); }
.wk-ccard-head a { font-size: 12px; color: var(--text3); }
.wk-ccard-head a:hover { color: var(--gold-bright); }

/* ==========================================================================
   子页面容器 / 面包屑
   ========================================================================== */
.wk-page-wrap { max-width: 1120px; margin: 0 auto; padding: 22px 24px; }
.wk-breadcrumb {
    font-size: 12px; color: var(--text3); margin-bottom: 18px;
    line-height: 1.8;
}
.wk-breadcrumb a { color: var(--text2); }
.wk-breadcrumb a:hover { color: var(--gold-bright); }
/* 面包屑分隔符 */
.wk-breadcrumb .wk-bc-sep { color: var(--gold-deep); padding: 0 4px; }

/* ==========================================================================
   文章详情 / 通用正文排版（详情页与文章页共用）
   ========================================================================== */
.wk-article-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); position: relative; }
.wk-article-head::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.wk-article-head h1 {
    font-size: 24px; font-weight: 700; color: var(--text); line-height: 1.45;
    letter-spacing: 1px;
}
.wk-article-meta {
    font-size: 12px; color: var(--text3); margin-top: 12px;
    display: flex; gap: 18px; flex-wrap: wrap;
}
.wk-article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.wk-article-meta i { color: var(--gold); }

.wk-article-body { font-size: 14.5px; line-height: 1.9; color: var(--text2); }
.wk-article-body p { margin-bottom: 16px; }
.wk-article-body img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; border: 1px solid var(--border); }
.wk-article-body h2,
.wk-article-body h3 {
    color: var(--text); margin: 26px 0 12px;
    padding-left: 12px; position: relative;
}
.wk-article-body h2 { font-size: 19px; }
.wk-article-body h3 { font-size: 16px; }
/* 标题左侧金色竖条 */
.wk-article-body h2::before,
.wk-article-body h3::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    border-radius: 2px;
}
.wk-article-body a { color: var(--gold-bright); border-bottom: 1px solid var(--gold-line); }
.wk-article-body a:hover { border-bottom-color: var(--gold); }
.wk-article-body ul, .wk-article-body ol { margin: 12px 0 16px 22px; }
.wk-article-body li { margin-bottom: 6px; }
.wk-article-body code {
    background: rgba(201, 164, 92, 0.09); padding: 2px 6px; border-radius: 3px;
    font-size: 13px; color: var(--gold-bright);
    border: 1px solid var(--border);
}
.wk-article-body pre {
    background: rgba(0, 0, 0, 0.45); padding: 16px; border-radius: var(--radius);
    overflow-x: auto; margin: 16px 0; border: 1px solid var(--border);
    border-left: 3px solid var(--gold-deep);
}
.wk-article-body pre code { background: none; border: none; padding: 0; color: var(--text2); }
.wk-article-body blockquote {
    border-left: 3px solid var(--gold); padding: 10px 0 10px 16px;
    color: var(--text3); margin: 16px 0;
    background: linear-gradient(90deg, rgba(201, 164, 92, 0.06), transparent);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.wk-article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.wk-article-body th, .wk-article-body td { padding: 9px 13px; border: 1px solid var(--border); }
.wk-article-body th { background: rgba(201, 164, 92, 0.08); color: var(--gold-bright); font-family: var(--font-serif); }
.wk-article-body tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }

/* ==========================================================================
   站点详情页头部
   ========================================================================== */
.wk-site-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.wk-site-icon {
    width: 70px; height: 70px; border-radius: var(--radius);
    border: 1px solid var(--gold-line);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 16px rgba(201, 164, 92, 0.05);
}
.wk-site-icon img { width: 50px; height: 50px; border-radius: 4px; }
.wk-site-info { flex: 1; min-width: 0; }
.wk-site-info h1 {
    font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 6px;
    letter-spacing: 1px;
}
.wk-site-url a { font-size: 12px; color: var(--gold); word-break: break-all; }
.wk-site-url a:hover { color: var(--gold-bright); }

/* ==========================================================================
   分页
   ========================================================================== */
.wk-page { display: flex; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.wk-page a, .wk-page span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; border-radius: var(--radius);
    font-size: 12px; padding: 0 9px; text-decoration: none;
    border: 1px solid var(--border); color: var(--text2);
    background: var(--bg-card); transition: all .15s;
}
.wk-page a:hover {
    background: var(--gold-dim); color: var(--gold-bright);
    border-color: var(--gold);
}
.wk-page .current {
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    color: #1a1208; border-color: var(--gold); font-weight: 700;
}

/* ==========================================================================
   表单
   ========================================================================== */
.wk-input {
    width: 100%; height: 38px; border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.4); color: var(--text);
    padding: 0 13px; font-size: 13px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.wk-input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.12); }
.wk-input::placeholder { color: var(--text3); }
.wk-textarea {
    width: 100%; min-height: 88px; border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.4); color: var(--text);
    padding: 11px 13px; font-size: 13px; outline: none; resize: vertical;
    font-family: var(--font-sans);
    transition: border-color .2s, box-shadow .2s;
}
.wk-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.12); }
.wk-textarea::placeholder { color: var(--text3); }

/* ==========================================================================
   按钮
   ========================================================================== */
.wk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 36px; padding: 0 18px; border-radius: var(--radius);
    font-family: var(--font-serif);
    font-size: 13px; font-weight: 700; cursor: pointer;
    border: 1px solid transparent; text-decoration: none;
    transition: all .18s; white-space: nowrap; letter-spacing: 1px;
    position: relative;
}
.wk-btn-primary {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #1a1208; border-color: var(--gold);
    box-shadow: 0 3px 14px rgba(201, 164, 92, 0.25);
}
.wk-btn-primary:hover {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
    box-shadow: 0 5px 20px rgba(201, 164, 92, 0.4);
    transform: translateY(-1px);
}
.wk-btn-outline {
    background: rgba(201, 164, 92, 0.05);
    border: 1px solid var(--gold-line); color: var(--text2);
}
.wk-btn-outline:hover {
    border-color: var(--gold); color: var(--gold-bright);
    background: var(--gold-dim);
}

/* ==========================================================================
   浮动工具
   ========================================================================== */
.wk-float-tools { position: fixed; right: 18px; bottom: 26px; display: flex; flex-direction: column; gap: 9px; z-index: 90; }
.wk-float-tools a {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--bg-card-solid); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text2); font-size: 16px; transition: all .2s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.wk-float-tools a:hover {
    color: var(--gold-bright); border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 6px 22px rgba(201, 164, 92, 0.25);
}
.wk-back-top { display: none; }

/* ==========================================================================
   排行标签页
   ========================================================================== */
.wk-rank-tabs { display: flex; gap: 22px; flex-wrap: wrap; }
.wk-rank-tab {
    font-family: var(--font-serif);
    font-size: 13px; padding: 5px 0; text-decoration: none;
    color: var(--text3); border-bottom: 2px solid transparent;
    transition: all .2s; letter-spacing: .5px;
}
.wk-rank-tab:hover { color: var(--gold-bright); }
.wk-rank-tab.active { color: var(--gold-bright); font-weight: 700; border-bottom-color: var(--gold); }

/* ==========================================================================
   统一分区标题（详情页 / 文章页 / 列表页共用）
   ========================================================================== */
.wk-section-head {
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 16px; padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.wk-section-head::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 46px; height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.wk-section-head h3 {
    font-size: 15px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px; letter-spacing: 1px;
}
.wk-section-head h3 i { color: var(--gold); font-size: 14px; }
.wk-section-head .wk-section-extra { margin-left: auto; font-size: 12px; color: var(--text3); }
.wk-section-head .wk-section-extra:hover { color: var(--gold-bright); }

/* ==========================================================================
   文章列表（文章列表页 / 侧栏列表共用）
   ========================================================================== */
.wk-al-list { display: flex; flex-direction: column; }
.wk-al-item {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    transition: background .2s, border-color .2s, padding-left .2s;
    text-decoration: none;
}
.wk-al-item:last-child { border-bottom: none; }
.wk-al-item:hover {
    background: linear-gradient(90deg, var(--gold-dim), transparent 80%);
    border-left-color: var(--gold);
    padding-left: 18px;
}
.wk-al-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold-deep); flex-shrink: 0;
    transition: background .2s, box-shadow .2s;
}
.wk-al-item:hover .wk-al-dot { background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-glow); }
.wk-al-title {
    flex: 1; min-width: 0;
    font-size: 13.5px; color: var(--text2); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .2s;
}
.wk-al-item:hover .wk-al-title { color: var(--gold-bright); }
.wk-al-date { font-size: 11px; color: var(--text3); flex-shrink: 0; font-variant-numeric: tabular-nums; }
/* 文章列表页：双栏底部小卡 */
.wk-al-cols { display: flex; gap: 16px; margin-top: 18px; }
.wk-al-cols > .wk-content-card { flex: 1; min-width: 0; }

/* ==========================================================================
   商品详情（商城）
   ========================================================================== */
.wk-product-title {
    font-size: 24px; font-weight: 700; color: var(--text);
    margin-bottom: 12px; letter-spacing: 1px;
}
.wk-product-price {
    font-family: var(--font-serif);
    font-size: 32px; font-weight: 700; margin-bottom: 14px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.wk-product-meta {
    display: flex; gap: 18px; flex-wrap: wrap;
    font-size: 12px; color: var(--text3); margin-bottom: 18px;
}
.wk-product-meta span { display: inline-flex; align-items: center; gap: 5px; }
.wk-product-meta i { color: var(--gold); }
.wk-product-body { margin-top: 6px; }
/* 购买操作条 */
.wk-buy-bar {
    margin-top: 20px; padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.wk-buy-note {
    width: 100%; font-size: 13px; color: var(--gold-bright);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.wk-buy-bar select.wk-input { width: auto; cursor: pointer; }

/* ==========================================================================
   评论列表
   ========================================================================== */
.wk-comment {
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.wk-comment:last-child { border-bottom: none; }
.wk-comment-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap;
}
.wk-comment-user {
    font-size: 13px; font-weight: 700; color: var(--gold);
    font-family: var(--font-serif); letter-spacing: .5px;
}
.wk-comment-stars { font-size: 11px; color: var(--gold-bright); letter-spacing: 1px; }
.wk-comment-date { font-size: 11px; color: var(--text3); margin-left: auto; }
.wk-comment-body { font-size: 13.5px; color: var(--text2); line-height: 1.75; }

/* 评论表单 */
.wk-comment-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.wk-comment-form .wk-textarea { width: 100%; }
.wk-comment-form select.wk-input { width: auto; cursor: pointer; }

/* ==========================================================================
   上一篇 / 下一篇
   ========================================================================== */
.wk-post-nav { display: flex; gap: 14px; margin-top: 20px; }
.wk-post-nav a {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 13px; color: var(--text2);
    transition: all .2s;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wk-post-nav a:hover {
    border-color: var(--gold); color: var(--gold-bright);
    background-color: var(--bg-card-hover);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.wk-post-nav a i { color: var(--gold); flex-shrink: 0; }
.wk-post-nav .wk-pn-prev { justify-content: flex-start; }
.wk-post-nav .wk-pn-next { justify-content: flex-end; text-align: right; }
.wk-post-nav .wk-pn-spacer { flex: 1; }

/* ==========================================================================
   相关站点 / 标签胶囊
   ========================================================================== */
.wk-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wk-rel-item {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 12px; color: var(--text2);
    transition: all .2s; min-width: 0;
}
.wk-rel-item:hover {
    border-color: var(--gold); color: var(--gold-bright);
    background: var(--gold-dim);
}
.wk-rel-item img { width: 20px; height: 20px; border-radius: 3px; flex-shrink: 0; }
.wk-rel-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 胶囊标签组（热门产品等） */
.wk-chip-group { display: flex; gap: 10px; flex-wrap: wrap; }
.wk-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    font-size: 12px; color: var(--text2);
    background: rgba(201, 164, 92, 0.05);
    border: 1px solid var(--gold-line);
    transition: all .2s; text-decoration: none;
}
.wk-chip:hover {
    color: var(--gold-bright); border-color: var(--gold);
    background: var(--gold-dim); transform: translateY(-1px);
}

/* ==========================================================================
   空状态
   ========================================================================== */
.wk-empty {
    text-align: center; color: var(--text3);
    padding: 48px 0; font-size: 13px; letter-spacing: 1px;
}
.wk-empty i { display: block; font-size: 30px; margin-bottom: 12px; color: var(--gold-deep); opacity: .6; }

/* ==========================================================================
   排行榜页：主列表 + 右侧栏两栏布局
   （原来是写死 width:280px 的行内样式，窄屏不换行会导致横向滚动）
   ========================================================================== */
.wk-rank-layout { display: flex; gap: 16px; align-items: flex-start; }
.wk-rank-layout > .wk-rank-main { flex: 1; min-width: 0; }
.wk-rank-layout > .wk-rank-side { width: 280px; flex-shrink: 0; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
    .wk-card-grid { grid-template-columns: repeat(3, 1fr); }
    .wk-aside-right { width: 230px; }
}
@media (max-width: 900px) {
    .wk-card-grid { grid-template-columns: repeat(2, 1fr); }
    .wk-aside-right { display: none; }
    .wk-header-right { display: none; }
    .wk-cat-icons { gap: 18px; }
    .wk-cat-split { margin-left: 0; }
    .wk-article-head h1 { font-size: 20px; }
    .wk-rel-grid { grid-template-columns: repeat(2, 1fr); }
    .wk-al-cols { flex-direction: column; }
    /* 排行榜两栏在窄屏改为上下堆叠，避免横向滚动 */
    .wk-rank-layout { flex-direction: column; }
    .wk-rank-layout > .wk-rank-side { width: 100%; }
}
@media (max-width: 600px) {
    /* 移动端：侧栏默认收起，展开时作为抽屉浮层（不推挤内容） */
    .wk-sidebar { width: 0; padding: 0; border-right: none; }
    .wk-wrap { margin-left: 0; }
    .wk-header { left: 0; padding: 0 14px 0 54px; }

    /* 开关固定到左上角，脱离侧栏宽度限制（fixed 不受 overflow 裁剪影响） */
    .wk-sidebar-toggle {
        position: fixed; left: 9px; top: 13px; z-index: 102;
        width: 36px; height: 32px; margin: 0;
        background: rgba(12, 10, 8, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    body.wk-sidebar-open .wk-sidebar {
        width: 190px;
        padding: 14px 12px 18px;
        border-right: 1px solid var(--gold-line);
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.7);
    }
    body.wk-sidebar-open .wk-sidebar-toggle {
        position: static; width: 100%; margin-bottom: 12px;
    }
    /* 抽屉态不推开内容 */
    body.wk-sidebar-open .wk-wrap { margin-left: 0; }
    body.wk-sidebar-open .wk-header { left: 0; }

    .wk-card-grid { grid-template-columns: 1fr; }
    .wk-hero { min-height: 300px; padding: 30px 0 28px; }
    .wk-hero-title h1 { font-size: 26px; letter-spacing: 2px; }
    .wk-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wk-cat-card { min-height: 100px; padding: 16px 8px 14px; }
    .wk-cat-card-icon { width: 40px; height: 40px; font-size: 18px; }
    .wk-cat-card-name { font-size: 13px; letter-spacing: 1px; }
    .wk-cat-icons { gap: 12px; }
    .wk-hot-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 14px 8px; }
    .wk-hot-icon { width: 48px; height: 48px; }
    .wk-hot-icon img { width: 28px; height: 28px; }
    .wk-stats-inner { flex-wrap: wrap; gap: 18px; justify-content: center; padding: 18px; }
    .wk-stat-slogan { width: 100%; text-align: center; }
    .wk-site-head { flex-direction: column; align-items: flex-start; }
    .wk-site-head .wk-btn { margin-left: 0 !important; width: 100%; }
    .wk-article-body { font-size: 14px; }
    .wk-rel-grid { grid-template-columns: 1fr; }
    .wk-post-nav { flex-direction: column; }
    .wk-post-nav a { white-space: normal; }
    .wk-al-item { padding: 12px 4px; }
    .wk-al-item:hover { padding-left: 8px; }
    .wk-product-price { font-size: 26px; }
    .wk-product-title { font-size: 19px; }
    .wk-buy-bar { flex-direction: column; align-items: stretch; }
    .wk-buy-bar .wk-btn,
    .wk-buy-bar form { width: 100%; }
    .wk-buy-bar form { flex-direction: column; }
    .wk-buy-bar select.wk-input { width: 100%; }
}

/* ==========================================================================
   减少动态效果偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
