/* 漫糖屋 - 详情页样式 */

.breadcrumb {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--text-light);
}

.home-icon {
    width: 18px;
    height: 18px;
}

.comic-header {
    background: white;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px var(--shadow);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .comic-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.header-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow);
}

.header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comic-detail-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 800;
}

.comic-detail-tags {
    margin-bottom: 20px;
}

.comic-detail-tags .tag {
    margin: 5px;
}

.comic-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.stat-icon {
    width: 20px;
    height: 20px;
}

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

.read-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.comic-description-section {
    background: white;
    border-radius: 25px;
    padding: 30px;
    margin: 0 0 30px 0;
    box-shadow: 0 8px 30px var(--shadow);
}

.description-container {
    max-width: 100%;
}

.description-title {
    font-size: 1.2rem;
    color: var(--primary-pink);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-title svg {
    width: 24px;
    height: 24px;
}

.description-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
}

.reader-section {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 30px var(--shadow);
}

.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.reader-title {
    font-size: 1.3rem;
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reader-icon {
    width: 24px;
    height: 24px;
}

.page-indicator {
    background: var(--light-pink);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-pink);
}

.pages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-item {
    text-align: center;
}

.page-image {
    max-width: 100%;
}

/* 浮动数字页码导航栏 - 新版 */
.float-page-nav {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 80vw;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    overflow: hidden;
}

.float-page-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.float-nav-header {
    display: none;
}

.float-nav-content {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 12px 16px;
}

.float-page-nav.collapsed .float-nav-content {
    max-height: 0;
    padding: 0 16px;
}

.float-nav-numbers {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--light-pink) transparent;
}

.float-nav-numbers::-webkit-scrollbar {
    height: 6px;
}

.float-nav-numbers::-webkit-scrollbar-track {
    background: transparent;
}

.float-nav-numbers::-webkit-scrollbar-thumb {
    background: var(--light-pink);
    border-radius: 3px;
}

.float-nav-num {
    min-width: 36px;
    height: 36px;
    border: none;
    background: var(--cream);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-nav-num:hover {
    background: var(--light-pink);
    color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.float-nav-num.active {
    background: var(--primary-pink);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .float-page-nav {
        bottom: 15px;
        min-width: 280px;
    }
    
    .float-nav-header {
        padding: 10px 14px;
    }
    
    .float-nav-content {
        padding: 8px 12px;
    }
    
    .float-nav-num {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .float-page-nav {
        min-width: 90vw;
    }
    
    .float-nav-numbers {
        gap: 4px;
    }
    
    .float-nav-num {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
    }
}

.page-number {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.quick-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed var(--light-pink);
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 25px;
    background: var(--cream);
    border: 2px solid var(--light-pink);
    border-radius: 25px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* 猜你喜欢 - 使用首页同款卡片样式 */
.comic-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.comic-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 158, 181, 0.4);
}

.comic-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-pink), var(--cream));
}

.comic-info {
    padding: 20px;
}

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

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

.comic-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--light-pink);
    color: var(--primary-pink);
    border-radius: 15px;
}

.comic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.comic-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-icon {
    width: 16px;
    height: 16px;
}

.recommend-section {
    margin-top: 50px;
}

.recommend-title {
    font-size: 1.3rem;
    color: var(--primary-pink);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommend-title svg {
    width: 26px;
    height: 26px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .recommend-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* 悬浮回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--dark-pink);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}
