/* 联系页面样式 */
.contact-hero {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-info p {
    color: var(--dark-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--dark-light);
}

.social-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.social-contact .social-links {
    display: flex;
    gap: 1rem;
}

.social-contact .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-contact .social-links a:hover {
    background-color: var(--primary);
}

.social-contact .social-links a:hover svg path {
    stroke: white;
}

/* 表单样式 */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

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

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

.full-width {
    grid-column: 1 / -1;
}

/* 联系人信息部分 */
.contact-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.8rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: center;
}

.contact-icon {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #EFF6FF;
    border-radius: 50%;
}

.contact-text h4 {
    margin: 0 0 0.25rem;
    color: #333;
}

.contact-text p {
    margin: 0;
    color: #3B82F6;
    font-weight: 500;
}

.social-contact h4 {
    margin-bottom: 0.75rem;
    color: #333;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #EFF6FF;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background: #DBEAFE;
}

.wechat-qrcode {
    margin-top: 1rem;
    text-align: center;
}

.wechat-qrcode img {
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-text p a {
    text-decoration: none;
    color: #3B82F6;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-text p a:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

/* 隐私承诺部分 */
.privacy-commitment {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.privacy-commitment h4 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.privacy-commitment p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 常见问题部分 */
.faq-section {
    background: #f8fafc;
    padding: 5rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 新增样式 - 表单分节 */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.form-section h4 {
    margin: 1.5rem 0 0.75rem;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
}

/* 新增样式 - 复选框组 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
}

/* 必填项星号和错误信息样式 */
.required-star {
    color: #e53e3e;
    margin-left: 3px;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e53e3e;
}

.form-group.error .error-message {
    display: block;
}

/* 地图部分 */
.contact-map {
    background-color: var(--light);
    padding: 5rem 0;
    text-align: center;
}

.contact-map h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.map-container {
    height: 400px;
    background-color: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 0;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-section,
    .contact-map,
    .faq-section {
        padding: 3rem 0;
    }
    
    .map-container {
        height: 300px;
    }
    
    .checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .contact-form, .contact-info {
        padding: 1.5rem;
    }
}

/* 成功提交弹窗样式 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header svg {
    margin-bottom: 10px;
}

.modal-header h3 {
    margin: 0;
    color: #10B981;
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-footer .btn {
    min-width: 100px;
} 