/* 无限滚动样式 */
.infinite-scroll-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: 550px;
    overflow: hidden;
    overscroll-behavior: none;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    mask-image: linear-gradient(to bottom, 
                rgba(0,0,0,1) 0%, 
                rgba(0,0,0,1) 65%, 
                rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
                rgba(0,0,0,1) 0%, 
                rgba(0,0,0,1) 65%, 
                rgba(0,0,0,0) 100%);
}

/* 创建渐隐遮罩 */
.infinite-scroll-wrapper::before,
.infinite-scroll-wrapper::after {
    content: "";
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.infinite-scroll-wrapper::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.infinite-scroll-wrapper::after {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 100%);
}

/* 左右渐隐 */
.side-fade-left,
.side-fade-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 3;
    pointer-events: none;
}

.side-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.side-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.infinite-scroll-container {
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    padding-inline: 1rem;
    cursor: grab;
    transform-origin: center center;
    transform: rotateX(30deg) rotateZ(-20deg) skewX(15deg) scale(0.8);
    width: 70%;
    max-width: 500px;
    padding-bottom: 150px;
}

.infinite-scroll-item {
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.85);
    user-select: none;
    box-sizing: border-box;
    position: relative;
    height: 150px;
    margin-top: -20px;
    margin-bottom: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    box-shadow: 0 0 3px #fff, 0 0 8px #fff, 0 0 20px rgba(30, 144, 255, 0.8), 0 0 30px rgba(30, 144, 255, 0.6); /* 默认辉光，可能用于未指定类型的彩种 */
    overflow: hidden;
}

/* 排列五 (paiwu) 特定样式 - 根据文档新增 */
.infinite-scroll-item.item-type-paiwu {
    border-color: #58719B; /* 灰蓝色 */
    box-shadow: 0 0 3px #58719B, 0 0 8px #58719B, 0 0 20px rgba(88, 113, 155, 0.8), 0 0 30px rgba(88, 113, 155, 0.6); /* 灰蓝色外发光 */
}

/* 七星彩特定样式 */
.infinite-scroll-item.item-type-qixingcai {
    border-color: #81D8D0; /* 蒂芙尼蓝 - 文档更新 */
    box-shadow: 0 0 3px #81D8D0, 0 0 8px #81D8D0, 0 0 20px rgba(129, 216, 208, 0.8), 0 0 30px rgba(129, 216, 208, 0.6); /* 蒂芙尼蓝外发光 - 文档更新 */
}

/* 东方6+1特定样式 */
.infinite-scroll-item.item-type-dongfang {
    border-color: #CC0000; /* 中国红 - 文档更新 */
    box-shadow: 0 0 3px #CC0000, 0 0 8px #CC0000, 0 0 20px rgba(204, 0, 0, 0.8), 0 0 30px rgba(204, 0, 0, 0.6); /* 中国红外发光 - 文档更新 */
}

/* 福彩3D特定样式 */
.infinite-scroll-item.item-type-fc3d {
    border-color: #C8E1FF; /* 发光白 - 文档更新 */
    box-shadow: 0 0 3px #C8E1FF, 0 0 8px #C8E1FF, 0 0 20px rgba(200, 225, 255, 0.8), 0 0 30px rgba(200, 225, 255, 0.6); /* 发光白外发光 - 文档更新 */
}

/* 新增: 排列三特定样式 */
.infinite-scroll-item.item-type-pailiesan {
    border-color: #99FF00; /* 酒绿 - 文档更新 */
    box-shadow: 0 0 3px #99FF00, 0 0 8px #99FF00, 0 0 20px rgba(153, 255, 0, 0.8), 0 0 30px rgba(153, 255, 0, 0.6); /* 酒绿外发光 - 文档更新 */
}

/* 新增: 天天彩选4特定样式 */
.infinite-scroll-item.item-type-ttcx4 {
    border-color: #FEE5C8; /* 暖杏 - 文档更新 */
    box-shadow: 0 0 3px #FEE5C8, 0 0 8px #FEE5C8, 0 0 20px rgba(254, 229, 200, 0.8), 0 0 30px rgba(254, 229, 200, 0.6); /* 暖杏外发光 - 文档更新 */
}

.infinite-scroll-item .physics-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.infinite-scroll-item .item-content {
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .infinite-scroll-wrapper {
        width: 55%;
    }
}

@media (max-width: 768px) {
    .infinite-scroll-wrapper {
        position: relative;
        width: 90%;
        height: 450px;
        right: auto;
        top: auto;
        transform: none;
    }
    
    .infinite-scroll-container {
        transform: rotateX(25deg) rotateZ(-15deg) skewX(10deg) scale(0.7);
    }
    
    .infinite-scroll-item {
        height: 130px;
        font-size: 1.4rem;
    }
} 