
/* ============== 原有全部样式 原样保留 ============== */
/* 1. 父容器：取消固定 max-width，让它能随窗口缩小 */
/* 仅电脑端/大屏生效：宽度大于 768px 才启用三栏布局 */

.my-custom-video-page .ast-container:not(header .ast-container){
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: calc( 310px + (72vh * 16 / 9) + 0px ) !important;
    margin: 0 auto !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
    min-width: 1000px !important;
    overflow: visible !important;
    
}



/* 2. 主内容区：窗口变窄时自动占满 */
.my-custom-video-page #primary {
    flex: 1 1 auto !important;
    min-width: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
}




/* 4. 侧边栏：固定宽度，不参与挤压 */
.my-custom-video-page #secondary {
   flex: 1 1 auto !important;
    width: 310px !important;
    max-width: 310px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: sticky !important;
    top: 60px !important;
    max-height: calc(100vh - 0px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* 新增：屏蔽横向滚动条，纵向滚动正常保留 */
    
    
    
}



.my-custom-video-page #left-nav {
    flex: 0 0 310px !important;
    width: 310px !important;
    max-width: 310px !important;
    position: sticky !important;
    top: 60px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}


@media screen and (max-width: 1550px) {
    .my-custom-video-page #left-nav {
        display: none !important;
    }
    .my-custom-video-page .ast-container {
        max-width: 100% !important;
        min-width: auto !important;
    }
}






.my-custom-video-page #primary,
.my-custom-video-page #secondary {
    display: flex !important; 
    gap: 0px;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}



/* 最外层统一容器：承载视频+标题+功能栏 */
.my-custom-video-page .video-page-main-wrapper {
    width: 100% !important;
    max-width: calc(72vh * 16 / 9) !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
/* 视频容器：仅做比例、高度、样式 */
.my-custom-video-page .video-container {
    position: relative !important;
    width: 100% !important;
    max-height: 72vh !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background-color: #000 !important;
    border-radius: 8px !important;
}











/* ========== Video.js 播放器适配容器 ========== */
.my-custom-video-page .video-container .video-js {
    width: 100% !important;
    height: 100% !important;
}
/* 标题、功能栏 */
.my-custom-video-page .entry-title,
.my-custom-video-page .custom-element-bar {
    width: 100% !important;
    box-sizing: border-box !important;
}





/* 标题间距 */
.my-custom-video-page .entry-title {
    text-align: left !important;
    margin: 20px 0 5px 0 !important;
    font-size: 20px !important;
    width: 100% !important;
}
/* 元素栏间距 */
.my-custom-video-page .custom-element-bar {
    width: 100% !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    border-bottom: 1px solid #eee !important;
}








/* 评论区全套元素 */
.my-custom-video-page #comment-counter-display,
.my-custom-video-page #custom-comment-form,
.my-custom-video-page .my-custom-comment-list,
.my-custom-video-page #shared-reply-form {
    width: 100% !important;
    max-width: calc(72vh * 16 / 9) !important;
    margin: -15px auto 0 auto !important;
    box-sizing: border-box !important;
}







/* 窗口变窄时隐藏侧边栏 */
@media screen and (max-width: 1000px) {
    .my-custom-video-page #secondary {
        display: none !important;
    }
    .my-custom-video-page .ast-container {
        max-width: 100% !important;
    }
    .my-custom-video-page .video-page-main-wrapper {
        max-width: 100% !important;
    }
}
/* 自定义滚动条外观 */
.my-custom-video-page #secondary::-webkit-scrollbar {
    width: 6px;
}
.my-custom-video-page #secondary::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 6px;
}




.video-Introduction p,
.video-Introduction div,
.entry-content p {
    line-height: 2 !important;
}





/* 评论表单样式 原样保留 */
#custom-comment-form {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    
    
}
#custom-comment-form .comment-form-comment {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#custom-comment-form p {
    margin: 0 !important;
    padding: 0 !important;
}
#custom-submit-btn,
#comment {
    height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 4px !important;
}
#comment {
    padding: 0 8px !important;
    vertical-align: middle !important;
    line-height: 38px !important;
    display: flex !important;
    align-items: center !important;
}
#custom-submit-btn {
    padding: 0 15px !important;
    vertical-align: middle !important;
    line-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#reply-form-ajax {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row-reverse !important;
}
#reply-form-ajax textarea {
    flex: 1 !important;
    box-sizing: border-box !important;
    height: 38px !important;
    padding: 0 8px !important;
    line-height: 38px !important;
    margin: 0 !important;
}
#custom-reply-btn {
    height: 38px !important;
    padding: 0 15px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

















/* 评论框核心修复样式 */
/* 1. 发表评论框的右边界和评论区右边界对齐 */
.my-custom-video-page #custom-comment-form {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0px !important; /* 匹配评论区容器内边距 */
    
}

/* 2. 评论框默认/最小高度为两行，取消右下角拉伸箭头 */
.my-custom-video-page #comment,
.my-custom-video-page #shared-textarea {
    /* 核心：默认/最小两行高度 */
    min-height: calc(2em + 16px) !important; /* 2行文字 + 上下内边距 */
    height: calc(2em + 16px) !important;
    /* 取消右下角拉伸箭头 */
    resize: vertical !important; /* 仅允许垂直拉伸 */
    overflow: auto !important;
    /* 输入到右边界自动换行 */
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    /* 重置行高和对齐方式 */
    line-height: 1.5 !important;
    padding: 8px !important; /* 统一内边距 */
}




/* 修复回复评论框样式统一 */
.my-custom-video-page #reply-form-ajax {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}
.my-custom-video-page #reply-form-ajax textarea {
    min-height: calc(2em + 16px) !important;
    height: calc(2em + 16px) !important;
    resize: vertical !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    line-height: 1.5 !important;
    padding: 8px !important;
}















