/* Mobile Full Screen Menu Styles */
.mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: none; /* 不再使用透明度淡入 */
    overscroll-behavior: contain; /* 防止滚动链到页面 */
}

.mobile-fullscreen-menu .menu-content {
    background: white;
    width: 90vw;
    max-width: 99.503vw;
    height: 85vh;
    border-radius: 2.985vw;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2.488vw 7.463vw rgba(0, 0, 0, 0.3);
    transform-origin: top right; /* 从右上角放大 */
    will-change: transform; /* 性能优化 */
    animation: growTopRight 0.15s cubic-bezier(.22,1,.36,1); /* 增强动效曲线 */
    display: flex;               /* 新增：作为垂直布局容器 */
    flex-direction: column;      /* 新增：纵向排布 header + body */
    overscroll-behavior: contain; /* 防止滚动链到页面 */
}
.menu-body .appBox {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
    .menu-body .appBox .appImg {
        width: 37vw;
        height: 10.984vw;
        max-width: 150px;
        max-height: 45px;
    }
/* header: logo + close button in a row, space-between */
.mobile-fullscreen-menu .menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 9.701vw;
    padding-left: 3.980vw;
    padding-right: 24px;
}

.mobile-fullscreen-menu .menu-logo img {
    display: block;
    height: 32px; /* 32px -> 7.960vw */
}

/* keep absolute close-btn style lightweight: margin override for header layout */
.mobile-fullscreen-menu .close-button-container {
    display: none; /* header合并后不再需要 */
}

.mobile-fullscreen-menu .close-btn {
    background-color: transparent !important;
    color: inherit !important;
    min-width: 22px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: none !important;
}

.mobile-fullscreen-menu .close-btn:hover {
    background-color: transparent !important;
}
/* 新增：点击/聚焦态也保持透明 */
.mobile-fullscreen-menu .close-btn:active,
.mobile-fullscreen-menu .close-btn:focus,
.mobile-fullscreen-menu .close-btn:focus-visible {
    background-color: transparent !important;
    box-shadow: none !important;
}
/* 新增：覆盖按钮默认按压前景层（Masa/Vuetify按钮常用的::before覆盖层） */
.mobile-fullscreen-menu .close-btn::before {
    background-color: transparent !important;
}
/* 新增：禁用ripple容器（若存在）以避免点击态出现深色波纹背景 */
.mobile-fullscreen-menu .close-btn .m-ripple__container,
.mobile-fullscreen-menu .close-btn .v-ripple__container,
.mobile-fullscreen-menu .close-btn .m-ripple,
.mobile-fullscreen-menu .close-btn .v-ripple {
    display: none !important;
}

.mobile-fullscreen-menu .menu-body {
    /*padding: 14.67vw 5.970vw calc(5.970vw + env(safe-area-inset-bottom)) 5.970vw;*/ /* 顶部衔接 + 底部安全区 */
    padding: 60px 32px 20px 32px; /* 顶部衔接 + 底部安全区 */
    /* height: 100%;  移除固定高度，避免被父级裁切 */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* 新增：占据剩余空间 */
    min-height: 0; /* 新增：允许内部滚动不被父级高度限制 */
    -webkit-overflow-scrolling: touch; /* 新增：iOS 惯性滚动 */
    touch-action: pan-y; /* 允许竖向滚动 */
    overscroll-behavior: contain; /* 防止在顶/底部把滚动传递给body */
}

.mobile-fullscreen-menu .logo-section {
    display: none; /* 已移除至 header */
}

.mobile-fullscreen-menu .logo-section img {
    margin-bottom: 1.990vw;
}

.mobile-fullscreen-menu .logo-describe {
    font-size: 2.985vw;
    color: #666;
    line-height: 1.4;
}

.mobile-fullscreen-menu .nav-links {
    flex: 1;
    margin-bottom: 5.970vw;
}

.mobile-fullscreen-menu .nav-section {
    margin-bottom: 4.975vw;
}
.footer-map {
 padding:0;
}

.mobile-fullscreen-menu .nav-section.footer-map {
    width: 100%;
}

