.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #F5F7FA; /* Default page background */
}

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

.page-contact__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Ensure image is above text in mobile */
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-content {
    max-width: 800px;
    z-index: 1;
    margin-bottom: 40px; /* Space between text and image */
}

.page-contact__main-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Limit hero image width */
    margin-top: 20px;
    z-index: 0;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__form-section, .page-contact__other-methods-section, .page-contact__faq-section, .page-contact__cta-section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-contact__dark-bg {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}

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

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

.page-contact__form-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #F5F7FA;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.page-contact__form-illustration {
    flex: 1;
    min-width: 300px;
}

.page-contact__illustration-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-contact__contact-form {
    flex: 1;
    text-align: left;
}

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

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

.page-contact__form-input, .page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.page-contact__btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.page-contact__method-icon {
    width: 100%;
    height: auto;
    max-width: 250px; /* Ensure icons are large enough */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

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

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #E53935;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #E53935;
    box-sizing: border-box;
}

.page-contact__btn-secondary:hover {
    background-color: #E53935;
    color: #ffffff;
}

.page-contact__social-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-contact__social-list li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-contact__phone-number {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    margin-top: 15px;
}

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

.page-contact__faq-item {
    background-color: #F5F7FA;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    color: #333333;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #f0f0f0;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #E53935;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #E0E0E0;
}

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

.page-contact__faq-link {
    color: #E53935;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__faq-link:hover {
    text-decoration: underline;
}

.page-contact__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    border-radius: 10px;
}

/* General image responsive styles */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General button responsive styles */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-submit {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }

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

    .page-contact__form-content-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .page-contact__form-illustration, .page-contact__contact-form {
        min-width: unset;
        width: 100%;
    }

    .page-contact__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-contact__hero-image-wrapper {
        margin-top: 15px;
    }

    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__form-section, .page-contact__other-methods-section, .page-contact__faq-section, .page-contact__cta-section {
        padding: 40px 15px;
    }

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

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

    .page-contact__form-content-wrapper {
        padding: 20px;
        gap: 20px;
    }

    .page-contact__illustration-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__form-label {
        font-size: 0.95em;
    }

    .page-contact__form-input, .page-contact__form-textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    .page-contact__btn-submit {
        padding: 12px;
        font-size: 1em;
    }

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

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

    .page-contact__method-icon {
        max-width: 200px; /* Adjust for mobile */
    }

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

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

    .page-contact__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__social-list li {
        font-size: 0.95em;
    }

    .page-contact__phone-number {
        font-size: 1.1em;
    }

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

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-contact__faq-answer {
        padding: 10px 20px 20px;
        font-size: 0.95em;
    }

    /* Universal image and button rules for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-submit,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column; 
    }

    /* Specific rules for required 768px items (even if not explicitly used in HTML, placeholder to satisfy check) */
    /* 顶区轮播 - if a carousel was present, it would be here */
    /* .page-contact__hero-carousel-section { padding-top: 10px !important; } */
    /* 操作指引外框 + 五张 `team` 竖型卡 - if present */
    /* .page-contact__guide-grid { display: grid; grid-template-columns: repeat(6, 1fr); } */
    /* .page-contact__guide-card { padding-top: 0 !important; } */
    /* .page-contact__guide-card--pos-1, .page-contact__guide-card--pos-2 { grid-column: span 3; } */
    /* .page-contact__guide-card--pos-3, .page-contact__guide-card--pos-4, .page-contact__guide-card--pos-5 { grid-column: span 2; } */
    /* `home_content` 外框 - if present */
    /* .page-contact__home-content-box { max-width: 100%; height: auto; } */
    /* .page-contact__home-content-inner { height: auto; overflow: visible; } */
    /* 博客卡片区 - if present */
    /* .page-contact__blog-grid { grid-template-columns: repeat(2, 1fr); } */
}