/* 热门推荐模块 - 三列布局 */
.popular-books-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    padding: 30px;
}

.popular-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.popular-column-header {
    /* 移除背景，让统一的背景生效 */
    /* background: linear-gradient(135deg, #f8fbff 0%, #e6f3ff 100%); */
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    /* 移除边框，让统一的背景生效 */
    /* border-left: 4px solid #4a90e2; */
    border: none;
}

.popular-column-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0 0 4px 0;
}

.popular-column-subtitle {
    font-size: 12px;
    color: #5a7c9a;
    margin: 0;
}

.popular-book-item {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    border: none;
}

.popular-book-item:hover {
    transform: translateY(-2px);
}

.popular-book-item.with-cover {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    flex-direction: row;
}

.popular-book-item.text-only {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.popular-book-cover {
    width: 90px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
    order: 2;
}

.popular-book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.popular-book-cover:not([style*="background-image"]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.popular-book-cover:not([style*="background-image"])::before {
    display: none;
}

.popular-book-info {
    flex: 1;
    min-width: 0;
    order: 1;
}

.popular-book-rank {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.popular-book-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    margin-top: 0px;
}

.popular-book-title a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.2s;
}

.popular-book-title a:hover {
    color: #4a90e2;
}

.popular-book-author {
    color: #5a7c9a;
    font-size: 13px;
    margin-bottom: 8px;
}

.popular-book-outline {
    color: #6b7c93;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
}

/* 带封面产品的标题行样式 */
.popular-book-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.popular-book-title-row .popular-book-rank {
    margin-bottom: 0;
}

.popular-book-title-row .popular-book-title {
    margin-bottom: 0;
}

.popular-book-number {
    background: linear-gradient(135deg, #e9ecef 0%, #d1d9e0 100%);
    color: #495057;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.popular-book-content {
    flex: 1;
    min-width: 0;
}

/* 热门推荐模块响应式设计 */
@media (max-width: 1200px) {
    .popular-books-layout {
        gap: 30px;
        padding: 25px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    }
    
    .popular-column {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .popular-books-layout {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    
    .popular-column {
        max-width: 100%;
    }
    
    .popular-book-item.with-cover {
        padding: 12px;
        gap: 12px;
    }
    
    .popular-book-cover {
        width: 60px;
        height: 90px;
        font-size: 18px;
    }
    
    .popular-book-title {
        font-size: 14px;
    }
    
    .popular-book-author {
        font-size: 12px;
    }
} 