.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color, #FFF5E1); /* Default text color for dark background */
    background-color: var(--page-background, #B71C1C); /* Custom background */
}

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

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-background, #B71C1C);
    color: var(--text-color, #FFF5E1);
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop default */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    background: #7A0E0E; /* Deep Red for hero content background */
    color: #FFF5E1; /* Text Main for hero content text */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold color for main title for contrast */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1; /* Text Main */
}

/* General Section Styling */
.page-contact__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #F4D34D; /* Gold */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-contact__section-title--light {
    color: #F4D34D; /* Gold for dark background sections */
}

.page-contact__section-description {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-color, #FFF5E1);
}

.page-contact__section-description--light {
    color: #FFF5E1; /* Text Main */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red for text on gold button for contrast */
    border: 2px solid #F2B544; /* Custom border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #F2B544; /* Custom border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-left: 20px;
}

.page-contact__btn-secondary:hover {
    background: #B71C1C; /* Background color on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Intro Section */
.page-contact__intro-section {
    padding: 60px 0;
    background: #B71C1C; /* Custom background */
    color: #FFF5E1; /* Text Main */
}

.page-contact__light-bg {
    background-color: #B71C1C; /* Ensure this is a dark background */
    color: #FFF5E1;
}

.page-contact__dark-section {
    background-color: #7A0E0E; /* Deep Red */
    color: #FFF5E1; /* Text Main */
    padding: 60px 0;
}

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

.page-contact__feature-item {
    background: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
    color: #FFF5E1; /* Text Main */
}

.page-contact__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold */
}

.page-contact__feature-text {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
}

/* Contact Methods Section */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-contact__method-card {
    background: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
    color: #FFF5E1; /* Text Main */
}

.page-contact__card--dark {
    background: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
}

.page-contact__method-icon {
    width: 150px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__method-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold */
}

.page-contact__method-text {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #FFF5E1; /* Text Main */
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background: #B71C1C; /* Custom background */
    color: #FFF5E1; /* Text Main */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #D32F2F; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border */
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FFD86A; /* Gold */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #F2B544; /* Border */
    border-radius: 5px;
    background: #7A0E0E; /* Deep Red */
    color: #FFF5E1; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 245, 225, 0.7); /* Lighter version of Text Main */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD86A; /* Gold */
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 216, 106, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background: #7A0E0E; /* Deep Red */
    color: #FFF5E1; /* Text Main */
}

.page-contact__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
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;
  background: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main */
}
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: #E53935; /* Auxiliary color */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold for question text */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  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: #D32F2F; /* Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main */
}
.page-contact__faq-answer p {
    margin-top: 15px;
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
}


/* Location Section */
.page-contact__location-section {
    padding: 60px 0;
    background: #B71C1C; /* Custom background */
    color: #FFF5E1; /* Text Main */
}

.page-contact__location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    align-items: flex-start;
}

.page-contact__map-embed {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
}

.page-contact__map-iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.page-contact__address-info {
    background: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
    color: #FFF5E1; /* Text Main */
}

.page-contact__address-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold */
}

.page-contact__address-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #FFF5E1; /* Text Main */
}

/* CTA Section */
.page-contact__cta-section {
    padding: 60px 0;
    background: #7A0E0E; /* Deep Red */
    color: #FFF5E1; /* Text Main */
    text-align: center;
}

.page-contact__cta-content {
    max-width: 900px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    .page-contact__hero-content {
        padding: 25px;
    }

    .page-contact__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-contact__section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

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

    .page-contact__location-content {
        grid-template-columns: 1fr;
    }

    .page-contact__map-iframe {
        height: 350px;
    }

    .page-contact__address-info {
        text-align: center;
    }
    
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 849px) { /* HERO specific media query for object-fit */
    .page-contact__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
}

@media (max-width: 768px) {
    .page-contact__container {
        padding: 15px;
    }

    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
    }
    .page-contact__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Ensure image is not cropped */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    }
    .page-contact__hero-content {
        padding: 20px;
        margin-bottom: 30px;
    }
    .page-contact__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem); /* Adjust clamp for smaller screens */
        margin-bottom: 15px;
    }
    .page-contact__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 装饰主标题 + 长文 SEO 区 (General section titles/descriptions) */
    .page-contact__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }
    .page-contact__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__map-embed,
    .page-contact__map-iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: 300px !important;
    }
    .page-contact__location-content {
        padding-left: 15px; /* Adjust padding for mobile to prevent overflow */
        padding-right: 15px;
    }


    /* 按钮与按钮容器 */
    .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: 12px 15px !important; /* Adjust padding for mobile */
        font-size: 1rem !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 10px;
    }
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-contact__cta-buttons .page-contact__btn-secondary {
        margin-bottom: 0; /* Remove extra margin for last button in stack */
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Single column for contact methods */
    }

    /* FAQ Section */
    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__faq-answer p { font-size: 0.95rem; }

    /* Form Section */
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
}