.top-navbar {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.navbar-logo {
    width: 1.2rem;
    height: 1.2rem;
}

.switch-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.25rem;
    position: relative;
    z-index: 11;
}

.button-text {
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #ffffff;
}

.arrow-image {
    width: 0.65rem;
    height: 0.65rem;
    transition: transform 0.3s ease;
}

.arrow-image.up {
    transform: rotate(180deg);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 新增：语言切换容器，用于定位下拉菜单 */
.lang-switch-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* 新增：地球图标样式 */
.globe-icon {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* 下拉菜单通用样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(50, 50, 50, 0.9);
    border: 0.025rem solid rgba(255, 255, 255, 0.2);
    border-radius: 0.2rem;
    padding: 0.25rem 0;
    margin-top: 0.2rem;
    min-width: 3.75rem;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.page-dropdown {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 5rem;
}

.lang-dropdown {
    top: 100%;
    right: 0;
}

.dropdown-item {
    padding: 0.375rem 0.625rem;
    color: #fff;
    font-size: 0.65rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
