/* 预约体验弹窗样式 */

/* 遮罩层 */
.pageBg {
    position: fixed;
    z-index: 99999;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    top: 0;
    cursor: pointer;
}

/* 预约弹窗 */
.zzNav {
    position: fixed;
    right: -100%;
    top: 0;
    width: 700px;
    max-width: 100%;
    background: #fafafa;
    height: 100%;
    z-index: 100000;
    overflow: hidden;
    transition: right 0.5s ease;
}

.zzNav.on {
    right: 0;
}

.zzNav .main {
    padding: 80px 0 0 50px;
}

.zzNav .scroll {
    position: relative;
    overflow: auto;
    height: 85vh;
    padding-right: 50px;
}

.zzNav .scroll::-webkit-scrollbar {
    width: 4px;
}

.zzNav .scroll::-webkit-scrollbar-track {
    background-color: #e5e5e5;
}

.zzNav .scroll::-webkit-scrollbar-thumb {
    background-color: #2563eb;
}

.zzNav .closeIco {
    position: absolute;
    right: 0;
    top: -50px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zzNav .closeIco img {
    width: 20px;
    height: 20px;
}

.zzNav .title {
    font-size: 28px;
    color: #2563eb;
    line-height: 32px;
    font-weight: bold;
    padding-bottom: 15px;
}

.zzNav .msg {
    font-size: 14px;
    color: #999;
    padding-bottom: 35px;
}

.zzNav .form {
    padding-top: 10px;
    overflow: hidden;
}

.zzNav .form ul {
    margin-right: -30px;
}

.zzNav .form li {
    float: left;
    width: 50%;
    padding-bottom: 15px;
}

.zzNav .form li .box {
    margin-right: 30px;
    position: relative;
}

.zzNav .form li p {
    height: 24px;
    font-size: 14px;
    color: #888;
    font-weight: bold;
}

.zzNav .form li p em {
    color: #2563eb;
    padding-left: 10px;
}

.zzNav .form li .input1 {
    width: 100%;
    height: 46px;
    line-height: 46px;
    background: #eee;
    font-size: 14px;
    padding: 0 15px;
    border: 2px solid transparent;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.zzNav .form li .input1.input-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.zzNav .form li .captcha-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 46px;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.zzNav .form li .captcha-img:hover {
    opacity: 0.8;
}
.zzNav .form li .captcha-img svg {
    width: 100%;
    height: 100%;
}

.zzNav .form2 {
    margin-top: 10px;
}

.zzNav .form2 h2 {
    color: #888;
    padding-bottom: 10px;
    font-size: 14px;
    font-weight: normal;
}

.zzNav .form2 textarea {
    width: 100%;
    height: 80px;
    background: #eee;
    border: none;
    outline: none;
    padding: 15px;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
}

.zzNav .btnDiv {
    padding-top: 20px;
}

.zzNav .btnDiv a {
    display: inline-block;
    width: 160px;
    height: 46px;
    line-height: 46px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    position: relative;
    padding-left: 10px;
    cursor: pointer;
}

.zzNav .btnDiv a:before {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    margin-top: -4px;
    width: 17px;
    height: 7px;
    background: url(../img/arrow-right-white.svg) center no-repeat;
    background-size: contain;
}

.zzNav .btnDiv a:hover {
    background: #1d4ed8;
}

/* 下拉选择框 */
.zzNav .selectBox {
    margin-right: -30px;
}

.zzNav .selectBox .leftDiv,
.zzNav .selectBox .rightDiv {
    width: 100%;
}

.zzNav .selectBox .ddan {
    margin-right: 30px;
}

.zzNav .selectBox .bdc {
    margin-right: -10px;
}

.zzNav .selectBox .liDiv {
    width: 50%;
    float: left;
    padding-bottom: 10px;
    position: relative;
}

.zzNav .selectBox .liDiv2 {
    width: 100%;
}

.zzNav .selectBox .liDiv p {
    height: 24px;
    font-size: 14px;
    color: #888;
    font-weight: bold;
}

.zzNav .selectBox .liDiv p em {
    color: #2563eb;
    padding-left: 10px;
}

.zzNav .selectBox .liDiv .box {
    margin-right: 10px;
}

.zzNav .selectBox .select {
    width: 100%;
    position: relative;
    height: 50px;
}

.zzNav .selectBox .select dt {
    height: 46px;
    line-height: 46px;
    border: #2563eb solid 2px;
    display: inline-block;
    width: 100%;
    background: #fafafa url(../img/select-arrow.svg) no-repeat right 15px center;
    background-size: 12px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.zzNav .selectBox .select dt a {
    font-size: 16px;
    color: #000;
    position: relative;
    padding-left: 15px;
    display: block;
    text-align: left;
    overflow: hidden;
}

.zzNav .selectBox .select dd {
    margin: 0;
    position: absolute;
    left: 0;
    top: 46px;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.zzNav .selectBox .select dd ul {
    list-style: none;
    overflow: auto;
    padding: 0 15px;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.zzNav .selectBox .select dd ul li {
    width: 100%;
    text-align: left;
    line-height: 40px;
    height: 40px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #999;
    font-size: 14px;
}

.zzNav .selectBox .select dd ul li:last-child {
    border-bottom: none;
}

.zzNav .selectBox .select dd ul li:hover {
    color: #2563eb;
}

.zzNav .selectBox .select.on dt {
    color: #2563eb;
}

.zzNav .selectBox .select dd ul::-webkit-scrollbar {
    width: 4px;
}

.zzNav .selectBox .select dd ul::-webkit-scrollbar-track {
    background-color: #e5e5e5;
}

.zzNav .selectBox .select dd ul::-webkit-scrollbar-thumb {
    background-color: #2563eb;
}

.clear_f {
    clear: both;
    height: 0;
    padding: 0;
    margin: 0;
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .zzNav {
        width: 100%;
        overflow-x: hidden;
    }
    
    .zzNav .main {
        padding: 15px 15px 0 15px;
        overflow-x: hidden;
    }
    
    .zzNav .scroll {
        padding-right: 0;
        height: calc(100vh - 60px);
        overflow-x: hidden;
    }
    
    .zzNav .form li {
        width: 100%;
    }
    
    .zzNav .form ul {
        margin-right: 0;
    }
    
    .zzNav .form li .box {
        margin-right: 0;
    }
    
    .zzNav .selectBox {
        margin-right: 0;
    }
    
    .zzNav .selectBox .ddan {
        margin-right: 0;
    }
    
    .zzNav .selectBox .bdc {
        margin-right: 0;
    }
    
    .zzNav .selectBox .liDiv .box {
        margin-right: 0;
    }
    
    .zzNav .scroll {
        position: relative;
        padding-top: 0;
    }
    
    .zzNav .title {
        font-size: 20px;
        padding-right: 40px;
    }
    
    .zzNav .closeIco {
        position: absolute;
        right: 0;
        top: 0;
    }
}

/* 简化版弹窗样式 */
.zzNav > .tit {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.zzNav > .desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.zzNav > .form {
    padding: 0;
}

.zzNav > .form ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zzNav > .form li {
    margin-bottom: 15px;
}

.zzNav > .form .yzm-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zzNav > .form .yzm-row .input1 {
    flex: 1;
}

.zzNav > .form .yzm-row canvas {
    width: 120px;
    height: 46px;
    cursor: pointer;
    border-radius: 4px;
}

.zzNav > .form .textarea1 {
    height: 80px;
    resize: none;
}

/* 简化版下拉选择框 */
.select-wrap {
    margin-bottom: 15px;
}

.select-box {
    position: relative;
}

.select-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 46px;
    padding: 0 15px;
    background: #eee;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.3s;
}

.select-selected:hover {
    border-color: #2563eb;
}

.select-selected span {
    color: #333;
    font-size: 14px;
}

.select-selected .arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.select-box.open .select-selected .arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.select-box.open .select-options {
    display: block;
}

.select-options li {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.select-options li:hover {
    background: #f5f5f5;
    color: #2563eb;
}

/* Toast 提示框 */
.toast-container {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 90vw;
    text-align: left;
    word-break: break-word;
}

.toast::before {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.toast-success {
    background: #fff;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.toast.toast-success::before {
    content: "✓";
    background: #22c55e;
    color: #fff;
}

.toast.toast-error {
    background: #fff;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.toast.toast-error::before {
    content: "✕";
    background: #ef4444;
    color: #fff;
}

.toast.toast-warning {
    background: #fff;
    color: #92400e;
    border: 1px solid #fde68a;
}
.toast.toast-warning::before {
    content: "!";
    background: #f59e0b;
    color: #fff;
}

.toast.toast-info {
    background: #fff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.toast.toast-info::before {
    content: "i";
    background: #3b82f6;
    color: #fff;
}

@media (max-width: 768px) {
    .toast-container {
        top: 30px;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .toast {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
        width: auto;
        max-width: calc(100vw - 40px);
    }
}
