/* ==================== 书籍详情页样式 ==================== */

/* 书籍详情 */
.book-detail { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 30px; margin: 20px 0; display: grid; grid-template-columns: 200px 1fr; gap: 30px; }
.book-cover { width: 200px; height: 260px; background: #f0f4f8; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-info { padding: 10px 0; }
.book-title { font-size: 26px; font-weight: bold; color: #2c3e50; margin-bottom: 15px; }
.book-meta { background: #d6eaf8; padding: 15px; border-radius: 5px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 20px; }
.book-meta-item { color: #666; font-size: 13px; flex: 1; min-width: 120px; }
.book-meta-item span { color: #333; font-weight: bold; }
.book-intro { background: #d6eaf8; padding: 15px; border-radius: 5px; margin-bottom: 20px; }
.book-intro h3 { color: #2c3e50; margin-bottom: 10px; font-size: 14px; }
.book-intro p { color: #555; line-height: 1.8; font-size: 13px; }
.book-actions { display: flex; gap: 15px; }
.book-actions a { display: inline-block; padding: 10px 30px; background: #2c3e50; color: #fff; border-radius: 5px; font-size: 14px; transition: all 0.3s; }
.book-actions a:hover { background: #1a252f; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(44,62,80,0.3); }
.book-actions .read-btn { background: #34495e; }
.book-actions .read-btn:hover { background: #2c3e50; }

/* 章节列表 */
.chapter-section { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin: 20px 0; overflow: hidden; }
.section-header { background: linear-gradient(135deg, #2c3e50, #34495e); color: #fff; padding: 12px 20px; font-weight: bold; font-size: 15px; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.chapter-item { padding: 12px 20px; border-bottom: 1px solid #eee; border-right: 1px solid #eee; font-size: 13px; transition: all 0.3s; }
.chapter-item:nth-child(3n) { border-right: none; }
.chapter-item:hover { background: #2c3e50; }
.chapter-item:hover a { color: #fff; }
.chapter-item a { color: #333; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item.new { background: #d6eaf8; border-color: #aed6f1; }
.chapter-item.new a { color: #34495e; }

/* 响应式 */
@media (max-width: 1024px) {
    .book-detail { grid-template-columns: 180px 1fr; gap: 20px; }
    .book-cover { width: 180px; height: 234px; }
    .chapter-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .book-detail { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .book-cover { width: 150px; height: 195px; margin: 0 auto; }
    .chapter-grid { grid-template-columns: repeat(2, 1fr); }
    .book-actions { flex-wrap: wrap; }
    .book-actions a { flex: 1; text-align: center; min-width: 100px; }
    .book-title { font-size: 22px; }
}
@media (max-width: 480px) {
    .chapter-grid { grid-template-columns: 1fr; }
    .chapter-item { padding: 10px 15px; font-size: 12px; }
    .book-meta { gap: 10px; }
    .book-meta-item { min-width: 100px; font-size: 12px; }
}
