/* 联系页基础样式 */
.contact-hero {
    background-color: #0a1c30;
    color: #fff;
    position: relative;
}

.hero-bg {
    background: url('../images/contact-hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 28, 48, 0.85);
    z-index: -1;
}

/* 面包屑 */
.contact-hero .breadcrumbs {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 15px;
}

.contact-hero .breadcrumbs a {
    color: #ddd;
    text-decoration: none;
}

.contact-hero .breadcrumbs a:hover {
    color: #0066cc;
}

.contact-hero .breadcrumbs span {
    color: #fff;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-hero p {
    font-size: 18px;
    color: #eee;
    max-width: 800px;
}

/* 联系主内容区 */
.contact-main {
    padding: 60px 0;
    background-color: #fff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* 左侧联系方式区 */
.contact-info h2 {
    font-size: 28px;
    color: #0a1c30;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
}

.info-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.item-content h3 {
    font-size: 18px;
    color: #0a1c30;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.item-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 右侧表单区 */
.contact-form h2 {
    font-size: 28px;
    color: #0a1c30;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
}

#contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border: 1px solid #eee;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    flex: 100%;
    min-width: 100%;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #0066cc;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form ::placeholder {
    color: #999;
}

.submit-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0a1c30;
}

/* 地图区域 */
.contact-map {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-card {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 30px;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-card h3 {
    font-size: 20px;
    color: #0a1c30;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.map-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.map-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #0066cc;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background-color: #0066cc;
    color: #fff;
}

/* 页脚专属适配 */
.footer {
    background-color: #0a1c30;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-col h4 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #0066cc;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #0066cc;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-info li i {
    color: #0066cc;
    margin-top: 3px;
}

.get-directions-btn {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.get-directions-btn:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 14px;
}

.newsletter-form button {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0066cc;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1200px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .map-card {
        width: 300px;
        right: 30px;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-map {
        height: 400px;
    }

    .map-card {
        position: static;
        transform: none;
        width: 100%;
        margin-top: -50px;
        z-index: 2;
    }

    .contact-map {
        display: flex;
        flex-direction: column;
    }

    .map-img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 40px 0;
    }

    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-main {
        padding: 40px 0;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        min-width: 100%;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 8px;
    }
}

@media (max-width: 576px) {
    .hero-bg {
        padding: 40px 0;
    }

    .contact-hero h1 {
        font-size: 24px;
    }

    .contact-info h2, .contact-form h2 {
        font-size: 22px;
    }

    #contact-form {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        gap: 10px;
    }

    .icon-circle {
        margin-bottom: 5px;
    }

    .map-img {
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}