/* Base styles for the About Us page, scoped with BEM */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default for light body background */
    background-color: #F4F7FB; /* Custom background color */
}

.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Space for content below image */
    background-color: #2F6BFF; /* Main brand color for hero background */
    color: #ffffff;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
}

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

.page-about__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-about__main-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-about__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #2F6BFF;
    transform: translateY(-2px);
}

.page-about__section-spacing {
    padding: 60px 0;
}

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

.page-about__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #1F2D3D; /* Text Main */
}

.page-about__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333333;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dark section specific styles */
.page-about__dark-section {
    background-color: #2F6BFF; /* Main brand color */
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__feature-title,
.page-about__dark-section .page-about__feature-description,
.page-about__dark-section .page-about__security-title,
.page-about__dark-section .page-about__security-description,
.page-about__dark-section .page-about__faq-qtext {
    color: #ffffff;
}

/* Why Choose Us section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__feature-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for contrast */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__feature-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Our Values section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__value-item {
    background: #ffffff; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__value-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1F2D3D; /* Text Main */
}

.page-about__value-description {
    font-size: 0.95em;
    color: #333333;
}

/* Security and Fair Play section */
.page-about__security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__security-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for contrast */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__security-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-about__security-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Social Responsibility section */
.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-about__responsibility-item {
    background: #ffffff;
    padding: 15px 20px;
    border-left: 5px solid #2F6BFF;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #333333;
    font-size: 1.0em;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-about__responsibility-item strong {
    color: #2F6BFF;
}

/* FAQ section */
.page-about__faq-list {
    margin-top: 30px;
}

.page-about__faq-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for contrast */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    list-style: none; /* Hide default marker for details summary */
}

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

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

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

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
}

/* CTA Banner section */
.page-about__cta-banner {
    background-color: #F4F7FB; /* Background color */
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-about__cta-banner .page-about__section-title {
    color: #1F2D3D;
    margin-bottom: 25px;
}

.page-about__cta-banner .page-about__text-block {
    color: #333333;
    margin-bottom: 35px;
}

.page-about__btn-large {
    padding: 16px 40px;
    font-size: 1.2em;
}

.page-about__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

/* General image and container responsive styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Placeholder for homepage-specific modules, as required by "必写清单" */
/* These elements are not present in about.html, but their media queries must exist */

/* Long Text Gold Frame Area (from homepage) */
.page-about__home-content {
    border: 1px solid #FBB00D;
    border-radius: 10px;
    height: 650px;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Game Carousel (from homepage) */
.page-about__row-games,
.page-about__row-sport,
.page-about__row-coop {
    background-color: #1A202C;
    padding: 40px 20px;
    max-width: 1330px;
    margin: 0 auto;
    box-sizing: border-box;
}
.page-about__games-title,
.page-about__sport-title,
.page-about__coop-title {
    color: #fff;
    text-align: center;
}
.page-about__slider-wrapper {
    overflow: hidden;
}
.page-about__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}
.page-about__game-slide {
    flex: 0 0 200px;
    max-width: 200px;
    box-sizing: border-box;
}

/* Partner Brand Grid (from homepage) */
.page-about__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}
.page-about__banner-item img {
    
    
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Blog Card Area (from homepage) */
.page-about__blog-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    box-sizing: border-box;
}
.page-about__blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.page-about__btn-outline {
    margin-top: auto;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #2F6BFF;
    color: #2F6BFF;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}
.page-about__btn-outline:hover {
    background-color: #2F6BFF;
    color: #ffffff;
}
.page-about__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}
.page-about__blog-slide {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    box-sizing: border-box;
}


/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px; /* 約 10px 級頂距 */
        padding-bottom: 30px;
    }

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

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__section-spacing {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 0.95em;
    }

    /* 2. 长文金框区 (Homepage specific, placeholder rules) */
    .page-about__home-content {
        height: auto;
        padding: 15px;
        font-size: 0.9em;
    }
    .page-about__home-content h2 {
        font-size: 1.5em;
    }

    /* 3. 游戏轮播 (Homepage specific, placeholder rules) */
    .page-about__row-games,
    .page-about__row-sport,
    .page-about__row-coop {
        padding: 30px 15px;
    }
    .page-about__slider-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .page-about__game-slide {
        flex: 0 0 160px;
        max-width: 160px;
    }

    /* 4. 合作品牌六宫格 (Homepage specific, placeholder rules) */
    .page-about__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 0 15px;
    }
    .page-about__banner-item img {
        
        
    }

    /* 5. 博客卡片区 (Homepage specific, placeholder rules) */
    .page-about__blog-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-about__blog-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .page-about__blog-slider-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__feature-item,
    .page-about__value-item,
    .page-about__security-item,
    .page-about__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific grid layouts for mobile */
    .page-about__features-grid,
    .page-about__values-grid,
    .page-about__security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-item,
    .page-about__value-item,
    .page-about__security-item {
        padding: 20px;
    }

    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

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

    /* 7. 按钮与按钮容器 */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about 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-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
    }

    .page-about__cta-banner {
        padding: 60px 0;
    }
}