/* 使用与移动端footer一致的样式 */
.mobile-fullscreen-menu .map-title {
    color: #000 !important;
    font-family: "Samsung Sharp Sans Bold";
    font-size: 16px !important;
    font-style: normal;
    font-weight: 700;
    line-height: 24px !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    position: relative;
}

/* 下拉箭头样式 */
.mobile-fullscreen-menu .map-title::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #000;
    transition: transform 0.1s ease;
    margin-left: 1.990vw;
    flex-shrink: 0;
}

/* 展开状态的箭头 */
.mobile-fullscreen-menu .map-title.expanded::after {
    transform: rotate(180deg);
}

.mobile-fullscreen-menu .font-size-14 {
    color: #000;
    font-family: "Red Hat Display" !important;
    font-size: 3.483vw !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 4.975vw;
    width: 100%;
    transition: max-height 0.1s ease;
    overflow: hidden;
    text-align:left;
}

.mobile-fullscreen-menu .footer-map li {
    padding-left: 2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-fullscreen-menu .footer-map li a {
    font-family: "Red Hat Display";
    font-size: 3.233vw !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 6.716vw !important;
    text-transform: capitalize;
    color: rgba(0, 0, 0, .8) !important;
    text-align: left;
    text-decoration: none;
}

.mobile-fullscreen-menu .section-links {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
/*    margin-left: 3.980vw;*/
    transition: max-height 0.1s ease;
    overflow: hidden;
}

    .mobile-fullscreen-menu .section-links a {
        color: rgba(0, 0, 0, .8) !important;
        text-decoration: none;
        font-family: "Red Hat Display";
        font-size: 14px !important;
        font-style: normal;
        font-weight: 400 !important;
        line-height: 20px !important;
        text-transform: capitalize;
        padding: 0.5rem 0;
        transition: color 0.2s ease;
        width: 70%;
    }

.mobile-fullscreen-menu .section-links a:hover {
    color: #1976d2 !important;
}

.mobile-fullscreen-menu .section-content {
    margin-left: 3.980vw;
    transition: max-height 0.1s ease;
    overflow: hidden;
}

.mobile-fullscreen-menu .section-content {
    margin-left: unset !important;
}

.mobile-fullscreen-menu .location-info {
    font-family: "Red Hat Display";
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 4.975vw !important;
    color: rgba(0, 0, 0, .8) !important;
    text-align: left;
    padding: 1.493vw 0;
}

.mobile-fullscreen-menu .language-option {
    display: flex;
    align-items: center;
    gap: 1.990vw;
    padding: 6px 0;
    cursor: pointer;
    font-family: "Red Hat Display";
    font-size: 14px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 20px !important;
    color: rgba(0, 0, 0, .8) !important;
    text-align: left;
    transition: color 0.2s ease;
    margin-left: 12px;
}

.mobile-fullscreen-menu .language-option:hover {
    color: #1976d2 !important;
}

.mobile-fullscreen-menu .login-section {
    text-align: center;
    margin-bottom: 24px;
    margin-top: 49px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 2;
}

.mobile-fullscreen-menu .login-btn {
    width: 310px !important;
    height: 60px !important;
    font-size: 16px !important;
    border-radius: 14px;
    background-color: #2C008F !important;
    color: #FFF;
    font-family: "Red Hat Display" !important;
    font-style: normal;
    font-weight: 500;
    text-transform: capitalize;
}
.mobile-fullscreen-menu .startTrading-btn {
    width: 310px !important;
    height: 60px !important;
    border-radius: 14px;
    color: #4500E2;
    font-family: "Red Hat Display" !important;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 500 !important;
    text-transform: capitalize;
    background-color: transparent;
    border: 1px solid #4500E2;
}

.mobile-fullscreen-menu .social-section {
    display: flex;
    justify-content: center;
    gap: 48px;
}

    .mobile-fullscreen-menu .social-section img {
        width: 27px;
        height: 27px;
        transition: opacity 0.2s ease;
    }

.mobile-fullscreen-menu .social-section img:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes growTopRight {
    from {
        transform-origin: top right;
        transform: translate(8vw, -8vw) scale(0.85);
    }
    to {
        transform-origin: top right;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: scale(0.9) translateY(-4.975vw);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-fullscreen-menu .menu-content {
        width: 90vw;
        height: 90vh;
    }
    
    .mobile-fullscreen-menu .menu-body {
        padding: 12.438vw 4.975vw 4.975vw 4.975vw;
    }
}

/* Only show on mobile devices */
@media (min-width: 959px) {
    .mobile-fullscreen-menu {
        display: none !important;
    }
}
.mobile-fullscreen-menu .close-btn .v-icon {
    font-size: 2.985vw !important; /* ≈12px */
    line-height: 1;
    color: #2F3A44 !important;
}

.mobile-fullscreen-menu .close-btn img {
 height:100%;
 width:100%;
}
/* Lock background scroll when menu opens */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh; /* 防止iOS地址栏造成页面滚动 */
    position: fixed;
    width: 100%;
}

/* 覆盖并修正：允许在遮罩内进行垂直滚动（滚动锁已由JS处理） */
.mobile-fullscreen-menu {
    touch-action: auto; /* 允许默认滚动/缩放手势，避免阻断内层滚动 */
}

.nav-bar-section-title {
    text-align: left;
    color: #000 !important;
    font-family: Samsung Sharp Sans Bold;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 700;
    line-height: 24px !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    position: relative;
}

#mobile-startTrading-btn {
    background-color: transparent !important;
}




