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

/* 修复导航栏遮挡问题 - 仅针对联系页面 */
.contact-page body {
    padding-top: 70px;
    scroll-padding-top: 70px;
}

/* 修复页面标题部分 - 仅针对联系页面 */
.contact-page .page-header {
    margin-top: -70px;
    padding-top: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-page .page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* 修复联系卡片图标显示问题 */
.contact-info-section {
    background: #F8FAFC;
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border-color: #1E3A8A;
}

.contact-card .contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: #1E3A8A;
    border-color: #1E3A8A;
    transform: scale(1.1);
}

.contact-card .contact-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(214deg) brightness(97%) contrast(97%);
    transition: filter 0.3s ease;
}

.contact-card:hover .contact-icon img {
    filter: brightness(0) invert(1);
}

.contact-card h3 {
    color: #1E293B;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 修复表单样式 */
.contact-form-section {
    padding: 4rem 0;
    background: white;
}

.form-container {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-header p {
    opacity: 0.9;
}

.contact-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #374151;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

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

/* 修复复选框样式 */
.checkbox-group {
    align-items: flex-start;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    background: #FFFFFF;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #1E3A8A;
    border-color: #1E3A8A;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* 修复服务支持部分 */
.service-support {
    padding: 4rem 0;
    background: #F8FAFC;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border-color: #1E3A8A;
}

.support-item .support-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    border: 3px solid #E2E8F0;
    transition: all 0.3s ease;
}

.support-item:hover .support-icon {
    background: #1E3A8A;
    border-color: #1E3A8A;
    transform: scale(1.1);
}

.support-item .support-img {
    width: 50px;
    height: 50px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(214deg) brightness(97%) contrast(97%);
    transition: filter 0.3s ease;
}

.support-item:hover .support-img {
    filter: brightness(0) invert(1);
}

.support-item h3 {
    color: #1E293B;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.support-item p {
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.support-link {
    color: #1E3A8A;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #667eea;
}

/* 修复FAQ部分 */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #1E3A8A;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.1);
}

.faq-question {
    background: #FFFFFF;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.faq-question h3 {
    color: #1E293B;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-toggle {
    background: #F1F5F9;
    border: 2px solid #E2E8F0;
    color: #1E3A8A;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question {
    border-bottom-color: #E2E8F0;
    background: #F8FAFC;
}

.faq-item.active .faq-toggle {
    background: #1E3A8A;
    border-color: #1E3A8A;
    color: white;
}

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

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

/* 修复地图部分 */
.map-placeholder {
    background: #F1F5F9;
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.map-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式修复 */
@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    /* 修复页面标题部分 - 仅针对联系页面 */
    .contact-page .page-header {
        margin-top: -60px;
        padding-top: 120px;
    }
    
    .contact-card .contact-icon {
        width: 70px;
        height: 70px;
    }
    
    .contact-card .contact-icon img {
        width: 35px;
        height: 35px;
    }
    
    .support-item .support-icon {
        width: 80px;
        height: 80px;
    }
    
    .support-item .support-img {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 576px) {
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        font-size: 12px;
    }
}

/* 修复按钮和链接的可访问性 */
.submit-btn:focus,
.map-btn:focus,
.support-link:focus {
    outline: 2px solid #1E3A8A;
    outline-offset: 2px;
}

/* 修复表单验证状态 */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 修复加载状态 */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}