/* Video.js 控制栏自动渐隐样式 */
.video-js.vjs-user-inactive .vjs-control-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
}
/* 鼠标激活/暂停时，控制栏永久显示 */
.video-js.vjs-user-active .vjs-control-bar,
.video-js.vjs-paused .vjs-control-bar {
    opacity: 1 !important;
    visibility: visible !important;
}


/* 视频中央圆形播放按钮 */

/* 2. 圆形居中播放按钮 */
.video-js .vjs-big-play-button {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    line-height: 80px !important;
    font-size: 30px !important;
    z-index: 2 !important;
}
/* 3. 移除默认按钮边框 */
.video-js .vjs-big-play-button:before {
    border: none !important;
}
/* 4. 按钮悬停效果（可选） */
.video-js .vjs-big-play-button:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
    transition: all 0.2s ease !important;
}
/* 5. 视频画面：填充容器，不裁剪不变形 */
.video-js video {
    object-fit: contain !important; /* 关键：完整显示画面，留白不裁剪 */
    width: 100% !important;
    height: 100% !important;
}













 /* 侧边栏样式 */
.my-custom-video-page .post-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0px;
    border-bottom: 1px solid #eee;
    padding-bottom: 0px;
    
    
}
/* 这是侧边栏图片容器的宽度，必须强制否则会被图片撑开 */
.my-custom-video-page .post-thumb-link {
    display: block;
    width: 300px;
    height: 168.75px;
    position: relative;
    
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    
}
.my-custom-video-page .post-title {
margin: 10px 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: clip;
display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; 
}
.my-custom-video-page .post-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}
.my-custom-video-page .post-thumb-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 12px;
}
.my-custom-video-page .post-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
}
.my-custom-video-page .meta-stats {
    display: flex;
    align-items: center;
    gap: 5px;
}
.my-custom-video-page .post-time {
    margin-left: 10px;
}







/* 全局修改 wp_ulike 点赞按钮尺寸、样式 */
.wpulike {
    padding: 1px 3px !important;
    border-radius: 20px !important;
    
    font-size: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}





/* 底部栏目：和页面主体同宽、同级容器内最底部 */
.my-custom-video-page .bottom-bar {
    width: 100%;
    max-width: calc( (72vh * 16 / 9) ); /* 和页面整体宽度公式一致 */
    box-sizing: border-box;
    margin: 30px auto 0;
    padding: 15px;
    height: 280px; /* 栏目最小高度，自行修改数值 */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
}
/* 移动端适配 */
@media screen and (max-width: 1000px) {
    .my-custom-video-page .bottom-bar {
        max-width: 100%;
        margin: 20px 5px 0;
    }
}





/* 导航栏覆盖页面 */
body.my-custom-video-page,
html.my-custom-video-page,
.my-custom-video-page .site,
.my-custom-video-page .site-content,
.my-custom-video-page .ast-container,
.my-custom-video-page #primary,
.my-custom-video-page #secondary,
.my-custom-video-page .main-content,
.my-custom-video-page .entry-content,
.my-custom-video-page .content-area {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important; /* 可能也需要 */
}





/* 弹窗淡入动画 */
#img-modal-popup {
    opacity: 0;
    transition: opacity 0.3s ease;
}
#img-modal-popup[style*="display: flex"] {
    opacity: 1;
}
.modal-box {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
#img-modal-popup[style*="display: flex"] .modal-box {
    transform: scale(1);
}
/* 折叠时隐藏媒体元素 */
.col-center-content.collapsed img,
.col-center-content.collapsed video,
.col-center-content.collapsed iframe,
.col-center-content.collapsed figure,
.col-center-content.collapsed .wp-block-image {
    display: none !important;
}









#meta-follow-btn {
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #ffffff;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}
#meta-follow-btn.followed {
    background: #000;
    color: #fff;
}
#meta-follow-count-wrap {
    font-size: 14px;
    margin-left: 6px;
}











body.my-custom-video-page {
    transition: padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
body.my-custom-video-page.nav-collapsed {
    padding-left: 40px !important;
}



/* 导航合集标题：单行隐藏溢出 */
#left-nav strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 导航作品标题：两行隐藏溢出 */
#left-nav ul ul a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
}


#left-nav a img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}


#left-nav ul, #left-nav li { list-style: none; }

#left-nav { transition: flex 0.3s ease, width 0.3s ease, padding 0.3s ease; overflow: hidden; }
#left-nav.collapsed {
    flex: 0 0 80px !important;
    width: 50px !important;
    padding: 5px !important;
}
#left-nav.collapsed ul li:not(:first-child),
#left-nav.collapsed ul li:first-child a:last-child {
    display: none !important;
}
#left-nav.collapsed ul li:first-child div {
    justify-content: center;
}
#left-nav.collapsed ul li:first-child div a:last-child {
    display: none;
}
#left-nav.collapsed ul li:first-child div button {
    margin-left: 0 !important;
}
#left-nav ul ul a {
    color: #000 !important;
}
#left-nav ul ul a.current {
    color: #0073aa !important;
    font-weight: bold;
    background: #eef2ff;
}



