/* 未登录页面语言切换按钮样式 */
.guest-language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.guest-lang-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 78, 121, 0.2);
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 120px;
    justify-content: center;
}

.guest-lang-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #ff4e79;
    box-shadow: 0 6px 30px rgba(255, 78, 121, 0.15);
    transform: translateY(-2px);
}

.guest-lang-toggle .lang-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff4e79 0%, #a259ff 100%);
    flex-shrink: 0;
}

.guest-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 78, 121, 0.1);
}

.guest-lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guest-lang-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid rgba(255, 78, 121, 0.1);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.guest-lang-option {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.guest-lang-option:last-child {
    border-bottom: none;
}

.guest-lang-option:hover {
    background: linear-gradient(135deg, rgba(255, 78, 121, 0.05) 0%, rgba(162, 89, 255, 0.05) 100%);
    padding-left: 22px;
}

.guest-lang-option.active {
    background: linear-gradient(135deg, rgba(255, 78, 121, 0.1) 0%, rgba(162, 89, 255, 0.1) 100%);
    color: #ff4e79;
    font-weight: 600;
}

.guest-lang-option.active:hover {
    background: linear-gradient(135deg, rgba(255, 78, 121, 0.15) 0%, rgba(162, 89, 255, 0.15) 100%);
}

.guest-lang-option .flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flag-cn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.flag-en {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.flag-tw {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .guest-language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .guest-lang-toggle {
        padding: 8px 14px;
        font-size: 13px;
        min-width: 100px;
        gap: 8px;
    }
    
    .guest-lang-toggle .lang-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .guest-lang-dropdown {
        min-width: 160px;
        margin-top: 10px;
    }
    
    .guest-lang-dropdown::before {
        right: 15px;
    }
    
    .guest-lang-option {
        padding: 12px 16px;
        font-size: 13px;
        gap: 10px;
    }
    
    .guest-lang-option:hover {
        padding-left: 20px;
    }
    
    .guest-lang-option .flag-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}
