/* contact.css - 联系我们页面样式 */

/* 页面标题样式 */
.page-header {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

/* 联系信息样式 */
.contact-info {
    padding: 60px 0;
    margin-bottom: 60px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.contact-details {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-details h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.contact-details h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.detail-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 20px;
    flex-shrink: 0;
    margin-top: 5px;
}

.detail-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.detail-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #0056b3;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

/* 联系表单样式 */
.contact-form-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 60px;
}

.contact-form-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* 常见问题样式 */
.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: #007bff;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.faq-question i {
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px 0;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-details h2,
    .contact-form-section h2,
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .detail-item i {
        font-size: 1.2rem;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0;
    }
    
    .contact-info,
    .contact-form-section,
    .faq-section {
        padding: 40px 0;
    }
    
    .contact-details {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
}