#left-nav.no-transition {
    transition: none !important;
}



        .my-custom-comment-list, .my-custom-comment-list ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
        .sc-avatar img { border-radius: 50% !important; width: 50px; height: 50px; object-fit: cover; display: block; }
        .social-comment-container { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 10px; }
        .custom-comment-item { margin-bottom: 10px; }
        .avatar-link { display: block; flex-shrink: 0; }
        .depth-1 { margin-left: 0px !important; }
        .depth-2 { margin-left: 50px !important; }
        .comment-content { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
        .show-more, .show-less { cursor: pointer; color: #0073aa; font-size: 12px; display: none; margin-left: 5px; }
        .sc-footer { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 12px; color: #888; }
        .inline-reply-form { margin-top: 10px; padding: 10px; background: #f9f9f9; }
        #reply-title { display: none; }
        .child-hidden { display: none !important; }
        .load-more-btn { cursor: pointer; color: #0073aa; font-size: 12px; margin-left: 50px; margin-top: 5px; display: block; }
        /* 回复按钮样式保持不变 */
        .reply-btn { cursor:pointer; color:#0073aa; }



/* --- 深度修复：强制消除 Astra 主题布局对齐干扰 --- */
/* 1. 彻底清除 Astra 主题的容器 padding 和 margin，防止被强制撑开 */


/* 2. 使用绝对对齐：手动控制视频区和侧边栏的宽度 */
.my-custom-tuwen-page .ast-container {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    gap: 10px;
    min-width: fit-content !important;
    overflow-x: visible !important;
    
}


.article-content-wrapper p,
.article-content-wrapper li,
.article-content-wrapper div {
    line-height: 2.5 !important;
}





.my-custom-tuwen-page #primary {
    flex: 0 0 auto !important;
    width: 900px !important;
    min-width: 900px !important;
    max-width: 900px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    padding-top: 60px !important;
    
    
}



/*清除页面 body 全局顶部空白（如果还有缝隙就加这段）*/
body.my-custom-tuwen-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/*评论区和内容区的间距*/
.my-custom-tuwen-page .article-content-wrapper {
    margin-bottom: 30px; /* 数值越大间距越大 */
}



@media screen and (max-width: 1600px) {
    .my-custom-tuwen-page #left-nav {
        display: none !important;
    }
}




.my-custom-tuwen-page .right-sidebar {
    flex: 0 0 auto !important;
    width: 480px !important;
    min-width: 480px !important;
    height: calc(100vh - 60px) !important;
    position: sticky !important;
    top: 60px !important;
    
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px !important;
    padding: 10px !important;
    overflow: hidden;
    background: transparent !important; /* 取消白色背景，透明 */
    border: none !important; /* 清除所有边框 */
    box-shadow: none !important; /* 若有阴影一并删除 */
}






/* 仅隐藏文章内容区域之后出现的标题 */
.article-content-wrapper + .entry-title,
.video-page-main-wrapper .entry-title:last-child {
    display: none !important;
}


















/* 标题与视频的距离（上方间距）*/
.my-custom-tuwen-page .entry-title {
    text-align: center !important;
    margin: 20px 0 5px 0 !important; /* 这里：第一个 px 就是标题距离上方视频的距离 */
    font-size: 20px !important;
    width: 100% !important;
}

/*  元素栏与标题的距离（下方间距）*/
.my-custom-tuwen-page .custom-element-bar {
    width: 100% !important;
    margin-bottom: 10px !important; /* 这是它与下方内容的距离 */
    padding: 30 !important;     /* 这里的 padding 会撑开内部间距 */
    border-bottom: 1px solid #eee !important;
}

/* Video.js 播放器样式 */

.vjs-big-play-button {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
/* 响应式调整 */
@media screen and (max-width: 768px) {
    .video-js {
        max-height: 300px !important;
    }
}

/* Video.js 核心样式 */
.video-js {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    max-height: 68vh !important;
    background: #000;
    margin: 15px 0;
}
.video-js .vjs-big-play-button {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 50%;
}

/* Video.js 圆形播放按钮 + 画面居中 */
/* 1. 播放器容器：双向挤压，高度自适应窗口 */
.video-js {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;/* 强制 16:9 比例，不拉伸不变形 */
    background: #000 !important;
    margin: 15px 0 !important;
    display: block !important;
}

/* 2. 圆形居中播放按钮 */
.video-js .vjs-big-play-button {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    line-height: 80px !important;
    font-size: 30px !important;
    z-index: 2 !important;
}

/* 3. 移除默认按钮边框 */
.video-js .vjs-big-play-button:before {
    border: none !important;
}

/* 4. 按钮悬停效果（可选） */
.video-js .vjs-big-play-button:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
    transition: all 0.2s ease !important;
}

/* 5. 视频画面：填充容器，不裁剪不变形 */
.video-js video {
    object-fit: contain !important; /* 关键：完整显示画面，留白不裁剪 */
    width: 100% !important;
    height: 100% !important;
}


/* Video.js 控制栏自动渐隐样式 */
.video-js.vjs-user-inactive .vjs-control-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
}
/* 鼠标激活/暂停时，控制栏永久显示 */
.video-js.vjs-user-active .vjs-control-bar,
.video-js.vjs-paused .vjs-control-bar {
    opacity: 1 !important;
    visibility: visible !important;
}












/* 评论表单样式 原样保留 */
#custom-comment-form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
}
#custom-comment-form .comment-form-comment {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#custom-comment-form p {
    margin: 0 !important;
    padding: 0 !important;
}
#custom-submit-btn,
#comment {
    height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 4px !important;
}
#comment {
    padding: 0 8px !important;
    vertical-align: middle !important;
    line-height: 38px !important;
    display: flex !important;
    align-items: center !important;
}
#custom-submit-btn {
    padding: 0 15px !important;
    vertical-align: middle !important;
    line-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#reply-form-ajax {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row-reverse !important;
}
#reply-form-ajax textarea {
    flex: 1 !important;
    box-sizing: border-box !important;
    height: 38px !important;
    padding: 0 8px !important;
    line-height: 38px !important;
    margin: 0 !important;
}
#custom-reply-btn {
    height: 38px !important;
    padding: 0 15px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}












/* 评论框核心修复样式 */
/* 1. 发表评论框的右边界和评论区右边界对齐 */
.my-custom-tuwen-page #custom-comment-form {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px !important; /* 匹配评论区容器内边距 */
}

