/* 基于明星小说网(xbiquge)原版 yd.css，适配 maccms novel 主题 */
html,body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,table,td,th,img,div,dl,dt,dd,input,select,form,fieldset{margin:auto;padding:0;}
*,*::before,*::after{box-sizing:border-box;}
html,body{max-width:100%;overflow-x:hidden;}
img{max-width:100%;}
/* 主容器清除浮动，避免 BFC(overflow:hidden) 盒被前面的浮动挤成窄缝 */
#main,#hotcontent,#newscontent,.novelslist,.novellist,.box_con,.dahengfu,.content_read,.footer,#footer{clear:both;}
body{background-color:#E9FAFF;color:#555;font-family:"SimSun","宋体",Arial,sans-serif;font-size:12px;margin:0 auto;}
ul li{list-style:none outside none;}
a{color:#6F78A7;text-decoration:none;}
a:hover{text-decoration:underline;}
.clear{clear:both;}

/* 头部 */
.header{height:61px;width:980px;margin:auto;}
.header_logo a{display:block;float:left;height:60px;line-height:60px;width:250px;font-size:26px;font-weight:700;color:#4169A8;overflow:hidden;}
.header_search{float:left;overflow:hidden;width:450px;margin:14px auto -20px 30px;}
.header_search input.search{border:1px solid #A6D3E8;font:16px/22px arial;height:24px;margin-right:5px;width:320px;padding:3px;}
.header_search button{background:#DDD;cursor:pointer;font-size:14px;height:32px;width:95px;border:1px solid #A6D3E8;}
.userpanel{border:1px dotted #88C6E5;color:#9E9E9E;float:right;margin-right:5px;margin-top:3px;text-align:center;width:220px;padding:5px 3px;}
.userpanel a{color:#9E9E9E;line-height:200%;}
.nav{background:#88C6E5;height:40px;overflow:hidden;width:980px;margin:10px auto auto;}
.nav ul li{float:left;line-height:40px;}
.nav ul li a{color:#FFF;font-size:15px;font-weight:700;padding:0 17px;display:block;}
.nav ul li a:hover{background:#6FB5D9;text-decoration:none;}

#main{width:980px;margin:auto;}

/* 首页热门区 */
#hotcontent{padding-top:10px;}
#hotcontent .l{background:#FEF9EF;border:3px solid #C3DFEA;float:left;height:330px;overflow:hidden;width:695px;padding:0 0 10px;}
#hotcontent .l .item{float:left;width:335px;padding:10px 0 0 10px;}
#hotcontent .l .item .image{float:left;width:120px;}
#hotcontent .l .item .image img{background-color:#FFF;border:1px solid #DDD;padding:1px;width:120px;height:150px;}
#hotcontent .l .item dl{float:right;width:190px;padding:0 5px 0 0;}
#hotcontent .l .item dl dt{border-bottom:1px dotted #A6D3E8;font-size:14px;font-weight:700;height:25px;line-height:25px;overflow:hidden;}
#hotcontent .l .item dl dt span{color:#B3B3B3;float:right;font-weight:400;}
#hotcontent .l .item dl dd{height:120px;line-height:20px;overflow:hidden;text-indent:2em;padding:7px 0 0;color:#777;}
/* 列表页宽推荐框 */
#hotcontent .ll{border:3px solid #C8D4E1;margin:10px auto;padding:5px;width:964px;overflow:hidden;background:#FEF9EF;box-sizing:border-box;}
#hotcontent .ll .item{width:33.333%;float:left;padding:8px 5px 0;box-sizing:border-box;}
#hotcontent .ll .item .image{float:left;width:120px;}
#hotcontent .ll .item .image img{border:solid 1px #DDDDDD;padding:1px;background-color:#FFF;width:120px;height:150px;}
#hotcontent .ll .item dl{padding:0 5px 0 0;float:right;width:170px;}
#hotcontent .ll .item dl dt{height:25px;line-height:25px;overflow:hidden;font-size:14px;border-bottom:dotted 1px #6191D0;font-weight:bold;}
#hotcontent .ll .item dl dt span{float:right;font-weight:normal;color:#B3B3B3;}
#hotcontent .ll .item dl dd{padding:7px 0 0;line-height:20px;color:#9E9E9E;text-indent:2em;height:120px;overflow:hidden;}

#hotcontent .r{border:3px solid #C3DFEA;float:right;width:265px;background:#FEF9EF;}
#hotcontent h2{background-color:#E1ECED;border-bottom:1px solid #DDD;font-size:14px;font-weight:700;height:30px;line-height:30px;overflow:hidden;margin:0;padding:0 0 0 10px;}
#hotcontent .r ul{padding:10px;}
#hotcontent .r li{border-bottom:1px solid #DDDDDD;height:28px;line-height:28px;overflow:hidden;padding:5px 0 0;}
#hotcontent .r li span{display:inline-block;float:left;}
#hotcontent .r li .s1{width:40px;}
#hotcontent .r li .s2{color:#B3B3B3;}
#hotcontent .r li .s5{float:right;text-align:right;}
#hotcontent .r li a{color:#6F78A7;}

/* 首页分类块 */
.novelslist{margin:10px auto;border:3px solid #A6D3E8;width:968px;padding:3px;background:#FEF9EF;overflow:hidden;}
.novelslist .content{border-right:dotted 1px #A6D3E8;padding:0 3px;float:left;width:33.333%;box-sizing:border-box;min-height:260px;}
.novelslist .content:nth-child(3n){border-right:0;}
.novelslist .content h2{border-bottom:solid 1px #A6D3E8;font-size:14px;font-weight:bold;padding-left:5px;line-height:25px;height:25px;overflow:hidden;margin:0;}
.novelslist .content .top{overflow:hidden;}
.novelslist .content .image{padding:10px 0 0 5px;float:left;width:71px;}
.novelslist .content .image img{width:67px;height:82px;border:solid 1px #DDDDDD;padding:1px;background-color:white;}
.novelslist .content dl{padding:10px 0 0 0;float:right;width:219px;}
.novelslist .content dl dt{height:25px;line-height:25px;overflow:hidden;font-weight:bold;}
.novelslist .content dl dd{line-height:20px;height:60px;overflow:hidden;color:#777;}
.novelslist .content ul{padding:10px 0 0 0;}
.novelslist .content ul li{color:#B3B3B3;height:20px;line-height:20px;font-size:12px;overflow:hidden;float:left;width:155px;}
.novelslist .content ul li a{font-size:13px;}

/* 首页最近更新/最新入库 */
#newscontent{margin:10px auto;overflow:hidden;width:980px;}
#newscontent .l{border:3px solid #88C6E5;float:left;width:695px;background:#E1ECED;}
#newscontent .l ul{padding:10px;}
#newscontent .l li{padding:5px 0 0 0;border-bottom:solid 1px #DDDDDD;height:25px;line-height:25px;overflow:hidden;}
#newscontent .l li span{float:left;display:inline-block;}
#newscontent .l li .s1{width:75px;}
#newscontent .l li .s2{width:165px;}
#newscontent .l li .s3{width:300px;}
#newscontent .l li .s4{color:#B3B3B3;width:90px;text-align:right;}
#newscontent .l li .s5{color:#B3B3B3;float:right;text-align:right;}
#newscontent .l li a{color:#6F78A7;}
#newscontent .r{float:right;width:265px;border:3px solid #88C6E5;background:#E1ECED;}
#newscontent .r ul{padding:10px;}
#newscontent .r li{padding:5px 0 0 0;border-bottom:solid 1px #DDDDDD;height:25px;line-height:25px;overflow:hidden;}
#newscontent .r li span{float:left;display:inline-block;}
#newscontent .r li .s1{width:40px;}
#newscontent .r li .s2{color:#B3B3B3;}
#newscontent .r li .s5{float:right;text-align:right;}
#newscontent .r li a{color:#6F78A7;}
#newscontent h2{margin:0;overflow:hidden;padding:0 0 0 10px;background-color:#A6D3E8;height:30px;line-height:30px;font-size:14px;font-weight:bold;border-bottom:solid 1px #DDDDDD;}

/* 列表/搜索页 */
.novellist{margin:10px auto;width:968px;padding:3px;border:3px solid #A6D3E8;background:#FEF9EF;overflow:hidden;}
.novellist h2{background-color:#E1ECED;border-bottom:1px solid #DDDDDD;font-size:14px;font-weight:bold;height:30px;line-height:30px;overflow:hidden;padding:0 0 0 10px;}
.novellist ul{padding:10px;}
.novellist li{padding:5px 0 0 0;border-bottom:solid 1px #DDDDDD;height:25px;line-height:25px;overflow:hidden;}
.novellist li span{float:left;display:inline-block;}
.novellist li .s1{width:9%;}
.novellist li .s2{width:26%;}
.novellist li .s3{width:40%;}
.novellist li .s4{width:13%;color:#B3B3B3;}
.novellist li .s5{float:right;color:#B3B3B3;text-align:right;}
.novellist li a{color:#6F78A7;}
/* 全部小说 紧凑多列 */
.maplist{padding:10px;overflow:hidden;}
.maplist li{float:left;width:25%;box-sizing:border-box;height:26px;line-height:26px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:10px;}
.maplist li a{color:#6F78A7;}
.maplist li span{color:#B3B3B3;}

/* 友链 */
#firendlink{border:1px solid #DDD;line-height:22px;width:949px;margin:10px auto;padding:9px 0 9px 9px;}
#firendlink a{color:#548161;display:inline-block;margin:0 9px 0 0;}

/* 分页 */
.pages{text-align:center;padding:15px 0;clear:both;}
.pages a,.pages span{display:inline-block;margin:0 3px;padding:3px 9px;border:1px solid #88C6E5;background:#fff;}
.pages span{background:#88C6E5;color:#fff;}

/* 详情页 */
.dahengfu{overflow:hidden;width:976px;margin:10px auto;}
.box_con{border:2px solid #88C6E5;overflow:hidden;width:976px;margin:10px auto;background:#FEF9EF;}
.con_top{border-bottom:#88C6E5 1px solid;text-align:left;padding:0 10px;line-height:40px;height:40px;background-color:#E1ECED;}
#sidebar{float:left;width:140px;text-align:left;}
#maininfo{float:right;width:800px;}
#fmimg{background-color:#E1ECED;float:left;width:126px;margin:12px;padding:12px;position:relative;}
#fmimg img{border:medium none;height:150px;width:120px;margin:3px;}
#info{padding:10px;margin:10px;font-size:15px;overflow:hidden;}
#info h1{font-family:"黑体";font-size:28px;font-weight:700;overflow:hidden;margin:auto;padding:1px;}
#info p{height:25px;line-height:25px;padding-top:2px;width:350px;margin:auto;overflow:hidden;float:left;}
#intro{width:96%;overflow:hidden;line-height:150%;border-top:1px dashed #88C6E5;padding:10px;font-size:13px;}
#intro p{text-indent:2em;margin-top:10px;}
#listtj{width:960px;padding:5px;float:left;line-height:24px;}
#list{padding:2px;clear:both;}
#list dl{overflow:hidden;padding-bottom:1px;margin:auto;}
#list dt{background:#C3DFEA;display:inline;float:left;font-size:14px;line-height:28px;overflow:hidden;text-align:center;width:98%;margin:auto auto 5px;padding:5px 10px;}
#list dd{border-bottom:1px dashed #CCC;display:inline;float:left;height:25px;line-height:200%;margin-bottom:5px;overflow:hidden;text-align:left;text-indent:10px;width:33%;}
#list dd a:link{color:#444;}

/* 阅读页 */
.content_read{overflow:hidden;width:980px;margin:10px auto auto;}
.con_top #page_set{float:right;text-align:right;height:20px;line-height:20px;padding-right:5px;padding-top:10px;}
.con_top #page_set select,.con_top #page_set label{margin:0 2px;}
.bookname{border-bottom:1px dashed #88C6E5;line-height:30px;padding-top:10px;margin-bottom:10px;}
.bookname h1{font:25px/35px "黑体";padding-top:10px;text-align:center;}
.bottem1{clear:both!important;text-align:center;width:900px;margin:5px auto;}
.bottem2{border-top:1px dashed #88C6E5;clear:both!important;text-align:center;width:900px;margin:auto;padding:15px;}
.bottem1 a,.bottem2 a{color:#085308;font-size:14px;margin-left:10px;margin-right:10px;}
.box_con #content{font-family:"Microsoft YaHei","微软雅黑","SimSun","宋体";font-size:19pt;letter-spacing:0.1em;line-height:150%;padding-top:15px;width:85%;margin:auto;color:#222;}

/* 友情链接 */
.flink{width:96%;margin:10px auto 6px;line-height:26px;border-bottom:2px solid #88C6E5;padding-bottom:8px;text-align:center;font-size:13px;}
.flink strong{color:#555;}
.flink a{color:#548161;margin:0 8px;display:inline-block;}
/* 页脚 */
#footer,.footer{overflow:hidden;text-align:center;width:980px;margin:10px auto auto;min-height:120px;}
.footer_link{border-bottom:2px solid #88C6E5;height:25px;line-height:25px;overflow:hidden;width:92%;margin:5px auto;}
.footer_cont p{color:#B2B2B2;line-height:20px;width:88%;margin:auto;}

/* 空状态 */
.empty{padding:30px;text-align:center;color:#999;}

/* 夜间模式(阅读页 JS 切换) */
.novel-night{background:#111 !important;color:#999;}
.novel-night .box_con,.novel-night .content_read .box_con{background:#1f1f1f;border-color:#444;}
.novel-night .con_top{background:#1a1a1a;}
.novel-night .box_con #content{color:#999;}
.novel-night a{color:#8aa7d8;}

/* ================= 响应式自适应 ================= */
/* 平板及以下：定宽容器改为流式 */
@media screen and (max-width:1000px){
  .header,.nav,#main,#newscontent,.footer,#footer,.box_con,.dahengfu,.content_read,#firendlink,.novelslist,.novellist{width:auto;max-width:100%;box-sizing:border-box;}
  #hotcontent .ll{width:auto;max-width:100%;box-sizing:border-box;}
  .header{padding:0 8px;}
  #main{padding:0 6px;}
}
/* 手机：单栏堆叠 */
@media screen and (max-width:768px){
  body{font-size:14px;}
  /* 头部 */
  .header{height:auto;padding:8px;}
  .header_logo a{float:none;width:auto;height:42px;line-height:42px;font-size:22px;text-align:center;}
  .header_search{float:none;width:100%;margin:8px 0 0;}
  .header_search input.search{width:66%;box-sizing:border-box;height:32px;}
  .header_search button{width:28%;height:40px;}
  .userpanel{display:none;}
  /* 导航（换行显示） */
  .nav{height:auto;overflow:visible;padding:2px 4px;}
  .nav ul li{line-height:34px;}
  .nav ul li a{font-size:14px;padding:0 10px;}
  /* 首页热门 */
  #hotcontent .l,#hotcontent .r{float:none;width:100%;box-sizing:border-box;height:auto;}
  #hotcontent .l .item{float:none;width:100%;box-sizing:border-box;padding:10px;}
  #hotcontent .l .item dl,#hotcontent .ll .item dl{float:right;width:calc(100% - 135px);}
  #hotcontent .l .item dl dd,#hotcontent .ll .item dl dd{height:auto;max-height:110px;}
  #hotcontent .r{margin-top:10px;}
  #hotcontent .ll .item{float:none;width:100%;}
  /* 分类块 */
  .novelslist .content{float:none;width:100%;border-right:0;border-bottom:1px dotted #A6D3E8;min-height:0;padding-bottom:8px;margin-bottom:8px;}
  .novelslist .content:last-child{border-bottom:0;}
  .novelslist .content dl{width:calc(100% - 90px);}
  .novelslist .content ul li{float:none;width:100%;}
  /* 最近更新 / 列表 / 搜索：只留 书名 + 作者/日期 */
  #newscontent .l,#newscontent .r{float:none;width:100%;box-sizing:border-box;}
  #newscontent .r{margin-top:10px;}
  #newscontent .l li .s1,#newscontent .l li .s3,#newscontent .l li .s4{display:none;}
  #newscontent .l li .s2{width:70%;}
  .novellist li .s1,.novellist li .s3,.novellist li .s4{display:none;}
  .novellist li .s2{width:68%;}
  .maplist li{width:50%;}
  /* 详情页单栏 */
  #sidebar,#maininfo{float:none;width:100%;box-sizing:border-box;}
  #fmimg{float:none;width:120px;margin:12px auto;}
  #info{margin:6px;padding:6px;}
  #info p{float:none;width:100%;}
  #info h1{font-size:22px;}
  #listtj{float:none;width:100%;box-sizing:border-box;}
  #list dd{width:50%;box-sizing:border-box;}
  /* 阅读页 */
  .con_top{height:auto;line-height:26px;padding:6px 10px;}
  .con_top #page_set{float:none;text-align:left;height:auto;padding:6px 0 0;}
  .bottem1,.bottem2{width:auto;}
  .box_con #content{width:92%;font-size:20px;letter-spacing:normal;}
}
/* 小屏微调 */
@media screen and (max-width:480px){
  #hotcontent .l .item .image,#hotcontent .ll .item .image{width:92px;}
  #hotcontent .l .item .image img,#hotcontent .ll .item .image img{width:90px;height:118px;}
  #hotcontent .l .item dl,#hotcontent .ll .item dl{width:calc(100% - 102px);}
  #list dd{width:100%;}
  .maplist li{width:100%;}
  #info h1{font-size:20px;}
  .nav ul li a{padding:0 8px;}
}
