/* General styling for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page background from custom colors */
}

/* Article wrap for content width */
.page-contact__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, relies on shared body padding */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-contact__hero-content-wrap {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    width: 100%;
    max-width: 1150px; /* Constrain content width */
    padding: 20px;
    box-sizing: border-box;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it behaves as a block element */
}

.page-contact__text-content {
    max-width: 800px;
    margin-top: 20px; /* Space between image and text */
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    color: #FFD36B; /* Auxiliary color for titles */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-contact__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
}

/* Buttons */
.page-contact__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Include padding in element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4);
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 211, 107, 0.6);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFD36B; /* Auxiliary color */
    border: 2px solid #FFD36B;
    box-shadow: 0 4px 10px rgba(255, 211, 107, 0.2);
}

.page-contact__btn-secondary:hover {
    background-color: #FFD36B;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 211, 107, 0.4);
}

/* General Section Styling */
.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #F2C14E; /* Main color for section titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1rem;
    color: #FFF6D6;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Contact Channels Section */
.page-contact__contact-channels {
    background-color: #0A0A0A; /* Dark background */
}

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

.page-contact__channel-card {
    background-color: #111111; /* Card background color */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

.page-contact__channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-contact__card-title {
    font-size: 1.6rem;
    color: #FFD36B; /* Auxiliary color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-contact__card-text {
    font-size: 1rem;
    color: #FFF6D6;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-contact__contact-form {
    margin-top: 20px;
}

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

.page-contact__form-label {
    display: block;
    font-size: 1rem;
    color: #F2C14E; /* Main color for labels */
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    background-color: #0A0A0A; /* Dark input background */
    color: #FFF6D6; /* Light text color */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 246, 214, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD36B;
    outline: none;
}

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

.page-contact__social-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    color: #FFF6D6;
    font-size: 1rem;
}

.page-contact__social-list li {
    margin-bottom: 8px;
}

.page-contact__phone-number {
    font-size: 1.2rem;
    color: #FFD36B;
    margin-bottom: 10px;
}

.page-contact__phone-text {
    font-weight: bold;
    color: #F2C14E; /* Main color for important text */
}

.page-contact__phone-note {
    font-size: 0.9rem;
    color: rgba(255, 246, 214, 0.7);
    margin-top: -5px;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #0A0A0A;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: #FFD36B;
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

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

.page-contact__faq-question:hover {
    background-color: #222222;
}

.page-contact__faq-toggle {
    font-size: 1.5rem;
    color: #F2C14E;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #FFF6D6;
    line-height: 1.7;
}

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

.page-contact__faq-link {
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__faq-link:hover {
    color: #FFD36B;
    text-decoration: underline;
}

/* Commitment Section */
.page-contact__commitment-section {
    background-color: #111111; /* Card background color as section background */
    padding-bottom: 80px;
}

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

.page-contact__commitment-item {
    background-color: #0A0A0A; /* Background color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #3A2A12;
}

.page-contact__commitment-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-contact__commitment-title {
    font-size: 1.4rem;
    color: #FFD36B;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__commitment-text {
    font-size: 1rem;
    color: #FFF6D6;
    flex-grow: 1;
}

/* Final CTA Section */
.page-contact__final-cta-section {
    background-color: #0A0A0A;
    padding-bottom: 80px;
}

.page-contact__final-cta-content {
    padding: 50px 20px;
    background-color: #111111;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #3A2A12;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__article-wrap {
        padding: 0 15px;
    }

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

    .page-contact__hero-description,
    .page-contact__section-description {
        font-size: 1rem;
    }

    .page-contact__channel-grid,
    .page-contact__commitment-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-contact__channel-card,
    .page-contact__commitment-item {
        padding: 25px;
    }

    .page-contact__card-title {
        font-size: 1.4rem;
    }

    .page-contact__card-image,
    .page-contact__commitment-image {
        height: 180px;
    }

    .page-contact__faq-question {
        font-size: 1.05rem;
        padding: 18px 20px;
    }

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

@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    
    .page-contact__hero-content-wrap {
        padding: 15px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Buttons stack vertically */
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    
    .page-contact__btn {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. 单栏长文容器 */
    .page-contact__article-wrap,
    .page-contact__section,
    .page-contact__contact-channels,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__final-cta-section,
    .page-contact__channel-card,
    .page-contact__commitment-item,
    .page-contact__final-cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

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

    /* 3. 通用图片与 figure */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image {
        height: auto; /* Allow hero image to adjust height */
        margin-bottom: 20px;
    }

    .page-contact__card-image,
    .page-contact__commitment-image {
        height: 150px;
    }

    /* 5. FAQ 区块 */
    .page-contact__faq-list {
        margin-top: 30px;
    }
    
    .page-contact__faq-item {
        margin-bottom: 10px;
    }

    .page-contact__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-contact__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }
    
    .page-contact p,
    .page-contact li {
      font-size: 16px;
      line-height: 1.6;
    }

    .page-contact__channel-grid,
    .page-contact__commitment-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }
    
    .page-contact__channel-card,
    .page-contact__commitment-item {
        padding: 20px;
    }

    .page-contact__card-title,
    .page-contact__commitment-title {
        font-size: 1.3rem;
    }
    
    .page-contact__contact-form .page-contact__btn {
        margin-top: 10px;
    }
}