/* 供应商入驻申请页面样式 */

/* 禁用index_carp.css中对.homepc1的自定义字体设置 */
.homepc1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.SupplierApply {
    width: 100%;
    padding: 10px;
}

.SupplierApply_box1 {
    margin-bottom: 20px;
}

.SupplierApply_box1 h3 {
    margin-top: 20px;
    text-align: center;
    font-size: 0.24rem;
}

.SupplierApply_box5 {
    width: 28%;
    text-align: right;
    white-space: nowrap;
}

.SupplierApply_box1 h2 {
    font-size: 0.24rem;
    text-align: center;
}

.SupplierApply_box1 p {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #4A4A4A;
}

.SupplierApply_box2 {
    display: flex;
    align-items: center;
    margin-bottom: 40px !important;
}

.SupplierApply_box4 {
    background: #FF9641;
    border-radius: 29px;
    font-size: 14px;
    color: #FFFFFF;
    padding: 10px 40px;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

.SupplierApply_box4:hover {
    background: #e5853a;
}

.SupplierApply_box3 {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.SupplierApply_select {
    color: #555;
}

.SupplierApply_address_fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.SupplierApply_address_detail {
    grid-column: 1 / -1;
}

.SupplierApply_agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 72%;
    margin: -10px 0 20px auto;
    color: #4A4A4A;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.SupplierApply_agreement label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-weight: normal;
}

.SupplierApply_agreement input {
    margin: 0 6px 0 0;
}

.SupplierApply_agreement_link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    font: inherit;
    background: transparent;
    color: #fe700f;
    line-height: 1.5;
    cursor: pointer;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.SupplierApply_agreement_link:hover {
    text-decoration: underline;
}

/* PC端样式适配 */
@media (min-width: 750px) {
    .product_box1 {
        position: relative;
    }

    .product_box2 {
        display: none;
        width: 190px;
        position: absolute;
        top: 60px;
        background-color: #fff;
        left: 397px;
        z-index: 9999;
        border-radius: 12px;
    }

    .SupplierApply {
        display: flex;
        max-width: 1189px;
        align-items: center;
        justify-content: space-between;
        margin: 0 auto;
    }

    .SupplierApply_box2 {
        display: flex;
        align-items: center;
        margin-bottom: 40px !important;
    }

    .SupplierApply_box {
        margin: 100px auto;
        padding: 95px 0px;
        width: 65%;
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    }

    .SupplierApply_box7 {
        width: 65%;
        margin: 0 auto;
    }

    .SupplierApply_box3 {
        display: flex;
        margin-top: 10px;
        justify-content: center;
    }

    .SupplierApply_box4 {
        background: #FF9641;
        border-radius: 29px;
        font-size: 14px;
        color: #FFFFFF;
        padding: 6px 28px;
        margin-top: 10px;
        cursor: pointer;
        border: none;
    }

    .SupplierApply_box4:hover {
        background: #e5853a;
    }

    .SupplierApply_box1 {
        margin-bottom: 70px;
    }

    .SupplierApply_box1 h3 {
        margin-top: 30px;
        text-align: center;
    }

    .SupplierApply_box1 h2 {
        text-align: center;
    }

    .SupplierApply_box1 p {
        margin-top: 4px;
        text-align: center;
        font-size: 12px;
        color: #4A4A4A;
    }

    .SupplierApply_box5 {
        font-size: 18px;
        color: #4A4A4A;
        white-space: nowrap;
        width: 34%;
    }

    .SupplierApply_box6 {
        width: 100%;
    }

    .SupplierApply_agreement {
        width: 66%;
        margin: -8px 0 24px auto;
        font-size: 14px;
    }
}

@media (max-width: 749px) {
    .SupplierApply_agreement {
        width: 100%;
        margin: -10px auto 20px;
    }

    .SupplierApply_address_fields {
        grid-template-columns: 1fr;
    }
}

/* 自定义弹框样式 */
.custom-alert {
    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: center;
    z-index: 99999;
}

.custom-alert-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.custom-alert-icon {
    width: 50px;
    height: 50px;
    background-color: #FF9641;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
    font-weight: bold;
}

.custom-alert-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-alert-btn {
    background-color: #FF9641;
    color: #fff;
    border: none;
    padding: 10px 40px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-alert-btn:hover {
    background-color: #e5853a;
}

.agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.agreement-modal.is-open {
    display: flex !important;
}

.agreement-modal-content {
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.agreement-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.agreement-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.agreement-modal-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #888;
    font-size: 28px;
    line-height: 24px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    padding: 0;
}

.agreement-modal-close:hover {
    color: #333;
}

.agreement-modal-body {
    padding: 18px 24px 28px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    color: #4A4A4A;
    font-size: 14px;
    line-height: 1.8;
}

.agreement-modal-tip {
    padding: 10px 12px;
    margin-bottom: 16px;
    background: #fff7f0;
    color: #a85b1e;
    border-radius: 6px;
}

.agreement-modal-body h4 {
    margin: 18px 0 6px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.agreement-modal-body p {
    margin: 0 0 8px;
}

.agreement-modal-footer {
    flex: 0 0 auto;
    padding: 14px 24px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.agreement-modal-confirm {
    display: inline-block;
    text-decoration: none;
}