/* 移动端安全区域适配 - 解决按钮被地址栏覆盖问题 */
@media only screen and (max-width: 959px) {
    /* 为移动设备添加安全区域内边距 */
    body {
        padding-bottom: env(safe-area-inset-bottom, 20px);
        padding-top: env(safe-area-inset-top, 20px);
    }

    /* 确保主要内容区域不被遮挡 */
    .m-application__wrap {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* 为底部按钮容器添加安全间距 */
    .appBoxFooter,
    .appBox {
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px);
        margin-bottom: env(safe-area-inset-bottom, 20px);
    }

    /* 下载按钮容器添加底部安全间距 */
    .download-btn-container {
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 30px);
    }

    /* 确保页面底部有足够空间 */
    .homePage5,
    .homePage4,
    .homePage3,
    .homePage2,
    .homePage1 {
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 40px);
    }

    /* 为底部固定元素添加安全区域 */
    .footer-content,
    .copyrightBox {
        padding-bottom: env(safe-area-inset-bottom, 15px);
    }

    /* 移动端按钮容器安全间距 */
    .goInputBox-mobile {
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 25px);
    }

    /* 确保滚动容器底部有足够空间 */
    .m-main {
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 60px);
    }

    /* 处理iOS Safari等浏览器的特殊需求 */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .m-application__wrap {
            padding-bottom: env(safe-area-inset-bottom);
        }

        .appBoxFooter .download-btn {
            margin-bottom: env(safe-area-inset-bottom);
        }
    }

    /* 处理Android Chrome等浏览器 */
    @supports (padding-bottom: constant(safe-area-inset-bottom)) {
        body {
            padding-bottom: constant(safe-area-inset-bottom);
        }
    }

    /* 确保视口单位计算正确 */
    html {
        height: -webkit-fill-available;
    }

    /* 为底部按钮添加额外间距 */
    .startAndDownloadInputBox {
        padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 20px));
    }

    /* 页脚安全区域 */
    .website-shared .footer-content {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
    }
}

/* 隐藏非折叠页脚标题下拉箭头的CSS规则 */
.footer-map .map-title.no-collapse {
    cursor: default;
}

    .footer-map .map-title.no-collapse::after {
        display: none !important;
        content: none !important;
    }

/* 额外的移动端安全区域样式 */
@media only screen and (max-width: 959px) {
    /* 处理不同浏览器的视口高度计算差异 */
    .m-application {
        min-height: 100vh;
        min-height: 100svh; /* 标准视口单位 */
        min-height: 100lvh; /* 大视口单位 */
        min-height: 100dvh; /* 动态视口单位 */
    }

    /* 为底部内容添加额外空间 */
    .page-container {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    /* 确保按钮不被遮挡 */
    .action-buttons-container {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
    }
}

@media only screen and (min-width: 769px) and (max-width: 959px) {
    .mobile-fullscreen-menu .menu-header {
        padding-right: 34px !important;
    }
}
   