/* 语言选择器和登录按钮样式 */
.language-selector-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.lang-selector {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    border-bottom: 1px solid #eee;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f5f5f5;
    color: #333;
}

.login-btn {
    background: #fff;
    color: #333;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-selector-wrapper {
        margin-right: 10px;
    }
    
    .login-btn {
        margin-right: 10px;
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .lang-selector {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 70px;
    }
}

/* 深色主题下的样式调整 */
.navbar-area .other-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-area .other-option .nav-call-btn {
    margin: 0;
}

/* 确保隐藏的other-option不影响布局 */
.navbar-area .other-option[style*="display: none"] {
    display: none !important;
    width: 0;
    margin: 0;
    padding: 0;
}

/* 导航栏滚动时的样式调整 */
.navbar-area.is-sticky .lang-selector {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
}

.navbar-area.is-sticky .lang-selector:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

.navbar-area.is-sticky .login-btn {
    background: #333;
    color: #fff;
}

.navbar-area.is-sticky .login-btn:hover {
    background: #000;
    color: #fff;
}

