/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
ul, ol { list-style: none; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", SimHei, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
}
a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #d32f2f;
}
.clear { clear: both; }
.wrapper {
    width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
/* Layout Utilities */
.fl { float: left; }
.fr { float: right; }
.mt10 { margin-top: 10px; }
.mb10 { margin-bottom: 10px; }

/* Top Bar */
.top-bar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    height: 35px;
    line-height: 35px;
    font-size: 12px;
    color: #999;
}
.top-bar .wrapper {
    background: transparent;
    box-shadow: none;
}
.top-bar a {
    color: #666;
    margin: 0 10px;
}
.top-bar .login-box {
    float: right;
}
.top-bar input.text {
    border: 1px solid #ddd;
    padding: 2px 5px;
    height: 20px;
    vertical-align: middle;
}
.top-bar .btn-login {
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 2px 8px;
    vertical-align: middle;
}

/* Header */
.header {
    padding: 20px 0;
    height: 60px;
    position: relative;
}
.logo {
    float: left;
    font-size: 28px;
    font-weight: bold;
    margin-left: 20px;
}
.logo a { color: #d32f2f; }
.search-box {
    float: right;
    margin-right: 20px;
    margin-top: 10px;
}
.search-box input.search-input {
    border: 2px solid #d32f2f;
    padding: 8px 10px;
    width: 300px;
    outline: none;
}
.search-box button.search-btn {
    background-color: #d32f2f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    margin-left: -4px;
}

/* Nav */
.nav {
    background-color: #3e4245;
    height: 45px;
    line-height: 45px;
}
.nav ul {
    width: 1200px;
    margin: 0 auto;
}
.nav li {
    float: left;
}
.nav li a {
    display: block;
    padding: 0 25px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}
.nav li a:hover, .nav li.cur a {
    background-color: #2c2f32;
}

/* Home Layout */
.main-grid {
    padding: 20px;
    overflow: hidden;
}
.col-l {
    width: 300px;
    float: left;
}
.col-m {
    width: 540px;
    float: left;
    margin: 0 20px;
}
.col-r {
    width: 300px;
    float: right;
}

.panel {
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}
.panel-heading {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e8e8e8;
    height: 35px;
    line-height: 35px;
    padding: 0 10px;
    font-weight: bold;
    color: #333;
    border-left: 4px solid #d32f2f;
}
.panel-body {
    padding: 10px;
}
.panel-body ul li {
    line-height: 30px;
    border-bottom: 1px dashed #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-body ul li a {
    font-size: 14px;
}
.panel-body ul li span.author {
    float: right;
    color: #999;
    font-size: 12px;
}
.panel-body ul li span.cate {
    color: #999;
    margin-right: 5px;
}

/* Book Info */
.book-info-box {
    padding: 20px;
    overflow: hidden;
    position: relative;
}
.book-img {
    float: left;
    width: 150px;
    height: 200px;
    border: 1px solid #eee;
    padding: 4px;
    background: #fff;
}
.book-img img {
    width: 100%;
    height: 100%;
}
.book-main {
    margin-left: 180px;
}
.book-main h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
.book-main p {
    line-height: 28px;
    color: #666;
}
.book-actions {
    margin-top: 15px;
}
.btn {
    display: inline-block;
    padding: 8px 25px;
    border-radius: 2px;
    color: #fff;
    font-size: 14px;
    margin-right: 10px;
}
.btn-primary { background-color: #d32f2f; }
.btn-success { background-color: #388e3c; }
.btn:hover { opacity: 0.9; color: #fff; }

.book-intro {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    line-height: 1.8;
    color: #555;
    text-indent: 2em;
}

/* Chapter List */
.chapter-list dl {
    overflow: hidden;
    border: 1px solid #e8e8e8;
    padding: 10px;
    background: #fff;
}
.chapter-list dt {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    background: #f9f9f9;
}
.chapter-list dd {
    float: left;
    width: 33.33%;
    height: 35px;
    line-height: 35px;
    border-bottom: 1px solid #f5f5f5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-indent: 10px;
}
.chapter-list dd a {
    font-size: 14px;
}

/* Read Page */
.read-body {
    background-color: #f6f6f6;
}
.read-wrapper {
    width: 960px;
    margin: 20px auto;
    background-color: #fcfcfa;
    border: 1px solid #e3e3e3;
    padding: 40px 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.read-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.read-meta {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 12px;
}
.read-meta a { margin: 0 10px; color: #999; }
.read-content {
    font-size: 18px;
    line-height: 1.8;
    color: #111;
    font-family: "Microsoft YaHei", sans-serif;
}
.read-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}
.read-nav {
    margin-top: 40px;
    text-align: center;
}
.read-nav a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #ddd;
    background: #fff;
    margin: 0 5px;
    border-radius: 20px;
    color: #333;
}
.read-nav a:hover {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* Footer */
.footer {
    background-color: #3e4245;
    color: #999;
    padding: 30px 0;
    margin-top: 20px;
    text-align: center;
}
.footer a { color: #ccc; }
.footer-links { margin-bottom: 10px; }
.footer-copyright p { line-height: 24px; }
.footer_cont {
    text-align: center;
    line-height: 24px;
    color: #999;
    font-size: 12px;
}
.footer_cont p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .wrapper, .nav ul { width: 100%; }
    .col-l, .col-m, .col-r { width: 100%; float: none; margin: 0; }
    .chapter-list dd { width: 50%; }
    .read-wrapper { width: 95%; padding: 20px; }
}
/* User Forms */
.user-form { width: 400px; margin: 50px auto; border: 1px solid #ddd; padding: 30px; background: #fff; }
.user-form h3 { text-align: center; margin-bottom: 20px; font-size: 20px; border-bottom: 2px solid #d32f2f; padding-bottom: 10px; display: inline-block; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #666; }
.form-group input[type=text], .form-group input[type=password] { width: 100%; padding: 8px; border: 1px solid #ddd; box-sizing: border-box; }
.form-group .btn { width: 100%; text-align: center; border: none; cursor: pointer; padding: 10px 0;}

/* Helper for ads */
.adtxt { margin: 10px auto; text-align: center; }
