/* 首页特定样式 */

/* Banner样式 */
.banner {
    margin-bottom: 40px;
}

.banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* 章节样式 */
.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.section-title {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title:before,
.section-title:after {
    content: '❖';
    color: var(--primary-color);
    font-size: 18px;
    margin: 0 10px;
    opacity: 0.8;
}

.section-desc {
    color: #666;
    font-size: 16px;
}

/* 图书列表样式 */
.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.book-item {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    transition: all 0.3s;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.book-item img {
    width: 180px;
    height: 240px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.book-item .author {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.book-item .price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 热门推荐和新书上架章节样式 */
.hot-books,
.new-books {
    padding: 40px 0;
}

.hot-books {
    background-color: var(--secondary-color);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .banner img {
        height: 200px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-title:before,
    .section-title:after {
        font-size: 16px;
        margin: 0 5px;
    }

    .book-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .book-item {
        padding: 15px;
    }

    .book-item img {
        width: 150px;
        height: 200px;
    }

    .hot-books,
    .new-books {
        padding: 30px 0;
    }
} 