/**
 * 语言切换按钮样式
 */

/* 页面内容区域 - 为顶部栏和主头部留出空间 */
body {
    padding-top: 0px; /* top-bar(40px) + header(95px) = 135px */
}

/* 顶部栏 - 放在页面最顶部，固定定位 */
.top-bar {
    height: 40px;
    background: #f8f8f8 !important;
    border-bottom: 1px solid #ebeff1;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 9999 !important; /* 最高层级 */
    min-width: 1300px;
    display: block !important;
    visibility: visible !important;
}

.top-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 10000; /* 确保内容在 top-bar 内的层级 */
}

/* 左侧联系方式 */
.top-contact {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.top-contact img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 右侧语言切换 */
.top-lang-switch {
    display: flex;
    align-items: center;
}

.top-lang-switch .lang-nav {
    height: 40px;
    position: relative;
    width: 100px;
    border-left: 1px solid #ebeff1;
    border-right: 1px solid #ebeff1;
}

.top-lang-switch .lang-btn {
    width: 100%;
    height: 40px;
    font-size: 13px !important;
    display: block;
    position: relative;
    color: #333333 !important;
    cursor: pointer;
    overflow: visible;
    text-align: center;
    line-height: 40px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0; /* 移除额外的内边距 */
}

.top-lang-switch:hover .lang-btn,
.top-lang-switch .lang-btn:hover {
    background: #26439c;
    color: #fff !important;
}

/* 原来的头部样式保持不变 */
.lang-switch-wrapper {
    float: left;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* 语言切换导航容器 */
.lang-nav {
    height: 40px; /* 降低高度 */
    position: relative;
    width: 100px;
    border-left: 1px solid #ebeff1;
    border-right: 1px solid #ebeff1;
}

/* 语言切换链接 */
.lang-nav .lang-btn {
    width: 100%;
    height: 40px; /* 降低高度 */
    padding-top: 0; /* 移除顶部内边距 */
    font-size: 15px !important;
    display: block;
    position: relative;
    color: #333333 !important;
    cursor: pointer;
    overflow: visible;
    text-align: center;
    line-height: 40px; /* 垂直居中 */
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 悬停效果 */
.lang-nav:hover .lang-btn,
.lang-nav .lang-btn:hover {
    background: #26439c;
    color: #fff !important;
}

/* 响应式调整 - 优化不同屏幕尺寸 */
@media (max-width: 768px) {
    .lang-switch-wrapper {
        float: none;
        display: inline-block;
        margin: 0 10px;
    }
    
    .lang-nav {
        width: auto !important;
        border: none;
    }
    
    .lang-nav .lang-btn {
        width: auto;
        padding: 8px 12px;
        font-size: 14px !important;
        border: 2px solid #0066cc;
        border-radius: 4px;
        background: #fff;
        height: auto;
        line-height: normal;
    }
}
