/* Body background is default white, so text color should be dark */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    text-align: center;
    overflow: hidden;
    background-color: #f5f5f5; /* Light background for the section */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area */
}

.page-contact__hero-content {
    max-width: 800px;
    padding: 0 20px 40px;
    z-index: 1;
}

.page-contact__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555555;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-contact__btn-primary {
    background: #26A9E0; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
    background: #1e87b8;
    border-color: #1e87b8;
}

.page-contact__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
    background: #f0f8ff;
    color: #1e87b8;
    border-color: #1e87b8;
}

/* Section Titles & Descriptions */
.page-contact__section-title {
    font-size: clamp(24px, 3vw, 38px);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    padding-top: 40px;
}

.page-contact__section-description {
    font-size: 17px;
    color: #555555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background: #FFFFFF;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__form-group {
    margin-bottom: 20px;
}

.page-contact__form-label {
    display: block;
    font-size: 16px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__btn-submit {
    width: 100%;
    background: #26A9E0;
    color: #FFFFFF;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__btn-submit:hover {
    background: #1e87b8;
}

/* Other Methods Section */
.page-contact__other-methods-section {
    padding: 60px 0;
    background: #26A9E0; /* Dark background for this section */
    color: #FFFFFF; /* White text for dark background */
}

.page-contact__other-methods-section .page-contact__section-title,
.page-contact__other-methods-section .page-contact__section-description {
    color: #FFFFFF;
}

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

.page-contact__method-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
}

.page-contact__method-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-contact__method-text {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
}

.page-contact__btn-small:hover {
    background: #e0f2ff;
    color: #1e87b8;
    border-color: #e0f2ff;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
    background: #FFFFFF;
}

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

.page-contact__commitment-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__commitment-heading {
    font-size: 20px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-contact__commitment-text {
    font-size: 16px;
    color: #555555;
}

.page-contact__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background: #f5f5f5;
}

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

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: #f5f5f5;
}
.page-contact__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}
details.page-contact__faq-item .page-contact__faq-answer p {
    margin: 0;
    font-size: 16px;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 20px 30px;
    }
    .page-contact__hero-image-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    /* General Mobile */
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__container {
        padding: 0 15px !important; /* Force padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }
    .page-contact__hero-image-wrapper {
        max-height: 300px;
    }
    .page-contact__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__hero-content {
        padding: 0 15px 30px;
    }
    .page-contact__main-title {
        font-size: clamp(24px, 7vw, 36px);
        padding-top: 20px;
    }
    .page-contact__description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-contact__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
    }

    /* General Section Titles & Descriptions */
    .page-contact__section-title {
        font-size: clamp(22px, 6vw, 32px);
        padding-top: 30px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Contact Form Section */
    .page-contact__form-section {
        padding: 40px 0;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        font-size: 15px;
        padding: 10px 12px;
    }
    .page-contact__btn-submit {
        font-size: 16px;
        padding: 12px 15px;
    }

    /* Other Methods Section */
    .page-contact__other-methods-section {
        padding: 40px 0;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
        margin-top: 30px;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    .page-contact__method-title {
        font-size: 20px;
    }
    .page-contact__method-text {
        font-size: 15px;
    }
    .page-contact__btn-small {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Commitment Section */
    .page-contact__commitment-section {
        padding: 40px 0;
    }
    .page-contact__commitment-points {
        grid-template-columns: 1fr; /* Stack items vertically */
        gap: 20px;
        margin-top: 30px;
    }
    .page-contact__commitment-item {
        padding: 20px;
    }
    .page-contact__commitment-heading {
        font-size: 18px;
    }
    .page-contact__commitment-text {
        font-size: 15px;
    }
    .page-contact__cta-bottom {
        margin-top: 40px;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 0;
    }
    .page-contact__faq-list {
        margin: 30px auto 0;
    }
    details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
    .page-contact__faq-qtext { font-size: 15px; }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 15px 15px;
    }
    details.page-contact__faq-item .page-contact__faq-answer p {
        font-size: 15px;
    }
}