/* 全局重置 */
*{margin: 0;padding: 0;box-sizing: border-box;}
body{
    color: #f5f5f5;
    background: #050508;
    font-family: "Microsoft YaHei",sans-serif;
    overflow-x: hidden;
}
a{text-decoration: none;color: inherit;}
ul,li{list-style: none;}
img{max-width: 100%;}

/* 背景层级核心 */
.bg-wrap{position: fixed;top: 0;left: 0;width: 100vw;height: 100vh;z-index: -2;overflow: hidden;}
.bg-img{position: absolute;width: 100%;height: 100%;object-fit: cover;}
.bg-video{position: absolute;width: 100%;height: 100%;object-fit: cover;}
.mask{position: fixed;top: 0;left: 0;width: 100vw;height: 100vh;background: rgba(0,0,0,0.65);z-index: -1;}

/* 头部导航 */
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 99;
}
.logo{height: 50px;object-fit: contain;}
.nav-item{
    display: inline-block;
    margin: 0 12px;
    padding: 6px 10px;
    color: #eee;
    font-size: 15px;
    transition: all 0.3s ease;
}
.nav-item:hover,.nav-active{
    color: #ff3333;
    border-bottom: 2px solid #d40000;
}

/* 主内容区 */
main{min-height: calc(100vh - 130px);padding: 30px 5%;}

/* 标题样式 */
.h2-title{
    font-size: 24px;
    border-left: 4px solid #d40000;
    padding-left: 12px;
    margin-bottom: 25px;
    color: #fff;
}
.h1-title{
    font-size: 48px;
    color: #ffcc00;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255,204,0,0.3);
}

/* 卡片通用样式 */
.game-card{
    background: rgba(255,255,255,0.08);
    border: 1px solid #222;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.game-card:hover{
    border-color: #d40000;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(212,0,0,0.15);
}

/* 按钮样式 */
.btn-red{
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg,#b80000,#d40000);
    color: #fff;
    font-weight: bold;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.btn-red:hover{
    box-shadow: 0 0 15px rgba(212,0,0,0.4);
}

/* 列表布局 */
.grid-list{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px;
}

/* 分页样式 */
.page-box{margin-top: 40px;text-align: center;}
.page-box a{
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    margin: 0 3px;
    border-radius: 2px;
}
.page-box a.active{background: #d40000;color: #fff;}

/* 移动端适配 */
@media (max-width:768px){
    .h1-title{font-size: 32px;}
    header{flex-direction: column;gap:15px;}
    .nav-item{margin: 0 6px;font-size: 14px;}
}