@font-face {
    /* 给自定义字体取个名字，后面可以用这个名字引用字体 */
    font-family: 'Tomorrow';
    /* 字体文件的路径，这里假设字体文件在当前目录下 */
    src: url('../font/Tomorrow-Bold.ttf');
    /* 可选的字体样式，如 normal 或 italic */
    font-style: normal;
    /* 可选的字体粗细，如 normal 或 bold */
    font-weight: normal;
}
@font-face {
    /* 给自定义字体取个名字，后面可以用这个名字引用字体 */
    font-family: 'Roboto';
    /* 字体文件的路径，这里假设字体文件在当前目录下 */
    src: url('../font/Roboto-Bold.ttf');
    /* 可选的字体样式，如 normal 或 italic */
    font-style: normal;
    /* 可选的字体粗细，如 normal 或 bold */
    font-weight: normal;
}
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}
.header_top {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1d1d1d;
    color: white;
}
.service{
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 99;
    cursor: pointer;
    text-align: end;
    height: 100px;
}
.back-top img{
   background: linear-gradient(180deg, #D65206 0%, #D81E06 100%);
    border-radius: 10px;
    width: 56px;
    height: 56px;
   
}
.back-top{
    display: none;
    background-color: transparent;
}
.service .show{
    display: block;
}
.top-head{
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100vw;
    background-color: #232528;
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 0 260px; */
    width: 1400px;
    margin: 0 auto;
    background-color: #232528;
    height: 80px;
}
.logo {
    width: 211px;
    height: 46px;
}
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
/* 新增搜索容器样式 */
.header_top .search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #232528;
    border-radius: 4px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.header_top .search-icon {
    color: #cccccc;
    margin-right: 6px;
    font-size: 14px;
}
.header_top .search-box {
    padding:4px 0;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    width: 180px;
}
.header_top .search-box::placeholder {
    color: #cccccc;
    font-size: 14px;
}
.header_top .search-results {
    position: absolute;
    top: 45px;
    left: 0;
    /* right: 0; */
    background: #100f12;
    /* border-radius: 4px; */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    max-height: 410px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    width:240px ;
    padding:0 10px;
    /* border-bottom: 1px solid #3A3A3A; */
    cursor: pointer;
    box-sizing: border-box;
  
}


.header_top .search-game-name:hover {
    /* background: #3A3A3A; */
    color: #EA6519;
}
.header_top .search-game-name{
    padding:20px 10px ;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #FFFFFF33;
}
.header_top .search-game-name:last-child{
    border-bottom: none;
}
.header_top .custom-select {
position: relative;
min-width: 120px;
}
.header_top .selected-option {
background: #232528;
color: white;
border: none;
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
border-radius: 4px;
font-size: 14px;
}
.header_top .options {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #333;
border-radius: 4px;
margin-top: 4px;
display: none;
z-index: 100;
}
.header_top .option {
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.header_top .option:hover {
background: #444;
}

.header_top .fa-chevron-down {
margin-left: auto;
font-size: 12px;
}
.header_top .gold_money{
width: 26px;
height: 26px;
}
/* 隐藏原生select */
.header_top .language-select {
display: none;
}

.header_top .flag-icon, .currency-icon {
width: 22px;
height: 15px;
text-align: center;
}
.header_top .login-btn {
    padding: 7px 9px;
    background: #1d1d1d;
    color: white;
    border: none;
    border-radius:0 10px 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.header_top .login-icon {
    width: 26px;
    height: 26px;
}

.header_top .cart-icon {
    font-size: 14px;
    color: white;
    width: 84px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 7px 11px;
    box-sizing: border-box;
    border-radius:4px;
    background: linear-gradient(267.71deg, #FF8742 0%, #F25800 100%);
    text-decoration: none;
    position: relative;
    cursor: pointer;
}
.header_top .cart-icon::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #232528 transparent transparent;
}
.header_top .cart-icon::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent  transparent #232528 transparent;
}
.main-nav {
    display: flex;
    justify-content: center;
    /* gap: 2rem; */
    /* padding: 0 260px; */
    width: 1400px;
    /* height: 60px; */
    margin: 0 auto;
    background: #1D1D1D;
    align-items: center;
    position: relative;
    z-index: 10;
}
.main-nav a{
    text-decoration: none;
    /* color: #FFFFFF; */
}
.header_top .nav-item-top {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    /* padding: 1rem; */
    /* border-radius: 8px; */
    cursor: pointer;
    transition: all 0.3s;
    width: 16.76%; 
    /* display: flex; */
    color: #EA6519;
    font-size: 16px;
    text-align: center;
    justify-content: center;
    padding:  21px 0;
}
.header_top .navigation-index.active {
    background: #EA6519;
    color: #FFFFFF;
    position: relative;
}
.header_top .navigation-index.active::before{
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #232528 transparent transparent;
}
.header_top .nav-item-top.active-nav {
    /* background: #EA6519; */
    /* color: #FFFFFF; */
    position: relative;
}
.header_top .nav-item-top.active-nav::before{
    content: '';
    position: absolute;
    right: 5%;
    bottom:  0;
    width: 90%;
    height: 2px;
    background-color: #EA6519;
    /* border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #232528 transparent transparent; */
}
.nav-icon {
    width: 18px;
    height: 18px;
    margin-right:10px;
}
.Vector_icon{
    position: relative;
    cursor: pointer;
}
.Vector_icon::before{
    content: ' ';
    position: absolute;
    right: -10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #EA6519;
}
.Vector_icon:hover .notification{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.notification{
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    padding: 10px 20px;
    background-image: url("../img/Rectangle.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 140px;
    height: 68px;
}
.notification_con:first-child{
    margin-bottom: 10px;
    margin-top: 5px;
}
.notification_con .num{
    color:#EA6519 ;

    margin-left: 10px;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* 弹出层容器 */
.nav-popup {
    position: absolute;
    top: 100%;
    width: 1400px;
    height: 570px;
    background: #232528;
    display: none;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* 显示状态 */
.nav-popup.active {
    display: block;
}

/* 内容区域 */
.popup-content {
    padding: 30px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
}
.popup-left{
    width:18.5% ;
    /* background-color: #00B67A; */
}
.nav-sidebar-title{
    font-family: 'Tomorrow';
    font-size: 16px;
    line-height: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #FFFFFF33;

}
.nav-side-item{
    border-bottom: 1px solid #FFFFFF33;
    display: flex;
    align-items: center;
    padding: 20px 0;
    font-size: 14px;
    cursor: pointer;
   
}
.nav-side-item .side-item-icon{
    width: 26px;
    height: 26px;
    margin-right: 10px;
}
.side-active{
    color: #EA6519;
}
.nav-sidebar-all{
    width: 135px;
    height: 44px;
    background-image: url("../img/Rectangle-all.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    line-height: 44px;
    cursor: pointer;
    text-align: center;
    margin-top: 30px;
}
.header_top .popup-right{
    width:76.5% ;
    height: 100%;
    /* background-color: #00B67A; */
}
.header_top .alphabet-filter {
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
    padding: 20px;
    background: #1D1D1D;
    flex-wrap: wrap;
}

.header_top .letter {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid #444;
    color: #EAEAEA;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.header_top .letter:hover,
.header_top .letter.active {
    background: #EA6519;
    border-color: #EA6519;
}
.header_top .game-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    color: #FFFFFFCC;
    /* padding: 25px; */
}
.header_top .popup-right-card{
   
}
.header_top .new-game{
    background-color: #D65206;
    padding:2px 4px;
    color: #fff;
    border-radius: 4px;    
    font-size: 12px;
    margin-right: 10px;
    
}
.header_top .game-card {
    background: #2A2A2A;
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.header_top .game-card:hover {
    border: 1px solid #EA6519;
    color: #EA6519;
   
}


.header_top .nav-game-name {
    font-size: 14px;
    margin-right: 10px;
 
}
.header_top .cart-box{
   font-size: 14px;
}
.header_top .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(40, 41, 41, 0.85);
    display: none;
    z-index: 999;
}

.header_top .cart-sidebar {
    position: fixed;
    right: -650px;
    /* right: 0; */
    top: 0;
    width: 450px;
    height: 100vh;
    background: #343639;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 20px;
    
}

.header_top .cart-sidebar.active {
    right: 0;
}

.header_top .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid  #FFFFFF33;
}
.header_top .cart-header h3{
    font-family: 'Tomorrow';
    font-size: 24px;
    font-weight: 700;
   
}
.header_top .close-cart {
    background: none;
    border: none;
    color: #EA6519;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
}



.header_top .checkout-btn {
    text-decoration: none;
    margin-top:10px ;
    width: 100%;
    padding: 12px;
    text-align: center;
  display: block;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    background: linear-gradient(267.71deg, #FF8742 0%, #F25800 100%);

}
.header_top .cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 0;
    border-bottom: 1px solid #FFFFFF33;
}

.header_top .item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.header_top .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
}
.header_top .cart-item-title{
    font-size: 16px;
}
.header_top .cart-server{
    font-size: 14px;
    color: #FFFFFFB2;

}
.header_top .quantity-controls {
    display: flex;
    
    align-items: center;
    gap: 8px;
}

.header_top .quantity-btn {
    width: 28px;
    height: 28px;
    background: #EA6519;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.header_top .quantity-input {
    width: 80px;
    padding: 5px;
    background: #282828;
    border: 1px solid #3A3A3A;
    border-radius: 4px;
    color: white;
    text-align: center;
}

.header_top .price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    justify-content: space-between;
    height: 100px;
}
.header_top .price-section .item-price{
font-size: 18px;
font-weight: 600;
}
.item-old-price{
    font-size: 14px;
    color: #FFFFFFB2;

    text-decoration: line-through;
}
.delete-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.delete-icon {
    width: 20px;
    height: 20px;
}
.cart-footer{
    margin-top: 30px;
   
}
.cart-subtotal{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.total-price{
 font-size: 24px;
 font-weight: 600;
 color: #EA6519;   
}
.prompt-message{
    color: #FFFFFFB2;
}
.checkout-btn::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #343639 transparent transparent;
}
.checkout-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent  transparent #343639 transparent;
}