/* 联系我们页面特定样式 */
:root {
    --primary-color: #00649a;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
    --transition: 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 页面横幅 */
.page-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-banner:hover img {
    transform: scale(1.02);
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
}

.page-banner .banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.page-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域 */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 联系信息卡片 */
.contact-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--primary-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details li i {
    color: var(--secondary-color);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1.1rem;
    min-width: 20px;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}


/* 办公时间 */
.office-hours {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
}

.office-hours h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.hours-list li:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }

    .page-banner h1 {
        font-size: 2.2rem;
    }

    .page-banner p {
        font-size: 1rem;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .page-banner h1 {
        font-size: 1.8rem;
    }

    .contact-info-section {
        grid-template-columns: 1fr;
    }

    .contact-card-header {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}