/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Main text color, chosen for dark background */
    background-color: #140C0C; /* Page background, from custom colors */
}

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

.page-about__dark-section {
    background-color: #2A1212; /* Card BG for dark sections */
    color: #FFF1E8;
    padding: 80px 20px;
}

.page-about__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F3C54D; /* Gold for main title */
    margin-bottom: 20px;
    text-align: center;
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive H2 font size */
    font-weight: 600;
    color: #F3C54D; /* Gold for section titles */
    margin-bottom: 30px;
    text-align: center;
}

.page-about__section-description {
    font-size: 1.1rem;
    color: #FFF1E8;
    text-align: center;
    margin-bottom: 40px;
}

.page-about__text-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #FFF1E8;
}

.page-about__text-content a {
    color: #FFB04A; /* Link color */
    text-decoration: none;
}

.page-about__text-content a:hover {
    text-decoration: underline;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #6A1E1E; /* Border color */
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit hero image height */
    object-fit: cover;
    border-radius: 0; /* Hero image usually full width, no border radius */
    margin-bottom: 30px;
    border: none;
    box-shadow: none;
}

.page-about__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #FFF1E8;
}

/* CTA Buttons */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-about__btn-secondary {
    background: transparent;
    color: #F3C54D; /* Gold text */
    border: 2px solid #F3C54D; /* Gold border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary:hover {
    background: rgba(243, 197, 77, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

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

.page-about__value-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #6A1E1E;
}

.page-about__card-title {
    font-size: 1.5rem;
    color: #F3C54D; /* Gold */
    margin-bottom: 15px;
}

.page-about__card-description {
    font-size: 0.95rem;
    color: #FFF1E8;
}

/* Products Section */
.page-about__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-about__game-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-about__game-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-about__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: none;
}

.page-about__game-title {
    font-size: 1.3rem;
    color: #F3C54D; /* Gold */
    padding: 15px;
    text-align: center;
    flex-grow: 1; /* Push to bottom if needed */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section {
        padding: 50px 15px;
    }
    .page-about__dark-section {
        padding: 60px 15px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-about__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-about__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px !important;
    }
    .page-about__hero-image {
        max-height: 300px !important; /* Smaller height for mobile hero */
        width: 100% !important;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 15px !important;
    }
    .page-about__hero-description {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    /* 产品展示图区域 & 通用图片与容器 */
    .page-about__products-section .page-about__games-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 columns for smaller screens */
        gap: 15px !important;
    }
    .page-about__game-card:nth-child(5),
    .page-about__game-card:nth-child(6) {
        grid-column: span 1 !important;
    }
    .page-about__game-image {
        height: 160px !important; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__container,
    .page-about__value-card,
    .page-about__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__section {
        padding: 40px 0 !important; /* Adjust section padding */
    }
    .page-about__dark-section {
        padding: 50px 0 !important;
    }

    /* 按钮与按钮容器 */
    .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 !important;
        padding-right: 15px !important;
    }
    .page-about__button-group {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__button-group a {
        width: 100% !important;
    }

    /* 其他内容模块 */
    .page-about__values-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-about__card-title {
        font-size: 1.3rem !important;
    }
    .page-about__card-description {
        font-size: 0.9rem !important;
    }
    .page-about__text-content p {
        font-size: 0.95rem !important;
    }
    .page-about {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}