/* 移动端页眉样式 */
@media screen and (max-width: 768px) {
    .desktop-header {
        display: none; /* 隐藏PC端页眉 */
    }

    .mobile-header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 90px;
        z-index: 9999;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        background: #ffffff;  /* 改为纯白色 */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);  /* 添加阴影效果 */
        transition: all 0.3s ease;
    }

    .mobile-nav {
        position: fixed;
        top: 90px;
        right: -33.33%;  /* 改回原来的1/3宽度 */
        width: 33.33%;   /* 设置为1/3宽度 */
        height: calc(100vh - 90px);
        background: rgba(255, 255, 255, 0.98);
        transition: all 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .mobile-nav.active {
        right: 0;
        visibility: visible;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 20px 0;
        margin: 0;
    }

    .mobile-nav-item {
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-link {
        display: block;
        padding: 15px 25px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .mobile-logo {
        height: 40px;
    }

    .mobile-logo img {
        height: 100%;
        width: auto;
    }

    .mobile-nav.active {
        right: 0; /* 激活时位置改为右侧0 */
        left: auto; /* 清除之前的left属性 */
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-item {
        border-bottom: 1px solid #eee;
        text-shadow: none !important;  /* 为菜单项移除文字阴影 */
    }

    .mobile-nav-link {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s ease;
        text-shadow: none !important;  /* 为链接文字移除阴影 */
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        color: var(--primary-color);
        background: #fff5eb;
    }

    .mobile-toggle {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--primary-color);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .mobile-toggle span:nth-child(1) {
        top: 0;
    }

    .mobile-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-toggle span:nth-child(3) {
        bottom: 0;
    }

    .mobile-toggle:hover span {
        background: #ff8533;
    }

    .mobile-toggle.active span {
        background: var(--primary-color);
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 11px;
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 11px;
    }
}

@media screen and (min-width: 769px) {
    .mobile-header,
    .mobile-nav {
        display: none; /* 在PC端隐藏移动端页眉 */
    }
}


/* 移动端语言切换 */
.mobile-lang {
    margin-right: 15px;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 2px;
}

.mobile-lang .lang-item {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-switcher:not(.mobile-lang) {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-lang {
        display: none;
    }
}