[component-id="yybn_home_banner_v2"] ul[class*="BannerV2_slider__"] > li:not(:first-child) {
    display: none !important;
}

[component-id="yybn_home_banner_v2"] ul[class*="BannerV2_slider__"] > li:first-child {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99 !important;
}

[component-id="yybn_home_banner_v2"] ul[class*="BannerV2_dots__"] {
    display: none !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_imageMask__"] {
    display: none !important;
}

/* Remove hiding of gameCard so buttons are visible */
/*
[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_gameCard__"] {
    display: none !important;
}
*/

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_background__"] {
    background: #111213 !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_image__"] {
    object-fit: contain !important;
    object-position: right center !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_desktopGameCard__"] {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    position: relative !important;
    z-index: 10 !important;
    transform: translateX(-44px) !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_desktopGameCard__"] [class*="GameIcon_gameIcon__"] {
    width: 80px !important;
    height: 80px !important;
    background-color: transparent !important;
    background-image: url("https://download.vtlt8.com/assets/banner_icon.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 16px !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_desktopGameCard__"] [class*="GameIcon_gameIcon__"] picture,
[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_desktopGameCard__"] [class*="GameIcon_gameIcon__"] img {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_desktopName__"] {
    color: transparent !important;
    font-size: 28px !important;
    margin-left: 20px !important;
    position: relative !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_desktopName__"]::after {
    content: "君弘君融" !important;
    color: #FFFFFF !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    white-space: nowrap !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_title__"] {
    color: transparent !important;
    margin-top: 0 !important;
    font-size: 46px !important;
    font-weight: normal !important;
    letter-spacing: 2px !important;
    position: relative !important;
    transform: translateX(56px) !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_title__"]::after {
    content: "高效 便捷 策略" !important;
    color: #FFFFFF !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    white-space: nowrap !important;
}

/* Hide original content in gameCard but keep it transparent to hold buttons for PC */
[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_gameCard__"] {
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin-top: 40px !important;
    transform: translateX(-44px) !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_gameCard__"] > [class*="BannerV2_content__"] {
    display: none !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_gameCard__"] > [class*="GameIcon_gameIcon__"],
[component-id="yybn_home_banner_v2"] li:first-child [class*="BannerV2_gameCard__"] > [class*="BannerV2_YYBButton__"] {
    display: none !important;
}

/* Style the buttons */
[component-id="yybn_home_banner_v2"] li:first-child [class*="DownloadButton_downloadButton__"] {
    width: 140px !important;
    height: 52px !important;
    border-radius: 26px !important;
    background-color: #0066FF !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    min-width: unset !important;
    gap: 4px !important;
    text-decoration: none !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="DownloadButton_downloadButton__"] i {
    transform: scale(0.9) !important;
    margin: 0 !important;
    display: inline-block !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="DownloadButton_downloadButton__"] p {
    display: none !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="DownloadButton_downloadButton__"]::after {
    content: "手机版" !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: normal !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"] {
    width: 48px !important;
    height: 48px !important;
    border-radius: 24px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1.5'%3E%3C/rect%3E%3Crect x='14' y='4' width='6' height='6' rx='1.5'%3E%3C/rect%3E%3Crect x='4' y='14' width='6' height='6' rx='1.5'%3E%3C/rect%3E%3Cpath d='M15 15h1v1h-1z'%3E%3C/path%3E%3Cpath d='M15 18h1v1h-1z'%3E%3C/path%3E%3Cpath d='M18 15h1v1h-1z'%3E%3C/path%3E%3Cpath d='M18 18h1v1h-1z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: 24px 24px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"]:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"] svg,
[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"] i {
    display: none !important;
}

[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"] p {
    display: none !important;
}

/* The actual QR code image shown on hover/click */
[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"]::after {
    content: "" !important;
    position: absolute !important;
    left: 60px !important; /* Position it to the right of the button */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 140px !important;
    height: 140px !important;
    background-color: #FFFFFF !important;
    background-image: url("https://download.vtlt8.com/assets/apk_qr.png") !important;
    background-size: 120px 120px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.2s ease !important;
    pointer-events: none !important;
}

/* Fix the top header for PC when scrolling */
@media (min-width: 769px) {
    header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
}
/* Show the custom mobile hero ONLY on mobile */
@media (min-width: 769px) {
    #custom-mobile-hero {
        display: none !important;
    }
    
    /* Ensure PC elements are visible on PC */
    [component-id="yybn_home_banner_v2"] [class*="BannerV2_bg__"] {
        display: block !important;
    }

    [component-id="yybn_home_banner_v2"] ul[class*="BannerV2_slider__"] {
        display: block !important;
    }
}
/* ----- Fix Hydration Errors: Pure CSS replacements for texts and images ----- */
/* The texts and icons are now hard-replaced by Nginx sub_filter in the source HTML, 
   so we no longer need the CSS visual hacks here. */
