/* 側邊欄選單連結無底線 */
.sidebg .item {
    text-decoration: none !important;
}
.sidebg .item:visited,
.sidebg .item:active,
.sidebg .item:hover {
    text-decoration: none !important;
}
html {
    scroll-behavior: smooth;
}

/* 讓 anchor 定位點不被 header 蓋住 */
#aboutus,
#privacy,
#terms,
#responsible {
    scroll-margin-top: 90px;
}
/* 18VIP 主样式表 */

/* 轮播图圆角样式 */
#promotionCarousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

#promotionCarousel .carousel-item img {
    border-radius: 12px;
}

/* 圆点指示器样式优化 */
#promotionCarousel .carousel-indicators {
    margin-bottom: 1rem;
}

#promotionCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1);
    border: none;
    margin: 0 4px;
}

#promotionCarousel .carousel-indicators button.active {
    background-color: rgb(205, 176, 114);
}

:root {
    --bg-color-1: linear-gradient(180deg, rgb(51, 48, 43) 0%, rgb(38, 34, 28) 100%);
    --font-color: #ffffff;
    --bg-color: #242527;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    line-height: 1.6;
    font-size: 15px;
    color: rgb(25, 25, 25);
    background-color: var(--bg-color);
    margin: 0px auto;
    padding-top: 80px; /* 为了避免content被fixed header覆盖 */
    transition: padding-left 0.3s ease;
}

/* 桌面模式默认显示sidebar */
@media (min-width: 993px) {
    body.sidebar-open {
        padding-left: 260px; /* 为sidebar留出空间 */
    }
}

/* 移动设备模式 */
@media (max-width: 992px) {
    body {
        padding-left: 0; /* 移动设备不需要左侧padding */
    }
}

.header {
    width: 100%;
    position: fixed;
    height: 80px;
    top: 0px;
    left: 0px;
    z-index: 11;
    align-items: center;
    justify-content: space-between;
    display: flex;
    background: linear-gradient(180deg, rgb(16, 16, 16) 0%, rgb(52, 50, 51) 100%);
    border-bottom: 1px solid #92715f;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-menu-left {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-menu-left:hover {
    transform: scale(1.1);
}