/* 2. 评论框默认/最小高度为两行，取消右下角拉伸箭头 */
.my-custom-tuwen-page #comment,
.my-custom-tuwen-page #shared-textarea {
    /* 核心：默认/最小两行高度 */
    min-height: calc(2em + 16px) !important; /* 2行文字 + 上下内边距 */
    height: calc(2em + 16px) !important;
    /* 取消右下角拉伸箭头 */
    resize: vertical !important; /* 仅允许垂直拉伸 */
    overflow: auto !important;
    /* 输入到右边界自动换行 */
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    /* 重置行高和对齐方式 */
    line-height: 1.5 !important;
    padding: 8px !important; /* 统一内边距 */
}

/* 3. 鼠标放在评论框上边界显示双向箭头 */
.my-custom-tuwen-page #comment:hover,
.my-custom-tuwen-page #shared-textarea:hover {
    cursor: n-resize !important; /* 上下双向箭头 */
}

/* 修复回复评论框样式统一 */
.my-custom-tuwen-page #reply-form-ajax {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}
.my-custom-tuwen-page #reply-form-ajax textarea {
    min-height: calc(2em + 16px) !important;
    height: calc(2em + 16px) !important;
    resize: vertical !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    line-height: 1.5 !important;
    padding: 8px !important;
}
.my-custom-tuwen-page #reply-form-ajax textarea:hover {
    cursor: n-resize !important;
}















/* ========== 右侧垂直三栏样式（总宽300px，高度 100vh-60px，比例 3:3:4） ========== */
/* 右侧总容器 与 left-sidebar 命名反向 */
/* 右侧总容器 原有样式保留不动 */


/* 栏目1：固定高度 200px */
.my-custom-tuwen-page .right-col-1 {
    flex: 0 0 150px !important; /* 固定尺寸，不伸缩 */
    height: 150px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    /* 隐藏滚动条（可选） */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.my-custom-tuwen-page .right-col-1::-webkit-scrollbar {
    display: none;
}

/* 栏目2：固定高度 200px */
.my-custom-tuwen-page .right-col-2 {
    flex: 0 0 150px !important; /* 固定尺寸，不伸缩 */
    height: 150px;
    overflow-y: auto;
    padding: 3px;
    border: 1px solid #eee;
    border-radius: 4px;
    /* 隐藏滚动条（可选） */
    scrollbar-width: none;
    -ms-overflow-style: none;
    
}
.my-custom-tuwen-page .right-col-2::-webkit-scrollbar {
    display: none;
}
/* 为右侧第二栏的图片容器添加圆角 */
.my-custom-tuwen-page .right-col-2 > div > div {
    border-radius: 8px !important;      /* 圆角大小，可调整 */
    overflow: hidden !important;        /* 确保图片被裁剪成圆角 */
}



/* 栏目3：瓜分剩余所有高度 */
.my-custom-tuwen-page .right-col-3 {
    flex: 1 !important; /* 弹性占满剩余空间 */
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;

    -ms-overflow-style: none;
    
    
}


/* Chrome/Edge/Safari 自定义超细滚动条 */
.my-custom-tuwen-page .right-col-3::-webkit-scrollbar {
    width: 3px; /* 修改这个数字控制粗细 */
}
.my-custom-tuwen-page .right-col-3::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.my-custom-tuwen-page .right-col-3::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.my-custom-tuwen-page .right-col-3::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

















/* 作者信息容器样式 */
.right-col-1 .author-info-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: flex-start; /* 顶部对齐 */
}
.right-col-1 .author-avatar-box {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
}
.right-col-1 .author-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* 头像下方的简介容器，和头像左对齐 */
.right-col-1 .avatar-bio {
    /* width: 120px; 注释/删除固定宽度 */
    margin-top: 16px;/* 这个数值越大，简介越靠下 */
    font-size: 16px;
    color: #000; /* 改为黑色 */
    /* 移除单行截断相关代码 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; 
    line-height: 1.5;
    word-break: break-all; /* 长英文/链接自动换行（可选优化） */
    
}
/* 右侧信息列：名称、关注、发布时间 */
.right-col-1 .author-info-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    margin-top: 0px; /* 新增这一行，数值越大整体越靠下 */
    
    
}
.right-col-1 .author-name {
    font-size: 18px;
    font-weight: 600;
    margin-left: 16px; /* 仅昵称向右偏移 */
}


.right-col-1 #post-profile-follow-btn {
    /* 增大内边距 = 按钮整体变大 */
    padding: 6px 18px; 
    border-radius: 20px;
    border: 1px solid #ccc;
    cursor: pointer;
    align-self: flex-start;
    background: #fff;
    color: #333;
    font-size: 15px; /* 文字字号放大 */
    

}
.right-col-1 #post-profile-follow-btn.followed {
    background: #000;
    color: #fff;
}


.right-col-1 .post-publish-time {
    font-size: 16px;
    color: #000; /* 改为黑色 */
    margin-top: 9px; /* 数值越大，向下偏移越多，按需调整：6/8/10/12px */
}
/* 移除原行内简介样式 */
.right-col-1 .author-bio {
    display: none;
}











/* 右侧图文列表 独立样式 */
/* 右侧图文 独立样式，与左侧完全隔离 */
/* 右侧图文列表 独立样式 */





.right-tuwen-container {
    width: 100%;
}

/* 列表条目整体：左右布局固定100高 */
.my-custom-tuwen-page .right-sidebar .right-col-3 .right-tuwen-item {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #eee !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* 左侧缩略图固定宽高比 */
.right-tuwen-thumb {
    height: 100% !important;
    flex-shrink: 0 !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}
.right-tuwen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.right-tuwen-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 12px;
}

/* 右侧文字容器：垂直弹性，核心！标题在上，meta自动沉底 */
.my-custom-tuwen-page .right-sidebar .right-col-3 .right-tuwen-item > div:nth-child(2) {
    flex: 1 !important;
    height: 100% !important;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
    /* 垂直排布 */
    display: flex !important;
    flex-direction: column !important;
}

