/* 1. 标题区域优化 */
.bg-primary.text-white.py-5 {
    background-color: #2C3E50 !important; /* 深灰工业风背景 */
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
}

/* 工业纹理叠加 */
.bg-primary.text-white.py-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-primary .container {
    position: relative; /* 文字在纹理上方 */
}

.bg-primary h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.bg-primary .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #f0f0f0;
}


/* 2. 联系信息区域优化 */
.py-5 {
    padding: 80px 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.col-lg-6 h2 {
    font-size: 2.2rem;
    color: #2C3E50;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.col-lg-6 h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #1E88E5; /* 工业蓝 */
}

/* 联系卡片样式 */
.card.mb-4 {
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card.mb-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-header.bg-dark.text-white {
    background-color: #2C3E50 !important;
    padding: 18px 25px;
    border-bottom: 2px solid #1E88E5; /* 工业蓝底边 */
}

.card-header h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.card-body p {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #444;
    display: flex;
    align-items: center;
}

.card-body i {
    color: #1E88E5;
    width: 24px;
}


/* 3. 表单区域优化 */
form.bg-light.p-4.rounded {
    background-color: #fff !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 35px !important;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1); /* 工业蓝聚焦阴影 */
    background-color: #fff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn.btn-primary {
    background-color: #1E88E5;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn.btn-primary:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 表单错误提示 */
.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-control.error {
    border-color: #dc3545;
}

.form-control.error + .form-error {
    display: block;
}


/* 4. 地图区域优化 */
.mt-5 h2 {
    font-size: 2.2rem;
    color: #2C3E50;
    margin-bottom: 25px;
}

.ratio.ratio-16x9.mt-3 {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

/* 地图加载提示 */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.map-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-loading i {
    color: #1E88E5;
    font-size: 2rem;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* 5. 响应式适配 */
@media (max-width: 992px) {
    .col-lg-6 {
        width: 100%;
    }
    .col-lg-6:last-child {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .bg-primary h1 {
        font-size: 2.2rem;
    }
    .col-lg-6 h2, .mt-5 h2 {
        font-size: 1.8rem;
    }
    form.bg-light.p-4.rounded {
        padding: 25px !important;
    }
}