.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color); /* Matches #FFFFFF */
}

.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #87CEEB); /* Gradient for visual appeal */
    color: #ffffff;
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is behind content if content is overlaid */
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above image */
    text-align: center;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image slightly */
}

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

.page-contact__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: #D46F05;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-title--light {
    color: #ffffff;
}

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

.page-contact__section-description--light {
    color: #f0f0f0;
}

.page-contact__additional-info {
    margin-top: 50px;
    font-style: italic;
}

/* Contact Channels Section */
.page-contact__channels-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* White background */
    color: #333333;
}

.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: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-card img {
    max-width: 100%;
    height: auto;
    width: 200px; /* Example size, ensuring min 200px */
    height: 200px; /* Example size, ensuring min 200px */
    margin-bottom: 20px;
    border-radius: 5px;
    object-fit: cover;
}

.page-contact__channel-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-contact__channel-link {
    display: inline-block;
    padding: 10px 25px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__channel-link:hover {
    background-color: #1a7bb0;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
    background: #26A9E0; /* Darker background for contrast */
    color: #ffffff;
}

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

.page-contact__commitment-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__commitment-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-contact__commitment-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-section.page-contact__light-bg { /* Changed from dark to light background */
    padding: 60px 0;
    background: var(--secondary-color); /* White background for contrast */
    color: #333333; /* Dark text */
}

.page-contact__faq-section.page-contact__light-bg .page-contact__section-title {
    color: #26A9E0; /* Primary color for title */
}
.page-contact__faq-section.page-contact__light-bg .page-contact__section-description {
    color: #666666; /* Darker grey for description */
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff; /* White background for FAQ items */
}

/* FAQ默认状态 - 答案隐藏 */
.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #333333; /* Dark text for answer */
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-contact__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-contact__faq-question:active {
    background: #eeeeee;
}

/* 问题标题样式 */
.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: #333333; /* Dark text for question */
}

/* 切换图标 */
.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Plus sign rotates to form an X */
}

/* CTA Section at the bottom */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: var(--secondary-color); /* White background */
    text-align: center;
}

.page-contact__cta-content {
    max-width: 800px;
    margin: 0 auto;
    color: #333333;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary:hover {
    background: #1a7bb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Text links within content */
.page-contact__text-link {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-contact__text-link:hover {
    color: #1a7bb0;
}

/* Ensure text links on dark background are white */
.page-contact__dark-bg .page-contact__text-link {
    color: #ffffff;
}
.page-contact__dark-bg .page-contact__text-link:hover {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }
    .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 */
        padding-bottom: 40px;
    }

    .page-contact__hero-content {
        margin-top: -40px; /* Adjust overlap for mobile */
        padding: 15px;
    }

    .page-contact__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-contact__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    .page-contact__channels-section {
        padding: 40px 0;
    }

    .page-contact__channels-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .page-contact__channel-card {
        padding: 20px;
    }
    
    .page-contact__channel-card img {
         /* Smaller image on mobile */
        
    }

    .page-contact__channel-title {
        font-size: 1.3em;
    }

    .page-contact__channel-text {
        font-size: 0.95em;
    }

    .page-contact__channel-link {
        padding: 8px 20px;
        font-size: 0.9em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__faq-section {
        padding: 40px 0;
    }

    .page-contact__faq-list {
        margin-top: 30px;
    }

    /* Mobile FAQ specific styles as provided in requirements */
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-contact__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }

    .page-contact__commitment-section {
        padding: 40px 0;
    }

    .page-contact__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__commitment-item {
        padding: 20px;
    }

    .page-contact__cta-section {
        padding: 50px 0;
    }

    .page-contact__btn-primary {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness for all images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__channels-section,
    .page-contact__cta-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}