/* style/about.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-about {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #1A202C; /* Main brand color for consistency in sections */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__text-content p,
.page-about__list li {
    font-size: 1.05em;
    margin-bottom: 15px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

.page-about__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.page-about__list li {
    margin-bottom: 10px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #1A202C; /* Main color for text */
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary color */
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

.page-about__btn-link {
    background-color: transparent;
    color: #FFD700;
    border: none;
    padding: 8px 15px;
    text-decoration: underline;
}

.page-about__btn-link:hover {
    color: #e6c200;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* For fixed header spacing */
}

.page-about__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-about__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-about__hero-video-link {
    display: block;
    width: 100%;
    height: 100%;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Auxiliary color for main title */
}

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

.page-about__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.page-about__intro-section,
.page-about__history-section,
.page-about__games-section,
.page-about__security-section,
.page-about__experience-section,
.page-about__promotions-section,
.page-about__responsibility-section,
.page-about__join-section,
.page-about__faq-section {
    padding: 80px 0;
    background-color: #1A202C; /* Main brand color for sections */
}

.page-about__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__grid-two-cols--reverse {
    grid-template-areas: "image text"; /* For reversing order on desktop */
}

.page-about__grid-two-cols--reverse .page-about__image-wrapper {
    grid-area: image;
}

.page-about__grid-two-cols--reverse .page-about__text-content {
    grid-area: text;
}


.page-about__image-wrapper {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensures max-width works correctly */
    margin: 0 auto; /* Center image */
}

/* Games Grid */
.page-about__games-grid,
.page-about__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__game-card,
.page-about__promo-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for card background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have a minimum height */
}

.page-about__game-card:hover,
.page-about__promo-card:hover {
    transform: translateY(-5px);
}

.page-about__game-image,
.page-about__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px; /* Enforce min image size in cards */
    object-fit: cover;
}

.page-about__game-title,
.page-about__promo-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__game-description,
.page-about__promo-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Join Section */
.page-about__join-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-about__image--large {
    margin-top: 50px;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1A202C; /* Main brand color for question header */
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question h3 {
    margin: 0;
    color: #FFD700;
    font-size: 1.2em;
}

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

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

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

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px;
}

.page-about__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
}

.page-about__faq-answer .page-about__btn-primary,
.page-about__faq-answer .page-about__btn-secondary {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__games-grid,
    .page-about__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }
}