/* ============================================================
   小说详情页样式
   ============================================================ */

/* 小说信息区 */
.book-info-section { background: #fff; padding: 30px 0; border-bottom: 1px solid #e8e8e8; }
.book-info-main { display: flex; gap: 30px; }
.book-cover-lg { width: 240px; height: 320px; flex-shrink: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f5f5, #e0e0e0); position: relative; }
.book-cover-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-lg .placeholder { font-size: 56px; opacity: 0.25; }
.book-detail { flex: 1; }
.book-name { font-size: 28px; font-weight: bold; margin-bottom: 10px; }
.book-meta-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.meta-tag { display: inline-block; padding: 3px 12px; border-radius: 15px; font-size: 13px; }
.cat-tag { background: #e6f7ff; color: #1890ff; }
.status-tag { background: #f6ffed; color: #52c41a; }
.vip-tag { background: #fff7e6; color: #fa8c16; }
.book-author-name { font-size: 15px; color: #666; margin-bottom: 15px; }
.book-author-name strong { color: #e65540; }

.book-stats { display: flex; gap: 30px; margin-bottom: 20px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 20px; font-weight: bold; color: #333; }
.stat-label { font-size: 13px; color: #999; }

.tag-tag { background: #f9f0ff; color: #722ed1; }

.book-actions { display: flex; gap: 12px; margin-bottom: 15px; }
.btn { display: inline-block; padding: 10px 28px; border-radius: 25px; font-size: 15px; text-align: center; cursor: pointer; border: none; transition: all 0.3s; }
.btn-primary { background: #e65540; color: #fff; }
.btn-primary:hover { background: #d44a35; color: #fff; }
.btn-secondary { background: #ff9900; color: #fff; }
.btn-secondary:hover { background: #e68a00; color: #fff; }
.btn-outline { border: 2px solid #e65540; color: #e65540; background: transparent; }
.btn-outline:hover { background: #e65540; color: #fff; }
.btn-report { background: #fff0f0; color: #ff4d4f; border: 1px solid #ffccc7; font-size: 13px; padding: 8px 16px; }
.btn-report:hover { background: #ff4d4f; color: #fff; }

.book-update { font-size: 13px; color: #999; }
.update-chapter { color: #e65540; }
.update-time { margin-left: 10px; }

/* 简介区 */
.book-intro-section { padding: 25px 0; }
.intro-box { background: #fff; border-radius: 12px; padding: 25px; }
.intro-title { font-size: 18px; margin-bottom: 15px; color: #333; }
.intro-content { font-size: 15px; line-height: 1.8; color: #666; }

/* 目录区 */
.book-catalog-section { padding: 25px 0; }
.chapter-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chapter-item { display: block; padding: 10px 15px; background: #fff; border-radius: 8px; font-size: 14px; color: #666; transition: all 0.2s; position: relative; }
.chapter-item:hover { background: #fff0ed; color: #e65540; }
.vip-badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: #ff9900; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px; }

/* 相关推荐 */
.book-related-section { padding: 25px 0; }

/* 评论区 */
.book-comment-section { padding: 25px 0 50px; }
.comment-form { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.comment-form textarea { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; font-size: 14px; resize: vertical; outline: none; }
.comment-form textarea:focus { border-color: #e65540; }
.comment-form .btn { margin-top: 10px; }

.comment-list { display: flex; flex-direction: column; gap: 15px; }
.comment-item { background: #fff; border-radius: 12px; padding: 20px; }
.comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.comment-user { font-weight: 500; color: #e65540; }
.comment-time { font-size: 13px; color: #999; }
.comment-content { font-size: 14px; line-height: 1.7; color: #333; margin-bottom: 10px; }
.comment-footer { display: flex; gap: 20px; font-size: 13px; color: #999; }

/* 响应式 */
@media (max-width: 768px) {
    .book-info-main { flex-direction: column; align-items: center; text-align: center; }
    .book-cover-lg { width: 180px; height: 240px; }
    .book-stats { justify-content: center; gap: 20px; }
    .book-actions { justify-content: center; flex-wrap: wrap; }
    .chapter-list { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   新增：互动操作区
   ============================================================ */
.book-interact {
    background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 15px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.interact-section { text-align: center; }
.interact-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.star-rating { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; }
.star { font-size: 24px; color: #ddd; cursor: pointer; transition: all 0.2s; }
.star:hover { color: #faad14; transform: scale(1.2); }
.rating-hint { font-size: 12px; color: #999; }
.interact-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn-sm { padding: 6px 16px; font-size: 13px; border-radius: 20px; }
.btn-reward { background: #ff7d00; color: #fff; }
.btn-reward:hover { background: #e67000; }
.btn-ticket { background: #722ed1; color: #fff; }
.btn-ticket:hover { background: #5b1fa8; }
.login-tip { font-size: 13px; color: #999; }

/* 作者信息卡片 */
.book-author-section { padding: 0 0 20px; }
.author-card {
    background: #fff; border-radius: 12px; padding: 20px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.author-avatar {
    width: 55px; height: 55px; border-radius: 50%;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; flex-shrink: 0;
}
.author-info { flex: 1; }
.author-pen-name { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.author-bio { font-size: 13px; color: #999; margin-bottom: 6px; }
.author-stats { display: flex; gap: 15px; font-size: 12px; color: #666; }

/* 最近更新章节 */
.book-latest-section { padding: 0 0 20px; }
.latest-chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.latest-chapter-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 15px;
    background: #fff; border-radius: 8px; font-size: 14px; color: #666;
    transition: all 0.2s; text-decoration: none;
}
.latest-chapter-item:hover { background: #fff0ed; color: #e65540; }
.lc-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-meta { font-size: 12px; color: #bbb; white-space: nowrap; }

/* Toast 通知 */
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
    padding: 10px 24px; border-radius: 8px; font-size: 14px; color: #fff;
    z-index: 9999; opacity: 0; transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: #52c41a; }
.toast-error { background: #ff4d4f; }
.toast-info { background: #1890ff; }

/* 暗色模式 */
body.dark-mode .book-interact { background: var(--bg-card); }
body.dark-mode .author-card { background: var(--bg-card); }
body.dark-mode .latest-chapter-item { background: var(--bg-card); }
body.dark-mode .latest-chapter-item:hover { background: var(--bg-hover); }
body.dark-mode .lc-meta { color: var(--text-muted); }
body.dark-mode .login-tip { color: var(--text-muted); }
body.dark-mode .rating-hint { color: var(--text-muted); }