.logo img {
    width: 145px;
    height: auto;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-btn {
    background-color: #000;
    color: rgb(255, 255, 255);
    border: 1px solid #90715d;
    border-radius: 6px;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background-color: #333;
    color: rgb(255, 255, 255);
    border-color: #a88268;
}

.main-content {
    min-height: 100vh;
    background-color: var(--bg-color);
    padding: 0;
}

.main_container {
    max-width: 1290px;
    padding: 40px 10px;
    margin: 0px auto;
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .active {
    background-color: #fff;
}

/* 游戏分类区域 */
.game-categories {
    margin-top: 30px;
}

.arrow_slider_wrp {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.slider_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slider_title {
    display: flex;
    align-items: center;
    font-weight: 600;
    background: linear-gradient(rgb(205, 176, 114) 50%, rgb(158, 109, 33) 70%) text;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
}

.slider_title img {
    width: 30px;
    margin-right: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main_container {
        padding: 20px 15px;
    }
    
    .carousel-item img {
        max-height: 250px;
    }
    
    /* 手机版logo缩小 */
    .logo img {
        width: 120px;
    }
}

/* Sidebar 样式 */
.side_menunav {
    width: 260px;
    height: calc(-70px + 100vh);
    background: var(--bg-color-1);
    position: fixed;
    left: -260px; /* 默认隐藏 */
    padding-bottom: 35px;
    top: 80px;
    padding-top: 10px;
    z-index: 17;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #191b1a;
    box-shadow: 1px 1px 3px 0px #000;
    transition: left 0.3s ease;
}

/* 显示sidebar */
.side_menunav.active {
    left: 0px;
}


/* 遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 80px; /* 从header下方开始 */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px); /* 减去header高度 */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 16;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 桌面模式不显示遮罩层 */
@media (min-width: 993px) {
    .sidebar-overlay {
        display: none;
    }
}

/* 隐藏滚动条 */
.side_menunav::-webkit-scrollbar {
    display: none;
}

.side_menunav {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.sidemenu_top {
    color: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgb(242, 215, 165) 0%, rgb(174, 118, 33) 90%);
    padding: 8px;
    border-radius: 0px 10px 10px 0px;
    font-size: 13px;
    text-transform: capitalize;
    width: 232px;
    margin-bottom: 10px;
}

.sidebg .item {
    height: 60px;
    padding-left: 20px;
    color: var(--font-color);
    font-size: 15px;
    line-height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    background: linear-gradient(180deg, rgb(51, 48, 43) 0%, rgb(38, 34, 28) 100%);
    transition: all 0.3s ease;
    width: 232px;
}

.sidebg .item img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* 將圖標改為白色 */
}

.sidebg .item.active, 
.sidebg .item:hover {
    background: linear-gradient(180deg, rgb(242, 215, 165) 0%, rgb(174, 118, 33) 100%);
    color: rgb(255, 255, 255);
    box-shadow: none;
}

/* 首页右上圆角 */
.sidebg .item:first-child {
    border-radius: 0px 10px 0px 0px;
}

/* 赛马右下圆角 */
.sidebg .item:last-child {
    border-radius: 0px 0px 10px 0px;
}

/* 热门游戏滑动器样式 */
.slider_controls {
    display: flex;
    gap: 10px;
}

.slide-arrow {
    cursor: pointer;
    background-color: rgb(23, 31, 43);
    padding: 6px 13px;
    border-radius: 8px;
    color: rgb(147, 172, 211);
    border: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 35px;
}

.slide-arrow:hover {
    background-color: rgb(147, 172, 211);
    color: rgb(23, 31, 43);
}

.slide-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.swiper-container {
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    gap: 10px;
}

.swiper-slide {
    flex: 0 0 auto;
    min-width: 0;
}

.game-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* 响应式设计 - 自动调整图片大小 */
@media (min-width: 1200px) {
    .swiper-slide {
        width: calc((100% - 50px) / 6); /* 6張圖片 */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .swiper-slide {
        width: calc((100% - 50px) / 6); /* 6張圖片 */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .swiper-slide {
        width: calc((100% - 40px) / 5); /* 5张图片 */
    }
}

@media (max-width: 767px) {
    .swiper-slide {
        width: calc((100% - 20px) / 3); /* 3張圖片 */
    }
    
    .slider_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .slider_title {
        font-size: 14px;
    }
    
    .slide-arrow {
        padding: 4px 10px;
        font-size: 16px;
        min-width: 35px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: calc((100% - 20px) / 3); /* 3張圖片 */
    }
    
    .slider_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .slider_title {
        font-size: 12px;
    }
    
    .slide-arrow {
        padding: 3px 8px;
        font-size: 14px;
        min-width: 30px;
        height: 28px;
    }
}

/* 静态游戏图片布局（用于少量图片的区块如电子竞技） */
.static-game-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.static-game-images .game-item {
    flex: 0 0 auto;
}

/* 响应式设计 */
@media (min-width: 992px) {
    .static-game-images .game-item {
        width: calc((100% - 50px) / 6); /* 电脑版按6张图片的宽度显示 */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .static-game-images .game-item {
        width: calc((100% - 40px) / 5); /* 平板版按5张图片的宽度显示 */
    }
}

@media (max-width: 767px) {
    .static-game-images .game-item {
        width: calc((100% - 20px) / 3); /* 手机版按3张图片的宽度显示 */
    }
}
/* 宣传区块样式 */
.promo-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 30px;
    border-radius: 12px;
}

.promo-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.promo-logo {
    max-width: 200px;
    height: auto;
}

.title_dw {
    background: linear-gradient(rgb(107 206 115) 0%, rgb(172 229 122) 100%) text;
    -webkit-text-fill-color: transparent;
    font-size: 35px;
    font-weight: bold;
}

.dw_content {
    font-size: 15px;
    background: linear-gradient(rgb(205 176 114) 50%, rgb(158 109, 33) 70%) text;
    -webkit-text-fill-color: transparent;
}

.promo-right {
    flex: 1;
}

.app-banner {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 宣传区块响应式设计 */
@media (max-width: 991px) {
    .promo-section {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px;
    }
    
    .title_dw {
        font-size: 28px;
    }
    
    .promo-logo {
        max-width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .promo-section {
        margin: 20px 0;
        padding: 20px;
    }
    
    .title_dw {
        font-size: 24px;
    }
    
    .dw_content {
        font-size: 14px;
    }
}

/* 合作伙伴图片样式 */
.hotgame-main-img-pro {
    background: linear-gradient(180deg, rgb(52 48 44) 0%, rgb(38 35 30) 90%);
    border-radius: 10px;
    box-shadow: inset 0px -2px 5px #845e22, inset 1px 2px 5px #85796b;
    padding: 5px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 合作伙伴区块响应式设计 */
@media (min-width: 992px) {
    #providerWrapper .swiper-slide {
        width: calc((100% - 70px) / 8); /* 电脑版按8张图片的宽度显示 */
        flex: 0 0 calc((100% - 70px) / 8);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #providerWrapper .swiper-slide {
        width: calc((100% - 40px) / 5); /* 平板版按5张图片的宽度显示 */
        flex: 0 0 calc((100% - 40px) / 5);
    }
}

@media (max-width: 767px) {
    #providerWrapper .swiper-slide {
        width: calc((100% - 20px) / 3); /* 手机版按3张图片的宽度显示 */
        flex: 0 0 calc((100% - 20px) / 3);
    }
}

/* Footer 样式 */
.footer {
    background-color: #1a1a1a;
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-section {
    flex: 1;
}

.footer_box_title {
    font-size: 18px;
    color: rgb(255, 255, 255);
    margin-bottom: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgb(205, 176, 114);
}

.footer_box_logo1 img {
    width: 30px;
    margin-right: 15px;
}

.footer-licenses {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-licenses img {
    height: 40px;
    width: auto;
}

.footer-information {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-information img {
    height: 35px;
    width: auto;
}

/* Footer 响应式设计 */
@media (min-width: 992px) {
    .footer-section:nth-child(1),
    .footer-section:nth-child(2),
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        flex: 0.8; /* 前四个区块稍微小一点 */
    }
    
    .footer-section:nth-child(5) {
        flex: 1.8; /* 最后一个区块大一点 */
    }
}

@media (max-width: 991px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        text-align: left; /* 改为靠左对齐 */
    }
    
    .footer-licenses,
    .footer-information {
        justify-content: flex-start; /* 改为靠左对齐 */
    }
    
    .footer_box_logo1 {
        text-align: left; /* 改为靠左对齐 */
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 30px 0;
    }
    
    .footer-container {
        gap: 25px;
    }
    
    .footer_box_title {
        font-size: 16px;
    }
    
    .footer-information img {
        height: 30px;
    }
    
    .footer-licenses img {
        height: 35px;
    }
}

/* Footer HR 和额外信息样式 */
.footer_hr {
    border-top: 2px solid rgb(0, 0, 0);
    box-shadow: rgba(77, 77, 77, 0.56) 0px 1px 2px 1px;
    margin: 30px 0 20px 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-extra-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0 20px 20px 20px;
    flex-wrap: wrap;
}

.footer-extra-info img {
    height: 35px;
    width: auto;
}

/* 底部四张图片的响应式设计 */
@media (min-width: 992px) {
    .footer-extra-info {
        gap: 30px; /* 电脑版间距更大 */
    }
    
    .footer-extra-info img {
        height: 50px; /* 电脑版图片更大 */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-extra-info {
        gap: 25px; /* 平板版间距较大 */
        justify-content: flex-start; /* 平板版靠左对齐 */
    }
    
    .footer-extra-info img {
        height: 45px; /* 平板版图片较大 */
    }
}

@media (max-width: 767px) {
    .footer-extra-info {
        gap: 8px; /* 手机版间距较小 */
        flex-wrap: nowrap; /* 确保在同一排 */
        justify-content: flex-start; /* 手机版靠左对齐 */
    }
    
    .footer-extra-info img {
        height: 25px; /* 手机版图片缩小 */
        max-width: calc(25% - 6px); /* 确保4张图片能在同一排 */
    }
}

/* 關於我們內容區塊樣式 */
.infopage_wrapper {
    margin: 0 0 30px 0;
    padding: 0;
    max-width: 1290px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.infopage_wrapper .right {
    color: var(--font-color);
}
.infopage_wrapper .right h1 {
    color: rgb(207, 160, 101);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
}
.infopage_wrapper .right h2 {
    color: rgb(207, 160, 101);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 18px 0 8px 0;
}
.infopage_wrapper .right h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    color: #666;
    line-height: 1.3;
}
.infopage_wrapper .right p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0.5em;
}
@media (max-width: 767px) {
    .infopage_wrapper .right {
        padding: 16px;
        font-size: 13px;
    }
    .infopage_wrapper .right h1 {
        font-size: 24px;
    }
    .infopage_wrapper .right h2 {
        font-size: 20px;
        line-height: 24px;
    }
}
/* 移动端/平板底部固定菜单 */
.mobile-footer-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #353535;
    height: 60px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    border-top: 1px solid #222;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
}
.footer-menu-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 0 0 0;
    overflow: hidden;
}
.footer-menu-item img {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
    display: block;
    filter: brightness(0) invert(1);
}
.footer-menu-item span {
    font-size: 12px;
    line-height: 1;
    color: #fff;
}
@media (max-width: 991px) {
    .mobile-footer-menu {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100vw;
        max-width: 100vw;
    }
    .footer-menu-item {
        flex: 1 1 0;
        min-width: 0;
        max-width: 25vw;
    }
    body {
        padding-bottom: 70px !important;
        background-color: #1a1a1a !important;
    }
    .footer {
        margin-bottom: 0;
        background-color: #1a1a1a;
    }
    .footer::after {
        display: none;
    }
}

/* Demo 頁面遊戲網格佈局樣式 */
.demo-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
}

.demo-game-grid-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid #444;
    position: relative;
}

.demo-game-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.25);
    border-color: #FFD700;
}

