/* style/contact.css */

.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #f5f5f5);
}

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

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0; /* Assuming shared.css handles body padding-top */
    min-height: 500px;
    gap: 40px;
    color: #ffffff;
    background-color: #26A9E0;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.page-contact__hero-content {
    flex: 1;
    padding-left: 50px;
    max-width: 600px;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-contact__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 50px;
    z-index: 0;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* General Section Styling */
.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description {
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff;
    padding: 60px 0;
}

.page-contact__dark-bg {
    background-color: #26A9E0;
    padding: 60px 0;
    color: #ffffff;
}

.page-contact__inline-link {
    color: #EA7C07; /* Login color for emphasis */
    text-decoration: underline;
}

.page-contact__inline-link:hover {
    color: #d66a00;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-contact__btn-primary {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid #EA7C07;
    margin-right: 15px;
}

.page-contact__btn-primary:hover {
    background-color: #d66a00;
    border-color: #d66a00;
}

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

.page-contact__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-contact__social-btn {
    background-color: #ffffff;
    color: #26A9E0;
    border: 1px solid #e0e0e0;
    margin-right: 10px;
    margin-bottom: 10px;
}

.page-contact__social-btn:hover {
    background-color: #f0f0f0;
}

/* Contact Methods Section */
.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: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 0;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

/* Operating Hours Section */
.page-contact__hours-info {
    text-align: center;
    font-size: 1.2em;
    margin-top: 30px;
    color: #ffffff;
}

.page-contact__hours-info p {
    margin-bottom: 10px;
}

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

.page-contact__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px 25px;
}

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

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* General Image Styling */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Apply a default border-radius */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        min-height: auto;
    }

    .page-contact__hero-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    .page-contact__hero-image-wrapper {
        padding-right: 20px;
        padding-left: 20px;
        margin-top: 30px;
        justify-content: center;
    }

    .page-contact__hero-title {
        font-size: 2.5em;
    }

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

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

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

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 80%;
        max-width: 300px;
    }
}

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

    .page-contact__container {
        padding: 15px;
    }

    /* HERO 主图区域 */
    .page-contact__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        min-height: auto;
        gap: 20px;
    }

    .page-contact__hero-content {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .page-contact__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-contact__hero-image-wrapper {
        padding-right: 0;
        padding-left: 0;
        margin-top: 20px;
        justify-content: center;
    }

    /* LOGO 轮播区域 (N/A for Contact Us page, but including placeholder for completeness if it were present) */
    /* .page-contact__logo-carousel-section { padding: 30px 0; } */
    /* .page-contact__logo-carousel { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; padding-bottom: 10px; } */
    /* .page-contact__logo-item { flex: 0 0 auto; width: 80px !important; height: 80px !important; max-width: 80px !important; margin: 0 10px; scroll-snap-align: center; } */

    /* 游戏展示区域 (N/A for Contact Us page) */
    /* .page-contact__games-section { padding: 40px 0; } */
    /* .page-contact__games-grid { grid-template-columns: 1fr; gap: 20px; } */
    /* .page-contact__featured-game-image { width: 100% !important; height: auto !important; } */
    /* .page-contact__game-card { padding: 20px; } */

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__methods-section,
    .page-contact__hours-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;
    }

    /* 按钮与按钮容器 */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .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;
        margin-right: 0 !important; /* Remove right margin for stacking */
    }

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

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

    .page-contact__social-links .page-contact__social-btn {
        width: 100%;
        max-width: 250px;
        margin-right: 0;
    }

    /* 其他内容模块 */
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-contact__method-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .page-contact__method-title {
        font-size: 1.3em;
    }

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

    .page-contact__faq-question h3 {
        font-size: 1.1em;
    }

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

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