/* ================== 全局基础设置 ================== */
body {
    margin: 0;
    padding: 0 3px;
    background-color: #000000;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================== 板块 1：顶部警告框 ================== */
.warning-box {
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 10px solid #000000;
    border-bottom: 8px solid #000000;
    padding: 20px 22px;
    text-align: center;
    font-weight: 800;
    color: #000000;
    font-size: 22px;
    line-height: 1.6;
    border-radius: 8px 8px 0 0;
}

/* ================== 板块 2：导航栏 ================== */
.navbar {
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.navbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ================== 板块 3：验证产品 ================== */
.section-verify {
    width: 100%;
    box-sizing: border-box;
    background-color: #f7f7f7;
    padding: 40px 20px 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.verify-input {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #b0b0b0;
    border-radius: 6px;
    outline: none;
}
.btn-verify {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    padding: 14px;
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.3s ease;
}
.btn-verify:hover {
    background: linear-gradient(90deg, #ff6ac2 0%, #b25eff 50%, #5c8aff 100%);
}

/* ================== 板块 4：手机图 ================== */
.section-image-2 {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #ffffff;
    padding-top: 55px;
}

/* ================== 板块 5、6、7：内容通用区 ================== */
.section-common {
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    padding: 40px 10px 60px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================== 板块 8 & 9：灰色背景区域 ================== */
.section-gray {
    width: 100%;
    box-sizing: border-box;
    background-color: #f6f6f6;
    padding: 40px 10px 60px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================== 板块 10：底部折叠菜单 ================== */
.section-accordion {
    width: 100%;
    box-sizing: border-box;
    background-color: #f6f6f6;
    padding: 40px 20px 5px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 折叠菜单交互动画 */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details .vertical-line { display: block; }
details[open] .vertical-line { display: none; }
details .menu-link:hover { color: #888888 !important; }

/* ================== 板块 11：底部信息区 ================== */
.section-footer {
    width: 100%;
    box-sizing: border-box;
    background-color: #f6f6f6;
    padding: 15px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-divider {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}
.footer-email-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    width: 44px;
    
    /* 👇 核心修改：加上高度和防拉伸属性 */
    height: 32px; /* 👈 改成你想要的高度（比如 34px、36px、38px） */
    align-self: center; /* 👈 关键：阻止它被父容器拉伸，强制按 36px 居中显示 */
    
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    flex-shrink: 0; /* 防止宽度被挤压 */
}
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: px solid #cccccc;
    border-radius: 50%;
    color: #333333;
    text-decoration: none;
}

/* ================== 右侧悬浮窗系统 ================== */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    z-index: 9999;
}
.floating-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}
.help-chat-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}
.help-chat-close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.support-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
    background-color: #0056ff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================== 响应式：手机端适配 ================== */
@media (max-width: 768px) {
    .mobile-scale-70 {
        transform: scale(0.7);
        transform-origin: bottom right;
    }
    .mobile-gap {
        gap: 5px !important;
    }
    /* 第一板块文字和间距缩小 */
    .warning-box {
        font-size: 15px;
        padding: 15px 10px;
        border-width: 6px;
        min-height: 130px; /* 设置最小高度，防止内容变少时塌陷 */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* 导航栏 + 菜单 的父容器 */
.nav-wrapper {
    position: relative; /* 关键：作为绝对定位的参照物 */
    width: 100%;
    z-index: 9999;
}

/* ================== 侧边抽屉菜单（核心修改处） ================== */
.side-drawer {
    position: absolute;
    top: 100%; /* 刚好在导航栏的下方 */
    right: 0;
    
    /* 核心修改 1：隐藏时宽度为 0，防止把页面撑宽 */
    width: 0; 
    height: 100vh; 
    background-color: #ffffff;
    z-index: 9998; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    
    /* 核心修改 2：隐藏超出部分 */
    overflow: hidden; 
    
    /* 核心修改 3：改用宽度动画展开 */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex;
    flex-direction: column;
}

/* 展开状态：宽度铺满整个屏幕 */
.side-drawer.active {
    /* 核心修改 4：展开时占满屏幕 */
    width: 100vw; 
}

/* 锁定背景滑动 */
body.no-scroll {
    overflow: hidden;
}

/* 菜单内容区 */
.drawer-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    
    /* 核心修改 5：内部固定宽度，防止展开动画时文字被压扁 */
    width: 100vw; 
}

.drawer-links a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

/* 图标切换控制 */
.icon-cross { display: none; }
.menu-active .icon-hamburger { display: none; }
.menu-active .icon-cross { display: block; }






/* ================== 基础布局与防超宽 ================== */

/* 遮罩层背景 */
.verify-modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block; 
}

/* 显示状态 */
.verify-modal-mask.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.verify-modal-content {
    background: #fff;
    width: 90%; /* 🌟 统一改为 90% 宽度 */
    max-width: 620px;
    box-sizing: border-box; /* 🌟 核心：让 padding 算在 90% 里面，绝不撑破屏幕 */
    border-radius: 12px;

    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: absolute;
    left: 50%;
    top: 15vh; 
    transform: translateX(-50%); 
    transition: all 0.3s ease;
    margin-top: 20px;
    opacity: 0;
        padding: 10px 20px 40px 20px; 
/* 意思是：上20px，右20px，下40px，左20px */
}

/* 显示时的动画状态 */
.verify-modal-mask.show .verify-modal-content {
    margin-top: 0;
    opacity: 1;
}

/* ================== 通用元素样式 ================== */

/* 图标容器 */
.verify-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

/* 限制图片大小 */
.verify-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 标题文本（所有状态共用） */
.verify-modal-title {
    font-size: 18px; 
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 0 10px;
    word-wrap: break-word; /* 防超长单词撑破 */
}

/* 产品信息（所有状态共用） */
.verify-modal-product {
    font-size: 15px; 
    font-weight: 700; 
    margin-bottom: 15px;
    line-height: 1.4;
    word-wrap: break-word; /* 防超长单词撑破 */
}

/* 底部说明文本（所有状态共用） */
.verify-modal-desc {
    font-size: 15px; 
    color: #000; 
    line-height: 1.6; 
    width: 100%;
    padding: 0 5px;
    word-wrap: break-word;
}

.verify-modal-desc a {
    color: #000;
    text-decoration: underline;
}

/* ================== 状态专属颜色与字号配置 ================== */

/* 1. 成功状态（鲜艳绿色） */
.verify-modal-mask.success .verify-modal-title { 
    color: #00B050; 
    font-size: 20px; 
}
.verify-modal-mask.success .verify-modal-product { 
    color: #00B050; 
    font-size: 16px; 
    white-space: normal; 
    word-wrap: break-word; /* 内容超宽自动折行 */
}
.verify-modal-mask.success .verify-modal-desc {
    font-size: 16px;
    font-weight: normal;
}

/* 2. 错误状态（查无此码 - 红色） */
.verify-modal-mask.error .verify-modal-title { 
    color: #d32f2f; 
}

/* 3. 警告状态（超次数 - 红色） */
.verify-modal-mask.warning .verify-modal-title { 
    color: #d32f2f; 
}

/* ================== 关闭按钮 ================== */
.verify-modal-close {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.2);
}

.verify-modal-close:hover {
    opacity: 0.7;
}





/* 遮罩层背景 */
.newsletter-popup-mask {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; 
    justify-content: center;
    align-items: flex-end; /* 靠底部对齐 */
    padding-bottom: 17px; /* 距离底部 17px */
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-sizing: border-box; 
}

/* 显示状态 */
.newsletter-popup-mask.show {
    display: flex;
    opacity: 1;
}

/* 弹窗主体 */
.newsletter-popup-content {
    background-color: #ffffff;
    width: 80%;
    max-width: 380px; 
    border-radius: 12px;
    padding: 32px 0 0 0; 
    box-sizing: border-box;
    position: relative;
    text-align: center;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(40px); 
    transition: transform 0.3s ease;
}

/* 显示时的动画状态 */
.newsletter-popup-mask.show .newsletter-popup-content {
    transform: translateY(0);
}

/* 关闭按钮 */
.newsletter-close-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 标题 */
.newsletter-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    font-family: Arial, sans-serif;
    letter-spacing: -0.5px;
}

/* 渐变文字（只作用于 Newsletter） */
.text-purple {
    background: linear-gradient(to right, #f25bb8, #7964fd); /* 从左到右的粉紫渐变 */
    
    /* 以下三行是让文字变透明的核心 */
    -webkit-background-clip: text; /* 将背景裁剪到文字内部 */
    background-clip: text;
    color: transparent; /* 文字颜色透明，露出背后的渐变 */
    
    /* 针对部分手机浏览器的兼容处理 */
    -webkit-text-fill-color: transparent; 
}

/* 描述文字 */
.newsletter-desc {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #000000;
    line-height: 1.45;
    font-weight: 600;
    padding: 0 20px;
}



/* 输入框 */
.newsletter-input {
    flex: 1;
    min-width: 0; /* 防止输入框撑爆挤走按钮 */
    border: none;
    outline: none;
    padding: 0 8px; /* 👈 修改处：从 12px 改成了 8px，缩小左侧空白 */
    font-size: 16px; 
    color: #333;
    font-weight: 500;
}

.newsletter-input::placeholder {
    color: #999999;
    font-size: 16px; 
    font-weight: 500;
}

/* 黑色按钮 */
.newsletter-submit-btn {
    width: 58px; 
    height: 100%; /* 👈 修改处：强制撑满上下，去掉空隙 */
    margin: 0;    /* 👈 修改处：去掉外边距 */
    flex-shrink: 0; 
    background-color: #000000;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
}

/* 输入框容器 */
.newsletter-input-group {
    display: flex;
    width: 80%; 
    height: 38px; 
    margin: 0 auto; /* 上下间距为 0，紧贴上方文字 */
    border: 1.5px solid #cccccc;
    border-radius: 6px; 
    box-sizing: border-box;
    overflow: hidden; 
}

/* 底部插画容器 */
.newsletter-image-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 👈 关键：让容器顶部紧紧贴住输入框 */
    
    /* 🌟 核心修改：去掉容器的 transform，不要让整个容器往下掉 */
    transform: none; 
    
    /* 可选：如果你想自己控制中间留多少间距，直接改这里 */
    margin-top: 10px; 
    
    /* 👈 关键：限高，配合 overflow 切掉图片底部。数值可根据你想要的视觉高度调整 */
    height: 130px; 
    overflow: hidden; 
}

/* 插画图片 */
.newsletter-img {
    width: 80%;
    height: auto;
    display: block;
    
    /* 🌟 核心修改：把下沉动作加在图片自己身上 */

    /* 如果你发现下沉了 60px 导致上面被切了，可以把 margin-top 设为负数往回拉 */

}



/* ================== 强制防止电话号码被识别成蓝色链接 ================== */
.customer-service,
.customer-service p {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important; /* 覆盖 iOS/微信/安卓 WebView 的电话识别蓝色 */
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration-line: none !important;
}

/* 如果浏览器把电话包成了 a 标签，也一并压掉 */
.customer-service a {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-decoration: none !important;
}

