/* 基础页面样式 - 从旧的lang-switcher.css中提取的必要样式 */
/* 注意：避免覆盖LayUI的基础样式 */

/* 防止页面水平溢出 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 针对登录页面的特殊处理 */
.login-page .shop-title {
    position: absolute;
    left: 24px;
    top: 24px;
    right: 80px; /* 给语言切换器留出空间 */
    font-size: 16px;
    color: #008489;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 132, 137, 0.2);
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .login-page .shop-title {
        left: 16px;
        top: 16px;
        right: 70px;
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* 美化动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用显示动画 */
.show {
    animation: fadeInUp 0.3s ease-out;
}

/* 兼容旧版语言切换器样式（避免页面错乱） */
.lang-switcher-legacy {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 132, 137, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher-legacy:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #008489;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 80, 0, 0.3);
}

.lang-switcher-legacy .globe-icon {
    font-size: 24px;
    color: #008489;
    transition: transform 0.3s ease;
}

.lang-switcher-legacy:hover .globe-icon {
    transform: rotate(15deg);
}

/* 简洁的语言切换器样式 */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-switcher:hover {
    border-color: #1677FF;
    color: #1677FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lang-switcher-legacy {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    .lang-switcher-legacy .globe-icon {
        font-size: 20px;
    }
    
    .lang-switcher {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
