body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-display {
    border-style: solid;
    border-width: 10px;
    border-color: white white black white;
    text-align: center;
    font-size: 30px;
    margin: 0 auto;
    justify-content: center;
    width: 40%;
    padding: 15px 0;
    font-weight: 500;
    letter-spacing: 1px;
}

.contact-display h2 {
    font-weight: 500;
    margin: 0;
    padding: 10px 0;
    color: #333;
}

.contact {
    display: flex;
    width: 100%;
    margin: 40px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-content {
    width: 300px;
    margin: 0 auto;
    text-align: center;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.contact-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ddd;
}

.contact-content:active {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.contact-content img {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.contact-content:hover img {
    transform: scale(1.1);
}

.contact-content div:first-of-type {
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 12px;
    color: #333;
    letter-spacing: 0.5px;
}

.contact-content div:last-of-type {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    padding: 0 5px;
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact {
        gap: 20px;
        padding: 0 15px;
    }
    
    .contact-content {
        width: 280px;
        padding: 22px;
    }
    
    .contact-display {
        font-size: 28px;
        width: 50%;
    }
}

/* 联系信息容器优化 */
.contact-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

/* 地图嵌入优化 */
.map-container {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px auto;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .contact-display {
        font-size: 24px;
        width: 85%;
        border-width: 5px;
        margin: 20px auto;
        padding: 12px 0;
    }
    
    .contact {
        margin: 25px 0;
        gap: 20px;
        padding: 0 15px;
    }
    
    .contact-content {
        width: 100%;
        max-width: 320px;
        padding: 22px;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .contact-content img {
        width: 55px;
        height: 55px;
        margin-bottom: 18px;
        align-self: center;
    }
    
    .contact-content div:first-of-type {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .contact-content div:last-of-type {
        font-size: 15px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .contact-display {
        font-size: 20px;
        width: 92%;
        border-width: 3px;
        margin: 15px auto;
        padding: 10px 0;
    }
    
    .contact {
        margin: 20px 0;
        gap: 15px;
        padding: 0 10px;
    }
    
    .contact-content {
        padding: 20px;
        width: 100%;
        max-width: 280px;
        min-height: 160px;
    }
    
    .contact-content img {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .contact-content div:first-of-type {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .contact-content div:last-of-type {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* 小屏手机优化 */
@media (max-width: 375px) {
    .contact-display {
        font-size: 18px;
        width: 95%;
        border-width: 2px;
        margin: 12px auto;
        padding: 8px 0;
    }
    
    .contact {
        margin: 15px 0;
        gap: 12px;
        padding: 0 5px;
    }
    
    .contact-content {
        padding: 18px;
        max-width: 260px;
        min-height: 150px;
    }
    
    .contact-content img {
        width: 45px;
        height: 45px;
    }
    
    .contact-content div:first-of-type {
        font-size: 15px;
    }
    
    .contact-content div:last-of-type {
        font-size: 13px;
    }
}

