* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 0;
    margin: 0;
}
body {
    overflow: hidden;
}
.item {
    font-size: 12px;
    padding: 7px;
    /* margin: 5px; */
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.3s;
    /* display: flex;
    justify-content: center; */
    /* 保持原有样式 */
    background-color: rgba(0, 0, 0, 0.2);
    transition: 
        background-color 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 新增动画关键帧 */
@keyframes itemFade {
    from { opacity: 0.5; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(5px);
    }
}

.item:hover {
    animation: slide 0.1s ease-in-out forwards;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.item_text {
    text-align: center;
    margin-top: 8px;
    /* width: 90%; */
    height: 0px;
    overflow-y: auto;
    transition: 1s;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    height: 50px;
    /*兼容ios 否则滑动不流畅*/
}
.item_c {
    width: 100%;
}
.item_text::-webkit-scrollbar {
    display: none;
}

.item_c ul {
    padding: 0;
    margin: 0;
    width: 100%;
    list-style: none;
    position: relative;
}


.itemu {
    height: 37px;
    padding-left: 10px;
    padding-right: 10px;
    display: grid;
    align-items: center;
    animation: itemFade 0.4s ease forwards;
    opacity: 0;
}

/* 在item.html的样式中添加 */
.night-mode .item:hover {
    background-color: #505050;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.night-mode ::-webkit-scrollbar-thumb {
    background: #666;
}

@media (hover: none) {
    .item:hover {
        transform: none !important;
    }
}