/* Unified transparent auth buttons, identical to li_scann_ai */
.head .r .hd-nav .auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.head .r .hd-nav .auth-buttons .auth-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    line-height: 1;
    box-shadow: none;
    transform: none;
}

.head .r .hd-nav .auth-buttons .auth-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

/* Neutralize generic nav hover effects for auth buttons explicitly */
.hd-nav li.auth-buttons:hover > a {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #fff !important;
}

.hd-nav li.auth-buttons > a::before,
.hd-nav li.auth-buttons > a::after {
    width: 0 !important;
    height: 0 !important;
}

/* Language switcher unified styles */
.hd-nav .lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap; /* keep 中文/EN on one line */
}

.hd-nav .lang-switcher .lang-option {
    color: #fff;
    opacity: 0.7;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hd-nav .lang-switcher .lang-option.active,
.hd-nav li.lang-switcher .lang-option.active {
    opacity: 1 !important;
    color: #4facfe !important;
    border: 0;
    background: transparent;
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
}

.hd-nav .lang-switcher .lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.hd-nav .lang-switcher .lang-sep {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1500px) {
    .hd-nav .lang-switcher .lang-option {
        padding: 5px 6px
    }
}


/* Fix: default nav sets li > a as block; keep language anchors inline */
.hd-nav li.lang-switcher > a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    height: auto;
    padding: 4px 6px
}

.hd-nav li.lang-switcher > a::before,
.hd-nav li.lang-switcher > a::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important
}

.hd-nav li.lang-switcher:hover > a {
    transform: none !important;
    text-shadow: none !important
}
