/* ========================================
   全局样式
   ======================================== */

/* 全站字体 - 思源黑体（排除图标） */
body, p, h1, h2, h3, h4, h5, h6, span:not([class*="fa"]):not([class*="icon"]), 
div, a, li, td, th, input, textarea, select, button, label, article, section {
    font-family: "Noto Sans SC", "Source Han Sans CN", "PingFang SC", -apple-system, "Microsoft YaHei", sans-serif;
}

/* 登录表单placeholder样式 */
.account-from input::placeholder {
    font-size: 12px !important;
    color: #999 !important;
}

/* 隐藏登录页底部协议和版权文字 */
.login-page .login-footer,
.login-page .site-footer,
.login-page .footer-copyright,
.login-page .login-agreement,
.account-from + .text-center,
.account-from ~ .small,
.account-from ~ p.small,
.login-box .text-muted.small,
.login-box > .text-center.small {
    display: none !important;
}

/* 微信登录二维码弹窗样式 */
.wx-qrcode-popup {
    border-radius: 16px !important;
    padding: 0 !important;
    width: 300px !important;
}

.wx-qrcode-popup .swal2-html-container {
    margin: 0 !important;
    padding: 1.5em 1em !important;
    color: #545454 !important;
    font-size: 1.125em !important;
    font-weight: 400 !important;
    line-height: normal !important;
    text-align: center !important;
}

.wx-qrcode-popup .swal2-html-container img {
    width: 252px !important;
    height: 252px !important;
    padding: 0 !important;
    margin: 5px auto !important;
    display: block !important;
}

.wx-qrcode-popup .swal2-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 32px !important;
    height: 32px !important;
    background: #fff !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    color: #333 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wx-qrcode-popup .swal2-close:hover {
    color: #000 !important;
    background: #f5f5f5 !important;
}

/* 微信登录成功Toast样式 */
.wx-login-success-toast {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.wx-login-success-toast .swal2-icon.swal2-success {
    border-color: #4cd964 !important;
}

.wx-login-success-toast .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #4cd964 !important;
}

.wx-login-success-toast .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(76, 217, 100, 0.3) !important;
}

.wx-login-success-toast .swal2-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
}

/* 防止横向滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* 首页搜索框全站按钮禁止点击 */
.search-section .search-select,
.home-search .search-select,
.search-form .search-select,
.search-warp .search-select,
[class*="search"] .dropdown-toggle,
[class*="search"] select {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important;
}

/* 头部导航栏全透明 */
.site-header,
.site-header .navbar,
.site-header .header-inner,
.site-header .navbar-wrapper,
#header,
.header-wrap {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* 滚动后也保持透明 */
.site-header.sticky,
.site-header.is-sticky,
.site-header.scrolled {
    background: transparent !important;
    background-color: transparent !important;
}
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overscroll-behavior-x: none;
}

/* ========================================
   子比风格手机端侧边菜单
   ======================================== */

@media (max-width: 991px) {

    /* 侧边菜单容器 */
    .off-canvas.zibll-style {
        background: #1a1d23;
        padding: 0;
        padding-bottom: 70px;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: block !important;
    }

    /* 亮色模式 */
    [data-bs-theme="light"] .off-canvas.zibll-style {
        background: #ffffff;
    }

    /* 头部区域 */
    .off-canvas .canvas-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        position: sticky;
        top: 0;
        background: inherit;
        z-index: 10;
    }

    .off-canvas .canvas-header .canvas-close {
        position: static;
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 8px;
    }

    /* 侧边菜单关闭按钮 - X 形状 */
    .off-canvas .canvas-close.burger-animate span {
        display: block;
        width: 20px;
        height: 2px;
        background: rgba(255,255,255,0.7);
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .off-canvas .canvas-close.burger-animate span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .off-canvas .canvas-close.burger-animate span:nth-child(2) {
        opacity: 0;
    }

    .off-canvas .canvas-close.burger-animate span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    [data-bs-theme="light"] .off-canvas .canvas-close.burger-animate span {
        background: rgba(0,0,0,0.6);
    }

    .off-canvas .canvas-header .logo-wrapper {
        flex: 1;
        text-align: center;
        padding: 0 10px;
    }

    .off-canvas .canvas-header .logo-wrapper img {
        max-height: 26px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .off-canvas .canvas-search {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: rgba(255,255,255,0.5);
    }

    [data-bs-theme="light"] .off-canvas .canvas-search {
        color: rgba(0,0,0,0.5);
    }

    /* 菜单区域 */
    .off-canvas .canvas-menu-wrap {
        padding: 5px 20px;
    }

    .off-canvas .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .off-canvas .mobile-nav-item {
        margin-bottom: 0;
    }

    .off-canvas .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 13px 0;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        font-size: 15px;
    }

    [data-bs-theme="light"] .off-canvas .mobile-nav-link {
        color: rgba(0,0,0,0.85);
    }

    /* 菜单前的小圆点 */
    .off-canvas .nav-dot {
        width: 5px;
        height: 5px;
        background: #e67e22;
        border-radius: 50%;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .off-canvas .mobile-nav-link .nav-text {
        flex: 1;
    }

    /* 设置图标 - 呼吸效果 */
    .off-canvas .nav-settings {
        color: rgba(255,255,255,0.25);
        font-size: 14px;
        animation: breathing 2s ease-in-out infinite;
    }

    @keyframes breathing {
        0%, 100% {
            opacity: 0.3;
        }
        50% {
            opacity: 1;
        }
    }

    [data-bs-theme="light"] .off-canvas .nav-settings {
        color: rgba(0,0,0,0.25);
    }

    /* 菜单标签 */
    .off-canvas .menu-badge {
        display: inline-block;
        padding: 2px 5px;
        font-size: 10px;
        border-radius: 3px;
        margin-left: 6px;
        font-weight: 500;
    }

    .off-canvas .menu-badge.new {
        background: #27ae60;
        color: #fff;
    }

    .off-canvas .menu-badge.hot {
        background: #e74c3c;
        color: #fff;
    }

    .off-canvas .menu-badge.sale {
        background: #e67e22;
        color: #fff;
    }

    /* 子菜单容器 */
    .off-canvas .mobile-submenu {
        display: none;
        padding: 3px 0 8px 15px;
    }

    .off-canvas .mobile-nav-item.has-children.active .mobile-submenu {
        display: block;
    }

    /* 子菜单网格 */
    .off-canvas .submenu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .off-canvas .submenu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 5px;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-size: 12px;
        transition: all 0.15s ease;
    }

    [data-bs-theme="light"] .off-canvas .submenu-item {
        border-color: rgba(0,0,0,0.1);
        color: rgba(0,0,0,0.75);
    }

    .off-canvas .submenu-item:hover,
    .off-canvas .submenu-item:active {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.2);
        color: #fff;
    }

    [data-bs-theme="light"] .off-canvas .submenu-item:hover {
        background: rgba(0,0,0,0.03);
        border-color: rgba(0,0,0,0.15);
        color: #333;
    }

    .off-canvas .submenu-item .menu-badge {
        margin-left: 3px;
        font-size: 9px;
        padding: 1px 3px;
    }

    /* VIP 开通入口 - 子比风格 */
    .off-canvas .canvas-vip-box {
        padding: 12px 20px;
    }

    .off-canvas .vip-banner {
        display: flex;
        align-items: center;
        padding: 10px 18px;
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-radius: 8px;
        color: #fff;
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

    .off-canvas .vip-banner i.fa-crown {
        font-size: 20px;
        margin-right: 10px;
        color: #f6ad55;
    }

    .off-canvas .vip-banner .vip-text {
        font-weight: 600;
        font-size: 15px;
        color: #fff;
    }

    .off-canvas .vip-banner .vip-desc {
        margin-left: 10px;
        font-size: 13px;
        color: rgba(255,255,255,0.6);
    }

    .off-canvas .vip-banner .vip-gem {
        position: absolute;
        right: 20px;
        font-size: 32px;
        color: rgba(255,255,255,0.15);
    }

    /* 用户操作区域 */
    .off-canvas .canvas-user-actions {
        display: flex;
        justify-content: center;
        gap: 35px;
        padding: 18px 20px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    [data-bs-theme="light"] .off-canvas .canvas-user-actions {
        border-top-color: rgba(0,0,0,0.06);
    }

    .off-canvas .user-action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        font-size: 12px;
    }

    [data-bs-theme="light"] .off-canvas .user-action-item {
        color: rgba(0,0,0,0.75);
    }

    .off-canvas .user-action-item i {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        margin-bottom: 6px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.1);
    }

    [data-bs-theme="light"] .off-canvas .user-action-item i {
        border-color: rgba(0,0,0,0.1);
    }

    .off-canvas .user-action-item:nth-child(1) i {
        color: #3498db;
        border-color: rgba(52,152,219,0.3);
    }

    .off-canvas .user-action-item:nth-child(2) i {
        color: #2ecc71;
        border-color: rgba(46,204,113,0.3);
    }

    .off-canvas .user-action-item:nth-child(3) i {
        color: #9b59b6;
        border-color: rgba(155,89,182,0.3);
    }

    /* 快速登录 */
    .off-canvas .canvas-quick-login {
        padding: 8px 20px 20px;
        text-align: center;
    }

    .off-canvas .quick-login-title {
        font-size: 12px;
        color: rgba(255,255,255,0.3);
        margin-bottom: 12px;
    }

    [data-bs-theme="light"] .off-canvas .quick-login-title {
        color: rgba(0,0,0,0.35);
    }

    .off-canvas .quick-login-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .off-canvas .quick-login-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 16px;
        color: #fff;
        text-decoration: none;
    }

    .off-canvas .quick-login-icon.qq {
        background: #12b7f5;
    }

    .off-canvas .quick-login-icon.wechat {
        background: #07c160;
    }

    .off-canvas .quick-login-icon.weibo {
        background: #e6162d;
    }

    .off-canvas .quick-login-icon.alipay {
        background: #1677ff;
    }

    .off-canvas .quick-login-icon.github {
        background: #24292e;
    }

    /* 隐藏原有菜单 */
    .off-canvas.zibll-style .mobile-menu,
    .off-canvas.zibll-style .slicknav_menu {
        display: none !important;
    }

}


/* ========================================
   手机端顶部导航栏 - 子比风格
   ======================================== */

