/**
 * 搜索框右侧操作按钮样式
 * Search Box Right Actions Styles
 */

/* 主容器 */
.search-right-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* 操作列表 */
.search-right-actions .action-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* 操作项 */
.search-right-actions .action-item {
    margin: 0;
    padding: 0;
    position: relative;
}

/* 操作链接 */
.search-right-actions .action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 8px;
    text-decoration: none;
    color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.search-right-actions .action-link:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
    transform: translateY(-2px);
}

/* 图标样式 */
.search-right-actions .action-link i.iconfont {
    font-size: 22px;
    line-height: 1;
}

/* 购物车徽章 */
.search-right-actions .action-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* 语言切换下拉菜单 */
.search-right-actions .lang-switch-dropdown {
    position: relative;
}

.search-right-actions .lang-switch-dropdown .am-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    padding: 0 12px;
    gap: 6px;
}

.search-right-actions .lang-switch-dropdown .lang-current {
    font-size: 13px;
    white-space: nowrap;
}

.search-right-actions .lang-switch-dropdown .lang-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.search-right-actions .lang-switch-dropdown[data-am-dropdown="open"] .lang-arrow {
    transform: rotate(180deg);
}

/* 语言下拉菜单 */
.search-right-actions .lang-dropdown-menu {
    min-width: 120px;
    padding: 5px 0;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-right-actions .lang-dropdown-menu li {
    margin: 0;
}

.search-right-actions .lang-dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.search-right-actions .lang-dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.search-right-actions .lang-dropdown-menu li a.active {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    font-weight: 600;
}

/* 不同功能的特殊样式 */
.search-right-actions .cart-item .action-link:hover {
    color: #e74c3c;
}

.search-right-actions .favor-item .action-link:hover {
    color: #ff6b9d;
}

.search-right-actions .user-item .action-link:hover {
    color: #4facfe;
}

.search-right-actions .lang-item .action-link:hover {
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .search-right-actions .action-link {
        width: 40px;
        height: 40px;
        margin: 0 5px;
    }
    
    .search-right-actions .action-link i.iconfont {
        font-size: 20px;
    }
    
    .search-right-actions .lang-switch-dropdown .lang-current {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .search-right-actions {
        position: static;
        transform: none;
        margin-top: 10px;
        width: 100%;
    }
    
    .search-right-actions .action-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-right-actions .action-item {
        flex: 0 0 auto;
    }
}

/* 登录提示样式 */
.search-right-actions .action-link.login-event {
    cursor: pointer;
}

/* 图标备用方案 - 如果iconfont不存在，使用Font Awesome */
.search-right-actions .action-link i.iconfont.icon-cart:not([class*="icon-"])::before,
.search-right-actions .action-link i.am-icon-shopping-cart::before {
    content: "\f07a"; /* Font Awesome购物车 */
}

.search-right-actions .action-link i.iconfont.icon-star:not([class*="icon-"])::before,
.search-right-actions .action-link i.am-icon-star::before {
    content: "\f005"; /* Font Awesome星星 */
}

.search-right-actions .action-link i.iconfont.icon-user-circle:not([class*="icon-"])::before,
.search-right-actions .action-link i.am-icon-user::before {
    content: "\f007"; /* Font Awesome用户 */
}

.search-right-actions .action-link i.iconfont.icon-language-global:not([class*="icon-"])::before,
.search-right-actions .action-link i.am-icon-globe::before {
    content: "\f0ac"; /* Font Awesome地球 */
}

/* 如果没有iconfont，使用Font Awesome备用 */
.search-right-actions .action-link i.am-icon:before,
.search-right-actions .action-link i.fa:before {
    font-size: 22px;
}

/* 购物车项特殊处理 */
.search-right-actions .cart-item .action-link {
    position: relative;
}

/* 动画效果 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.search-right-actions .action-link:hover i {
    animation: bounce 0.5s ease;
}

/* 徽章动画 */
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.search-right-actions .action-badge {
    animation: badgePulse 0.3s ease;
}

