/* ============================================================
   预约演示页面 (demo.css)
   左侧: 文案 + 联系方式 / 右侧: 提交表单
   移动端: 只显示右侧表单
   ============================================================ */

/* ===== 整体布局 ===== */
.demo-page {
    display: flex;
    min-height: 100vh;
    background: #FFFFFF;
    padding-top: 70px;
    /* 固定导航栏高度 */
}

/* ===== 左侧区域 ===== */
.demo-left {
    flex: 0 0 50%;
    max-width: 50%;
    background: linear-gradient(180deg, #e4f1ff 0%, #fefefe 100%);
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.demo-left-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 10px);
    flex-grow: 1;
    max-width: 540px;
    margin: 0 auto;
}

.demo-logo {
    width: clamp(40px, 5vw, 64px);
    height: clamp(40px, 5vw, 64px);
    margin-bottom: 4px;
    margin-left: -6px;
}

.demo-label {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(14px, 1.6vw, 20px);
    font-weight: 500;
    line-height: normal;
    text-align: left;
    letter-spacing: 0em;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #0534BA;
}

.demo-title {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0em;
    font-feature-settings: "kern" on;
    color: #222222;
    margin: 0;
}

.demo-subtitle {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(22px, 3.2vw, 36px);
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    color: #222222;
    margin: 0;
}

.demo-num {
    font-family: "DingTalk JinBuTi", "Source Han Sans", sans-serif;
    font-size: clamp(24px, 3.6vw, 40px);
    color: #0534BA;
}

.demo-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 14px);
}

.demo-point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: normal;
    line-height: 1.7;
    color: #444444;
    margin: 0;
}

.demo-point::before {
    flex-shrink: 0;
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: clamp(2px, 0.25vw, 3px);
    border-radius: 50%;
    opacity: 1;
    background: url("../img/li-icon.png") center / cover no-repeat;
}

/* ===== 底部联系方式卡片 ===== */
/* 外框：浅蓝背景 + 阴影 */
.demo-contact-outer {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    background: #E4F1FF;
    box-shadow: 0px 0px 16px 0px rgba(5, 52, 186, 0.16);
    padding: 20px;
    margin-top: clamp(8px, 1.5vw, 16px);
}

/* 内框：白色卡片 */
.demo-contact-inner {
    width: 100%;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: clamp(12px, 1.5vw, 20px);
    box-sizing: border-box;
}

.demo-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.5;
    color: #333333;
}

.demo-contact-item img {
    width: clamp(16px, 1.5vw, 20px);
    height: clamp(16px, 1.5vw, 20px);
    flex-shrink: 0;
    margin-top: 2px;
}

/* 二维码区（位于白卡内底部） */
.demo-contact-qr {
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: clamp(8px, 1vw, 12px);
    padding-top: clamp(8px, 1vw, 12px);
    border-top: 1px dashed #e0e0e0;
}

.demo-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex: 1 1 0;
    min-width: 0;
}

.demo-qr-item:hover {
    transform: translateY(-2px);
}

.demo-qr-item img {
    width: clamp(56px, 6vw, 80px);
    height: clamp(56px, 6vw, 80px);
    border-radius: 4px;
}

.demo-qr-item span {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(10px, 0.9vw, 12px);
    color: #666666;
    text-align: center;
}