@media (max-width: 991px) {

    /* 顶部栏整体 */
    .site-header {
        background: rgba(26, 29, 35, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    [data-bs-theme="light"] .site-header {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .site-header .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        position: relative;
    }

    /* 左边汉堡菜单 */
    .site-header .mobile-burger {
        order: 1;
        flex: 0 0 auto;
        align-items: center;
        cursor: pointer;
    }
    
    .site-header .mobile-burger .burger-text {
        font-size: 14px;
        color: rgba(255,255,255,0.8);
        margin-left: -5px;
    }
    
    [data-bs-theme="light"] .site-header .mobile-burger .burger-text {
        color: rgba(0,0,0,0.7);
    }

    .site-header .mobile-burger .burger {
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 8px;
    }

    .site-header .mobile-burger .burger span {
        display: block;
        width: 20px;
        height: 2px;
        background: rgba(255,255,255,0.8);
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    [data-bs-theme="light"] .site-header .mobile-burger .burger span {
        background: rgba(0,0,0,0.7);
    }

    /* 打开状态 - X 形状 */
    .canvas-opened .site-header .mobile-burger .burger span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .canvas-opened .site-header .mobile-burger .burger span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .canvas-opened .site-header .mobile-burger .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* 中间 Logo */
    .site-header .logo-wrapper {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .site-header .logo-wrapper a {
        pointer-events: auto !important;
        display: block;
        position: relative;
        z-index: 100;
    }

    .site-header .logo-wrapper img {
        max-height: 50px;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        object-fit: contain !important;
    }

    /* 搜索框显示时，隐藏 Logo */
    .site-header .navbar-search.show ~ .logo-wrapper,
    .site-header:has(.navbar-search.show) .logo-wrapper {
        opacity: 0;
        pointer-events: none;
    }

    /* 隐藏分隔符 */
    .site-header .sep {
        display: none;
    }

    /* 右边操作区 */
    .site-header .actions {
        order: 3;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        position: relative;
        z-index: 10;
    }

    /* 隐藏原来的汉堡菜单 */
    .site-header .actions .burger {
        display: none !important;
    }

    /* 手机端搜索图标 */
    .site-header .mobile-search {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: rgba(255,255,255,0.8);
        cursor: pointer;
        position: relative;
        z-index: 10;
    }

    .site-header .mobile-search:active {
        opacity: 0.7;
    }

    [data-bs-theme="light"] .site-header .mobile-search {
        color: rgba(0,0,0,0.7);
    }
    
    /* 手机端主题切换按钮 */
    .site-header .mobile-theme-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: rgba(255,255,255,0.8);
        cursor: pointer;
        position: relative;
        z-index: 10;
    }

    .site-header .mobile-theme-toggle:active {
        opacity: 0.7;
    }

    [data-bs-theme="light"] .site-header .mobile-theme-toggle {
        color: rgba(0,0,0,0.7);
    }
    
    /* 亮色模式显示太阳图标 */
    [data-bs-theme="light"] .site-header .mobile-theme-toggle i::before {
        content: "\f185";
    }

    /* 隐藏电脑端的其他操作按钮 */
    .site-header .actions .action-btn,
    .site-header .actions .action-hover-menu,
    .site-header .actions .login-btn {
        display: none !important;
    }

}


/* ========================================
   侧边菜单从左边滑出
   ======================================== */

@media (max-width: 991px) {

    /* 头部保持最上层 */
    .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050 !important;
    }

    /* 侧边菜单从左边滑出，从顶部栏下方开始 */
    .off-canvas {
        left: 0 !important;
        right: auto !important;
        top: 56px !important;
        height: calc(100% - 56px) !important;
        transform: translateX(-100%) !important;
        z-index: 1040 !important;
    }

    .canvas-opened .off-canvas {
        transform: translateX(0) !important;
    }

    /* 隐藏侧边菜单的头部 */
    .off-canvas.zibll-style .canvas-header {
        display: none !important;
    }

    /* 调整菜单内容区域 */
    .off-canvas.zibll-style .canvas-menu-wrap {
        padding-top: 15px;
    }

    /* 遮罩层在头部下方 */
    .dimmer {
        top: 56px !important;
        z-index: 999 !important;
    }

}


/* ========================================
   手机端搜索框样式
   ======================================== */

@media (max-width: 991px) {

    /* 隐藏原版搜索框 */
    .site-header .navbar-search {
        display: none !important;
    }

}


/* ========================================
   子比风格搜索面板
   ======================================== */

.zibll-search-panel {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.zibll-search-panel.show {
    visibility: visible;
    opacity: 1;
}

.zibll-search-panel .search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.zibll-search-panel .search-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #1e2128;
    padding: 25px 20px 30px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.zibll-search-panel.show .search-content {
    transform: translateY(0);
}

[data-bs-theme="light"] .zibll-search-panel .search-content {
    background: #fff;
}

/* 关闭按钮 - 右上角独立 */
.zibll-search-panel .search-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 18px;
}

[data-bs-theme="light"] .zibll-search-panel .search-close {
    color: rgba(0,0,0,0.4);
}

/* 搜索表单 */
.zibll-search-panel .search-form {
    margin-bottom: 25px;
    margin-top: 15px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* placeholder 提示文字在上方 */
.zibll-search-panel .search-placeholder {
    color: #e91e8c;
    font-size: 14px;
    margin-bottom: 8px;
}

.zibll-search-panel .search-input-wrap {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    padding-bottom: 10px !important;
    height: auto;
    box-shadow: none !important;
    position: relative;
}

/* 底部线条 - 灰色背景 */
.zibll-search-panel .search-input-wrap::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.15);
}

[data-bs-theme="light"] .zibll-search-panel .search-input-wrap::before {
    background: rgba(0,0,0,0.1);
}

/* 底部线条 - 粉色充能动画 */
.zibll-search-panel .search-input-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #e91e8c, #f542b3);
    transition: width 0.5s ease;
}

.zibll-search-panel.show .search-input-wrap::after {
    width: 100%;
}

[data-bs-theme="light"] .zibll-search-panel .search-input-wrap::after {
    background: linear-gradient(90deg, #e91e8c, #f542b3);
}

/* 左边分类选择 */
.zibll-search-panel .search-type {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,0.2);
    margin-right: 12px;
    cursor: pointer;
}

[data-bs-theme="light"] .zibll-search-panel .search-type {
    color: rgba(0,0,0,0.7);
    border-right-color: rgba(0,0,0,0.15);
}

.zibll-search-panel .search-type i {
    margin-left: 5px;
    font-size: 10px;
}

.zibll-search-panel .search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
}

[data-bs-theme="light"] .zibll-search-panel .search-input {
    color: #333;
}

.zibll-search-panel .search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

[data-bs-theme="light"] .zibll-search-panel .search-input::placeholder {
    color: rgba(0,0,0,0.35);
}

/* 搜索图标在右边 */
.zibll-search-panel .search-btn {
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
}

[data-bs-theme="light"] .zibll-search-panel .search-btn {
    color: rgba(0,0,0,0.4);
}

/* 热门搜索 */
.zibll-search-panel .search-hot {
    padding-top: 0;
}

.zibll-search-panel .hot-title {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-weight: 500;
}

[data-bs-theme="light"] .zibll-search-panel .hot-title {
    color: rgba(0,0,0,0.85);
}

.zibll-search-panel .hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zibll-search-panel .hot-tag {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-bs-theme="light"] .zibll-search-panel .hot-tag {
    background: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.65);
}

.zibll-search-panel .hot-tag:active {
    background: rgba(255,255,255,0.18);
}

[data-bs-theme="light"] .zibll-search-panel .hot-tag:active {
    background: rgba(0,0,0,0.1);
}


