/* themes/default/css/book.css - V73.0 样式解绑版 */

/* === 书籍主页 === */
.book-container {
    max-width: 800px; margin: 0 auto;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    min-height: 80vh;
}

/* 头部信息 */
.book-header {
    display: flex; gap: 30px; padding: 40px;
    background: linear-gradient(to bottom, #fcfcfc, #fff);
    border-bottom: 1px dashed #eee;
}
@media (max-width: 600px) {
    .book-header { flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; }
}

.book-cover-wrap {
    flex-shrink: 0; width: 140px; height: 200px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px; overflow: hidden; position: relative;
}
.book-cover { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder {
    width: 100%; height: 100%; background: #2B6E75;
    display: flex; align-items: center; justify-content: center;
    color: #fff; padding: 10px; writing-mode: vertical-rl;
}
.v-title { font-family: "Ma Shan Zheng", cursive; font-size: 1.5rem; border: 1px solid rgba(255,255,255,0.3); padding: 10px 5px; }

.book-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.book-title { font-size: 2rem; font-weight: bold; margin-bottom: 10px; color: var(--c-primary); }
.book-meta { margin-bottom: 15px; display: flex; gap: 15px; flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 600px) { .book-meta { justify-content: center; } }
.meta-tag { font-size: 0.85rem; color: #666; background: #f5f5f5; padding: 2px 8px; border-radius: 4px; }
.book-intro { font-size: 0.95rem; color: #555; line-height: 1.8; margin-bottom: 20px; text-align: justify; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.btn-read-start {
    display: inline-block; padding: 10px 30px;
    background: var(--c-primary); color: #fff;
    border-radius: 30px; text-decoration: none; font-weight: bold;
    box-shadow: 0 4px 10px rgba(43, 110, 117, 0.2);
    transition: 0.2s;
}
.btn-read-start:hover { transform: translateY(-2px); opacity: 0.9; }

/* 目录 */
.catalog-box { padding: 30px 40px; }
.catalog-title { font-size: 1.2rem; font-weight: bold; border-left: 4px solid var(--c-primary); padding-left: 10px; margin-bottom: 20px; }

.volume-group { margin-bottom: 25px; }
.volume-name { font-weight: bold; color: var(--c-secondary); margin-bottom: 10px; font-size: 1rem; background: #f9f9f9; padding: 5px 10px; border-radius: 4px; }

.chapter-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
    gap: 10px; 
}
.chapter-item {
    display: block; padding: 8px 10px; background: #fff; border: 1px solid #eee;
    border-radius: 6px; color: #333; font-size: 0.9rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: 0.2s;
}
.chapter-item:hover { border-color: var(--c-primary); color: var(--c-primary); background: #f0f7f7; }


/* === 阅读页 === */
.read-container { max-width: 800px; margin: 0 auto; }
.read-breadcrumb { padding: 15px 0; color: #999; font-size: 0.9rem; display: flex; align-items: center; }
.read-breadcrumb a:hover { color: var(--c-primary); }

.read-paper {
    background: #fdfdfd; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 50px 60px;
    min-height: 80vh; position: relative;
}
@media (max-width: 600px) { .read-paper { padding: 30px 20px; } }

.read-title { text-align: center; font-size: 1.8rem; font-weight: bold; margin-bottom: 10px; color: #111; font-family: "Noto Serif SC", serif; }
.read-meta { text-align: center; color: #999; font-size: 0.9rem; margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 20px; }

/* [核心修改] 
   删除了这里的 p 标签样式。
   样式完全交由 page-detail.css 中的 .verse-p 和 .indent 控制。
*/
.read-content { 
    /* 仅保留基础字号 */
    font-size: 1.2rem; line-height: 1.8; color: #222; 
}

/* 底部导航 */
.read-nav { 
    margin-top: 60px; border-top: 1px dashed #ddd; padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-btn { 
    flex: 1; text-align: center; padding: 10px; border-radius: 8px;
    color: #333; transition: 0.2s;
}
.nav-btn:hover:not(.disabled) { background: #f5f5f5; color: var(--c-primary); }
.nav-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.nav-btn small { display: block; color: #999; margin-bottom: 2px; }
.nav-btn.menu i { font-size: 1.5rem; }

/* 悬浮球 */
.font-fab {
    position: fixed; bottom: 100px; right: 20px;
    width: 40px; height: 40px; background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #666; cursor: pointer; z-index: 90;
}