.hero-section {
    background: var(--gradient-science);

}

.hero-section::before {


background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='surface' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Crect width='20' height='20' fill='none' stroke='%23ffffff' stroke-width='0.3' stroke-opacity='0.03'/%3E%3Ccircle cx='5' cy='5' r='1' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='15' cy='5' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3Ccircle cx='5' cy='15' r='2' fill='%23ffffff' fill-opacity='0.07'/%3E%3Ccircle cx='15' cy='15' r='1' fill='%23ffffff' fill-opacity='0.05'/%3E%3Cpath d='M10,0 L10,20' stroke='%23ffffff' stroke-width='0.2' stroke-opacity='0.02'/%3E%3Cpath d='M0,10 L20,10' stroke='%23ffffff' stroke-width='0.2' stroke-opacity='0.02'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23surface)'/%3E%3C/svg%3E");
}


.form-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 20px 0;
}

.form-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-gray-200);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.form-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 表单控件样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 111, 179, 0.25);
    outline: 0;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* 选择框样式 */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    min-height: 42px;
    padding: 5px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

/* 文本域样式 */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* 按钮样式 */
.btn-submit {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #155a8a;
    border-color: #155a8a;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 验证信息样式 */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.invalid-feedback.show {
    display: block;
}

/* 成功/错误提示 */
.alert {
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 弹出框适配样式 */
.modal-form {
    padding: 15px;
}

.modal-form .form-container {
    padding: 20px;
    margin: 0;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .btn-submit {
        width: 100%;
    }
}

/* 特殊样式：电话和邮箱 */
.contact-fields {
    display: flex;
    gap: 15px;
}

@media (max-width: 576px) {
    .contact-fields {
        flex-direction: column;
        gap: 20px;
    }
}

/* 加载状态 */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 表单说明 */
.form-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* 产品选择标签样式 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background-color: #e9ecef;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
    transition: var(--transition);
}

.product-tag:hover {
    background-color: #dee2e6;
}

.product-tag.active {
    background-color: var(--primary-color);
    color: white;
}

.product-tag i {
    margin-right: 5px;
    font-size: 0.9rem;
}


.scheme-container {
            margin-bottom: 40px;
        }
        
        .scheme-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: var(--shadow);
            border: 1px solid var(--color-gray-200);
            transition: var(--transition);
        }
        
        .scheme-card:hover {
            box-shadow: var(--shadow-lg);
        }
        
        .scheme-header {
        
           margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--aluminum-light);
        }
        
        .scheme-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--secondary-color);
            margin: 0;
        }
        
        .scheme-description {
            color: var(--color-gray-600);
            margin-bottom: 20px;
            line-height: 1.6;
        }
          #map-container {
            width: 100%;
            height: 500px;
            margin: 20px 0;
        }
        /* 自定义卡片的样式 */
        .custom-card {
            position: absolute;
            width: 260px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            border: 1px solid #e8e8e8;
            overflow: hidden;
            font-family: 'Microsoft YaHei', sans-serif;
            pointer-events: auto; /* 允许卡片上的按钮点击 */
            transform: translate(-50%, -100%); /* 让卡片底部尖端对准坐标点 */
            margin-top: -15px; /* 调整位置，让卡片在标记点正上方 */
        }
        /* 添加一个小三角，指向地图标记点 */
        .custom-card::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid white;
            filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
        }
        .card-header {
            background: #1890ff;
            color: white;
            padding: 12px 16px;
            font-weight: bold;
            font-size: 16px;
        }
        .card-body {
            padding: 16px;
        }
        .info-item {
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
        }
        .info-icon {
            width: 20px;
            margin-right: 10px;
            font-size: 16px;
        }
        .info-content {
            flex: 1;
            font-size: 14px;
            color: #333;
            line-height: 1.5;
        }
        .info-content .label {
            color: #999;
            font-size: 12px;
        }
        .card-footer {
            padding: 12px 16px;
            border-top: 1px solid #f0f0f0;
            text-align: center;
        }
        .btn {
            display: inline-block;
            padding: 6px 16px;
            background: #1890ff;
            color: white;
            text-decoration: none;
            border-radius: 20px;
            font-size: 13px;
            transition: background 0.3s;
        }
        .btn:hover {
            background: #40a9ff;
        }
    #map-container{
        width: 100%; 
        height:800px

    }
    /* 响应式调整 */
@media (max-width: 768px) {
     #map-container{
        width: 100%; 
        height: 60vh;

    }
     .custom-card {
                width: 210px; /* 更小屏幕进一步缩小 */
            }
}

 

@media (max-width: 576px) {
     #map-container{
        width: 100%; 
        height: 60vh;

    }
     .custom-card {
                width: 210px; /* 更小屏幕进一步缩小 */
            }
   
}

