/**
 * 6KE 整合样式文件
 * 包含所有 6KE 自定义功能的 CSS
 * Author: 6KE Team
 * Version: 1.0.0
 * 
 * 包含的功能：
 * - 帖子侧边栏切换
 * - 网站背景样式
 * - 身份认证深色模式适配
 * - 用户统计Tab
 * - 论坛按钮位置控制
 * - 主题切换下拉菜单
 * - 面包屑样式
 */

/* ========================================================================
   1. 帖子侧边栏切换功能
   ======================================================================== */

/* 论坛帖子页面容器 */
#forum .container {
    position: relative;
}

/* 侧边栏默认样式 */
#forum .sidebar {
    transition: all 0.3s ease;
}

/* 内容区域默认样式 */
#forum .content-wrap {
    transition: all 0.3s ease;
}

/* 当侧边栏隐藏时（支持html和body标签，防止闪烁）
   ⚠️ 重要：只在论坛帖子单页生效
   - html.ke6-posts-page：标记帖子页面（由 inline JS 添加）
   - body.single-forum_post：WordPress 自动添加的页面类型 */

/* 侧边栏隐藏 - 防闪烁（需要 ke6-posts-page 标记）*/
html.ke6-posts-page.ke6-sidebar-hidden #forum .sidebar {
    display: none !important;
}

/* 侧边栏隐藏 - 正常状态（限定在帖子页面） */
body.single-forum_post.ke6-sidebar-hidden #forum .sidebar {
    display: none !important;
}

/* 内容区域扩展 - 防闪烁 */
html.ke6-posts-page.ke6-sidebar-hidden #forum .content-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
}

/* 内容区域扩展 - 正常状态（限定在帖子页面） */
body.single-forum_post.ke6-sidebar-hidden #forum .content-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
}

/* 内容布局调整 - 防闪烁 */
html.ke6-posts-page.ke6-sidebar-hidden #forum .content-layout {
    max-width: 1200px;
    margin: 0 auto;
}

/* 内容布局调整 - 正常状态（限定在帖子页面） */
body.single-forum_post.ke6-sidebar-hidden #forum .content-layout {
    max-width: 1200px;
    margin: 0 auto;
}

/* 内联按钮样式 - 与其他item保持一致 */
.ke6-sidebar-toggle-inline {
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
}

.ke6-sidebar-toggle-inline:hover {
    opacity: 0.8;
}

.ke6-sidebar-toggle-inline i {
    margin-right: 4px;
}

.ke6-sidebar-toggle-inline .ke6-sidebar-toggle-text {
    display: inline;
}

/* 移动端隐藏文字，只显示图标 */
@media (max-width: 768px) {
    .ke6-sidebar-toggle-inline .ke6-sidebar-toggle-text {
        display: none;
    }
}

/* 禁用页面加载时的过渡（避免初始闪烁动画）
   ⚠️ 只在帖子页面生效（需要 ke6-posts-page 标记） */
html.ke6-posts-page.ke6-sidebar-preload *,
html.ke6-posts-page.ke6-sidebar-preload *::before,
html.ke6-posts-page.ke6-sidebar-preload *::after {
    transition: none !important;
    animation: none !important;
}

/* 启用动画时的过渡效果（仅在用户交互后）
   - html.ke6-posts-page：防闪烁期间（有页面标记）
   - body.single-forum_post：正常状态（WordPress 页面类型） */
html.ke6-posts-page.ke6-sidebar-animation-enabled #forum .sidebar,
html.ke6-posts-page.ke6-sidebar-animation-enabled #forum .content-wrap,
html.ke6-posts-page.ke6-sidebar-animation-enabled #forum .content-layout {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.single-forum_post.ke6-sidebar-animation-enabled #forum .sidebar,
body.single-forum_post.ke6-sidebar-animation-enabled #forum .content-wrap,
body.single-forum_post.ke6-sidebar-animation-enabled #forum .content-layout {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 侧边栏淡入淡出效果 */
html.ke6-posts-page.ke6-sidebar-animation-enabled.ke6-sidebar-hidden #forum .sidebar {
    opacity: 0;
    visibility: hidden;
}

body.single-forum_post.ke6-sidebar-animation-enabled.ke6-sidebar-hidden #forum .sidebar {
    opacity: 0;
    visibility: hidden;
}

