 /*.main {
    margin: 0 auto;
    padding: 40px 0px 0px 0px;
    background-color: #f8f8f8;
    min-height: 100%;
    box-sizing: border-box;
}*/
 .pagetitle {
     -moz-user-select: none;
     /*火狐*/
     -webkit-user-select: none;
     /*webkit浏览器*/
     -ms-user-select: none;
     /*IE10*/
     -khtml-user-select: none;
     /*早期浏览器*/
     user-select: none;
 }

 /* 首页轮播入口 */
 .videoBar {
     width: 1500px;
     /* height: 300px; */
     margin: 0 auto;
     padding: 0 50px;
     box-sizing: border-box;
     position: relative;
     -moz-user-select: none;
     /*火狐*/
     -webkit-user-select: none;
     /*webkit浏览器*/
     -ms-user-select: none;
     /*IE10*/
     -khtml-user-select: none;
     /*早期浏览器*/
     user-select: none;
 }

 .videoBar .swiper-container2 {
     height: 100%;
     width: 100%;
     overflow: hidden
 }

 .videoBar .swiper-slide {
     /* background: linear-gradient(to right, #8f41e9, #578aef); */
     /* border: 2px solid #fff; */
     box-sizing: border-box;
     color: #fff;
     font-size: 40px;
     /*  width: 280px!important;*/
     position: relative;
 }

 .videoBar .swiper-button-prev,
 .videoBar .swiper-button-next {
     background-color: rgba(0, 0, 0, 0.3);
     width: 44px;
     height: 60px;
     border-radius: 4px;
 }

 .videoBar .swiper-button-prev {
     left: 0px;
 }

 .videoBar .swiper-button-next {
     right: 0px;
 }

 /* 首页轮播图样式 */
 .videoBox {
     display: block;
     -moz-user-select: none;
     /*火狐*/
     -webkit-user-select: none;
     /*webkit浏览器*/
     -ms-user-select: none;
     /*IE10*/
     -khtml-user-select: none;
     /*早期浏览器*/
     user-select: none;
     margin: 10px;
 }

 .videoBoxInner {
     padding: 10px;
     background-color: #fff;
 }

 .videoBox:hover .videoBoxInner {
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 }

 .videoImgBox {
     position: relative;
     width: 100%;
     padding-top: 66.67%;
     overflow: hidden;
 }

 .videoImgBox img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     transform: scale(1);
     transition: all 0.3s;
 }

 .videoBox:hover .videoImgBox img {
     transform: scale(1.05);
 }

 .videoImgBox .playIcon {
     position: absolute;
     bottom: 8px;
     right: 8px;
     width: 40px;
     height: 40px;
     background-image: url("/images/HX/playIcon.png");
     background-size: cover;
     ;
     border-radius: 50%;
     display: flex;
     justify-content: center;
     align-items: center;
     transform: scale(1);
     transition: all 0.3s;
     z-index: 1;
 }

 .videoBox:hover .videoImgBox .playIcon {
     transform: scale(1.05);
 }

 .videoBox h3 {
     font-size: 18px;
     color: #333;
     height: 22px;
     line-height: 22px;
     /*    overflow: hidden;*/
     /*    text-overflow: ellipsis;*/
     margin: 10px 8px 0;
     white-space: nowrap;
     width: 100%;
     overflow: hidden;
     text-overflow: ellipsis;
     /*    -webkit-line-clamp: 2;
    Display: -webkit-box;
    -webkit-box-orient: vertical;*/
     transition: all 0.3s;
 }

 .videoBox:hover h3 {
     color: #5bb27e;
 }

 /* 主体 */
 .novelsMain {
     width: 1400px;
     margin: 0 auto;
     min-height: calc(100vh - 60px - 100px);
     overflow-y: auto;
     box-sizing: border-box;
     padding: 15px;
 }

 /* 将宽度设为0，滚动条就会隐藏。 */
 ::-webkit-scrollbar {
     width: 0;
 }

 /* 隐藏滚轮。 */
 ::-webkit-scrollbar {
     display: none;
 }

 /* 瀑布流 */


 /* fluid 5 columns */
 .grid-item {
     padding: 10px;
     width: calc(20% - 10px);
     box-sizing: border-box;
     transition: all 0.2s;
     margin-bottom: 20px;
     background-color: #fff;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
     -moz-user-select: none;
     /*火狐*/
     -webkit-user-select: none;
     /*webkit浏览器*/
     -ms-user-select: none;
     /*IE10*/
     -khtml-user-select: none;
     /*早期浏览器*/
     user-select: none;
 }

 .grid-item:hover {
     cursor: pointer;
     background-color: #fff;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
 }

 .imageBox {
     position: relative;
     width: 100%;
     padding-top: 66.67%;
     overflow: hidden;
 }

 .imageBox img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     transform: scale(1);
     transition: all 0.3s;
 }

 .grid-item:hover .imageBox img {
     transform: scale(1.05);
 }

 .imageBox .playIcon {
     position: absolute;
     bottom: 8px;
     right: 8px;
     width: 40px;
     height: 40px;
     background-image: url("/images/MainNovel/playIcon.png");
     background-size: cover;
     ;
     border-radius: 50%;
     display: flex;
     justify-content: center;
     align-items: center;
     transform: scale(1);
     transition: all 0.3s;
     z-index: 1;
 }

 .grid-item:hover .imageBox .playIcon {
     transform: scale(1.05);
 }

 .textInfo .title {
     font-size: 18px;
     color: #333;
     max-height: 22px;
     min-height: 22px;
     line-height: 22px;
     white-space: nowrap;
     width: 100%;
     overflow: hidden;
     text-overflow: ellipsis;
     margin: 10px 0;
     /*    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px 0;
    -webkit-line-clamp: 2;
    Display: -webkit-box;
    -webkit-box-orient: vertical;*/
     transition: all 0.3s;
 }

 .grid-item:hover .textInfo .title,
 .videoItem:hover .textInfo .title {
     color: #5bb27e;
 }

 .textInfo .desc {
     font-size: 14px;
     color: #979797;
     margin: 0px;
     max-height: 162px;
     min-height: 18px;
     line-height: 18px;
     overflow: hidden;
     text-overflow: ellipsis;
     -webkit-line-clamp: 9;
     Display: -webkit-box;
     -webkit-box-orient: vertical;
 }

 /* 播放页 */
 .playerPage {
     margin-top: 15px;
     width: 100%;
     /* height: 100%; */
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     height: calc(100vh - 60px - 130px);
 }

 .playerBox {
     position: relative;
     height: 100%;
     width: 58.6%;
 }

 .playerInfo {
     box-sizing: border-box;
     position: absolute;
     bottom: 60px;
     left: 0;
     z-index: 1;
     width: 100%;
     /* background-color: #333; */
     /* display: flex;
  justify-content: space-between;
  align-items: center; */
     padding: 0 16px;
 }

 .playerInfo h2 {
     font-size: 18px;
     color: #fff;
     max-height: 44px;
     min-height: 22px;
     line-height: 22px;
     overflow: hidden;
     text-overflow: ellipsis;
     margin: 10px 0;
     -webkit-line-clamp: 2;
     Display: -webkit-box;
     -webkit-box-orient: vertical;
     text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 }

 .playerInfo p {
     font-size: 14px;
     color: #fff;
     max-height: 162px;
     min-height: 18px;
     line-height: 18px;
     overflow: hidden;
     text-overflow: ellipsis;
     -webkit-line-clamp: 3;
     Display: -webkit-box;
     -webkit-box-orient: vertical;
     text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
 }

 .playerInfo h2 a {
     color: #fff;
     font-size: 18px;
 }

 .playerInfo p a {
     color: #fff;
     font-size: 16px;
 }

 #dplayerPCBox,
 #dplayerH5Box {
     width: 100%;
     height: 100%;
     position: relative;
 }

 #dplayerPC {
     width: 100%;
     height: 100%;
     position: relative;
 }

 #dplayerH5 {
     z-index: 100;
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
 }

 #dplayerH5Box .swiper-slide {
     background-color: #000;
     position: relative;
 }

 #dplayerH5Box .swiper-slide .dplayerH5 {
     /* position: absolute;
  top: 0;
  left: 0; */
     width: 100%;
     height: 100%;
 }

 /* #dplayerH5Box .swiper-slide::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 60px;
  height: 60px;
  background-image: url("/images/MainNovel/playIcon.png");
  background-size: cover;;
} */
 #dplayerH5Box .swiper-container {
     width: 100%;
     height: 100%;
 }

 .sliderBox {
     width: calc(41.4% - 15px);
     max-height: 100%;
     overflow-y: auto;
 }

 .sliderBox .bookbox {
     box-sizing: border-box;
     padding: 16px;
     width: 100%;
     max-width: none;
     margin: 0 0 0 0;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
     background-color: #333;
     -moz-user-select: none;
     /*火狐*/
     -webkit-user-select: none;
     /*webkit浏览器*/
     -ms-user-select: none;
     /*IE10*/
     -khtml-user-select: none;
     /*早期浏览器*/
     user-select: none;
 }

 .sliderBox .bookbox .bookinfo {
     padding: 0;
     min-height: 150px;
     max-width: 100%;
 }

 .sliderBox .bookbox .title b a {
     color: #fff;
 }

 .sliderBox .bookbox .title b a:hover {
     color: #5bb27e;
 }

 .sliderBox .bookbox .cover img {
     transition: all 0.3s;
     transform: scale(1);
 }

 .sliderBox .bookbox .cover img:hover {
     transform: scale(1.05);
 }

 .sliderBox .pagetitle {
     padding-top: 0;
 }

 .videoList {
     display: flex;
     justify-content: flex-start;
     align-items: flex-start;
     flex-wrap: wrap;
     width: 100%;
 }

 .videoItem {
     box-sizing: border-box;
     padding: 10px;
     cursor: pointer;
     background-color: #fff;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
     width: calc(50% - 6px);
     margin-bottom: 16px;
     transition: all 0.3s;
 }

 .videoItem:nth-child(2n) {
     margin-left: 12px;
 }

 .videoItem:hover {
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
 }

 .videoItem:hover .imageBox img {
     transform: scale(1.05);
 }

 .videoItem .textInfo .title {
     margin-bottom: 0;
 }


 .playerInfoBtn {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-top: 20px;
 }

 .playerInfoBtn a {
     display: flex;
     justify-content: center;
     align-items: center;
     height: 36px;
     width: 48.5%;
     color: #fff;
     font-weight: bold;
     border-radius: 4px;
     cursor: pointer;
     font-size: 16px;
 }

 .playerInfoBtn a:nth-child(1) {
     background-color: #a666ff;
 }

 .playerInfoBtn a:nth-child(1):hover {
     background-color: #d2b2ff;
 }

 .playerInfoBtn a:nth-child(2) {
     /*    margin-left: 16px;*/
     background-color: #df6b0b;
 }

 .playerInfoBtn a:nth-child(2):hover {
     background-color: #f9ba85;
 }

 /* 媒体查询 */
 @media screen and (max-width: 1080px) {
     /*.main {
    padding: 0px 0px 0px 0px;
    background-color: unset;
}*/

     .novelsMain {
         width: 100%;
         padding: 10px;
         margin: 0 auto;
         height: 100%;
         /*        height: calc(100vh - 50px - 60px);*/
     }

     /* 首页轮播入口 */
     .videoBar {
         width: 100%;
         height: 200px;
         padding: 10px;
         padding-left: 0;
     }

     .videoBar .swiper-button-prev,
     .videoBar .swiper-button-next {
         display: none;
     }

     .videoBox {
         margin-right: 0px;
     }

     .videoBox .videoBoxInner {
         box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
         padding: 6px;
     }

     .videoBox h3,
     .videoBox:hover h3 {
         font-size: 14px;
         color: #333;
         height: 16px;
         line-height: 16px;
         margin: 10px 0 0;
     }

     /* fluid 3 columns */
     .grid {
         padding-bottom: 70px;
     }

     .grid-item {
         width: calc(50% - 6px);
         background-color: #fff;
         box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
         /* width: 33.33%;  */
     }

     .textInfo .title {
         font-size: 16px;
         max-height: 20px;
         min-height: 20px;
         line-height: 20px;
     }

     .textInfo .desc {
         font-size: 12px;
         max-height: 80px;
         min-height: 16px;
         line-height: 16px;
         -webkit-line-clamp: 7;
     }

     /* 播放页 */
     .novelsMain.h5pn {
         padding: 0 0;
     }

     .playerBox {
         width: 100%;
         height: 100vh;
     }

     #dplayerH5Box {
         width: 100%;
         height: 100vh;
     }

     #dplayerH5Box .swiper-container {
         width: 100%;
         height: 100vh;
         /* 恢复全屏高度 */
     }

     #dplayerH5Box .swiper-slide .dplayerH5 {
         width: 100%;
         height: 100%;
     }

     .sliderBox {
         display: none;
     }

     .playerInfoBtn a {
         width: 48.5%;
     }

     /*    .playerInfoBtn a:nth-child(2) {
        margin-left: 0;
    }*/
     .footerform {
         display: none
     }

     /*#dplayerH5Box .swiper-slide .dplayerH5{
            height: 100vh!important;
            }*/
     /* 移动端全局设置 - 只有在.mobile-device类存在时才生效 */
     html.mobile-device body {
         overflow: hidden !important;
         margin: 0 !important;
         padding: 0 !important;
         background: #000 !important;
     }

     /* 移动端主容器 */
     html.mobile-device .playerPage {
         margin-top: 0 !important;
         padding: 0 !important;
         background: #000 !important;
         height: 100vh !important;
         flex-direction: column !important;
         gap: 0 !important;
     }

     /* 移动端播放器全屏 */
     html.mobile-device .playerBox {
         flex: none !important;
         width: 100vw !important;
         height: 100vh !important;
         border-radius: 0 !important;
         position: relative !important;
     }

     html.mobile-device #videoPlayerContainer {
         position: fixed !important;
         top: 0 !important;
         left: 0 !important;
         width: 100vw !important;
         height: 100vh !important;
         z-index: 1 !important;
     }

     html.mobile-device #dplayer {
         width: 100vw !important;
         height: 100vh !important;
         border-radius: 0 !important;
     }

     /* 隐藏PC端元素 */
     html.mobile-device .sliderBox {
         display: none !important;
     }

     html.mobile-device .chapter-list-container {
         display: none !important;
     }

     html.mobile-device #dplayerPCBox {
         display: none !important;
     }

     html.mobile-device #dplayerH5Box {
         position: fixed !important;
         top: 0 !important;
         left: 0 !important;
         width: 100vw !important;
         height: 100vh !important;
         z-index: 9999 !important;
         background: #000 !important;
     }

     /* 确保移动端swiper容器全屏显示 */
     html.mobile-device #dplayerH5Box .swiper-container {
         width: 100vw !important;
         height: 100vh !important;
         /* 恢复全屏高度 */
     }

     html.mobile-device #dplayerH5Box .swiper-slide {
         width: 100vw !important;
         height: 100vh !important;
     }

     html.mobile-device #dplayerH5Box .swiper-slide .dplayerH5 {
         width: 100vw !important;
         height: 100vh !important;
     }

     /* 移动端选集按钮样式 - 在每个slide内，距离底部60px */
     html.mobile-device .mobile-chapter-btn {
         position: absolute !important;
         width: auto !important;
         height: 40px !important;
         bottom: 110px !important;
         /* 与介绍文字在同一水平线上 */
         right: 16px !important;
         /* 在介绍文字的右边 */
         transform: none !important;
         background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
         color: white !important;
         border-radius: 8px !important;
         z-index: 10000 !important;
         box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
         padding: 10px 20px !important;
     }

     /* ========== 移动端UI覆盖层 ========== */
     /* 顶部状态栏 - 只在移动设备上显示 */
     html.mobile-device .mobile-top-bar {
         position: absolute;
         top: env(safe-area-inset-top, 0);
         left: 0;
         right: 0;
         height: 56px;
         z-index: 10000;
         display: flex;
         align-items: center;
         justify-content: space-between;
         padding: 8px 16px;
         /* 加上顶部/底部间距 */
         pointer-events: none;
         margin: 8px 8px 0 8px;
         /* 整体离屏幕再留白 */
         border-radius: 12px;
         background: rgba(0, 0, 0, 0.35);
         backdrop-filter: blur(8px);
         box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
     }

     /* 移动端显示所有移动端UI元素 */
     html.mobile-device .mobile-bottom-info,
     html.mobile-device .mobile-chapter-modal,
     html.mobile-device .mobile-ui-overlay {
         display: block;
     }

     html.mobile-device .mobile-top-bar.show {
         pointer-events: auto;
     }

     html.mobile-device .mobile-back-btn {
         width: 40px;
         height: 40px;
         background: rgba(255, 255, 255, 0.22);
         border-radius: 12px;
         display: flex;
         align-items: center;
         justify-content: center;
         backdrop-filter: blur(10px);
         cursor: pointer;
         pointer-events: auto;
         box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
     }

     .mobile-back-btn svg {
         width: 20px;
         height: 20px;
         color: #fff;
     }

     .mobile-title {
         color: #fff;
         font-size: 16px;
         font-weight: 700;
         text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
         max-width: 60vw;
         overflow: hidden;
         text-overflow: ellipsis;
         white-space: nowrap;
         text-align: center;
         flex: 1;
         margin: 0 12px;
     }

     .mobile-favorite-btn {
         width: 40px;
         height: 40px;
         background: rgba(255, 255, 255, 0.22);
         border-radius: 12px;
         display: flex;
         align-items: center;
         justify-content: center;
         backdrop-filter: blur(10px);
         cursor: pointer;
         pointer-events: auto;
         transition: all 0.25s ease;
         box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
     }

     .mobile-favorite-btn svg {
         width: 18px;
         height: 18px;
         color: white;
     }

     .mobile-favorite-btn:hover,
     .mobile-favorite-btn.favorited {
         background: rgba(255, 215, 0, 0.85);
     }

     .mobile-favorite-btn.favorited svg {
         color: #FFD700;
     }

     /* 右侧操作按钮区域已移除 */
     /* 底部信息区域 */
     .mobile-bottom-info {
         width: calc(100% - 140px);
         /* 为右侧选集按钮留出更多空间 */
         position: absolute;
         bottom: 110px;
         /* 恢复原来的位置 */
         left: 16px;
         /* 保持左边距 */
         z-index: 100;
         /* background: linear-gradient(trans padding: 16px;
                parent, rgba(0,0,0,0.8) 50%); */
         pointer-events: none;
     }

     /* App下载提示区域 */
     .appTopTipBox {
         position: absolute;
         bottom: 60px;
         left: 0;
         right: 0;
         z-index: 10000;
         pointer-events: none;
         opacity: 1;
         transition: opacity 0.3s ease;
     }

    .appTopTipBox #apptip {
        position: relative !important;
        box-shadow: none !important;
        padding: 8px 16px !important;
        margin: 0 !important;
        height: 46px!important;
        background: transparent !important;
        backdrop-filter: blur(10px);
        pointer-events: auto;
    }

     .appTopTipBox .googlePlayBtn,
     .appTopTipBox .appleStoreBtn {
         pointer-events: auto;
     }

     .mobile-video-info {
         color: white;
         pointer-events: auto;
         padding: 0;
         /* 移除内边距，让文字与选集按钮的左边框对齐 */
     }

     .mobile-video-title {
         font-size: 16px;
         font-weight: 700;
         margin-bottom: 8px;
         text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
         line-height: 1.3;
         display: -webkit-box;
         -webkit-line-clamp: 2;
         -webkit-box-orient: vertical;
         overflow: hidden;
     }

     .mobile-video-author {
         font-size: 14px;
         margin-bottom: 8px;
         opacity: 0.9;
         text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
     }

     .mobile-video-desc {
         font-size: 13px;
         line-height: 1.4;
         margin-bottom: 12px;
         opacity: 0.8;
         text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
         display: -webkit-box;
         -webkit-line-clamp: 2;
         -webkit-box-orient: vertical;
         overflow: hidden;
     }

     .mobile-video-tags {
         display: flex;
         flex-wrap: wrap;
         gap: 8px;
     }

     .mobile-tag {
         background: rgba(255, 255, 255, 0.2);
         color: white;
         font-size: 12px;
         padding: 4px 8px;
         border-radius: 12px;
         backdrop-filter: blur(10px);
     }

     /* 底部选集按钮 - 固定在播放器外部下方，右侧对齐 */
     .mobile-chapter-btn {
         position: absolute;
         width: auto;
         height: 40px;
         bottom: 80px;
         /* 与介绍文字在同一水平线上 */
         right: 16px;
         /* 在介绍文字的右边 */
         background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
         color: white;
         border: none;
         border-radius: 8px;
         padding: 10px 20px;
         font-size: 14px;
         font-weight: 600;
         display: flex;
         align-items: center;
         justify-content: center;
         cursor: pointer;
         z-index: 100;
         transition: all 0.3s ease;
         box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
         box-sizing: border-box;
     }

     .mobile-chapter-btn:hover {
         background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
         color: white;
         transform: translateY(-2px);
         box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
     }

     /* 移动端选集按钮hover效果 */
     html.mobile-device .mobile-chapter-btn:hover {
         background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%) !important;
         color: white !important;
         transform: translateY(-2px) !important;
         box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
     }

     .mobile-chapter-btn svg {
         width: 16px;
         height: 16px;
         color: white;
         /* 白色SVG图标，与文字颜色保持一致 */
     }

     /* ========== 章节锁图标样式 ========== */
     /* PC端章节锁图标 */
     /* PC端章节锁标记（徽章风格） */
     .chapter-lock {
         position: absolute;
         top: 50%;
         right: 10px;
         transform: translateY(-50%);
         display: inline-flex;
         align-items: center;
         gap: 6px;
         padding: 4px 10px;
         background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
         color: #fff;
         border-radius: 999px;
         font-size: 12px;
         line-height: 1;
         box-shadow: 0 4px 12px rgba(255, 71, 87, 0.35);
         pointer-events: none;
     }

     .chapter-lock svg {
         width: 14px;
         height: 14px;
         color: #fff;
     }

     .chapter-lock::after {
         content: "锁定";
     }

     .chapter-item.locked {
         position: relative;
         opacity: 0.95;
     }

     .chapter-item.locked .chapter-name,
     .chapter-item.locked .chapter-number {
         color: #888;
     }

     /* 移动端章节锁图标 */
     /* 移动端章节锁标记（卡片右上角徽章） */
     .mobile-chapter-lock {
         position: absolute;
         top: 8px;
         right: 8px;
         display: inline-flex;
         align-items: center;
         gap: 6px;
         padding: 4px 10px;
         background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
         color: #fff;
         border-radius: 10px;
         font-size: 12px;
         line-height: 1;
         box-shadow: 0 4px 12px rgba(255, 71, 87, 0.35);
         pointer-events: none;
     }

     .mobile-chapter-lock svg {
         width: 14px;
         height: 14px;
         color: #fff;
     }

     .mobile-chapter-lock::after {
         content: "锁定";
     }

     .mobile-chapter-item.locked {
         position: relative;
         opacity: 0.95;
     }

     .mobile-chapter-item.locked .mobile-chapter-name {
         opacity: 0.7;
         padding-right: 24px;
         /* 为锁图标留出空间 */
     }

     /* 选集弹窗 */
     .mobile-chapter-modal {
         position: fixed;
         bottom: -100%;
         left: 0;
         right: 0;
         background: white;
         border-radius: 20px 20px 0 0;
         z-index: 1000;
         max-height: 70vh;
         transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
         box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
     }

     .mobile-chapter-modal.show {
         bottom: 0;
         z-index: 100000;
     }

     .mobile-chapter-header {
         display: flex;
         justify-content: space-between;
         align-items: center;
         padding: 20px 20px 16px;
         border-bottom: 1px solid #eee;
         position: sticky;
         top: 0;
         background: white;
         border-radius: 20px 20px 0 0;
     }

     .mobile-chapter-title {
         font-size: 18px;
         font-weight: 700;
         color: #333;
     }

     .mobile-close-btn {
         width: 32px;
         height: 32px;
         background: #f5f5f5;
         border: none;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         cursor: pointer;
         transition: all 0.2s;
     }

     .mobile-close-btn:hover {
         background: #e0e0e0;
     }

     .mobile-close-btn svg {
         width: 18px;
         height: 18px;
         color: #666;
     }

     .mobile-chapter-list {
         padding: 20px;
         max-height: calc(70vh - 80px);
         overflow-y: auto;
         display: grid;
         grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
         gap: 12px;
     }

     .mobile-chapter-item {
         aspect-ratio: 1;
         background: #f8f9fa;
         border: 2px solid transparent;
         border-radius: 12px;
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         cursor: pointer;
         transition: all 0.3s ease;
         position: relative;
         overflow: hidden;
     }

     .mobile-chapter-item:hover {
         background: #e9ecef;
         transform: translateY(-2px);
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     }

     .mobile-chapter-item.current {
         background: var(--primary-color);
         color: white;
         border-color: var(--primary-color);
         box-shadow: 0 4px 16px rgba(91, 178, 126, 0.3);
     }

     .mobile-chapter-item.current:hover {
         background: var(--primary-color);
     }

     .mobile-chapter-number {
         font-size: 16px;
         font-weight: bold;
         margin-bottom: 4px;
         line-height: 1;
     }

     .mobile-chapter-name {
         font-size: 11px;
         line-height: 1.2;
         text-align: center;
         overflow: hidden;
         display: -webkit-box;
         -webkit-line-clamp: 2;
         -webkit-box-orient: vertical;
         word-break: break-all;
         opacity: 0.8;
     }

     .mobile-chapter-item.current .mobile-chapter-name {
         opacity: 1;
     }

     /* 滚动条优化 */
     .mobile-chapter-list::-webkit-scrollbar {
         width: 4px;
     }

     .mobile-chapter-list::-webkit-scrollbar-track {
         background: transparent;
     }

     .mobile-chapter-list::-webkit-scrollbar-thumb {
         background: #ddd;
         border-radius: 2px;
     }

     /* 触摸优化 */
     .mobile-chapter-btn,
     .mobile-chapter-item,
     .mobile-back-btn,
     .mobile-favorite-btn,
     .mobile-close-btn {
         -webkit-tap-highlight-color: transparent;
         touch-action: manipulation;
     }
 }



 .purchase-modal-mask {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.6);
     z-index: 200000;
     display: none;
 }

 .purchase-modal {
     position: fixed;
     left: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
     width: min(92vw, 460px);
     background: #fff;
     border-radius: 16px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
     z-index: 200001;
     overflow: hidden;
     display: none;
 }

 .purchase-modal-header {
     padding: 18px 20px;
     font-weight: 800;
     border-bottom: 1px solid #f0f0f0;
     font-size: 18px;
 }

 .purchase-modal-body {
     padding: 0 20px 12px 20px;
     color: #333;
 }

 .purchase-modal-actions {
     display: flex;
     gap: 12px;
     padding: 12px 20px 18px 20px;
 }

 .btn-outline {
     flex: 1;
     height: 40px;
     border: 1px solid #ddd;
     border-radius: 10px;
     background: #fff;
     color: #333;
 }

 .btn-primary {
     flex: 1;
     height: 40px;
     border: none;
     border-radius: 10px;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: #fff;
 }

 /* 购买样式增强 */
 .buy {
     margin-top: 4px;
 }

 .chapter-price {
     font-size: 14px;
     margin-bottom: 6px;
 }

 .chapter-price span {
     color: #888;
     margin-right: 6px;
 }

 .chapter-price b {
     margin-left: 10px;
     font-size: 20px;
     color: #333;
     font-weight: 800;
 }
