/* 基础复用样式 */
.text-light-opacity-80 {
    color: rgba(255,255,255,0.8) !important;
}
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.sidebar-card li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* 作品信息区 */
.work-header {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.cover-img {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 180px;
    object-fit: cover;
}
.work-info-item {
    margin-bottom: 0.8rem;
    color: #666;
}
.work-info-label {
    font-weight: 500;
    color: #333;
    width: 60px;
    display: inline-block;
}
/* 目录区样式 */
.catalog-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.catalog-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}
.catalog-tabs {
    margin-bottom: 1rem;
}
.catalog-tab {
    padding: 0.4rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 0.8rem;
    display: inline-block;
}
.catalog-tab.active {
    background-color: #dc3545;
    color: #fff;
}
.chapter-item {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chapter-item:last-child {
    border-bottom: none;
}
.chapter-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.chapter-link:hover {
    color: #dc3545;
}
.chapter-time {
    color: #999;
    font-size: 0.85rem;
}
/* 阅读按钮样式 */
.read-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
}
.read-btn:hover {
    background-color: #bb2d3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
.page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
}
.page-link {
    color: #333;
}
.page-link:hover {
    color: #dc3545;
    border-color:#dc3545;
}

/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.modal-content-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.show .modal-content-box {
    transform: translateY(0);
}

/* 弹窗关闭按钮 */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #c82333;
}

/* 弹窗内容 */
.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

/* 跳转按钮 */
.navigate-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(120deg, #c82333, #c82333);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.navigate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}