/* 笔趣阁小说网样式 */
/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    max-width: 100vw;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: #333;
}
ul, ol {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 顶部导航与搜索栏 */
.top-nav {
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}
.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
}
.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
}
.user-actions {
    display: flex;
    align-items: center;
}
.user-action {
    margin-left: 20px;
    color: #ecf0f1;
    font-size: 14px;
}

/* 轮播图 */
.banner {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    height: 200px;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* 功能导航区 */
.func-nav {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.func-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.func-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3498db;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

/* 书籍信息 */
.book-header {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}
.book-cover {
    width: 160px;
    height: 220px;
    background: linear-gradient(135deg, #8e44ad, #3498db);
    border-radius: 5px;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.book-info {
    flex: 1;
    min-width: 300px;
}
.book-main-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}
.book-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}
.book-meta {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 15px;
}
.book-author, .book-category, .book-status {
    margin-right: 15px;
}
.book-desc {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}
.book-actions {
    display: flex;
    gap: 15px;
}
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
}
.btn-primary:hover {
    background-color: #2980b9;
}
.btn-outline {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}
.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

/* 章节内容 */
.chapter-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.chapter-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.chapter-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}
.chapter-meta {
    color: #7f8c8d;
    font-size: 14px;
}
.chapter-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.chapter-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 评论区 */
.comments-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}
.comment-list {
    margin-bottom: 30px;
}
.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}
.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #8e44ad);
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.comment-user {
    font-weight: 500;
}
.comment-time {
    color: #95a5a6;
    font-size: 13px;
    margin-left: 10px;
}
.comment-text {
    color: #555;
    line-height: 1.6;
}
.comment-form textarea {
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    resize: vertical;
    font-family: inherit;
}
.comment-submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

/* 推荐区域 */
.recommendations {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.book-list {
    margin-top: 15px;
}
.book-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}
.book-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.book-thumb {
    width: 70px;
    height: 95px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}
.book-item-info {
    flex: 1;
}
.book-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #2c3e50;
}
.book-item-meta {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 5px;
}
.book-item-desc {
    font-size: 14px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 更多推荐 */
.more-recommend {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.recommend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}
.recommend-item {
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}
.recommend-item:hover {
    background-color: #f1f1f1;
}

/* 底部引导栏 */
.app-download {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}
.download-title {
    font-size: 20px;
    margin-bottom: 10px;
}
.download-btn {
    display: inline-block;
    background-color: white;
    color: #3498db;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.footer-link {
    color: #ecf0f1;
    margin: 0 15px;
    font-size: 14px;
}
.footer-link:hover {
    color: #3498db;
}
.copyright {
    font-size: 13px;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
grid-template-columns: 1fr;
    }
    .book-header {
flex-direction: column;
align-items: center;
text-align: center;
    }
    .book-cover {
margin-right: 0;
margin-bottom: 20px;
    }
    .book-actions {
justify-content: center;
    }
    .func-nav {
grid-template-columns: repeat(2, 1fr);
    }
    .recommend-list {
grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-inner {
flex-wrap: wrap;
height: auto;
padding: 10px 15px;
    }
    .search-box {
order: 3;
margin: 10px 0 0;
max-width: 100%;
    }
    .user-actions {
margin-left: auto;
    }
    .banner {
height: 150px;
font-size: 18px;
    }
    .func-nav {
grid-template-columns: 1fr;
    }
}