.detail-header {
    background-color: #333;
    padding: 40px 0;
    margin-bottom: 30px;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.detail-cover {
    width: 240px;
    flex-shrink: 0;
}

.detail-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
    background-color: #fff;
}

.detail-info {
    flex: 1;
    color: #fff;
}

.detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-stars {
    color: #ffc107;
    font-size: 18px;
}

.detail-score {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.detail-meta {
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ccc;
}


.detail-desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 10px;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.detail-desc.expanded {
    max-height: none;
}

.detail-desc-toggle {
    color: #ff6b35;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 25px;
}

.detail-actions {
    display: flex;
    gap: 15px;
}

.chapters-section {
    margin-bottom: 40px;
}

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

.chapters-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.chapters-title span {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.chapters-sort {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.chapter-item {
    background-color: #ededed;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #333;
}

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

.chapter-item.latest {
    background-color: #fff3e0;
    color: #ff6b35;
}

.chapter-item.latest:hover {
    background-color: #ff6b35;
    color: #fff;
}

/* VIP章节 */
.chapter-item.vip-chapter {
    position: relative;
}

/* VIP标识 - 右上角 */
.vip-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 0 6px 0 4px;
    font-weight: bold;
}

.recommend-section {
    margin-bottom: 40px;
}

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

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

@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
    }
    .detail-cover {
        width: 200px;
        margin: 0 auto;
    }
    .chapters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .recommend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
