/* contact.css */

.contact-main {
    background-color: var(--rice-white);
}

.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/轮播图2.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.contact-hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.section-title {
    font-size: 36px;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--china-red);
    margin: 15px auto 0;
}

/* Office Locations Section */
.office-locations-section {
    padding: 80px 0;
    background-color: #fff;
}

.office-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.office-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.office-image-placeholder {
    height: 250px;
    background-color: #e9e5d9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23C91F37' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' class='feather feather-briefcase'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60px;
}

.office-info {
    padding: 30px;
}

.office-info h3 {
    font-size: 22px;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.office-info .address {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.6;
}

/* Expert Team Section */
.expert-team-section {
    padding: 80px 0;
}

.expert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.expert-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 40px;
    transition: all 0.3s ease;
}
.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.expert-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 25px;
    background-color: #e9e5d9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23C91F37' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' class='feather feather-user'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70px;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.expert-name {
    font-size: 24px;
    color: var(--china-red);
    margin-bottom: 5px;
}

.expert-title {
    font-size: 16px;
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 15px;
}

.expert-bio {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 25px;
    min-height: 100px; /* Consistent height for alignment */
}

.contact-toggle-btn {
    margin-bottom: 15px;
}

.expert-contact-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.expert-contact-details.show {
    max-height: 100px; /* Adjust if content is taller */
    opacity: 1;
}

.expert-contact-details p {
    font-size: 15px;
    color: var(--light-text);
    margin: 5px 0;
}

/* Footer */
#contact-footer {
    background-color: var(--dark-text);
    color: #f5f5f5;
    padding: 30px 0;
}

@media (max-width: 992px) {
    .office-grid,
    .expert-grid {
        grid-template-columns: 1fr;
    }
} 