/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Banner区域样式 */
.banner {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    z-index: 1;
    object-fit: cover;
    object-position: center center;
}

.banner-title {
    position: absolute;
    top: 74%;
    left: 7.2%;
    transform: translate(10%, -50%);
    z-index: 10;
    color: white;
    font-family: "Source Han Serif SC", "Source_Han_Serif_SC", "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 2px;
}

/* 通用基础样式（间距/文字） */
.page-py-120 {
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 7rem;
}

.page-py-120 .h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5rem;
    text-align: center;
    color: #8b572a;
    font-family: "Source Han Serif SC", "Source_Han_Serif_SC", "Segoe UI", "Helvetica Neue", sans-serif;
}

/* 加盟流程滚动容器样式 */
.process-scroll-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem 0;
}

.process-content-box {
    overflow: hidden;
    height: 200px;
    padding: 0;
    margin: 0 auto;
    width: calc(100% - 100px);
}

#processScrollContainer {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
    height: 100%;
    align-items: center;
}

.process-step-item {
    flex-shrink: 0;
    width: calc((100% - 6rem) / 5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    /* 新增：可点击样式 */
    transition: all 0.2s ease;
    /* 新增： hover 动画 */
}

/* 新增：可点击步骤 hover 效果 */
.process-step-item.clickable:hover {
    background-color: #f8f5f0;
    transform: translateY(-5px);
}

.process-step-item img {
    width: 60px !important;
    height: 60px !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    background: #fff;
    padding: 5px;
}

.process-step-item h3 {
    font-size: 20px;
    color: #8b572a;
    line-height: 4;
}

/* 滚动按钮样式 */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#prevStepBtn {
    left: 10px;
}

#nextStepBtn {
    right: 10px;
}

.scroll-btn svg {
    width: 18px;
    height: 18px;
    stroke: #666;
    fill: none;
}

/* 加盟要求区域样式 */
.bg-main {
    background-color: #333;
    height: 800px;
    padding: 3rem 0rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    /* 新增：防止背景溢出 */
}

.bg-main img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 1;
}

.bg-main>div h2 {
    font-size: 45px;
    margin-bottom: 40px;
    font-family: "Source Han Serif SC", "Source_Han_Serif_SC", "Segoe UI", "Helvetica Neue", sans-serif;
}

.bg-main>div {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1450px;
    text-align: left;
    height: auto;
    width: 100%;
    padding: 0 2rem;
}

.text-des-size {
    font-size: 1.2rem;
    line-height: 2.1;
}

/* 加盟支持区域样式 */
.flex {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* PC端适配：加盟支持左右分栏 */
@media (min-width: 1280px) {
    .flex {
        flex-direction: row;
        align-items: stretch;
    }
}

.flex-auto {
    flex: 1;
    max-width: 1300px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
}

.flex-auto h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #8b572a;
    margin-bottom: 4rem;
    text-align: center;
    font-family: "Source Han Serif SC", "Source_Han_Serif_SC", "Segoe UI", "Helvetica Neue", sans-serif;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 3.5rem;
    margin-top: 0;
}

.flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.w-10 {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #5f6464;
}

.flex-shrink-0 {
    flex-shrink: 0;
    width: 100%;
    margin-top: 2rem;
}

@media (min-width: 1280px) {
    .flex-shrink-0 {
        width: 50%;
        margin-top: 0;
    }
}

.flex-shrink-0 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 新增：弹窗遮罩样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 新增：弹窗容器样式 */
.modal-container {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* 新增：弹窗标题样式 */
.modal-title {
    font-size: 1.8rem;
    color: #8b572a;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* 新增：电话弹窗样式 */
.phone-modal-content {
    text-align: center;
    padding: 1rem 0;
}

.phone-number {
    font-size: 2rem;
    color: #8b572a;
    font-weight: 700;
    margin: 1rem 0;
}

/* 新增：表单弹窗样式 */
.form-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8b572a;
}

/* 新增：弹窗按钮样式 */
.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-btn.close {
    background-color: #f5f5f5;
    color: #666;
}

.modal-btn.close:hover {
    background-color: #eee;
}

.modal-btn.submit {
    background-color: #8b572a;
    color: #fff;
}

.modal-btn.submit:hover {
    background-color: #704520;
}

/* 移动端适配样式 */
@media (max-width: 768px) {

    /* Banner区域 */
    .banner {
        height: 200px;
    }

    .banner-title {
        font-size: 1.8rem;
        top: 70%;
        left: 5%;
        transform: translate(0, -50%);
        letter-spacing: 1px;
    }

    /* 通用间距 */
    .page-py-120 {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
    }

    .page-py-120 .h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    /* 加盟流程 */
    .process-scroll-wrapper {
        max-width: 100%;
    }

    .process-content-box {
        width: calc(100% - 80px);
        height: 160px;
    }

    .process-step-item {
        width: calc((100% - 2rem) / 3);
    }

    .process-step-item img {
        width: 45px !important;
        height: 45px !important;
    }

    .process-step-item h3 {
        font-size: 16px;
        line-height: 2;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
    }

    .scroll-btn svg {
        width: 16px;
        height: 16px;
    }

    /* 加盟要求 - 移动端背景切换核心样式 */
    .bg-main {
        height: auto;
        padding: 3rem 1rem;
        /* 隐藏原桌面端背景图 */
    }

    .bg-main img {
        display: none;
    }

    /* 添加移动端专属背景图 */
    .bg-main::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-image: url("../image/aboutbg.png");
        /* 替换为你的移动端背景图路径 */
        background-size: cover;
        background-position: center;
        opacity: 0.8;
        z-index: 1;
    }

    .bg-main>div h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: #fff;
        /* 确保标题清晰 */
        text-align: center;
        /* 移动端居中显示 */
    }

    .text-des-size {
        font-size: 1rem;
        line-height: 1.8;
        color: #fff;
        /* 确保文字清晰 */
        text-align: center;
        /* 移动端居中显示 */
    }

    /* 加盟支持 */
    .flex-auto {
        padding: 2rem 1.5rem;
    }

    .flex-auto h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .process-title {
        font-size: 1.2rem;
    }

    .w-10 {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* 图片区域 */
    .flex-shrink-0 {
        margin-top: 1.5rem;
    }

    /* 移动端弹窗适配 */
    .modal-container {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .phone-number {
        font-size: 1.8rem;
    }
}