html.ke6-posts-page.ke6-sidebar-animation-enabled #forum .sidebar {
    opacity: 1;
    visibility: visible;
}

body.single-forum_post.ke6-sidebar-animation-enabled #forum .sidebar {
    opacity: 1;
    visibility: visible;
}

/* 打印时隐藏切换按钮 */
@media print {
    .ke6-sidebar-toggle-inline {
        display: none !important;
    }
}

/* 确保与主题其他元素不冲突 */
.ke6-sidebar-toggle-inline * {
    box-sizing: border-box;
}


/* ========================================================================
   2. 网站背景样式
   ======================================================================== */

/* 基础设置 */
body.sixke-bg-enabled {
    position: relative;
    overflow-x: hidden;
}

body.sixke-bg-enabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.sixke-bg-fixed::before {
    position: fixed;
}

/* 渐变蓝 - 清新海洋风 */
body.sixke-bg-gradient-blue::before {
    background: linear-gradient(135deg, 
        rgba(238, 255, 247, 0.36) 0%, 
        rgba(196, 215, 244, 1) 30%, 
        rgba(189, 233, 255, 0.21) 60%, 
        rgba(178, 206, 249, 1) 100%
    );
}

.dark-theme.sixke-bg-gradient-blue::before {
    background: linear-gradient(135deg, 
        rgba(15, 30, 45, 0.6) 0%, 
        rgba(25, 45, 70, 0.8) 30%, 
        rgba(20, 40, 65, 0.6) 60%, 
        rgba(30, 50, 75, 0.8) 100%
    );
}

/* 渐变紫 - 神秘梦幻风 */
body.sixke-bg-gradient-purple::before {
    background: linear-gradient(135deg, 
        rgba(238, 226, 255, 0.4) 0%, 
        rgba(180, 140, 230, 0.7) 30%, 
        rgba(200, 170, 240, 0.5) 60%, 
        rgba(160, 120, 220, 0.8) 100%
    );
}

.dark-theme.sixke-bg-gradient-purple::before {
    background: linear-gradient(135deg, 
        rgba(40, 25, 60, 0.6) 0%, 
        rgba(60, 35, 85, 0.8) 30%, 
        rgba(50, 30, 75, 0.6) 60%, 
        rgba(70, 40, 95, 0.8) 100%
    );
}

/* 渐变日落 - 温暖浪漫风 */
body.sixke-bg-gradient-sunset::before {
    background: linear-gradient(135deg, 
        rgba(255, 240, 220, 0.4) 0%, 
        rgba(255, 180, 120, 0.6) 25%, 
        rgba(255, 130, 90, 0.7) 50%, 
        rgba(230, 100, 140, 0.6) 75%, 
        rgba(180, 80, 180, 0.5) 100%
    );
}

.dark-theme.sixke-bg-gradient-sunset::before {
    background: linear-gradient(135deg, 
        rgba(50, 30, 20, 0.6) 0%, 
        rgba(70, 35, 25, 0.7) 25%, 
        rgba(80, 30, 30, 0.8) 50%, 
        rgba(60, 25, 45, 0.7) 75%, 
        rgba(45, 20, 50, 0.6) 100%
    );
}

/* 渐变绿 - 自然清新风 */
body.sixke-bg-gradient-green::before {
    background: linear-gradient(135deg, 
        rgba(230, 255, 240, 0.4) 0%, 
        rgba(170, 230, 180, 0.6) 30%, 
        rgba(140, 220, 170, 0.7) 60%, 
        rgba(120, 200, 160, 0.8) 100%
    );
}

.dark-theme.sixke-bg-gradient-green::before {
    background: linear-gradient(135deg, 
        rgba(15, 40, 25, 0.6) 0%, 
        rgba(20, 55, 35, 0.7) 30%, 
        rgba(15, 50, 30, 0.8) 60%, 
        rgba(25, 60, 40, 0.7) 100%
    );
}

/* 渐变粉 - 甜美可爱风 */
body.sixke-bg-gradient-pink::before {
    background: linear-gradient(135deg, 
        rgba(255, 240, 250, 0.4) 0%, 
        rgba(255, 200, 230, 0.6) 30%, 
        rgba(255, 180, 220, 0.7) 60%, 
        rgba(240, 160, 210, 0.8) 100%
    );
}

