/* General styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
    padding-top: 10px; /* Small top padding for hero, assuming body handles --header-offset */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-title--white {
    color: #FFFFFF;
}

.page-contact__section-description {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-contact__section-description--white {
    color: #F0F0F0;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-contact__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop, will change to contain for mobile */
    display: block;
}

.page-contact__hero-content {
    text-align: center;
    padding: 40px 15px;
    background: linear-gradient(180deg, rgba(47, 107, 255, 0.9) 0%, rgba(111, 163, 255, 0.9) 100%); /* Using brand colors with transparency */
    color: #FFFFFF;
    margin-top: -100px; /* Overlap with image slightly for visual effect */
    position: relative;
    z-index: 1;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-contact__hero-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #F0F0F0;
}

.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: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-contact__btn-secondary {
    background: #FFFFFF; /* Card BG */
    color: #2F6BFF; /* Primary */
    border: 2px solid #2F6BFF;
}

.page-contact__btn-secondary:hover {
    background: #F0F5FF;
    color: #2F6BFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.1);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
    margin-bottom: 40px;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #FFFFFF; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    font-size: 16px;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 5px;
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #6FA3FF; /* Auxiliary */
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #2F6BFF; /* Primary */
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
    outline: none;
}

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-contact__submit-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

/* Info Section */
.page-contact__info-section {
    padding: 60px 0;
    background: #2F6BFF; /* Primary */
    color: #FFFFFF;
    margin-bottom: 40px;
}

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

.page-contact__card {
    background: #FFFFFF; /* Card BG */
    color: #1F2D3D; /* Text Main */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1F2D3D; /* Text Main */
}

.page-contact__card-text {
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-contact__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button Gradient */
    color: #FFFFFF;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-contact__card-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-1px);
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.page-contact__social-links a {
    color: #2F6BFF; /* Primary */
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    background: #F4F7FB; /* Background */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-links a:hover {
    background: #E0E7FF;
    color: #2F6BFF;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
    margin-bottom: 40px;
}

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

.page-contact__commitment-item {
    background: #FFFFFF; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-contact__commitment-item img {
    
    
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
    min- /* Enforce min size */
    min- /* Enforce min size */
}

.page-contact__commitment-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1F2D3D; /* Text Main */
}

.page-contact__commitment-text {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
    margin-bottom: 40px;
}

.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 #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}
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: #1F2D3D; /* Text Main */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary */
  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: #1F2D3D; /* Text Main */
}
details.page-contact__faq-item .page-contact__faq-answer p {
    margin: 0;
}


/* CTA Bottom Section */
.page-contact__cta-bottom {
    padding: 60px 0;
    background: #2F6BFF; /* Primary */
    color: #FFFFFF;
    text-align: center;
}

.page-contact__btn-large {
    padding: 18px 40px;
    font-size: 20px;
    margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__hero-image {
        height: 500px;
    }
    .page-contact__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__section-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px; /* Small top padding for hero */
    }
    .page-contact__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-contact__hero-section {
        margin-bottom: 30px;
    }
    .page-contact__hero-image {
        height: 300px; /* Adjust height for mobile */
    }
    .page-contact__hero-image img {
        object-fit: contain !important; /* Prevent cropping */
        aspect-ratio: unset !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__hero-content {
        padding: 30px 15px;
        margin-top: -50px; /* Less overlap */
    }
    .page-contact__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller font for mobile */
        margin-bottom: 15px;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__submit-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__commitment-section,
    .page-contact__faq-section,
    .page-contact__cta-bottom {
        padding: 30px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__form-section .page-contact__container,
    .page-contact__info-section .page-contact__container,
    .page-contact__commitment-section .page-contact__container,
    .page-contact__faq-section .page-contact__container,
    .page-contact__cta-bottom .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-contact__contact-cards {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .page-contact__card img {
         /* Smaller image in cards */
        
        min-
        min-
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__card-text {
        font-size: 15px;
    }
    .page-contact__social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-contact__commitment-points {
        grid-template-columns: 1fr; /* Stack commitment items */
    }
    .page-contact__commitment-item img {
        
        
        min-
        min-
    }
    .page-contact__commitment-heading {
        font-size: 18px;
    }
    .page-contact__commitment-text {
        font-size: 15px;
    }

    /* FAQ Section - specific mobile styles */
    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; }

    .page-contact__btn-large {
        padding: 15px 30px;
        font-size: 18px;
    }
}