/* 标题自动撑开剩余高度，把meta压到最底部 */
.my-custom-tuwen-page .right-sidebar .right-col-3 .right-tuwen-title {
    margin: 0 0 auto 0 !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: 100% !important;
}
.right-tuwen-title a {
    color: #333;
    text-decoration: none;
    display: block;
}

/* 元数据：底部靠右，超高权重强制显示 */
body.my-custom-tuwen-page .right-sidebar .right-col-3 .right-tuwen-meta {
    margin: 75px 0 0 0 !important;
    padding: 0 !important;
    font-size: 12px;
    color: #888;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-left: -230px !important;
}

.right-tuwen-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}
.right-tuwen-time {
    margin-left: 0 !important;
}




























/* 固定评论框到主体内容区视口底部 */
.my-custom-tuwen-page #primary {
    position: relative; /* 作为评论框的定位参考 */
    padding-bottom: 110px !important; /* 加高留白，容纳评论数+评论框 */
}

/* 评论表单容器固定定位 */
.my-custom-tuwen-page #custom-comment-form {
    position: fixed !important;
    left: auto !important;
    right: auto !important;
    bottom: 0 !important; /* 贴视口底部 */
    z-index: 999 !important; /* 确保不被遮挡 */
    background: #fff !important; /* 加白色背景，防止透传 */
    border-top: 1px solid #eee !important; /* 顶部分割线，更美观 */
    padding: 10px !important;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05) !important; /* 底部阴影，提升层级 */
    max-width: 910px !important; /* 匹配主体内容区宽度 */
    width: 910px !important;
    margin: 0 auto !important;
    transform: translateX(-1.5%) !important; /* 重置可能的偏移 */
    
    
    
}


/* 未登录时，评论容器也固定在底部，与登录态宽度一致 */
.my-custom-tuwen-page #respond {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 999 !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
    padding: 10px !important;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05) !important;
    margin: 0 !important;
    box-sizing: border-box !important;

    /* 关键：宽度固定为 960px，与 #primary 一致 */
    width: 960px !important;
    max-width: 960px !important; /* 匹配主体内容区宽度 */
    /* 水平居中 fixed 元素 */
     margin: 0 auto !important;
    transform: translateX(0) !important; /* 重置可能的偏移 */
}

/* 移动端适配：屏幕小于950px时，评论框宽度铺满 */
@media screen and (max-width: 950px) {
    .my-custom-tuwen-page #custom-comment-form {
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        padding: 10px !important;
    }
}

/* 修复回复表单不被固定评论框遮挡 */
#reply-form-container {
    margin-bottom: 110px !important; /* 同步加高 */
}




/* ========== 新增：评论数量固定样式 ========== */
/* 评论数外层容器：负责固定定位、整体布局 */
/* 评论外层容器修复：加高层级+白色背景隔绝下方内容 */
.my-custom-tuwen-page .comment-count-wrap {
    position: fixed !important;
    bottom: 68px !important;
    z-index: 9999 !important; /* 大幅提升层级，杜绝被遮挡 */
    
    width: 910px !important;
    
   
    
    background: #ffffff !important; /* 纯白背景，完全遮挡下方头像文字 */
    
    padding: 15px 10px !important;
    /* 上下padding直接撑开容器高度：上下数值越大，容器越高 */
    /* 第一个6px = 上内边距，第二个10px = 左右内边距 */
    
    /* 居中对齐关键配置 */
    
    margin-left: 0px !important;
}




/* 评论数量容器内的元数据信息，隐藏评论栏内的作者头像、昵称整行 */
.my-custom-tuwen-page .comment-count-wrap .moved-element-bar > div > a {
    display: none !important;
}
/* 隐藏关注按钮 */
.my-custom-tuwen-page .comment-count-wrap #follow-btn {
    display: none !important;
}


/* 清除内部文字负边距，避免向上穿透 */
.my-custom-tuwen-page #comment-counter-display {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* 移动端同步 */
@media screen and (max-width: 950px) {
    .my-custom-tuwen-page .comment-count-wrap {
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        bottom: 42px !important;
    }
}



/* 消除发表评论框移动后留下的空白 */
#reply-form-container {
    margin-bottom: -20px !important;
}











.my-custom-tuwen-page .post-interact-buttons {
    flex-shrink: 0;
}
.my-custom-tuwen-page .post-interact-buttons > div:hover {
    color: #e74c3c;
    transition: color 0.2s ease;
}
/* 适配移动端 */
@media screen and (max-width: 950px) {
    .my-custom-tuwen-page .comment-count-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .my-custom-tuwen-page .post-interact-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}















/* ===== 分享弹窗样式（仅本模板） ===== */
.tuwen-share-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    z-index: 9999999;
    width: 420px;
    box-sizing: border-box;
}
.tuwen-share-modal .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.tuwen-share-modal .share-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.tuwen-share-modal .share-input-row input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}
.tuwen-share-modal .share-input-row .copy-btn {
    padding: 8px 16px;
    background: #2d8cf0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

















.my-custom-tuwen-page #left-nav {
    flex: 0 0 400px !important;
    width: 400px !important;
    padding: 10px 0 !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 60px) !important;
    position: sticky !important;
    top: 60px !important;
    align-self: flex-start !important;
    transition: flex 0.3s ease, width 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}