.user-balance span {
    color: #888;
    margin-right: 6px;
}
.user-balance b {
    margin-left: 10px;
    font-size: 20px;
}

.user-balance {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

 .auto-purchase {
     margin-bottom: 12px;
     font-size: 13px;
     color: #555;
 }

 .auto-purchase input {
     margin-right: 6px;
 }

 .purchase-actions {
     display: flex;
     gap: 10px;
 }

 .btn-primary.filled {
     flex: 2;
     height: 42px;
     border-radius: 12px;
     box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
 }

 .btn-secondary {
     flex: 1;
     height: 42px;
     border-radius: 12px;
     border: 1px solid #e3e3e3;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     color: #333;
     background: #fff;
 }

 .btn-secondary:hover {
     background: #fafafa;
 }

 /* 导航链接样式 */
 .chapter-reqire-links {
     display: flex;
     gap: 0;
     margin-bottom: 16px;
     padding-bottom: 12px;
     border-bottom: 1px solid #f0f0f0;
 }

 .chapter-reqire-links a {
     flex: 1;
     color: #666;
     text-decoration: none;
     font-size: 13px;
     padding: 8px 4px;
     border-radius: 6px;
     transition: all 0.2s;
     text-align: center;
 }

 .chapter-reqire-links a:hover {
     background: #f5f5f5;
     color: #333;
 }

 /* 关闭按钮样式 */
 .mobile-close-btn {
     width: 32px;
     height: 32px;
     border: none;
     background: rgba(0, 0, 0, 0.1);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.2s;
 }

 .mobile-close-btn:hover {
     background: rgba(0, 0, 0, 0.2);
 }

 .mobile-close-btn svg {
     width: 18px;
     height: 18px;
     color: #666;
 }

 .main {
     min-height: calc(100% - 60px)
 }

 /* Video 页面隐藏全站 footer */
 footer {
     display: none;
 }

 .popfqa {
     display: none;
 }

 /* 下方章节区域 */
 .chapter-list-container {
     height: calc(100vh - 475px);
     overflow-y: auto;
     background: #fff;
     border-radius: 12px;
     padding: 20px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 .pagetitle {
     font-size: 16px;
     font-weight: bold;
     color: #333;
     border-bottom: 2px solid var(--primary-color);
     padding: 15px 0 15px 0;
 }

 .chapter-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
     gap: 10px;
     overflow-y: auto;
     padding-right: 5px;
 }

 /* 章节方块按钮 */
 .chapter-item {
     width: 60px;
     height: 60px;
     background: #f8f9fa;
     border: 2px solid #dee2e6;
     border-radius: 8px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.3s ease;
     position: relative;
 }

 .chapter-item:hover {
     border-color: var(--primary-color);
     background: #f0f8f4;
     box-shadow: 0 4px 12px rgba(91, 178, 126, 0.3);
 }

 .chapter-item.current {
     background: var(--primary-color);
     border-color: var(--primary-color);
     color: white;
 }

 .chapter-item.current:hover {
     background: var(--primary-color);
 }

 .chapter-number {
     font-size: 14px;
     font-weight: bold;
     line-height: 1;
     margin-bottom: 2px;
 }

 .chapter-name {
     font-size: 10px;
     line-height: 1.2;
     text-align: center;
     overflow: hidden;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     word-break: break-all;
 }

 .chapter-item.current .chapter-name {
     color: white;
 }

 /* 自定义滚动条 */
 .chapter-grid::-webkit-scrollbar {
     width: 6px;
 }

 .chapter-grid::-webkit-scrollbar-track {
     background: #e9ecef;
     border-radius: 3px;
 }

 .chapter-grid::-webkit-scrollbar-thumb {
     background: var(--primary-color);
     border-radius: 3px;
 }

 .chapter-grid::-webkit-scrollbar-thumb:hover {
     background: var(--primary-color);
 }

 /* PC端隐藏移动端UI */
 .mobile-top-bar,
 .mobile-bottom-info,
 .mobile-chapter-modal,
 .mobile-ui-overlay {
     display: none;
 }

 /* PC端隐藏移动端选集按钮 */
 @media screen and (min-width: 1081px) {
     .mobile-chapter-btn {
         display: none !important;
     }

 }

 /* 移動端禁用公用頭 */
 @media screen and (max-width: 1080px) {
     header {
         display: none;
     }
 }

 /* 确保只有移动端显示选集按钮 */
 .mobile-chapter-btn {
     display: none;
 }

 html.mobile-device .mobile-chapter-btn {
     display: flex !important;
 }

 /* ========== H5移动端样式设计 ========== */


 .dplayer:hover .dplayer-mobile-play {
     display: block;
 }

 .dplayer .dplayer-bezel-icon {
     display: none !important;
 }

 /* bookbox样式 - 从site.css提取 */
 .bookbox {
     padding: 20px 10px 40px 10px;
     position: relative;
     max-width: 100%;
     margin: 0 auto 35px auto;
 }

 .bookinfo {
     position: relative;
     z-index: 1;
     padding: 10px 0;
     max-width: 1400px;
     margin: 0 auto;
     min-height: 160px;
 }

 .bookboxbg {
     position: absolute;
     z-index: 0;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     overflow: hidden;
     background-color: #000;
 }

 .bookboxbg img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: auto;
     transform: scale(1.1);
     filter: blur(30px);
     display: block;
     opacity: 0.4;
     color: #fff;
     box-shadow: 0 0 10px #000;
     min-height: 100%;
 }

 .bookbox .cover {
     float: left;
     width: auto;
     height: 150px;
     overflow: hidden;
     border-radius: 0px;
     padding-right: 0px;
     position: relative;
     background-size: cover;
     display: block;
 }

 .bookbox .cover img {
     display: block;
     height: 100%;
     width: auto;
 }

 .bookbox .title {
     font-size: 0px;
     padding-left: 15px;
     display: block;
     overflow: hidden;
     line-height: 40px;
     padding: 5px 0 0px 15px;
 }

 .bookbox .title b {
     font-weight: bold;
     font-size: 28px;
     display: inline-block;
     vertical-align: top;
     height: auto;
     line-height: 30px;
     color: #fff;
     margin-right: 10px;
 }

 .bookbox .shortinfo,
 .bookbox .data,
 .bookbox .desc {
     display: block;
     overflow: hidden;
     font-size: 14px;
     padding-left: 15px;
     color: #fff;
     font-weight: normal;
 }

 .bookbox .desc {
     line-height: 18px;
     height: 54px;
     overflow: hidden;
     text-indent: 24px;
     opacity: 1;
     overflow-y: auto;
 }

 .bookbox .data {
     padding-bottom: 3px;
     opacity: 0.6;
 }

 .bookbox .data span {
     display: inline-block;
     height: 20px;
     line-height: 20px;
     margin-right: 12px;
 }

 .bookbox .data span svg {
     display: block;
     width: 14px;
     height: 100%;
     float: left;
     margin-right: 2px;
     fill: #fff;
 }

 .bookbox .shortinfo {
     padding-bottom: 5px;
 }

 .bookbox .shortinfo .txt {
     display: inline-block;
     margin-right: 15px;
     opacity: 0.6;
 }

 .bookbox .shortinfo .txt a {
     color: #fff;
     font-weight: bold;
 }



.chapter-login-tip, .mobile-chapter-login-tip {
    font-size: 12px;
    line-height: 24px;
}