[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"]:hover::after,
[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"]:active::after,
[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"]:focus::after,
[component-id="yybn_home_banner_v2"] li:first-child [class*="QRCodeButton_QRCodeButton__"].qr-code-active::after {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Mobile Layout Adjustments (H5) */
@media (max-width: 768px) {
    .Layout_tips__QR1a_,
    [class*="Layout_tips__"],
    [class*="Layout_tipsName__"],
    [class*="Layout_tipsCloseIcon__"] {
        display: none !important;
    }

    /* Hide the original PC banner components cleanly on mobile */
    [component-id="yybn_home_banner_v2"] {
        background: transparent !important;
        min-height: auto !important;
        padding-top: 0 !important;
    }
    
    [component-id="yybn_home_banner_v2"] [class*="BannerV2_bg__"] {
        display: none !important;
    }

    [component-id="yybn_home_banner_v2"] ul[class*="BannerV2_slider__"] {
        display: none !important;
    }

    #custom-mobile-hero {
        margin: 16px 1px 0 !important; /* Reduced side margins to 1px for maximum width while keeping border-radius visible */
        background: transparent !important;
        border-radius: 16px !important; /* All corners rounded since it has margins */
        padding: 0 !important;
        overflow: hidden !important;
        display: block !important;
    }

    #custom-mobile-hero .custom-mobile-hero-image-wrap {
        position: relative !important;
        overflow: hidden !important;
        border-radius: 16px 16px 0 0 !important; /* Top corners rounded */
        background: linear-gradient(to bottom, transparent 80%, #f2f3f9 80%) !important;
        line-height: 0 !important;
        width: 100% !important;
        height: 50vw !important;
        max-height: 240px !important;
    }

    #custom-mobile-hero .custom-mobile-hero-image {
        display: block !important;
        width: 122.5% !important; /* Micro-adjustment for near 100% width */
        max-width: none !important;
        height: auto !important;
        margin-left: -11% !important;
        margin-top: -6% !important;
    }

    #custom-mobile-hero .custom-mobile-hero-playnum {
        display: none !important;
    }

    #custom-mobile-hero .custom-mobile-hero-playnum span:first-child {
        display: none !important;
    }

    #custom-mobile-hero .custom-mobile-hero-card {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        background: #f2f3f9 !important;
        border-radius: 0 0 16px 16px !important;
    }

    #custom-mobile-hero .custom-mobile-hero-left {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    #custom-mobile-hero .custom-mobile-hero-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
        flex: 0 0 48px !important;
        background: #ffffff !important;
    }

    #custom-mobile-hero .custom-mobile-hero-texts {
        min-width: 0 !important;
    }

    #custom-mobile-hero .custom-mobile-hero-title {
        color: #000000 !important;
        font-size: 15px !important;
        font-weight: bold !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #custom-mobile-hero .custom-mobile-hero-desc {
        margin-top: 4px !important;
        color: #888888 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    #custom-mobile-hero .custom-mobile-hero-download {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 76px !important;
        height: 36px !important;
        border-radius: 18px !important;
        background: #1677ff !important;
        color: #FFFFFF !important;
        font-size: 14px !important;
        font-weight: bold !important;
        text-decoration: none !important;
        flex: 0 0 auto !important;
    }
}

