/* 书籍详情页特有样式 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
}

.book-detail-container {
    display: flex;
    margin: 20px 0;
    gap: 30px;
}

.book-cover-section {
    flex: 1;
    max-width: 300px;
}

.book-cover {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.book-info-section {
    flex: 2;
}

.book-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.book-meta span {
    display: flex;
    align-items: center;
}

.book-meta i {
    margin-right: 5px;
    font-style: normal;
}

.book-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

.book-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.book-intro {
    margin-bottom: 30px;
}

.intro-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.intro-content {
    line-height: 1.8;
    color: #555;
}

.chapter-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 22px;
    color: #2c3e50;
    font-weight: bold;
}

.more-link {
    font-size: 14px;
    color: #3498db;
}

.chapter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.chapter-item {
    padding: 10px 15px;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.chapter-item:hover {
    background-color: #e9ecef;
}

.chapter-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
}

.chapter-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.chapter-date {
    font-size: 12px;
    color: #7f8c8d;
}

.comment-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-form {
    margin-bottom: 30px;
}

.comment-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-submit {
    display: flex;
    justify-content: flex-end;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
}

.comment-time {
    font-size: 12px;
    color: #7f8c8d;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.recommend-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.novel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.novel-item {
    text-align: center;
    transition: transform 0.3s;
}

.novel-item:hover {
    transform: translateY(-5px);
}

.novel-cover {
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.novel-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-author {
    font-size: 14px;
    color: #7f8c8d;
}

/* 底部样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #3498db;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info .icon {
    margin-right: 10px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    transition: all 0.3s;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

/* 返回顶部按钮样式 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .book-detail-container {
        flex-direction: column;
    }

    .book-cover-section {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .book-cover {
        max-width: 250px;
    }

    .book-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .chapter-list {
        grid-template-columns: 1fr;
    }

    .novel-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .book-title {
        font-size: 24px;
    }

    .book-meta {
        flex-direction: column;
        gap: 10px;
    }

    .book-stats {
        justify-content: space-between;
    }

    .stat-item {
        min-width: 80px;
        padding: 8px 10px;
    }

    .stat-value {
        font-size: 18px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}