/* 小说管理系统样式 */
.novel-list {
    margin: 20px 0;
}

.novel-item {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.novel-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.novel-cover {
    flex: 0 0 150px;
    margin-right: 20px;
}

.novel-cover img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.novel-info {
    flex: 1;
}

.novel-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.3;
}

.novel-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.novel-title a:hover {
    color: #0073aa;
}

.novel-excerpt {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.novel-meta {
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

.novel-category, .novel-tags {
    display: inline-block;
    margin-right: 15px;
}

.novel-category a, .novel-tags a {
    color: #0073aa;
    text-decoration: none;
}

.novel-category a:hover, .novel-tags a:hover {
    text-decoration: underline;
}

/* 章节列表样式 */
.chapter-list {
    margin: 20px 0;
}

.chapter-list h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.chapter-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.chapter-item:hover {
    background-color: #f8f9fa;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    flex: 1;
}

.chapter-item a:hover {
    color: #0073aa;
}

.chapter-date {
    font-size: 12px;
    color: #999;
    margin-left: 15px;
}

/* 章节阅读页面样式 */
.chapter-reading {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.chapter-header {
    text-align: center;
    margin-bottom: 30px;
}

.chapter-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.chapter-nav a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.chapter-nav a:hover {
    background-color: #005a87;
}

.chapter-nav .next-chapter {
    text-align: right;
}

.chapter-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 40px;
}

.chapter-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.chapter-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* 小说详情页面样式 */
.novel-detail {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.novel-detail-header {
    display: flex;
    margin-bottom: 40px;
}

.novel-detail-cover {
    flex: 0 0 200px;
    margin-right: 30px;
}

.novel-detail-cover img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.novel-detail-info {
    flex: 1;
}

.novel-detail-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.novel-detail-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.novel-detail-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.novel-detail-actions {
    margin-top: 20px;
}

.novel-detail-actions a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.novel-detail-actions a:hover {
    background-color: #005a87;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .novel-item {
        flex-direction: column;
    }
    
    .novel-cover {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .novel-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .novel-detail-cover {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .chapter-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .chapter-nav .next-chapter {
        text-align: left;
    }
    
    .chapter-footer {
        flex-direction: column;
        gap: 15px;
    }
}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 480px) {
    .novel-cover img,
    .novel-detail-cover img {
        width: 120px;
        height: 160px;
    }
    
    .chapter-title {
        font-size: 24px;
    }
    
    .chapter-content {
        font-size: 16px;
    }
    
    .chapter-content p {
        text-indent: 1.5em;
    }
}