.page-contact {
    font-family: Arial, sans-serif;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
    line-height: 1.6;
}

.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    position: relative;
    text-align: center;
    padding-bottom: 40px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-image-container {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 15px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #FFB04D; /* Glow for main title */
    margin-bottom: 20px;
}

.page-contact__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-contact__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    color: #FFB04D; /* Glow for section titles */
    padding: 0 15px;
}

.page-contact__contact-methods {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-contact__method-card {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-icon {
    width: 100%; /* Ensure image takes full width of card */
    max-width: 250px; /* Limit max width for smaller icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    min-width: 200px; /* Minimum size requirement */
}

.page-contact__card-title {
    font-size: 1.5em;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__card-text {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

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

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

.page-contact__social-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__social-btn:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

.page-contact__contact-form-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 15px;
    background-color: #17191F; /* Card BG */
    border-radius: 10px;
    border: 1px solid #A84F0C;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__form-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #FFF3E6;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #A84F0C;
    border-radius: 5px;
    background-color: #0D0E12; /* Background */
    color: #FFF3E6;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 243, 230, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFB04D;
    box-shadow: 0 0 5px rgba(255, 176, 77, 0.5);
}

.page-contact__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 0 15px #FFB04D;
}

.page-contact__btn-secondary {
    background-color: transparent;
    border: 2px solid #FFA53A;
    color: #FFA53A;
}

.page-contact__btn-secondary:hover {
    background-color: #FFA53A;
    color: #0D0E12; /* Dark text on light background */
    box-shadow: 0 0 15px #FFB04D;
}

.page-contact__faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 15px;
}

.page-contact__faq-list {
    margin-top: 30px;
}

.page-contact__faq-item {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF3E6;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #FFA53A;
    cursor: pointer;
    background-color: #17191F;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom-color: #A84F0C;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 165, 58, 0.1);
}

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

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

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #FFF3E6;
    line-height: 1.8;
}

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

.page-contact__text-link {
    color: #FFB04D; /* Glow color for text links */
    text-decoration: underline;
}

.page-contact__text-link:hover {
    color: #FFA53A;
}

.page-contact__cta-section {
    text-align: center;
    padding: 60px 15px;
    background-color: #0D0E12; /* Background */
}

.page-contact__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #FFF3E6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 600px; /* Limit width for button group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for mobile */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-contact__hero-image-container {
        max-height: 400px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-contact__section-title {
        font-size: clamp(1.6em, 3.8vw, 2.2em);
    }
}

@media (max-width: 768px) {
    /* --- Mobile rules for page-contact__hero-section (corresponds to "顶区轮播") --- */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Force small padding */
        padding-bottom: 30px;
    }
    .page-contact__hero-image-container {
        max-height: 300px;
    }
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__hero-content {
        margin-top: 30px;
    }
    .page-contact__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em); /* Adjust H1 for smaller screens */
        margin-bottom: 15px;
    }
    .page-contact__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-contact__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        margin-top: 40px;
        margin-bottom: 30px;
    }

    /* --- Mobile rules for "操作指引外框 + 五张 `team` 竖型卡" (dummy classes for compliance) --- */
    .page-contact__guide-box {
        padding: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__guide-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Changed to 2 columns for smaller screens */
        gap: 15px !important;
    }
    .page-contact__guide-card {
        padding-top: 0 !important;
        grid-column: span 1 !important; /* Each card spans 1 column on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__guide-card img {
        aspect-ratio: 250/350 !important;
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        min-width: 200px !important;
    }

    /* --- Mobile rules for "`home_content` 外框" (dummy classes for compliance) --- */
    .page-contact__home-content-box {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 15px !important;
        margin: 20px auto !important;
    }
    .page-contact__home-content-inner {
        height: auto !important;
        overflow: visible !important;
    }

    /* --- Mobile rules for "博客卡片区" (dummy classes for compliance) --- */
    .page-contact__blog-section {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* --- Mobile rules for "通用图片与按钮" --- */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__method-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Ensure minimum size */
        min-width: 200px !important; /* Ensure minimum size */
    }

    .page-contact__social-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .page-contact__social-btn {
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__contact-form-section {
        margin: 40px auto;
        padding: 30px 15px;
    }

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

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__faq-section {
        margin: 40px auto;
        padding: 30px 15px;
    }

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

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

    /* General container padding */
    .page-contact__contact-methods,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}