.demo-grid-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.demo-grid-info {
    padding: 15px;
    text-align: center;
}

.demo-grid-title {
    color: #FFD700;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.demo-grid-desc {
    color: #bbb;
    font-size: 0.85em;
    line-height: 1.4;
    margin: 0 0 12px 0;
    min-height: 36px;
}

.demo-grid-btn {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.demo-grid-btn:hover {
    background: linear-gradient(45deg, #FFA500 0%, #FFD700 100%);
    color: #000;
    text-decoration: none;
    transform: scale(1.05);
}

/* 平板樣式 */
@media (max-width: 1024px) {
    .demo-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 18px 0;
    }
    
    .demo-grid-image {
        height: 160px;
    }
    
    .demo-grid-title {
        font-size: 1.05em;
    }
    
    .demo-grid-desc {
        font-size: 0.8em;
        min-height: 32px;
    }
}

/* 手機樣式 */
@media (max-width: 768px) {
    .demo-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }
    
    .demo-grid-image {
        height: 140px;
    }
    
    .demo-grid-info {
        padding: 12px;
    }
    
    .demo-grid-title {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .demo-grid-desc {
        font-size: 0.75em;
        min-height: 30px;
        margin-bottom: 10px;
    }
    
    .demo-grid-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* 極小螢幕 */
@media (max-width: 480px) {
    .demo-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0;
    }
    
    .demo-grid-image {
        height: 200px;
    }
    
    .demo-grid-info {
        padding: 15px;
    }
    
    .demo-grid-title {
        font-size: 1.1em;
    }
    
    .demo-grid-desc {
        font-size: 0.85em;
        min-height: auto;
    }
}