/* 精品推荐卡片布局优化 - 适配9个卡片的完美显示 */

/* 优化精品推荐网格布局 */
.featured-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin-top: 40px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 精品推荐卡片优化 */
.featured-book {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(25, 118, 210, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 280px !important;
}

/* 卡片悬停效果 */
.featured-book:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(25, 118, 210, 0.15) !important;
    border-color: #1976d2 !important;
}

/* 书籍封面区域 */
.book-cover {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
}

.book-image {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #1976d2 0%, #64b5f6 100%) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3) !important;
}

/* 书籍标签优化 */
.book-badge {
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.book-badge.hot {
    background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%) !important;
}

.book-badge.new {
    background: linear-gradient(135deg, #00c851 0%, #00ff41 100%) !important;
}

.book-badge.update {
    background: linear-gradient(135deg, #ff8800 0%, #ffbb33 100%) !important;
}

.book-badge:contains("甜") {
    background: linear-gradient(135deg, #ff69b4 0%, #ffc0cb 100%) !important;
}

.book-badge:contains("完") {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%) !important;
}

.book-badge:contains("火") {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%) !important;
}

/* 书籍信息区域 */
.book-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.book-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1976d2 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.book-author {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin: 0 0 8px 0 !important;
}

.book-desc {
    font-size: 0.9rem !important;
    color: #555 !important;
    line-height: 1.4 !important;
    margin: 0 0 15px 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.book-stats {
    display: flex !important;
    gap: 15px !important;
    margin-top: auto !important;
}

.book-stats .stat {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.8rem !important;
    color: #888 !important;
}

.book-stats .stat i {
    font-size: 0.75rem !important;
    color: #1976d2 !important;
}

/* 平板设备适配 (1024px - 768px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 移动设备适配 (768px以下) */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }
    
    .featured-book {
        min-height: 240px !important;
        padding: 15px !important;
    }
    
    .book-image {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .book-title {
        font-size: 1rem !important;
    }
    
    .book-desc {
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }
}

/* 超大屏幕适配 (1400px以上) */
@media (min-width: 1400px) {
    .featured-grid {
        max-width: 1400px !important;
        gap: 30px !important;
    }
    
    .featured-book {
        min-height: 320px !important;
        padding: 25px !important;
    }
    
    .book-image {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.8rem !important;
    }
    
    .book-title {
        font-size: 1.2rem !important;
    }
} 