/* 重置和基础样式 */
 
/* 多语言切换器样式 */
.language-switcher {
 
    display: block;
	float: right;
	width: 10%;
	margin-top: 15px;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    user-select: none;
}

.language-current:hover {
    
    border-color: #0e181d;
}

.language-current i.fa-globe {
    color: #3498db;
    font-size: 18px;
}

.current-lang {
    font-size:14px;
    color: #fff;
}

.language-current .arrow {
    font-size: 12px;
    color: #fff;
    transition: transform 0.3s ease;
}

.language-switcher.active .arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.language-dropdown {
    position: absolute;
  /*  top: calc(100% + 5px); 
      min-width: 160px;
  */
    right: 0;
    background-color: #464947;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    
    overflow: hidden;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.language-option a:hover {
    
    color: #cc9900;
    
}

.language-option a.active {
    background-color: #464947;
    color: #cc9900;
  
}

/* 国旗图标 */
.flag-icon {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: cover;
    border-radius: 2px;
}

.flag-cn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Cpath fill='%23DE2910' d='M0 0h900v600H0z'/%3E%3Cpath fill='%23FFDE00' d='M242 300a58 58 0 1 1 116 0 58 58 0 0 1-116 0zm70 0a12 12 0 1 0 24 0 12 12 0 0 0-24 0z'/%3E%3Cpath fill='%23FFDE00' d='M284 257l14 42 44-34-27 40 14-42-27 40zm-24 62l14 42 44-34-27 40 14-42-27 40zm48 0l14 42 44-34-27 40 14-42-27 40zm-24 62l14 42 44-34-27 40 14-42-27 40z'/%3E%3C/svg%3E");
}

.flag-us {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1235 650'%3E%3Cpath fill='%23B22234' d='M0 0h1235v650H0z'/%3E%3Cpath fill='%23fff' d='M0 0h1235v50H0zm0 100h1235v50H0zm0 100h1235v50H0zm0 100h1235v50H0zm0 100h1235v50H0zm0 100h1235v50H0z'/%3E%3Cpath fill='%233C3B6E' d='M0 0h494v350H0z'/%3E%3Cpath fill='%23fff' d='M40 0h20v20H40zm80 0h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm-320 40h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm-320 40h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm-320 40h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm-320 40h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20zm80 0h20v20h-20z'/%3E%3C/svg%3E");
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .language-current .current-lang {
        display: none;
    }
    
    .language-current {
        padding: 8px 10px;
    }
    
    .language-dropdown {
        right: -10px;
    }
}

 

/* 关闭下拉菜单的覆盖层 */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.language-switcher.active ~ .dropdown-overlay {
    display: block;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-dropdown {
    animation: fadeIn 0.3s ease forwards;
}