/**
 * Milano Eyes Fashion Reward - 下拉菜单样式
 * 黑金风格设计
 * 包含用户菜单和登出选项
 */

/* 下拉菜单容器 */
.login-btn, .user-dropdown {
    position: relative;
}

.login-btn.has-dropdown:hover .account-dropdown,
.user-dropdown:hover .user-dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background-color: #1E1E1E;
    border: 1px solid #D4AF37;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
    margin-top: 5px;
    overflow: hidden;
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    border-bottom: 1px solid #333;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #2A2A2A;
    color: #D4AF37;
}

.dropdown-menu i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: #333;
    margin: 0;
}

/* 添加箭头指示器 */
.login-btn.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.login-btn.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* 下拉菜单动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .account-dropdown {
        position: static;
        width: 100%;
        margin-top: 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
        background-color: #222;
    }
    
    .login-btn.has-dropdown:hover .account-dropdown {
        animation: none;
    }
    
    .login-btn.has-dropdown {
        display: block;
        width: 100%;
    }
    
    .dropdown-menu a {
        padding: 15px;
        padding-left: 30px;
    }
    
    /* 移动端菜单项高亮 */
    .dropdown-menu a:active {
        background-color: #D4AF37;
        color: #1A1A1A;
    }
}