.my-custom-tuwen-page #left-nav.collapsed {
    flex: 0 0 80px !important;
    width: 50px !important;
    padding: 5px !important;
}
.my-custom-tuwen-page #left-nav.collapsed ul li:not(:first-child),
.my-custom-tuwen-page #left-nav.collapsed ul li:first-child a:last-child {
    display: none !important;
}
.my-custom-tuwen-page #left-nav.collapsed ul li:first-child div {
    justify-content: center;
}
.my-custom-tuwen-page #left-nav.collapsed ul li:first-child div a:last-child {
    display: none;
}
.my-custom-tuwen-page #left-nav.collapsed ul li:first-child div button {
    margin-left: 0 !important;
}
.my-custom-tuwen-page #left-nav strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.my-custom-tuwen-page #left-nav ul ul a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
    color: #000 !important;
    padding-left: 20px !important;
}
.my-custom-tuwen-page #left-nav ul ul a.current {
    color: #0073aa !important;
    font-weight: bold;
    background: #eef2ff;
}
.my-custom-tuwen-page #left-nav a img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}
.my-custom-tuwen-page #left-nav ul,
.my-custom-tuwen-page #left-nav li {
    list-style: none;
}
.my-custom-tuwen-page #left-nav.no-transition {
    transition: none !important;
}












#img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999998;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#lightbox-close,
#lightbox-prev,
#lightbox-next {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 40px;
    z-index: 10;
}
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
}
#lightbox-prev {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
#lightbox-next {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
#lightbox-counter {
    color: #fff;
    font-size: 16px;
    margin-top: 15px;
}



                .my-custom-comment-list, .my-custom-comment-list ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
                .sc-avatar img { border-radius: 50% !important; width: 50px; height: 50px; object-fit: cover; display: block; }
                .social-comment-container { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 10px; }
                .custom-comment-item { margin-bottom: 10px; }
                .avatar-link { display: block; flex-shrink: 0; }
                .depth-1 { margin-left: 0px !important; }
                .depth-2 { margin-left: 50px !important; }
                .comment-content { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
                .show-more, .show-less { cursor: pointer; color: #0073aa; font-size: 12px; display: none; margin-left: 5px; }
                .sc-footer { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 12px; color: #888; }
                .inline-reply-form { margin-top: 10px; padding: 10px; background: #f9f9f9; }
                #reply-title { display: none; }
                .child-hidden { display: none !important; }
                .load-more-btn { cursor: pointer; color: #0073aa; font-size: 12px; margin-left: 50px; margin-top: 5px; display: block; }
                /* 新增：回复表单预设容器 */
                #reply-form-container { position: relative; }



/* ========== 核心布局CSS ========== */
/* 1. 父容器：全屏三栏 */
/* 仅电脑端/大屏生效：宽度大于 768px 才启用三栏布局 */
@media (min-width: 768px) {
.my-custom-jingxuan-page {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 100vh !important;
    width: 100% !important;
    background: #fff !important;
    overflow: hidden !important; 
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center  !important;
    margin-left: 100px !important;
    min-width: calc(600px + 600px + 600px) !important;
}
}
/* 2. 左侧边栏 */
.my-custom-jingxuan-page #secondary {
    display: block !important;
    flex: 0 0 200px !important;
    width: 200px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    background: #fff !important;
    order: 1 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    
    
    margin-top: 0px !important; /* 留白20px就写-20px，按需修改 */
    padding-top: 60px !important;
}
/* 3. 中间视频主容器 */
.my-custom-jingxuan-page .video-page-main-wrapper {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column  !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
    order: 2 !important;
    overflow: hidden !important;
    
    box-sizing: border-box !important;
    position: relative;
    margin: 0;
    padding: 0;
    max-width: calc((100vh - 60px) * 9 / 16) !important;
    width: 100% !important;
    
    
    height: calc(100vh - 60px) !important;
    top: 60 !important;
}
/* 4. 右侧评论区 修复1：固定整体高度+滚动条占位，防止布局上移 */
.my-custom-jingxuan-page .comments-section-wrapper {
    flex: 0 0 465px !important;
    width: 465px !important;
    min-width: 465px !important;
    height: 100vh !important;
    overflow: hidden !important;
    background: #fff !important;
    order: 3 !important;
    padding: 10px !important;
    box-sizing: border-box !important
}
/* 评论列表：固定区域、独立滚动，容器高度不变 修复布局上移 */
.my-custom-jingxuan-page .my-custom-comment-list {
    height: calc(100vh - 370px) !important;/* 评论列表最底部距离页面底部的距离 */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* 滚动条永久占位，避免宽度变化挤压布局 */
    scrollbar-gutter: stable !important;
    
}
/* 评论滚动条 */
.my-custom-jingxuan-page .my-custom-comment-list::-webkit-scrollbar { width: 6px; }
.my-custom-jingxuan-page .my-custom-comment-list::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 6px; }
.my-custom-jingxuan-page .my-custom-comment-list, 
.my-custom-jingxuan-page .my-custom-comment-list ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    
    
}
.my-custom-jingxuan-page .sc-avatar img { 
    border-radius: 50% !important; 
    width: 50px !important; 
    height: 50px !important; 
    object-fit: cover; 
    display: block;
}
.my-custom-jingxuan-page .social-comment-container { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 10px; 
}

/* margin-bottom是两条评论之间的距离参数，评论滚动条 */
.my-custom-jingxuan-page .custom-comment-item { margin-bottom: 10px; }
.my-custom-jingxuan-page .avatar-link { display: block; flex-shrink: 0; }
.my-custom-jingxuan-page .comment-content { 
    display: -webkit-box; 
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    word-break: break-all; 
}
.my-custom-jingxuan-page .show-more, .my-custom-jingxuan-page .show-less { 
    cursor: pointer; 
    color: #0073aa; 
    font-size: 12px; 
    display: none; 
    margin-left: 5px; 
}
.my-custom-jingxuan-page .sc-footer { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: 5px; 
    font-size: 12px; 
    color: #888; 
}
.my-custom-jingxuan-page .inline-reply-form { 
    margin-top: 10px; 
    padding: 10px; 
    background: #f9f9f9;
}
.my-custom-jingxuan-page .child-hidden { display: none !important; }
.my-custom-jingxuan-page .load-more-btn { 
    cursor: pointer; 
    color: #0073aa; 
    font-size: 12px; 
    margin-left: 50px; 
    margin-top: 5px; 
}
/* 评论表单 */
.my-custom-jingxuan-page .custom-comment-form { margin-top: 0 !important; padding-top: 0 !important; }
.my-custom-jingxuan-page .custom-comment-form p { margin: 0 !important; }





/* ========== 9:16 竖屏视频 + Video.js 适配样式 ========== */
/* 统一适配：原生播放器 + Video.js */
/* ========== 9:16 竖屏视频 + Video.js 适配样式 ========== */
.video-ratio-wrap {
    position: relative;
    height: calc(100vh - 60px) !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0;
    border: none;
    overflow: hidden !important; /* 改为 hidden，避免内容溢出 */
    display: flex;
    flex-direction: column;
}
/* Video.js 播放器主体：高度优先自适应 */
.video-ratio-wrap .video-js {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 45px) !important; /* 预留45px给控制栏 */
    object-fit: cover !important; /* 完整显示画面，不裁剪 */
    display: block !important;
    border: none !important;
    background: #000 !important;
}
/* 控制栏固定在容器最底部 */
.video-ratio-wrap .vjs-control-bar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 45px !important;
    z-index: 10 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.7) !important;
}
/* ========== 16:9 横屏视频 专用样式 ========== */
.video-ratio-wrap.landscape {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}
.video-ratio-wrap.landscape .video-js {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 45px) !important;
    object-fit: contain !important;
}
.video-ratio-wrap.landscape .vjs-control-bar {
    position: static !important;
    margin-top: 0 !important;
}
/* 评论区 & 固定评论框 */
.comments-section-wrapper {
    position: relative !important;
    top: 60px !important;
}
.comments-section-wrapper > div:nth-last-child(2) {
    position: fixed !important;
    bottom: 0px !important;
    width: inherit !important;
    background: #fff !important;
    padding: 0px !important;
    margin : 0px !important;
    border-top: 1px solid #eee !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
}
.comments-section-wrapper::-webkit-scrollbar {
    width: 3px !important;
}
.comments-section-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}
.comments-section-wrapper::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 3px !important;
}
/* 二级评论缩进 */
.my-custom-jingxuan-page .custom-comment-item.depth-2 {
    margin-left: 65px !important;
    margin-top: 0px !important;
}