@media (max-width: 768px) {
    div[dt-eid="brand_banner"] [class*="BrandBanner_container__"],
    [class*="DownloadAppBanner_YYBBanner__"] [class*="DownloadAppBanner_title__"] {
        color: inherit !important;
        position: static !important;
        overflow: visible !important;
    }

    div[dt-eid="brand_banner"] [class*="BrandBanner_container__"]::before,
    div[dt-eid="brand_banner"] [class*="BrandBanner_container__"]::after,
    [class*="DownloadAppBanner_YYBBanner__"] [class*="DownloadAppBanner_title__"]::after {
        content: none !important;
    }

    div[dt-eid="brand_banner"] [class*="BrandBanner_container__"] picture,
    div[dt-eid="brand_banner"] [class*="BrandBanner_container__"] img,
    [class*="DownloadAppBanner_YYBBanner__"] [class*="DownloadAppBanner_icon__"] picture,
    [class*="DownloadAppBanner_YYBBanner__"] [class*="DownloadAppBanner_icon__"] img {
        display: initial !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    [class*="DownloadAppBanner_YYBBanner__"] [class*="DownloadAppBanner_icon__"] {
        background-image: none !important;
        background-color: transparent !important;
    }

    [class*="DownloadAppBanner_YYBBanner__"] [class*="DownloadAppBanner_description__"] {
        display: initial !important;
    }
}

@media (max-width: 768px) {
    div[dt-eid="brand_banner"],
    [class*="DownloadAppBanner_YYBBanner__"] {
        display: none !important;
    }

    body {
        padding-bottom: 88px !important;
        box-sizing: border-box !important;
    }

    #custom-mobile-bottom-banner {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        height: 56px !important;
        border-radius: 16px !important;
        background: linear-gradient(90deg, #0b7cff 0%, #1888ff 100%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
        z-index: 999999 !important;
        text-decoration: none !important;
    }

    #custom-mobile-bottom-banner .custom-mobile-bottom-left {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    #custom-mobile-bottom-banner .custom-mobile-bottom-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
        flex: 0 0 34px !important;
        background-image: url("https://download.vtlt8.com/assets/banner_icon.jpg") !important;
        background-size: cover !important;
        background-position: center !important;
    }

    #custom-mobile-bottom-banner .custom-mobile-bottom-title {
        color: #FFFFFF !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    #custom-mobile-bottom-banner .custom-mobile-bottom-btn {
        min-width: 66px !important;
        height: 32px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        color: #FFFFFF !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        background: transparent !important;
    }
}

/* Make sure the CSS replacements are applied correctly */
[class*="BannerV2_name__"] {
    color: transparent !important;
    position: relative !important;
}
[class*="BannerV2_name__"]::after {
    content: "君弘君融" !important;
    color: #1b1c1e !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    font-size: 18px !important;
}

[class*="BannerV2_gameCardDescription__"] {
    color: transparent !important;
    position: relative !important;
}
[class*="BannerV2_gameCardDescription__"]::after {
    content: "高效 便捷 策略" !important;
    color: #6a6f78 !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

/* Replace mobile icon safely via CSS */
[class*="BannerV2_gameCard__"] [class*="GameIcon_gameIcon__"] {
    position: relative !important;
}
[class*="BannerV2_gameCard__"] [class*="GameIcon_gameIcon__"] picture,
[class*="BannerV2_gameCard__"] [class*="GameIcon_gameIcon__"] img {
    opacity: 0 !important;
}
[class*="BannerV2_gameCard__"] [class*="GameIcon_gameIcon__"]::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("https://download.vtlt8.com/assets/banner_icon.jpg") !important;
    background-size: cover !important;
    border-radius: 12px !important;
}

/* Globally force any image with the original icon URL to show the custom icon instead */
img[src*="12127266"], img[srcset*="12127266"] {
    content: url("https://download.vtlt8.com/assets/banner_icon.jpg") !important;
    object-fit: cover !important;
    border-radius: 20% !important; /* Fixed border-radius to match other app icons */
    overflow: hidden !important;
}

