.submenu-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px; /* 不覆盖底部菜单 */
   /** background-color: rgba(0, 0, 0, 0.8);**/
    background: linear-gradient(90deg, #775fd9, #c24491);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    margin-bottom: 20px
}

.submenu-container.active {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

.submenu-item {
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    margin: 10px 0;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.submenu-container.active .submenu-item {
    animation: slideUp 0.5s ease forwards;
}

.submenu-container.active .submenu-item:nth-child(1) { animation-delay: 0.1s; }
.submenu-container.active .submenu-item:nth-child(2) { animation-delay: 0.2s; }
.submenu-container.active .submenu-item:nth-child(3) { animation-delay: 0.3s; }
.submenu-container.active .submenu-item:nth-child(4) { animation-delay: 0.4s; }
.submenu-container.active .submenu-item:nth-child(5) { animation-delay: 0.5s; }

.submenu-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.submenu-info {
    flex: 1;
}

.submenu-info h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.submenu-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 适配手机屏幕 */
@media (max-width: 480px) {
    .submenu-item {
        width: 95%;
        padding: 10px;
    }
    
    .submenu-info h3 {
        font-size: 16px;
    }
    
    .submenu-info p {
        font-size: 12px;
    }
}