* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -welist-style: none;
    text-decoration: none;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    font-size: 16px;
}

:root {
    --header-height: 80px;
    --header-filter: blur(8px);
    --header-bg-color: #ffffff9a;
    --header-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

::-webkit-scrollbar {
    display: none;
}

/* 顶部 */
header {
    width: 100%;
    height: 60px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 2;
}

.layui-nav-item:nth-child(1) a {
    display: flex;
    align-items: center;
}

.layui-nav-item:nth-child(1) a img {
    width: 60px;
    height: 60px;
    margin-right: 5px;
}

.layui-nav-item:nth-child(1) a h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.layui-nav-item a {
    font-size: 20px;
}

.layui-nav-item svg {
    width: 30px;
    height: 30px;
}
/* 浮动区块 */
.float-box{
    position: fixed;
    right: 10px;
    bottom: 100px;
    width: 50px;
    height: auto;
    z-index: 4;
}
.float-box .float-list li svg{
    width: 50px;
    height: 50px;
}
.float-box .float-list #zhiding{
    display: none;
}
/* 主体内容 */
main {
    margin: 0 auto;
    padding: 10px;
    max-width: 1200px;
    border-radius: 10px 10px 0 0;
}

/* 轮播图 */
.carousel-box {
    width: 100%;
    /* height: 400px; */
    aspect-ratio: 19/7;
    border-radius: 10px;
}

.carousel-box div {
    border-radius: 10px;
}

.layui-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/*游戏盒公告*/
.bulletin{
    display: none;
    margin: 10px auto 0 auto;
    width: 100%;
    color: #1e9fff;
    background-color: #fff;
    border-radius: 10px;
}
.bulletin marquee{
    padding: 5px 0;
    display: flex;
    align-items: center;
}
/* 快捷导航 */
.layui-elem-quote {
    margin-top: 20px;
}

.shortcut-nav {
    display: flex;
    align-items: center;
    margin: 10px auto;
}

.shortcut-nav div {
    width: 25%;
    text-align: center;
}

.shortcut-nav div svg {
    width: 40px;
    height: 40px;
}

.shortcut-nav div p {
    font-size: 18px;
    font-weight: bold;
}

