/* 主内容容器 */
.main-container {
    width: 100%;
    margin: 0 auto;
    background-color: #fafafa;
}
@media (min-width: 769px) {
    /* 加盟页 PC 端默认铺满 */
    .main-container {
        max-width: 100%;
    }
}

/* 强制允许文字复制 */
* {
    user-select: text !important;
    -webkit-user-select: text !important;
}
/* banner区域 */
.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.banner img,
.banner video {
    width: 100%;
    display: block;
}
/* PC端：显示视频 */
.banner-video {
    width: 100%;
    height: 910px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}
.banner-img {
    display: none;
}
/* 标题覆盖层 */
.banner-title {
    display: none;
}
@media (max-width: 768px) {
    /* 移动端：显示图片，标题不显示 */
    .banner-video {
        display: none;
    }
    .banner-img {
        display: block;
    }
    .banner-title {
        display: none;
    }
}
@media (min-width: 769px) {
    /* PC 端：标题压在视频中央 */
    .banner-title {
        display: block;
        position: absolute;
        top: 50%;
        left: 20%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #fff;
        font-size: clamp(32px, 4vw, 56px);
        font-weight: 700;
        letter-spacing: 4px;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
        margin: 0;
        z-index: 2;
        pointer-events: none;
    }
    .banner-subtitle {
        display: block;
        font-size: clamp(14px, 1vw, 16px);
        font-weight: 400;
        letter-spacing: 4px;
        margin-top: 10px;
    }
}
/* 市场分析模块 */
.market-section {
    padding: 20px 15px;
    background-color: #EFEFEF;
    text-align: center;
}

.market-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}
@media (min-width: 769px) {
    /* PC 端：标题块级居中，避免贴在左侧 */
    .market-section {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }
}
.market-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
.market-item {
    width: 100%;
    display: flex;
    align-items: space-between;
    gap: 10px;
    background-color: #fff;
    padding: 20px 0 20px 19px;
}
.market-item-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.market-item-icon {
    width: 122px;
    height: 102px;
    flex-shrink: 0;
    margin-left: auto;
    
}
.market-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.market-item-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}
.market-item-content p {
    font-size: 12px;
    color: #747474;
    line-height: 15px;
}
.market-item-content p span {
    font-size: 12px;
    color: #FF9248;
}

/* PC端：市场分析 4 张图片 */
.market-list-pc {
    display: none;
}
.market-pc-img {
    display: block;
    width: 335px;
    height: 348px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
    cursor: pointer;
}
.market-pc-img:hover,
.market-list-pc img.market-pc-img:hover {
    transform: scale(1.08);
}
@media (min-width: 769px) {
    .market-list {
        display: none;
    }
    .market-list-pc {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
}
/* PC端核心优势：使用 pc-3.png */
.advantage-section-pc {
    display: none;
}
.advantage-pc-img {
    display: block;
    width: 100%;
    height: 910px;
    object-fit: cover;
}
@media (min-width: 769px) {
    .advantage-section {
        display: none;
    }
    .advantage-section-pc {
        display: block;
        width: 100%;
    }
}
/* PC端加盟类型：3张图 + 标题 */
.join-type-pc {
    display: none;
}
.join-type-pc-subtitle {
    font-size: 29px;
    color: #979797;
    text-decoration: underline;
    text-underline-offset: 10px;       /* 下划线距离文字 10px */
    text-align: center;
    margin-bottom: 28px;                /* 18 + 10 抵消下划线占的视觉空间 */
    font-weight: normal;
}
.join-type-pc-title {
    font-size: 43px;
    color: #070806;
    text-align: center;
    font-weight: bold;
    margin-bottom: 40px;
}
.join-type-pc-imgs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
}
.join-type-pc-img {
    display: block;
    width: 450px;
    height: 317px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
    cursor: pointer;
}
.join-type-pc-img:hover,
.join-type-pc-imgs img.join-type-pc-img:hover {
    transform: scale(1.05);
}
@media (min-width: 769px) {
    .advantage-section1 {
        display: none;
    }
    .join-type-pc {
        display: block;
        width: 100%;
        padding: 60px 0 80px;
    }
}
/* 核心优势模块 - 移动端 */
.advantage-section {
    display: none;
    width: 100%;
    min-height: 615px;
    flex-direction: column;
    align-items: center;
    padding: 40px 15px;
    background-size: cover;
    background-position: center center;
}

@media (max-width: 768px) {
    .advantage-section {
        display: flex;
    }
}

.advantage-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 21px;
}

.advantage-card {
    width: 346px;
    min-height: 524px;
    padding: 25px 28px 14px 19px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.advantage-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #FDD000;
    text-align: left;
    margin-bottom: 12px;
}

.advantage-card-desc {
    font-size: 14px;
    color: #747474;
    line-height: 21px;
    margin-bottom: 14px;
}

.advantage-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.advantage-card-list li {
    font-size: 14px;
    color: #70224C;
    line-height: 24px;
    padding: 10px 0;
    border-top: 0.5px solid #9F9F9F;
}

.advantage-card-img {
    width: 305px;
    height: 154px;
    display: block;
    margin: 0 auto;
}

