/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--secondary-color); /* Inherit from shared.css, which is #1A1A1A */
}

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

/* HERO Section */
.page-about__hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for visual impact */
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding-top: var(--header-offset) */
    background-color: var(--secondary-color);
    color: #ffffff;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-about__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold color for main title */
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__game-link,
.page-about__read-more-btn,
.page-about__contact-btn,
.page-about__learn-more-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-about__btn-primary,
.page-about__contact-btn {
    background-color: #FFD700; /* Gold background */
    color: #1A1A1A; /* Dark text for contrast */
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover,
.page-about__contact-btn:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #1A1A1A;
}

.page-about__btn-secondary,
.page-about__read-more-btn,
.page-about__learn-more-btn {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover,
.page-about__read-more-btn:hover,
.page-about__learn-more-btn:hover {
    background-color: #FFD700;
    color: #1A1A1A;
}

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

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

/* General Section Styling */
.page-about__section {
    padding: 80px 0;
    background-color: var(--secondary-color); /* Default dark background */
    color: #ffffff;
}

.page-about__dark-section {
    background-color: #1A1A1A; /* Explicitly dark section */
    color: #ffffff;
}

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #FFD700; /* Gold for section titles */
}

.page-about__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px auto;
    color: #f0f0f0;
}

/* Mission & Vision Section */
.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Reset for desktop */
}

.page-about__sub-title {
    font-size: 24px;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__sub-title:first-of-type {
    margin-top: 0;
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure images are responsive */
}

/* Core Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__value-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 15px;
}

/* Game Ecosystem Section */
.page-about__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure images are responsive */
}

.page-about__game-title {
    font-size: 20px;
    color: #FFD700;
    margin: 15px 15px 10px 15px;
}

.page-about__game-card p {
    font-size: 15px;
    color: #f0f0f0;
    margin: 0 15px 20px 15px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-about__game-link {
    display: block;
    margin: 0 15px 20px 15px;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #1A1A1A;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: calc(100% - 30px); /* Adjust for padding */
    align-self: center;
}

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

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #333333; /* Darker background for FAQ items */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #1A1A1A; /* Background for question */
    border: 1px solid #FFD700; /* Gold border */
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

.page-about__faq-question:hover {
    background: #2a2a2a;
    border-color: #e6c200;
}

.page-about__faq-question:active {
    background: #3a3a3a;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #FFD700; /* Gold for FAQ question titles */
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #2a2a2a; /* Darker background for answer */
    color: #f0f0f0;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Use !important for override */
    padding: 20px 15px !important;
    opacity: 1;
}

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

/* Contact Us Section */
.page-about__contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Copyright Section */
.page-about__copyright {
    padding: 30px 0;
    text-align: center;
    background-color: #111111; /* Even darker background for footer-like section */
    color: #999999;
    font-size: 14px;
}

.page-about__copyright-text {
    margin: 0;
}

/* --- Responsive Design --- */

/* Tablet and smaller desktops (up to 1024px) */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 40px;
    }

    .page-about__intro-text {
        font-size: 17px;
    }

    .page-about__section-title {
        font-size: 32px;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-about__content-grid--reverse {
        grid-template-columns: 1fr;
    }

    .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }

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

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-banner {
        min-height: 400px;
        padding-top: 0 !important; /* Fixed header spacing - if shared handles body padding, hero is 0 */
    }

    .page-about__hero-content {
        padding: 15px;
        max-width: 90%;
    }

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

    .page-about__intro-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-about__cta-buttons,
    .page-about__contact-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__game-link,
    .page-about__read-more-btn,
    .page-about__contact-btn,
    .page-about__learn-more-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px;
    }

    /* 其他内容模块 */
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

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

    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 20px;
    }

    .page-about__values-grid,
    .page-about__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__value-card,
    .page-about__game-card {
        padding: 20px;
    }

    .page-about__game-card img {
        
    }

    .page-about__game-title {
        font-size: 18px;
        margin: 10px 10px 8px 10px;
    }

    .page-about__game-card p {
        font-size: 14px;
        margin: 0 10px 15px 10px;
    }

    .page-about__game-link {
        margin: 0 10px 15px 10px;
        max-width: calc(100% - 20px);
    }

    /* FAQ 移动端适配 */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

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

    .page-about__image-block {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}