/* /css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo h1 {
    font-size: 2rem;
    font-weight: bold;
}

.site-logo a {
    color: white;
    text-decoration: none;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

.main-content {
    padding: 2rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.book-info-section {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #fafafa;
    border-radius: 8px;
}

.book-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.book-author {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-bookmark, .btn-vote {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-bookmark:hover, .btn-vote:hover {
    background: #5a6fd8;
}

.btn-bottom {
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-bottom:hover {
    background: #667eea;
    color: white;
}

.book-update, .latest-chapter {
    margin-bottom: 0.5rem;
    color: #666;
}

.latest-chapter a {
    color: #667eea;
    text-decoration: none;
}

.book-intro {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.book-intro a {
    color: #667eea;
    text-decoration: none;
}

.cover-image img {
    width: 120px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.recommendation-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.recommendation-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.rec-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rec-links a {
    color: #667eea;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.rec-links a:hover {
    background-color: #667eea;
    color: white;
}

.chapter-list-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.chapter-item {
    background-color: #fafafa;
    border-radius: 6px;
    transition: all 0.3s;
}

.chapter-item:hover {
    background-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chapter-item a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.chapter-item:hover a {
    color: white;
}

.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-content {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .book-info-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-actions {
        justify-content: center;
    }
    
    .chapter-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .rec-links {
        justify-content: center;
    }
    
    .main-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .site-logo h1 {
        font-size: 1.5rem;
    }
    
    .book-title {
        font-size: 1.5rem;
    }
    
    .main-nav .nav-list {
        gap: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
}