/* ===== 右侧区域 ===== */
.demo-right {
    flex: 0 0 50%;
    max-width: 50%;
    background: linear-gradient(270deg, #0534ba 0%, #0047f7 100%);
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #FFFFFF;
    padding: 0 8%;
}

.demo-right-inner {
    width: 100%;
    max-width: 100%;
    /* max-width: 540px; */
    display: flex;
    flex-direction: column;
    /* gap: clamp(12px, 1.5vw, 16px); */
    box-sizing: border-box;
    min-width: 0;
}

.demo-right-header {
    text-align: center;
    /* margin-bottom: 8px; */
}

.demo-free-label {
    display: inline-block;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    color: #FFFFFF;
    margin-bottom: clamp(8px, 1vw, 12px);
}

.demo-right-title {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0em;
    color: #FFFFFF;
    margin: 0 0 clamp(8px, 1vw, 12px) 0;
}

.demo-right-sub {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: normal;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 表单卡片 - 蓝色玻璃感 */
.demo-form-card,
.demo-form-card.submit-form-card {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 40px);
    gap: clamp(4px, 1.5vw, 8px) !important;
    border-radius: 20px;
    background: #458AF9;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-width: 0;
}

.demo-form-card .submit-form-card-title {
    text-align: center;
    margin: 0 0 4px 0;
    font-size: clamp(16px, 1.3vw, 18px);
}

.demo-form-card .submit-form-footer {
    margin: 0;
    font-size: clamp(12px, 0.9vw, 14px);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.demo-form-card .form-group-compact {
    margin-bottom: 8px;
}

.demo-form-card .form-control-cta {
    width: 100%;
    max-width: 100%;
    font-size: clamp(13px, 1vw, 15px);
    padding: clamp(10px, 1vw, 14px) clamp(14px, 1.2vw, 18px);
    box-sizing: border-box;
    min-width: 0;
    /* margin-bottom: 14px; */
}

.demo-form-card form,
.demo-form-card form>* {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.demo-form-card .btn-submit-cta {
    width: 100%;
    padding: clamp(5px, 0.7vw, 8px) clamp(14px, 2vw, 32px);
}

/* 平板竖屏 ≤991px */
@media (max-width: 991px) {
    .demo-form-card .btn-submit-cta {
        font-size: clamp(13px, 2vw, 15px);
        padding: clamp(5px, 1vw, 8px) clamp(14px, 3vw, 28px);
    }
}

/* 手机端 ≤767px */
@media (max-width: 767px) {
    .demo-form-card .btn-submit-cta {
        font-size: clamp(14px, 3.5vw, 16px);
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 clamp(16px, 4vw, 24px) !important;
    }
}

/* 小手机 ≤480px */
@media (max-width: 480px) {
    .demo-form-card .btn-submit-cta {
        font-size: 14px;
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 18px !important;
    }
}

/* ===== 响应式 ===== */

/* 平板横屏/小屏笔记本：≤1199px */
@media (max-width: 1199px) {
    .demo-left {
        padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem);
    }

    .demo-left-inner {
        max-width: 460px;
        padding-left: clamp(0px, 3vw, 30px);
    }
}

/* 平板竖屏：≤991px */
@media (max-width: 991px) {
    .demo-page {
        flex-direction: column;
    }

    /* 左侧：文案（左）+ 联系方式（右）并排 */
    .demo-left {
        display: flex;
        flex: 0 0 auto;
        max-width: 100%;
        background: #FFFFFF;
        padding: 32px 6%;
        order: 1;
        /* 放到右侧表单之前 */
    }

    .demo-left-inner {
        max-width: 100%;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: clamp(4px, 0.8vw, 8px) clamp(20px, 3vw, 36px);
        align-items: start;
    }

    .demo-contact-outer {
        grid-column: 2;
        grid-row: 1 / 20;
        max-width: 300px;
        margin: 0;
        border-radius: 16px;
        flex-shrink: 0;
    }

    .demo-right {
        flex: 1 1 100%;
        max-width: 100%;
        min-height: auto;
        order: 2;
        /* 右侧表单在下 */
        align-items: stretch;
        padding: 60px 8%;
    }

    .demo-right-inner {
        max-width: 540px;
        margin: 0 auto;
        width: 100%;
    }

    .demo-form-card,
    .demo-form-card.submit-form-card {
        border-radius: 16px;
        border-width: 2px;
        max-width: 100%;
    }

    /* 字体调整 */
    .demo-label {
        font-size: clamp(13px, 1.6vw, 18px);
    }

    .demo-title {
        font-size: clamp(24px, 4vw, 36px);
    }

    .demo-subtitle {
        font-size: clamp(18px, 3.2vw, 28px);
    }

    .demo-point {
        font-size: clamp(12px, 1.1vw, 15px);
    }

    .demo-contact-item {
        font-size: clamp(11px, 1vw, 13px);
    }

    .demo-contact-inner {
        padding: 16px;
        gap: clamp(10px, 1.5vw, 16px);
    }

    .demo-contact-outer {
        padding: 16px;
    }
}

/* 手机端：≤767px */
@media (max-width: 767px) {

    .demo-left {
        padding: 24px 4%;
    }

    .demo-left-inner {
        gap: clamp(3px, 0.6vw, 6px) clamp(14px, 2vw, 24px);
    }

    .demo-right {
        padding: 40px 5%;
    }

    .demo-right-inner {
        max-width: 100%;
    }

    .demo-form-card,
    .demo-form-card.submit-form-card {
        padding: 20px 16px;
        gap: 14px;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
    }

    .demo-contact-outer {
        max-width: 250px;
        padding: 14px;
        border-radius: 14px;
    }

    .demo-contact-inner {
        padding: 14px;
        gap: clamp(8px, 1.5vw, 12px);
    }

    /* 字体调整 */
    .demo-label {
        font-size: clamp(12px, 2vw, 15px);
    }

    .demo-title {
        font-size: clamp(20px, 4.5vw, 28px);
    }

    .demo-subtitle {
        font-size: clamp(15px, 3.5vw, 22px);
    }

    .demo-point {
        font-size: clamp(11px, 1.5vw, 14px);
    }

    .demo-point::before {
        width: clamp(14px, 2vw, 18px);
        height: clamp(14px, 2vw, 18px);
    }

    .demo-contact-item {
        font-size: clamp(10px, 1.2vw, 12px);
    }

    .demo-contact-item img {
        width: clamp(14px, 2vw, 18px);
        height: clamp(14px, 2vw, 18px);
    }

    .demo-qr-item img {
        width: clamp(48px, 7vw, 64px);
        height: clamp(48px, 7vw, 64px);
    }

    .demo-qr-item span {
        font-size: clamp(9px, 1vw, 11px);
    }
}

/* 小手机：≤480px */
@media (max-width: 480px) {
    .demo-page {
        padding-top: 60px;
    }

    /* 左侧背景与联系方式卡片一致，去掉内边距让卡片撑满 */
    .demo-left {
        padding: 0;
        background: #E4F1FF;
        order: 2;
    }

    /* 隐藏文本内容，只显示联系方式卡片 */
    .demo-left-inner {
        display: block;
    }

    .demo-left-inner> :not(.demo-contact-outer) {
        display: none;
    }

    .demo-right {
        padding: 32px 4%;
        order: 1;
    }

    /* 联系方式卡片撑满整个屏幕宽度 */
    .demo-contact-outer {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        padding: 16px;
        grid-column: auto;
        grid-row: auto;
        margin: 0;
        box-shadow: none;
    }

    .demo-contact-inner {
        width: 43vh;
        padding: 16px;
        gap: clamp(10px, 2vw, 14px);
    }

    .demo-contact-item {
        font-size: 12px;
    }

    .demo-contact-item img {
        width: 16px;
        height: 16px;
    }

    .demo-qr-item img {
        width: 52px;
        height: 52px;
    }

    .demo-qr-item span {
        font-size: 10px;
    }
}

/* ===== 二维码放大预览弹窗 ===== */
.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal.is-open {
    display: flex;
}

.qr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: qrModalFade 0.25s ease;
}

.qr-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: qrModalZoom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-modal-close {
    position: absolute;
    top: 0px;
    right: 3px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.qr-modal-close:hover {
    background: #f0f0f0;
    color: #222222;
}

.qr-modal-img {
    max-width: 60vw;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.qr-modal-caption {
    margin: 0;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    text-align: center;
}

@keyframes qrModalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes qrModalZoom {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 弹窗在小屏上的适配 */
@media (max-width: 767px) {
    .qr-modal-content {
        padding: 20px 16px 16px;
    }

    .qr-modal-img {
        max-width: 75vw;
        max-height: 60vh;
    }

    .qr-modal-caption {
        font-size: 14px;
    }
}