/* site.css - 小说网站主样式 */

/* 基础样式 */
html, body {
    font-family: ff-tisa-web-pro-1, ff-tisa-web-pro-2, "Lucida Grande", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    background-color: #eee;
    -webkit-font-smoothing: antialiased;
}

/* 面板样式 */
.list-group, .panel {
    margin-bottom: 10px;
}
.panel-default {
    border-color: #ddd;
}
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

a {
    color: #337ab7;
    text-decoration: none;
}
a:hover {
    color: #23527c;
    text-decoration: none;
}

.container {
    max-width: 1100px;
    padding: 0 15px;
}

/* 顶部导航栏 */
.header_46f {
    background-color: #337ab7;
    border: none;
    border-radius: 0;
    margin-bottom: 15px;
    min-height: 50px;
}
.header_46f.navbar-inverse {
    background-color: #337ab7;
    border-color: #337ab7;
}
.header_46f.navbar-inverse .navbar-collapse {
    border-color: #337ab7;
}
.header_46f .navbar-brand {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    padding: 15px;
}
.header_46f .navbar-brand:hover {
    color: #fff;
}
.header_46f.navbar-inverse .navbar-nav > li > a {
    color: #fff;
    padding: 15px 18px;
}
.header_46f.navbar-inverse .navbar-nav > li > a:hover,
.header_46f.navbar-inverse .navbar-nav > li > a:focus {
    background-color: #2e6da4;
    color: #fff;
}
.nav_46f > li > a {
    color: #fff;
    padding: 15px 18px;
}
.nav_46f > li > a:hover,
.nav_46f > li > a:focus {
    background-color: #2e6da4;
    color: #fff;
}
.nav_46f > li.active > a {
    background-color: #2e6da4;
}
.header_46f.navbar-inverse .navbar-toggle {
    border-color: #fff;
}
.header_46f.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff;
}
.header_46f.navbar-inverse .navbar-toggle:hover,
.header_46f.navbar-inverse .navbar-toggle:focus {
    background-color: #2e6da4;
}

/* 搜索框 */
.search_46f {
    margin-top: 8px;
    margin-left: 20px;
}
.search_46f .form-control {
    width: 180px;
    border-radius: 3px 0 0 3px;
}
.search_46f .btn {
    background-color: #5bc0de;
    color: #fff;
    border-radius: 0 3px 3px 0;
}
.search_46f .btn:hover {
    background-color: #46b8da;
}

/* 主体内容区 */
.body_46f {
    padding: 15px 0;
    min-height: 600px;
}

/* 面板样式 */
.section_46f {
    margin-bottom: 15px;
}
.title_46f {
    background-color: #f5f5f5;
    border-bottom: 2px solid #337ab7;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.title_46f .fa {
    color: #337ab7;
    margin-right: 5px;
}
.title_46f .pull-right {
    font-size: 12px;
    font-weight: normal;
    color: #337ab7;
}
.content_46f {
    padding: 15px;
}

/* 推荐小说封面列表 */
.book-coverlist {
    margin-bottom: 15px;
}
.cover_46f {
    display: block;
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px;
    margin-bottom: 10px;
}
.book-coverlist .caption h4 {
    font-size: 14px;
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.book-coverlist .caption h4 a {
    color: #337ab7;
}
.book-coverlist .caption small {
    color: #999;
    display: block;
    margin-bottom: 5px;
}
.book-coverlist .caption p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    max-height: 54px;
    overflow: hidden;
}

