/* 联系我们页面样式 */
.contact-info {
    margin-bottom: 4rem;
}

.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    margin-bottom: 1.2rem;
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.contact-card h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* 地图 */
.contact-map {
    margin-bottom: 4rem;
}

.contact-map h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact-map h2::after {
    margin: 0.5rem auto 0;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 静态地图样式 */
.static-map {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
}

/* 地图背景 */
.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d9ebff; /* 浅蓝色地图背景 */
    background-image: 
        linear-gradient(#ffffff 2px, transparent 2px),
        linear-gradient(90deg, #ffffff 2px, transparent 2px),
        linear-gradient(rgba(240, 248, 255, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 248, 255, 0.8) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

/* 添加主要道路 */
.map-background:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #ffffff;
    transform: translateY(-50%);
}

.map-background:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 100%;
    background-color: #ffffff;
    transform: translateX(-50%);
}

/* 公司位置标记 */
.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: #e74c3c;
    font-size: 3rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 1.5s infinite;
    z-index: 10;
    pointer-events: auto;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -100%) scale(1);
    }
    50% {
        transform: translate(-50%, -100%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -100%) scale(1);
    }
}

.map-marker:hover {
    color: var(--accent-color);
    transform: translate(-50%, -100%) scale(1.2);
}

.map-info {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 320px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    z-index: 20;
}

.map-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.map-info h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.map-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.map-info p i {
    margin-right: 8px;
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.map-controls {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.map-control-btn {
    width: 45px;
    height: 45px;
    background-color: white;
    border: none;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* 留言板 */
.message-board {
    margin-bottom: 4rem;
}

.message-board h2 {
    text-align: center;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.message-board h2::after {
    margin: 0.5rem auto 0;
}

.section-desc {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.message-form-container {
    margin-bottom: 3.5rem;
}

.message-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.message-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.form-group {
    margin-bottom: 1.8rem;
    display: inline-block;
    width: calc(50% - 0.5rem);
}

.form-group:nth-child(odd) {
    margin-right: 1rem;
}

.full-width {
    width: 100%;
}

.message-list-container {
    max-width: 800px;
    margin: 0 auto;
}

.message-list-container h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.message-list-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.message-item {
    padding: 1.8rem;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.message-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.message-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.message-date {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.message-content {
    margin-bottom: 1.2rem;
}

.message-content p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.message-reply {
    padding: 1.2rem;
    background-color: rgba(0, 86, 179, 0.05);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    margin-left: 1rem;
}

.message-reply p {
    margin-bottom: 0;
    font-size: 1rem;
}

.message-reply strong {
    color: var(--primary-color);
}

/* 建筑物和地标 */
.map-buildings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.building {
    position: absolute;
    background-color: #888888;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.company-building {
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: #0056b3;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.building-1 {
    top: 35%;
    left: 40%;
    width: 30px;
    height: 30px;
}

.building-2 {
    top: 35%;
    left: 56%;
    width: 30px;
    height: 30px;
}

.building-3 {
    top: 60%;
    left: 40%;
    width: 30px;
    height: 30px;
}

.building-4 {
    top: 60%;
    left: 56%;
    width: 30px;
    height: 30px;
}

.park {
    position: absolute;
    background-color: #a8d5a8;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.park-1 {
    top: 50%;
    left: 37%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
}

.park-2 {
    top: 50%;
    left: 63%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-cards {
        gap: 1.8rem;
    }
    
    .static-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .form-group {
        width: 100%;
        margin-right: 0 !important;
    }
    
    .message-form {
        padding: 2rem;
    }
    
    .static-map {
        height: 350px;
    }
    
    .map-info {
        max-width: 280px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .contact-card {
        min-width: 100%;
        padding: 2rem;
    }
    
    .static-map {
        height: 300px;
    }
    
    .map-info {
        left: 15px;
        bottom: 15px;
        padding: 12px;
        max-width: 250px;
    }
    
    .map-controls {
        top: 15px;
        right: 15px;
    }
    
    .map-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .message-item {
        padding: 1.5rem;
    }
} 