/* 联系页面专属样式 v2 */
.banner-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: 1.5px;
}
.banner-content p { font-size: 1rem; opacity: 0.85; margin-top: 0.5rem; }

.contact-wrapper {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.info-section {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.section-header {
    padding: 1.3rem 1.5rem 0.5rem;
}
.section-header h3 {
    margin: 0;
    color: #0b4aad;
    font-weight: 800;
    font-size: 1.2rem;
    border-left: 4px solid #c90026;
    padding-left: 12px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0 1.2rem 1.2rem;
}

.info-card {
    background: #fbfdff;
    border-radius: 20px;
    padding: 1rem 1.1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
    border: 1px solid transparent;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    background: #fff;
    border-color: #e2e8f0;
}

.info-card h4 {
    margin: 0 0 0.8rem;
    color: #0b4aad;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.phone-item {
    flex: 1;
    background: #f3f7fd;
    padding: 0.7rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.phone-item:hover {
    background: #eef4fd;
    transform: translateY(-1px);
}
.phone-number {
    font-size: 1rem;
    font-weight: 700;
    color: #0b4aad;
    margin-top: 0.2rem;
}

.qr-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.qr-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.work-time {
    display: flex;
    justify-content: space-between;
    background: #f3f7fd;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #475569;
}

.info-card p {
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.85rem;
}

.copy-tip {
    cursor: pointer;
    color: #c90026;
    font-weight: 500;
}
.copy-tip:hover { text-decoration: underline; }

/* 地图区域 */
.map-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-card .section-header { padding: 1.3rem 1.5rem 0.5rem; }

#map {
    height: 380px;
    width: 100%;
    background: #e9ecef;
    z-index: 1;
}

.leaflet-control-zoom,
.leaflet-control-attribution,
.leaflet-control { z-index: 1 !important; }

.companies-section {
    padding: 1rem 1.2rem 1.2rem;
    background: #fbfdff;
    border-top: 1px solid #f2f6fd;
}

.companies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.company-card {
    background: #fff;
    border-radius: 20px;
    padding: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    border: 1px solid #f0f2f5;
}

.company-card:hover {
    transform: translateY(-3px);
    border-color: #c90026;
    box-shadow: 0 8px 20px rgba(201, 0, 38, 0.08);
}

.company-card h4 {
    margin: 0 0 0.5rem;
    color: #0b4aad;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-card p {
    margin: 0.25rem 0;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-card i { width: 16px; color: #c90026; font-size: 0.72rem; }

/* 留言表单 */
.form-section {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}

.form-section h2 {
    color: #0b4aad;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.3rem;
    border-left: 4px solid #c90026;
    padding-left: 14px;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.84rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fbfdff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c90026;
    box-shadow: 0 0 0 3px rgba(201, 0, 38, 0.08);
    background: #fff;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group { flex: 1; }

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 28px;
    background: #0b4aad;
    color: #fff;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.submit-btn:hover {
    background: #c90026;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 0, 38, 0.3);
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 10px 28px;
    border-radius: 40px;
    z-index: 99999;
    font-size: 0.88rem;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    pointer-events: none;
    animation: toastIn 0.25s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .companies-grid { grid-template-columns: 1fr; }
    #map { height: 260px; }
}

@media (max-width: 768px) {
    .banner-content h1 { font-size: 1.6rem; }
    .form-section { padding: 1.2rem; }
    .toast-msg { white-space: normal; width: 85%; text-align: center; }
}

@media (max-width: 550px) {
    .form-row { flex-direction: column; }
}
