html, body {

    overflow-x: hidden;
    width: 100%;
  }
  

/* 调整移动端底部工具栏与页脚的关系 */
@media (max-width: 768px) {
    .float-toolbar.d-md-none {
        padding-bottom: env(safe-area-inset-bottom, 5px); /* 支持iPhone底部安全区域 */
    }
    
    .mobile-booking-btn {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px)); /* 考虑底部安全区域 */
    }
    
    :root {
        --accent-rgb: 255, 87, 34; /* 对应#FF5722 (橙色)，或根据实际强调色调整 */
    }
    
    .footer-wave {
        display: block; /* 在移动端显示 */
    }
}

/* 触摸设备表单元素优化 */
@media (pointer: coarse) {
    .form-control, select, button, .btn, a.btn, input[type="checkbox"], input[type="radio"] {
        font-size: 16px !important; /* 避免iOS自动缩放 */
    }
    
    input[type="checkbox"], input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    
    label {
        display: inline-block;
        margin-bottom: 0.5rem;
        font-size: 16px;
        padding: 5px 0;
    }
}

/* 高屏幕手机优化间距 */
@media (min-height: 700px) and (max-width: 576px) {
    .services-section {
        padding: 1.5rem 0;
    }
    
    .why-choose-us {
        padding: 1.5rem 0;
    }
}


