@charset "UTF-8";

/* 移动端响应式样式 */

/* 基础响应式设置 */
@media screen and (max-width: 768px) {
  
  /* 全局设置 */
  body {
    background: #f5f5f5 !important;
  }

  .body-bg {
    background: #f5f5f5 !important;
  }

  .wrap {
    padding: 0 !important;
  }

  /* 重置容器宽度 */
  .wrap1200,
  .index-header .logozone .logo,
  .index-header .firstnav {
    width: 100% !important;
    padding: 0;
    box-sizing: border-box;
  }

  .wrap1200 {
    margin-bottom: 10px;
  }

  /* 头部区域 */
  .index-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }

  .index-header .logozone {
    padding: 12px 0;
    background: #fff;
  }

  .index-header .logozone .logo {
    height: auto;
    position: relative;
    padding: 0 15px;
  }

  .index-header .logozone .logo .logoImage {
    max-width: 180px;
    position: static;
    transform: none;
    display: block;
    margin: 0 auto;
  }

  /* 搜索框 */
  .index-header .logozone .searchbox {
    position: static;
    width: 100%;
    margin: 12px 0 0 0;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .index-header .logozone .searchbox .searchbox-inner {
    border-radius: 20px;
    overflow: hidden;
  }

  .index-header .logozone .searchbox .searchbox-inner .searchinput {
    width: calc(100% - 50px);
    height: 36px;
    line-height: 36px;
    padding: 0 15px;
    font-size: 14px;
  }

  .index-header .logozone .searchbox .searchbox-inner .searchbtn {
    width: 50px;
    height: 36px;
  }

  /* 书架和用户信息 */
  .index-header .logozone .mybookshelf {
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
  }

  .index-header .logozone .mybookshelf a {
    padding: 0 8px;
  }

  /* 导航栏 */
  .index-header .firstnav {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    background: #333;
    padding: 0 10px;
  }

  .index-header .firstnav ul {
    padding: 0;
    display: inline-flex;
    margin: 0;
  }

  .index-header .firstnav ul li {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }

  .index-header .firstnav ul li a {
    font-size: 14px;
    padding: 12px 15px;
    display: block;
    color: #fff;
  }

  .index-header .firstnav ul li.curr a {
    background: rgba(255,255,255,0.1);
    color: #fff;
  }

  .index-header .firstnav .author {
    display: none;
  }

  /* 主体内容区域 */
  .containerbox {
    padding: 0 !important;
  }

  /* 左侧分类导航 */
  .boxcont {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
    float: none !important;
  }

  .boxcont .boxlist {
    display: block;
    margin: 0;
    padding: 10px 15px;
    background: #fff;
  }

  .boxcont .boxlist li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .boxcont .boxlist li:last-child {
    border-bottom: none;
  }

  .boxcont .boxlist li .title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 8px 0;
    display: block;
    color: #333;
  }

  .boxcont .boxlist li .title em {
    color: #d81e06;
  }

  .boxcont .boxlist li p {
    margin: 0;
    line-height: 1.8;
  }

  .boxcont .boxlist li p a {
    display: inline-block;
    font-size: 13px;
    margin-right: 12px;
    margin-bottom: 5px;
    color: #666;
  }

  /* Banner轮播 */
  .w950 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 10px;
  }

  .mod-banner {
    background: #fff;
    overflow: hidden;
  }

  .mod-banner .banner-slide {
    height: 180px;
  }

  .mod-banner .banner-slide .slideBox {
    height: 180px;
  }

  .mod-banner .banner-slide .slider-film {
    height: 180px;
  }

  .mod-banner .banner-slide .slider-film img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 好书推荐 */
  .goodbookbox {
    height: auto !important;
    padding: 15px 0;
    background: #fff;
    margin-bottom: 10px;
  }

  .goodbookbox .titmenu {
    margin-left: 15px;
    font-size: 17px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #d81e06;
    display: inline-block;
  }

  .goodbookbox .goodbook-tabcont {
    margin: 15px 0 0 0;
    padding: 0 15px;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b {
    padding: 0;
    display: block !important;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block:last-child {
    border-bottom: none;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block dt {
    flex-shrink: 0;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block dt img {
    width: 70px;
    height: 93px;
    border-radius: 4px;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block dd {
    width: calc(100% - 85px);
    margin-left: 15px;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block dd a.book-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block dd span.book-info {
    height: 40px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block dd span.book-author {
    font-size: 12px;
    color: #999;
  }

  /* 新书推荐区域 */
  .wrap-book-n {
    display: block !important;
  }

  .wrap-book-n .new-book-w {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-bottom: 10px;
    background: #fff;
    padding: 15px 0;
  }

  .wrap-book-n .new-book-w .titmenu {
    margin-left: 15px;
    font-size: 17px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #d81e06;
    display: inline-block;
  }

  .wrap-book-n .new-book-w .new-book-w-l {
    margin: 15px 15px 0;
    padding: 0;
  }

  .wrap-book-n .new-book-w .new-book-w-l .book-block {
    width: 100% !important;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .wrap-book-n .new-book-w .new-book-w-l .book-block:last-child {
    border-bottom: none;
  }

  .wrap-book-n .new-book-w .new-book-w-l .book-block dt img {
    width: 70px;
    height: 93px;
    border-radius: 4px;
  }

  .wrap-book-n .new-book-w .new-book-w-l .book-block dd {
    width: calc(100% - 85px);
    margin-top: 0;
    margin-left: 15px;
  }

  .wrap-book-n .new-book-w .content-3 {
    margin: 15px 15px 0;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
  }

  .wrap-book-n .new-book-w .content-3 ul {
    width: 100% !important;
  }

  .wrap-book-n .new-book-w .content-3 li {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
  }

  .wrap-book-n .new-book-w .content-3 li:last-child {
    border-bottom: none;
  }

  .wrap-book-n .new-book-w .content-3 .detail {
    width: calc(100% - 80px);
  }

  /* 排行榜 */
  .rank-list {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-bottom: 10px;
    background: #fff;
    padding: 15px 0;
  }

  .rank-list .titmenu {
    margin-left: 15px;
    font-size: 17px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #d81e06;
    display: inline-block;
  }

  .rank-list .rank-1 {
    margin: 15px 15px 0;
    padding: 0;
  }

  .rank-list .rank-1 li {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
  }

  .rank-list .rank-1 li:last-child {
    border-bottom: none;
  }

  .rank-list .rank-1 li.top .book-block {
    width: calc(100% - 30px);
  }

  .rank-list .rank-1 li.top .book-block dt img {
    width: 50px;
    height: 66px;
    border-radius: 4px;
  }

  .rank-list .rank-1 li.top .book-block dd {
    width: calc(100% - 65px);
    margin-top: 0;
    margin-left: 15px;
  }

  .rank-list .rank-1 li .book-list-f {
    width: calc(100% - 30px) !important;
    font-size: 14px;
  }

  .rank-list .rank-1 li .num {
    font-size: 16px;
    width: 24px;
    height: 24px;
    line-height: 24px;
  }

  .rank-list .more {
    position: static;
    display: block;
    text-align: center;
    padding: 10px 0;
    margin: 10px 15px 0;
    background: #f5f5f5;
    border-radius: 4px;
    color: #666;
  }

  /* 排行榜容器 */
  .rank-box {
    display: block !important;
    width: 100% !important;
  }

  .rank-box .rank-list {
    width: 100% !important;
    height: auto !important;
  }

  /* 广告位 */
  .page-ad .slideBox,
  .page-ad .slideBox .slider-film,
  .page-ad .slideBox .slider-film img {
    width: 100% !important;
    height: auto !important;
  }

  /* 最近更新 */
  .botnews {
    padding: 0 !important;
    background: #fff;
    margin-bottom: 10px;
  }

  .botnews .mod-chapter-update {
    padding: 15px 0;
  }

  .botnews .mod-chapter-update .mod-title {
    margin: 0 15px 15px;
  }

  .botnews .mod-chapter-update .mod-title h2 {
    font-size: 17px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #d81e06;
    display: inline-block;
  }

  .update-chapter-list {
    margin: 0;
    padding: 0 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .update-chapter-list table {
    min-width: 600px;
    width: 100%;
  }

  .update-chapter-list th,
  .update-chapter-list td {
    font-size: 13px;
    padding: 8px 5px;
  }

  .update-chapter-list th {
    white-space: nowrap;
    background: #f5f5f5;
    font-weight: bold;
  }

  .update-chapter-list td {
    border-bottom: 1px solid #f0f0f0;
  }

  .update-chapter-list td div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 底部 */
  .footer-box {
    padding: 20px 15px;
  }

  .footer-box .channel-font {
    padding-top: 20px;
  }

  .footer-box .channel-font a {
    margin-right: 15px;
    font-size: 12px;
  }

  .footer-box .footer-announce {
    margin-top: 15px;
    font-size: 11px;
  }

  .footer-box .bei {
    margin-top: 20px;
  }

  /* 隐藏移动端不需要的元素 */
  .suspend {
    right: 10px;
    top: 45px;
  }

  /* 浮动清除 */
  .fl, .fr {
    float: none !important;
  }

  /* 间距调整 */
  .block10 {
    height: 0px;
  }

  .block20 {
    height: 10px;
  }

  /* 通用书籍块样式优化 */
  .book-block dt {
    float: left;
  }

  .book-block dd {
    overflow: hidden;
  }

  .book-block dd .book-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 链接点击区域优化 */
  a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* 图片加载优化 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 表格优化 */
  table {
    border-collapse: collapse;
  }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
  
  .index-header .logozone .logo .logoImage {
    max-width: 150px;
  }

  .index-header .firstnav ul li {
    padding: 0 8px;
  }

  .index-header .firstnav ul li a {
    font-size: 13px;
  }

  .boxcont .boxlist li {
    width: 100%;
  }

  .goodbookbox .titmenu,
  .wrap-book-n .new-book-w .titmenu,
  .rank-list .titmenu {
    font-size: 15px;
  }

  .update-chapter-list th,
  .update-chapter-list td {
    font-size: 11px;
  }
}

/* 平板适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  
  .wrap1200,
  .index-header .logozone .logo,
  .index-header .firstnav {
    width: 100% !important;
    max-width: 1024px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .boxcont {
    width: 30% !important;
  }

  .w950 {
    width: 68% !important;
  }

  .goodbookbox .goodbook-tabcont .goodbook-b .book-block {
    width: 48% !important;
  }

  .wrap-book-n .new-book-w {
    width: 68% !important;
  }

  .rank-list {
    width: 30% !important;
  }

  .rank-box .rank-list {
    width: 24% !important;
  }
}
