/* 联系我们页面样式 */
.contact-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0;
}

/* 联系信息区域 */
.contact-info-section {
    background: white;
    padding: 60px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.contact-info-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* 联系信息网格 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

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

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.contact-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.contact-details p {
    margin: 5px 0;
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 工作时间 */
.working-hours {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.working-hours h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.hours-item .day {
    font-weight: 600;
    color: #2c3e50;
}

.hours-item .time {
    color: #5a6c7d;
    font-weight: 500;
}

/* 地图区域 */
.map-section {
    background: #f8f9fa;
    padding: 60px 0;
    position: relative;
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

.map-container {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.amap-container {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* 地图控制按钮 */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.map-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5a6c7d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* 地图加载动画 */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.map-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.map-loading p {
    color: #5a6c7d;
    font-size: 1rem;
    margin: 0;
}

/* 地图信息 */
.map-info {
    margin-top: 30px;
}

.map-legend {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lab-marker {
    background: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.transport-marker {
    background: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

.legend-item span {
    color: #2c3e50;
    font-weight: 500;
}

.map-tips {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-tips p {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.map-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #5a6c7d;
}

.map-tips li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-info-section {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .working-hours {
        padding: 25px;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .map-section {
        padding: 40px 0;
    }
    
    .map-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .amap-container {
        height: 350px;
    }
    
    .map-info {
        margin-top: 20px;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
    }
    
    .map-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .contact-info-wrapper,
    .map-wrapper {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .working-hours {
        padding: 20px;
    }
    
    .amap-container {
        height: 300px;
    }
    
    .map-legend,
    .map-tips {
        padding: 20px;
    }
}

/* 动画效果 */
.contact-item,
.working-hours,
.map-container {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }
.working-hours { animation-delay: 0.5s; }
.map-container { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 打印样式 */
@media print {
    .map-controls,
    .map-loading {
        display: none;
    }
    
    .contact-container {
        background: white;
    }
    
    .contact-item,
    .working-hours,
    .map-legend,
    .map-tips {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}