/* 移动端加盟类型 */
.join-type-mobile {
    display: block;
    padding: 30px 0;
    text-align: center;
}
.join-type-mobile-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 23px;
    margin-bottom: 15px;
}
.join-type-mobile-subtitle {
    font-size: 14px;
    color: #979797;
    margin-bottom: 20px;
}
.join-type-mobile-imgs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 9px 0 19px;
}
.join-type-mobile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 769px) {
    .join-type-mobile {
        display: none;
    }
}
/* 门店展示模块 */
.store-section {
    padding: 20px 15px 0;
    text-align: center;
}
.store-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.store-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}
.store-imgs {
    position: relative;
    overflow: hidden;
}
@media (min-width: 769px) {
    .store-imgs {
        padding: 0 250px;
        box-sizing: border-box;
    }
}
.store-slider {
    position: relative;
    width: 100%;
}
.store-slide {
    /* 所有 slide 绝对定位堆叠在同一位置，active 的一张可见 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.store-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
    /* active slide 占位，让 .store-slider 有高度（不绝对定位） */
    position: relative;
}
.store-slide img {
    width: 100%;
    border-radius: 4px;
}
@media (min-width: 769px) {
    /* PC 端：每张图自适应，间距 22px，2x2 居中 */
    .store-slider {
        display: flex;
        position: relative;
        justify-content: center;
    }
    .store-slide {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 22px;
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    .store-slide.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: relative;
        z-index: 1;
    }
    .store-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.store-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
}
.store-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}
.store-dot.active {
    background: #f5c244;
}
/* 加盟类型模块 */
.join-type-section {
    padding: 20px 15px;
}
.join-type-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}
.join-type-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.join-type-card {
    background-color: #fff8e6;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.join-type-card img {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: block;
}
.join-type-card h3 {
    font-size: 16px;
    color: #ff8c00;
    margin-bottom: 8px;
}
.join-type-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
/* 加盟表单模块 */
.form-section {
    padding: 10px 15px 20px;
    background: linear-gradient( 0deg, #FFF9E8 0%, #FFEBBF 62.79%, #FFBE32 100%);
    position: relative;
    text-align: center;
}
.form-section h2 {
    margin-bottom: 15px;
}
.form-section-bg {
    display: none;        /* 移动端隐藏 */
}
@media (min-width: 769px) {
    .form-section {
        background: none;             /* PC 端隐藏渐变 */
        min-height: 799px;
        /* 改用 flex 让标题+表单在 799px 内垂直居中 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
    }
    .form-section-bg {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 799px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center center;
        z-index: 0;
    }
    .form-section > *:not(.form-section-bg) {
        position: relative;
        z-index: 1;       /* 表单内容浮在背景图之上 */
    }
}
.form-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}
.join-form {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: left;
}
.form-item {
    margin-bottom: 5px;
}
.form-item:nth-child(4) {
    margin-bottom: 20px;
}
.form-item label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}
.form-item input, .form-item select, .form-item textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid var(--primary-dark);
    border-radius: 0;
    font-size: 13px;
    color: #333;
    background: transparent;
}
.form-item input.error, .form-item select.error, .form-item textarea.error {
    border-color: #e74c3c;
}
.form-item .error-msg {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.form-item input.error + .error-msg,
.form-item input.error ~ .error-msg {
    display: block;
}
.form-item textarea {
    min-height: 80px;
    resize: none;
}
.form-btn {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.form-btn:hover {
    background-color:  #333;
}
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.radio-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.radio-input-wrap input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border: 2px solid #ddd !important;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none !important;
    box-shadow: none !important;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
}
/* 选中状态：边框变为主题色 */
.radio-input-wrap input[type="radio"]:checked {
    border-color: var(--primary-dark);
}
/* 选中时 span::after 显示中心白点 */
.radio-input-wrap:has(input[type="radio"]:checked)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--primary-dark);
    border-radius: 50%;
    pointer-events: none;
}
/* focus 时移除浏览器默认黄边 */
.radio-input-wrap input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

/* ============================================================
 *  PC 端加盟表单：大气风格
 * ============================================================ */
@media (min-width: 769px) {
    .form-title {
        font-size: 32px;
        font-weight: 700;
        color: #333;
        margin-bottom: 30px;
        letter-spacing: 2px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .join-form {
        width: 100%;
        max-width: 560px;
        padding: 40px 48px;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }

    .form-item {
        margin-bottom: 8px;
    }
    .form-item:nth-child(4) {
        margin-bottom: 32px;
    }
    .form-item label {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        display: block;
    }
    .form-item input {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 8px;
        border: 1.5px solid #e0e0e0;
        transition: border-color 0.2s, box-shadow 0.2s;
        height: 54px;
    }
    .form-item input:focus {
        border-bottom-color: var(--primary-dark);
        box-shadow: none;
        outline: none;
    }
    .form-item .error-msg {
        font-size: 13px;
        margin-top: 6px;
    }

    /* Radio 更大更醒目 */
    .radio-group {
        gap: 32px;
    }
    .radio-label {
        font-size: 16px;
        font-weight: 500;
    }
    .radio-input-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        margin-right: 10px;
        flex-shrink: 0;
        vertical-align: middle;
    }
    .radio-input-wrap input[type="radio"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        margin: 0;
        padding: 0;
    }
    .radio-input-wrap:has(input[type="radio"]:checked)::after {
        width: 8px;
        height: 8px;
    }

    /* 提交按钮更大气 */
    .form-btn {
        padding: 18px 40px;
        font-size: 18px;
        font-weight: 700;
        border-radius: 10px;
        letter-spacing: 4px;
        box-shadow: 0 8px 24px rgba(51, 51, 51, 0.35);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .form-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(51, 51, 51, 0.45);
    }
    .form-btn:active {
        transform: translateY(0);
    }
}