/* 最新资源横向滚动专用样式 开始*/
.index-scroll-container {
    display: none;
    margin-top: -85px;
    padding: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

.index-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.index-title {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.index-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 120px;
    border-radius: 40px;
}

.edu-scroll-row {
    display: flex;
    width: max-content;
    margin-bottom: 10px;
}

.edu-scroll-item {
    flex: 0 0 auto;
    margin: 0 15px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: scale(1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.edu-scroll-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    z-index: -1;
    border-radius: 60px;
    opacity: 0.7;
}

.edu-scroll-item:nth-child(2n)::before {
    background: linear-gradient(45deg, #a1c4fd, #c2e9fb);
}

.edu-scroll-item:nth-child(3n)::before {
    background: linear-gradient(45deg, #84fab0, #8fd3f4);
}

.edu-scroll-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.edu-scroll-item a {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    display: block;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .index-scroll-container {
        margin-top: -70px;
        padding: 15px 0;
    }

    .edu-scroll-item {
        padding: 10px 15px;
        margin: 0 10px;
        border-radius: 40px;
    }

    .index-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}
/* 移动设备特定样式 */
@media (max-width: 768px) {
    .index-scroll-container {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .edu-scroll-item {
        padding: 10px 20px;
        margin: 0 10px;
        border-radius: 40px;
        touch-action: manipulation;
    }

    .edu-scroll-item a {
        font-size: 14px;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }

    /* 防止文本选中 */
    .edu-scroll-row {
        user-select: none;
        -webkit-user-select: none;
    }
}
/* 新数据行特殊样式 */
/* 火车主题最新资源行样式 - 统一动画版 */
.edu-scroll-row[data-row-type="new"] {
    position: relative;
    margin-bottom: 10px;
}

/* 火车头样式（第一个项目） */
.edu-scroll-row[data-row-type="new"] .edu-scroll-item:first-child a::before {
    content: "\f238"; /* Font Awesome火车头图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
    color: #ff6b6b;
    animation: choo-choo 0.8s infinite alternate;
}

/* 火车车厢样式（后续项目） */
.edu-scroll-row[data-row-type="new"] .edu-scroll-item:not(:first-child) a::before {
    content: "\f238"; /* Font Awesome火车图标 */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    margin-right: 8px;
    font-size: 1em;
    vertical-align: middle;
    color: #a1c4fd;
    animation: choo-choo 0.8s infinite alternate; /* 添加相同动画 */
}

/* 增强版火车动画效果 */
@keyframes choo-choo {
    0% {
        transform: translateY(0) rotate(-5deg) scale(1);
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    }
    50% {
        transform: translateY(-4px) rotate(0deg) scale(1.05);
    }
    100% {
        transform: translateY(0) rotate(5deg) scale(1);
        filter: drop-shadow(0 4px 5px rgba(0,0,0,0.3));
    }
}

/* 每个项目的"最新资源"标签 */
.edu-scroll-row[data-row-type="new"] .edu-scroll-item::after {
    content: "最新资源";
    position: absolute;
    top: 5px;
    right: 15px;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: bold;
    background: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #ff6b6b;
    z-index: 2; /* 确保标签在最上层 */
}

/* 确保链接可点击 */
.edu-scroll-row[data-row-type="new"] .edu-scroll-item a {
    position: relative;
    z-index: 1;
    padding-right: 60px;
    transition: all 0.3s ease; /* 添加文字平滑过渡 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .edu-scroll-row[data-row-type="new"] .edu-scroll-item::after {
        font-size: 10px;
        right: 10px;
        padding: 1px 5px;
    }

    .edu-scroll-row[data-row-type="new"] .edu-scroll-item a {
        padding-right: 50px;
    }

    /* 移动端减小动画幅度 */
    @keyframes choo-choo {
        0% { transform: translateY(0) rotate(-3deg); }
        100% { transform: translateY(-2px) rotate(3deg); }
    }
}
.edu-scroll-item {
    display: inline-flex;
    align-items: center;
    /*height: !* 明确高度值 *!;*/
}
/* 最新资源横向滚动专用样式 结束*/
/*以下所有都是搜索框下的推荐的样式开始*/
/* 推荐区域整体样式 */
.recommendations-section {
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
}

/* 推荐标题行 - 确保同行显示 */
.recommendations-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

/* 推荐标题样式 */
.recommendations-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    /*margin-right: 15px;*/
    white-space: nowrap;
    background: linear-gradient(90deg, #ff5e5e, #ff9966);
    padding: 6px 12px 6px 18px;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    flex-shrink: 0;
    margin-top: 18px;
}

/* 内容容器 - 确保不超出 */
.recommendations-content {
    flex-grow: 1;
    position: relative;
    min-width: 0; /* 防止flex项目溢出 */
    overflow: hidden;
    margin-bottom: -13px;
}

/* 电脑端滚动容器 */
.recommendations-scroll-container.desktop {
    overflow: hidden;
    position: relative;
    padding: 0 38px; /* 为箭头留空间 */
}

/* 电脑端滚动区域 */
.desktop-scroll-area {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 20px;
    border-radius: 5px;
}

.desktop-scroll-area::-webkit-scrollbar {
    display: none;
}

/* 手机端滚动容器 */
.recommendations-scroll-container.mobile {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff9966 rgba(0,0,0,0.1);
    padding-bottom: 30px;
}

.recommendations-scroll-container.mobile::-webkit-scrollbar {
    height: 4px;
}

.recommendations-scroll-container.mobile::-webkit-scrollbar-thumb {
    background-color: #ff9966;
    border-radius: 2px;
}
/* 电脑端提示 */
.desktop-scroll-hint {
    position: absolute;
    bottom: 0px; /* 向下移动20px */
    left: -15%;
    right: 0;
    height: 28px;
    text-align: center;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}
.desktop-scroll-hint::after {
    content: "← 点我看别人👇都在看什么 →";
    display: inline-block;
    color: rgba(255,255,255,0.8);
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.01));
    padding: 2px 130px;
    border-radius: 20px;
}
/* 手机端滑动提示 */
.mobile-scroll-hint {
    position: absolute;
    bottom: 10px;
    left: -22%;
    right: 0;
    height: 15px;
    text-align: center;
    font-size: 0.7rem;
}
.mobile-scroll-hint::after {
    content: "← 左右滑动查看更多👆点我看别人在看什么 →";
    display: inline-block;
    color: rgba(255,255,255,0.8);
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.05));
    padding: 2px 6px;
    border-radius: 10px;
}
/* 推荐项列表 */
.recommendations-list {
    display: inline-block;
    padding-left: 5px;
}

/* 推荐项样式 */
.recommendation-item {
    display: inline-block;
    margin-right: 10px;
    padding: 6px 12px;
    background-color: rgba(255,255,255,0.95);
    border-radius: 15px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(0);
}
.recommendation-item:hover {
    background-color: #fff;
    transform: translateY(-3px); /* 悬停时上浮3px */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 电脑端箭头按钮 - 加大并优化 */
.scroll-button {
    position: absolute;
    top: 41%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: none;
    opacity: 0.9;
    transition: all 0.2s;
    margin-top: -15px;
}

.scroll-button:hover {
    opacity: 1;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(1.05);
}

.scroll-button i {
    font-size: 1.3rem;
    color: #ff5e5e;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}
/* 移除原来的跳动动画，添加火焰效果 */
.recommendations-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    padding: 6px 14px 6px 18px;
    border-radius: 20px;
    background: linear-gradient(90deg, #ff7a00, #ff3d3d);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    overflow: hidden; /* 隐藏溢出的火焰效果 */
    margin-top: 18px;
}

/* 火焰emoji动画 */
.recommendations-title .fire-emoji {
    display: inline-block;
    animation: fire-burn 1s infinite alternate ease-in-out;
    margin-left: 0px;
    font-size: 1.2em;
    transform-origin: center bottom;
    filter: drop-shadow(0 0 5px #ff6600)
    drop-shadow(0 0 10px #ff3300);
}

/* 更强烈的火焰动画 */
@keyframes fire-burn {
    0% {
        transform: scale(1.2) translateY(0) rotate(-5deg);
        text-shadow:
                0 0 10px #ff9966,
                0 0 20px #ff5e5e,
                0 0 30px #ff0000;
    }
    25% {
        transform: scale(1.5) translateY(-3px) rotate(0deg);
    }
    50% {
        transform: scale(1.3) translateY(-1px) rotate(5deg);
    }
    75% {
        transform: scale(1.6) translateY(-4px) rotate(0deg);
    }
    100% {
        transform: scale(1.4) translateY(-2px) rotate(-5deg);
    }
}


@keyframes fire-glow {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* 添加火焰粒子效果 */
.recommendations-title::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background:
            radial-gradient(circle at 20% 50%, rgba(255, 200, 0, 0.8) 0%, transparent 30%),
            radial-gradient(circle at 50% 30%, rgba(255, 100, 0, 0.8) 0%, transparent 30%),
            radial-gradient(circle at 80% 50%, rgba(255, 50, 0, 0.8) 0%, transparent 30%);
    filter: blur(3px);
    animation: fire-particles 3s infinite linear;
}

@keyframes fire-particles {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 推荐区域整体样式 */
    .recommendations-section {
        margin-top: -25px;
        width: 100%;
        overflow: hidden;
    }
    .recommendations-header {
        display: flex;
        align-items: center;
        margin-bottom: 28px;
        width: 100%;
    }
    .recommendations-scroll-container.desktop {
        display: none;
    }

    .recommendations-scroll-container.mobile {
        display: block;
        border-radius: 15px;
    }

    .scroll-button {
        display: none !important;
    }

    .recommendations-title {
        font-size: 0.85rem;
        padding: 5px 12px;
        margin-right: 10px;
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .recommendation-item {
        padding: 5px 10px;
        font-size: 0.85rem;
        margin-right: 8px;
    }
}
/*以上所有都是搜索框下的推荐的样式结束*/
/*以下是提示有短剧合集的css*/
/* 添加提示样式 */
.mobile-tip {
    position: fixed;
    top: 60px;
    right: 15px;
    z-index: 1000;
    animation: floatTip 10s ease-in-out forwards;
}

.tip-content {
    position: relative;
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
}

.tip-text {
    font-size: 14px;
    color: #ff4757;
    margin-right: 8px;
    white-space: nowrap;
    font-weight: bold;
}

.tip-icon {
    color: #ff6b81;
    font-size: 20px;
    animation: pointDown 1s ease-in-out infinite;
}

@keyframes floatTip {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes pointDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}
/* PC端提示样式 */
.desktop-tip {
    position: fixed; /* 改为固定定位 */
    top: 70px;
    left: 50%;
    transform: translateX(-50%); /* 移除固定偏移 */
    z-index: 1050; /* 提升层级 */
    animation: slideInTop 0.5s ease-out;
    display: none; /* 初始隐藏 */
}

.tip-arrow {
    top: -10px;
    left: 50%;
    margin-left: -10px;
    border-width: 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.34);
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}

.tip-content.pc {
    background: rgba(255, 255, 255, 0.38);
    padding: 12px 18px 12px 25px; /* 增加右侧间距 */
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(255,107,129,1);
    cursor: pointer;
    transition: transform 0.2s;
}
.tip-content.pc:hover {
    transform: translateY(-2px);
}

@keyframes slideInTop {
    from { top: 50px; opacity: 0; }
    to { top: 62px; opacity: 1; }
}
.desktop-tip {
    z-index: 1050;
}
/* 移动端提示微调 */
/* 确保提示在导航栏之上 */
.navbar {
    position: relative;
    z-index: 1000;
}
/* 确保导航栏层级最高并设置高度变量 */
/* 手机端适配 */
@media (max-width: 991px) {
    .navbar-collapse {
        position: relative;
        z-index: 110;
        /*background-color: white;*/
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 60vh;
        overflow-y: auto;
    }
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 90; /* 低于导航栏的 100 */
    /* 其他原有样式保持不变 */
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 auto 20px;
    max-width: 1350px;
    border-radius: 20px;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}
/*短剧提示css结束*/
/*!* 在原有.edu-scroll-item样式后添加 *!*/
/*body.dark-mode .edu-scroll-item {*/
/*    background: rgba(255,255,255,0.1) !important;*/
/*    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;*/
/*}*/

/*body.dark-mode .edu-scroll-item::before {*/
/*    opacity: 0.3 !important;*/
/*}*/