/* 漫画详情页面专用样式 */

.comic-detail {
    padding: 100px 0 50px;
    background: #f8f9fa;
}

/* 漫画头部信息 */
.comic-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.comic-cover-large img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.comic-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.comic-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.comic-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.comic-meta i {
    color: #667eea;
}

.comic-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.comic-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 章节选择器 */
.chapter-selector {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.chapter-selector h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.chapter-list {
    display: grid;
    gap: 0.5rem;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.chapter-item.free {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
}

.chapter-item.vip {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.chapter-item:hover {
    background: #f8f9fa;
}

.chapter-item span {
    font-weight: 500;
    color: #333;
}

.read-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 15px;
    border: 2px solid #007bff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.read-link:hover {
    background: #007bff;
    color: white;
}

.vip-lock {
    color: #dc3545;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 漫画内容展示 */
.comic-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.comic-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #667eea;
}

.comic-content p{
	line-height: 40px;
}

.comic-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.comic-page {
    position: relative;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.comic-page:hover {
    transform: scale(1.02);
}

.comic-page img {
    width: 100%;
    height: auto;
    display: block;
}

.page-number {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 翻页控制 */
.page-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.page-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.page-btn:hover {
    background: #5a6fd8;
}

.page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-indicator {
    font-weight: 500;
    color: #666;
}

/* 相关推荐 */
.related-comics {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-comics h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.related-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.related-item p {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comic-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .comic-cover-large img {
        height: 300px;
    }
    
    .comic-info h1 {
        font-size: 2rem;
    }
    
    .comic-meta {
        justify-content: center;
    }
    
    .comic-actions {
        justify-content: center;
    }
    
    .page-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* 阅读进度指示器 */
.reading-progress {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e9ecef;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* 全屏阅读模式 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: none;
}

.fullscreen-mode.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-page {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.fullscreen-controls {
    position: absolute;
    top: 20px;
    right: 20px;
}

.close-fullscreen {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}