  /* 详情页专用样式 */
    .novel-detail-container {
        padding: 20px 0 40px;
    }

    /* 布局 */
    .detail-layout {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 30px;
        align-items: start;
    }

    @media (max-width: 991px) {
        .detail-layout {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }

    /* 小说基本信息区块 */
    .novel-info-section {
        background-color: var(--card-bg);
        border-radius: 12px;
        padding: 30px;
        box-shadow: var(--shadow);
        margin-bottom: 30px;
        overflow: hidden;
    }

    /* 移动端样式 */
    .novel-basic-mobile {
        display: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .novel-cover-mobile {
        width: 180px;
        height: 240px;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 15px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .novel-cover-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .novel-title-mobile {
        font-size: 1.6rem;
        margin-bottom: 8px;
        color: var(--text-primary);
        line-height: 1.3;
        word-break: break-word;
    }

    .novel-author-mobile {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-bottom: 15px;
    }

    .novel-status-mobile {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .novel-actions-mobile {
        display: none;
        width: 100%;
        gap: 15px;
        margin-top: 20px;
    }

    .novel-actions-mobile .btn {
        flex: 1;
        justify-content: center;
    }

    /* 桌面端样式 */
    .novel-info-desktop {
        display: flex;
        gap: 30px;
    }

    .novel-cover-desktop {
        width: 220px;
        height: 300px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        position: relative;
        flex-shrink: 0;
    }

    .novel-cover-desktop img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .novel-meta-desktop {
        flex: 1;
        min-width: 0;
    }

    .novel-title-desktop {
        font-size: 2rem;
        margin-bottom: 10px;
        color: var(--text-primary);
        line-height: 1.2;
        word-break: break-word;
    }

    .novel-author-desktop {
        font-size: 1.1rem;
        color: var(--text-secondary);
        margin-bottom: 20px;
    }

    .novel-status-desktop {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .status-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .status-serializing {
        background-color: rgba(237, 137, 54, 0.2);
        color: var(--warning-color);
    }
    
    .status-completed {
        background-color: rgba(72, 187, 120, 0.2);
        color: var(--success-color);
    }

    .word-count,
    .update-time {
        font-size: 0.95rem;
        color: var(--text-secondary);
    }

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

    .tag {
        background-color: rgba(106, 90, 205, 0.2);
        color: var(--primary-color);
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .novel-stats {
        display: flex;
        gap: 30px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 60px;
    }

    .stat-item i {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 5px;
    }

    .stat-value {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .novel-actions-desktop {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* 移动端响应式 */
    @media (max-width: 768px) {
        .novel-info-desktop {
            display: none;
        }

        .novel-basic-mobile {
            display: flex;
        }

        .novel-actions-mobile {
            display: flex;
        }

        .novel-info-section {
            padding: 20px;
        }
    }

    /* 小说简介区块 */
    .novel-description-section {
        background-color: var(--card-bg);
        border-radius: 12px;
        padding: 30px;
        box-shadow: var(--shadow);
        margin-bottom: 30px;
    }

    .description-content {
        line-height: 1.8;
        color: var(--text-primary);
    }

    .description-content p {
        margin-bottom: 15px;
        text-align: justify;
        word-break: break-word;
    }

    /* 章节目录区块 */
    .chapters-section {
        background-color: var(--card-bg);
        border-radius: 12px;
        padding: 30px;
        box-shadow: var(--shadow);
        margin-bottom: 30px;
        overflow: hidden;
        position: relative;
    }

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

    /* 添加固定高度和滚动 */
    .chapters-list-wrapper {
        max-height: 400px;
        overflow-y: auto;
        margin-bottom: 25px;
        padding-right: 10px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) var(--background-light);
    }

    /* Webkit浏览器滚动条样式 */
    .chapters-list-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .chapters-list-wrapper::-webkit-scrollbar-track {
        background: var(--background-light);
        border-radius: 3px;
    }

    .chapters-list-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }

    .chapters-list-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

    .chapters-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    @media (max-width: 768px) {
        .chapters-list {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .chapters-list {
            grid-template-columns: 1fr;
        }
    }

    /* 根据屏幕高度动态调整最大高度 */
    @media (max-height: 800px) {
        .chapters-list-wrapper {
            max-height: 350px;
        }
    }

    @media (max-height: 700px) {
        .chapters-list-wrapper {
            max-height: 300px;
        }
    }

    @media (max-height: 600px) {
        .chapters-list-wrapper {
            max-height: 250px;
        }
    }

    /* 移动端调整高度 */
    @media (max-width: 768px) {
        .chapters-list-wrapper {
            max-height: 350px;
        }
    }

    @media (max-width: 576px) {
        .chapters-list-wrapper {
            max-height: 300px;
        }
    }

    .chapter-item {
        background-color: var(--background-light);
        border-radius: 6px;
        padding: 12px 15px;
        transition: var(--transition);
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .chapter-item:hover {
        background-color: rgba(106, 90, 205, 0.1);
        transform: translateY(-2px);
    }

    .chapter-item.active {
        background-color: rgba(106, 90, 205, 0.2);
        border-left: 3px solid var(--primary-color);
    }

    .chapter-link {
        display: flex;
        flex-direction: column;
        color: var(--text-primary);
        width: 100%;
    }

    .chapter-number {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 5px;
    }

    .chapter-title {
        font-size: 0.95rem;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 隐藏的章节 */
    .chapters-hidden {
        display: none;
    }

    .chapters-hidden.show {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 12px;
    }

    @media (max-width: 768px) {
        .chapters-hidden.show {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 576px) {
        .chapters-hidden.show {
            grid-template-columns: 1fr;
        }
    }

    .more-chapters {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .more-chapters .btn {
        padding: 10px 30px;
    }

    /* 章节展开按钮样式调整 */
    .more-chapters .btn i {
        transition: transform 0.3s ease;
    }

    .more-chapters .btn.active i {
        transform: rotate(180deg);
    }

    /* 章节加载指示器 */
    .chapters-loading {
        display: none;
        text-align: center;
        padding: 20px;
        color: var(--text-secondary);
    }

    .chapters-loading.show {
        display: block;
    }

    /* 章节空状态 */
    .chapters-empty {
        text-align: center;
        padding: 40px 20px;
        color: var(--text-secondary);
    }

    /* 固定章节项高度 */
    .chapters-list .chapter-item {
        min-height: 60px;
        max-height: 60px;
        overflow: hidden;
    }

    /* 修复章节展开后布局不平衡问题 */
    .chapters-section .chapters-list {
        grid-auto-rows: minmax(60px, auto);
    }

    /* 剧情介绍区块 */
    .plot-introduction-section {
        background-color: var(--card-bg);
        border-radius: 12px;
        padding: 30px;
        box-shadow: var(--shadow);
        margin-bottom: 30px;
    }

    .plot-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .plot-item h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--primary-color);
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
    }

    .plot-item p {
        line-height: 1.7;
        color: var(--text-primary);
        text-align: justify;
        word-break: break-word;
    }

    /* 猜你喜欢区块 */
    .recommendations-section {
        background-color: var(--card-bg);
        border-radius: 12px;
        padding: 30px;
        box-shadow: var(--shadow);
        margin-bottom: 30px;
    }

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

    @media (max-width: 768px) {
        .recommendations-grid {
            grid-template-columns: 1fr;
        }
    }

    .recommendations-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .recommendation-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background-color: var(--background-light);
        border-radius: 6px;
        transition: var(--transition);
    }

    .recommendation-item:hover {
        background-color: rgba(106, 90, 205, 0.1);
    }

    .novel-title {
        font-size: 0.95rem;
        color: var(--text-primary);
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-right: 15px;
    }

    .novel-date {
        font-size: 0.85rem;
        color: var(--text-secondary);
        white-space: nowrap;
    }

    /* 侧边栏样式 */
    .sidebar-section {
        background-color: var(--card-bg);
        border-radius: 12px;
        padding: 25px;
        box-shadow: var(--shadow);
        margin-bottom: 30px;
    }

    .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: var(--text-primary);
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-color);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sidebar-title i {
        color: var(--primary-color);
    }

    /* 最新入库样式 */
    .latest-novels {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .latest-novel-item {
        display: flex;
        gap: 15px;
        padding-bottom: 20px;
        border-bottom: 1px dashed var(--border-color);
    }

    .latest-novel-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .novel-cover-small {
        width: 70px;
        height: 90px;
        border-radius: 6px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .novel-cover-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .novel-info-small {
        flex: 1;
        min-width: 0;
    }

    .novel-title-small {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 5px;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .novel-author-small,
    .novel-category-small {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 3px;
    }

    /* 点击榜样式 */
    .click-ranking {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .ranking-first {
        display: flex;
        gap: 15px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .first-cover {
        width: 80px;
        height: 100px;
        border-radius: 6px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .first-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .first-info {
        flex: 1;
        min-width: 0;
    }

    .first-info h4 {
        font-size: 1rem;
        margin-bottom: 5px;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .first-info p {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 5px;
    }

    .ranking-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .ranking-list li {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-color);
    }

    .ranking-list li:last-child {
        border-bottom: none;
    }

    .rank-num {
        display: inline-block;
        width: 24px;
        height: 24px;
        background-color: var(--primary-color);
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 24px;
        font-size: 0.8rem;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .ranking-list li:nth-child(1) .rank-num {
        background-color: #ff9900;
    }

    .ranking-list li:nth-child(2) .rank-num {
        background-color: #cccccc;
    }

    .ranking-list li:nth-child(3) .rank-num {
        background-color: #cc6633;
    }

    .ranking-list li a {
        font-size: 0.95rem;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }

    /* 手机端侧边栏调整 */
    @media (max-width: 991px) {
        .sidebar {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        @media (max-width: 768px) {
            .sidebar {
                grid-template-columns: 1fr;
            }
        }
    }

    /* 移动端通用优化 */
    @media (max-width: 576px) {
        .novel-detail-container {
            padding: 15px 0 30px;
        }

        .novel-info-section,
        .novel-description-section,
        .chapters-section,
        .plot-introduction-section,
        .recommendations-section,
        .sidebar-section {
            padding: 20px;
            border-radius: 10px;
        }

        .novel-title-mobile {
            font-size: 1.4rem;
        }

        .novel-cover-mobile {
            width: 160px;
            height: 210px;
        }

        .btn-large {
            padding: 10px 20px;
            font-size: 0.95rem;
        }

        .novel-stats {
            gap: 20px;
        }

        .stat-item {
            min-width: 50px;
        }
    }

    /* 修复移动端章节标题溢出 */
    @media (max-width: 480px) {
        .chapter-item {
            padding: 10px;
        }

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

        .novel-tags {
            gap: 8px;
        }

        .tag {
            padding: 5px 10px;
            font-size: 0.8rem;
        }
    }