/* mobile.css - 移动端样式文件 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background-color: #F1FFFF; /* 设置整体背景色，与图片中的浅蓝色背景一致 */
    overflow-x: hidden; /* 防止水平滚动 */
}
body {
    /* 移除最小高度设置 */
    min-height: auto;
}
a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* 移动端头部样式 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background-color: rgba(241, 255, 255, 0.85); /* 修改为用户指定的#f1ffff，保留透明度 */
    transition: all 0.3s ease;
    will-change: transform, backdrop-filter, -webkit-backdrop-filter, background-color, box-shadow;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 滚动时的毛玻璃效果 - 更强烈的视觉变化 */
.mobile-header.scrolled {
    background-color: rgba(241, 255, 255, 0.65) !important; /* 更新为#f1ffff */
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important; /* 更明显的阴影 */
}

/* 测试效果用 - 更强的视觉效果 */
.mobile-header.test-blur {
    background-color: rgba(241, 255, 255, 0.5) !important; /* 更新为#f1ffff */
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2) !important;
}

/* 为不支持backdrop-filter的浏览器提供备选方案 */
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .mobile-header.scrolled,
    .mobile-header.test-blur {
        background-color: rgba(241, 255, 255, 0.95) !important; /* 更新为#f1ffff */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
}

/* 硬件加速类 */
.hardware-accelerated {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 确保毛玻璃效果在最新的浏览器中生效 - 额外的CSS规则 */
@supports ((-webkit-backdrop-filter: blur(15px)) or (backdrop-filter: blur(15px))) {
    .mobile-header.scrolled {
        background-color: rgba(241, 255, 255, 0.65) !important; /* 更新为#f1ffff */
        -webkit-backdrop-filter: blur(15px) !important;
        backdrop-filter: blur(15px) !important;
    }
    
    .mobile-header.test-blur {
        background-color: rgba(241, 255, 255, 0.5) !important; /* 更新为#f1ffff */
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
    }
}

/* 为Safari浏览器添加特殊规则 */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .mobile-header.scrolled, 
        .mobile-header.test-blur {
            -webkit-backdrop-filter: blur(15px) !important;
        }
    }
}

/* 让测试按钮更显眼 */
#test-blur-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    cursor: pointer;
}

#test-blur-button:active {
    background-color: #0056b3;
    transform: translateY(1px);
}

/* 页面内容样式 - 添加足够的滚动空间 */
.scroll-test-area {
    height: 150vh;
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.scroll-test-area h2 {
    margin-bottom: 20px;
}

.scroll-test-area p {
    margin-bottom: 40px;
    text-align: center;
    max-width: 80%;
}

/* 修复导航按钮的样式和动画，确保在菜单打开时仍然可见 */
.nav-toggle {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1050; /* 提高z-index，确保它高于所有其他元素 */
}

.nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #02D2AB;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

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

.nav-toggle span:nth-child(2),
.nav-toggle span:nth-child(3) {
    top: 10px;
}

.nav-toggle span:nth-child(4) {
    top: 20px;
}

.nav-toggle.active span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.nav-toggle.active span:nth-child(2) {
    transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-toggle.active span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}

/* 导航菜单样式 - 修复遮罩问题 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #fff;
    z-index: 1003; /* 提高z-index，确保在遮罩层之上 */
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 70px;
}

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

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

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    display: block;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-nav ul li a.active,
.mobile-nav ul li a:hover {
    color: #00C4A7; /* 使用图片中的绿色 */
}

/* 滚动指示器样式 */
.scroll-indicator {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1999;
    transition: opacity 0.3s ease;
}

/* 移除不需要的覆盖层样式 */
.banner-blur-overlay {
    display: none;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
    width: 120px; /* 设置与 logo 图片相同的宽度 */
    background-image: url('mobile_images/mobile_logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Banner样式 */
.mobile-banner {
    width: 100%;
    height: 35vh; /* 从40vh调整到35vh */
    min-height: 250px; /* 从280px调整到250px */
    position: relative;
    margin-top: 60px; /* 为固定头部留出空间 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    background-image: url('mobile_images/mobile_banner.png');
    background-size: contain; /* 改为contain确保图片完全显示且保持比例 */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #F1FFFF; /* 添加背景色，与页面背景一致 */
}

/* Banner按钮样式 */
.banner-button {
    position: relative;
    z-index: 3;
    margin-top: auto; /* 将按钮推到底部 */
    margin-bottom: 10%; /* 底部间距 */
}

.banner-button img {
    width: 140px; /* 从120px增加到160px */
    height: auto;
    display: block;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1)); /* 添加轻微阴影效果 */
    transition: all 0.3s ease;
    border-radius: 50px; /* 添加圆角 */
}

