/**
 * ESP 2.0 核心样式
 * 
 * 整合了 style.css, left-nav.css, publish.css 等核心样式
 * 
 * @package ESP
 * @version 2.1.4
 * @since 2025-12-31
 */

/* ==========================================================================
   全局变量
   ========================================================================== */
:root {
    --esp-primary: #e94632;
    --esp-primary-dark: #d63b29;
    --esp-bg-dark: #343434;
    --esp-bg-darker: #3d3d3d;
    --esp-text-light: #fff;
    --esp-text-muted: #cccccc;
    --esp-text-grey: #979797;
    --esp-border-light: #97979738;
    --esp-radius: 6px;
    --esp-transition: 0.3s ease;
}

/* ==========================================================================
   页面滚动修复 - 确保内容区域不阻止垂直滚动
   ========================================================================== */

/* 首页模块和内容区域 */
.home_row,
.module-sliders,
.module-html,
.content-area,
.site-content,
#primary,
#primary-home,
.html-box,
.content-container,
.custom-wrapper,
.c-content,
.tab-content,
.tab-content-container,
#last-container,
#follow-container,
#ask-container,
#essence-container,
#info-container {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Flickity 轮播图滚动修复 - 强制覆盖 */
.flickity-enabled,
.flickity-enabled.is-draggable,
[data-flickity] {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

.flickity-viewport,
.flickity-enabled .flickity-viewport,
.flickity-enabled.is-draggable .flickity-viewport {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

.flickity-slider,
.flickity-enabled .flickity-slider {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

/* 轮播图内容不阻止垂直滚动 */
.slider-1,
.slider-1.carousel,
.slider-in,
.slider-info-box,
.slider-1-carousel,
.slider-height {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
    pointer-events: auto;
}

/* 帖子列表和卡片 */
.post-list,
.post-item,
.circle-topic-item,
.topic-content,
.flow-row-card,
.list-flow {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
}

/* 首页 have-widget 模块布局由 custom-style.css v1.03 控制 */

/* ==========================================================================
   全局背景色统一
   ========================================================================== */
body,
html,
#page,
.site,
.site-content,
.b2-color,
.search-page,
.login-page,
.page-template,
.archive,
.single,
.error404,
.category,
.tag,
.author,
#primary,
#content,
.content-area,
main.site-main {
    background-color: var(--esp-bg-dark, #343434) !important;
}

/* ==========================================================================
   侧边导航栏 (left-nav)
   ========================================================================== */
.site-header { z-index: 1002; }

/* PC端隐藏移动端专用菜单 - 仅在大于768px时隐藏 */
@media screen and (min-width: 769px) {
    .esp-mobile-menu,
    #mobile-menu.esp-mobile-menu,
    .esp-menu-overlay,
    #mobile-footer-menu,
    .mobile-footer-menu.esp-footer-menu {
        display: none !important;
    }
}

/* 侧边栏底部版权信息 */
.footer-info {
    margin-top: auto;
    padding: 10px 0;
    width: 100%;
}

.footer-info .v-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--esp-text-grey, #777);
    line-height: 1.6;
}

.footer-info .v-copyright {
    margin-bottom: 2px;
    text-align: center;
}

.footer-info .v-beian {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--esp-text-grey, #666);
    gap: 2px;
}

.footer-info .v-beian .b2-dot {
    display: none;
}

.footer-info .v-beian a {
    color: var(--esp-text-grey, #666);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-info .v-beian a img {
    width: 12px;
    height: 12px;
    margin-right: 3px;
}

.footer-info .v-beian .b2-dot {
    margin: 0 4px;
}

/* 窗口高度小于480px时隐藏版权信息 */
@media screen and (max-height: 480px) {
    .footer-info {
        display: none !important;
    }
}

.sidebar-container {
    position: fixed;
    left: 0;
    top: 64px; /* 在头部下方开始 */
    width: 276px;
    height: calc(100vh - 64px);
    background-color: rgba(30, 30, 30, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width var(--esp-transition), opacity var(--esp-transition), transform var(--esp-transition);
    opacity: 1;
    z-index: 6; /* 低于头部的 z-index: 7 */
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* 隐藏侧边栏滚动条 */
.sidebar-container::-webkit-scrollbar {
    width: 0;
    display: none;
}
.sidebar-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-container.hidden {
    width: 0;
    opacity: 0;
    transform: translateX(-100%);
}

.header-banner-content > div {
    display: flex;
    align-items: center;
    line-height: 1;
    margin: 0px 50px 0px 50px;
}

.menu-navigation {
    background-color: transparent;
    padding: 10px;
    margin-bottom: 10px;
    display: block;
    max-width: 233px;
}

.vertical-menu {
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

.footer-item {
    position: relative;
    margin-bottom: 65px;
}

/* 圈子展开时减少底部间距，让展开列表自然衔接 */
.footer-item.has-circle-dropdown {
    margin-bottom: 65px;
}
.footer-item.has-circle-dropdown:hover {
    margin-bottom: 10px;
}

.footer-esp {
    position: relative;
}

.footer-esp::after {
    content: '';
    position: absolute;
    bottom: -37px;
    left: 13%;
    width: 76%;
    border-bottom: 2px solid var(--esp-border-light);
}

/* 有圈子下拉的footer-item，分隔线移到整个item底部 */
.footer-item.has-circle-dropdown .footer-esp::after {
    display: none;
}
.footer-item.has-circle-dropdown::after {
    content: '';
    position: absolute;
    bottom: -37px;
    left: 13%;
    width: 76%;
    border-bottom: 2px solid var(--esp-border-light);
}
.footer-item.has-circle-dropdown:hover::after {
    display: none;
}

.footer-item > a {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.footer-item img {
    width: 130px;
    transition: width var(--esp-transition);
}

.footer-item > a:hover img {
    width: 230px;
}

/* 子菜单样式 */
.footer-item .submenu {
    position: relative;
    width: 100%;
    background-color: var(--esp-bg-darker);
    padding-left: 20px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.footer-item.has-submenu:hover .submenu {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
}

/* 圈子内联展开列表 */
.circle-dropdown {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    pointer-events: none;
    z-index: 1;
    box-shadow: none;
    margin-left: 0;
    margin-top: 4px;
}

/* 自定义滚动条 */
.circle-dropdown::-webkit-scrollbar {
    width: 4px;
}
.circle-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.circle-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
}

.footer-item.has-circle-dropdown:hover .circle-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    overflow-y: auto;
    padding: 6px 0;
    pointer-events: auto;
}

.circle-dropdown-item {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px !important;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
    border-radius: 6px;
    margin: 0 4px;
}

.circle-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.circle-dropdown-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.circle-dropdown-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 70, 50, 0.15);
    color: var(--esp-primary, #e94632);
    font-size: 13px;
    font-weight: 600;
}

.circle-dropdown-name {
    font-size: 12px !important;
    color: rgba(200, 200, 200, 0.85) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0 !important;
    padding-left: 0 !important;
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
}

.submenu a {
    display: flex;
    justify-content: flex-start !important;
    padding-left: 60px;
    margin: 20px 0px 0px 0px;
    text-decoration: none;
    color: var(--esp-text-muted);
    font-size: 18px;
    letter-spacing: 10px;
    font-weight: 600;
    transition: background-color var(--esp-transition);
    border-radius: 20px;
}

.submenu a:hover {
    background-color: var(--esp-primary);
    color: var(--esp-text-light);
}

.submenu img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.footer-info {
    background-color: transparent;
    padding-right: 40px;
    display: block;
}

/* 底部内容样式 */
.v-footer-bottom {
    bottom: 0;
    padding: 10px;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    text-align: center;
}

.v-footer-bottom .v-copyright,
.v-footer-bottom .v-beian {
    margin-top: 10px;
    font-size: 12px;
    color: var(--esp-text-muted);
}

.v-footer-bottom .v-beian img {
    margin-right: 5px;
    width: 20px;
}

/* 切换按钮样式 */
.toggle-vertical-menu-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
}

.toggle-vertical-menu-button img {
    width: 38px;
    display: inline-block;
    transition: transform 0.5s ease;
    transform: rotate(0deg);
}

.toggle-vertical-menu-button.closed img {
    transform: rotate(90deg);
}

.toggle-vertical-menu-button:not(.closed):hover img {
    transform: rotate(360deg);
}

.toggle-vertical-menu-button.closed:hover img {
    transform: rotate(450deg);
}

.toggle-product-sidebar-button {
    margin: 10px 0;
    padding: 10px;
    cursor: pointer;
    background-color: #007bff;
    color: var(--esp-text-light);
    border: none;
    border-radius: 5px;
    transition: background-color var(--esp-transition);
}

.toggle-product-sidebar-button:hover {
    background-color: #0056b3;
}

/* ==========================================================================
   主内容样式 (style.css)
   ========================================================================== */
.custom-topic-list {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    background-color: #f9f9f9;
}

.top-user-avatar img {
    border-radius: 100% !important;
}

/* 统一 header-user 图标和头像垂直对齐 */
.header-user {
    display: flex;
    align-items: center;
}

.header-user .change-theme {
    display: flex;
    align-items: center;
}

.header-user .top-user-info {
    display: flex;
    align-items: center;
}

.header-user .top-user-box {
    display: flex;
    align-items: center;
}

.header-user .change-theme > div {
    display: flex;
    align-items: center;
}

.header-user .change-theme > div a,
.header-user .change-theme button {
    display: flex;
    align-items: center;
    justify-content: center;
}

#message_ico {
    background-image: url(esp/images/ling.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
    display: block;
    width: 35px;
    height: 35px;
}

#cart-ico {
    background-image: url(esp/images/cart.svg);
    background-repeat: no-repeat;
    background-size: 22px;
    background-position: center;
    display: block;
    width: 35px;
    height: 35px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.change-theme {
    align-items: center;
}

/* 话题项样式 */
.topic-item {
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--esp-text-light);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.topic-item h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.topic-item h2 a {
    text-decoration: none;
    color: #333;
}

.topic-item h2 a:hover {
    color: #0073aa;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    color: #999;
}

.topic-item .left,
.topic-item .right {
    display: inline-block;
    vertical-align: top;
}

/* 头像样式 */
.avatar-wrap {
    display: inline-block;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

/* 图片网格 */
.pic-grid {
    display: flex;
}

.pic-grid.multiple {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cover-wrap {
    width: 200px;
    height: 160px;
    overflow: hidden;
    margin-bottom: 10px;
    margin-right: 8px;
    flex-shrink: 0;
}

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

/* 文章标题和内容 */
.article-title {
    font-family: 'b2font';
    font-weight: 545;
    font-size: 30px;
    color: var(--esp-text-light);
    margin: 0;
    letter-spacing: 1px;
}

.article-text {
    font-size: 18px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--esp-text-muted);
}

/* 用户行 */
.user-line.flex-center-v {
    color: var(--esp-text-light);
    font-size: 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.nick-wrap.nickname-wgt {
    margin-right: 30px;
}

/* 工具栏 */
.toolbar.fc-grey-a.flex-center-v {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

.toolbar .flex-center-v {
    display: flex;
    align-items: center;
}

/* 列表卡片 */
.list-flow.flow-row-card {
    display: flex;
    max-width: 100%;
    justify-content: flex-start;
    flex-direction: row;
    align-items: flex-start;
    box-sizing: border-box;
    margin-bottom: 35px;
    background-color: var(--esp-bg-dark);
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.list-flow.flow-row-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 14%;
    width: 78%;
    border-bottom: 2px solid var(--esp-border-light);
}

.list-flow .left,
.list-flow .right {
    display: inline-block;
    vertical-align: top;
}

.list-flow .right {
    width: calc(100% - 80px);
    margin-left: 20px;
}

/* 点赞区域 */
.i-laud {
    display: flex;
    margin-left: 10px;
    height: 35px;
    color: var(--esp-text-grey);
}

.i-laud a img {
    margin-right: 33px;
    width: 30px;
}

.i-laud span {
    margin: 10px 50px 0 0;
}

/* 分享区域 */
.i-share {
    display: flex;
    height: 35px;
    justify-content: center;
    align-items: center;
    font-size: 22.19px;
    color: var(--esp-text-grey);
    position: relative;
}

.i-share a img {
    margin-right: 10px;
    width: 30px;
}

.i-share span {
    margin: 10px 20px 0 0;
}

/* 更多菜单 */
.i-share .more-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 4px);
    top: auto;
    background: var(--esp-text-light);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    border-radius: var(--esp-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 9;
    min-width: 100px;
    font-size: 14px;
    line-height: 1.4;
}

.i-share .more-menu li {
    padding: 6px 16px;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
}

.i-share .more-menu li:hover {
    background: #f5f5f5;
}

.i-share .more-menu.show {
    display: block;
}

/* 响应式 */
@media (min-width: 1200px) and (max-width: 1599px) {
    .avatar-wrap {
        width: 80px;
        height: 80px;
    }
    
    .cover-wrap {
        width: 250px;
        height: 200px;
    }
    
    .nick-wrap.nickname-wgt {
        font-size: 22px;
        color: #4f4f4f;
        margin-right: 15px;
    }
    
    .post-time.fc-grey-a {
        font-size: 18px;
        color: #999;
    }
}

/* ==========================================================================
   登录框样式
   ========================================================================== */
.input {
    color: #898a8a;
}

.login-logo img {
    max-width: 231px;
    height: unset;
    padding: 10px;
    border-radius: 10px;
    background-color: #050404;
}

#userinput {
    background-image: url(esp/images/userimg.png);
    background-repeat: no-repeat;
    background-position: 10px 7px;
}

#passinput {
    background-image: url(esp/images/key.png);
    background-repeat: no-repeat;
    position: relative;
    background-position: 10px 7px;
    width: 100%;
}

.login-form-item {
    display: flex;
    position: relative;
    align-items: center;
    flex-wrap: nowrap;
}

.eye-toggle-icon {
    max-width: 18px;
    display: block;
}

.login-form-item span {
    position: absolute;
    left: 12px;
    top: -8px;
    font-size: 15px;
    color: #b2bac2;
    cursor: text;
    display: block;
    line-height: 1;
    padding: 0 7px;
}

.login-form-item input {
    border-radius: 32px !important;
    padding: 10px !important;
    transition: var(--esp-transition);
    border: 1px solid #e8e8e8 !important;
    font-size: 16px !important;
    height: 48px !important;
    padding-left: 36px !important;
    padding-right: 46px !important;
    background-color: rgb(82 76 72) !important;
    box-sizing: border-box !important;
}

.login-np {
    vertical-align: middle;
    font-weight: 800;
}

.login-bottom {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.login-bottom button {
    border-radius: 45px;
    padding: 10px 20px !important;
    width: auto !important;
    min-width: 120px;
    max-width: 160px;
    font-size: 14px;
    font-weight: 500;
}

.login-social-button-bottom {
    border: unset;
}

.login-social-button-bottom > div {
    display: flex;
    font-size: 12px;
    color: #AAAEB3;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.login-social-button i {
    font-size: 26px !important;
    padding: 0 !important;
    border-radius: 50%;
    margin-right: 0 !important;
    background: none !important;
}

/* 清除base style.css的全尺寸伪元素覆盖层 */
.login-social-button-bottom::after {
    display: none !important;
}

/* 覆盖base style.css的.button矩形样式 */
.login-social-button .button {
    background: none !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 !important;
}

.login-np a {
    font-size: 14px !important;
}

#rb {
    background-color: transparent !important;
    border: 0px solid #f39c12 !important;
    color: #868888 !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
}

.modal-content {
    background-image: unset;
    background-color: rgba(40, 40, 40, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    color: #e0e0e0 !important;
}

.recaptcha-form .modal-content {
    background-color: rgba(35, 35, 35, 0.98) !important;
    border: 1px solid rgba(233, 70, 50, 0.2) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.recaptcha-form .modal-content h2 {
    color: #e0e0e0 !important;
}

.recaptcha-form .modal-content p {
    color: #aaa !important;
}

.recaptcha-form .modal-content input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
    border-radius: 6px !important;
}

.recaptcha-button {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.recaptcha-button .button {
    color: #aaa !important;
}

.recaptcha-button .recaptcha-send {
    color: var(--esp-primary, #e94632) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-content-innter {
    color: #e0e0e0;
}

.check-code-img {
    width: 100%;
    position: unset;
    margin-left: 20px;
}

.check-code-img img {
    height: 30px;
}

.active {
    background-color: unset;
}

.site-terms {
    color: rgba(220, 220, 220, 0.95);
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
    background: rgba(233, 70, 50, 0.06) !important;
    border: 1px solid rgba(233, 70, 50, 0.18);
    border-radius: 8px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.site-terms label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.site-terms label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--esp-primary, #e94632);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.site-terms label a {
    color: var(--esp-primary, #e94632) !important;
    font-size: 12px !important;
    text-decoration: none;
    font-weight: 500;
}

.site-terms label a:hover {
    text-decoration: underline;
}

/* 记住账号 + 忘记密码行 */
.login-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 6px 4px;
    font-size: 13px;
    color: rgba(190, 190, 190, 0.85);
}

.login-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.login-remember label:hover {
    color: #fff;
}

.login-remember label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--esp-primary, #e94632);
    cursor: pointer;
    margin: 0;
    border-radius: 3px;
}

.login-remember a {
    font-size: 13px !important;
    color: rgba(190, 190, 190, 0.65) !important;
    transition: color 0.2s;
}

.login-remember a:hover {
    color: var(--esp-primary, #e94632) !important;
}

.login-box-content .login-social-button-bottom a {
    background: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    border: none !important;
    transition: background 0.2s, transform 0.15s;
    min-width: 64px;
}

.login-box-content .login-social-button-bottom a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
}

.login-box-content .login-social-button-bottom a i {
    font-size: 24px !important;
    margin: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.login-box-content .login-social-button-bottom a span {
    font-size: 11px !important;
    color: rgba(200, 200, 200, 0.75) !important;
    position: static !important;
    padding: 0 !important;
    line-height: 1 !important;
    left: auto !important;
    top: auto !important;
}

/* 社交登录分隔线 */
.login-social-button-bottom > div:first-child {
    font-size: 12px;
    color: rgba(160, 160, 160, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px !important;
}

.login-social-button-bottom > div:first-child::before,
.login-social-button-bottom > div:first-child::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.login-social-button-bottom {
    padding: 14px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02) !important;
}

.login-social-button-bottom > div:last-child {
    justify-content: center !important;
    gap: 8px !important;
}

.login-tk {
    color: var(--esp-text-light);
}

.login-box-content a {
    font-size: 14px;
}

/* ==========================================================================
   登录方式Tab切换
   ========================================================================== */
.login-method-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0;
}

.login-method-tabs span {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--esp-text-light, #999);
    cursor: pointer;
    position: relative;
    transition: color 0.25s, font-weight 0.25s;
    user-select: none;
}

.login-method-tabs span::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 2px;
    background: var(--esp-primary, #e94632);
    border-radius: 1px;
    transition: transform 0.25s;
}

.login-method-tabs span.active {
    color: #fff;
    font-weight: 600;
}

.login-method-tabs span.active::after {
    transform: translateX(-50%) scaleX(1);
}

.login-method-tabs span:hover:not(.active) {
    color: #ccc;
}

/* 手机验证码登录提示 */
.sms-login-tip {
    font-size: 12px;
    color: var(--esp-primary, #e94632);
    text-align: center;
    margin-top: 10px;
    opacity: 1;
    padding: 6px 12px;
    background: rgba(233, 70, 50, 0.08);
    border: 1px solid rgba(233, 70, 50, 0.15);
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* 验证码登录表单间距修复 */
.login-box-in .login-check-input.show {
    margin-top: 20px;
}

/* 验证码输入 + 获取按钮 同行布局 */
.sms-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sms-code-row .sms-code-input {
    flex: 1;
    min-width: 0;
}

.sms-code-row .sms-code-input input {
    width: 100% !important;
    border-radius: 32px !important;
    padding: 10px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 16px !important;
    height: 48px !important;
    background-color: rgb(82, 76, 72) !important;
    border: 1px solid #e8e8e8 !important;
    box-sizing: border-box !important;
}

.sms-get-code-btn {
    flex-shrink: 0;
    display: inline-block;
    width: auto !important;
    white-space: nowrap;
    padding: 10px 16px !important;
    border-radius: 45px !important;
    font-size: 13px !important;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    background: var(--esp-primary, #e94632) !important;
    color: #fff !important;
    border: none !important;
    text-align: center;
    line-height: 1;
    height: 48px;
    box-sizing: border-box;
}

.sms-get-code-btn:hover {
    opacity: 0.85;
}

.sms-get-code-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(200, 200, 200, 0.7) !important;
}

/* 扫码登录 - 切换登录方式按钮 */
.mp-switch-login {
    display: block !important;
    width: auto !important;
    margin: 16px auto 0 !important;
    padding: 10px 28px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--esp-primary, #e94632) !important;
    background: rgba(233, 70, 50, 0.08) !important;
    border: 1px solid rgba(233, 70, 50, 0.25) !important;
    border-radius: 45px !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
}

.mp-switch-login:hover {
    background: rgba(233, 70, 50, 0.15) !important;
    border-color: rgba(233, 70, 50, 0.4) !important;
}

.follow-item {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.follow-item h3 {
    font-size: 18px;
    font-weight: bold;
}

/* ==========================================================================
   发布选择框 (post-box-content) 暗色美化
   ========================================================================== */
.post-box-content {
    background: rgba(0, 0, 0, 0.6) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
}

.po-post-in {
    background: rgba(38, 38, 38, 0.95) !important;
    border-radius: 20px !important;
    padding: 40px 30px 30px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.po-post-icons {
    gap: 24px;
}

.po-post-icons > div {
    display: flex;
    justify-content: center;
}

.po-post-icons button {
    align-items: center !important;
    padding: 16px 10px;
    border-radius: 16px !important;
    transition: all 0.25s ease !important;
    gap: 12px;
}

.po-post-icons button:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    transform: translateY(-2px);
}

.po-post-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    background-color: rgba(233, 70, 50, 0.15) !important;
    color: var(--esp-primary, #e94632) !important;
    box-shadow: 0 4px 12px rgba(233, 70, 50, 0.2);
    transition: all 0.25s ease !important;
}

.po-post-icon i {
    font-size: 32px !important;
}

.po-post-icons > div:nth-child(2) .po-post-icon {
    background-color: rgba(252, 166, 30, 0.15) !important;
    color: #fca61e !important;
    box-shadow: 0 4px 12px rgba(252, 166, 30, 0.2);
}

.po-post-icons > div:hover .po-post-icon {
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
    background-color: var(--esp-primary, #e94632) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(233, 70, 50, 0.4);
}

.po-post-icons > div:nth-child(2):hover .po-post-icon {
    background-color: #fca61e !important;
    box-shadow: 0 6px 20px rgba(252, 166, 30, 0.4);
}

.po-post-icons > div:hover i {
    font-size: 36px !important;
}

.po-post-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 1px;
}

.po-post-icons > div:hover .po-post-title {
    color: #fff !important;
    font-size: 16px !important;
}

.po-close-button {
    top: 16px !important;
    right: 16px !important;
}

.po-close-button button {
    color: rgba(255, 255, 255, 0.5) !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.po-close-button button:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   发布模态框 (publish-modal) 暗色美化
   ========================================================================== */
.publish-modal {
    background: rgba(30, 30, 30, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    max-width: 600px !important;
}

.publish-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tab 样式 */
.publish-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    gap: 0;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.02);
}

.publish-tab {
    padding: 14px 20px;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    margin-right: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
}

.publish-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
}

.publish-tab.publish-active {
    border: none;
    border-bottom: 2px solid var(--esp-primary, #e94632);
    background: transparent;
    font-weight: 600;
    color: #fff;
}

/* 文本输入框 */
.publish-modal #content-input,
.publish-modal textarea {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    resize: none !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.publish-modal #content-input:focus,
.publish-modal textarea:focus {
    border-color: var(--esp-primary, #e94632) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(233, 70, 50, 0.1) !important;
}

.publish-modal #content-input::placeholder,
.publish-modal textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* 上传按钮区域 */
.publish-upload-buttons {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
}

.publish-upload-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: all 0.2s ease;
}

.publish-upload-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-1px);
}

.publish-upload-btn span:first-child {
    font-size: 16px;
}

/* 分类选择器区域 */
#levelContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.publish-level {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
}

.publish-btn {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

.publish-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.publish-btn.publish-active {
    background: var(--esp-primary, #e94632);
    color: white;
    border-color: var(--esp-primary, #e94632);
    box-shadow: 0 2px 8px rgba(233, 70, 50, 0.3);
}

.publish-btn .publish-close-btn {
    margin-left: 8px;
    opacity: 0.7;
    cursor: pointer;
}

.publish-btn .publish-close-btn:hover {
    opacity: 1;
}

.publish-selected-path {
    margin: 16px 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.publish-selected-id {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(233, 70, 50, 0.08);
    border-radius: 10px;
    font-family: monospace;
    border: 1px solid rgba(233, 70, 50, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* 预览区域 */
.publish-preview-container {
    margin-top: 12px;
}

.publish-preview-container > h4 {
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.publish-preview-area {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 12px;
    min-height: 80px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

/* 操作按钮容器 */
.publish-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.publish-reset-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.publish-reset-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.publish-btn.publish-publish-btn {
    padding: 10px 28px;
    background: var(--esp-primary, #e94632);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(233, 70, 50, 0.3);
}

.publish-btn.publish-publish-btn:hover {
    background: #d63b28;
    box-shadow: 0 4px 16px rgba(233, 70, 50, 0.4);
    transform: translateY(-1px);
}

.publish-loading,
.publish-error {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.publish-qa-reward-wrapper {
    display: flex;
    align-items: center;
}

.publish-qa-credit-info {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.publish-vote-option-label {
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
}

.publish-vote-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.publish-vote-input:focus {
    border-color: var(--esp-primary);
    box-shadow: 0 0 0 2px rgba(233, 70, 50, 0.15);
}
.publish-vote-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* 投票单选/多选选项 */
.publish-vote-options {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.publish-vote-option-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.publish-vote-option-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}
.publish-vote-option-label input[type="radio"]:checked {
    border-color: var(--esp-primary);
}
.publish-vote-option-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--esp-primary);
}

/* 投票加减按钮 */
.publish-vote-add-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.publish-vote-add-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}
.publish-vote-add-btn[data-mode="minus"] {
    border-color: rgba(233, 70, 50, 0.3);
    color: var(--esp-primary);
}
.publish-vote-add-btn[data-mode="minus"]:hover {
    background: rgba(233, 70, 50, 0.1);
    border-color: var(--esp-primary);
}

/* 投票列表项 */
.publish-vote-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.publish-vote-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.publish-vote-description {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 8px;
}

/* 积分输入框 */
#qa-pay-input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#qa-pay-input:focus {
    border-color: var(--esp-primary);
    box-shadow: 0 0 0 2px rgba(233, 70, 50, 0.15);
}
#qa-pay-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.publish-qa-credit-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* 发布气泡提示 */
.publish-bubble {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--esp-text-light);
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity var(--esp-transition);
    z-index: 99999;
}

.publish-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.publish-confirm-bubble {
    background: var(--esp-text-light);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    min-width: 200px;
}

.publish-confirm-message {
    margin-bottom: 15px;
}

.publish-confirm-buttons {
    display: flex;
    justify-content: space-around;
}

.publish-confirm-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.publish-confirm-btn-confirm {
    background: #007bff;
    color: var(--esp-text-light);
}

.publish-confirm-btn-cancel {
    background: #ccc;
    color: #333;
}

/* ==========================================================================
   ESP 气泡提示
   ========================================================================== */
.esp-bubble-tip {
    animation: espFadeIn 0.3s ease;
}

@keyframes espFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 底线提示 */
.esp-bottom-line {
    text-align: center;
    font-size: 20px;
    color: #999;
    padding: 20px 0;
    border-bottom: 2px solid var(--esp-border-light);
}

/* ==========================================================================
   轮播图优化 - PC端渐变背景自适应
   ========================================================================== */
.slider-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    height: auto;
    min-height: auto;
}

/* 清除原有伪元素 */
.slider-info .slider-info-box::after {
    display: none;
}

/* ==========================================================================
   通用覆盖
   ========================================================================== */
.b2-dot {
    padding: unset !important;
}

.message_ico {
    background-image: url("esp/images/ling.svg");
}
/* ==========================================================================
   登录弹窗修复 - PC端和移动端
   ========================================================================== */

/* 登录弹窗半透明磨砂背景 + 发光阴影边框 */
.login-box-content {
    background: rgba(35, 35, 35, 0.92) !important;
    backdrop-filter: blur(24px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(120%) !important;
    border: 1px solid rgba(233, 70, 50, 0.25) !important;
    box-shadow:
        0 0 15px rgba(233, 70, 50, 0.15),
        0 0 40px rgba(233, 70, 50, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    animation: loginGlow 3s ease-in-out infinite alternate;
}

@keyframes loginGlow {
    0%   { box-shadow: 0 0 15px rgba(233,70,50,0.15), 0 0 40px rgba(233,70,50,0.08), 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06); }
    100% { box-shadow: 0 0 20px rgba(233,70,50,0.25), 0 0 60px rgba(233,70,50,0.12), 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08); }
}

.login-box-content .login-box-top {
    background: transparent !important;
}

/* 输入框图标修复 - 图标在左侧居中，输入内容不侵入图标 */
.login-form-item {
    position: relative !important;
}

.login-form-item input#userinput,
.login-form-item input#passinput {
    padding-left: 45px !important;
    background-size: 20px 20px !important;
    background-position: 12px center !important;
}

/* 验证码输入框和图片各占50%宽度 */
.login-form-item.login-check-input {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

.login-form-item.login-check-input input[name="checkCode"] {
    flex: 1 !important;
    width: 50% !important;
    min-width: 0 !important;
}

.login-form-item.login-check-input .check-code-img {
    flex: 1 !important;
    width: 50% !important;
    position: relative !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-form-item.login-check-input .check-code-img img {
    width: 100% !important;
    max-width: 120px !important;
    height: 38px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

/* ==========================================================================
   侧边栏展开/收缩时的全局内容区域响应
   ========================================================================== */

/* 
 * 布局策略：
 * 1. 头部全宽显示在最上方 (z-index: 7)
 * 2. 侧边栏 fixed 定位在左侧，从头部下方开始 (z-index: 6)
 * 3. 只有内容区域 (.site-content) 使用 margin-left 避开侧边栏
 */

/* 头部保持全宽 - 不需要偏移 */
.site-header-in {
    left: 0 !important;
    width: 100% !important;
    z-index: 7;
}

/* 主内容区域 - 使用 margin-left 避开侧边栏 */
.site-content {
    margin-left: 276px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* footer 跟随侧边栏联动 */
footer#colophon.footer {
    margin-left: 0;
    padding-left: 276px;
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    clear: both;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95) !important;
}

/* footer 底部信息暗色适配 */
footer#colophon .site-footer-nav {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0;
}

footer#colophon .site-footer-nav .wrapper {
    width: 100%;
    max-width: 100%;
}

footer#colophon .footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    height: auto;
    width: 100%;
}

footer#colophon .footer-bottom-left {
    color: rgba(160, 160, 160, 0.7);
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

footer#colophon .footer-bottom-left a {
    color: rgba(180, 180, 180, 0.7) !important;
    font-size: 12px;
}

footer#colophon .footer-bottom-left .copyright {
    color: rgba(160, 160, 160, 0.7);
}

footer#colophon .footer-bottom-left .beian {
    color: rgba(140, 140, 140, 0.6);
}

footer#colophon .footer-bottom-left .beian a {
    color: rgba(140, 140, 140, 0.6) !important;
}

/* 侧边栏收缩时 - 内容和footer恢复全宽 */
body.sidebar-collapsed .site-content {
    margin-left: 0;
}
body.sidebar-collapsed footer#colophon.footer {
    padding-left: 0;
}

/* 移动端不需要偏移 */
@media screen and (max-width: 768px) {
    .site-content,
    body.sidebar-collapsed .site-content {
        margin-left: 0 !important;
    }
    footer#colophon.footer,
    body.sidebar-collapsed footer#colophon.footer {
        padding-left: 0 !important;
    }
    
    .sidebar-container {
        display: none !important;
    }
}

/* PC端隐藏移动端菜单按钮 */
.mobile-menu-toggle,
#esp-mobile-menu-toggle {
    display: none !important;
}

/* ==========================================================================
   搜索页分页导航暗色主题
   ========================================================================== */
.esp-search-page .b2-pagenav.post-nav {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 20px;
}
.esp-search-page .b2-pagenav .ajax-pager .button {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    transition: all 0.2s;
}
.esp-search-page .b2-pagenav .ajax-pager .button:hover {
    background: rgba(233, 70, 50, 0.15);
    border-color: rgba(233, 70, 50, 0.3);
    color: #fff;
}
.esp-search-page .b2-pagenav .ajax-pager .button.selected,
.esp-search-page .b2-pagenav .ajax-pager .button[disabled] {
    background: var(--esp-primary);
    border-color: var(--esp-primary);
    color: #fff;
    cursor: default;
    opacity: 1;
}
.esp-search-page .b2-pagenav .ajax-pager .button.bordernone {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
}
.esp-search-page .b2-pagenav .pager-center {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}
.esp-search-page .b2-pagenav .pager-center input {
    color: #fff;
    background: transparent;
}
.esp-search-page .b2-pagenav .pager-center button {
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
}
.esp-search-page .b2-pagenav .pager-center button:hover {
    color: var(--esp-primary);
}

/* ==========================================================================
   搜索空结果页暗色主题
   ========================================================================== */
/* 修复空结果外层 .box 白色背景 */
.esp-search-page .box:has(.empty-page),
.esp-search-page .box.b2-radius:has(.empty-page) {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
/* 兼容不支持 :has() 的浏览器 - 覆盖所有可能包含 empty-page 的 .box */
.esp-search-page #user-list > .box,
.esp-search-page #user-list > .box.b2-radius,
.esp-search-page .shop-category > .box,
.esp-search-page .post-list > .box {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.esp-search-page .empty-page {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 60px 20px;
    min-height: 280px;
    color: rgba(255, 255, 255, 0.35);
}
.esp-search-page .empty-page p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    margin: 0;
}
.esp-search-page .empty-page i {
    color: rgba(255, 255, 255, 0.15);
    font-size: 64px;
    margin-bottom: 16px;
}
.esp-search-page .empty-page img {
    opacity: 0.4;
    filter: grayscale(1);
}

/* ==========================================================================
   圈子搜索结果 - 已改用 B2 Posts 模块卡片布局（与 post 搜索一致）
   旧的 document-row 样式已移除
   ========================================================================== */

/* 排序项激活动画 */
.esp-sort-item {
    position: relative;
    padding-bottom: 2px;
}
.esp-sort-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--esp-primary);
    border-radius: 1px;
}

/* ==========================================================================
   商品搜索结果 - 卡片内价格样式
   ========================================================================== */
.esp-shop-discount-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--esp-primary);
    background: rgba(233, 70, 50, 0.15);
    border-radius: 4px;
    line-height: 1.5;
    font-weight: 500;
    white-space: nowrap;
}
.esp-shop-price-box {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    margin: 8px 12px;
}
.esp-shop-price {
    color: var(--esp-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.esp-shop-price i {
    font-style: normal;
    font-size: 13px;
    margin-right: 1px;
}
.esp-shop-price b {
    font-weight: 700;
}
.esp-shop-price-original {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    line-height: 1;
}
.esp-shop-price-original i {
    font-style: normal;
    font-size: 11px;
}
.esp-shop-price-original s {
    text-decoration: line-through;
}

/* ==========================================================================
   用户搜索卡片 - 暗色主题适配
   ========================================================================== */
/* 所有搜索卡片 hover 放大动画 */
.esp-search-page .post-list-item .item-in.box,
.esp-search-page .user-search-list li .box.b2-radius {
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.esp-search-page .post-list-item .item-in.box:hover,
.esp-search-page .user-search-list li .box.b2-radius:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
/* 用户卡片背景 */
.esp-search-page .user-search-list li .box.b2-radius {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.esp-search-page .user-search-list li .box.b2-radius:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}
/* 头像边框 */
.esp-search-page .user-search-list li .avatar {
    border-color: rgba(255, 255, 255, 0.15);
}
/* 用户名 */
.esp-search-page .user-s-info h2 {
    color: rgba(255, 255, 255, 0.9);
}
/* 简介区域 */
.esp-search-page .user-s-info-desc {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.45);
}
/* 数据统计区 */
.esp-search-page .user-s-data {
    color: rgba(255, 255, 255, 0.4);
}
.esp-search-page .user-s-data p {
    color: rgba(255, 255, 255, 0.85);
}
.esp-search-page .user-s-data div + div {
    border-left-color: rgba(255, 255, 255, 0.08);
}
/* 关注/私信按钮 */
.esp-search-page .user-s-follow button {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}
.esp-search-page .user-s-follow button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
}
.esp-search-page .user-s-follow button.author-has-follow {
    background: var(--esp-primary);
    color: #fff;
    border-color: var(--esp-primary);
}
.esp-search-page .user-s-follow button.empty {
    background: var(--esp-primary);
    color: #fff;
    border-color: var(--esp-primary);
}
.esp-search-page .user-s-follow button.empty:hover {
    background: var(--esp-primary-dark);
    border-color: var(--esp-primary-dark);
}

/* ========================================================
 * ESP 小工具外层 .box 背景透明（覆盖 B2 默认白色背景）
 * ======================================================== */
.widget.esp-widget-mission.box,
.widget.esp-widget-departure.box,
.widget.esp-widget-activity.box,
.widget.esp-widget-brands.box,
.widget.esp-widget-intel.box,
.widget.esp-widget-qa.box {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
/* ESP 小工具之间的间距 */
.widget.esp-widget-mission.box + .widget,
.widget.esp-widget-departure.box + .widget,
.widget.esp-widget-activity.box + .widget,
.widget.esp-widget-brands.box + .widget,
.widget.esp-widget-intel.box + .widget,
.widget.esp-widget-qa.box + .widget {
    margin-top: 16px !important;
}

/* ========================================================
 * ESP 签到小工具 (.esp-mission-widget)
 * ======================================================== */
.esp-mission-widget {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    padding: 18px;
    color: #e0e0e0;
    margin: 50px 0 10px 0;
}
.esp-mission-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.esp-mission-avatar {
    flex-shrink: 0;
    display: block;
}
.esp-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}
.esp-mission-info {
    flex: 1;
    min-width: 0;
}
.esp-mission-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.esp-mission-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.esp-mission-credit,
.esp-mission-level {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
/* 等级进度条 */
.esp-mission-progress {
    margin-bottom: 14px;
}
.esp-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.esp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--esp-primary), #ff6b5b);
    border-radius: 3px;
    transition: width 0.4s ease;
}
/* 签到按钮区域 */
.esp-mission-action {
    display: flex;
    align-items: center;
    gap: 12px;
}
.esp-checkin-btn {
    flex-shrink: 0;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--esp-primary);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.esp-checkin-btn:hover:not(:disabled) {
    background: var(--esp-primary-dark);
    transform: scale(1.03);
}
.esp-checkin-btn.checked,
.esp-checkin-btn:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    cursor: default;
}
.esp-checkin-result {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}
/* 游客态 */
.esp-mission-guest .esp-checkin-btn {
    width: 100%;
    padding: 10px 0;
}

