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

/* 主容器 */
.comic-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-color);
    min-height: 100dvh;
}

/* 移动端顶部栏 */
.comic-detail-page .top-bar {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem;
    margin: -2rem -2rem 2rem -2rem;
}

.top-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.topbar-search {
    flex: 1;
}

.top-actions {
    display: flex;
    gap: 0.5rem;
}

/* 漫画标题区域 */
.comic-title-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.comic-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 图片灯箱 */
.comic-detail-page .lightbox-content {
    display: flex;
    flex-direction: column;
}

.lightbox-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: white;
}

.image-counter {
    font-size: 1rem;
    font-weight: 500;
}

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

.lightbox-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lightbox-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 移动端手势提示 */
.mobile-gesture-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-gesture-hint.show {
    opacity: 1;
}

.hint-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .comic-detail-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .comic-title {
        font-size: 1.5rem;
    }
    
    .comic-detail-container {
        padding: 1rem;
    }
    
    .comic-detail-page .top-bar {
        margin: -1rem -1rem 1rem -1rem;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 25%;
        height: 100%;
        background: transparent;
        border-radius: 0;
        font-size: 0;
    }
    
    .lightbox-prev {
        left: 0;
    }
    
    .lightbox-next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .comic-title {
        font-size: 1.25rem;
    }
}