/* ========================================
   联系我们页面样式 - Contact Page Styles
======================================== */

/* 联系信息区域 */
.contact-info-section {
    padding: 80px 0;
}

.contact-info-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white-color);
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.contact-info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    transform: rotateY(360deg);
}

.contact-info-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info-card a:hover {
    color: #1d4ed8;
}

/* 联系表单区域 */
.contact-form-section {
    padding: 80px 0;
    background: var(--light-color);
}

.contact-form-wrapper {
    background: var(--white-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form-group label .required {
    color: var(--danger-color);
}

.contact-form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form-control.is-invalid {
    border-color: var(--danger-color);
}

.contact-form-control.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

.contact-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 地图区域 */
.contact-map-section {
    padding: 80px 0;
}

.contact-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map {
    width: 100%;
    height: 450px;
    border: none;
}

/* 工作时间 */
.contact-hours {
    background: var(--white-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-hours h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-color);
}

.contact-hours-list {
    list-style: none;
    padding: 0;
}

.contact-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-hours-list li:last-child {
    border-bottom: none;
}

.contact-hours-day {
    font-weight: 600;
    color: var(--dark-color);
}

.contact-hours-time {
    color: var(--secondary-color);
}

.contact-hours-time.open {
    color: var(--success-color);
    font-weight: 600;
}

.contact-hours-time.closed {
    color: var(--danger-color);
}

/* 社交媒体 */
.contact-social {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: var(--white-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.contact-social h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white-color);
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* FAQ区域 */
.contact-faq {
    margin-top: 3rem;
}

.contact-faq-item {
    background: var(--white-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-faq-question:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.contact-faq-question i {
    transition: all 0.3s ease;
}

.contact-faq-item.active .contact-faq-question {
    color: var(--primary-color);
}

.contact-faq-item.active .contact-faq-question i {
    transform: rotate(180deg);
}

.contact-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-faq-item.active .contact-faq-answer {
    max-height: 300px;
}

.contact-faq-answer-content {
    padding: 0 1.5rem 1.2rem 1.5rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .contact-info-section,
    .contact-form-section,
    .contact-map-section {
        padding: 50px 0;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .contact-hours {
        margin-top: 2rem;
    }
}
