/* Elegant Template - 优雅简洁主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #F7F5F1;
    color: #1E2227;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #FFFFFF;
    border-bottom: 1px solid #E7E3DA;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: Georgia, 'Songti SC', serif;
    font-size: 32px;
    font-weight: 600;
    color: #1E2227;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #6B7077;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav a:hover {
    color: #3C5A78;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-input {
    padding: 10px 16px;
    border: 1px solid #E7E3DA;
    border-radius: 8px;
    font-size: 14px;
    width: 280px;
    background: #FFFFFF;
}

.search-input:focus {
    outline: none;
    border-color: #3C5A78;
}

.btn-primary {
    background: #3C5A78;
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2E4760;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-family: Georgia, 'Songti SC', serif;
    font-size: 48px;
    font-weight: 600;
    color: #1E2227;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: #6B7077;
    margin-bottom: 32px;
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.category-chip {
    padding: 8px 20px;
    background: #FFFFFF;
    border: 1px solid #E7E3DA;
    border-radius: 20px;
    color: #6B7077;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.category-chip:hover {
    border-color: #3C5A78;
    color: #3C5A78;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.book-card {
    background: #FFFFFF;
    border: 1px solid #E7E3DA;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.book-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: #E7E3DA;
}

.book-info {
    padding: 16px;
}

.book-title {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 8px;
    color: #1E2227;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-author {
    font-size: 14px;
    color: #6B7077;
    margin-bottom: 8px;
}

.book-desc {
    font-size: 13px;
    color: #6B7077;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Section Title */
.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-family: Georgia, 'Songti SC', serif;
    font-size: 32px;
    font-weight: 600;
    color: #1E2227;
}

.section-link {
    color: #3C5A78;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #FFFFFF;
    border-top: 1px solid #E7E3DA;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-text {
    color: #6B7077;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.footer-links a {
    color: #6B7077;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #3C5A78;
}

/* Recommend Section */
.chapter-container {
    margin-bottom: 20px;
}

.recommend-section {
    margin: 8px 0;
    line-height: 1.6;
    padding: 8px 0;
}

.recommend-section b {
    color: #1E2227;
    font-weight: 500;
    font-size: 14px;
    margin-right: 8px;
}

.recommend-section a {
    color: #3C5A78;
    text-decoration: none;
}

.recommend-section a:hover {
    color: #2E4760;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        gap: 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
}