/* ========================================================
 * ESP 正在发车小工具 (.esp-departure-widget)
 * ======================================================== */
.esp-departure-widget {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    padding: 16px;
    color: #e0e0e0;
}
.esp-departure-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.esp-departure-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.esp-departure-header-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--esp-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.esp-departure-header-link:hover {
    opacity: 0.8;
    color: var(--esp-primary);
}
.esp-departure-calendar-icon {
    width: 18px;
    height: 18px;
}
/* 卡片列表 */
.esp-departure-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.esp-departure-card {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.esp-departure-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.esp-departure-link {
    display: flex;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}
.esp-departure-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.esp-departure-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.esp-departure-card:hover .esp-departure-thumb img {
    transform: scale(1.05);
}
.esp-departure-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.esp-departure-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.esp-departure-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}
.esp-departure-progress-bar-mini {
    display: inline-block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    vertical-align: middle;
}
.esp-departure-progress-fill-mini {
    display: block;
    height: 100%;
    background: var(--esp-primary);
    border-radius: 2px;
}
.esp-departure-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.esp-departure-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.esp-views-icon {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}
.esp-departure-empty {
    text-align: center;
    padding: 30px 0;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}

/* ========================================================
 * ESP 小工具通用头部样式
 * ======================================================== */
.esp-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.esp-widget-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.esp-widget-empty {
    text-align: center;
    padding: 24px 0;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}

