﻿
#top-icon {
    width: 1920px;
    height: 70px;
    position: fixed;
    z-index: 999;
    background-color: transparent;
    border: none; /* 确保所有边框都不显示 */
    margin: 0 auto;
    left: 50%;
    margin-left: -960px;
}


.nav_logo {
    position: absolute;
    left: 50%; /* 改为居中定位 */
    top: 50%; /* 垂直居中 */
    transform: translate(-50%, -50%); /* 使用transform实现精确居中 */
}

.nav_logo p {
    font-size: 31px;
    font-family: 'dbsjt';
    float: left;
    background-image: -webkit-linear-gradient(left, #770808, #ff0000 25%, #770808 50%, #ff0000 75%, #770808);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-background-size: 200% 100%;
    -webkit-animation: masked-animation 2s infinite linear;
}

/* 其余代码保持不变... */

@-webkit-keyframes masked-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.nav_logo p img {
    padding-right: 0px;
}

.nav_icons {
    position: absolute;
    top: 0px;
    right: 200px;
    z-index: 20;
}


.nav_icons ul {
    display: flex;
    justify-content: center; /* 居中排列按钮 */
    align-items: center;
    gap: 40px; /* 增加按钮之间的间距 */
}

.nav_icons ul li {
    position: relative;
}

.nav_icons ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    position: relative;
    color: #4f4f4f;
    cursor: pointer;
    text-decoration: none;
}

.nav_icons ul li a span {
    display: block;
    margin: 0 auto 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 登录器下载按钮 - 使用005图片 */
.nav_icons ul li:nth-child(1) a span.icon-download {
    width: 263px; /* 图片宽度 */
    height: 70px; /* 图片高度 */
    background-image: url(../images/top-icon/005.png);
}

/* 游戏充值按钮 - 使用006图片 */
.nav_icons ul li:nth-child(2) a span.icon-recharge {
    width: 263px;
    height: 70px;
    background-image: url(../images/top-icon/006.png);
}

/* 玩家Q群按钮 - 使用007图片 */
.nav_icons ul li:nth-child(3) a span.icon-qgroup {
    width: 263px;
    height: 70px;
    background-image: url(../images/top-icon/007.png);
}

/* 官方客服按钮 - 使用008图片 */
.nav_icons ul li:nth-child(4) a span.icon-service {
    width: 263px;
    height: 70px;
    background-image: url(../images/top-icon/008.png);
}

/* 按钮文字样式 */
.nav_icons ul li a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.nav_icons ul li a:hover {
    color: #ff6600; /* 悬停时改变文字颜色 */
}

.nav_icons ul li a:hover div {
    display: block;
}

.nav_icons ul li a div {
    display: none;
    position: absolute;
    top: 120px; /* 下拉菜单位置调整 */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.nav_icons ul li a div:before {
    display: block;
    content: '';
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: #fff;
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -10px;
}

.nav_icons ul li a div img {
    width: 200px;
    height: 200px;
    border: 2px solid #fff;
    display: block;
    margin: 0 auto;
}

.nav_icons ul li a div em {
    font-size: 16px;
    color: #1e1a1c;
    text-align: center;
    font-style: normal;
    display: block;
    margin-top: 10px;
}

/* 如果需要独立调整每个按钮的位置，可以使用以下示例 */
/*
.nav_icons ul li:nth-child(1) {
    margin-right: 20px;
}

.nav_icons ul li:nth-child(2) {
    margin-left: -10px;
}

.nav_icons ul li:nth-child(3) {
    position: relative;
    left: 15px;
}

.nav_icons ul li:nth-child(4) {
    position: relative;
    right: 10px;
}
*/