.banner-button:active img {
    transform: scale(0.95); /* 点击时的缩小效果 */
}

/* 按钮样式 */
.action-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #00C4A7; /* 绿色按钮 */
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 196, 167, 0.3);
}

.action-btn:hover {
    background-color: #00b096;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 196, 167, 0.4);
}

/* 内容容器样式 */
.container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    overflow-x: hidden; /* 防止内容溢出导致水平滚动 */
    padding: 0 15px; /* 添加左右内边距，确保内容不会贴边 */
    box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

/* 数据统计模块样式 */
.stats-box {
    width: 100%;
    padding: 0; /* 移除内边距 */
    background-image: url('mobile_images/mobile_box.png');
    background-size: 100% 100%; /* 修改为100% 100%确保图片完整显示 */
    background-position: center;
    border-radius: 0; /* 移除圆角 */
    box-shadow: none; /* 移除阴影 */
    position: relative; /* 添加相对定位 */
    height: 280px; /* 设置固定高度 */
    margin-bottom: 30px; /* 添加底部间距 */
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    position: absolute; /* 绝对定位 */
    top: 42%; /* 从50%调整到45%，使整体向上移动 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 居中偏移 */
    width: 80%; /* 设置宽度 */
    height: 70%; /* 设置高度 */
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 添加垂直居中 */
    position: relative;
}

/* 移除垂直分隔线 */
.stats-item:nth-child(1)::after,
.stats-item:nth-child(3)::after {
    display: none; /* 隐藏垂直分隔线 */
}

/* 移除水平分隔线 */
.stats-item:nth-child(1)::before,
.stats-item:nth-child(2)::before {
    display: none; /* 隐藏水平分隔线 */
}

.stats-title {
    color: white;
    font-size: 16px;
    text-align: center; /* 添加文本居中 */
}

.stats-number {
    color: white;
    font-size: 25px;
    font-weight: 600;
    text-align: center; /* 添加文本居中 */
}

/* 关于约酒平台模块样式 */
.about-box {
    width: 100%;
    margin: 20px 0 10px; /* 将下边距从30px减少到10px */
    padding: 0;
    position: relative;
}

/* 添加大标题和副标题样式 */
.about-header {
    text-align: center;
    margin-bottom: 80px; /* 再增加10px下边距，从70px改为80px */
    padding: 0 15px;
}

.about-main-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.about-subtitle {
    font-size: 14px;
    color: #A0A0A0;
    line-height: 1.5;
}

.about-carousel {
    position: relative;
    width: 100%;
    height: 700px; /* 从642px增加到700px，与卡片高度一致 */
    perspective: 1200px; /* 增加透视效果 */
    overflow: visible;
    padding-bottom: 40px;
    margin-top: 150px; /* 保持原有的上边距 */
}

.about-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.about-card {
    position: absolute;
    width: 260px; /* 从237px增加到260px */
    height: 700px; /* 从642px增加到700px */
    left: 50%; /* 水平居中 */
    transform-origin: center center;
    margin-left: -130px; /* 负的宽度的一半 */
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 改为居中对齐，而不是底部对齐 */
    background-size: contain; /* 确保图片保持原始比例 */
    background-position: top center; /* 图片位置调整到顶部居中 */
    background-repeat: no-repeat;
    background-color: transparent; /* 移除背景颜色 */
    transition: all 0.8s ease;
    opacity: 0;
    filter: blur(5px);
    overflow: hidden;
    transform: scale(0.75); /* 默认进一步缩小所有卡片 */
}

/* 为每个卡片添加背景图片 */
.about-card.card-1 {
    background-image: url('mobile_images/about_bg_01.png');
}

.about-card.card-2 {
    background-image: url('mobile_images/about_bg_02.png');
}

.about-card.card-3 {
    background-image: url('mobile_images/about_bg_03.png');
}

.about-card.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0) scale(1.3); /* 激活卡片放大到1.3倍，从1.25增加 */
    filter: blur(0);
    z-index: 3;
}

.about-card.prev {
    opacity: 0.6; /* 降低透明度 */
    transform: translateX(-220px) scale(0.7); /* 调整左侧卡片的位置，从-200px调整到-220px */
    filter: blur(3px);
    z-index: 2;
}