/* ========================================================
 * ESP 活动小工具 (.esp-activity-widget)
 * ======================================================== */
.esp-activity-widget {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    padding: 16px;
    color: #e0e0e0;
}
.esp-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.esp-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.esp-activity-item:hover {
    background: rgba(255,255,255,0.06);
    color: inherit;
}
.esp-activity-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.esp-activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.esp-activity-title {
    flex: 1;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================================
 * ESP 品牌小工具 (.esp-brands-widget)
 * ======================================================== */
.esp-brands-widget {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    padding: 16px;
    color: #e0e0e0;
}
.esp-brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}
.esp-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: calc(25% - 8px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.esp-brand-item:hover {
    transform: translateY(-2px);
    color: inherit;
}
.esp-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.esp-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.esp-brand-initial {
    font-size: 18px;
    font-weight: 700;
    color: var(--esp-primary);
}
.esp-brand-name {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ========================================================
 * ESP 情报小工具 (.esp-intel-widget)
 * ======================================================== */
.esp-intel-widget {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    padding: 16px;
    color: #e0e0e0;
}
.esp-intel-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.esp-intel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.esp-intel-item:hover {
    background: rgba(255,255,255,0.06);
    color: inherit;
}
.esp-intel-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
}
.esp-intel-num.hot {
    background: var(--esp-primary);
    color: #fff;
}
.esp-intel-thumb {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
}
.esp-intel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.esp-intel-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.esp-intel-title {
    flex: 1;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.esp-intel-meta {
    flex-shrink: 0;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

/* ========================================================
 * ESP 问答小工具 (.esp-qa-widget)
 * ======================================================== */
.esp-qa-widget {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 12px;
    padding: 16px;
    color: #e0e0e0;
}
.esp-qa-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.esp-qa-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.esp-qa-item:hover {
    background: rgba(255,255,255,0.06);
    color: inherit;
}
.esp-qa-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.esp-qa-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--esp-primary);
    border-radius: 5px;
}
.esp-qa-text {
    flex: 1;
    min-width: 0;
}
.esp-qa-title {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.esp-qa-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.esp-qa-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}
.esp-qa-author {
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.esp-qa-answers {
    flex-shrink: 0;
}