
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: rgba(245,246,250,.8);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
nav {
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}
.navContainer {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 61.3%;
}
.logoWrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logoImg {
    height: 45px;
    width: auto;
}
.navLinks {
    display: flex;
    list-style: none;
    gap: 25px;
}
.navLinks > li {
    position: relative;
    height: 80px;
    line-height: 80px;
}
.navLinks li > a {
    color: #000;
    text-decoration: none;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.navLinks li > a:hover {
    color: #EA253C;
}
.dropdownMenu , .gameDropdownMenu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    min-width: 100vw;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-sizing: border-box;
    background: #EAE6E7;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0 30px;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}
.dropdown:hover .dropdownMenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdownMenu > a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    padding: 0 12px;
}
.dropdownMenu > a:hover {
    color: #EA253C;
}
.gameDropdown {
    padding: 15px;
    align-items: center;
    background: #EA253C;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;
    user-select: none;
    color: white;
    font-size: 13px;
    cursor: pointer;
}
.gameDropdown div {
    line-height: 24px !important;
}
.gameDropdown img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.gameDropdownMenu {
    visibility: hidden; 
    transform: translateY(0);
    background: #262A2D;
    color: #fff;
    padding: 0px;
    min-height: 300px;
    overflow: hidden;
}
.gameDropdownMenu .describe {
    padding: 20px 40px;
    position: relative;
    margin: auto;
    font-size: 20px;
}
.gameDropdownMenu .describe span {
    float: right;
    font-size: 12px;
    position: relative;
    right: 15%;
    text-indent:25px
}
.gameDropdownMenu .describe span img {
    width: 15px;
    height: 15px;
    margin: 0 5px 0 0;
    vertical-align: middle;
}
.gameDropdownMenu .gameBox, .gameDropdownMenu .gameBox .title, .gameDropdownMenu .gameBox .allGame {
    width: 100%;
}
.gameDropdownMenu .gameBox > .title {
    background: #35363A;
    padding: 10px 40px;
    display: flex;
}
.gameDropdownMenu .gameBox .allGame {
    display: flex;
    padding: 10px 40px;
    border-left: 2px solid #343639;
}
.gameDropdownMenu .gameBox .allGame a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    padding: 0 12px;
}
.gameDropdownMenu .gameBox .allGame  a:hover {
    color: #fff;
}
.gameDropdownMenu .gameBox .allGame img {
    width: 12px;
    height: 12px;
    margin: 0 0 0 3px;
    vertical-align: middle;
}
.gameDropdownMenu .gameBox .title span {
    color: #EA253C;
    font-weight: normal;
}
.gameDropdownMenu .gameBox .recommend {
    width: 15%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}
.gameDropdownMenu .gameBox .recommend a{
    flex: 0 0 calc(100% - 10px);
    box-sizing: border-box;
}
.gameDropdownMenu .gameBox .hotGame a, .gameDropdownMenu .gameBox .newGame a{
    flex: 0 0 calc(33.333% - 10px);
    box-sizing: border-box;
}
.gameDropdownMenu .gameBox .hotGame, .gameDropdownMenu .gameBox .newGame {
    width: 35%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}
.gameDropdownMenu .gameBox .H5Game, .gameDropdownMenu .gameBox .appletGame {
    width: 15%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}
.gameDropdownMenu .gameBox .game {
    position: relative;
}
.gameDropdownMenu .gameBox .game:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #313235;
    height: 99999999px;
}
/* 容器 */
.loginDropdown {
    position: relative;
    list-style: none;
    /* display: inline-block; */
    display: flex;
}
.loginDropdown > .name {
    display: block;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}
.loginDropdownMenu {
    display: none;
    position: absolute;
    top: 100%;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    z-index: 1000;
    animation: fadeIn 0.25s ease-in-out;
}
.loginDropdownMenu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, padding-left 0.2s;
    line-height: normal;
}
.loginDropdownMenu a:hover {
    background: #f5f8ff;
    color: #357ab7;
    padding-left: 20px;
}
.loginDropdown:hover .loginDropdownMenu {
    display: block;
}
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}
  
footer {
    padding: 20px;
    background: #000;
    color: #fff;
    text-align: center;
    height: 110px;
}
footer .links {
    font-size: 13px;
    margin-bottom: 10px;
}
footer .links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}
footer .beianContainer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}
footer .beianContainer .beian {
    font-size: 13px;
}
footer .copyright {
    font-size: 13px;
}
.backToTop {
    position: fixed;
    bottom: 150px;
    right: 80px;
    width: 50px;
    height: 50px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 999;
    line-height: 50px;
    text-align: center;
    font-size: 25px;
}

footer .beianContainer .beian {
    font-size: 13px;
}
footer .beianContainer .beian a {
    color: #fff;
    text-decoration: none;
}
footer .beianContainer .beian a:hover {
    color: #EA253C;
}
.backToTop:hover {
    opacity: 1;
}
main {
    margin-top: 80px;
    flex: 1;
    min-height: calc(100vh - 80px - 110px);
}