/* 响应式 */
@media (max-width: 1800px) {
    .my-custom-jingxuan-page #secondary {
        display: none !important;/* 侧边栏隐藏 */
    }
    .my-custom-jingxuan-page {
        min-width: unset !important;
        /* 新增居中关键代码 */
        justify-content: center !important;
        margin-left: 0 !important; /* 清除左侧150px偏移 */
    }
    .my-custom-jingxuan-page .comments-section-wrapper {
        display: none !important;/* 评论区隐藏 */
    }
    .my-custom-jingxuan-page .video-page-main-wrapper {
        flex: unset !important;
        max-width: calc((100vh - 60px) * 9 / 16) !important;/* 当页面缩放时保持你原本固定尺寸公式 */
    }
    .video-ratio-wrap {
        max-width: 100% !important;
        max-height: 100vh !important;
        aspect-ratio: 9/16 !important;
    }
}
@media screen and (max-width: 1024px) {
    .my-custom-jingxuan-page #secondary,
    .my-custom-jingxuan-page .comments-section-wrapper {
        display: none !important;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1400px) {
    .my-custom-jingxuan-page .comments-section-wrapper {
        display: none !important;
    }
}
/* 新增：手机端 单独适配，不改动原有任何样式 */
@media (max-width: 767px) {
    .my-custom-jingxuan-page {
        min-width: unset !important;
    }
    .my-custom-jingxuan-page #secondary {
        display: none !important;
    }
    .my-custom-jingxuan-page .comments-section-wrapper {
        display: none !important;
    }
    .my-custom-jingxuan-page .video-page-main-wrapper {
        flex: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .video-ratio-wrap {
        max-width: 100% !important;
        aspect-ratio: 9/16 !important;
    }
    /* 手机弹出评论区：关键修复 */
    .comments-section-wrapper.is-open {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 99999 !important;
        background: #fff !important;
        overflow: hidden !important;
    }
    /* 评论列表：占满中间、可滚动 */
    .comments-section-wrapper.is-open > ul.my-custom-comment-list {
        flex: 1 !important;
        overflow-y: auto !important;
        padding-bottom: 80px !important;
        scrollbar-gutter: stable !important;
    }
    /* 评论框：取消 fixed，正常流显示在最下面 */
    .comments-section-wrapper > div:nth-last-child(2) {
        position: relative !important;
        bottom: auto !important;
        width: 100% !important;
    }
}

















/* 表单整体：按钮左，输入框右 */
#custom-comment-form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
}
#custom-comment-form .comment-form-comment {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#custom-comment-form p {
    margin: 0 !important;
    padding: 0 !important;
}
#custom-submit-btn,
#comment {
    height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 4px !important;
}
#comment {
    padding: 0 8px !important;
    vertical-align: middle !important;
    line-height: 38px !important;
    display: flex !important;
    align-items: center !important;
}
#custom-submit-btn {
    padding: 0 15px !important;
    vertical-align: middle !important;
    line-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* 回复表单整体 */
#reply-form-ajax {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-direction: row-reverse !important;
}
#reply-form-ajax textarea {
    flex: 1 !important;
    box-sizing: border-box !important;
    height: 38px !important;
    padding: 0 8px !important;
    line-height: 38px !important;
    margin: 0 !important;
}
#custom-reply-btn {
    height: 38px !important;
    padding: 0 15px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
