/* 详情页主容器 */
.comic-detail-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* 漫画封面区 */
.comic-cover-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
}
.comic-detail-cover {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    margin-bottom: 20px;
}

/* 漫画信息区 */
.comic-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* 基础信息卡片 */
.comic-base-info {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}
.comic-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}
.comic-detail-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(135deg, #e879f9, #6366f1);
}
.comic-meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.comic-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.meta-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}
.meta-value {
    font-size: 16px;
    color: #475569;
    font-weight: 600;
}
.meta-value.tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
}
.meta-value.progress-serial {
    color: #d97706;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
}
.meta-value.progress-end {
    color: #4f46e5;
    background: #e0e7ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
}
/* 评分样式 */
.score-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.score-star {
    color: #fbbf24;
    font-size: 18px;
}
.score-num {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
}

/* 新增：基础信息卡片下方按钮组 */
.comic-action-btns {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.action-btn {
    padding: 12px 35px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
.read-btn {
    background: linear-gradient(135deg, #e879f9, #6366f1);
    color: #fff;
    box-shadow: 0 4px 8px rgba(232, 121, 249, 0.2);
}
.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(232, 121, 249, 0.3);
    background: linear-gradient(135deg, #d946ef, #4f46e5);
}
.card-collect-btn {
    background: #f1f5f9;
    color: #475569;
}
.card-collect-btn:hover {
    background: #e2e8f0;
    color: #6366f1;
}
.card-collect-btn.collected {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}
.card-collect-btn.collected:hover {
    background: linear-gradient(135deg, #dc2626, #f87171);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
}

/* 简介区域 */
.comic-intro {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}
.intro-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.intro-title::before {
    content: "📖";
    font-size: 20px;
}
.intro-content {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    white-space: pre-line;
}

/* 章节列表区域 - 移除筛选后简化 */
.comic-chapter-list {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}
.chapter-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chapter-title::before {
    content: "📚";
    font-size: 20px;
}
/* 章节列表 - 简化样式，移除时间和筛选 */
.chapter-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}
.chapter-item {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.chapter-item:hover {
    background: linear-gradient(135deg, #f5f3ff, #fef7fb);
    border-color: #e879f9;
    transform: translateY(-2px);
}
.chapter-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .comic-detail-container {
        grid-template-columns: 1fr;
    }
    .comic-cover-wrap {
        max-width: 300px;
        margin: 0 auto;
    }
    .comic-meta-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
    }
    .search-box input {
        width: 160px;
    }
    .comic-detail-title {
        font-size: 24px;
    }
    .chapter-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
@media (max-width: 480px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    .logo {
        width: 100%;
        justify-content: center;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .search-box {
        width: 100%;
        justify-content: center;
    }
    .search-box input {
        width: 100%;
        max-width: 300px;
    }
    .comic-cover-wrap {
        padding: 15px;
    }
    .comic-detail-cover {
        height: 350px;
    }
    .comic-base-info, .comic-intro, .comic-chapter-list {
        padding: 20px 15px;
    }
    .comic-action-btns {
        flex-direction: column;
    }
    .chapter-items {
        grid-template-columns: 1fr;
    }
}