/* Basic styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main */
    background: #B71C1C; /* Background */
}

/* Container for centralizing content */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    margin-bottom: 40px;
    text-align: center;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-contact__hero-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-contact__hero-content {
    padding: 40px 20px;
    background: linear-gradient(rgba(183, 28, 28, 0.8), rgba(201, 31, 23, 0.8)); /* Deep Red background with opacity */
    margin-top: -100px; /* Overlap slightly with image for visual effect */
    position: relative;
    z-index: 1;
    border-radius: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #FFD86A; /* Gold-like for emphasis */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__description {
    font-size: 1.2em;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 30px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__form-submit-btn,
.page-contact__social-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-contact__btn-secondary {
    background: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #F2B544; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #FFD86A; /* Gold for titles */
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #FFF5E1; /* Text Main */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #D32F2F; /* Card BG */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border */
}

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

.page-contact__form-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__contact-form {
    flex: 1;
    min-width: 300px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #F2B544; /* Border */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFF5E1; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD86A; /* Gold */
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 10px;
    margin-top: 10px;
}

/* Channels Section */
.page-contact__channels-section {
    padding: 60px 0;
    background: #C91F17; /* Main color */
}

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

.page-contact__channel-card {
    background: #D32F2F; /* Card BG */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__channel-card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-contact__channel-title {
    font-size: 1.8em;
    color: #FFD86A; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__channel-text {
    color: #FFF5E1; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__channel-info {
    font-size: 1.1em;
    color: #FFF5E1; /* Text Main */
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-contact__social-btn {
    flex: 1 1 auto; /* Allow buttons to grow and shrink */
    min-width: 120px;
}

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

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

.page-contact__faq-item {
    background: #D32F2F; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border */
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD86A; /* Gold */
    cursor: pointer;
    background: #7A0E0E; /* Deep Red */
    border-bottom: 1px solid rgba(242, 181, 68, 0.3); /* Lighter border */
    list-style: none; /* For details/summary */
    position: relative;
    user-select: none;
}

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

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate for open state */
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #FFF5E1; /* Text Main */
    background: #D32F2F; /* Card BG */
}

.page-contact__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-contact__final-cta-section {
    padding: 60px 0;
    text-align: center;
    background: #C91F17; /* Main color */
}

.page-contact__btn-large {
    padding: 15px 40px;
    font-size: 1.3em;
    border-radius: 35px;
    margin-top: 20px;
}

/* --- Responsive Styles (Mobile First) --- */

/* General Image and Button Responsiveness */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.page-contact__cta-buttons,
.page-contact__button-group,
.page-contact__btn-container,
.page-contact__social-links {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 顶区轮播 (hero-carousel-section) - Mobile styles */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 20px;
    }

    .page-contact__hero-content {
        padding: 30px 15px;
        margin-top: -50px; /* Adjust overlap */
    }

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

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Contact Form Section */
    .page-contact__form-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .page-contact__form-image {
        min-width: unset;
        width: 100%;
    }

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

    /* Channels Section */
    .page-contact__channels-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__channel-card {
        padding: 20px;
    }

    .page-contact__channel-title {
        font-size: 1.5em;
    }

    .page-contact__social-links {
        flex-direction: column;
        gap: 10px;
    }

    /* FAQ Section */
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    /* General Images and Buttons */
    .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-wrapper,
    .page-contact__channels-grid,
    .page-contact__social-links,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__form-submit-btn,
    .page-contact__social-btn,
    .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;
    }

    /* 操作指引外框 + 五张 team 竖型卡 (guide-box) - Placeholder for CSS requirement */
    .page-contact__guide-box {
        padding: 15px;
    }
    .page-contact__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* Basis for 2+3 layout */
        gap: 10px;
    }
    .page-contact__guide-card {
        padding-top: 0 !important; /* Reset specific padding for mobile */
    }
    /* Specific rules for 5 cards: 2 on top, 3 on bottom */
    .page-contact__guide-card--pos-1, .page-contact__guide-card--pos-2 { /* First two cards */
        grid-column: span 3; /* 3/6 = 1/2 width */
    }
    .page-contact__guide-card--pos-3, .page-contact__guide-card--pos-4, .page-contact__guide-card--pos-5 { /* Last three cards */
        grid-column: span 2; /* 2/6 = 1/3 width */
    }
    .page-contact__guide-card img {
        aspect-ratio: 250/350; /* Keep aspect ratio */
    }

    /* home_content 外框 (home-content-box) - Placeholder for CSS requirement */
    .page-contact__home-content-box {
        max-width: 100%;
        height: auto; /* Full content visible */
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .page-contact__home-content-inner {
        height: auto;
        overflow: visible;
    }

    /* 博客卡片区 (blog-section) - Placeholder for CSS requirement */
    .page-contact__blog-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 15px;
    }
}