@charset "UTF-8";

/* CSS 变量定义 */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-color: #F7F9FC;
    --gray-color: #95A5A6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 覆盖旧版头部样式，使其与新页面协调 */
.in-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-bottom: none !important;
}

.in-header__logo.text-logo {
    color: white !important;
}

.in-header__nav ul li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__nav ul li.active a,
.in-header__nav ul li a:hover {
    color: white !important;
}

.in-header__nav ul li .underline {
    background: white !important;
}

.in-header__search .input {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.in-header__search .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.in-header__search .input:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
}

.in-header__search .icon-ic_head_search {
    color: rgba(255, 255, 255, 0.8) !important;
}

.in-header__user .user-item a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__user .user-item a:hover {
    color: white !important;
}

.in-header__user .user-item .iconfont {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__user .item-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.in-header__avatar .text-avatar {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* 底部样式调整 */
.footer-wrapper {
    background-color: var(--dark-color);
    margin-top: 60px;
}

.footer-bottom {
    padding: 40px 0 20px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: white;
}

/* 侧边栏调整 */
.in-aside-handle {
    z-index: 999;
}

.in-aside-handle .aside__item {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.in-aside-handle .aside__item:hover {
    background-color: var(--primary-color);
}

.in-aside-handle .aside__item:hover i {
    color: white;
}

/* 详情页样式 */

/* 页面主体 - 为固定头部留出空间 */
body.p-detail {
    padding-top: 64px;
}

/* 漫画头部信息 */
.comic-header {
    display: flex;
    gap: 30px;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.comic-cover-large {
    flex-shrink: 0;
    width: 280px;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comic-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comic-info-large {
    flex: 1;
}

.comic-title-large {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.comic-author-info {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.comic-stats-large {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    min-width: 120px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.comic-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag-large {
    background-color: #F0F7FF;
    color: #118AB2;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
}

.comic-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.action-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background-color: #ff5252;
}

.action-btn.secondary {
    background-color: #f0f0f0;
    color: var(--dark-color);
}

.action-btn.secondary:hover {
    background-color: #e0e0e0;
}

.action-btn.outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-btn.outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.comic-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-color);
}

.status-badge {
    background-color: #06D6A0;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 漫画简介 */
.comic-description {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.comic-description h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.description-content p {
    margin-bottom: 15px;
}

/* 章节列表 */
.chapters-section {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.chapters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.chapters-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.chapters-sort {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.chapters-list {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.chapter-item:hover {
    background-color: #f9f9f9;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chapter-number {
    font-weight: 700;
    color: var(--dark-color);
    min-width: 60px;
}

.chapter-title {
    font-size: 1.05rem;
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.chapter-action {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chapter-action:hover {
    background-color: #ff5252;
}

/* 推荐漫画 */
.recommendations {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.recommendations h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.comic-info-small {
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .comic-header {
        flex-direction: column;
    }
    
    .comic-cover-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .comic-stats-large {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .comic-title-large {
        font-size: 1.8rem;
    }
    
    .comic-stats-large {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .comic-actions {
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 150px;
    }
    
    .chapters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chapter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .chapter-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .comic-cover-large {
        height: 320px;
    }
    
    .stat-item {
        min-width: calc(50% - 15px);
    }
}

/* 漫画卡片网格 - 用于推荐区域 */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.comic-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.comic-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.comic-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comic-author {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.comic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    background-color: #F0F7FF;
    color: #118AB2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.comic-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 响应式 - 漫画网格 */
@media (max-width: 992px) {
    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .comic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .comic-cover {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .comic-cover {
        height: 220px;
    }
}
