/* Banner样式 */
.banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: white;
}

/* 图书展示区域 */
.featured-books {
    padding: 40px 0;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.book-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.book-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.book-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.book-card .author {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.book-card .price {
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner {
        height: 400px;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .book-card img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 300px;
    }

    .book-card img {
        height: 180px;
    }
}

/* 访客页面特定样式 */
.login-tip {
    color: #8B4513;
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
}

.login-prompt {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
}

.login-prompt p {
    color: #666;
    margin-bottom: 15px;
}

.login-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background: #A0522D;
} 