/* Books Page Styles - Asymmetrical Layout */

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
    background-color: #fdfbf7; /* 温暖的纸张背景色 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Books Hero Section */
.books-hero {
    text-align: center;
    padding: 8rem 0 6rem 0;
    position: relative;
}

.books-hero::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #1a1a1a;
    margin: 2rem auto 0;
}

.books-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1;
}

.books-subtitle {
    font-family: "Avenir Next", "Montserrat", sans-serif;
    font-size: 1.2rem;
    color: #555;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Asymmetrical Books Layout */
.books-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4rem 3rem;
    padding: 0 0 8rem 0;
    align-items: start;
}

/* Book Item Styles */
.book-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.book-item:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.book-cover-wrapper {
    position: relative;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.4s ease;
    overflow: hidden;
    background-color: #f0f0f0;
}

.book-item:hover .book-cover-wrapper {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.book-cover {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.book-item:hover .book-cover {
    transform: scale(1.03);
}

.book-meta {
    margin-top: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.book-item:hover .book-meta {
    opacity: 1;
}

.book-title {
    font-family: "Georgia", serif;
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    font-weight: 400;
}

.book-author {
    font-family: "Avenir Next", "Montserrat", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin: 0;
}

.book-tagline {
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.5rem;
    display: block;
}

/* Symmetric Grid Placement Classes */
.book-item {
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .books-layout {
        gap: 3rem;
    }
    
    .books-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .books-layout {
        grid-template-columns: 1fr; /* 1 column mobile */
        gap: 4rem;
    }
    
    .books-hero {
        padding: 5rem 0 3rem 0;
    }
    
    .books-title {
        font-size: 2.5rem;
    }
}