/* Lead Form V2 */
.beisen-lead-v2 {
    position: relative;
    overflow: visible;
    margin-bottom: 0 !important;
    margin-top: 0;
}

.lead-v2-container {
    position: relative;
    z-index: 2;
}

.lead-v2-flex-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 改为垂直居中，确保无图片时也平衡 */
    gap: 60px;
    min-height: 320px; /* 统一最小高度 */
}

.lead-v2-content {
    flex: 1;
    max-width: 650px;
    text-align: left;
    background: transparent;
    padding: 60px 0; /* 统一缩减上下边距 */
    position: relative;
    z-index: 5;
}

.lead-v2-content .lead-v2-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
    line-height: 1.2 !important;
}

.lead-v2-content .lead-v2-subtitle {
    font-size: 18px !important;
    margin-bottom: 32px !important;
    line-height: 1.6 !important;
}

.beisen-lead-v2.is-dark .lead-v2-title { color: #fff !important; }
.beisen-lead-v2.is-light .lead-v2-title { color: #252231 !important; }
.beisen-lead-v2.is-dark .lead-v2-subtitle { color: rgba(255,255,255,0.8) !important; }
.beisen-lead-v2.is-light .lead-v2-subtitle { color: #64748b !important; }

.lead-v2-btns {
    display: flex;
    gap: 15px;
}

.lead-v2-btns .lead-trigger-btn {
    padding: 12px 36px !important;
    font-size: 15px !important;
    height: auto !important;
    border-radius: 50px !important;
}

.lead-v2-image {
    width: 420px; /* 适度缩小图片宽度 */
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 3;
    overflow: visible;
    background: transparent !important;
    box-shadow: none !important;
    position: relative;
    margin-bottom: -60px; /* 统一偏移 */
    margin-right: -20px;
}

.lead-v2-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Modals */
.beisen-lead-modal {
    display: none;
    position: fixed !important;
    z-index: 999999 !important;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.lead-modal-content {
    background: #fff;
    position: relative; 
    width: 95%;
    max-width: 960px;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    margin: 0;
    overflow: hidden;
    animation: leadModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-modal-content.dual-column {
    display: flex;
    min-height: 560px;
}

.lead-modal-left {
    flex: 1.2;
    background: var(--beisen-primary);
    padding: 60px;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-info-title { font-size: 32px; font-weight: 800; margin-bottom: 16px; color: #fff; }
.modal-info-desc { font-size: 16px; opacity: 0.9; line-height: 1.6; margin-bottom: 40px; }
.modal-feature-list { list-style: none; padding: 0; margin: 0; }
.modal-feature-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 600; font-size: 16px; }
.check-icon { flex-shrink: 0; background: rgba(255, 255, 255, 0.2); border-radius: 50%; padding: 4px; }
.lead-modal-visual { position: absolute; right: -20px; bottom: -20px; width: 280px; opacity: 0.8; }
.lead-modal-visual img { width: 100%; height: auto; object-fit: contain; }

.lead-modal-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.lead-modal-form label { display: block; font-weight: 700; color: var(--beisen-dark); margin-bottom: 10px; font-size: 14px; }
.lead-modal-form .form-group { margin-bottom: 20px; }
.lead-modal-form input { width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 15px; transition: all 0.3s; background: var(--beisen-gray-bg, #F1F5F9); box-sizing: border-box; }
.lead-modal-form input:focus { border-color: var(--beisen-primary); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(var(--beisen-primary-rgb), 0.1); }
.lead-modal-form .btn-primary { 
    width: 100%; 
    margin-top: 10px; 
    height: 54px; 
    background: var(--beisen-btn-gradient, linear-gradient(135deg, #2563EB 0%, #7C3AED 100%));
    box-shadow: none;
    border-radius: 50px !important;
}
.lead-modal-form .btn-primary:hover { 
    filter: brightness(1.05); 
    transform: translateY(-2px); 
    box-shadow: none;
}
.form-submit-row { margin-top: 10px; }

.lead-modal-close { 
    position: absolute; 
    right: 20px; 
    top: 20px; 
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 100; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lead-modal-close:hover { 
    color: var(--beisen-primary); 
    transform: rotate(90deg);
    background: #fff;
    border-color: var(--beisen-primary);
    box-shadow: 0 8px 20px rgba(var(--beisen-primary-rgb), 0.15);
}

.lead-modal-close svg {
    width: 20px;
    height: 20px;
}

@keyframes leadModalIn { from { opacity: 0; transform: scale(0.95) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 1024px) {
    .lead-v2-content { max-width: 70%; margin-left: 0; }
}

@media (max-width: 991px) {
    .beisen-lead-v2 { margin-top: 40px; }
    .lead-v2-flex-wrap { flex-direction: column; text-align: center; gap: 40px; min-height: auto; }
    .lead-v2-content { max-width: 100%; padding: 30px; }
    .lead-v2-btns { justify-content: center; }
    .lead-v2-image { position: static; width: 100%; height: 300px; margin-top: -80px; margin-bottom: -20px; }
}

@media (max-width: 768px) {
    .lead-modal-content.dual-column { flex-direction: column; max-height: 90vh; overflow-y: auto; }
    .lead-modal-left { padding: 40px; flex: none; }
    .lead-modal-visual { display: none; }
    .lead-modal-right { padding: 40px; }
    .lead-modal-left .modal-info-title, .lead-modal-left .modal-info-desc { display: none; }
    .beisen-lead-v2 { padding: 100px 0; text-align: center; }
    .lead-v2-content { max-width: 100%; margin: 0 auto; }
    .lead-v2-title { font-size: 32px; }
    .lead-v2-btns { justify-content: center; flex-direction: column; }
}
