/* 联系我们页面专用样式 */

/* 联系我们区域 */
.contact-us {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.contact-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    /* 添加硬件加速和稳定性 */
    will-change: transform;
    backface-visibility: hidden;
}

.contact-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 关于我们标题样式 - 不粘性定位 */
.about-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.about-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 关于我们内容 */
.about-us-content {
    padding: 40px;
    background-color: transparent;
    border-bottom: 1px solid #e9ecef;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #495057;
    margin: 0;
    text-align: justify;
    text-indent: 2em;
}

/* 联系内容 */
.contact-content {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: start;
    margin-top: 120px; /* 为固定标题留出空间 */
}

/* 联系信息 */
.contact-info {
    background-color: transparent;
    padding: 30px;
    border-radius: 12px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

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

.contact-item:hover {
    transform: translateX(5px);
}

.contact-label {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    min-width: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-value {
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
    flex: 1;
}

.phone-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: rgba(52, 152, 219, 0.1);
}

.phone-link:hover {
    color: white;
    background-color: #3498db;
    transform: scale(1.05);
}


/* 响应式设计 */
@media (max-width: 768px) {
    .contact-header {
        padding: 20px;
    }
    
    .contact-header h2 {
        font-size: 24px;
    }
    
    .about-header {
        padding: 20px;
    }
    
    .about-header h2 {
        font-size: 24px;
    }
    
    .about-us-content {
        padding: 20px;
    }
    
    .about-text p {
        font-size: 16px;
        text-indent: 1em;
    }
    
    .contact-content {
        padding: 20px;
        margin-top: 100px; /* 调整小屏幕的顶部间距 */
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .contact-label {
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .contact-value {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding: 15px;
    }
    
    .contact-header h2 {
        font-size: 20px;
    }
    
    .about-header {
        padding: 15px;
    }
    
    .about-header h2 {
        font-size: 20px;
    }
    
    .about-us-content {
        padding: 15px;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .contact-content {
        padding: 15px;
        margin-top: 90px; /* 调整更小屏幕的顶部间距 */
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-item {
        margin-bottom: 15px;
    }
    
    .contact-label {
        font-size: 15px;
    }
    
    .contact-value {
        font-size: 14px;
    }
}

/* 页面样式 - 移除动画避免移动端闪烁 */
.contact-us {
    opacity: 1;
    transform: translateY(0);
}

.about-us-content {
    opacity: 1;
}

.contact-content {
    opacity: 1;
}

.contact-item {
    opacity: 1;
    transform: translateX(0);
}


/* 特殊效果 */
.contact-item:hover .contact-label {
    color: #3498db;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

.phone-link:active {
    transform: scale(0.95);
}