/* 页面切换过渡 */
html, body {
    transition: opacity 0.2s ease;
}
.page-fade-out {
    opacity: 0;
}
/* 评论框核心修复样式 */
/* 1. 发表评论框的右边界和评论区右边界对齐 */
.my-custom-jingxuan-page #custom-comment-form {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 10px !important; /* 匹配评论区容器内边距 */
}
/* 2. 评论框默认/最小高度为两行，取消右下角拉伸箭头 */
.my-custom-jingxuan-page #comment,
.my-custom-jingxuan-page #shared-textarea {
    /* 核心：默认/最小两行高度 */
    min-height: calc(2em + 16px) !important; /* 2行文字 + 上下内边距 */
    height: calc(2em + 16px) !important;
    /* 取消右下角拉伸箭头 */
    resize: vertical !important; /* 仅允许垂直拉伸 */
    overflow: auto !important;
    /* 输入到右边界自动换行 */
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    /* 重置行高和对齐方式 */
    line-height: 1.5 !important;
    padding: 8px !important; /* 统一内边距 */
}
/* 3. 鼠标放在评论框上边界显示双向箭头 */
.my-custom-jingxuan-page #comment:hover,
.my-custom-jingxuan-page #shared-textarea:hover {
    cursor: n-resize !important; /* 上下双向箭头 */
}
/* 修复回复评论框样式统一 */
.my-custom-jingxuan-page #reply-form-ajax {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}
.my-custom-jingxuan-page #reply-form-ajax textarea {
    min-height: calc(2em + 16px) !important;
    height: calc(2em + 16px) !important;
    resize: vertical !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    line-height: 1.5 !important;
    padding: 8px !important;
}
.my-custom-jingxuan-page #reply-form-ajax textarea:hover {
    cursor: n-resize !important;
}
/*[jingxuan]必须和single-jingxuan.php模板统一，否则前端会错乱不统一*/
/* 清除WP正文容器默认样式，适配短代码嵌套环境 */
/* 清除WP正文容器默认样式，适配短代码嵌套环境 */
.entry-content, .post-content, .content-area,
#content, .site-content, .main-content, .page-content,
article, .wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* 仅精选页禁止页面滚动；其它文章页保持正常滚动 */
body.my-custom-jingxuan-page {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
}
/* 三栏根容器高度 */
.my-custom-jingxuan-page {
    min-height: 100vh !important;
    height: 100vh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* 左侧栏顶部间距统一 */
.my-custom-jingxuan-page #secondary {
    margin-top: 0 !important;
    padding-top: 60px !important;
}
/* 视频中央圆形播放按钮 */
/* 2. 圆形居中播放按钮 */
.video-js .vjs-big-play-button {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    line-height: 80px !important;
    font-size: 30px !important;
    z-index: 2 !important;
}
/* 3. 移除默认按钮边框 */
.video-js .vjs-big-play-button:before {
    border: none !important;
}
/* 4. 按钮悬停效果（可选） */
.video-js .vjs-big-play-button:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
    transition: all 0.2s ease !important;
}
/* 5. 视频画面：填充容器，不裁剪不变形 */
.video-js video {
    object-fit: contain !important; /* 关键：完整显示画面，留白不裁剪 */
    width: 100% !important;
    height: 100% !important;
}
/* Video.js 控制栏自动渐隐样式 */
.video-js.vjs-user-inactive .vjs-control-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
}
/* 鼠标激活/暂停时，控制栏永久显示 */
.video-js.vjs-user-active .vjs-control-bar,
.video-js.vjs-paused .vjs-control-bar {
    opacity: 1 !important;
    visibility: visible !important;
}








/* 侧边栏滚动条 */
.my-custom-jingxuan-page #secondary::-webkit-scrollbar { width: 3px; }
.my-custom-jingxuan-page #secondary::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 3px; }
/* 滚动条移至左侧 */
.my-custom-jingxuan-page #secondary {
    direction: rtl !important;
}
/* 还原内部文字正常从左到右排版 */
.my-custom-jingxuan-page #secondary > * {
    direction: ltr !important;
}

/* 侧边栏列表 */
/* 侧边栏列表 */
.my-custom-jingxuan-page .post-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.my-custom-jingxuan-page .post-thumb-link {
    display: block;
    width: 100%;
    /* 锁定容器比例 宽:高 = 0.7 : 1 */
    aspect-ratio: 0.7 / 1;
    background: #f0f0f0;
    /* 8px 圆角 */
    border-radius: 8px;
    overflow: hidden; /* 超出部分裁剪，配合圆角生效 */
    position: relative;
}
.my-custom-jingxuan-page .post-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 填满容器，按容器比例裁剪图片 */
    object-fit: cover;
}
.my-custom-jingxuan-page .post-title {
    margin: 10px 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}





/*发表评论上方的卡片栏目*/
.comment-top-block {
    width: 100% !important;
    height: 165px !important;/*这个参数受这个参数的影响.my-custom-comment-list*/
    box-sizing: border-box !important;
    margin: 0px 0 !important;
    padding: 3px !important;
    background: #f8f8f8 !important;
    border: 1px solid #eee !important;
    overflow-y: auto !important;
    border-radius: 8px; /* ✅ 圆角，数值越大弧度越大 */
    
}
.comment-top-block img {
    border-radius: 8px !important;
}






/* 评论区顶部作品标题单行省略 */
/* 标题外层容器 */
.comment-title-wrap {
    width: 100%;
    padding: 10px;
    margin-top: 20px !important;
    margin-bottom: -40px !important; /* 修改这个数值，控制标题到评论框距离 */
}
/* 单行省略标题 */
.comment-title-wrap .post-title-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}
/* 控制标题块与下方评论框间距，修改第三个数值 */
.comment-top-block {
    margin: 0 0 -12px 0 !important;
    
}
