        /* 基础样式重置 */
/* 横向滚动容器基础样式 */
.scroll-x-container {
    width: 100%;
    overflow-x: auto;   /* 横向滚动 */
    overflow-y: hidden; /* 隐藏垂直滚动 */
    white-space: nowrap;/* 防止导航项换行 */
    -webkit-overflow-scrolling: touch; /* 移动端顺滑滚动 */
}

/* 滚动内容容器（导航项外层） */
.scroll-content {
    display: inline-block;
}

/* ---------- 横向滚动条美化（WebKit内核） ---------- */
/* 整体滚动条（控制水平滚动条高度） */
.scroll-x-container::-webkit-scrollbar {
    height: 6px; /* 横向滚动条高度 */
}

/* 滚动条轨道 */
.scroll-x-container::-webkit-scrollbar-track {
    background-color: #f5f5f5; /* 轨道背景 */
    border-radius: 3px;        /* 轨道圆角 */
}

/* 滚动条滑块（沿用你设计的红色渐变样式） */
.scroll-x-container::-webkit-scrollbar-thumb {
    background-color: #ff676c;
    background-image: -webkit-linear-gradient(
        45deg,
        rgba(255,255,255,.4) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,.4) 50%,
        rgba(255,255,255,.4) 75%,
        transparent 75%,
        transparent
    );
    border-radius: 3px; /* 滑块圆角 */
    cursor: pointer;
}

/* 滑块hover效果 */
.scroll-x-container::-webkit-scrollbar-thumb:hover {
    background-color: #e55a5f; /* 加深颜色 */
}

/* ---------- Firefox兼容 ---------- */
.scroll-x-container {
    scrollbar-width: thin; /* 滚动条宽度：thin/auto/none */
    scrollbar-color: #ff676c #f5f5f5; /* 滑块颜色 轨道颜色 */
}

