/* style/contact.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* 主色调 */
    --color-secondary: #22C768; /* 辅助色 */
    --color-background: #08160F; /* 背景 */
    --color-card-bg: #11271B; /* Card BG */
    --color-text-main: #F2FFF6; /* Text Main */
    --color-text-secondary: #A7D9B8; /* Text Secondary */
    --color-border: #2E7A4E; /* 边框 */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* 按钮 */
}

/* Base styles for page-contact - Assuming body has a dark background from shared.css */
.page-contact {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Explicitly set for main content area if needed, but shared.css body usually handles */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space before footer */
}

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

/* Section titles and descriptions */
.page-contact__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Use clamp for H2 */
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't bleed */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
    margin-bottom: 40px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast, not color change */
}

.page-contact__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-contact__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--color-gold); /* Gold for H1 */
    margin-bottom: 20px;
}

.page-contact__description {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box; /* Include padding/border in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-contact__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background: var(--color-deep-green); /* Deep Green background */
    color: var(--color-text-main); /* Main text color */
    border: 2px solid var(--color-border);
    margin-left: 15px; /* Spacing between buttons */
}

.page-contact__btn-secondary:hover {
    background: var(--color-border);
    color: #ffffff;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
}

.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-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    height: 100%; /* Make cards same height */
    box-sizing: border-box;
}

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

.page-contact__method-icon {
    width: 200px; /* Min size 200x200 */
    height: 200px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 8px;
}

.page-contact__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-contact__email-link,
.page-contact__phone-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
    text-decoration: underline;
}

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

.page-contact__social-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    max-width: 100%;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Lighter green background for contrast with dark body */
    color: var(--color-text-main); /* Text Main for this section */
}

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

.page-contact__faq-item {
    background-color: var(--color-card-bg); /* Card BG for FAQ item */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold); /* Gold for question text */
    transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-contact__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

.page-contact__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--color-primary); /* Primary color for toggle */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary); /* Secondary text color for answer */
}

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

.page-contact__faq-answer .page-contact__btn-secondary {
    margin-top: 10px;
    margin-left: 0;
}

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

.page-contact__form-section .page-contact__container {
    background-color: var(--color-card-bg); /* Dark background for form container */
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.page-contact__contact-form {
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
    z-index: 1; /* Ensure form is above image */
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-text-main);
    font-size: 1.05rem;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-deep-green); /* Deep Green for input background */
    color: var(--color-text-main);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--color-gold);
    outline: none;
}

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

.page-contact__submit-button {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 15px 25px;
}

.page-contact__form-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.1; /* Very subtle background image */
    z-index: 0;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__cta-section .page-contact__container {
    background-color: var(--color-card-bg); /* Dark background for CTA container */
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 1;
    position: relative;
}

.page-contact__cta-section .page-contact__section-title {
    margin-bottom: 25px;
}

.page-contact__cta-section .page-contact__section-description {
    margin-bottom: 40px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 500px; /* Max width for button group */
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.05; /* Very subtle background image */
    z-index: 0;
}

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

    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__form-section,
    .page-contact__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-contact__hero-section {
        padding-bottom: 40px;
    }

    .page-contact__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
    }

    .page-contact__description {
        font-size: 1rem;
    }

    .page-contact__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 15px;
    }

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

    /* Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Videos - Not present in this page, but for completeness based on prompt */
    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-contact__video-section {
      padding-top: 10px !important;
    }
    .page-contact__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }


    /* Buttons */
    .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;
        margin-left: 0 !important; /* Remove left margin for stacking */
        margin-bottom: 10px; /* Add bottom margin for stacking */
    }

    .page-contact__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding-left: 0 !important; /* Adjust padding for button group */
        padding-right: 0 !important;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

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

    .page-contact__faq-item summary {
        font-size: 1.05rem;
        padding: 15px 20px;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px;
    }

    .page-contact__form-section .page-contact__container,
    .page-contact__cta-section .page-contact__container {
        padding: 30px 20px;
    }

    .page-contact__submit-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Small adjustments for tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-contact__container {
        padding: 0 30px;
    }

    .page-contact__methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-contact__hero-content {
        max-width: 700px;
    }

    .page-contact__form-section .page-contact__container,
    .page-contact__cta-section .page-contact__container {
        padding: 40px;
    }
}