/* ========================================
   热门推荐书籍板块 - 简约现代风格 v1.4
   ======================================== */

/* 板块容器 */
.hot-books-section {
    width: 100%;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hot-books-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F57F17, transparent);
}

.hot-books-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 板块标题 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 1.8rem;
    color: #F57F17;
    animation: fireGlow 2s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% {
        color: #F57F17;
        filter: drop-shadow(0 0 4px rgba(245, 127, 23, 0.3));
    }
    50% {
        color: #FF9800;
        filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.5));
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F57F17, #FF9800);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 16px;
}

/* 书籍网格 */
.hot-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* 书籍卡片 */
.hot-book-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
    min-height: 180px;
}

.hot-book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #F57F17, #FF9800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hot-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(245, 127, 23, 0.15);
    border-color: rgba(245, 127, 23, 0.3);
}

.hot-book-card:hover::before {
    transform: scaleX(1);
}

/* 书籍内容布局 */
.hot-book-content {
    display: flex;
    gap: 20px;
}

/* 书籍封面 */
.hot-book-cover {
    width: 110px;
    height: 146px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
}

.hot-book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.hot-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hot-book-card:hover .hot-book-cover img {
    transform: scale(1.08);
}

/* 书籍信息 */
.hot-book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.hot-book-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.hot-book-card:hover .hot-book-title {
    color: #F57F17;
}

.hot-book-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-book-author i {
    font-size: 0.85rem;
    color: #F57F17;
}

.hot-book-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

/* 书籍标签 */
.hot-book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.hot-book-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(245, 127, 23, 0.1);
    border: 1px solid rgba(245, 127, 23, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #F57F17;
    font-weight: 600;
}

.hot-book-tag i {
    font-size: 0.7rem;
}

.hot-book-tag.popularity {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
    color: #FF9800;
}

/* 查看更多按钮 */
.view-more-container {
    text-align: center;
    margin-top: 48px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #F57F17 0%, #FF9800 100%);
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(245, 127, 23, 0.35);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 127, 23, 0.45);
}

.view-more-btn span,
.view-more-btn i {
    color: #ffffff !important;
}

.view-more-btn span {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.view-more-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.view-more-btn:hover i {
    transform: translateX(4px);
}

/* 加载状态 */
.hot-books-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1rem;
}

.hot-books-loading i {
    font-size: 2rem;
    color: #F57F17;
    margin-bottom: 16px;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.hot-books-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.hot-books-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hot-books-container {
        max-width: 1200px;
        padding: 0 30px;
    }

    .hot-books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1100px;
    }

    .hot-book-card {
        padding: 20px;
    }

    .hot-book-cover {
        width: 95px;
        height: 126px;
    }
}

@media (max-width: 992px) {
    .hot-books-section {
        padding: 50px 0;
    }

    .hot-books-container {
        padding: 0 20px;
    }

    .hot-books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 900px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hot-book-cover {
        width: 85px;
        height: 113px;
    }

    .hot-book-content {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .hot-books-section {
        padding: 40px 0;
    }

    .hot-books-container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .hot-books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 100%;
    }

    .hot-book-card {
        padding: 16px;
    }

    .hot-book-content {
        gap: 12px;
    }

    .hot-book-cover {
        width: 80px;
        height: 106px;
    }

    .hot-book-title {
        font-size: 0.95rem;
    }

    .hot-book-author {
        font-size: 0.8rem;
    }

    .hot-book-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .view-more-btn {
        padding: 14px 40px;
        font-size: 1.1rem;
        font-weight: 800;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 580px) {
    .hot-books-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hot-book-card {
        padding: 16px;
        min-height: 160px;
    }

    .hot-book-cover {
        width: 90px;
        height: 120px;
    }

    .hot-book-content {
        gap: 16px;
    }

    .hot-book-title {
        font-size: 1rem;
    }

    .hot-book-desc {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* 性能优化 */
.hot-book-card {
    will-change: transform;
}

.hot-book-cover img {
    will-change: transform;
}

/* 确保不与其他样式冲突 */
.hot-books-section * {
    box-sizing: border-box;
}

