body {
    font-family: 'Microsoft YaHei', 'SimHei', 'SimSun', Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    text-align: center;
    margin-top: 28px;
    color: #2c3e50;
    font-size: 2.1em;
}

.author-info {
    text-align: center;
    color: #666;
    margin-bottom: 18px;
    font-size: 1em;
}

.chapter-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 18px;
    margin: 40px auto;
    max-width: 1400px;
    padding: 0 16px;
    box-sizing: border-box;
}

.chapter-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    min-width: 0;
    min-height: 320px;
}
.chapter-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 28px rgba(44,62,80,0.13);
}

.chapter-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #eee;
}

.chapter-content {
    padding: 14px 16px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.chapter-content h2 {
    margin: 0 0 8px 0;
    font-size: 1.08em;
    color: #34495e;
    font-weight: bold;
    text-align: center;
}
.chapter-content p {
    flex: 1;
    color: #555;
    font-size: 0.95em;
    margin-bottom: 12px;
    text-align: center;
}

.detail-btn {
    display: inline-block;
    padding: 6px 18px;
    background: #4f8cff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-size: 0.97em;
    margin: 0 auto;
    transition: background 0.2s;
}
.detail-btn:hover {
    background: #2563c9;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 响应式：1200px以下4列，900px以下2列，600px以下1列 */
@media (max-width: 1200px) {
    .chapter-list {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .chapter-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .chapter-list {
        grid-template-columns: 1fr;
    }
    .chapter-card {
        min-height: 220px;
    }
    .chapter-img {
        height: 90px;
    }
}