/* 覆盖搜索表单默认样式 */
.zibll-search-panel .search-form,
.zibll-search-panel .search-form *,
.zibll-search-panel form {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.zibll-search-panel .search-input-wrap {
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

[data-bs-theme="light"] .zibll-search-panel .search-input-wrap {
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}


/* 手机端横条图标模块 - 一行3个 */
@media (max-width: 991px) {
    .home-division .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .home-division .row > div {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding: 5px !important;
    }
    
    .home-division .division-item {
        padding: 15px 8px !important;
    }
    
    .home-division .division-item .icon-box {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    
    .home-division .division-item .title {
        font-size: 13px !important;
        margin-bottom: 3px !important;
    }
    
    .home-division .division-item .desc {
        font-size: 11px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}


/* ========================================
   子比风格功能卡片模块
   ======================================== */

.zibll-cards-section {
    padding: 5px 0;
}

.zibll-cards-wrap {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
}

[data-bs-theme="dark"] .zibll-cards-wrap {
    background: #1e2128;
}

.zibll-cards-wrap .zibll-cards-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

/* 卡片项 - 按列数计算宽度，保持不变形 */
.zibll-cards-wrap .zibll-card-item {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* PC端列数控制 - 自适应宽度 */
.zibll-cards-wrap[data-pc-cols="3"] .zibll-card-item {
    flex: 1 1 0;
    min-width: 0;
}
.zibll-cards-wrap[data-pc-cols="4"] .zibll-card-item {
    flex: 1 1 0;
    min-width: 0;
}
.zibll-cards-wrap[data-pc-cols="5"] .zibll-card-item {
    flex: 1 1 0;
    min-width: 0;
}
.zibll-cards-wrap[data-pc-cols="6"] .zibll-card-item {
    flex: 1 1 0;
    min-width: 0;
}

.zibll-cards-wrap .zibll-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.zibll-cards-wrap .zibll-card-item:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (hover: none) {
    .zibll-cards-wrap .zibll-card-item:hover {
        transform: none;
        box-shadow: none;
    }
}

.zibll-cards-wrap .zibll-card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* 手机端适配 - 小于768px */
@media (max-width: 767px) {
    .zibll-cards-section .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .zibll-cards-wrap {
        padding: 10px;
    }
    
    .zibll-cards-wrap .zibll-cards-grid {
        gap: 12px;
        justify-content: flex-start;
    }
    
    /* 手机端卡片 - 强制按列数显示 */
    .zibll-cards-wrap .zibll-card-item {
        flex: 0 0 calc(33.333% - 8px) !important;
        width: calc(33.333% - 8px) !important;
        max-width: none !important;
    }
    
    .zibll-cards-wrap[data-mobile-cols="2"] .zibll-card-item {
        flex: 0 0 calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
    }
}


/* 隐藏网站动态左右翻页按钮 */
.home-dynamic .dynamic-nav {
    display: none !important;
}


/* 网站动态 - 垂直滚动（一条一条切换） */
.dynamic-vertical {
    display: flex;
    align-items: center;
}

/* 网站动态模块底色 */
.home-dynamic {
    background: transparent !important;
    padding: 5px 0 !important;
    margin: 0 !important;
}

[data-bs-theme="dark"] .home-dynamic {
    background: transparent !important;
}

/* 网站动态 - 公告栏风格 */
.dynamic-section {
    padding: 5px 0;
}

.dynamic-wrap {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    border-radius: 10px;
    background: #fff;
}

[data-bs-theme="dark"] .dynamic-wrap {
    background: #1e2128;
}

.dynamic-tag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.dynamic-tag .badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
}

.dynamic-scroll {
    flex: 1;
    height: 20px;
    overflow: hidden;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
}

.dynamic-list {
    position: relative;
    height: 100%;
    width: 100%;
}

.dynamic-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    line-height: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.dynamic-item.active {
    opacity: 1;
    transform: translateY(0);
}

.dynamic-item.prev {
    opacity: 0;
    transform: translateY(-100%);
}

.dynamic-item .d-flex {
    height: 20px;
}

.dynamic-item .avatar {
    flex-shrink: 0;
    margin-right: 8px;
}

.dynamic-item .avatar-xs {
    width: 20px;
    height: 20px;
}

.dynamic-item .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dynamic-item .name {
    font-size: 13px;
    margin-right: 8px;
    white-space: nowrap;
}

.dynamic-item .info {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dynamic-item .info a {
    color: var(--bs-body-color);
    text-decoration: none;
}

.dynamic-item .info a:hover {
    color: #ff7800;
}

.dynamic-item .times {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    white-space: nowrap;
}

/* 手机端网站动态外边距 - 小于768px */
@media (max-width: 767px) {
    .home-dynamic .container,
    .dynamic-section .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .dynamic-wrap {
        padding: 10px 12px;
        gap: 12px;
    }
}

.dynamic-vertical .dynamic-label {
    flex-shrink: 0;
    margin-right: 12px;
}

.dynamic-vertical .dynamic-scroll-wrap {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.dynamic-vertical .dynamic-scroll-list {
    position: relative;
}

.dynamic-vertical .dynamic-scroll-item {
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.dynamic-vertical .dynamic-scroll-item.active {
    opacity: 1;
    transform: translateY(0);
}

.dynamic-vertical .dynamic-scroll-item.prev {
    opacity: 0;
    transform: translateY(-100%);
}

.dynamic-vertical .dynamic-scroll-item .name {
    margin: 0 8px 0 5px;
    font-size: 13px;
}

.dynamic-vertical .dynamic-scroll-item .info {
    margin: 0;
    font-size: 13px;
    display: inline;
}

.dynamic-vertical .dynamic-scroll-item .times {
    margin-left: 8px;
    color: #999;
    font-size: 12px;
}


/* ========================================
   横向滑动游戏推荐模块
   ======================================== */

.game-slider-section {
    padding: 5px 0;
}

.game-slider-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .game-slider-wrap {
    background: #1e2128;
}

/* 右侧渐变遮罩 + 滑动提示 */
.game-slider-body {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.game-slider-arrow {
    position: absolute;
    right: -5px;
    top: -4px;
    height: 63px;
    width: 50px;
    background: linear-gradient(to right, transparent, #fff 40%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    font-size: 28px;
    font-weight: bold;
    color: #ff7800;
    animation: slideHint 1s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
}

[data-bs-theme="dark"] .game-slider-arrow {
    background: linear-gradient(to right, transparent, #1e2128 40%);
}

/* 手机端箭头位置调整 */
@media (max-width: 991px) {
    .game-slider-arrow {
        height: 63px;
    }
}

@media (min-width: 992px) {
    .game-slider-arrow {
        height: 83px;
    }
}

@keyframes slideHint {
    0%, 100% {
        transform: translateX(-5px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

.game-slider-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.game-slider-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0;
    padding-left: 10px;
    border-left: 3px solid #ff7800;
}

.game-slider-title-link {
    text-decoration: none;
}

.game-slider-title-link .game-slider-title {
    color: var(--bs-body-color);
}

.game-slider-title-link:hover .game-slider-title {
    color: var(--bs-primary);
}

.game-slider-tip {
    font-size: 14px;
    color: #e6a23c;
    margin-left: 10px;
}

.game-slider-more {
    margin-left: auto;
    font-size: 12px;
    color: var(--bs-body-color);
    opacity: 0.5;
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 3px;
    transition: opacity 0.2s ease;
}

.game-slider-more:hover {
    opacity: 1;
}

.game-slider-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding-bottom: 10px;
    padding-top: 5px;
    padding-right: 50px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    position: relative;
}

@media (min-width: 992px) {
    .game-slider-list {
        padding-top: 8px;
    }
    
    .game-slider-item {
        width: 90px;
    }
    
    .game-slider-item .game-icon {
        width: 75px;
        height: 75px;
        border-radius: 16px;
    }
    
    .game-slider-item .game-name {
        font-size: 13px;
        max-width: 90px;
    }
    
    .game-slider-list::after {
        padding-top: 20px;
    }
}

.game-slider-list::-webkit-scrollbar {
    display: none;
}

.game-slider-list.dragging {
    cursor: grabbing;
    user-select: none;
}

.game-slider-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 70px;
    transition: transform 0.15s ease;
}

.game-slider-item:hover {
    transform: scale(1.1);
}

.game-slider-item:active {
    transform: scale(0.95);
}

.game-slider-item .game-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-slider-item .game-name {
    font-size: 12px;
    color: var(--bs-body-color);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

/* 手机端适配 - 小于768px */
@media (max-width: 767px) {
    .game-slider-section .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .game-slider-wrap {
        padding: 12px 10px;
    }
    
    .game-slider-header {
        padding: 0;
    }
    
    .game-slider-title {
        font-size: 16px;
    }
    
    .game-slider-item {
        width: 65px;
    }
    
    .game-slider-item .game-icon {
        width: 55px;
        height: 55px;
        border-radius: 12px;
    }
    
    .game-slider-item .game-name {
        font-size: 11px;
        max-width: 65px;
    }
}


/* ========================================
   首页公告栏模块
   ======================================== */

.notice-section {
    padding: 5px 0;
}

.notice-wrap {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    border-radius: 8px;
    background: #fff;
}

[data-bs-theme="dark"] .notice-wrap {
    background: #1e2128;
}

.notice-tag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notice-tag .badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
}

.notice-scroll {
    flex: 1;
    height: 20px;
    overflow: hidden;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
}

.notice-list {
    position: relative;
    height: 100%;
    width: 100%;
}

.notice-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    line-height: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.notice-item.active {
    opacity: 1;
    transform: translateY(0);
}

.notice-item.prev {
    opacity: 0;
    transform: translateY(-100%);
}

.notice-text {
    font-size: 14px;
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-decoration: none;
}

a.notice-text:hover {
    color: #ff7800;
}

/* 手机端适配 - 小于768px */
@media (max-width: 767px) {
    .notice-section {
        padding: 5px 0;
    }
    
    .notice-section .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .notice-wrap {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .notice-text {
        font-size: 13px;
    }
}


/* ========================================
   首页分类筛选导航模块
   ======================================== */

.category-filter-section {
    padding: 15px 0;
}

.category-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-nav .cat-item {
    padding: 6px 16px;
    font-size: 14px;
    color: var(--bs-body-color);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}

[data-bs-theme="dark"] .category-nav .cat-item {
    border-color: #3d4450;
    background: #252a34;
}

.category-nav .cat-item:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.category-nav .cat-item.active {
    color: #fff;
    border-color: transparent;
}

/* 排序导航 - 隐藏 */
.sort-nav {
    display: none !important;
}

/* 分类筛选头部 */
.category-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.category-filter-header .category-nav {
    flex: 1;
    overflow-x: auto;
}

/* 视图切换按钮 */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #999;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.view-btn:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

.view-btn.active {
    color: #ff7800;
    background: rgba(255, 120, 0, 0.1);
}

[data-bs-theme="dark"] .view-btn {
    color: #666;
}

[data-bs-theme="dark"] .view-btn:hover {
    color: #999;
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .view-btn.active {
    color: #ff7800;
    background: rgba(255, 120, 0, 0.15);
}

/* 手机端适配 - 小于768px */
@media (max-width: 767px) {
    .category-filter-section {
        padding: 12px 0;
    }
    
    .category-filter-section .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .category-nav {
        gap: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    
    .category-nav .cat-item {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .sort-nav {
        font-size: 13px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .sort-nav::-webkit-scrollbar {
        display: none;
    }
}

/* 文章列表 */
.category-posts-list {
    margin-top: 20px;
}

/* 加载更多按钮 */
.category-load-more {
    text-align: center;
    margin-top: 25px;
    padding-bottom: 10px;
}

.load-more-btn {
    padding: 10px 40px;
    font-size: 14px;
    color: var(--bs-body-color);
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .load-more-btn {
    border-color: #3d4450;
}

.load-more-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ========================================
   网站统计展示（增强版）
   ======================================== */

.overview-section {
    padding: 5px 0;
}

.overview-section .container {
    padding-left: 8px;
    padding-right: 8px;
}

.overview-wrap {
    padding: 20px 15px;
    overflow: hidden;
}

.overview-wrap .count-item {
    text-align: center;
    padding: 10px 5px;
}

.overview-wrap .count-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.overview-wrap .count-item strong {
    display: block;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
}

.overview-wrap .count-item i {
    font-size: 12px;
}

/* 手机端适配 */
@media (max-width: 767px) {
    .overview-wrap .count-num {
        font-size: 22px;
    }
    
    .overview-wrap .count-item strong {
        font-size: 12px;
    }
    
    .overview-wrap .count-item {
        padding: 8px 3px;
    }
}


/* ========================================
   分类筛选导航 - 滑动标签样式
   ======================================== */

.category-filter-section {
    padding: 10px 0;
}

.category-filter-section .container {
    padding-left: 8px;
    padding-right: 8px;
}

.category-filter-wrap {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

/* 标签导航容器 */
.category-tabs-nav {
    position: relative;
}

/* 可滚动区域 */
.category-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding-bottom: 10px;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

/* 标签列表 */
.category-tabs-list {
    display: flex;
    white-space: nowrap;
    padding: 8px 4px 0;
    gap: 12px;
}

/* 单个标签 - 未选中有浅灰背景 */
.cat-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
    background: #f8f8f8;
}

[data-bs-theme="dark"] .cat-tab {
    color: #ccc;
    background: #2a2f38;
    border-color: #3d4450;
}

.cat-tab:hover {
    color: #2196f3;
    border-color: #2196f3;
}

[data-bs-theme="dark"] .cat-tab:hover {
    color: #64b5f6;
    border-color: #64b5f6;
}

/* 选中状态 - 蓝色边框 + 白色背景 */
.cat-tab.active {
    color: #2196f3;
    border-color: #2196f3;
    background: #fff;
}

[data-bs-theme="dark"] .cat-tab.active {
    color: #64b5f6;
    border-color: #64b5f6;
    background: #1e2128;
}

/* 底部彩虹条 - 进度条效果，往右滑越长 */
.category-tabs-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 30px;
    background: linear-gradient(90deg, #e53935, #ec407a, #4dd0e1, #66bb6a);
    border-radius: 3px;
    transition: width 0.1s ease;
}

/* 手机端适配 */
@media (max-width: 767px) {
    .cat-tab {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .category-tabs-list {
        padding: 6px 4px 0;
        gap: 10px;
    }
    
    .category-tabs-indicator {
        width: 60px;
    }
}


/* ========================================
   分类筛选导航 - 修复版
   ======================================== */

/* 标签导航容器 - 进度条放在这里 */
.category-tabs-nav {
    position: relative;
    padding-bottom: 10px;
}

/* 进度条轨道 - 灰色背景 */
.category-tabs-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
}

[data-bs-theme="dark"] .category-tabs-nav::before {
    background: #3d4450;
}

/* 进度条 - 固定在nav底部，不跟随滚动 */
.category-tabs-nav .category-tabs-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 30px;
    background: linear-gradient(90deg, #e53935, #ec407a, #4dd0e1, #66bb6a);
    border-radius: 3px;
    transition: width 0.15s ease;
    z-index: 10;
}

/* 可滚动区域 - 不需要底部padding了 */
.category-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}


/* 分类标签拖动样式 */
.category-tabs-scroll.dragging {
    cursor: grabbing;
    user-select: none;
}

.category-tabs-scroll {
    cursor: grab;
}


/* 分类标签右侧箭头按钮 */
.category-tabs-arrow {
    position: absolute;
    right: 0;
    top: 8px;
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-tabs-arrow:hover {
    background: #f5f5f5;
    color: #333;
}

.category-tabs-arrow:active {
    transform: scale(0.95);
}

[data-bs-theme="dark"] .category-tabs-arrow {
    background: #2a2f38;
    color: #aaa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .category-tabs-arrow:hover {
    background: #3d4450;
    color: #fff;
}

/* 滚动到底时隐藏箭头 */
.category-tabs-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 调整滚动区域，给箭头留空间 */
.category-tabs-nav {
    padding-right: 35px;
}


/* 箭头按钮呼吸动画 */
@keyframes arrow-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.category-tabs-arrow {
    animation: arrow-breathe 2s ease-in-out infinite;
}

.category-tabs-arrow:hover {
    animation: none;
    transform: scale(1);
    opacity: 1;
}


/* ========================================
   游戏横滑模块 - 彩虹进度条和箭头按钮
   ======================================== */

/* 游戏滑动区域 */
.game-slider-body {
    position: relative;
}

/* 隐藏旧的箭头 */
.game-slider-arrow {
    display: none !important;
}

/* 新的箭头按钮 - 竖着的长方形，只盖住图标 */
.game-slider-arrow-btn {
    position: absolute;
    right: 0;
    top: 5px;
    width: 24px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    z-index: 20;
    animation: arrow-breathe-opacity 2s ease-in-out infinite;
}

@media (min-width: 992px) {
    .game-slider-arrow-btn {
        top: 8px;
        height: 75px;
    }
}

@keyframes arrow-breathe-opacity {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.game-slider-arrow-btn:hover {
    border-color: #999;
    color: #666;
}

.game-slider-arrow-btn:active {
    opacity: 0.7;
}

[data-bs-theme="dark"] .game-slider-arrow-btn {
    background: rgba(30,33,40,0.95);
    border-left-color: #3d4450;
    color: #888;
}

[data-bs-theme="dark"] .game-slider-arrow-btn:hover {
    color: #aaa;
}

.game-slider-arrow-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 彩虹进度条容器 */
.game-slider-progress {
    position: relative;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 12px;
}

[data-bs-theme="dark"] .game-slider-progress {
    background: #3d4450;
}

/* 彩虹进度条 */
.game-slider-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 30px;
    background: linear-gradient(90deg, #e53935, #ec407a, #4dd0e1, #66bb6a);
    border-radius: 3px;
    transition: width 0.15s ease;
}


/* ========================================
   子比风格个人中心 - 全面美化版
   ======================================== */

.zibll-uc-page {
    background: #f2f2f7;
    min-height: 100vh;
    padding-bottom: 40px;
}

[data-bs-theme="dark"] .zibll-uc-page {
    background: #000;
}

/* 顶部背景区域 */
.uc-header {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.uc-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

.uc-header .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
}

.uc-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.uc-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.8);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.uc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uc-user-meta {
    color: #fff;
}

.uc-username {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.uc-user-desc {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.uc-vip-badge {
    background: linear-gradient(135deg, #f6d365, #fda085);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #000 !important;
}

.uc-vip-badge span,
.uc-user-desc .badge,
.uc-user-desc span.badge {
    color: #000 !important;
}

.uc-register-time {
    opacity: 0.8;
}

/* 主内容区域 */
.uc-main-content {
    position: relative;
    z-index: 10;
    padding-top: 12px;
}

/* VIP开通入口 - 与侧边栏一致的深色风格 */
.uc-vip-banner {
    margin-bottom: 12px;
}

.vip-banner-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.vip-banner-left {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vip-banner-left i.fa-crown {
    font-size: 20px;
    margin-right: 10px;
    color: #f6ad55;
}

.vip-text {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.vip-desc {
    margin-left: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.vip-banner-right {
    position: absolute;
    right: 20px;
    font-size: 32px;
    color: rgba(255,255,255,0.15);
}

.vip-banner-right i.fa-chevron-right {
    display: none;
}

/* 添加钻石图标 */
.vip-banner-link::after {
    content: '\f3a5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    position: absolute;
    right: 20px;
    font-size: 32px;
    color: rgba(255,255,255,0.15);
}

/* 已开通会员 - 金色文字 */
.uc-vip-banner.is-vip .vip-text {
    color: #f6ad55;
}

.vip-banner-right {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

[data-bs-theme="dark"] .vip-banner-right {
    background: rgba(255,255,255,0.1);
}

.vip-banner-right i {
    font-size: 12px;
    color: #fff;
}


/* 订单/积分统计卡片 */
.uc-stats-card {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.uc-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 15px 14px 15px !important;
    text-decoration: none;
    position: relative;
    background: #fff;
    border-radius: 12px;
}

[data-bs-theme="dark"] .uc-stat-item {
    background: #1e2128;
}

.stat-label {
    font-size: 14px;
    color: var(--bs-body-color);
    margin-bottom: 4px !important;
    padding: 0 !important;
}

.stat-label i {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.4;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.stat-value span:first-child {
    display: block;
}

.uc-stat-item:nth-child(2) .stat-value {
    color: #f59e0b;
}

.stat-icon {
    position: absolute;
    right: 15px;
    bottom: 12px;
    font-size: 32px;
    color: #3b82f6;
    line-height: 1;
    opacity: 0.15;
}

.stat-icon img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 1;
}

.uc-stat-item:nth-child(2) .stat-icon {
    color: #f59e0b;
}

.stat-divider {
    display: none;
}

/* 区块样式 - iOS风格 */
.uc-section {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
}

[data-bs-theme="dark"] .uc-section {
    background: #1c1c1e;
}

.uc-section-header {
    padding: 12px 16px 8px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 网格项目 - iOS风格 */
.uc-grid-items {
    display: grid;
    gap: 0;
    padding: 8px 0;
}

.uc-grid-items.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.uc-grid-items.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.uc-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.15s ease;
}

.uc-grid-item:active {
    background: rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .uc-grid-item:active {
    background: rgba(255,255,255,0.05);
}

.uc-grid-item .item-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 6px;
    border-radius: 8px;
}

.uc-grid-item .item-icon.item-icon-img {
    background: transparent;
    overflow: hidden;
}

.uc-grid-item .item-icon.item-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.uc-grid-item .item-icon.item-icon-img i {
    font-size: 18px;
    color: #999;
}

.uc-grid-item .item-title {
    font-size: 12px;
    color: var(--bs-body-color);
    font-weight: 400;
}

/* 菜单列表 - iOS风格 */
.uc-menu-list {
    display: flex;
    flex-direction: column;
}

/* 列表区块样式 */
.uc-list-menu {
    display: flex;
    flex-direction: column;
}

.uc-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s ease;
    position: relative;
}

.uc-list-item::after {
    content: '';
    position: absolute;
    left: 60px;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background: rgba(60,60,67,0.12);
}

[data-bs-theme="dark"] .uc-list-item::after {
    background: rgba(84,84,88,0.65);
}

.uc-list-item:last-child::after {
    display: none;
}

.uc-list-item:active {
    background: rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .uc-list-item:active {
    background: rgba(255,255,255,0.05);
}

.list-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.list-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-icon i {
    font-size: 14px;
    color: #999;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 15px;
    color: var(--bs-body-color);
    font-weight: 400;
}

.list-item-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.list-item-arrow {
    color: rgba(60,60,67,0.3);
    font-size: 12px;
}

[data-bs-theme="dark"] .list-item-arrow {
    color: rgba(235,235,245,0.3);
}

.uc-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s ease;
    position: relative;
}

.uc-menu-item::after {
    content: '';
    position: absolute;
    left: 52px;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background: rgba(60,60,67,0.12);
}

[data-bs-theme="dark"] .uc-menu-item::after {
    background: rgba(84,84,88,0.65);
}

.uc-menu-item:last-child::after {
    display: none;
}

.uc-menu-item:active {
    background: rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .uc-menu-item:active {
    background: rgba(255,255,255,0.05);
}

.uc-menu-item .menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bs-body-color);
    font-size: 15px;
}

.uc-menu-item .menu-left i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

[data-bs-theme="dark"] .uc-menu-item .menu-left i {
    color: #888;
}

.uc-menu-item .menu-right {
    color: #c7c7cc;
    font-size: 14px;
}

/* 退出登录 */
.uc-logout-wrap {
    padding: 20px 0;
}

.uc-logout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    color: #e74c3c;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease;
}

[data-bs-theme="dark"] .uc-logout-btn {
    background: #1e2128;
}

.uc-logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

[data-bs-theme="dark"] .uc-logout-btn:hover {
    background: #2a2d35;
}

/* 手机端适配 */
@media (max-width: 767px) {
    .uc-header {
        height: 180px;
    }
    
    .uc-main-content {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .uc-avatar {
        width: 60px;
        height: 60px;
    }
    
    .uc-username {
        font-size: 18px;
    }
    
    .uc-stat-item {
        padding: 0 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-icon {
        font-size: 24px;
        right: 15px;
    }
}


/* 子页面出现时隐藏原始网站头部 */
body:has(.uc-subpage-header) .site-header,
body:has(.uc-subpage-header) .header-gap {
    display: none !important;
}

/* 个人中心子页面头部 */
.uc-subpage-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

body.admin-bar .uc-subpage-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .uc-subpage-header {
        top: 0;
    }
}

[data-bs-theme="dark"] .uc-subpage-header {
    background: #1e2128;
    border-bottom-color: rgba(255,255,255,0.06);
}

.uc-subpage-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 15px;
}

.uc-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-body-color);
    font-size: 18px;
    text-decoration: none;
}

.uc-back-btn:hover {
    color: var(--bs-primary);
}

.uc-subpage-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: var(--bs-body-color);
    text-align: center;
    flex: 1;
}

.uc-header-placeholder {
    width: 40px;
}

/* 子页面内容区域 */
.uc-subpage-content {
    padding-top: 72px;
    padding-bottom: 30px;
    min-height: calc(100vh - 150px);
}

body.admin-bar .uc-subpage-content {
    padding-top: 104px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .uc-subpage-content {
        padding-top: 56px;
    }
}

@media (max-width: 767px) {
    .uc-subpage-content {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ========================================
   修复：手机端支付弹窗被 dimmer 遮罩层盖住
   ======================================== */

/* 
 * 问题：手机端点击购买后，SweetAlert2 支付选择弹窗被 .dimmer 遮罩层盖住
 * 原因：父主题 dimmer z-index: 90，但子主题手机端设置为 1030
 * 解决：确保 SweetAlert2 弹窗 z-index 始终高于 dimmer
 */

/* SweetAlert2 弹窗容器 - 最高层级 */
.swal2-container {
    z-index: 99999 !important;
}

/* SweetAlert2 弹窗内容 */
.swal2-popup {
    z-index: 99999 !important;
}

/* SweetAlert2 自带的背景遮罩 */
.swal2-container.swal2-backdrop-show {
    z-index: 99999 !important;
}

/* Bootstrap Modal 弹窗 */
.modal.show,
.modal.fade.show {
    z-index: 99998 !important;
}

.modal-backdrop,
.modal-backdrop.show {
    z-index: 99997 !important;
}

/* 手机端特殊处理 */
@media (max-width: 991px) {
    /* 当 SweetAlert2 弹窗显示时，降低 dimmer 层级 */
    body.swal2-shown .dimmer {
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    /* 当 Bootstrap Modal 显示时，降低 dimmer 层级 */
    body.modal-open .dimmer {
        z-index: 1 !important;
        pointer-events: none !important;
    }
}



/* ========================================
   隐藏内容自定义样式 - 1:1复刻目标网站
   ======================================== */

/* 外层容器 */
.ri-hide-custom .card-body {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
}

[data-bs-theme="dark"] .ri-hide-custom .card-body {
    background: linear-gradient(180deg, #1e2128 0%, #16181d 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* 标题徽章 - badge-info-lighten */
.ri-hide-custom .badge-info-lighten {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 0 0 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 0;
    left: 0;
}

.ri-hide-custom .badge-info-lighten i {
    margin-right: 0;
    font-size: 10px;
}

/* 居中容器 */
.ri-hide-custom .d-flex.justify-content-center {
    display: flex;
    justify-content: center;
}

.ri-hide-custom .text-center.mb-4 {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 16px;
}

/* 文字样式 */
.ri-hide-custom .text-muted {
    color: #86868b;
    font-size: 13px;
}

.ri-hide-custom .m-0 {
    margin: 0;
}

.ri-hide-custom .mt-1 {
    margin-top: 0.25rem;
}

/* 价格列表 - prices-info */
.ri-hide-custom .prices-info {
    list-style: none;
    padding: 4px;
    margin: 0 auto;
    text-align: center;
}

/* VIP折扣链接 */
.ri-hide-custom .prices-info .vip-rete-tips {
    display: inline-block;
    color: #727cf5;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.ri-hide-custom .prices-info .vip-rete-tips:hover {
    text-decoration: underline;
}

.ri-hide-custom .prices-info .vip-rete-tips i {
    margin-right: 0.25rem;
}

/* 价格项 */
.ri-hide-custom .prices-info .price-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 32px;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    border: 2px solid #d1d1d6;
}

[data-bs-theme="dark"] .ri-hide-custom .prices-info .price-item {
    background: #2a2f38;
    border-color: #48484a;
    color: #aaa;
}

.ri-hide-custom .prices-info .price-item span {
    color: #ff9500;
    font-weight: 600;
    font-size: 14px;
}

[data-bs-theme="dark"] .ri-hide-custom .prices-info .price-item span {
    color: #ffb340;
}

.ri-hide-custom .prices-info .price-item span i {
    margin-right: 4px;
    color: #ff9500;
    font-size: 13px;
}

/* 折扣标签 */
.ri-hide-custom .prices-info .price-item sup {
    color: #ffd700;
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

/* 普通用户 - 无折扣 */
.ri-hide-custom .prices-info .price-item.no {
    border: 2px solid #d1d1d6 !important;
}

/* 月费VIP */
.ri-hide-custom .prices-info .price-item.month {
    border-left: 3px solid #17a2b8;
}

/* 季费VIP */
.ri-hide-custom .prices-info .price-item.season {
    border-left: 3px solid #28a745;
}

/* 年费VIP */
.ri-hide-custom .prices-info .price-item.year {
    border-left: 3px solid #fd7e14;
}

/* 永久VIP */
.ri-hide-custom .prices-info .price-item.boosvip {
    border-left: 3px solid #e83e8c;
}

/* 按钮样式 */
.ri-hide-custom .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 100px;
    height: 36px;
}

.ri-hide-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ri-hide-custom .btn i {
    margin-right: 0;
    font-size: 12px;
}

/* btn-sm */
.ri-hide-custom .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    height: 36px;
}

/* btn-dark - 深色按钮（积分购买） */
.ri-hide-custom .btn-dark {
    color: #fff;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.ri-hide-custom .btn-dark:hover {
    color: #fff;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

/* btn-warning - 黄色按钮 */
.ri-hide-custom .btn-warning {
    color: #fff;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.ri-hide-custom .btn-warning:hover {
    color: #fff;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
}

/* btn-primary - 蓝色按钮（开通会员） */
.ri-hide-custom .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ri-hide-custom .btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #7c8ff5 0%, #8b5cb8 100%);
}

/* 按钮间距 */
.ri-hide-custom .ml-2 {
    margin-left: 8px;
}

.ri-hide-custom .ml-3 {
    margin-left: 10px;
}

/* 按钮组 */
.ri-hide-custom .hide-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* small 文字 */
.ri-hide-custom .small {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
}

.ri-hide-custom .small span {
    color: #ff3b30;
    font-weight: 600;
}


/* 帮助中心折叠面板样式 */
.accordion.accordion-bg-light .accordion-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 10px;
}

.accordion.accordion-bg-light .accordion-header {
    margin: 0;
}

.accordion.accordion-bg-light .accordion-button {
    background: #fff;
    color: #3273dc;
    font-size: 15px;
    font-weight: normal;
    padding: 12px 15px;
    padding-right: 40px;
    width: 100%;
    text-align: left;
    border: none;
    position: relative;
    box-shadow: none !important;
}

/* 隐藏默认箭头 */
.accordion.accordion-bg-light .accordion-button::before {
    display: none !important;
}

/* +/- 图标带动画 */
.accordion.accordion-bg-light .accordion-button::after {
    content: '' !important;
    position: absolute;
    right: 18px;
    top: 50%;
    width: 14px !important;
    height: 2px !important;
    background: #999 !important;
    border: none !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

/* 竖线（+号的竖杠） */
.accordion.accordion-bg-light .accordion-button.collapsed::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    right: 24px;
    top: 50%;
    width: 2px !important;
    height: 14px !important;
    background: #999 !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
}

/* 展开时竖线消失变成 - */
.accordion.accordion-bg-light .accordion-button:not(.collapsed)::before {
    display: block !important;
    content: '' !important;
    position: absolute;
    right: 24px;
    top: 50%;
    width: 2px !important;
    height: 0 !important;
    background: #999 !important;
    transform: translateY(-50%) !important;
}

.accordion.accordion-bg-light .accordion-button:hover {
    background: #f9f9f9;
}

.accordion.accordion-bg-light .accordion-collapse {
    border-top: 1px solid #e8e8e8;
}

.accordion.accordion-bg-light .accordion-body {
    padding: 20px 15px;
    background: #fff;
}


/* ========================================
   文章页标签切换 - iOS Segmented Control
   ======================================== */

.single-content-nav {
    text-align: left;
}

.single-content-nav .nav-pills {
    display: inline-flex;
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 8px;
    border: none;
    width: fit-content;
}

.single-content-nav .nav-item {
    flex: none;
}

.single-content-nav .nav-link {
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    background: #f2f2f7 !important;
    border: none !important;
    transition: all 0.2s ease;
    position: relative;
}

.single-content-nav .nav-link:not(.active) {
    background: #f2f2f7 !important;
    color: #333 !important;
}

.single-content-nav .nav-link i {
    display: none;
}

.single-content-nav .nav-link.active {
    background: #007aff !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,122,255,0.3);
}

/* 深色模式 */
[data-bs-theme="dark"] .single-content-nav .nav-link {
    background: rgba(118,118,128,0.24);
    color: #999;
}

[data-bs-theme="dark"] .single-content-nav .nav-link.active {
    background: #0a84ff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(10,132,255,0.4);
}


/* ========================================
   常见问题列表 - 苹果风格
   ======================================== */

#pills-faq .list-group {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#pills-faq .list-group-item {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #f2f2f7 !important;
    padding: 14px 16px !important;
}

#pills-faq .list-group-item:last-child {
    border-bottom: none !important;
}

#pills-faq .list-group-item .fw-bold {
    color: #1d1d1f !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 4px;
}

#pills-faq .list-group-item .text-muted {
    color: #86868b !important;
    font-size: 13px !important;
    line-height: 1.5;
}

/* 序号样式 */
#pills-faq .list-group-numbered > .list-group-item::before {
    background: #007aff !important;
    color: #fff !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 深色模式 */
[data-bs-theme="dark"] #pills-faq .list-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] #pills-faq .list-group-item {
    background: #1c1c1e !important;
    border-bottom-color: #2c2c2e !important;
}

[data-bs-theme="dark"] #pills-faq .list-group-item .fw-bold {
    color: #fff !important;
}

[data-bs-theme="dark"] #pills-faq .list-group-item .text-muted {
    color: #8e8e93 !important;
}

[data-bs-theme="dark"] #pills-faq .list-group-numbered > .list-group-item::before {
    background: #0a84ff !important;
}


/* ========================================
   评论区 - 优化样式
   ======================================== */

/* 评论标题 */
.entry-comments .comments-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f2f2f7 !important;
}

/* 评论列表 */
.comments-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 单条评论 */
.comments-list > li {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f2f2f7 !important;
    margin: 0 !important;
}

.comments-list > li:last-child {
    border-bottom: none !important;
}

/* 评论内部布局 */
.comments-list .comment-inner {
    display: flex !important;
    gap: 10px !important;
}

/* 评论头像 */
.comments-list .comment-author {
    flex-shrink: 0 !important;
}

.comments-list .comment-author img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* 评论主体 */
.comments-list .comment-body {
    flex: 1 !important;
    min-width: 0 !important;
}

/* 昵称行 */
.comments-list .comment-body .nickname {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 4px !important;
}

.comments-list .comment-body .nickname a {
    color: #1d1d1f !important;
    text-decoration: none !important;
}

/* 会员标签 */
.comments-list .comment-body .nickname .badge,
.comments-list .comment-body .nickname .vip-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}

/* 评论内容 */
.comments-list .comment-content {
    font-size: 14px !important;
    color: #1d1d1f !important;
    line-height: 1.5 !important;
    margin: 4px 0 !important;
    word-break: break-word !important;
}

.comments-list .comment-content p {
    margin: 0 !important;
}

/* 评论元信息 */
.comments-list .comment-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 6px !important;
}

/* 评论时间 */
.comments-list .comment-time {
    font-size: 12px !important;
    color: #86868b !important;
}

/* 回复按钮 */
.comments-list .comment-reply-link {
    font-size: 12px !important;
    color: #86868b !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.comments-list .comment-reply-link:hover {
    color: #007aff !important;
}

/* 子评论/回复 */
.comments-list .children {
    margin-left: 50px !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    list-style: none !important;
}

.comments-list .children > li {
    background: #f5f5f7 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin-top: 8px !important;
    border-bottom: none !important;
}

.comments-list .children .comment-author img {
    width: 32px !important;
    height: 32px !important;
}

/* 昵称行 - 用户名+标签+时间在一行 */
.comments-list .comment-body .nickname {
    display: inline !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin-bottom: 0 !important;
}

.comments-list .comment-body .nickname a {
    color: #1d1d1f !important;
    text-decoration: none !important;
}

/* 会员标签 */
.comments-list .comment-body .nickname .badge,
.comments-list .comment-body .nickname .vip-badge,
.comments-list .comment-body .nickname span[class*="badge"] {
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
}

/* 深色模式 */
[data-bs-theme="dark"] .entry-comments .comments-title {
    color: #fff !important;
    border-bottom-color: #2c2c2e !important;
}

[data-bs-theme="dark"] .comments-list > li {
    border-bottom-color: #2c2c2e !important;
}

[data-bs-theme="dark"] .comments-list .comment-body .nickname,
[data-bs-theme="dark"] .comments-list .comment-body .nickname a {
    color: #fff !important;
}

[data-bs-theme="dark"] .comments-list .comment-content {
    color: #e5e5e7 !important;
}

[data-bs-theme="dark"] .comments-list .children > li {
    background: #2c2c2e !important;
}



/* ========================================
   声明框 iOS 风格美化
   ======================================== */

.post-note.alert-warning,
.post-note.alert-primary,
.post-note.alert-info {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: #1d1d1f !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.post-note.alert-warning small,
.post-note.alert-primary small,
.post-note.alert-info small {
    font-size: 13px !important;
    color: #666 !important;
}

.post-note.alert-warning strong,
.post-note.alert-primary strong,
.post-note.alert-info strong {
    color: #1d1d1f !important;
    font-weight: 600 !important;
}

/* 暗色模式 */
[data-bs-theme="dark"] .post-note.alert-warning,
[data-bs-theme="dark"] .post-note.alert-primary,
[data-bs-theme="dark"] .post-note.alert-info {
    background: #2c2c2e !important;
    color: #f5f5f7 !important;
}

[data-bs-theme="dark"] .post-note.alert-warning small,
[data-bs-theme="dark"] .post-note.alert-primary small,
[data-bs-theme="dark"] .post-note.alert-info small {
    color: #98989d !important;
}

[data-bs-theme="dark"] .post-note.alert-warning strong,
[data-bs-theme="dark"] .post-note.alert-primary strong,
[data-bs-theme="dark"] .post-note.alert-info strong {
    color: #f5f5f7 !important;
}


/* ========================================
   文章版权声明框 iOS 风格
   ======================================== */

.entry-copyright {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: #666 !important;
    font-size: 12px !important;
    line-height: 1.9 !important;
}

.entry-copyright::before {
    color: #007aff !important;
}

/* 暗色模式 */
[data-bs-theme="dark"] .entry-copyright {
    background: #2c2c2e !important;
    color: #98989d !important;
}

/* 退出登录按钮 */
.uc-logout-wrap {
    padding: 10px 0;
    text-align: center;
}

.uc-logout-btn {
    display: inline-block;
    padding: 10px 40px;
    color: #ff3b30;
    font-size: 15px;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
}

[data-bs-theme="dark"] .uc-logout-btn {
    background: #1c1c1e;
}

.uc-logout-btn:hover {
    color: #ff3b30;
    opacity: 0.8;
}


/* ========================================
   会员中心子页面 - iOS风格全面美化
   ======================================== */

/* --- 子页面头部优化 --- */
.uc-subpage-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(60,60,67,0.12);
}

[data-bs-theme="dark"] .uc-subpage-header {
    background: rgba(30,33,40,0.85);
    border-bottom-color: rgba(84,84,88,0.36);
}

.uc-subpage-header .container {
    height: 60px;
}

.uc-back-btn {
    width: 44px;
    height: 44px;
    color: #007aff;
    font-size: 20px;
    transition: opacity 0.15s;
}

.uc-back-btn:hover,
.uc-back-btn:active {
    color: #007aff;
    opacity: 0.6;
}

[data-bs-theme="dark"] .uc-back-btn {
    color: #0a84ff;
}

.uc-subpage-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* --- 子页面内容区域 --- */
.uc-subpage-content {
    background: #f2f2f7;
    min-height: 100vh;
}

[data-bs-theme="dark"] .uc-subpage-content {
    background: #000;
}

/* --- 通用 Card 容器 iOS化 --- */
.uc-subpage-content .card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

[data-bs-theme="dark"] .uc-subpage-content .card {
    background: #1c1c1e;
}

.uc-subpage-content .card-header {
    background: transparent;
    border-bottom: none;
    padding: 16px 16px 0;
}

.uc-subpage-content .card-header h5,
.uc-subpage-content .card-header caption {
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uc-subpage-content .card-body {
    padding: 16px;
}

/* --- 表单控件 iOS化 --- */
.uc-subpage-content .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    margin-bottom: 6px;
}

.uc-subpage-content .form-control {
    background: #f2f2f7;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--bs-body-color);
    transition: all 0.2s ease;
    height: auto;
}

.uc-subpage-content .form-control:focus {
    background: #e8e8ed;
    box-shadow: none;
    outline: none;
}

.uc-subpage-content .form-control:disabled,
.uc-subpage-content .form-control[readonly] {
    background: #f2f2f7;
    opacity: 0.6;
}

[data-bs-theme="dark"] .uc-subpage-content .form-control {
    background: #2c2c2e;
    color: #f5f5f7;
}

[data-bs-theme="dark"] .uc-subpage-content .form-control:focus {
    background: #3a3a3c;
}

[data-bs-theme="dark"] .uc-subpage-content .form-control:disabled,
[data-bs-theme="dark"] .uc-subpage-content .form-control[readonly] {
    background: #2c2c2e;
    opacity: 0.5;
}

.uc-subpage-content textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* --- 按钮 iOS化 --- */
.uc-subpage-content .btn {
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: -0.1px;
}

.uc-subpage-content .btn:active {
    transform: scale(0.97);
}

.uc-subpage-content .btn-dark {
    background: #1c1c1e;
    color: #fff;
}

.uc-subpage-content .btn-dark:hover {
    background: #2c2c2e;
}

[data-bs-theme="dark"] .uc-subpage-content .btn-dark {
    background: #f5f5f7;
    color: #1c1c1e;
}

.uc-subpage-content .btn-danger {
    background: #ff3b30;
    color: #fff;
}

.uc-subpage-content .btn-danger:hover {
    background: #ff453a;
}

.uc-subpage-content .btn-primary {
    background: #007aff;
    color: #fff;
}

.uc-subpage-content .btn-primary:hover {
    background: #0a84ff;
}

.uc-subpage-content .btn-info {
    background: #5ac8fa;
    color: #fff;
}

.uc-subpage-content .btn-success {
    background: #34c759;
    color: #fff;
}

.uc-subpage-content .btn-warning {
    background: #ff9500;
    color: #fff;
}

.uc-subpage-content .btn-warning:hover {
    background: #ffaa33;
    color: #fff;
}

.uc-subpage-content .btn-outline-danger {
    background: transparent;
    border: 1.5px solid #ff3b30;
    color: #ff3b30;
}

.uc-subpage-content .btn-outline-danger:hover {
    background: #ff3b30;
    color: #fff;
}

.uc-subpage-content .btn-outline-primary {
    background: transparent;
    border: 1.5px solid #007aff;
    color: #007aff;
}

.uc-subpage-content .btn-outline-primary:hover {
    background: #007aff;
    color: #fff;
}

.uc-subpage-content .btn-primary-soft {
    background: rgba(0,122,255,0.12);
    color: #007aff;
    border: none;
}

.uc-subpage-content .btn-primary-soft:hover {
    background: rgba(0,122,255,0.2);
    color: #007aff;
}

[data-bs-theme="dark"] .uc-subpage-content .btn-primary-soft {
    background: rgba(10,132,255,0.2);
    color: #0a84ff;
}

/* --- 列表组 iOS化 --- */
.uc-subpage-content .list-group {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.uc-subpage-content .list-group-item {
    background: #fff;
    border: none;
    border-bottom: 0.5px solid rgba(60,60,67,0.12);
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
}

.uc-subpage-content .list-group-item:last-child {
    border-bottom: none;
}

[data-bs-theme="dark"] .uc-subpage-content .list-group-item {
    background: #2c2c2e;
    border-bottom-color: rgba(84,84,88,0.36);
    color: #98989d;
}

.uc-subpage-content .list-group-item-light {
    background: #f9f9f9;
}

[data-bs-theme="dark"] .uc-subpage-content .list-group-item-light {
    background: #2c2c2e;
}

.uc-subpage-content .list-group-item-action {
    transition: background 0.15s;
}

.uc-subpage-content .list-group-item-action:active {
    background: rgba(0,0,0,0.04);
}

[data-bs-theme="dark"] .uc-subpage-content .list-group-item-action:active {
    background: rgba(255,255,255,0.05);
}

/* --- Alert 提示框 iOS化 --- */
.uc-subpage-content .alert {
    border: none;
    border-radius: 12px;
    font-size: 14px;
    padding: 14px 16px;
}

.uc-subpage-content .alert-info {
    background: rgba(0,122,255,0.08);
    color: #007aff;
}

[data-bs-theme="dark"] .uc-subpage-content .alert-info {
    background: rgba(10,132,255,0.15);
    color: #0a84ff;
}


/* ========================================
   VIP会员页面 - iOS风格美化
   ======================================== */

/* VIP用户信息区 */
.uc-subpage-content .card-body .d-flex.align-items-center.mb-3 {
    padding: 4px 0;
}

.uc-subpage-content .avatar-img.rounded-circle {
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* VIP统计卡片 */
.uc-subpage-content .row-cols-2 .card {
    border-radius: 12px;
    border: none;
    transition: transform 0.15s ease;
}

.uc-subpage-content .row-cols-2 .card:active {
    transform: scale(0.97);
}

.uc-subpage-content .row-cols-2 .card h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.uc-subpage-content .row-cols-2 .card .h6 {
    font-size: 12px;
    color: #86868b;
}

/* (旧 price-card 和 VIP获取记录 样式已移除 - 现使用 vip-full-card 轮播卡片) */

/* ========================================
   余额充值页面 - iOS风格美化
   ======================================== */

/* 余额展示卡片 */
.coin-hero-card {
    position: relative;
    border-radius: 0;
    padding: 28px 20px 24px;
    margin-bottom: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
}

.coin-hero-card::before {
    display: none;
}

.coin-hero-bg {
    display: none;
}

.coin-hero-card .coin-circle1{position:absolute;top:-15px;right:30%;width:45px;height:45px;background:rgba(245,166,35,0.08);border-radius:50%;animation:coinFloat 6s ease-in-out infinite;}
.coin-hero-card .coin-circle2{position:absolute;bottom:-10px;left:10%;width:35px;height:35px;background:rgba(245,166,35,0.06);border-radius:50%;animation:coinFloat 8s ease-in-out infinite reverse;}
.coin-hero-card .coin-circle3{position:absolute;top:50%;right:-8px;width:55px;height:55px;background:rgba(245,166,35,0.05);border-radius:50%;animation:coinFloat 7s ease-in-out infinite 1s;}
.coin-hero-card .coin-circle4{position:absolute;top:10px;left:-10px;width:30px;height:30px;background:rgba(245,166,35,0.06);border-radius:50%;animation:coinFloat 9s ease-in-out infinite reverse 2s;}
.coin-hero-card .coin-circle5{position:absolute;bottom:5px;right:20%;width:20px;height:20px;background:rgba(245,166,35,0.04);border-radius:50%;animation:coinFloat 5s ease-in-out infinite 0.5s;}

@keyframes coinFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(6px,-6px) scale(1.1); }
}

.coin-hero-qiandao {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.coin-qd-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #f5a623, #e6951e);
    border-radius: 20px;
    padding: 5px 14px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

.coin-qd-btn.done {
    color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: none;
}

.coin-hero-label {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.coin-hero-amount {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.coin-hero-amount i {
    color: #f5a623;
    margin-right: 6px;
    filter: drop-shadow(0 0 6px rgba(245,166,35,0.4));
}

/* 充值金额选择卡片 */
.uc-subpage-content .coin-pay-card {
    background: #fff;
    border: 2px solid #f2f2f7;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uc-subpage-content .coin-pay-card:active {
    transform: scale(0.96);
}

.uc-subpage-content .coin-pay-card.active {
    border-color: #ff9500;
    background: rgba(255,149,0,0.06);
}

.uc-subpage-content .coin-pay-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #ff9500;
    margin-bottom: 4px;
}

.uc-subpage-content .coin-pay-card p {
    font-size: 13px;
    color: #86868b;
}

[data-bs-theme="dark"] .uc-subpage-content .coin-pay-card {
    background: #2c2c2e;
    border-color: #3a3a3c;
}

[data-bs-theme="dark"] .uc-subpage-content .coin-pay-card.active {
    border-color: #ff9500;
    background: rgba(255,149,0,0.12);
}

/* 自定义金额输入框 */
.uc-subpage-content .pay_coin_box {
    background: #fff;
    border-radius: 12px;
    border: none;
}

[data-bs-theme="dark"] .uc-subpage-content .pay_coin_box {
    background: #2c2c2e;
}

.uc-subpage-content .pay_coin_box .form-control {
    background: #f2f2f7;
    border: none;
    border-radius: 10px;
}

.uc-subpage-content .pay_coin_box .form-control:focus {
    background: #e8e8ed;
    box-shadow: 0 0 0 3px rgba(255,149,0,0.2);
}

[data-bs-theme="dark"] .uc-subpage-content .pay_coin_box .form-control {
    background: #3a3a3c;
}

/* 充值按钮 */
.uc-subpage-content .js-pay-action {
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 32px;
    min-width: 200px;
}

/* 积分记录 */
.uc-subpage-content .coin-log-item {
    border-bottom-color: rgba(60,60,67,0.08);
}

[data-bs-theme="dark"] .uc-subpage-content .coin-log-item {
    border-bottom-color: rgba(84,84,88,0.36);
}

[data-bs-theme="dark"] .uc-subpage-content .coin-log-title {
    color: #f5f5f7;
}

[data-bs-theme="dark"] .uc-subpage-content .coin-log-meta {
    color: #8e8e93;
}

/* 卡密按钮组 */
.uc-subpage-content .cdk-btns .btn {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
}


/* ========================================
   个人资料 / 修改密码 / 账户绑定 - iOS风格
   ======================================== */

/* 头像区域 */
.uc-subpage-content .avatar.avatar-xl {
    width: 72px;
    height: 72px;
}

.uc-subpage-content .avatar.avatar-xl .avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50% !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    border: 3px solid #fff !important;
}

[data-bs-theme="dark"] .uc-subpage-content .avatar.avatar-xl .avatar-img {
    border-color: #2c2c2e !important;
}

/* 表单行间距 */
.uc-subpage-content form.row.g-4 > .col-lg-6,
.uc-subpage-content form.row.g-4 > .col-12 {
    margin-bottom: 4px;
}

/* 分隔线 */
.uc-subpage-content hr {
    border-color: rgba(60,60,67,0.12);
    margin: 16px 0;
}

[data-bs-theme="dark"] .uc-subpage-content hr {
    border-color: rgba(84,84,88,0.36);
}

/* 快捷登录绑定区域 */
.uc-subpage-content .position-relative.my-4 p.small {
    font-size: 12px;
    color: #86868b;
    background: #fff;
    padding: 0 12px;
}

[data-bs-theme="dark"] .uc-subpage-content .position-relative.my-4 p.small {
    background: #1c1c1e;
    color: #8e8e93;
}

/* 社交绑定按钮 */
.uc-subpage-content .d-grid .btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
}

.uc-subpage-content .btn .fab.fa-qq {
    color: inherit;
}

.uc-subpage-content .btn .fab.fa-weixin {
    color: inherit;
}

/* ========================================
   订单页面暗色模式补充
   ======================================== */

[data-bs-theme="dark"] .ios-order-page {
    background: #000;
}

[data-bs-theme="dark"] .ios-order-page .page-title {
    color: #f5f5f7;
}

[data-bs-theme="dark"] .ios-order-item {
    background: #1c1c1e;
}

[data-bs-theme="dark"] .ios-order-item:active {
    background: #2c2c2e;
}

[data-bs-theme="dark"] .ios-order-title {
    color: #f5f5f7;
}

[data-bs-theme="dark"] .ios-order-meta {
    color: #8e8e93;
}

[data-bs-theme="dark"] .ios-order-meta .order-no {
    color: #636366;
}

[data-bs-theme="dark"] .ios-order-detail {
    border-top-color: rgba(84,84,88,0.36);
}

[data-bs-theme="dark"] .ios-order-time {
    color: #8e8e93;
}

[data-bs-theme="dark"] .ios-empty {
    color: #8e8e93;
}

[data-bs-theme="dark"] .ios-empty i {
    color: #48484a;
}

/* iOS弹窗暗色 */
[data-bs-theme="dark"] .ios-alert {
    background: rgba(44,44,46,0.95) !important;
}

[data-bs-theme="dark"] .ios-alert .swal2-html-container {
    color: #f5f5f7 !important;
}

[data-bs-theme="dark"] .ios-alert .swal2-actions {
    border-top-color: rgba(84,84,88,0.65) !important;
}

[data-bs-theme="dark"] .ios-alert .swal2-confirm {
    border-right-color: rgba(84,84,88,0.65) !important;
    color: #0a84ff !important;
}

[data-bs-theme="dark"] .ios-alert .swal2-cancel {
    color: #0a84ff !important;
}

[data-bs-theme="dark"] .ios-alert .swal2-confirm:active,
[data-bs-theme="dark"] .ios-alert .swal2-cancel:active {
    background: rgba(255,255,255,0.08) !important;
}

/* ========================================
   主页动画与细节优化
   ======================================== */

/* 头像微动画 */
.uc-avatar {
    transition: transform 0.3s ease;
}

.uc-avatar:active {
    transform: scale(0.92);
}

/* VIP Banner 按压效果 */
.vip-banner-link {
    transition: all 0.2s ease;
}

.vip-banner-link:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 统计卡片按压 */
.uc-stat-item {
    transition: all 0.2s ease;
}

.uc-stat-item:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* 网格项目按压 */
.uc-grid-item {
    transition: all 0.15s ease;
}

.uc-grid-item:active {
    transform: scale(0.92);
}

/* 菜单项按压 */
.uc-menu-item {
    transition: all 0.15s ease;
}

.uc-menu-item:active {
    transform: scale(0.98);
}

/* 退出按钮按压 */
.uc-logout-btn {
    transition: all 0.2s ease;
}

.uc-logout-btn:active {
    transform: scale(0.97);
    opacity: 0.8;
}

/* 区块进入动画 */
.uc-vip-banner,
.uc-stats-card,
.uc-section,
.uc-logout-wrap {
    animation: uc-fadeInUp 0.4s ease both;
}

.uc-vip-banner { animation-delay: 0.05s; }
.uc-stats-card { animation-delay: 0.1s; }
.uc-section:nth-child(1) { animation-delay: 0.15s; }
.uc-section:nth-child(2) { animation-delay: 0.2s; }
.uc-section:nth-child(3) { animation-delay: 0.25s; }
.uc-logout-wrap { animation-delay: 0.3s; }

@keyframes uc-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .uc-vip-banner,
    .uc-stats-card,
    .uc-section,
    .uc-logout-wrap {
        animation: none;
    }
}

/* ========================================
   会员中心 - 手机端响应式优化
   ======================================== */

@media (max-width: 767px) {
    /* 子页面头部 */
    .uc-subpage-header .container {
        padding: 0 12px;
    }
    
    /* 子页面内容 */
    .uc-subpage-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .uc-subpage-content > .card,
    .uc-subpage-content > div > .card {
        border-radius: 0;
        margin-bottom: 8px;
    }
    
    /* 充值卡片 */
    .uc-subpage-content .coin-pay-card {
        padding: 14px 10px;
    }
    
    .uc-subpage-content .coin-pay-card h5 {
        font-size: 16px;
    }
    
    /* 订单页面 */
    .ios-order-page {
        padding: 12px 0;
        margin: -15px -8px;
    }
    
    .ios-order-page .page-title {
        padding: 0 16px;
        font-size: 24px;
    }
    
    .ios-order-list {
        gap: 0;
    }
    
    .ios-order-item {
        border-radius: 0;
        border-bottom: 0.5px solid rgba(60,60,67,0.08);
    }
    
    [data-bs-theme="dark"] .ios-order-item {
        border-bottom-color: rgba(84,84,88,0.36);
    }
    
    .ios-order-item:last-child {
        border-bottom: none;
    }
}

/* 平板适配 */
@media (min-width: 768px) and (max-width: 1024px) {
    .uc-subpage-content .row-cols-md-3 {
        --bs-gutter-x: 16px;
    }
}


/* ========================================
   VIP下载统计 - 紧凑一行式
   ======================================== */
.vip-stats-compact {
    padding: 12px 0 0;
}

.vip-user-header .vip-stats-row {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.vip-user-header .vip-stat-cell:not(:last-child)::after {
    background: rgba(255,255,255,0.12);
}

.vip-user-header .vip-stat-label {
    color: rgba(255,255,255,0.5);
}

.vip-user-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 20px 16px 16px !important;
    margin: 0 !important;
}

/* VIP卡片深色头部铺满卡片内边缘 */
.vip-card-full {
    overflow: hidden;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.vip-user-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(245,166,35,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.vip-header-circles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.vhc { position: absolute; border-radius: 50%; }
.vhc.c1 { top: -10px; right: 30px; width: 60px; height: 60px; background: rgba(245,166,35,0.1); animation: jfFloat 6s ease-in-out infinite; }
.vhc.c2 { top: 10px; right: 100px; width: 35px; height: 35px; background: rgba(245,166,35,0.07); animation: jfFloat 8s ease-in-out infinite reverse; }
.vhc.c3 { bottom: -5px; right: -5px; width: 45px; height: 45px; background: rgba(245,166,35,0.06); animation: jfFloat 5s ease-in-out infinite 1s; }

@keyframes jfFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8px,-8px) scale(1.1)} }

.vip-user-header .avatar.avatar-xl {
    width: 50px;
    height: 50px;
}

.vip-user-header .avatar.avatar-xl .avatar-img {
    width: 50px;
    height: 50px;
    border-color: rgba(255,255,255,0.3) !important;
}

.vip-user-header .badge {
    font-size: 14px !important;
    padding: 3px 8px !important;
    background: linear-gradient(135deg, #f5a623, #f7c948) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(245,166,35,0.4);
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    box-shadow: 0 0 8px rgba(245,166,35,0.3);
}

.vip-stats-row {
    display: flex;
    background: #f2f2f7;
    border-radius: 10px;
    overflow: hidden;
}

[data-bs-theme="dark"] .vip-stats-row {
    background: #2c2c2e;
}

.vip-stat-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    position: relative;
}

.vip-stat-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 0.5px;
    background: rgba(60,60,67,0.12);
}

[data-bs-theme="dark"] .vip-stat-cell:not(:last-child)::after {
    background: rgba(84,84,88,0.4);
}

.vip-stat-val {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.vip-stat-label {
    font-size: 11px;
    color: #86868b;
    margin-top: 2px;
}


/* ========================================
   VIP价格 - 横向滑动完整卡片
   ======================================== */
.vip-price-section {
    padding: 0 0 16px;
    overflow: hidden;
}

/* 滑块外层：箭头 + 视口 */
.vip-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* 左右箭头 */
.vip-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 5;
    position: relative;
}

.vip-nav:hover {
    background: rgba(0,0,0,0.1);
    color: #1c1c1e;
}

.vip-nav:active {
    transform: scale(0.88);
}

[data-bs-theme="dark"] .vip-nav {
    background: rgba(255,255,255,0.1);
    color: #aaa;
}

[data-bs-theme="dark"] .vip-nav:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* 引导脉冲 */
.vip-nav::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #007aff;
    opacity: 0;
    animation: vipArrowPulse 2.5s ease-in-out infinite;
}

.vip-nav-prev::after { animation: none; opacity: 0; }
.vip-nav-next::after { animation-delay: 0s; }

.vip-nav.no-guide::after {
    animation: none;
    opacity: 0;
}

@keyframes vipArrowPulse {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.5; transform: scale(1.15); }
}

.vip-nav-prev { margin-right: -24px; margin-left: 0; }
.vip-nav-next { margin-left: -24px; margin-right: 0; }

/* 视口 */
.vip-slider-viewport {
    flex: 1;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

/* 轨道 */
.vip-slider-track {
    display: flex;
    gap: 12px;
}

.vip-full-card {
    flex: 0 0 72%;
    border-radius: 20px;
    padding: 16px 14px 14px;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* 卡片背景渐变 - 等级越高越华丽 */
.vip-card-secondary {
    background: linear-gradient(135deg, #a8a8ad 0%, #6e6e73 50%, #8e8e93 100%);
}

.vip-card-info {
    background: linear-gradient(135deg, #64d2ff 0%, #0a84ff 50%, #5856d6 100%);
}

.vip-card-success {
    background: linear-gradient(135deg, #30d158 0%, #00b4ab 50%, #007aff 100%);
}

.vip-card-primary {
    background: linear-gradient(135deg, #bf5af2 0%, #5e5ce6 40%, #0a84ff 100%);
}

.vip-card-warning {
    background: linear-gradient(135deg, #ffd60a 0%, #ff9f0a 30%, #ff375f 70%, #bf5af2 100%);
}

/* 卡片装饰光圈 */
.vip-full-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.vip-full-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* 头部 */
.vip-fc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.vip-fc-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.vip-fc-title {
    font-size: 17px;
    font-weight: 700;
    flex: 1;
}

.vip-fc-period {
    font-size: 12px;
    opacity: 0.7;
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
}

/* 价格 */
.vip-fc-price {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.vip-fc-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    display: block;
    margin-bottom: 2px;
}

.vip-fc-num {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.vip-fc-unit {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 4px;
}

/* 权益列表 */
.vip-fc-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.vip-fc-perks li {
    padding: 6px 0;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vip-fc-perks li:nth-child(n+5) {
    display: none;
}

.vip-fc-perks li:last-child {
    border-bottom: none;
}

.vip-fc-perks li i {
    font-size: 10px;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 购买按钮 */
.vip-fc-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1c1c1e;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
    overflow: hidden;
    margin-top: auto;
}

/* 光泽扫过动画 */
.vip-fc-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: vipBtnShine 3s ease-in-out infinite;
}

@keyframes vipBtnShine {
    0%, 100% { left: -100%; }
    50% { left: 120%; }
}

.vip-fc-btn:hover {
    background: #fff;
    transform: scale(1.02);
}

.vip-fc-btn:active {
    transform: scale(0.97);
}

.vip-fc-btn:disabled {
    background: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    cursor: not-allowed;
}

.vip-fc-btn:disabled::after {
    animation: none;
}

/* 指示器 */
.vip-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px 0 0;
}

.vip-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #d1d1d6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vip-dot.active {
    width: 18px;
    background: #007aff;
}

[data-bs-theme="dark"] .vip-dot {
    background: #48484a;
}

[data-bs-theme="dark"] .vip-dot.active {
    background: #0a84ff;
}

/* 缩放动画 */
.vip-full-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    transform: scale(0.95);
}

.vip-full-card.active {
    opacity: 1;
    transform: scale(1);
}

/* 底部导航栏样式 */
.m-navbar ul li a span {
    font-size: 12px;
    position: relative;
    top: -1px;
}

.m-navbar ul li a {
    color: #3d4f5f;
    position: relative;
    top: -1px;
    min-height: 44px;
}

.m-navbar ul li a i {
    color: #3d4f5f;
    margin-bottom: 4px;
}
