
.update-item > div {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 80px); /* 给按钮留出空间 */
}

.update-title {
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.update-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* 分类推荐小说名称限制 */
.category-novel-list li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 10px;
    max-width: 150px; /* 限制最大宽度 */
    display: inline-block;
    vertical-align: middle;
}

/* 限制最多显示7个字符 */
.category-novel-list li a {
    max-width: 7em; /* 7个字符宽度 */
}

/* 最新入库小说样式修正 */
.novel-info-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 70px); /* 减去分类标签宽度 */
}

.novel-info-wrap a {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 70px); /* 给作者留出空间 */
}

.novel-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    max-width: 100%;
}

/* 最近更新小说列表样式修正 */
.update-full-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 100px 100px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    gap: 10px;
    min-width: 0;
}

.update-novel-title,
.update-chapter {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    color: var(--text-primary);
    max-width: 100%;
}

.update-author,
.update-time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .category-novel-list li a {
        max-width: 120px; /* 移动端适当减小 */
    }
    
    .novel-info-wrap a {
        max-width: calc(100% - 60px);
    }
}

/* 修复小屏幕下底部区域溢出问题 */
@media (max-width: 768px) {
    .bottom-section {
        display: block; /* 改为块级布局 */
        width: 100%;
        overflow: hidden; /* 防止溢出 */
    }
    
    .new-arrivals,
    .recent-updates-full {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .new-arrivals {
        margin-bottom: 20px;
    }
    
    /* 确保容器内部不会溢出 */
    .new-novels-list,
    .updates-full-list {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .new-novel-item,
    .update-full-item {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding-right: 15px; /* 添加右边距防止文字贴边 */
        padding-left: 15px; /* 添加左边距 */
    }
    
    /* 调整网格布局以适应小屏幕 */
    .update-full-item {
        display: grid;
        grid-template-columns: 50px 1fr 100px;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 10px 0;
    }
    
    .update-category {
        grid-column: 1;
        grid-row: 1;
    }
    
    .update-novel-title {
        grid-column: 2;
        grid-row: 1;
        max-width: 100%;
    }
    
    .update-chapter {
        grid-column: 1 / span 2;
        grid-row: 2;
        max-width: 100%;
        color: var(--text-secondary);
        font-size: 0.85rem;
    }
    
    .update-author {
        grid-column: 3;
        grid-row: 1;
        max-width: 100px;
        text-align: right;
    }
    
    .update-time {
        grid-column: 3;
        grid-row: 2;
        max-width: 100px;
        text-align: right;
        font-size: 0.8rem;
    }
}

/* 超小屏幕进一步优化 */
@media (max-width: 576px) {
    .update-full-item {
        grid-template-columns: 40px 1fr 80px;
        gap: 6px;
        padding: 8px 0;
    }
    
    .update-author,
    .update-time {
        max-width: 80px;
        font-size: 0.75rem;
    }
    
    .update-category {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

        /* CSS变量 - 暗黑主题 */
        :root {
            --primary-color: #6a5acd;
            --primary-dark: #5a4bc4;
            --secondary-color: #2d3748;
            --background-dark: #121826;
            --background-light: #1a202c;
            --card-bg: #222831;
            --text-primary: #e2e8f0;
            --text-secondary: #a0aec0;
            --text-muted: #718096;
            --border-color: #2d3748;
            --success-color: #48bb78;
            --warning-color: #ed8936;
            --danger-color: #f56565;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            --transition: all 0.3s ease;
        }

        /* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            background-color: var(--background-dark);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        a {
            color: var(--text-primary);
            text-decoration: none;
            transition: var(--transition);
        }

        a:hover {
            color: var(--primary-color);
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            overflow-x: hidden; /* 防止水平滚动 */
        }

        .btn {
            display: inline-block;
            padding: 8px 16px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
        }

        .btn:hover {
            background-color: var(--primary-dark);
            color: white;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

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

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

        /* 头部导航 */
        .header {
            background-color: var(--background-light);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
        }

        .logo h1 {
            font-size: 1.8rem;
            background: linear-gradient(to right, var(--primary-color), #8a79ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: 700;
        }

        .logo span {
            font-size: 0.9rem;
            color: var(--text-secondary);
            display: block;
            margin-top: -5px;
        }

        /* 桌面版导航菜单 */
        .main-nav ul {
            display: flex;
            gap: 20px;
        }

        .main-nav a {
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 4px;
        }

        .main-nav a:hover {
            background-color: rgba(106, 90, 205, 0.1);
        }

        .main-nav a.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* 手机端隐藏的菜单项 */
        .mobile-only {
            display: none;
        }

        /* 搜索框 */
        .search-box {
            display: flex;
            align-items: center;
        }

        .search-box form {
            display: flex;
            align-items: center;
            background-color: var(--card-bg);
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .search-box input {
            background: transparent;
            border: none;
            padding: 10px 15px;
            color: var(--text-primary);
            width: 200px;
        }

        .search-box input:focus {
            outline: none;
        }

        .search-box button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
        }

        /* 移动端菜单切换按钮 */
        .mobile-toggle {
            display: none;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* 主要内容区域 */
        .main {
            flex: 1;
            padding: 20px 0 40px;
        }

        /* 首页布局 */
        .homepage {
            display: flex;
            flex-direction: column;
            gap: 40px;
            width: 100%;
            overflow: hidden; /* 防止溢出 */
        }

        /* 第一行：左侧轮播 + 右侧最近更新 */
        .top-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
        }

        /* 轮播图样式 */
        .carousel-container {
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
            position: relative;
        }

        .carousel {
            position: relative;
            height: 500px;
        }

        .carousel-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease;
            display: flex;
            align-items: flex-end;
            background-size: cover;
            background-position: center;
        }

        .carousel-item.active {
            opacity: 1;
        }

        .carousel-content {
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
            width: 100%;
            padding: 20px;
            color: white;
        }

        .carousel-content h3 {
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .carousel-content p {
            font-size: 0.9rem;
            color: #ddd;
            margin-bottom: 10px;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
        }

        .carousel-indicators span {
            width: 10px;
            height: 10px;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            cursor: pointer;
        }

        .carousel-indicators span.active {
            background-color: var(--primary-color);
        }

        /* 最近更新列表 */
        .latest-updates {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 20px;
            box-shadow: var(--shadow);
        }

        .update-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .update-item:last-child {
            border-bottom: none;
        }

        .update-title {
            font-weight: 500;
            margin-bottom: 5px;
        }

        .update-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        /* 第二行：分类内容 + 热门推荐轮播 */
        .middle-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
        }

        /* 分类网格 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        @media (min-width: 992px) {
            .category-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .category-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .category-card:hover {
            transform: translateY(-5px);
        }

        .category-card h3 {
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: var(--primary-color);
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .category-novel-list li {
            padding: 8px 0;
            border-bottom: 1px dashed var(--border-color);
            display: flex;
            justify-content: space-between;
        }

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

        /* 热门推荐3D轮播样式 */
        .hot-recommend-section {
            width: 100%;
        }

        .hot-recommend-3d-carousel {
            position: relative;
            width: 100%;
            height: 630px;
            /* 降低总高度 */
            overflow: hidden;
            border-radius: 8px;
            background-color: var(--card-bg);
            box-shadow: var(--shadow);
        }

        .carousel-container-3d {
            position: relative;
            width: 100%;
            height: 100%;
            perspective: 1000px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-item-3d {
            position: absolute;
            width: 280px;
            height: 520px;
            /* 降低卡片高度 */
            transition: all 0.5s ease;
            opacity: 0.6;
            transform: translateX(0) scale(0.8);
            z-index: 1;
        }

        .carousel-item-3d.prev {
            transform: translateX(-80%) scale(0.85);
            opacity: 0.8;
            z-index: 2;
            cursor: pointer;
        }

        .carousel-item-3d.active {
            transform: translateX(0) scale(1);
            opacity: 1;
            z-index: 3;
        }

        .carousel-item-3d.next {
            transform: translateX(80%) scale(0.85);
            opacity: 0.8;
            z-index: 2;
            cursor: pointer;
        }

        .hot-recommend-card-3d {
            width: 100%;
            height: 100%;
            background-color: var(--background-light);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            transition: var(--transition);
        }

        .carousel-item-3d.active .hot-recommend-card-3d {
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
        }

        .novel-cover-3d {
            height: 320px;
            /* 增加图片高度比例 */
            overflow: hidden;
        }

        .novel-cover-3d img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .carousel-item-3d.active .novel-cover-3d img {
            transform: scale(1.05);
        }

        .novel-info-3d {
            padding: 15px;
            flex: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            padding-bottom: 40px;
            /* 给按钮留出空间 */
        }

        .novel-title-3d {
            font-size: 1.1rem;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .novel-author-3d {
            font-size: 0.85rem;
            color: var(--primary-color);
            margin-bottom: 12px;
        }

        .novel-desc-3d {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 10px;
        }

        /* 删除原有的轮播导航样式 */
        .carousel-nav-3d {
            display: none;
            /* 删除导航 */
        }

        /* 排行区域 */
        .ranking-section {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 20px;
        }

        @media (min-width: 768px) {
            .ranking-section {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 992px) {
            .ranking-section {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .ranking-card {
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .ranking-header {
            background-color: var(--primary-color);
            color: white;
            padding: 15px;
            text-align: center;
        }

        .ranking-header h3 {
            font-size: 1.2rem;
        }

        .ranking-body {
            padding: 20px;
        }

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

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

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

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

        .first-info h4,
        .first-info p {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            text-align: left;
        }

        .first-info h4 {
            font-size: 1rem;
            margin-bottom: 5px;
        }

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

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

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

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

        .ranking-list li a {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            text-align: left;
        }

        /* 页脚 */
        .footer {
            background-color: var(--background-light);
            padding: 40px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 30px;
            margin-bottom: 30px;
        }

        @media (min-width: 768px) {
            .footer-content {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .footer-section h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .footer-section p {
            color: var(--text-secondary);
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        .footer-section ul li {
            margin-bottom: 8px;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        /* 新增的文本溢出省略样式 */
        .update-item>div {
            min-width: 0;
            flex: 1;
        }

        .update-title,
        .update-meta {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            display: block;
        }

        .category-novel-list li {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .category-novel-list li a {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            margin-right: 10px;
        }

        .novel-author {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 60px;
            max-width: 100px;
            text-align: right;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        /* 热门推荐3D卡片按钮样式 */
        .btn-detail {
            display: block;
            /* 改为块级元素 */
            padding: 8px 16px;
            /* 增大按钮 */
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
            text-align: center;
            text-decoration: none;
            margin-top: 15px;
            /* 上移按钮 */
            width: 80%;
            /* 设置宽度 */
            margin-left: auto;
            margin-right: auto;
            position: absolute;
            bottom: 15px;
            /* 固定在底部 */
            left: 10%;
            right: 10%;
        }

        .btn-detail:hover {
            background-color: var(--primary-dark);
            transform: translateY(-1px);
        }

        /* 移动端适配 */
        @media (max-width: 991px) {
            .header .container {
                flex-wrap: wrap;
            }

            .mobile-toggle {
                display: block;
            }

            .main-nav {
                order: 3;
                width: 100%;
                margin-top: 15px;
                display: none;
                max-height: 70vh;
                /* 添加最大高度限制 */
                overflow-y: auto;
                /* 允许垂直滚动 */
            }

            .main-nav.active {
                display: block;
            }

            /* 手机端菜单改为网格布局 - 修复布局问题 */
            .main-nav ul {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 8px;
                /* 减少间距 */
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                /* 改为3列布局 */
                background-color: var(--card-bg);
                border-radius: 8px;
                padding: 10px;
                /* 减少内边距 */
                border: 1px solid var(--border-color);
                margin-bottom: 0;
            }

            .main-nav li {
                width: 100%;
            }

            .main-nav a {
                display: flex;
                flex-direction: row;
                /* 改为水平布局 */
                align-items: center;
                justify-content: flex-start;
                padding: 8px 10px;
                /* 减少内边距 */
                text-align: left;
                background-color: var(--background-light);
                border-radius: 6px;
                height: auto;
                /* 改为自动高度 */
                border: 1px solid transparent;
                transition: var(--transition);
                min-height: 44px;
                /* 最小触摸高度 */
            }

            .main-nav a:hover {
                background-color: rgba(106, 90, 205, 0.2);
                border-color: var(--primary-color);
                transform: translateY(-2px);
            }

            .main-nav a i {
                font-size: 1rem;
                /* 减小图标大小 */
                margin-bottom: 0;
                /* 移除底部边距 */
                margin-right: 8px;
                /* 添加右侧边距 */
                color: var(--primary-color);
                flex-shrink: 0;
                /* 防止图标被压缩 */
            }

            /* 手机端显示所有菜单项 */
            .mobile-only {
                display: block;
            }

            .search-box {
                order: 2;
                margin-left: auto;
            }

            .search-box input {
                width: 150px;
            }

            .top-section,
            .middle-section {
                grid-template-columns: 1fr;
            }

            /* 移动端3D轮播调整 */
            .hot-recommend-3d-carousel {
                height: 380px;
                /* 移动端降低高度 */
            }

            .carousel-item-3d {
                width: 200px;
                height: 320px;
            }

            .novel-cover-3d {
                height: 160px;
                /* 移动端增加图片高度 */
            }
        }

        @media (max-width: 768px) {
            .hot-recommend-3d-carousel {
                height: 360px;
            }

            .carousel-item-3d {
                width: 180px;
                height: 300px;
            }

            .novel-cover-3d {
                height: 150px;
            }

            /* 进一步调整手机端菜单布局 */
            .main-nav ul {
                grid-template-columns: repeat(3, 1fr);
                /* 保持3列 */
                gap: 6px;
                padding: 8px;
            }

            .main-nav a {
                padding: 6px 8px;
                font-size: 0.85rem;
            }

            .main-nav a i {
                font-size: 0.9rem;
                margin-right: 6px;
            }
        }

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

            .search-box input {
                width: 120px;
            }

            .carousel {
                height: 250px;
            }

            .hot-recommend-3d-carousel {
                height: 400px;
            }

            .carousel-item-3d {
                width: 180px;
                height: 340px;
            }

            .novel-cover-3d {
                height: 140px;
            }

            .novel-info-3d {
                padding: 12px;
            }

            .novel-desc-3d {
                -webkit-line-clamp: 3;
                /* 移动端减少描述行数 */
            }

            /* 小屏幕手机菜单调整为2列 */
            .main-nav ul {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .main-nav a {
                padding: 8px 10px;
                font-size: 0.9rem;
            }
        }

        /* 其他页面通用样式 */
        .breadcrumb {
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .breadcrumb a {
            color: var(--text-secondary);
        }

        .breadcrumb a:hover {
            color: var(--primary-color);
        }

        .page-title {
            font-size: 1.8rem;
            margin-bottom: 30px;
            color: var(--text-primary);
            position: relative;
            padding-bottom: 10px;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background-color: var(--primary-color);
        }

        /* 小说列表样式 */
        .novel-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .novel-item {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 20px;
            display: flex;
            gap: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .novel-item:hover {
            transform: translateY(-3px);
        }

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

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

        .novel-info {
            flex: 1;
        }

        .novel-title {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }

        .novel-meta {
            display: flex;
            gap: 15px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 10px;
        }

        /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-top: 40px;
        }

        .pagination a {
            display: inline-block;
            padding: 8px 12px;
            background-color: var(--card-bg);
            border-radius: 4px;
            color: var(--text-primary);
            transition: var(--transition);
        }

        .pagination a:hover,
        .pagination a.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* 小说详情页样式 */
        .novel-detail-page {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 30px;
            box-shadow: var(--shadow);
        }

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

        @media (max-width: 768px) {
            .novel-header {
                flex-direction: column;
            }
        }

        .novel-cover-large {
            width: 200px;
            height: 280px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }

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

        .novel-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
        }

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

        .novel-actions {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        /* 章节页样式 */
        .chapter-page {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 30px;
            box-shadow: var(--shadow);
        }

        .chapter-content {
            line-height: 1.8;
            margin: 30px 0;
            font-size: 1.1rem;
            color: var(--text-primary);
            text-align: justify;
        }

        .chapter-content p {
            margin-bottom: 20px;
        }

        .chapter-nav {
            display: flex;
            justify-content: space-between;
            margin: 30px 0;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

        /* 响应式工具类 */
        .text-center {
            text-align: center;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        .mt-20 {
            margin-top: 20px;
        }

        /* 新增底部区域样式 */
        .bottom-section {
            display: grid;
            grid-template-columns: 1fr 3fr;
            gap: 20px;
            margin-top: 10px;
            width: 100%;
            overflow: hidden;
        }

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

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

        .view-all {
            font-size: 0.85rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .view-all:hover {
            color: var(--primary-dark);
        }

        /* 最新入库小说样式 */
        .new-arrivals {
            background-color: var(--card-bg);
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 20px;
            width: 100%;
            box-sizing: border-box;
        }

        .new-novels-list {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .new-novel-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px dashed var(--border-color);
            gap: 10px;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .new-novel-item:last-child {
            border-bottom: none;
        }

        .novel-category {
            background-color: rgba(106, 90, 205, 0.2);
            color: var(--primary-color);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .novel-info-wrap {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
        }

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

        .novel-title {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        .novel-author {
            font-size: 0.8rem;
            color: var(--text-secondary);
            white-space: nowrap;
            min-width: 60px;
            text-align: right;
            flex-shrink: 0;
        }

        /* 最近更新小说列表样式 */
        .recent-updates-full {
            background-color: var(--card-bg);
            border-radius: 8px;
            padding: 20px;
            box-shadow: var(--shadow);
            width: 100%;
            box-sizing: border-box;
        }

        .updates-full-list {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .update-full-item {
            display: grid;
            grid-template-columns: 60px 1fr 1fr 100px 100px;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px dashed var(--border-color);
            gap: 10px;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .update-full-item:last-child {
            border-bottom: none;
        }

        @media (max-width: 992px) {
            .update-full-item {
                grid-template-columns: 60px 1fr 100px;
                grid-template-rows: auto auto;
                gap: 5px;
                padding: 15px 0;
            }

            .update-author,
            .update-time {
                grid-column: 2;
            }

            .update-time {
                justify-self: end;
            }
        }

        @media (max-width: 576px) {
            .update-full-item {
                grid-template-columns: 60px 1fr;
                gap: 8px;
            }

            .update-chapter {
                grid-column: 1 / span 2;
            }

            .update-author,
            .update-time {
                grid-column: auto;
                justify-self: start;
            }
        }

        .update-category {
            background-color: rgba(106, 90, 205, 0.2);
            color: var(--primary-color);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            white-space: nowrap;
            text-align: center;
            flex-shrink: 0;
        }

        .update-novel-title,
        .update-chapter {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        .update-novel-title:hover,
        .update-chapter:hover {
            color: var(--primary-color);
        }

        .update-author {
            font-size: 0.85rem;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
        }

        .update-time {
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
            text-align: right;
        }

        /* 返回顶部按钮样式 */
        .back-to-top-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transition: var(--transition);
            opacity: 0;
            visibility: hidden;
            z-index: 9999;
        }

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

        .back-to-top-btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        }
 /* 分类页特有样式 */
    .category-page {
        padding: 20px 0;
    }

    /* 面包屑导航 */
    .breadcrumb {
        margin-bottom: 20px;
        font-size: 0.9rem;
        color: var(--text-secondary);
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .breadcrumb a {
        color: var(--text-secondary);
        transition: var(--transition);
    }

    .breadcrumb a:hover {
        color: var(--primary-color);
    }

    .breadcrumb span {
        color: var(--text-primary);
        font-weight: 500;
    }

    /* 页面标题 */
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        color: var(--text-primary);
        position: relative;
        padding-bottom: 15px;
    }

    .page-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 3px;
        background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
        border-radius: 2px;
    }

    /* 小说网格布局 - 一行两个 */
    .novel-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 40px;
    }

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

    /* 小说卡片 - 左图右文布局 */
    .novel-card {
        background-color: var(--card-bg);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
        height: 100%;
        display: flex;
        flex-direction: row;
        min-height: 220px;
    }

    .novel-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    /* 小说封面容器 - 左侧 */
    .novel-cover-container {
        position: relative;
        width: 160px;
        min-width: 160px;
        height: 220px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .novel-cover-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .novel-card:hover .novel-cover-container img {
        transform: scale(1.05);
    }

    /* 分类标签 */
    .novel-category-tag {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(106, 90, 205, 0.9);
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 500;
        z-index: 1;
    }

    /* 小说信息区域 - 右侧 */
    .novel-info-container {
        padding: 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }

    /* 小说标题 */
    .novel-card-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 10px;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .novel-card-title a {
        color: var(--text-primary);
        transition: var(--transition);
    }

    .novel-card-title a:hover {
        color: var(--primary-color);
    }

    /* 小说作者 */
    .novel-card-author {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .novel-card-author i {
        font-size: 0.8rem;
        color: var(--primary-color);
    }

    /* 小说描述 */
    .novel-card-desc {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 15px;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 小说元数据 */
    .novel-card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        font-size: 0.8rem;
    }

    .meta-left {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 4px;
        color: var(--text-secondary);
    }

    .meta-item i {
        font-size: 0.8rem;
        color: var(--primary-color);
    }

    /* 状态标签 */
    .novel-status {
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 500;
    }

    .status-ongoing {
        background-color: rgba(72, 187, 120, 0.2);
        color: var(--success-color);
    }

    .status-completed {
        background-color: rgba(106, 90, 205, 0.2);
        color: var(--primary-color);
    }

    /* 阅读按钮 */
    .novel-card-read-btn {
        display: inline-block;
        padding: 8px 20px;
        background-color: var(--primary-color);
        color: white;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 500;
        transition: var(--transition);
        text-align: center;
        margin-top: 10px;
    }

    .novel-card-read-btn:hover {
        background-color: var(--primary-dark);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    }

    /* 分页样式 */
    .pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid var(--border-color);
    }

    .pagination {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        background-color: var(--card-bg);
        color: var(--text-primary);
        font-size: 0.9rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .page-link:hover {
        background-color: var(--primary-color);
        color: white;
    }

    .page-link.active {
        background-color: var(--primary-color);
        color: white;
    }

    .page-link.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .page-link.disabled:hover {
        background-color: var(--card-bg);
        color: var(--text-primary);
    }

    .page-ellipsis {
        color: var(--text-secondary);
        padding: 0 10px;
    }

    /* 分类信息 */
    .category-info {
        background-color: rgba(106, 90, 205, 0.1);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 30px;
        border-left: 4px solid var(--primary-color);
    }

    .category-description {
        font-size: 0.95rem;
        color: var(--text-secondary);
        line-height: 1.6;
    }

    /* 空状态 */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        grid-column: 1 / -1;
    }

    .empty-icon {
        font-size: 3rem;
        color: var(--text-muted);
        margin-bottom: 20px;
    }

    .empty-title {
        font-size: 1.2rem;
        color: var(--text-primary);
        margin-bottom: 10px;
    }

    .empty-description {
        color: var(--text-secondary);
        max-width: 400px;
        margin: 0 auto;
    }

    /* 排序筛选 */
    .sort-filter-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding: 15px 20px;
        background-color: var(--card-bg);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 576px) {
        .sort-filter-container {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
        }
    }

    .sort-options {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .sort-label {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .sort-select {
        background-color: var(--background-light);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: var(--transition);
    }

    .sort-select:hover {
        border-color: var(--primary-color);
    }

    .sort-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
    }

    .novel-count {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .novel-count strong {
        color: var(--primary-color);
        font-weight: 600;
    }

    /* 移动端适配 - 修复超出边缘问题并保持左右布局 */
    @media (max-width: 768px) {
        .category-page {
            padding: 15px 10px;
        }

        .novel-grid {
            gap: 15px;
            margin-bottom: 30px;
        }

        .novel-card {
            min-height: 180px;
            max-width: 100%;
            overflow: hidden;
        }

        .novel-cover-container {
            width: 120px;
            min-width: 120px;
            height: 180px;
        }

        .novel-info-container {
            padding: 15px;
        }

        .novel-card-title {
            font-size: 1rem;
            -webkit-line-clamp: 2;
        }

        .novel-card-desc {
            font-size: 0.85rem;
            -webkit-line-clamp: 3;
            margin-bottom: 10px;
        }

        .novel-card-meta {
            padding-top: 10px;
            font-size: 0.75rem;
        }

        .meta-left {
            gap: 10px;
        }

        .novel-card-read-btn {
            padding: 6px 15px;
            font-size: 0.8rem;
            margin-top: 8px;
        }
    }

    /* 超小屏幕适配 */
    @media (max-width: 480px) {
        .novel-card {
            min-height: 160px;
        }

        .novel-cover-container {
            width: 100px;
            min-width: 100px;
            height: 160px;
        }

        .novel-info-container {
            padding: 12px;
        }

        .novel-card-desc {
            -webkit-line-clamp: 2;
        }

        .novel-card-meta {
            flex-wrap: wrap;
            gap: 8px;
        }

        .meta-left {
            order: 2;
            width: 100%;
            justify-content: flex-start;
        }

        .novel-status {
            order: 1;
        }

        .novel-card-read-btn {
            order: 3;
            width: 100%;
            margin-top: 8px;
        }
    }

    /* 极窄屏幕适配 */
    @media (max-width: 360px) {
        .novel-card {
            flex-direction: column;
            min-height: auto;
        }

        .novel-cover-container {
            width: 100%;
            min-width: 100%;
            height: 180px;
        }

        .novel-card-desc {
            display: none;
        }

        .novel-card-title {
            -webkit-line-clamp: 1;
        }
    }