/* 热游推荐 */
.layui-elem-quote {
    color: #008dc5;
    font-weight: bold;
    background-color: transparent;
    background: linear-gradient(180deg, #FDEDE2, #ffffff);
}

.recommend-box {
    width: 100%;
    border-radius: 10px;
    background-color: #ffffff;
}

.recommend-list {
    width: 100%;
    display: flex;
    justify-content: left;
    overflow-x: auto;
}

.recommend-item {
    margin: 0 10px 10px 10px;
    min-width: 300px;
    border-radius: 10px;
    /* background-color: #ffffff; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.recommend-item-top{
    height: 145px;
}
.recommend-item-top img {
    width: 300px;
    height: 100%;
    border-radius: 10px 10px 0 0;
}

.recommend-item-bottom {
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

.recommend-item-bottom a {
    display: flex;
    align-items: center;
}

.game-img {
    width: 50px;
    height: 50px;
    margin-right: 5px;
}

.game-img img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.game-info p {
    font-size: 12px;
    color: #a1a1a1;
}

.game-bottom {
    margin-left: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-download {
    font-size: 14px;
    font-weight: bold;
    color: #fbdeb2;
    padding: 5px 15px;
    border-radius: 15px;
    background: linear-gradient(87deg, #1d1d1d, #5b4e3f);
}

/* 小编推荐 */
.recommend-box-2 .recommend-list {
    padding-top: 20px;
}

.recommend-box-2 .layui-elem-quote {
    background: linear-gradient(180deg, #FEF2DC, #ffffff);
}

.recommend-box-2 .recommend-item,
.recommend-box-2 .recommend-item a {
    width: 90px;
    min-width: 90px;
    padding: 0 5px;
    box-shadow: none;
}

.recommend-box-2 .recommend-item-bottom a {
    border-radius: 10px;
    flex-direction: column;
    background: linear-gradient(180deg, #FFE6B2, #ffffff);
}

.recommend-box-2 .game-img {
    width: 60px;
    height: 60px;
    margin-right: 0;
    margin-top: -25px;
}

.recommend-box-2 .game-info h2 {
    /* 超出隐藏并显示省略号 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-weight: bolder;
    margin: 10px auto;
}

.recommend-box-2 .game-bottom {
    margin-left: 0;
}

/* 传奇游戏推荐 */
.recommend-list-box {
    width: 100%;
    overflow-x: scroll;
}

.recommend-box-3 .layui-elem-quote {
    background: linear-gradient(180deg, #FEE5E4, #ffffff);
}

.recommend-box-3 .recommend-item {
    box-shadow: none;
    min-width: 260px;
}

.recommend-box-3 .recommend-list {
    flex-direction: column;
    width: 380px;
    height: 180px;
    flex-wrap: wrap;
    overflow-x: visible;
}

.recommend-box-3 .recommend-item-bottom a {
    width: 100%;
}

.recommend-box-3 .recommend-item-bottom {
    padding: 0;
}

/* 底部 */
footer {
    width: 100%;
    background-color: #333333;
    color: #ffffff;
    padding:10px;
    text-align: center;
}

footer p {
    vertical-align: middle;
    margin: 5px;
}

footer p a {
    color: #ffffff;
}
footer p a:hover {
    color: #91ffbb;
}

.icon-beian {
    width: 20px;
    height: 20px;
}
footer .links{
    margin: 5px 0;
}
footer .links a{
    color: #58b7be;
    margin: 0 5px;
}
footer .links a:hover{
    color: #91ffbb;
}
footer .notice{
    color: #9d9d9d;
}

/* 文章列表页面 */
.news-list {
    width: 100%;
}

.news-list ul li a {
    display: flex;
}

.news-list ul li .news-img {
    width: 210px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 10px;
    padding: 10px;
}

.news-list ul li .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.news-list ul li {
    padding: 5px 10px;
    margin: 10px 0;
    border-radius: 10px;
    border-bottom: 2px solid #ededed;
    display: flex;
}

.news-list ul li:hover h2 {
    color: #00a1ff;
}

.news-list ul li:hover .news-img img {
    filter: brightness(80%);
    /* 放大1.2倍 */
    transform: scale(1.1);
    transition: all 0.3s ease;
}
.news-list ul li:hover{
    box-shadow: 1px 1px 5px #a3a3a3;
    transform: translateY(-5px);
}
.news-list ul li .news-info h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 24px;
    font-weight: bold;
    margin: 5px auto;
}

.news-list ul li .news-info p {
    font-size: 14px;
    color: #a1a1a1;
    margin: 3px auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-list ul li .news-info .fbtime{
    margin: 0;
}
.news-list ul li .news-info .fbtime span{
    font-size: 14px;
    color: #81aba7;
}

.layui-laypage {
    display: flex;
    justify-content: center;
}
.news-btn {
    width: 100px;
    flex-shrink: 0;
}
.recommend-box-6 .recommend-list{
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    grid-gap: 5px 0;
}
.recommend-box-6 .recommend-item-top img{
    width: -webkit-fill-available;
}
.recommend-box-6 .recommend-item{
    min-width: auto;
}
.recommend-box-6 .game-info h2,
.recommend-box-6 .game-info p{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 16px;
    font-weight: bolder;
}
.recommend-box-6 .game-info p{
    font-size: 12px;
}
.recommend-box-6 .game-img,
.recommend-box-6 .game-bottom{
    flex-shrink: 0;
}
.recommend-box-6 .layui-elem-quote {
    margin-top: 0;
}
/* 分页 */
.page-box{
    text-align: center;
}
/* 文章页面 */
.content-box {
    background-color: #ffffff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
}

.content-title h1 {
    text-align: center;
    font-size: 32px;
    word-wrap: break-word;
    color: #222226;
    font-weight: 600;
    margin: 0;
    word-break: break-all;
    font: bold 32px / 46px "微软雅黑";
    overflow: hidden;
}

.content-info {
    text-align: center;
    color: #999aaa;
    margin: 10px 0 0 0;
}
.content-info span{
    font-size: 14px;
}
.content-text {
    font-size: 18px;
    color: #4d4d4d;
    font-weight: 400;
    line-height: 24px !important;
    margin: 0 0 16px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.content-text>h2,
.content-text>h3,
.content-text>h4 {
    margin-bottom: 32px;
    margin-top: 32px;
    color: #333;
    font-weight: bold;
}

.content-text h2 {
    font-size: 24px;
    line-height: 32px;
}

.content-text h3 {
    font-size: 22px;
}

.content-text img,
.content-text video {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto !important;
}

.content-text strong {
    font-weight: bold;
}

.content-text>p,
.content-text>div,
.content-text>ul,
.content-text>ol,
.content-text>dl {
    margin-top: 32px;
    word-wrap: break-word;
}

.layui-container .layui-elem-quote {
    margin-top: 10px;
}
.content-source,
.content-views,
.content-tags {
    background-color: #f5f5f5;
    padding: 5px;
}
.content-source span,
.content-views span,
.content-tags span {
    font-size: 14px;
    color: #999aaa;
}

.content-prev-next,
.content-prev-next div {
    margin: 10px 0;
}
.content-tags-list a{
    color: #739ba5;
    margin: 0 5px;
    font-size: 14px;
}
.content-prev,
.content-next{
    display: flex;
}
.content-prev a,
.content-next a {
    font-size: 16px;
    color: #999999;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin: 0;
}
.content-prev span,
.content-next span{
    white-space: nowrap;
}
.content-prev a:hover,
.content-next a:hover{
    color: #00a1ff;
}
/*移动端底部导航栏*/
.mobile-footer{
    display: none;
    position: fixed;
    bottom: 0;
}
.mobile-footer ul{
    width: 100vw;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #1e9fff;
}
.mobile-footer ul li a{
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile-footer ul li a svg{
    width: 30px;
    height: 30px;
}
/* 自适应布局 */
@media screen and (max-width: 600px) {
    .layui-nav .layui-nav-item-menu {
        display: none;
    }

    .layui-nav {
        padding: 0;
    }

    .layui-nav .layui-nav-item a {
        padding: 0 10px;
    }
    .bulletin{
        display: block;
    }
    .shortcut-nav{
        display: none;
    }
    .carousel-box {
        height: auto;
        aspect-ratio: 19/8;
    }
    .news-list ul li .news-img{
        width: 100px;
    }
    .news-list ul li .news-info p{
        -webkit-line-clamp: 1;
    }
    .news-list ul li .news-info h2{
        margin: 0;
        font-size: 17px;
        font-weight: bold;
    }
    .news-list ul li .news-info p{
        margin: 0;
    }
    .news-list ul li .news-img{
        padding: 0;
    }
    .layui-elem-quote {
        margin-top: 10px;
    }
    footer{
        padding:10px 10px 80px 10px;
    }
    .mobile-footer{
        display: block;
    }
}