/* 导航项样式（可选，优化视觉） */
.daily-item {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    cursor: pointer;
    border-radius: 4px;
}
.daily-item.active {
    background-color: #ff676c;
    color: white;
}
        .container {
            max-width: 1700px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* 搜索框样式 */
        .search-container {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
            padding: 20px 0;
            position: relative;
        }
        .search-box {
            position: relative;
            width: 100%;
        }
        .search-input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: none;
            border-radius: 30px;
            font-size: 16px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: box-shadow 0.3s;
        }
        .search-input:focus {
            outline: none;
            box-shadow: 0 2px 15px rgba(52, 152, 219, 0.3);
        }
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 18px;
            width: 20px;
            height: 20px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
        }
        .search-results {
            text-align: center;
            margin-bottom: 15px;
            color: #666;
            font-size: 14px;
        }

        /* 搜索建议下拉框样式 */
        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            z-index: 1000;
            margin-top: 5px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
        }
        .search-suggestions.active {
            display: block;
        }
        .suggestion-item {
            padding: 10px 15px;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #f1f1f1;
        }
        .suggestion-item:last-child {
            border-bottom: none;
        }
        .suggestion-item:hover {
            background: #f8f9fa;
        }
        .suggestion-item img {
            width: 40px;
            height: 60px;
            object-fit: cover;
            border-radius: 5px;
            margin-right: 15px;
        }
        .suggestion-info {
            flex: 1;
        }
        .suggestion-title {
            font-weight: bold;
            margin-bottom: 3px;
        }
        .suggestion-type {
            font-size: 12px;
            color: #666;
        }
        .suggestion-highlight {
            color: #3498db;
            font-weight: bold;
        }
        .suggestion-empty {
            padding: 15px;
            text-align: center;
            color: #999;
            font-size: 14px;
        }
        .suggestion-keyword {
            padding: 10px 15px;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid #f1f1f1;
        }
        .suggestion-keyword:hover {
            background: #f8f9fa;
        }

        /* 幻灯片和每日更新组合容器 */
        .hero-container {
            display: flex;
            gap: 20px;
            margin: 20px auto;
            max-width: 1700px;
            padding: 0 15px;
        }
        
        /* Swiper幻灯片样式 */
        .swiper-container {
            flex: 3;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            height: 500px;
        }
        
        .swiper {
            width: 100%;
            height: 100%;
        }
        
        .swiper-slide {
            position: relative;
            overflow: hidden;
        }
        
        .slide-bg {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform 5s ease;
        }
        
        .swiper-slide:hover .slide-bg {
            transform: scale(1.05);
        }
        
        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 40px;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
            color: white;
            z-index: 10;
        }
        
        .slide-header {
            display: flex;
            align-items: flex-end;
            gap: 24px;
            margin-bottom: 16px;
        }
        
        .slide-poster {
            width: 180px;
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            border: 3px solid rgba(255, 255, 255, 0.1);
        }
        
        .slide-info {
            flex: 1;
        }
        
        .slide-title {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 12px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            letter-spacing: 0.5px;
        }
        
        .slide-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 16px;
            font-size: 15px;
            color: #e0e0e0;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .meta-item i {
            font-size: 16px;
        }
        
        .slide-desc {
            font-size: 16px;
            line-height: 1.6;
            max-height: 96px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
            color: #f0f0f0;
        }
        
        .slide-status {
            font-size: 14px;
            color: #2ecc71;
            margin-top: 8px;
        }
        
        .slide-actions {
            margin-top: 20px;
            display: flex;
            gap: 16px;
        }
        
        .btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        
        .btn-primary {
            background: #3498db;
            color: white;
            border: none;
        }
        
        .btn-primary:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
        }
        
        .btn-secondary {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(4px);
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }
        
        /* Swiper导航样式 */
        .swiper-button-prev,
        .swiper-button-next {
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 50%;
            backdrop-filter: blur(4px);
            color: white;
            transition: all 0.3s;
        }
        
        .swiper-button-prev:hover,
        .swiper-button-next:hover {
            background: rgba(0, 0, 0, 0.5);
            transform: scale(1.1);
        }
        
        .swiper-button-prev::after,
        .swiper-button-next::after {
            font-size: 20px;
            font-weight: bold;
        }
        
        .swiper-pagination {
            bottom: 20px !important;
        }
        
        .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 1;
            transition: all 0.3s;
        }
        
        .swiper-pagination-bullet-active {
            background: white;
            width: 30px;
            border-radius: 6px;
        }

        /* 每日更新模块 */
        .daily-update {
            flex: 1;
            background: #1a1a1a;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            height: 500px;
        }
        
        .daily-header {
            padding: 15px;
            background: #222;
            border-bottom: 1px solid #333;
        }
        
        .daily-nav {
            display: flex;
            overflow-x: auto;
            gap: 10px;
            padding-bottom: 5px;
            scrollbar-width: thin;
        }
        
        .daily-nav::-webkit-scrollbar {
            height: 4px;
        }
        
        .daily-nav::-webkit-scrollbar-thumb {
            background-color: #555;
            border-radius: 2px;
        }
        
        .daily-item {
            white-space: nowrap;
            padding: 8px 12px;
            color: #ccc;
            cursor: pointer;
            transition: all 0.3s;
            border-radius: 4px;
        }
        
        .daily-item:hover {
            background: #333;
        }
        
        .daily-item.active {
            background: #ff4081;
            color: white;
            font-weight: bold;
        }
        
        .daily-content {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }
        
        .daily-content::-webkit-scrollbar {
            width: 6px;
        }
        
        .daily-content::-webkit-scrollbar-thumb {
            background-color: #555;
            border-radius: 3px;
        }
        
        /* 每日更新 - PC端网格布局 */
        .daily-movies {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .daily-movie {
            background: #222;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s;
        }
        
        .daily-movie:hover {
            transform: translateY(-3px);
        }
        
        .daily-movie img {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }
        
        .daily-movie-info {
            padding: 10px;
            color: white;
        }
        
        .daily-movie-title {
            font-size: 14px;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .daily-movie-meta {
            font-size: 12px;
            color: #aaa;
            display: flex;
            justify-content: space-between;
        }
        
        .daily-movie-status {
            font-size: 12px;
            color: #2ecc71;
            margin-top: 3px;
        }

        /* 最新更新模块样式 - PC端一排无滚动，移动端横向滚动 */
        .latest-movies {
            max-width: 1700px;
            background: #1a1a1a;
            padding: 20px 0;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border-radius: 16px;
        }
        
        .latest-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .latest-title {
            color: white;
            font-size: 20px;
            font-weight: bold;
        }
        
        .latest-scroll-container {
            position: relative;
        }
        
        .latest-list {
            display: flex;
            gap: 20px;
            overflow-x: auto; /* 移动端滚动，PC端自动换行 */
            scroll-behavior: smooth;
            padding: 10px 0;
            scrollbar-width: thin;
            flex-wrap: wrap; /* PC端自动换行 */
        }
        
        /* 自定义滚动条样式 */
        .latest-list::-webkit-scrollbar {
            height: 8px;
        }
        
        .latest-list::-webkit-scrollbar-track {
            background: #222;
            border-radius: 4px;
        }
        
        .latest-list::-webkit-scrollbar-thumb {
            background: #3498db;
            border-radius: 4px;
        }
        
        .latest-item {
            flex: 0 0 200px; /* 固定宽度，PC端自动换行 */
            background: #222;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s;
            position: relative;
        }
        
        .latest-item:hover {
            transform: translateY(-5px);
        }
        
        .latest-item img {
            width: 100%;
            height: 280px;
            object-fit: cover;
        }
        
        .latest-item-info {
            padding: 10px;
            color: white;
        }
        
        .latest-item-title {
            font-size: 16px;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .latest-item-meta {
            font-size: 14px;
            color: #aaa;
            display: flex;
            justify-content: space-between;
        }
        
        .latest-item-status {
            font-size: 12px;
            color: #2ecc71;
            margin-top: 3px;
        }
        
        /* NEW标签美化 */
        .latest-tag {
            position: absolute;
            top: 10px;
            left: 10px;
            background: linear-gradient(90deg, #ff3e3e, #ff9900);
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            text-transform: uppercase;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        /* 随机影视模块 - 横向滚动版 */
        .random-movies {
            background: #1a1a1a;
            padding: 20px 0;
            margin-bottom: 20px;
            border-radius: 16px;
            margin: 20px auto;
            max-width: 1700px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .random-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }
        
        .random-title {
            color: white;
            font-size: 20px;
            font-weight: bold;
        }
        
        .random-refresh {
            padding: 6px 12px;
            background: #ff4081;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .random-refresh:hover {
            background: #2980b9;
        }
        
        /* 横向滚动容器 */
        .random-scroll-container {
            position: relative;
        }
        
        .random-list {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 10px 0;
            scrollbar-width: thin;
        }
        
        /* 自定义滚动条样式 */
        .random-list::-webkit-scrollbar {
            height: 8px;
        }
        
        .random-list::-webkit-scrollbar-track {
            background: #222;
            border-radius: 4px;
        }
        
        .random-list::-webkit-scrollbar-thumb {
            background: #3498db;
            border-radius: 4px;
        }
        
        /* 滚动按钮 */
        .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.7);
            color: white;
            border: none;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            opacity: 0.5;
            transition: opacity 0.3s;
        }
        
        .scroll-btn:hover {
            opacity: 1;
        }
        
        .scroll-left {
            left: 0;
        }
        
        .scroll-right {
            right: 0;
        }
        
        .random-item {
            flex: 0 0 200px;
            background: #222;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s;
        }
        
        .random-item:hover {
            transform: translateY(-5px);
        }
        
        .random-item img {
            width: 100%;
            height: 280px;
            object-fit: cover;
        }
        
        .random-item-info {
            padding: 10px;
            color: white;
        }
        
        .random-item-title {
            font-size: 16px;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .random-item-meta {
            font-size: 14px;
            color: #aaa;
            display: flex;
            justify-content: space-between;
        }
        
        .random-item-status {
            font-size: 12px;
            color: #2ecc71;
            margin-top: 3px;
        }

        /* 影视列表 - 新增标题和更多按钮 */
        .category-section {
            max-width: 1700px;
            margin-bottom: 40px;
        }
        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 10px 0;
        }
        .category-title {
            font-size: 24px;
            font-weight: bold;
            color: #fff;
        }
        .more-btn {
            padding: 8px 16px;
            background: #ff4081;
            color: white;
            border-radius: 4px;
            text-decoration: none;
            font-size: 14px;
            transition: background 0.3s;
        }
        .more-btn:hover {
            background: #2980b9;
        }
        .movie-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 25px;
            /* 移除高度限制，改为自适应 */
        }
        .movie-item {
            background: #222;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
        }
        .movie-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        .movie-cover {
            width: 100%;
            height: 280px;
            object-fit: cover;
            transition: transform 0.5s;
        }
        .movie-item:hover .movie-cover {
            transform: scale(1.05);
        }
        .movie-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(46, 204, 113, 0.9);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            z-index: 2;
            white-space: nowrap;
        }
        .movie-badge.complete {
            background: rgba(231, 76, 60, 0.9);  
        }
        .movie-badge.updating {
            background: rgba(52, 152, 219, 0.9);
        }
        .movie-status-badge {
            display: none; /* 隐藏原来的状态徽章 */
        }
        .movie-info {
            padding: 15px;
        }
        .movie-title {
            font-size: 16px;
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .movie-meta {
            font-size: 12px;
            color: #999;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 5px;
        }
        .rating {
            color: #e67e22;
            display: flex;
            align-items: center;
        }
        .rating::before {
            content: "★";
            margin-right: 3px;
        }
        .movie-status {
            font-size: 13px;
            color: #666;
            margin-top: 5px;
        }

        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 80px 0;
            color: #666;
        }
        .empty-state p {
            margin-bottom: 20px;
            font-size: 16px;
        }
        .empty-state a {
            display: inline-block;
            padding: 10px 20px;
            background: #3498db;
            color: white;
            border-radius: 4px;
            text-decoration: none;
            transition: background 0.3s;
        }
        .empty-state a:hover {
            background: #2980b9;
        }

        /* 响应式调整 */
        @media (max-width: 1200px) {
            .hero-container {
                flex-direction: column;
            }
            
            .swiper-container, .daily-update {
                width: 100%;
                height: 400px;
            }
            
            .latest-item {
                flex: 0 0 180px;
            }
            
            .latest-item img {
                height: 250px;
            }
        }
        
        @media (max-width: 768px) {
            .hero-container {
                display: block;
            }
            
            .swiper-container {
                display: none; /* 移动端隐藏幻灯片 */
            }
            
            .daily-update {
                width: 100%;
                height: auto;
                margin-bottom: 20px;
                border-radius: 0;
                box-shadow: none;
            }
            
            /* 移动端每日更新改为横向滚动 */
            .daily-movies {
                display: flex;
                gap: 15px;
                overflow-x: auto;
                padding-bottom: 10px;
                grid-template-columns: none;
            }
            
            .daily-movie {
                flex: 0 0 150px;
            }
            
            .daily-movie img {
                height: 200px;
            }
            
            .nav {
                margin-top: 10px;
                width: 100%;
                text-align: center;
            }
            
            .nav a {
                margin: 0 10px;
            }
            
            /* 移动端影视列表改为三列 */
            .movie-list {
                grid-template-columns: repeat(2, 1fr); /* 移动端改为两列 */
                gap: 10px;
            }
            
            .movie-cover {
                height: 180px;
            }
            
            .random-item, .daily-movie, .latest-item {
                /*min-width: 150px;*/
                /*flex: 0 0 150px;*/
            }
            
            .random-item img, .latest-item img {
                height: 220px;
            }
            
            .search-container {
                padding: 15px 0;
            }
            
            /* 移动端滚动按钮适配 */
            .scroll-btn {
                width: 30px;
                height: 30px;
                font-size: 16px;
            }
            
            /* 移动端搜索建议适配 */
            .suggestion-item img {
                width: 30px;
                height: 45px;
            }
            
            .suggestion-title {
                font-size: 14px;
            }

            /* 移动端最新更新横向滚动（强制不换行） */
            .latest-list {
                flex-wrap: nowrap;
            }
        }
        
        @media (max-width: 480px) {
            .movie-list {
                grid-template-columns: repeat(2, 1fr); /* 移动端小屏保持两列 */
            }
            
            .latest-item, .random-item {
                /*flex: 0 0 130px;*/
                /*min-width: 130px;*/
            }
            
            .latest-item img, .random-item img {
                height: 180px;
            }
        }
        
        @media (min-width: 769px) and (max-width: 1024px) {
            .movie-list {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
                max-height: calc(220px * 2 + 20px + 15px * 2);
            }
            .movie-cover {
                height: 220px;
            }
            
            .latest-item {
                flex: 0 0 160px;
            }
            
            .latest-item img {
                height: 220px;
            }
        }
        
        @media (min-width: 1400px) {
            .latest-item {
                flex: 0 0 220px;
            }
            
            .latest-item img {
                height: 300px;
            }
        }