.about-card.next {
    opacity: 0.6; /* 降低透明度 */
    transform: translateX(220px) scale(0.7); /* 调整右侧卡片的位置，从200px调整到220px */
    filter: blur(3px);
    z-index: 1;
}

.about-content {
    width: 100%;
    padding: 30px 25px; /* 从20px 15px增加到30px 25px */
    background-color: transparent; /* 保持透明背景 */
    backdrop-filter: none; /* 保持无模糊效果 */
    position: absolute; /* 绝对定位 */
    top: 43%; /* 保持原有的位置 */
    left: 0;
    transform: translateY(-50%); /* 垂直居中偏移 */
}

.about-title {
    font-size: 14px;
    font-weight: bold;
    color: #069475; /* 改为指定的绿色 */
    margin: 0 0 10px;
    text-align: center; /* 确保标题居中对齐 */
    text-shadow: none; /* 移除文字阴影 */
}

.about-text {
    font-size: 12px;
    line-height: 28px; /* 设置固定行高为28px */
    color: #33665D; /* 改为指定的深绿色 */
    text-align: left; /* 确保内容靠左对齐 */
    margin-bottom: 0;
    padding: 0;
    text-shadow: none; /* 移除文字阴影 */
    text-indent: 2em; /* 添加首行缩进2个字符 */
}

.about-mascot {
    text-align: center;
    margin: 30px 0;
}

