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

/* 联系卡片区域 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--primary-red);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-red), #ffeaea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-red);
    font-size: 2.2rem;
}

.contact-card h3 {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-details {
    text-align: left;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-top: 0.3rem;
    width: 24px;
}

.detail-item h4 {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 0.3rem;
}

.phone-desc,
.work-desc {
    font-size: 0.9rem;
    color: #888;
}

.email-address {
    font-size: 1.1rem;
    color: var(--primary-red);
    font-weight: 500;
}

.work-time {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.call-btn,
.email-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-red);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.call-btn:hover,
.email-btn:hover {
    background: var(--secondary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.email-btn {
    background: #4CAF50;
}

.email-btn:hover {
    background: #388E3C;
}


/* 常见问题区域 */
.faq-section {
    margin: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
    background: var(--primary-white);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-question i.fa-question-circle {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.faq-question i.fa-chevron-down {
    color: var(--medium-gray);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin: 0;
}

/* 成功消息样式 */
.success-message {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #4CAF50;
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

.success-message i {
    font-size: 1.2rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .address-section {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .address-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .address-card {
        margin-bottom: 1rem;
    }

    .form-section {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .purpose-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-tabs {
        flex-direction: column;
    }

    .map-tab {
        text-align: center;
        border-bottom: 1px solid #eee;
        border-right: none;
        border-bottom-width: 1px;
        border-bottom-color: transparent;
    }

    .map-tab.active {
        border-bottom: 3px solid var(--primary-red);
        border-right: none;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .detail-item {
        flex-direction: column;
        text-align: center;
    }

    .detail-item i {
        margin-bottom: 0.5rem;
    }

    .address-content {
        padding: 1.5rem;
    }

    .form-section {
        padding: 1.5rem 1rem;
    }

    .purpose-options {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem;
    }
}
