* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.novel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.novel-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.novel-card:hover {
    transform: translateY(-5px);
}

.novel-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.novel-card h3 {
    padding: 1rem;
}

.novel-card a {
    color: #2c3e50;
    text-decoration: none;
}

.novel-card p {
    padding: 0 1rem 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.novel-detail {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.novel-detail img {
    width: 200px;
    height: 300px;
    object-fit: cover;
}

.info h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info p {
    margin-bottom: 0.5rem;
}

.summary {
    margin: 1rem 0;
    line-height: 1.8;
}

.read-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
}

.read-btn:hover {
    background: #2980b9;
}

.chapters {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chapters h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.chapters ul {
    list-style: none;
}

.chapters li {
    margin-bottom: 0.5rem;
}

.chapters a {
    color: #3498db;
    text-decoration: none;
}

.chapters a:hover {
    text-decoration: underline;
}

.chapter-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.chapter-content h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.content {
    line-height: 2;
    font-size: 1.1rem;
}

.content p {
    margin-bottom: 1rem;
    text-indent: 2em;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.prev-btn, .next-btn {
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
}

.prev-btn:hover, .next-btn:hover {
    background: #2980b9;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .novel-detail {
        flex-direction: column;
        align-items: center;
    }
    .novel-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}