/* 小说列表 */
.list_46f {
    margin-bottom: 15px;
}
.list-group.list-top {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}
.list-group.list-top li {
    border-bottom: 1px solid #e2d9d9;
    list-style: none;
}
.list-group.list-top li:last-child {
    border-bottom: none;
}
.list-group.list-top .list-group-item {
    display: block;
    padding: 10px 15px;
    color: #337ab7;
    background-color: #fff;
    border: none;
    border-radius: 0;
}
.list-group.list-top .list-group-item:hover {
    background-color: #f5f5f5;
    color: #23527c;
}
.list-group.list-top .list-group-item .pull-right {
    color: #777;
}
.text-hidden {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* 书名和作者宽度分配 */
.list-group.list-top .list-group-item {
    display: flex;
    align-items: center;
}
/* 中间分类列表隐藏分类名 */
.list_46f .list-group.list-top .book-sort {
    display: none;
}

/* 底部新书推荐显示2字符分类 */
.list-group.list-top .book-sort {
    flex-shrink: 0;
    width: 2em;
    color: #999;
    font-size: 12px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}
.list-group.list-top .book-name {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-group.list-top .book-author {
    flex-shrink: 0;
    width: 5em;
    max-width: 6em;
    color: #777;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 最近更新表格样式 */
.panel-body .table {
    margin-bottom: 0;
}
.panel-body .table tr {
    border-bottom: 1px solid #e2d9d9;
}
.panel-body .table tr:last-child {
    border-bottom: none;
}
.panel-body .table td {
    padding: 10px 8px;
    border-top: none;
    vertical-align: middle;
}
.panel-body .table td a {
    color: #337ab7;
}
.panel-body .table td a:hover {
    color: #23527c;
}

/* 最近更新表格文字截断 */
.panel-body .table {
    table-layout: fixed;
}
.panel-body .table .td-sort {
    width: 30px !important;
    max-width: 30px !important;
    padding: 10px 2px !important;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 12px;
}
.panel-body .table .td-book {
    width: 30%;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-body .table .td-book a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-body .table .td-chapter {
    width: 30%;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-body .table .td-chapter a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-body .table .td-author {
    width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-body .table .td-date {
    width: 50px;
}

/* 新书推荐表格样式 */
.table-xinshu {
    margin-bottom: 0;
    table-layout: fixed;
}
.table-xinshu tr {
    border-bottom: 1px solid #e2d9d9;
}
.table-xinshu tr:last-child {
    border-bottom: none;
}
.table-xinshu td {
    padding: 10px 8px;
    border-top: none;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-xinshu td:first-child {
    width: 48px;
}
.table-xinshu td:last-child {
    width: 80px;
}
.table-xinshu td a {
    color: #337ab7;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.table-xinshu td a:hover {
    color: #23527c;
}

/* 3列列表样式 */
.list-inline-3col {
    display: flex;
    flex-wrap: wrap;
}
.list-inline-3col li {
    width: 33.33%;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .list-inline-3col li {
        width: 50%;
    }
}

/* 小说详情页 */
.bookTitle {
    font-size: 24px;
    color: #337ab7;
    margin: 0 0 15px;
    border-bottom: none;
    font-weight: normal;
}
.booktag {
    margin-bottom: 15px;
}
.booktag a, .booktag span {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}
.booktag .red {
    color: #d9534f;
    border-color: #d9534f;
}
.booktag .blue {
    color: #337ab7;
    border-color: #337ab7;
}
#bookIntro {
    color: #666;
    line-height: 1.8;
    text-align: justify;
    font-size: 14px;
}
.bookmore {
    margin: 15px 0;
}
.bookmore .btn {
    margin-right: 10px;
}

/* 章节列表 */
.panel-body dl {
    margin-bottom: 0;
}
.panel-body dd {
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #e2d9d9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-body dd:hover {
    background-color: #f5f5f5;
}
.panel-body dd a {
    color: #337ab7;
    font-size: 14px;
}
.panel-body dd a:hover {
    color: #23527c;
}

/* 阅读页 */
h1.readTitle, .readTitle {
    font-size: 24px;
    color: #337ab7 !important;
    text-align: center;
    margin: 20px 0;
    font-weight: normal;
    border-bottom: none;
}
.page-header {
    margin: 20px 0 10px;
    padding-bottom: 0;
    border-bottom: none;
}
.page-header .booktag {
    margin-top: 15px;
}
.page-header .booktag a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}
.page-header .booktag a.blue {
    color: #337ab7;
    border-color: #337ab7;
}
.page-header .booktag a.red {
    color: #d9534f;
    border-color: #d9534f;
}
#rtext {
    font-size: 18px;
    line-height: 2;
    text-align: justify;
    padding: 20px 40px;
    color: #333;
}
#rtext p {
    text-indent: 2em;
    margin-bottom: 1.5em;
}

/* 阅读设置 */
.readSet {
    display: inline-block;
    vertical-align: middle;
}
.readSet .ra {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 2px;
    cursor: pointer;
    border: 2px solid #ccc;
    vertical-align: middle;
}
.readSet .ra:hover {
    border-color: #337ab7;
}
.readSet .rf {
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}
.readSet .rt {
    display: inline-block;
    padding: 2px 6px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}
.readSet .rt:hover {
    color: #337ab7;
}

/* 章节导航 */
.readPager {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
}
.readPager a {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 5px;
    background-color: #337ab7;
    color: #fff;
    border-radius: 3px;
}
.readPager a:hover {
    background-color: #286090;
    color: #fff;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 8px 0;
    margin-bottom: 15px;
}
.breadcrumb > li + li:before {
    content: ">";
    color: #999;
}

/* 最新标签 */
.tag-list {
    line-height: 2.2;
}
.tag-list a {
    display: inline-block;
    margin: 0 8px;
    color: #333;
    font-size: 13px;
}
.tag-list a:hover {
    color: #337ab7;
    text-decoration: underline;
}

/* 页脚 */
.footer_46f {
    background-color: #f5f5f5;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 12px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #337ab7;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 3px;
    cursor: pointer;
    display: none;
    z-index: 999;
}
.back-to-top:hover {
    background-color: #286090;
}

/* 工具类 */
.fs-12 { font-size: 12px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }

.red { color: #d9534f; }
.blue { color: #337ab7; }
.gray { color: #999; }
.text-muted { color: #777; }

.mt10 { margin-top: 10px; }
.mt15 { margin-top: 15px; }
.mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; }
.mb15 { margin-bottom: 15px; }
.mb20 { margin-bottom: 20px; }
.pl0 { padding-left: 0; }
.pr0 { padding-right: 0; }

.clear { clear: both; }
.flex { display: flex; }

/* 响应式 */
@media (max-width: 991px) {
    .search_46f {
        margin: 10px 0;
    }
    .search_46f .form-control {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    .book-coverlist {
        padding: 0 5px;
    }
    .cover_46f {
        height: 120px;
    }
    .bookTitle {
        font-size: 18px;
    }
    #rtext {
        font-size: 16px;
        padding: 10px;
    }
    .readPager a {
        padding: 6px 12px;
        font-size: 12px;
    }
}
