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

/* 页面横幅 */
.page-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 联系信息 */
.contact-info {
    padding: 80px 0;
    background-color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.info-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.info-item p {
    margin-bottom: 5px;
    color: #666;
}

/* 联系表单 */
.contact-form {
    padding: 80px 0;
    background-color: #f9f9f9;
    background-image: url('../images/pattern-bg.png');
    background-size: 200px;
    background-repeat: repeat;
}

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

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
}

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* 地图 */
.map-section {
    padding: 80px 0;
    background-color: white;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.map-overlay:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 常见问题 */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

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

.faq-question:hover {
    background-color: #f9f9f9;
}

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

.faq-toggle {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 20px;
    }
    
    .info-item {
        padding: 20px;
    }
}