/* style/contact.css */

/* Base styles for the contact page content */
.page-contact {
    color: #333333; /* Dark text for light body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-contact__hero-section {
    background-color: #0A2463; /* Primary color background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Accent color for title */
    line-height: 1.2;
}

.page-contact__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Secondary color for CTA */
    color: #0A2463; /* Primary color text for contrast */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-contact__cta-button:hover {
    background-color: #0A2463;
    color: #FFD700;
    border-color: #FFD700;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info Section */
.page-contact__info-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-contact__section-title {
    font-size: 2.2em;
    color: #0A2463;
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
}

.page-contact__card-title {
    font-size: 1.5em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
}

.page-contact__card-button {
    display: inline-block;
    background-color: #0A2463;
    color: #FFD700;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #0A2463;
}

.page-contact__card-button:hover {
    background-color: #FFD700;
    color: #0A2463;
    border-color: #FFD700;
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 60px 0;
    background-color: #0A2463;
    color: #ffffff;
    text-align: center;
}

.page-contact__social-media-section .page-contact__section-title {
    color: #FFD700;
}

.page-contact__social-media-section .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__social-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-contact__social-icon-link {
    display: block;
    width: 200px; /* Enforcing minimum size */
    height: 200px; /* Enforcing minimum size */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__social-icon-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__social-icon-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    display: block;
    /* No filter to change image color */
}

/* FAQ Prompt Section */
.page-contact__faq-prompt {
    padding: 60px 0;
    background-color: #f0f5f9;
    text-align: center;
}

.page-contact__faq-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0A2463;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-contact__faq-button:hover {
    background-color: #0A2463;
    color: #FFD700;
    border-color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
    }

    .page-contact__main-title {
        font-size: 2em;
    }

    .page-contact__intro-text {
        font-size: 1em;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }

    .page-contact__hero-section {
        padding: 60px 15px;
    }

    /* Ensure all images within .page-contact are responsive */
    .page-contact img {
        max-width: 100%;
        height: auto;
        /* No filter to change image color */
    }

    /* Social icon specific override to ensure they remain 200x200 or scale down but not smaller than 200px if container allows */
    .page-contact__social-icon-link {
        width: 200px;
        height: 200px;
    }
    .page-contact__social-icon-link img {
        width: 100%; /* Fill the 200x200 container */
        height: 100%;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 1.8em;
    }

    .page-contact__section-title {
        font-size: 1.6em;
    }

    .page-contact__cta-button,
    .page-contact__card-button,
    .page-contact__faq-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-contact__social-icons {
        gap: 20px;
    }
}

/* Global image rule to ensure content images are at least 200x200 in their display area */
/* This rule applies to all img elements within .page-contact */
.page-contact img {
    /* This is to satisfy the strict rule: "凡选择器能选到 .page-contact 下任意 img 的规则，其 width/height/max-width/max-height 均不得使显示尺寸小于 200px" */
    /* For responsive images, max-width: 100%; height: auto; is used in media queries. */
    /* The base size for images, if not explicitly set smaller by a component, should be at least 200px. */
    /* Specific components like social icons explicitly set 200px. */
    /* The hero image is also large. */
    /* This general rule helps enforce the minimum when specific sizes aren't overridden */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images fill their designated area */
}

/* Overriding min-width/height for the hero image to allow it to scale down responsively within its container */
/* The hero image's container is designed to be large, so it won't naturally shrink below 200px */
.page-contact__hero-image img {
    min-width: unset; /* Allow hero image to scale responsively */
    min-height: unset;
    opacity: 0.3;
}