.dark-theme.sixke-bg-gradient-pink::before {
    background: linear-gradient(135deg, 
        rgba(50, 30, 45, 0.6) 0%, 
        rgba(60, 35, 55, 0.7) 30%, 
        rgba(55, 30, 50, 0.8) 60%, 
        rgba(65, 35, 60, 0.7) 100%
    );
}

/* 圆点图案 - 简约现代风 */
body.sixke-bg-dots-pattern::before {
    background-color: rgba(245, 246, 247, 0.8);
    background-image: radial-gradient(circle, rgba(100, 120, 180, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.dark-theme.sixke-bg-dots-pattern::before {
    background-color: rgba(30, 32, 35, 0.8);
    background-image: radial-gradient(circle, rgba(120, 140, 180, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* 网格图案 - 科技专业风 */
body.sixke-bg-grid-pattern::before {
    background-color: rgba(248, 249, 250, 0.8);
    background-image: 
        linear-gradient(rgba(100, 120, 180, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 120, 180, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.dark-theme.sixke-bg-grid-pattern::before {
    background-color: rgba(28, 30, 33, 0.8);
    background-image: 
        linear-gradient(rgba(120, 140, 180, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 140, 180, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 波浪图案 - 动感流畅风 */
body.sixke-bg-wave-pattern::before {
    background-color: rgba(250, 251, 252, 0.8);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(100, 150, 200, 0.1) 35px,
        rgba(100, 150, 200, 0.1) 70px
    );
}

.dark-theme.sixke-bg-wave-pattern::before {
    background-color: rgba(30, 32, 35, 0.8);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(120, 150, 180, 0.15) 35px,
        rgba(120, 150, 180, 0.15) 70px
    );
}

/* 斜线图案 - 活力动感风 */
body.sixke-bg-diagonal-lines::before {
    background-color: rgba(248, 250, 252, 0.8);
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(100, 150, 220, 0.08) 20px,
        rgba(100, 150, 220, 0.08) 40px
    );
}

.dark-theme.sixke-bg-diagonal-lines::before {
    background-color: rgba(28, 30, 33, 0.8);
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(120, 150, 180, 0.12) 20px,
        rgba(120, 150, 180, 0.12) 40px
    );
}

/* 几何图案 - 现代艺术风 */
body.sixke-bg-geometric::before {
    background-color: rgba(250, 251, 252, 0.8);
    background-image: 
        linear-gradient(30deg, rgba(100, 150, 220, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(100, 150, 220, 0.1) 87.5%, rgba(100, 150, 220, 0.1)),
        linear-gradient(150deg, rgba(100, 150, 220, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(100, 150, 220, 0.1) 87.5%, rgba(100, 150, 220, 0.1)),
        linear-gradient(30deg, rgba(100, 150, 220, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(100, 150, 220, 0.1) 87.5%, rgba(100, 150, 220, 0.1)),
        linear-gradient(150deg, rgba(100, 150, 220, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(100, 150, 220, 0.1) 87.5%, rgba(100, 150, 220, 0.1));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

.dark-theme.sixke-bg-geometric::before {
    background-color: rgba(30, 32, 35, 0.8);
    background-image: 
        linear-gradient(30deg, rgba(120, 150, 180, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(120, 150, 180, 0.15) 87.5%, rgba(120, 150, 180, 0.15)),
        linear-gradient(150deg, rgba(120, 150, 180, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(120, 150, 180, 0.15) 87.5%, rgba(120, 150, 180, 0.15)),
        linear-gradient(30deg, rgba(120, 150, 180, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(120, 150, 180, 0.15) 87.5%, rgba(120, 150, 180, 0.15)),
        linear-gradient(150deg, rgba(120, 150, 180, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(120, 150, 180, 0.15) 87.5%, rgba(120, 150, 180, 0.15));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* 网格渐变 - 炫彩科技风 */
body.sixke-bg-mesh-gradient::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 150, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 100, 150, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(150, 100, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(100, 255, 200, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(240, 245, 255, 0.8) 0%, rgba(250, 240, 255, 0.8) 100%);
}

.dark-theme.sixke-bg-mesh-gradient::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(50, 75, 120, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 50, 75, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(75, 50, 120, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(50, 120, 100, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(25, 28, 32, 0.8) 0%, rgba(30, 25, 35, 0.8) 100%);
}

/* 气泡背景 - 轻盈灵动风 */
body.sixke-bg-bubble::before {
    background: 
        radial-gradient(circle at 15% 15%, rgba(100, 150, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 150, 180, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 25% 70%, rgba(150, 255, 200, 0.13) 0%, transparent 28%),
        radial-gradient(circle at 75% 80%, rgba(255, 200, 100, 0.11) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(180, 150, 255, 0.14) 0%, transparent 35%),
        linear-gradient(135deg, rgba(245, 248, 255, 0.9) 0%, rgba(255, 245, 250, 0.9) 100%);
}

.dark-theme.sixke-bg-bubble::before {
    background: 
        radial-gradient(circle at 15% 15%, rgba(50, 75, 120, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(120, 75, 90, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 25% 70%, rgba(75, 120, 100, 0.19) 0%, transparent 28%),
        radial-gradient(circle at 75% 80%, rgba(120, 100, 50, 0.17) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(90, 75, 120, 0.2) 0%, transparent 35%),
        linear-gradient(135deg, rgba(28, 30, 35, 0.9) 0%, rgba(32, 28, 33, 0.9) 100%);
}

/* 响应式优化 - 移动端 */
@media (max-width: 768px) {
    body.sixke-bg-dots-pattern::before {
        background-size: 20px 20px;
    }
    
    body.sixke-bg-grid-pattern::before {
        background-size: 30px 30px;
    }
    
    body.sixke-bg-geometric::before {
        background-size: 60px 105px;
        background-position: 0 0, 0 0, 30px 52.5px, 30px 52.5px;
    }
    
    body.sixke-bg-fixed::before {
        position: absolute;
    }
}

/* 性能优化 */
body.sixke-bg-enabled::before {
    will-change: opacity;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 打印样式优化 */
@media print {
    body.sixke-bg-enabled::before {
        display: none;
    }
}


/* ========================================================================
   3. 身份认证深色模式适配
   ======================================================================== */

/* 浅色模式 */
body:not(.dark-theme) .user-auth-card-name,
body:not(.dark-theme) .user-auth-card-desc,
body:not(.dark-theme) .user-auth-card-time {
    color: inherit;
}

/* 深色模式 */
body.dark-theme .user-auth-card-name {
    color: #e5eef7 !important;
}

body.dark-theme .user-auth-card-desc {
    color: #9ca3af !important;
}

body.dark-theme .user-auth-card-time {
    color: #6b7280 !important;
}

/* 用户中心身份认证页面 */
body.dark-theme .user-auth-info h3 {
    color: #e5eef7 !important;
}

body.dark-theme .user-auth-info p {
    color: #9ca3af !important;
}

body.dark-theme .user-auth-info .muted-2-color {
    color: #9ca3af !important;
}

body.dark-theme .user-auth-info .muted-3-color {
    color: #6b7280 !important;
}


/* ========================================================================
   4. 用户统计Tab样式
   ======================================================================== */

/* Tab导航容器样式重置 */
.sixke-user-stats-tabs .new-scroll {
    margin-bottom: 12px !important;
}

.sixke-user-stats-tabs .sixke-stats-nav {
    display: flex !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.sixke-user-stats-tabs .sixke-stats-nav .scroll-li {
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tab链接样式 - 无背景无图标简洁风格 */
.sixke-user-stats-tabs .tab-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 8px 10px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #666 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100% !important;
}

/* 深色模式 */
.dark-theme .sixke-user-stats-tabs .tab-link {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Tab文字 */
.sixke-user-stats-tabs .tab-link .tab-text {
    flex-shrink: 0 !important;
    font-size: 12px !important;
}

/* Tab统计数字 */
.sixke-user-stats-tabs .tab-link .tab-count {
    color: #1890ff !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
}

.dark-theme .sixke-user-stats-tabs .tab-link .tab-count {
    color: #40a9ff !important;
}

/* 禁用所有hover效果 */
.sixke-user-stats-tabs .tab-nav-theme li:hover,
.sixke-user-stats-tabs .tab-link:hover {
    background: transparent !important;
    color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

.dark-theme .sixke-user-stats-tabs .tab-nav-theme li:hover,
.dark-theme .sixke-user-stats-tabs .tab-link:hover {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 禁用active效果 */
.sixke-user-stats-tabs .tab-nav-theme li.active .tab-link,
.sixke-user-stats-tabs .tab-nav-theme .scroll-li.active .tab-link {
    background: transparent !important;
    color: #666 !important;
    border: none !important;
    border-bottom: none !important;
    font-weight: normal !important;
}

.dark-theme .sixke-user-stats-tabs .tab-nav-theme li.active .tab-link,
.dark-theme .sixke-user-stats-tabs .tab-nav-theme .scroll-li.active .tab-link {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 响应式优化 - 移动端更精简 */
@media (max-width: 768px) {
    .sixke-user-stats-tabs .sixke-stats-nav {
        gap: 6px !important;
    }
    
    .sixke-user-stats-tabs .tab-link {
        padding: 7px 6px !important;
        font-size: 11px !important;
        gap: 2px !important;
    }
    
    .sixke-user-stats-tabs .tab-link .tab-text {
        font-size: 11px !important;
    }
    
    .sixke-user-stats-tabs .tab-link .tab-count {
        font-size: 10px !important;
    }
}

/* 更小屏幕优化 */
@media (max-width: 480px) {
    .sixke-user-stats-tabs .sixke-stats-nav {
        gap: 5px !important;
    }
    
    .sixke-user-stats-tabs .tab-link {
        padding: 6px 5px !important;
    }
}

/* 加载中样式 */
.sixke-stats-loading {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sixke-stats-loading i {
    font-size: 18px;
    color: #1890ff;
}

.dark-theme .sixke-stats-loading i {
    color: #40a9ff;
}

.sixke-stats-loading span {
    font-size: 14px;
}


/* ========================================================================
   5. 论坛按钮位置控制
   ======================================================================== */

/* 默认左侧显示 */
.single-fixed-btns {
    left: 0;
    right: auto;
}

/* 右侧显示样式 - 按钮定位到内容区域右侧 */
body.ke6-forum-buttons-right .single-fixed-btns,
body.ke6-forum-buttons-right .fixed-wrap-nav.single-fixed-btns,
body.ke6-forum-buttons-right div.single-fixed-btns,
body.ke6-forum-buttons-right .container .single-fixed-btns,
body.ke6-forum-buttons-right .single-fixed-btns.affix,
body.ke6-forum-buttons-right .single-fixed-btns.affix-top,
body.ke6-forum-buttons-right .single-fixed-btns.affix-bottom,
body.ke6-forum-buttons-right .fixed-wrap-nav.single-fixed-btns.affix {
    left: auto !important;
    right: calc((100vw - var(--mian-max-width, 1200px)) / 2) !important;
}

/* 小屏幕下，按钮贴边 */
@media (max-width: 1200px) {
    body.ke6-forum-buttons-right .single-fixed-btns,
    body.ke6-forum-buttons-right .fixed-wrap-nav.single-fixed-btns,
    body.ke6-forum-buttons-right .single-fixed-btns.affix,
    body.ke6-forum-buttons-right .fixed-wrap-nav.single-fixed-btns.affix {
        right: 0 !important;
    }
}

/* 右侧显示 - 调整主内容布局 */
body.ke6-forum-buttons-right .fixed-wrap>.fixed-wrap-nav.single-fixed-btns+.fixed-wrap-content {
    margin-left: 0 !important;
    margin-right: calc(var(--fixed-width) + 15px) !important;
}

/* 确保按钮在右侧时，容器也正确对齐 */
body.ke6-forum-buttons-right .fixed-wrap-nav.single-fixed-btns,
body.ke6-forum-buttons-right .fixed-wrap-nav.single-fixed-btns.affix {
    transform-origin: right center !important;
}

/* 当固定按钮到达底部时，使用绝对定位，停止跟随 */
.single-fixed-btns.affix-bottom,
.fixed-wrap-nav.single-fixed-btns.affix-bottom {
    position: absolute !important;
}

/* 右侧按钮到达底部时的定位 */
body.ke6-forum-buttons-right .single-fixed-btns.affix-bottom,
body.ke6-forum-buttons-right .fixed-wrap-nav.single-fixed-btns.affix-bottom {
    position: absolute !important;
    bottom: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 移动端隐藏 */
@media (max-width: 768px) {
    .single-fixed-btns {
        display: none !important;
    }
}


/* ========================================================================
   6. 主题切换下拉菜单
   ======================================================================== */

/* 主题切换下拉容器 */
.theme-toggle-dropdown {
    position: relative;
    display: inline-block;
}

/* 主题切换按钮 - 只显示图标 */
.theme-toggle-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.theme-toggle-dropdown-btn .theme-icon {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1;
}

.theme-toggle-dropdown-btn:hover {
    opacity: 0.8;
}

/* 下拉菜单容器 */
.theme-mode-menu {
    min-width: 140px;
    padding: 4px 0;
    margin-top: 6px;
    background: var(--body-bg-color, #fff);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

/* 深色主题下的菜单样式 */
.dark-theme .theme-mode-menu {
    background: var(--body-bg-color, #1a1a1a);
    border-color: var(--border-color, #333);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 主题模式选项 */
.theme-mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    border-radius: 4px;
}

.theme-mode-option:hover {
    background: var(--main-bg-color, #f5f5f5);
}

.dark-theme .theme-mode-option:hover {
    background: var(--main-bg-color, #252525);
}

/* 选中状态 */
.theme-mode-option.active {
    background: var(--theme-color-light, rgba(33, 150, 243, 0.1));
}

.dark-theme .theme-mode-option.active {
    background: var(--theme-color-light, rgba(33, 150, 243, 0.2));
}

/* 模式图标 */
.theme-mode-option .mode-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-bg-color, #f5f5f5);
    border-radius: 4px;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dark-theme .theme-mode-option .mode-icon {
    background: var(--main-bg-color, #252525);
}

.theme-mode-option:hover .mode-icon {
    transform: scale(1.05);
}

/* 图标颜色 */
.theme-mode-option[data-mode="white-theme"] .mode-icon {
    color: #FFA500;
}

.theme-mode-option[data-mode="dark-theme"] .mode-icon {
    color: #4A5568;
}

.theme-mode-option[data-mode="auto-theme"] .mode-icon {
    color: #2196F3;
}

/* 模式名称 */
.theme-mode-option .mode-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color, #333);
    white-space: nowrap;
}

.dark-theme .theme-mode-option .mode-name {
    color: var(--text-color, #e5e5e5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .theme-mode-menu {
        min-width: 130px;
    }
    
    .theme-mode-option {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .theme-mode-option .mode-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .theme-mode-option .mode-name {
        font-size: 12px;
    }
}

/* 动画效果 */
.theme-toggle-dropdown .hover-show-con {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.theme-toggle-dropdown.hover .hover-show-con,
.theme-toggle-dropdown:hover .hover-show-con {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 平滑过渡效果 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* ========================================================================
   7. 面包屑样式控制
   ======================================================================== */

/* 基础样式变量定义 */
:root {
    --6ke-breadcrumb-bg: rgba(0, 110, 255, 0.95);
    --6ke-breadcrumb-radius: 8px;
    --6ke-breadcrumb-padding: 10px 15px;
    --6ke-breadcrumb-margin: 0 0 15px 0;
    --6ke-breadcrumb-text-color: rgba(255, 255, 255, 0.9);
    --6ke-breadcrumb-link-color: #ffffff;
    --6ke-breadcrumb-separator-color: rgba(255, 255, 255, 0.6);
}

/* 面包屑容器样式 */
.breadcrumb {
    background: var(--6ke-breadcrumb-bg) !important;
    border-radius: var(--6ke-breadcrumb-radius) !important;
    padding: var(--6ke-breadcrumb-padding) !important;
    margin: var(--6ke-breadcrumb-margin) !important;
    color: var(--6ke-breadcrumb-text-color) !important;
    opacity: 1 !important;
}

/* 面包屑链接样式 */
.breadcrumb a {
    color: var(--6ke-breadcrumb-link-color) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 面包屑当前页样式 */
.breadcrumb li:last-child {
    color: var(--6ke-breadcrumb-text-color) !important;
    font-weight: 500;
}

/* 面包屑分隔符样式 */
.breadcrumb > li + li:before {
    color: var(--6ke-breadcrumb-separator-color) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
        padding: 8px 12px !important;
    }
}

