/* 招商加盟页面特定样式 */

/* BANNER 和首页一样大小 + 底部渐隐渐变 + 文字居左 */
.join-banner {
    width: 100%;
    height: 600px;
    margin-top: 70px;
    background: url("../images/join-banner.jpg") center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 60px;
    position: relative;
}
/* 底部渐隐遮罩 */
.join-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(to top, #ffffff, transparent);
}
.join-banner h1,
.join-banner h2 {
    position: relative;
    z-index: 2;
}
.join-banner h1 {
    font-size: 36px;
    color: #ffa400;
    margin-bottom: 12px;
}
.join-banner h2 {
    font-size: 20px;
    color: #000000;
    font-weight: normal;
}

/* 4×2 网格 向上偏移 盖住banner渐隐 */
.join-grid {
    padding: 0 0 60px;
    margin-top: -80px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width:768px) {
    .join-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 加盟卡片 */
.join-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.join-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.09);
}

/* 你设置的 55% 扁格子 */
.card-img {
    width: 100%;
    height: 0;
    padding-top: 55%;
    background: #f6f6f6;
    position: relative;
}
.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-text {
    background: #ffa400;
    color: #fff;
    padding: 18px 20px;
    text-align: center;
}
.card-text h3 {
    font-size: 16px;
    margin-bottom: 4px;
}
.card-text p {
    font-size: 13px;
    opacity: 0.95;
}

/* 底部纯净大图 无边框无效果 */
.bottom-banner {
    width: 100%;
    margin-bottom: 40px;
}
.bottom-banner img {
    width: 100%;
    display: block;
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
    .join-banner {
        height: clamp(260px, 70vw, 360px);
        margin-top: clamp(52px, 14vw, 64px);
        padding: 0 20px;
        align-items: center;
        text-align: center;
    }
    .join-banner::after {
        height: 100px;
    }
    .join-banner h1 {
        font-size: clamp(20px, 6vw, 30px);
    }
    .join-banner h2 {
        font-size: clamp(12px, 3.6vw, 16px);
    }

    .join-grid {
        margin-top: -50px;
        gap: 18px;
        padding-bottom: 40px;
    }

    .card-text {
        padding: 14px 16px;
    }
    .card-text h3 {
        font-size: 15px;
    }
    .card-text p {
        font-size: 12px;
    }

    .bottom-banner {
        margin-bottom: 24px;
    }
}
