/* style/bnc.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-bnc {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, light for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--deep-navy) */
}

/* Color variables based on provided scheme */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background */
}

/* General typography */
.page-bnc h1, .page-bnc h2, .page-bnc h3, .page-bnc h4, .page-bnc h5, .page-bnc h6 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-bnc p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.page-bnc__inline-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-bnc__inline-link:hover {
    text-decoration: underline;
}

/* Buttons */
.page-bnc__btn-primary,
.page-bnc__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-bnc__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text for dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-bnc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-bnc__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-bnc__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-bnc__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center buttons */
}

/* Container */
.page-bnc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-bnc__hero-section {
    position: relative;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--deep-navy); /* Ensure background for hero */
}

.page-bnc__hero-image-wrapper {
    width: 100%;
    overflow: hidden; /* Ensure image doesn't overflow */
    margin-bottom: 30px;
}

.page-bnc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    min-height: 200px; /* Min size requirement */
}

.page-bnc__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-bnc__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--gold-color); /* Emphasize title with gold */
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-bnc__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.page-bnc__about-section,
.page-bnc__gameplay-section,
.page-bnc__tips-section,
.page-bnc__promotions-section,
.page-bnc__faq-section,
.page-bnc__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--deep-navy); /* All sections have dark background */
}

.page-bnc__about-section {
    background: linear-gradient(to bottom, var(--deep-navy) 0%, #061120 100%);
}

.page-bnc__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-main);
}

.page-bnc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-bnc__text-block {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Image Text Grid */
.page-bnc__image-text-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-bnc__image-text-grid .page-bnc__grid-image {
    flex: 1 1 45%;
    max-width: 50%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 300px; /* Min size for content images */
}

.page-bnc__image-text-grid .page-bnc__grid-content {
    flex: 1 1 45%;
    max-width: 50%;
    min-width: 300px;
}

.page-bnc__sub-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-bnc__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-bnc__feature-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.98"></path><path d="M22 4L12 14.01l-3-3"></path></svg>') no-repeat left center;
    background-size: 18px;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.page-bnc__feature-list li strong {
    color: var(--text-main);
}

/* Step-by-step Guide */
.page-bnc__step-by-step-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-bnc__step-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.page-bnc__step-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-bnc__step-card p {
    color: var(--text-secondary);
}

/* Tips Section */
.page-bnc__tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-bnc__tips-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%234FA8FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: left;
}

.page-bnc__tips-list li strong {
    color: var(--text-main);
}

.page-bnc__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin: 40px auto 0;
    max-width: 1000px;
    min-height: 200px; /* Min size requirement */
}

/* Promotions Section */
.page-bnc__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-bnc__promo-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure cards have some height */
}

.page-bnc__promo-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-bnc__promo-card p {
    color: var(--text-secondary);
    flex-grow: 1; /* Allow paragraph to take space */
}

.page-bnc__promo-card .page-bnc__btn-primary {
    margin-top: 20px;
    width: fit-content;
    align-self: center;
}

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

.page-bnc__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-bnc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--primary-color);
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-bnc__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-bnc__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold-color);
}

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

.page-bnc__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.page-bnc__faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA Bottom Section */
.page-bnc__cta-bottom-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(to top, var(--deep-navy) 0%, #061120 100%);
}

.page-bnc__cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-height: 200px; /* Min size requirement */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-bnc__image-text-grid .page-bnc__grid-image,
    .page-bnc__image-text-grid .page-bnc__grid-content {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-bnc__image-text-grid .page-bnc__grid-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-bnc__hero-section {
        padding-bottom: 40px;
    }
    .page-bnc__main-title {
        font-size: 2.2rem;
    }
    .page-bnc__subtitle {
        font-size: 1rem;
    }
    .page-bnc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-bnc__btn-primary,
    .page-bnc__btn-secondary {
        width: 100% !important; /* Adjust width for mobile buttons */
        max-width: 300px; /* Limit max width for smaller screens */
        padding: 15px 20px;
        font-size: 1.1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    /* Mobile video responsiveness - not used for this page, but included for completeness */
    .page-bnc video,
    .page-bnc__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-bnc__video-section,
    .page-bnc__video-container,
    .page-bnc__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-bnc__video-section {
      padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
    }
    .page-bnc__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Mobile container padding */
    .page-bnc__container,
    .page-bnc__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-bnc__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-bnc__image-text-grid .page-bnc__grid-image,
    .page-bnc__image-text-grid .page-bnc__grid-content {
        min-width: unset;
    }

    .page-bnc__step-card,
    .page-bnc__promo-card {
        padding: 25px;
    }

    .page-bnc__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-bnc__about-section,
    .page-bnc__gameplay-section,
    .page-bnc__tips-section,
    .page-bnc__promotions-section,
    .page-bnc__faq-section,
    .page-bnc__cta-bottom-section {
        padding: 40px 0;
    }
}