@media (max-width: 576px) {
    .footer-nav-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* 整体页面优化 */
    body {
        scroll-behavior: smooth;
        overscroll-behavior: none; /* 减少过度滚动效果 */
        -webkit-overflow-scrolling: touch; /* 增强iOS滚动体验 */
    }
    
    /* 主内容区域 - 为顶部固定导航留出空间 */
    /* .main-content {
        padding-top: 140px;
    } */
    
    /* 移动端图标加载优化 */
    i[class^="bi-"] {
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* 移动端顶部导航样式增强 */
    .mobile-logo-container {
        padding: 6px 15px;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1060;
    }
    
    .mobile-logo-container:active {
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-logo-container img {
        height: 36px;
        transition: transform 0.3s ease;
    }
    
    .mobile-logo-container img:active {
        transform: scale(0.95);
    }
    
    /* 社交图标栏优化 */
    .mobile-social-icons {
        gap: 18px;
        padding: 8px 0;
        background: linear-gradient(to right, #f8f9fa, #fff, #f8f9fa);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-left: 15px;
        padding-right: 15px;
        justify-content: flex-start;
        position: fixed;
        top: 52px; /* 移动端logo区域高度 */
        left: 0;
        right: 0;
        z-index: 1059;
    }
    .container img:hover {
        transform: scale(1.2);
        margin-bottom: 10px;
    }

    .mobile-social-icons::-webkit-scrollbar {
        display: none;
    }
    
    .social-icon-mobile {
        flex-shrink: 0;
        transform: translateZ(0); /* 启用GPU加速 */
    }
    
    /* 移动端语言切换器美化 */
    .mobile-lang-switcher {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        border-radius: 10px 0 0 10px;
        overflow: hidden;
        top: 40%;
    }
    
    .mobile-lang-switcher .btn {
        transition: all 0.25s ease;
    }
    
    .mobile-lang-switcher .btn:active {
        transform: scale(0.95);
        background-color: rgba(142, 67, 231, 0.1);
    }
    
    .mobile-lang-text {
        font-size: 0.85rem;
        margin-left: 5px;
    }

    .mobile-logo-container img {
        height: 40px;
        margin-right: 10px;
        will-change: transform; /* 性能优化，提示浏览器可能有变换 */
    }

    .mobile-logo-container .navbar-brand {
        font-size: 0.9rem;
        margin: 0;
        padding: 8px;
        line-height: 1.2;
        font-weight: 600;
        color: #333;
    }

    .mobile-social-icons {
        display: flex;
        justify-content: center;
        gap: 9px;
        padding: 8px 0;
        background-color: white;
        margin: 0;
        border-bottom: 1px solid #eee;
        z-index: 1050;
    }

    .social-icon-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        will-change: transform; /* 性能优化 */
    }

    .social-icon-mobile i {
        font-size: 1rem;
    }

    .social-icon-mobile img {
        width: 18px;
        height: 18px;
    }

    .social-icon-mobile:hover, 
    .social-icon-mobile:active {
        transform: translateY(-3px);
        color: #fff;
        opacity: 0.9;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    /* 各平台特定颜色 */
    .social-icon-mobile.facebook { background-color: #3b5998; }
    .social-icon-mobile.twitter, .social-icon-mobile.twitter-x { background-color: #000000; }
    .social-icon-mobile.instagram { background-color: #e1306c; }
    .social-icon-mobile.youtube { background-color: #ff0000; }
    .social-icon-mobile.linkedin { background-color: #0077b5; }
    .social-icon-mobile.pinterest { background-color: #bd081c; }
    .social-icon-mobile.snapchat { background-color: #fffc00; }
    .social-icon-mobile.tiktok { background-color: #000000; }
    .social-icon-mobile.whatsapp { background-color: #25d366; }
    .social-icon-mobile.telegram { background-color: #0088cc; }
    .social-icon-mobile.line { background-color: #00c300; }
    .social-icon-mobile.wechat { background-color: #7bb32e; }
    .social-icon-mobile.weibo { background-color: #e6162d; }
    .social-icon-mobile.xiaohongshu { background-color: #fe2c55; }
    .social-icon-mobile.reddit { background-color: #ff4500; }
    .social-icon-mobile.discord { background-color: #5865f2; }
    .social-icon-mobile.twitch { background-color: #6441a5; }
    .social-icon-mobile.github { background-color: #333333; }
    .social-icon-mobile.custom { background-color: #555555; }
    
    /* 登录注册按钮 */
    .mobile-auth-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 8px 0;
        background-color: #fff;
        margin: 0;
        position: fixed;
        top: 96px; /* logo + 社交图标的高度 */
        left: 0;
        right: 0;
        z-index: 1058;
    }
    
    .mobile-auth-buttons .btn {
        padding: 5px 12px;
        font-size: 0.85rem;
        border-radius: 4px;
    }
    
    .mobile-auth-buttons .btn-primary {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    /* 导航菜单按钮 - 绝对定位到右上角 */
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 1050;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* 语言切换按钮 - 固定在右侧 */
    .mobile-lang-switcher {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1050;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 8px 2px 8px 8px;
        backdrop-filter: blur(5px); /* 毛玻璃效果，增强UI */
    }

    .mobile-lang-switcher .btn {
        padding: 8px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: var(--primary-light);
    }

    .mobile-lang-switcher .btn:focus {
        box-shadow: none;
    }

    .mobile-lang-switcher .dropdown-menu {
        min-width: 140px;
        font-size: 0.9rem;
        margin-top: 5px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        border: none;
        right: auto;
        left: -140px !important;
        top: 0 !important;
    }
    
    /* 移动端标题栏 */
    .mobile-section-header {
        background-color: var(--primary);
        color: white;
        padding: 15px 0;
        margin: 0 0 20px 0; /* 增加底部间距 */
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .mobile-section-header h2 {
        font-size: 1.1rem;
        margin: 0;
        font-weight: 600;
        text-align: center;
        letter-spacing: 0.5px;
    }

    /* 浮动工具栏样式 */
    .float-toolbar.d-md-none {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to right, var(--primary-dark), var(--primary)); /* 使用与页脚相协调的渐变背景 */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        display: flex;
        justify-content: space-around;
        align-items: center;
        /* padding-bottom: 8px; */
        z-index: 1050; /* 提高z-index，确保高于在线客服按钮 */
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* 添加一个顶部细边框 */
    }
    
    .float-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white; /* 改为白色 */
        text-decoration: none;
        font-size: 0.75rem;
        transition: color 0.3s ease;
        position: relative;
        flex: 1;
        padding: 5px 0 10px;
    }
    
    .float-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: white; /* 改为白色 */
        transition: width 0.3s ease;
    }
    
    .float-btn.active::before {
        width: 70%;
        background-color: rgba(255, 255, 255, 0.8); /* 稍微半透明的白色 */
        height: 3px; /* 增加高度使其更明显 */
        border-radius: 3px; /* 添加圆角 */
    }
    
    .float-btn.active {
        background-color: rgba(255, 255, 255, 0.15); /* 添加微弱的背景色 */
    }
    
    .float-btn.active i {
        color: white; /* 改为白色 */
        transform: translateY(-2px); /* 轻微上移效果 */
    }
    
    .float-btn i {
        font-size: 1.1rem;
        margin-bottom: 3px;
        transition: transform 0.2s ease;
        color: white; /* 改为白色 */
    }
    
    .float-btn:active i {
        transform: scale(0.9);
    }
    
    .float-btn span {
        font-size: 0.65rem;
        font-weight: 500;
        white-space: nowrap;
        transition: transform 0.2s ease;
        color: white; /* 改为白色 */
    }
    
    .float-btn.active span {
        color: white; /* 改为白色 */
    }

    /* 移动端预订咨询按钮 */
    .mobile-booking-btn {
        position: fixed;
        bottom: 60px; /* 位于底部导航栏上方 */
        left: 0;
        right: 0;
        padding: 10px 15px;
        z-index: 1050;
        display: flex;
        justify-content: center;
        gap: 10px; /* 按钮之间的间距 */
        background-color: rgba(255, 255, 255, 0.95); /* 改为半透明白色背景 */
        backdrop-filter: blur(5px); /* 添加毛玻璃效果 */
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 -1px 5px rgba(0,0,0,0.1); /* 添加轻微阴影 */
        border-top: 1px solid rgba(142, 67, 231, 0.1); /* 添加一个轻微的上边框 */
    }

    .mobile-booking-btn .btn {
        width: auto; /* 不再占满整行 */
        flex: 1; /* 允许按钮根据内容调整宽度 */
        max-width: 45%; /* 控制最大宽度，确保并排时两个按钮都能显示 */
        background: var(--gradient-primary);
        color: white;
        border: none;
        font-weight: 600;
        font-size: 0.9rem; /* 稍微减小字体大小 */
        border-radius: 50px;
        padding: 10px 16px; /* 调整内边距 */
        box-shadow: 0 3px 15px rgba(var(--primary-rgb), 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .mobile-booking-btn .btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
    }

    .mobile-booking-btn .btn i {
        font-size: 1.1rem;
    }

    .mobile-booking-btn .btn.customer-service {
        background: var(--gradient-primary); /* 使用辅助渐变色 */
    }

    .mobile-booking-btn .btn.customer-service:active {
        background: var(--primary);
    }

    .footer {
        margin-top: 2rem;
        /* padding: 1.5rem 0 5rem; 增加底部内边距，为底部导航腾出空间 */
        padding-bottom: 135px !important;
        background: linear-gradient(to bottom, var(--primary-dark), var(--primary)); /* 使用渐变紫色背景 */
        color: var(--text-on-primary); /* 确保文字颜色对比度足够 */
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); /* 添加顶部阴影增强立体感 */
    }
    
    .footer hr {
        margin:0;
        border-color: rgba(255, 255, 255, 0.2);
        opacity: 0.5;
    }
    
    /* 移动端页脚导航样式优化 */
    .mobile-footer-nav {
        padding: 1rem 0.5rem;
        display: flex;
        flex-direction: column;
        /* gap: 1.2rem; */
    }
    
    .footer-nav-group {
        margin-bottom: 0.8rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 12px 12px 0 12px;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .footer-nav-group:hover {
        background-color: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }
    
    .footer-nav-title {
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
        border-left: 3px solid var(--accent); /* 使用强调色作为边框 */
        padding-left: 0.8rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影增强可读性 */
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
    }
    
    .footer-nav-title::after {
        content: "\F282"; /* Bootstrap图标字体的向下箭头编码 */
        font-family: "bootstrap-icons";
        font-size: 0.8rem;
        transition: transform 0.3s ease;
        margin-right: 0.5rem;
    }
    
    .footer-nav-group.collapsed .footer-nav-title::after {
        transform: rotate(-90deg);
    }
    
    .footer-nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: 500px; /* 足够高以容纳所有内容 */
        transition: max-height 0.5s ease, opacity 0.3s ease;
        opacity: 1;
    }
    
    .footer-nav-group.collapsed .footer-nav-links {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
    }
    
    .footer-nav-link {
        color: rgba(255, 255, 255, 0.9); /* 提高亮度 */
        font-size: 0.9rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border-radius: 6px;
        transition: all 0.25s ease;
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    .footer-nav-link:hover, 
    .footer-nav-link:active {
        background-color: rgba(255, 255, 255, 0.15); /* 更明显的悬停效果 */
        color: #fff;
        transform: translateX(3px);
    }
    
    .footer-nav-link i {
        margin-right: 8px;
        font-size: 1rem;
        color: var(--accent); /* 使用强调色增强视觉焦点 */
    }
    
    /* 移动端页脚链接 */
    .mobile-footer-links {
        display: flex;
        justify-content: center;
        margin: 1rem 0;
        gap: 10px;
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .mobile-footer-link {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.8rem;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        backdrop-filter: blur(4px); /* 添加模糊效果，增强视觉层次 */
        -webkit-backdrop-filter: blur(4px);
    }
    
    .mobile-footer-link:hover,
    .mobile-footer-link:active {
        background-color: rgba(255, 255, 255, 0.2);
        color: #fff;
        transform: scale(1.05);
    }
    
    /* 版权信息 */
    .footer p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 0.8rem;
        padding: 0 15px;
        line-height: 1.5;
    }

    /* 社交媒体图标区域 - 可选添加到页脚 */
    .footer-social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 1rem 0;
    }
    
    .footer-social-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .footer-social-icon:hover {
        transform: translateY(-3px);
        background-color: var(--accent);
    }

    /* 移动端悬浮工具栏隐藏 */
    .float-toolbar:not(.d-md-none) {
        display: none;
    }
    

/* 移动端页脚样式优化 */
.mobile-footer-nav {
    padding:0;
}

/* .footer-nav-group {
    margin-bottom: 1.5rem;
} */

.footer-nav-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem !important;
    border-left: 3px solid rgba(255, 255, 255, 0.7); /* 更亮的边框 */
    padding-left: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影增强可读性 */
}

.footer-nav-links {
    display: grid;
    margin-bottom: 8px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.9); /* 提高亮度 */
    font-size: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-nav-link:hover, 
.footer-nav-link:active {
    background-color: rgba(255, 255, 255, 0.15); /* 更明显的悬停效果 */
    color: #fff;
    transform: translateX(3px);
}

.footer-nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8); /* 图标稍微暗一点 */
}

.mobile-footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.mobile-footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-footer-link:hover,
.mobile-footer-link:active {
    color: #fff;
    text-decoration: underline;
}


    /* 移动端返回顶部按钮 - 单独样式 */
    #mobileBackToTop {
        position: fixed;
        right: 20px;
        bottom: 130px; /* 增加底部距离，确保在底部导航栏和预订咨询按钮上方 */
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--gradient-primary);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1060; /* 提高z-index确保在其他元素上方 */
        border: none;
        box-shadow: 0 3px 10px rgba(142, 16, 16, 0.4);
        transition: all 0.3s ease;
        opacity: 0; /* 默认隐藏 */
        transform: scale(0.8);
        font-size: 20px;
    }
    
    #mobileBackToTop.visible {
        opacity: 1;
        transform: scale(1);
    }
    
    #mobileBackToTop:active {
        transform: scale(0.9);
        box-shadow: 0 1px 5px rgba(122, 19, 19, 0.3);
    }



    .float-toolbar:not(.d-md-none) {
        display: none; /* 隐藏原来的固定悬浮工具栏，因为在线客服已经移到预订咨询按钮旁边 */
    }
    
    /* 仅保留返回顶部按钮 */
    .float-btn.back-to-top {
        position: fixed;
        right: 20px;
        bottom: 70px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        z-index: 1040;
        opacity: 0;
        border: none;
        outline: none !important;
        background: var(--gradient-primary);
    }
    
    .float-btn.back-to-top.visible {
        opacity: 1;
        transform: scale(1);
    }
    
    .float-btn.back-to-top i {
        font-size: 1.2rem;
        padding-top: 0;
    }
    
    .float-btn.back-to-top .btn-text {
        display: none;
    }
    
    /* 确保移动端按钮没有焦点边框 */
    .float-btn:focus,
    .float-btn:active {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }


    body {
        padding-top: 140px; /* 为移动端导航栏留出更多空间 */
    }
    
    /* 导航相关调整 */
    .nav-header {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }


    .footer {
        padding: 10px 0;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
}


/* 移动端样式 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 110px;  /* 调整顶部距离，考虑两个导航栏的高度 */
        left: 0;
        right: 0;
        bottom: 0;  /* 设置底部边界 */
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1040;
        overflow-y: auto;  /* 添加滚动条 */
        transform: translateX(-100%);  /* 默认隐藏 */
        transition: transform 0.3s ease-in-out;
    }

    .navbar-collapse.show {
        transform: translateX(0);  /* 显示菜单 */
    }

    .navbar-nav {
        margin: 0;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 1rem;
        margin: 0;
        border-radius: 8px;
    font-size: 1.1rem;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.5rem;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
        border-radius: 8px;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 6px;
    }

    .social-icons {
        margin: 1rem 0;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        justify-content: flex-start;
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    /* 优化移动端导航按钮 */
    .navbar-toggler {
        padding: 0.5rem;
        border: none;
        background-color: transparent;
        margin-right: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* 调整移动端下拉菜单的显示位置 */
    .dropdown-menu.show {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* 优化移动端用户菜单 */
    .user-dropdown .dropdown-menu {
        background-color: #fff;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .user-dropdown .dropdown-item {
        padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
        gap: 0.5rem;
    }

    .user-dropdown .dropdown-item i {
        width: 20px;
    }


    .bottom-nav .btn-primary {
        margin: 0;
        width: 100%;
    }

/* 移动端导航菜单样式 */
    .navbar-collapse {
        position: fixed;
        top: 135px;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        z-index: 1020;
    }

    .social-icons {
        margin-top: 1rem;
        justify-content: center;
    }

    .navbar-nav .nav-link {

        padding: 0.8rem 1rem;

        margin: 0.2rem 0;

    }
    .navbar > .container {
        padding: 0.0;
    }
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}

/* 页脚顶部"回到顶部"按钮 */
.footer-top-button {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -32px auto 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    color: white;
    border: none;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.footer-top-button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

/* 页脚顶部装饰波浪 */
.footer-wave {
    height: 30px;
    width: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23F37021'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    margin-bottom: -1px;
    position: relative;
    display: none; /* 默认不显示 */
}

@media (max-width: 768px) {
    .footer-wave {
        display: block; /* 在移动端显示 */
    }
    
    .footer {
        margin-top: 0; /* 移除页脚顶部边距，因为波浪效果已经创建了视觉分隔 */
    }
}

@media (max-width: 320px) {
    .footer-nav-links {
        grid-template-columns: 1fr; /* 在较小屏幕上改为单列布局 */
    }
}
@media (min-width: 768px) and (max-width: 991px) {

    /* 社交图标栏优化 */
    .mobile-social-icons {
        gap: 18px;
        padding: 8px 0;
        background: linear-gradient(to right, #f8f9fa, #fff, #f8f9fa);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-left: 15px;
        padding-right: 15px;
        justify-content: flex-start;
        position: fixed;
        top: 52px; /* 移动端logo区域高度 */
        left: 0;
        right: 0;
        z-index: 1059;
    }
    .container img:hover {
        transform: scale(1.2);
    }

    .mobile-social-icons::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-social-icons {
        display: flex;
        justify-content: center;
        gap: 50px;
        padding: 8px 0;
        background-color: white;
        margin: 0;
        border-bottom: 1px solid #eee;
        z-index: 1050;
    }

    .social-icon-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        will-change: transform; /* 性能优化 */
    }

    .social-icon-mobile i {
        font-size: 1rem;
    }
    
    .social-icon-mobile {
        flex-shrink: 0;
        transform: translateZ(0); /* 启用GPU加速 */
    }
    .social-icon-mobile.facebook {
        background-color: #3b5998;
    }
    .social-icon-mobile.twitter, .social-icon-mobile.twitter-x {
        background-color: #000000;
    }
    .social-icon-mobile.instagram {
        background-color: #e1306c;
    }
    .social-icon-mobile.line {
        background-color: #00b900;
    }
    .social-icon-mobile.wechat {
        background-color: #7bb32e;
    }
    .social-icon-mobile.youtube {
        background-color: #ff0000;
    }
    .social-icon-mobile.linkedin {
        background-color: #0077b5;
    }
    .social-icon-mobile.pinterest {
        background-color: #bd081c;
    }
    .social-icon-mobile.snapchat {
        background-color: #fffc00;
    }
    .social-icon-mobile.tiktok {
        background-color: #000000;
    }
    .social-icon-mobile.whatsapp {
        background-color: #25d366;
    }
    .social-icon-mobile.telegram {
        background-color: #0088cc;
    }
    .social-icon-mobile.line {
        background-color: #00c300;
    }
    .social-icon-mobile.wechat {
        background-color: #7bb32e;
    }
    .social-icon-mobile.weibo {
        background-color: #e6162d;
    }
    .social-icon-mobile.xiaohongshu {
        background-color: #fe2c55;
    }
    .social-icon-mobile.reddit {
        background-color: #ff4500;
    }
    .social-icon-mobile.discord {
        background-color: #5865f2;
    }
    .social-icon-mobile.twitch {
        background-color: #6441a5;
    }
    .social-icon-mobile.github {
        background-color: #333333;
    }
    .social-icon-mobile.custom {
        background-color: #555555;
    }

    /* 登录注册按钮 */
    .mobile-auth-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 8px 0;
        background-color: #fff;
        margin: 0;
        position: fixed;
        top: 96px; /* logo + 社交图标的高度 */
        left: 0;
        right: 0;
        z-index: 1058;
    }
    
    .mobile-auth-buttons .btn {
        padding: 5px 12px;
        font-size: 0.85rem;
        border-radius: 4px;
    }
    
    .mobile-auth-buttons .btn-primary {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    /* 导航菜单按钮 - 绝对定位到右上角 */
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 1050;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* 移动端顶部导航样式增强 */
    .mobile-logo-container {
        padding: 6px 15px;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1060;
    }
    
    .mobile-logo-container:active {
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-logo-container img {
        height: 36px;
        transition: transform 0.3s ease;
    }
    
    .mobile-logo-container img:active {
        transform: scale(0.95);
    }
    /* 语言切换按钮 - 固定在右侧 */
    .mobile-lang-switcher {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1050;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 8px 2px 8px 8px;
        backdrop-filter: blur(5px); /* 毛玻璃效果，增强UI */
    }
  }