﻿/* 联系我们样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "微软雅黑", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* 主内容区 */
.main-content {
    display: flex;
    margin: 100px auto 40px;
    padding: 0 20px;
    gap: 40px;
}

/* 左侧联系方式 */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    border-radius: 10px;
}

/* 联系我们标题 */
.contact-title {
    text-align: center;
    position: relative;
}

.contact-title h2 {
    font-size: 28px;
    color: #000;
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    padding-top: 40px;
}

.contact-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #000;
    border-radius: 3px;
}

.contact-card {
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.contact-header {
    text-align: left;
    margin-left: 20px;
    margin-bottom: 25px;
    position: relative;
}

.contact-header h4 {
    font-size: 22px;
    color: #2f2f2f;
    font-weight: 600;
    margin: 0;
    position: relative;
    display: inline-block;
}

.contact-details p {
    font-size: 16px;
    line-height: 18px;
    margin-bottom: 12px;
    padding: 5px 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: 5px;
}

.contact-details p:hover {
    border-left-color: #006ed3;
    padding-left: 20px;
}

.contact-details strong {
    color: #333;
    font-weight: 600;
    min-width: 70px;
    display: inline-block;
}

/* 右侧地图 */
.map-section {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.map-container {
    width: 85%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.china-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 位置标记样式 */
.location-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    z-index: 10;
}

.location-marker::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.location-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

/* 南阳位置 */
.nanyang-marker {
    top: 63.5%;
    left: 64%;
    background: #e74c3c;
}

.nanyang-marker::after {
    border-color: #e74c3c;
}

/* 深圳位置 */
.shenzhen-marker {
    top: 89%;
    left: 65.95%;
    background: #3498db;
}

.shenzhen-marker::after {
    border-color: #3498db;
}

/* 标记提示框 */
.marker-tooltip {
    position: absolute;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    font-size: 12px;
    color: #333;
    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.marker-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.nanyang-tooltip,
.shenzhen-tooltip {
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

.nanyang-tooltip.show,
.shenzhen-tooltip.show {
    transform: translateX(-50%) translateY(0);
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 飞行效果样式 */
.fly-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fly-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.fly-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.fly-in-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ================= 响应式设计 ================= */
@media (max-width: 1200px) {
    .main-content {
        gap: 30px;
    }

    .map-container {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column-reverse; /* 小屏下地图放在最上面 */
        margin-top: 120px;
    }

    .contact-info {
        flex-direction: row;
    }

    .contact-card {
        flex: 1;
    }

    .map-container {
        height: 450px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 140px;
        padding: 0 15px;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-title h2 {
        font-size: 24px;
    }

    .contact-header h4 {
        font-size: 20px;
    }

    .contact-details p {
        font-size: 15px;
    }

    .map-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-top: 80px;
        padding: 0 10px;
    }

    .contact-title h2 {
        font-size: 22px;
    }

    .contact-card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .contact-header h4 {
        font-size: 18px;
    }

    .contact-details p {
        font-size: 14px;
        padding: 8px 12px;
        margin-bottom: 8px;
        line-height: 18px;
    }

    .contact-details p:hover {
        padding-left: 15px;
    }

    .map-container {
        height: 280px;
    }

    .location-marker {
        width: 8px;
        height: 8px;
    }

    .location-marker::after {
        width: 10px;
        height: 10px;
    }

    .marker-tooltip {
        font-size: 10px;
        padding: 6px 10px;
    }
}
