/* style/contact.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles for the Contact Page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-contact__dark-bg {
    background-color: #017439; /* Brand main color */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
}

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle overlay */
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-contact__btn-primary {
    background-color: #C30808; /* Specific color for Register/Login */
    color: #FFFFFF; /* High contrast text */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #e02020;
    transform: translateY(-3px);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* High contrast text */
    border: 2px solid #FFFFFF;
}

.page-contact__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #C30808;
    transform: translateY(-3px);
}

/* Info Section */
.page-contact__info-section,
.page-contact__location-section,
.page-contact__faq-section,
.page-contact__social-section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__info-section .page-contact__section-title {
    color: #017439; /* Brand main color for titles on light background */
}

.page-contact__location-section .page-contact__section-title,
.page-contact__social-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #666666; /* Darker text for descriptions on light background */
}

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


/* Channels Grid */
.page-contact__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__channel-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__channel-icon {
    width: 200px; /* Enforce min image size */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__channel-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__channel-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__channel-email,
.page-contact__channel-phone {
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
}

/* Location Section */
.page-contact__location-details {
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-contact__location-details p {
    margin-bottom: 10px;
}

.page-contact__location-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    color: #333333;
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6ffe6; /* Light green background */
    border-bottom: 1px solid #d0e0d0;
    transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-contact__faq-item summary:hover {
    background-color: #d0ffd0;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.8;
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}

.page-contact__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Social Section */
.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-contact__social-icon {
    display: inline-block;
    width: 200px; /* Enforce min image size */
    height: 200px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__social-icon img {
    width: 100%; /* Fill the 200x200 container */
    height: 100%;
    object-fit: contain;
}

.page-contact__social-reminder {
    margin-top: 30px;
    font-size: 0.95em;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        min-height: 400px;
        padding-bottom: 60px;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-contact__info-section,
    .page-contact__location-section,
    .page-contact__faq-section,
    .page-contact__social-section {
        padding: 40px 0;
    }

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

    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__channels-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-contact__channel-card {
        padding: 25px;
    }

    .page-contact__faq-list {
        padding: 0 15px;
    }

    .page-contact__faq-item summary {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px;
    }

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

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__channels-grid,
    .page-contact__faq-list,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-contact__social-icon {
        width: 200px; /* Enforce min image size */
        height: 200px;
    }
    .page-contact__social-icon img {
        width: 100%; /* Fill the 200x200 container */
        height: 100%;
    }
}