/* 特色书城页面样式 */

/* Banner样式 */
.special-banner {
    position: relative;
    margin-bottom: 40px;
}

.special-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
}

/* 专区公共样式 */
.special-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.section-title {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-desc {
    color: #666;
    font-size: 16px;
}

/* 图书展示区样式 */
.book-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.book-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s;
}

.book-cover {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.book-cover img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s;
}

.book-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
}

.book-hover .book-intro {
    color: #fff;
    margin-bottom: 15px;
}

.book-item:hover .book-hover {
    opacity: 1;
}

.book-item:hover .book-cover img {
    transform: scale(1.1);
}

.book-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.book-item .author {
    color: #666;
    margin-bottom: 8px;
}

.book-item .price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 畅销新书专区样式 */
.bestsellers {
    background-color: var(--secondary-color);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 限时特惠专区样式 */
.deals .book-item .price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.countdown {
    background-color: #f8f8f8;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary-color);
}

/* 主题推荐专区样式 */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.theme-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.theme-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.theme-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.theme-item:hover img {
    transform: scale(1.1);
}

.theme-item:hover .theme-content {
    transform: translateY(0);
}

.theme-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.theme-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .banner-content h1 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .book-showcase {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .book-cover img {
        width: 160px;
        height: 220px;
    }

    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .theme-item img {
        height: 250px;
    }
} 