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

/* General Styles for .page-resources */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background #121212 */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
    background-color: #1a7bb0;
    border-color: #1a7bb0;
}

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

.page-resources__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a7bb0;
    border-color: #1a7bb0;
}

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

.page-resources__btn-tertiary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content;
    min-width: 200px;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Dark background for hero */
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #26A9E0;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

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

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the background image */
}

/* Introduction Section */
.page-resources__introduction-section {
    padding: 80px 0;
}

.page-resources__dark-bg {
    background-color: #1a1a1a; /* Dark background for sections */
    color: #ffffff;
}

/* Guides Section */
.page-resources__guides-section {
    padding: 80px 0;
}

.page-resources__light-bg {
    background-color: #f0f0f0; /* Light background for sections */
    color: #333333; /* Dark text for light background */
}

.page-resources__light-bg .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__light-bg .page-resources__text-block {
    color: #333333;
}

.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__card-title a:hover {
    text-decoration: underline;
}

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

/* Games Section */
.page-resources__games-section {
    padding: 80px 0;
}

.page-resources__game-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-resources__game-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px 30px;
    text-align: center;
    width: calc(33% - 20px); /* Adjust for 3 columns */
    min-width: 250px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.page-resources__game-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources__game-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-resources__game-title a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-resources__game-title a:hover {
    text-decoration: underline;
}

.page-resources__game-item p {
    color: #f0f0f0;
    font-size: 0.95em;
}

/* News & Promotions Section */
.page-resources__news-promo-section {
    padding: 80px 0;
}

/* Security Section */
.page-resources__security-section {
    padding: 80px 0;
}

.page-resources__security-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 0;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #eef;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
    min-width: 1em; /* Ensure consistent width for + and - */
    text-align: center;
}

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

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

.page-resources__faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 1em;
}

/* Contact CTA Section */
.page-resources__contact-cta {
    padding: 80px 0;
    text-align: center;
}

.page-resources__contact-cta .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__contact-cta .page-resources__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Final CTA Section */
.page-resources__final-cta {
    padding: 80px 0;
    text-align: center;
}

.page-resources__final-cta .page-resources__section-title {
    color: #26A9E0;
}

.page-resources__final-cta .page-resources__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

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

    .page-resources__game-item {
        width: calc(50% - 20px); /* 2 columns */
    }
}

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

    .page-resources__hero-section {
        min-height: 500px;
        padding: 40px 15px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        font-size: 1em;
    }

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

    .page-resources__text-block {
        font-size: 1em;
    }

    .page-resources__grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
    }

    .page-resources__card-image {
        height: 180px;
    }

    .page-resources__game-item {
        width: 100%; /* Single column */
    }

    .page-resources__security-links,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image and container responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__introduction-section,
    .page-resources__guides-section,
    .page-resources__games-section,
    .page-resources__news-promo-section,
    .page-resources__security-section,
    .page-resources__faq-section,
    .page-resources__contact-cta,
    .page-resources__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-resources__cta-buttons,
    .page-resources__security-links {
      display: flex;
      flex-direction: column; /* Ensure vertical stacking for buttons */
      gap: 10px; /* Adjust gap for mobile buttons */
      padding-left: 0;
      padding-right: 0;
    }
}