html{
    --UI-color: rgba(0, 0, 0, .85);
    --text-color: #333;
    --text-light: #fff;
    --accent-color: #ffffff;
    --transition: all 0.25s ease;
}

html,body,*{
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: initial;
    user-select: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mask-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 95;
    background: transparent;
    width: 100vw;
    transition: all .5s;
}

.mask-wrap.show{
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.logo-comp{
    position: fixed;
    height: 55px;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    transition: all 0.3s;
}

.mask-wrap.dark .logo-comp{
    background-color: rgba(36, 35, 36, .5);
    backdrop-filter: blur(10px);
    transition: all 0.5s;
}

.logo-comp.dark{
    color: #262626;
}

.logo-comp.transparent{
    background: transparent;
}

.logo-comp.border::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: hsla(0, 0%, 100%, .1);
}

.logo-wrap{
    height: 55px;
    display: flex;
    align-items: center;
}

.logo-wrap .logo{
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo-wrap .logo img{
    width: 100px;
}

.logo-comp .menu-btn .line{
    display: block;
    height: 2px;
    background: #fff;
    width: 18px;
    margin: 4px;
    transform-origin: 17%;
    transition: all 0.5s;
}

.logo-comp .menu-btn.open .line:nth-child(1) {
    transform-origin: 10% 50%;
    transform: rotate(45deg);
}

.logo-comp .menu-btn.open .line:nth-child(2) {
    opacity: 0;
}

.logo-comp .menu-btn.open .line:nth-child(3) {
    transform-origin: 10% 50%;
    transform: rotate(-45deg);
}

.nav-wrap{
    margin-top: 70px;
    padding-bottom: 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: calc(100vh - 70px);
    z-index: 98;
    display: none;
}

.nav-wrap.show{
    display: block;
}

.nav-wrap-content{
    height: 100%;
    width: 100%;
    overflow-y: auto;
}

.nav-wrap .nav-item{
    min-height: 60px;
    width: 100%;
    position: relative;
}

.nav-wrap .nav-item .nav-label{
    flex: 1;
    color: #c8c9d1;
    font-size: 15px;
    opacity: .8;
    width: 100%;
    height: 60px;
    line-height: 60px;
    text-align: center;
    position: relative;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-wrap .nav-item .nav-label:before {
    position: absolute;
    left: 35%;
    box-sizing: border-box;
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border-width: 2px !important;
    top: 24px;
    transition: all 0.3s;
}

.nav-wrap .nav-item .sub-navs-wrap{
    position: relative;
    flex-shrink: 0;
    height: 1px;
    min-width: 90px;
    z-index: 99;
}

.nav-wrap .nav-item .sub-navs{
    display: none;
    padding-top: 0;
}

.nav-wrap .nav-item.selected .nav-label{
    opacity: 1;
    color: #fff;
}

.nav-wrap .nav-item.selected .nav-label:before {
    border: 2px solid var(--accent-color);
}

.nav-wrap .nav-item .sub-navs .sub-nav-item{
    margin-bottom: 0;
    transition: all 0.3s;
}

.nav-wrap .nav-item .sub-navs .sub-nav-item .sub-nav-item-label {
    white-space: nowrap;
    display: block;
    line-height: 1.5;
    font-size: 14px;
    padding: 12px 0;
    color: #8a8b95;
    text-align: center;
    transition: all 0.3s;
}

.nav-wrap .nav-item.selected .sub-navs-wrap {
    height: auto;
}

.nav-wrap .nav-item.selected .sub-navs {
    display: block;
}

ul,ol{
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-wrap .nav-item.selected .sub-navs .sub-nav-item.selected {
    background-color: hsla(0, 0%, 100%, .08);
}

.nav-wrap .nav-item.selected .sub-navs .sub-nav-item.selected .sub-nav-item-label{
    color: #f6f7ff;
}

/* 语言切换按钮样式 */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.logo-comp.dark .lang-btn {
    background-color: rgba(0, 0, 0, 0.1);
}

.lang-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0 5px;
    transition: all 0.3s ease;
    position: relative;
}

.lang-item.active {
    color: #ffffff;
    font-weight: 600;
}

.lang-item.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
}

.logo-comp.dark .lang-item {
    color: #262626;
}

.logo-comp.dark .lang-item.active {
    color: #000000;
}

.logo-comp.dark .lang-item.active::after {
    background-color: #000000;
}

.lang-item:hover {
    color: #f6f7ff;
    transform: scale(1.05);
}

.logo-comp.dark .lang-item:hover {
    color: #000;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    font-size: 12px;
}

.logo-comp.dark .lang-divider {
    color: rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .lang-btn {
        padding: 3px 10px;
    }
    
    .lang-item {
        font-size: 12px;
    }
}