/* ========== 全局重置 & 变量 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
:root {
    --main: #5c5ce0;
    --red: #e63946;
    --purple: #7b2cbf;
    --gray: #666;
    --light-gray: #aaa;
}
body {
    background: #fff;
    color: #333;
    overflow-x: hidden;

}
.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}
.section {
    padding: 60px 0;
}
.title {
    font-size: 28px;
    color: var(--main);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

/* 模态框遮罩层：全屏固定、半透明背景、flex居中 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;          /* 初始隐藏 */
    align-items: center;    /* 垂直居中 */
    justify-content: center;/* 水平居中 */
}

/* 弹窗主体：固定宽高、圆角、白色背景 */
.modal-box {
    width: 350px;           /* 宽3 */
    height: 400px;          /* 高4 */
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.modal-close:hover {
    color: #333;
}

/* 二维码/内容区域 */
.qr-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}
.qr-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 提示文字 */
.modal-box p {
    text-align: center;
    margin-top: 10px;
}

/* 移动端适配：防止弹窗过大 */
@media (max-width: 768px) {
    .modal-box {
        width: 280px;
        height: 380px;
        padding: 15px;
    }
}


/* ========== 按钮 ========== */
.btn-red {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}
.btn-red:hover {
    background: #d62838;
}
.btn-purple {
    background: var(--main);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}
.btn-purple:hover {
    background: #4c4cc0;
}

/* ========== 顶部导航 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    padding: 10px 0;
}
.nav-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--main);
}
.nav-menu {
    display: flex;
    gap: 25px;
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: var(--main);
}
.hamburger {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 15px;
    gap: 10px;
}
.mobile-menu a {
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ========== 手机端导航只保留LOGO居中 ========== */
@media (max-width: 768px) {
    .navbar .container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .nav-menu,
    .nav-box > div:last-child,
    .hamburger,
    .mobile-menu {
        display: none !important;
    }
    .logo {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}

/* ========== 移动端底部导航 ========== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    padding: 8px 0;
}
.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}
.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--main);
}
.bottom-nav-item.active {
    color: var(--main);
    font-weight: 700;
}

/* ========== 分佣权益滑动区域 ========== */
.commission-slider {
    overflow: hidden;
    position: relative;
    padding: 0 15px;
}
.commission-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 10px;
    padding: 10px 0;
}
.commission-card {
    flex: 0 0 calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
    background: #fff;
    padding: 40px 20px;
    border-radius: 14px;
    text-align: center;
    border: none !important;
    box-shadow: 0 0 15px rgba(220,220,220,0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin: 0 !important;
}
@media (min-width: 769px) {
    .slider-btn { display: none !important; }
    .commission-wrapper { justify-content: center; flex-wrap: wrap; }
    .commission-card:hover { transform: translateY(-5px); box-shadow: 0 0 20px rgba(220,220,220,0.6); }
}
@media (max-width: 768px) {
    .commission-card { flex: 0 0 280px !important; max-width: 280px !important; margin: 0 auto !important; }
    .commission-wrapper { justify-content: flex-start; gap: 15px !important; }
    .commission-slider { margin: 0 -15px; }
    .slider-btn { display: flex !important; }
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--main);
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ========== 图片放大效果 ========== */
.img-preview {
    cursor: pointer;
    transition: all 0.2s;
}
.img-preview:hover {
    opacity: 0.9;
}
.large-img-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: none;
    text-align: center;
}
.large-img-mask img {
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 0 30px #000;
}

/* ========== 响应式辅助 ========== */
@media (max-width: 768px) {
    .section { padding: 50px 0; }
    #home { padding-top: 105px !important; }
    #home h1 { font-size: 28px !important; }
    #home p { font-size: 14px !important; }
    .grid-12 { grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; }
    .grid-12 > div { padding: 10px !important; }
    .grid-12 img { width: 36px !important; height: 36px !important; }
    .grid-12 p { font-size: 12px !important; }
    .card-grid { min-width: 100% !important; }
    .bottom-nav { display: block; }

}

/* ========== 底部版权 ========== */
.footer {
    background: #333;
    padding: 20px 0;
    color: #fff;
}
.footer a {
    color: #aaa;
    text-decoration: none;
}

