/* 遮罩层样式 - 更柔和的渐变效果 */
.mobile-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 37, 24, 0.3);
    z-index: 9998;
    display: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    /* backdrop-filter: blur(4px); */
}

/* 移动端导航菜单 - 现代卡片式设计 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0, 37, 24, 0.15);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    border-right: 1px solid rgba(0, 37, 24, 0.1);
}

.mobile-nav.show {
    transform: translateX(320px);
}

.mobile-nav-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
}

/* 头部区域 - 品牌展示 */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(0, 37, 24, 0.08);
    background: #fff;
}

.mobile-logo img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.mobile-menu-close {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #fff;
    background-color: rgba(0, 37, 24, 0.3);
}

.mobile-menu-close .layui-icon {
    font-size: 14px;
}

.mobile-menu-close:hover {
    background: rgba(0, 37, 24, 0.05);
    transform: rotate(90deg);
}

/* 导航菜单项 - 丝带灵感设计 */
.mobile-nav-menu {
    flex: 1;
    /* padding: 20px 0; */
}

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

/* 導航菜單項 - 添加底部邊框和active狀態 */
.mobile-nav-menu li {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 37, 24, 0.08);
    /* 添加底部邊框線 */
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
    /* 最後一項不加邊框 */
}

.mobile-nav-menu li a {
    display: flex;
    align-items: center;
    padding: 16px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

/* Active狀態樣式 */
.mobile-nav-menu li a.active {
    background: rgba(0, 37, 24, 1);
    color: #fff;
    /* padding-left: 28px;  */
    font-weight: 600;
}

.mobile-nav-menu li a.active::before {
    transform: translateX(0);
    /* 左側指示條顯示 */
}

.mobile-nav-menu li a.active i {
    color: #fff;
}

.mobile-nav-menu li a:hover {
    background: rgba(0, 37, 24, 0.03);
    color: #fff;
    padding-left: 30px;
}

/* 保持原有的before指示條樣式 */
.mobile-nav-menu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-menu li:hover::before,
.mobile-nav-menu li a.active::before {
    transform: translateX(0);
}

.mobile-nav-menu li a i {
    margin-right: 15px;
    font-size: 20px;
    color: var(--primary-color);
    min-width: 24px;
    text-align: center;
}

/* 语言切换区域 - 精致卡片设计 */
.mobile-language-section {
    padding: 20px;
    border-top: 1px solid rgba(0, 37, 24, 0.08);
    background: #fff;
    margin-top: auto;
}

.language-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-title i {
    margin-right: 10px;
    font-size: 20px;
}

.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-lang-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 37, 24, 0.03);
    border: 1px solid rgba(0, 37, 24, 0.1);
    text-decoration: none;
    /* 去除下划线 */
    outline: none;
    /* 去除焦点轮廓 */
    color: inherit;
    /* 继承父元素颜色 */
}

.mobile-lang-option:hover {
    background: rgba(0, 37, 24, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 37, 24, 0.05);
    text-decoration: none;
    /* 确保悬停时也没有下划线 */
    color: inherit;
    /* 继承父元素颜色 */
}

.mobile-lang-option:focus {
    outline: none;
    /* 去除焦点轮廓 */
}

.mobile-lang-option.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 37, 24, 0.15);
    text-decoration: none;
    /* 确保激活状态也没有下划线 */
}

.mobile-flag-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.mobile-lang-text {
    flex: 1;
    font-size: 15px;
}

.mobile-lang-check {
    color: #fff;
    font-weight: bold;
    display: none;
    font-size: 16px;
}

.mobile-lang-option.active .mobile-lang-check {
    display: inline;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .mobile-nav {
        width: 280px;
        left: -280px;
    }

    .mobile-nav.show {
        transform: translateX(280px);
    }

    .mobile-nav-menu li a {
        padding: 14px 20px;
    }
}