.about-mascot img {
    width: 120px;
    height: auto;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .about-carousel {
        height: 600px; /* 从540px增加到600px */
        margin-top: 130px; /* 保持原有的上边距 */
    }
    
    .about-card {
        width: 220px; /* 从200px增加到220px */
        height: 600px; /* 从540px增加到600px */
        margin-left: -110px; /* 负的宽度的一半 */
    }
    
    .about-card.active {
        transform: translateZ(0) rotateY(0) scale(1.3); /* 保持与大屏幕一致 */
    }
    
    .about-card.prev {
        transform: translateX(-180px) scale(0.7); /* 从-160px调整到-180px */
    }
    
    .about-card.next {
        transform: translateX(180px) scale(0.7); /* 从160px调整到180px */
    }
    
    .about-content {
        padding: 25px 20px; /* 从15px 12px增加到25px 20px */
        top: 43%; /* 保持原有的位置 */
    }
    
    .about-title {
        font-size: 14px;
        margin-bottom: 8px;
        text-align: center; /* 确保小屏幕下标题也居中对齐 */
    }
    
    .about-text {
        font-size: 12px;
        line-height: 24px; /* 小屏幕下稍微减小行高 */
        text-indent: 2em; /* 保持首行缩进 */
        text-align: left; /* 确保小屏幕下内容也靠左对齐 */
    }
    
    .about-main-title {
        font-size: 22px;
    }
    
    .about-subtitle {
        font-size: 14px;
    }
    
    .about-header {
        margin-bottom: 70px; /* 小屏幕下也增加下边距，从60px改为70px */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .mobile-banner {
        height: 35vh;
        min-height: 240px;
        background-size: 85% auto;
    }
}

/* 商户入驻模块样式 */
.merchant-box {
    width: 100%;
    margin: -90px 0 0px; /* 从-50px增加到-90px，再上移40px */
    padding: 20px 15px;
    position: relative;
    box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

.merchant-header {
    text-align: center;
    margin-bottom: 25px;
    width: 100%; /* 确保宽度为100% */
    box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

/* 添加商户入驻标题下方的图片 */
.merchant-header-image {
    width: 100%;
    height: 240px;
    background-image: url('mobile_images/mobile_sj_bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 35px auto 10px; /* 将底部margin从默认值改为10px */
    max-width: 500px;
    box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

/* 添加商户入驻图片下方的文字样式 */
.merchant-header-text {
    text-align: left;
    padding: 0 20px 20px; /* 移除顶部内边距，保留左右和底部内边距 */
    max-width: 500px; /* 与图片最大宽度一致 */
    margin-left: auto;
    margin-right: auto; /* 左右margin设为auto实现居中 */
    display: flex;
    flex-direction: column;
    gap: 20px; /* 添加段落之间的间距 */
    box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

.merchant-header-text p {
    color: #35665D;
    line-height: 42px;
    font-size: 15px;
    margin-bottom: 0; /* 移除底部边距，使用父元素的gap来控制间距 */
    text-indent: 0.5em; /* 保持缩进为0.5em */
    position: relative;
    padding: 5px 10px 5px 10px; /* 保持内边距 */
    
    /* 移除之前的荧光标记方法 */
    background-image: none;
    box-shadow: none;
}

/* 为段落中的每个单词或短语添加荧光标记效果 */
.merchant-header-text p span {
    background-color: transparent; /* 移除背景色 */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0;
    position: relative;
    display: inline;
    border-bottom: none; /* 移除边框 */
    background-image: linear-gradient(transparent 60%, #CFF3EB 40%); /* 使用渐变背景，只在文字下半部分显示 */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 0;
    max-width: 100%; /* 确保不会超出父元素宽度 */
    word-wrap: break-word; /* 允许长单词换行 */
    overflow-wrap: break-word; /* 现代浏览器的长单词换行属性 */
}

/* 移除所有伪元素 */
.merchant-header-text p span::after {
    display: none;
    content: none;
}

/* 使用伪元素创建荧光标记效果 */
.merchant-header-text p span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.5em;
    background-color: #CFF3EB;
    z-index: -1;
}

/* 添加箭头 */
.merchant-header-text p::before {
    content: "→";
    position: static; /* 改为静态定位，使箭头成为文本的一部分 */
    display: inline-block;
    margin-right: 10px; /* 增加右边距，使箭头更向左移动，从7px增加到10px */
    margin-left: -5px; /* 增加负的左边距，进一步向左移动，从-2px增加到-5px */
    position: relative; /* 添加相对定位，以便使用top属性 */
    top: 1px; /* 保持向下移动1px */
    color: #FF9F43; /* 箭头颜色设为橙色，与效果图一致 */
    font-size: 18px; /* 保持字体大小 */
    font-weight: 700; /* 保持字体粗细 */
    text-shadow: 0 0 1px #FF9F43; /* 保持文字阴影效果 */
    -webkit-text-stroke: 0.5px #FF9F43; /* 保持文字描边效果 */
    letter-spacing: normal; /* 保持正常字符间距 */
}

.merchant-main-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    width: 100%; /* 确保宽度为100% */
    box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

.merchant-subtitle {
    font-size: 14px;
    color: #A0A0A0;
    line-height: 1.5;
    padding: 0 20px;
    width: 100%; /* 确保宽度为100% */
    box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

.merchant-card {
    /* 移除背景图片相关设置，因为我们已经添加了单独的图片元素 */
    background-image: none;
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    height: auto;
}

.merchant-points {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 20px 30px;
    margin-top: 0; /* 移除顶部边距，因为不再需要为背景图片留出空间 */
    background-color: #F1FFFF;
    border-radius: 15px; /* 恢复完整的圆角 */
}

.merchant-point {
    position: relative;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #35665d; /* 更改字体颜色为#35665d */
    line-height: 1.6;
    text-align: center;
}

.merchant-point:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .merchant-box {
        padding: 15px 10px;
    }
    
    .merchant-card {
        padding: 0;
        height: auto;
    }
    
    .merchant-subtitle {
        padding: 0 10px;
        font-size: 14px;
    }
    
    .merchant-points {
        padding: 15px 20px;
        margin-top: 0; /* 移除顶部边距，与大屏幕保持一致 */
    }
    
    .merchant-point {
        font-size: 13px;
        padding: 8px 0;
        margin-bottom: 15px;
    }
    
    .merchant-header-image {
        margin: 25px auto 0; /* 从15px增加到35px，小屏幕下也增加与上方副标题的距离 */
    }
    
    .merchant-header-text {
        padding: 15px; /* 减小内边距，避免溢出 */
        max-width: 100%; /* 小屏幕下占满宽度 */
        gap: 15px; /* 小屏幕下减小段落间距 */
    }
    
    .merchant-header-text p {
        line-height: 36px;
        font-size: 14px;
        padding: 4px 8px; /* 修改内边距 */
        text-indent: 0.5em; /* 保持缩进为0.5em */
    }
    
    /* 小屏幕下调整荧光标记高度 */
    .merchant-header-text p span {
        background-image: linear-gradient(transparent 65%, #CFF3EB 35%); /* 小屏幕下稍微调整比例 */
    }
    
    /* 小屏幕下调整箭头位置 */
    .merchant-header-text p::before {
        font-size: 16px; /* 保持小屏幕下的箭头大小 */
        margin-right: 8px; /* 小屏幕下也增加右边距，从6px增加到8px */
        margin-left: -4px; /* 小屏幕下也增加负的左边距，从-2px增加到-4px */
        top: 1px; /* 保持向下移动1px */
        font-weight: 700; /* 保持一致的粗细 */
        text-shadow: 0 0 1px #FF9F43; /* 保持文字阴影效果 */
        -webkit-text-stroke: 0.5px #FF9F43; /* 保持文字描边效果 */
        letter-spacing: normal; /* 保持正常字符间距 */
    }
}

/* 商户展示模块样式 */
.merchant-display {
    width: 100%;
    margin: 0 0 30px;
    padding: 20px 15px;
    position: relative;
    box-sizing: border-box;
    background-color: #F1FFFF;
}

.merchant-display-header {
    text-align: center;
    margin-bottom: 35px;
}

.merchant-display-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.merchant-display-subtitle {
    font-size: 14px;
    color: #A0A0A0;
    line-height: 1.5;
}

/* 商户轮播图样式 */
.merchant-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    touch-action: pan-y; /* 允许垂直滚动，但水平滑动会被捕获 */
}

.merchant-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), 
                opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), 
                visibility 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, opacity, visibility;
}

.merchant-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.merchant-slide.active {
    position: relative;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.merchant-slide.next {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.merchant-display-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.merchant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.merchant-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.merchant-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.merchant-name {
    font-size: 14px;
    color: #333;
    text-align: center;
}

.merchant-display-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.dot.active {
    width: 30px;
    border-radius: 4px;
    background-color: #FF9F43;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .merchant-display {
        padding: 15px 10px;
    }
    
    .merchant-display-grid {
        gap: 15px;
    }
    
    .merchant-icon {
        width: 80px;
        height: 80px;
    }
    
    .merchant-name {
        font-size: 13px;
    }
}

/* 在这里添加您的自定义样式 */ 

/* 用于硬件加速的额外类 */
.hardware-accelerated {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 确保毛玻璃效果在最新的浏览器中生效 */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .mobile-header.scrolled {
        background-color: rgba(241, 255, 255, 0.7) !important; /* 更新为#f1ffff */
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }
}

/* 添加导航菜单遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    z-index: 1001; /* 保持原有z-index值 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto; /* 确保事件可以穿透 */
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 遮罩效果的备选方案 */
@supports not ((-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))) {
    .menu-overlay {
        background-color: rgba(0, 0, 0, 0.7); /* 稍微暗一些，以补偿缺少的模糊效果 */
    }
}

/* 微信公众号二维码区域样式 - 更新版 */
.qrcode-section {
    width: 100%;
    padding: 30px 15px 0px;
    background-color: #F1FFFF;
    margin-bottom: 30px;
}

.qrcode-container {
    max-width: 500px;
    margin: 0 auto;
}

/* 二维码区域标题样式 */
.qrcode-header {
    text-align: center;
    margin-bottom: 30px;
}

.qrcode-main-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.qrcode-subtitle {
    font-size: 14px;
    color: #A0A0A0;
    line-height: 1.5;
}

/* 二维码背景图片容器 */
.qrcode-background {
    width: 100%;
    height: 250px; /* 增加高度从180px到250px */
    background-image: url('mobile_images/mobile_erweima.png');
    background-size: 100%; /* 将background-size从contain改为140%，使图片放大 */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin: 0 auto;
}

/* 二维码文字说明 */
.qrcode-text {
    color: white;
    font-size: 12px;
    text-align: center;
    position: absolute;
    bottom: 58px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .qrcode-section {
        padding: 20px 10px 0px;
    }
    
    .qrcode-background {
        height: 190px;
    }
    
    .qrcode-main-title {
        font-size: 20px;
    }
    
    .qrcode-subtitle {
        font-size: 13px;
    }
}

/* 页脚区域样式 */
.page-footer {
    width: 100%;
    padding: 0 15px 30px 15px;
    background-color: #F1FFFF;
}

.footer-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 100%;
    height: 60px;
    margin-bottom: 15px;
    background-image: url('mobile_images/mobile_logo_foot_02.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

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



.footer-info {
    text-align: center;
}

.footer-info p {
    margin: 5px 0;
    font-size: 12px;
    color: #78c19b;
}

.copyright {
    color: #78c19b;
}

.email {
    color: #78c19b;
}

.icp {
    color: #78c19b;
} 