/* ============================================================
   书库样式 - 川渝中文网
   ============================================================ */

/* 筛选区 */
.filter-section { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 15px 0; }
.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-size: 14px; color: #999; flex-shrink: 0; min-width: 50px; }
.filter-group { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-item { padding: 4px 14px; font-size: 13px; color: #666; border-radius: 15px; }
.filter-item:hover { background: #f5f5f5; }
.filter-item.active { background: #e65540; color: #fff; }

/* 结果区 */
.bookstore-results { padding: 20px 0; min-height: 60vh; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.results-count { font-size: 14px; color: #666; }
.results-count strong { color: #e65540; font-size: 16px; }

/* 视图切换按钮 */
.view-toggle { display: flex; gap: 5px; }
.view-btn {
    width: 32px; height: 32px; border: 1px solid #e0e0e0; border-radius: 6px;
    background: #fff; font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
}
.view-btn:hover { border-color: #e65540; color: #e65540; }
.view-btn.active { background: #e65540; color: #fff; border-color: #e65540; }

/* 书库列表 */
.bookstore-list { display: flex; flex-direction: column; gap: 15px; }
.bookstore-list.grid-view { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.bookstore-list.grid-view .bookstore-item { flex-direction: column; padding: 12px; }
.bookstore-list.grid-view .bookstore-cover { width: 100%; height: 150px; margin-bottom: 10px; }
.bookstore-list.grid-view .bookstore-intro { display: none; }
.bookstore-list.grid-view .bookstore-meta { margin-bottom: 4px; }
.bookstore-list.grid-view .bookstore-stats { display: none; }
.bookstore-list.grid-view .bookstore-last { display: none; }
.bookstore-list.list-view { display: flex; flex-direction: column; gap: 15px; }

.bookstore-item { display: flex; gap: 15px; background: #fff; padding: 20px; border-radius: 12px; transition: all 0.3s; }
.bookstore-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.bookstore-cover { width: 100px; height: 133px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #f5f5f5, #e0e0e0); display: flex; align-items: center; justify-content: center; position: relative; }
.bookstore-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bookstore-cover .placeholder { font-size: 40px; opacity: 0.25; }
.bookstore-info { flex: 1; min-width: 0; }
.bookstore-title { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.bookstore-meta { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #999; align-items: center; }
.bookstore-meta .status-tag { background: #fff0ed; color: #e65540; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.bookstore-intro { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bookstore-stats { display: flex; gap: 15px; font-size: 13px; color: #999; margin-bottom: 5px; }
.bookstore-last { font-size: 12px; color: #999; }
.bookstore-last span { color: #e65540; }

/* 完本小说/新书入库 */
.bookstore-page-header { background: #fff; padding: 25px 0; border-bottom: 1px solid #e8e8e8; }
.bookstore-page-header h2 { font-size: 22px; }
.bookstore-page-header p { font-size: 14px; color: #999; margin-top: 5px; }

/* 每日推荐 */
.daily-section { padding: 30px 0; }
.daily-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.daily-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; transition: all 0.3s; }
.daily-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.daily-cover { width: 120px; height: 160px; flex-shrink: 0; background: linear-gradient(135deg, #f5f5f5, #e0e0e0); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.daily-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily-cover .placeholder { font-size: 48px; opacity: 0.25; }
.daily-info { padding: 15px; flex: 1; }
.daily-title { font-size: 16px; font-weight: 500; margin-bottom: 5px; }
.daily-author { font-size: 13px; color: #999; margin-bottom: 8px; }
.daily-intro { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.daily-stats { display: flex; gap: 10px; margin-top: 8px; font-size: 12px; color: #999; }

/* 响应式 */
@media (max-width: 768px) {
    .bookstore-item { flex-direction: column; }
    .bookstore-cover { width: 100%; height: 150px; }
    .daily-grid { grid-template-columns: 1fr; }
    .filter-row { flex-wrap: wrap; }
}
