/* 联系我们页面样式 */

/* Banner区 */
.contact-banner {
    height: 300px;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    position: relative;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.banner-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.banner-overlay h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-overlay p {
    font-size: 18px;
    opacity: 0.95;
}

/* 主要内容区 */
.contact-main {
    padding: 80px 0;
    background: var(--light-gray);
}

/* 表单卡片 */
.contact-form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-form-card .section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-form-card .section-subtitle {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.contact-form-card .form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form-card .form-label i {
    color: var(--primary-color);
    width: 20px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
    outline: none;
}

.contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

/* 联系信息卡片 */
.contact-info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E88E5, #1565C0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 136, 229, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-info-card .section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #F0F0F0;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.contact-item:hover {
    background: linear-gradient(90deg, rgba(30, 136, 229, 0.03) 0%, transparent 100%);
    padding-left: 15px;
    transform: translateX(5px);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

.contact-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-content h4 {
    color: #1E88E5;
}

.contact-content p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.contact-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-content a:hover {
    color: #1565C0;
    text-decoration: underline;
}

.contact-content small {
    font-size: 13px;
}

/* 二维码卡片 */
.qrcode-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.qrcode-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}

.qrcode-item {
    text-align: center;
}

.qrcode-item .qrcode-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #E0E0E0;
}

.qrcode-item p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* 地图区域 */
.map-section {
    margin-top: 60px;
}

.map-section .section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

.map-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 400px;
    position: relative;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F7FA 0%, #E8EAF6 100%);
    color: var(--text-gray);
}

.map-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map-placeholder p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 快速咨询表单卡片 */
.quick-consult-card {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(30, 136, 229, 0.3);
    color: var(--white);
    margin-bottom: 30px;
}

.quick-consult-header {
    text-align: center;
    margin-bottom: 25px;
}

.quick-consult-header h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--white);
}

.quick-consult-header h3 i {
    margin-right: 8px;
}

.quick-consult-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.quick-consult-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 25px;
}

.quick-consult-form .form-group {
    margin-bottom: 20px;
}

.quick-consult-form label {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.quick-consult-form label i {
    margin-right: 6px;
    width: 16px;
}

.quick-consult-form .form-control,
.quick-consult-form .form-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--secondary-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.quick-consult-form .form-control:focus,
.quick-consult-form .form-select:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

.quick-consult-form .form-control::placeholder {
    color: #999;
}

.quick-submit-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.quick-submit-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-consult-tip {
    text-align: center;
    font-size: 12px;
    opacity: 0.85;
    margin-top: 15px;
    margin-bottom: 0;
}

.quick-consult-tip i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-main {
        padding: 40px 0;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .contact-banner {
        height: 250px;
    }

    .banner-overlay h1 {
        font-size: 32px;
    }

    .banner-overlay p {
        font-size: 16px;
    }

    .map-container {
        height: 300px;
    }

    .quick-consult-card {
        padding: 25px 20px;
    }

    .quick-consult-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        height: 200px;
        margin-top: 60px;
    }

    .banner-overlay h1 {
        font-size: 28px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 25px 15px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 15px;
    }

    .qrcode-item .qrcode-img {
        max-width: 120px;
    }
}

