/* General styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    background-color: #0A0A0A; /* Custom background color */
    color: #FFF6D6; /* Custom text color */
    line-height: 1.6;
    padding-bottom: 40px;
}

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

.page-contact__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    position: relative;
}

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

.page-contact__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: rgba(17, 17, 17, 0.8); /* Card BG with opacity */
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image for visual effect, but not text on image */
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #3A2A12; /* Border color */
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3); /* Glow effect */
}

.page-contact__main-title {
    color: #F2C14E; /* Main color */
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: #FFF6D6; /* Main text color */
    max-width: 800px;
    margin: 0 auto;
}

.page-contact__section-title {
    color: #F2C14E; /* Main color */
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    line-height: 1.3;
}

.page-contact__paragraph {
    font-size: 1.05em;
    color: #FFF6D6; /* Main text color */
    text-align: justify;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__paragraph--small {
    font-size: 0.9em;
    text-align: center;
    opacity: 0.8;
}

/* Introduction Section */
.page-contact__introduction-section {
    padding: 40px 0;
    background-color: #111111; /* Card BG */
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #3A2A12; /* Border color */
}

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

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #3A2A12; /* Border color */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.2);
}

.page-contact__form-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.page-contact__contact-form {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD36B; /* Auxiliary color */
    box-shadow: 0 0 8px rgba(255, 211, 107, 0.5); /* Glow on focus */
    outline: none;
}

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

.page-contact__submit-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4); /* Glow effect */
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* Channels Section */
.page-contact__channels-section {
    padding: 40px 0;
    margin-bottom: 40px;
    background-color: #111111; /* Card BG */
    border-radius: 8px;
    border: 1px solid #3A2A12; /* Border color */
}

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

.page-contact__channel-card {
    background-color: #0A0A0A; /* Background color */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #3A2A12; /* Border color */
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-contact__channel-title {
    color: #FFD36B; /* Auxiliary color */
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__channel-description {
    color: #FFF6D6; /* Main text color */
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__channel-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto 20px auto;
    border-radius: 5px;
    object-fit: cover;
}

.page-contact__channel-button,
.page-contact__social-icon {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: auto; /* Push to bottom */
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__channel-button:hover,
.page-contact__social-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(242, 193, 78, 0.4);
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-contact__faq-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #3A2A12; /* Border color */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.2);
}

.page-contact__faq-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.page-contact__faq-items {
    flex: 1;
    max-width: 50%;
}

.page-contact__faq-item {
    background-color: #0A0A0A; /* Background color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6; /* Main text color */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #1A1A1A; /* Slightly darker than main bg for contrast */
    color: #FFD36B; /* Auxiliary color */
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #222222; /* Darker on open */
}

.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);
}

.page-contact__faq-answer {
    padding: 15px 20px;
    border-top: 1px solid #3A2A12; /* Border color */
    color: #FFF6D6; /* Main text color */
    font-size: 0.95em;
}

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

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

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

.page-contact__cta-faq {
    text-align: center;
    margin-top: 30px;
}

.page-contact__cta-link {
    color: #F2C14E; /* Main color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-contact__cta-link:hover {
    color: #FFD36B; /* Auxiliary color */
    text-decoration: underline;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 50px 0;
    text-align: center;
    background-color: #111111; /* Card BG */
    border-radius: 8px;
    border: 1px solid #3A2A12; /* Border color */
    box-shadow: 0 0 25px rgba(242, 193, 78, 0.3);
}

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

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

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-contact__btn-secondary {
    background: #0A0A0A; /* Background color */
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-contact__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.3);
    background-color: #1A1A1A; /* Slightly darker on hover */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-contact__form-wrapper,
    .page-contact__faq-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .page-contact__form-image,
    .page-contact__contact-form,
    .page-contact__faq-image,
    .page-contact__faq-items {
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding */
        margin-bottom: 20px;
    }
    .page-contact__hero-content {
        margin-top: -40px;
        padding: 20px 10px;
        max-width: calc(100% - 30px); /* Account for padding in container */
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-contact__hero-description {
        font-size: 1em;
    }

    /* General sections and containers */
    .page-contact__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 20px;
        padding-top: 30px;
    }

    .page-contact__paragraph {
        font-size: 0.95em;
        margin-bottom: 15px;
        max-width: 100%;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-contact__form-wrapper,
    .page-contact__channels-section,
    .page-contact__faq-section,
    .page-contact__cta-section,
    .page-contact__introduction-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Contact Form Section */
    .page-contact__form-wrapper {
        padding: 20px;
    }
    .page-contact__form-image {
        margin-bottom: 20px;
    }
    .page-contact__submit-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Channels Section */
    .page-contact__channels-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-contact__channel-card {
        padding: 20px;
    }

    /* FAQ Section */
    .page-contact__faq-grid {
        padding: 20px;
    }
    .page-contact__faq-image {
        margin-bottom: 20px;
    }
    .page-contact__faq-question {
        padding: 12px 15px;
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    /* 按钮与按钮容器 */
    .page-contact__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
    }
    .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;
    }
    .page-contact__paragraph--small {
        padding: 0 15px;
    }
}