/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav a {
    margin-left: 20px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007bff;
}

/* 主要内容 */
.main {
    padding: 20px 0;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

/* 章节 */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* 小说网格 */
.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.novel-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.novel-card:hover {
    transform: translateY(-5px);
}

.novel-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.novel-info {
    padding: 15px;
}

.novel-title a {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.novel-title a:hover {
    color: #007bff;
}

.novel-author {
    color: #666;
    margin-bottom: 8px;
}

.novel-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.novel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 小说列表 */
.novel-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.novel-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.novel-item:last-child {
    border-bottom: none;
}

.novel-item .novel-title a {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.novel-item .novel-title a:hover {
    color: #007bff;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.category-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-3px);
    color: #007bff;
}

.category-item h3 {
    margin-bottom: 10px;
}

/* 章节内容 */
.chapter-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.chapter-header {
    text-align: center;
    margin-bottom: 30px;
}

.chapter-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.chapter-meta {
    color: #666;
    font-size: 14px;
}

.chapter-meta span {
    margin: 0 10px;
}

.chapter-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-indent: 2em;
}

.chapter-text p {
    margin-bottom: 15px;
}

.chapter-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-prev {
    background: #28a745;
    color: #fff;
}

.btn-next {
    background: #dc3545;
    color: #fff;
}

.btn-catalog {
    background: #ffc107;
    color: #333;
}

/* 章节网格 */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.chapter-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.chapter-link {
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.chapter-link:hover {
    color: #007bff;
}

.chapter-time {
    font-size: 12px;
    color: #999;
}

/* 侧边栏 */
.chapter-info {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-card p {
    margin-bottom: 10px;
    color: #666;
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav a {
        margin: 0 10px;
    }
    
    .novel-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .chapter-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .chapter-content {
        padding: 20px;
    }
    
    .chapter-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .novel-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chapter-grid {
        grid-template-columns: 1fr;
    }
} 