@font-face {
    font-family: "pingfang";
    src        : url('../fonts/PingFangSCRegular.ttf') format('truetype');
}

@font-face {
    font-family: 'iconfont';
    src        : url('../fonts/iconfont.eot');
    src        : url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/iconfont.woff2') format('woff2'),
        url('../fonts/iconfont.woff') format('woff'),
        url('../fonts/iconfont.ttf') format('truetype'),
        url('../fonts/iconfont.svg#iconfont') format('svg');
}

.iconfont {
    font-family            : "iconfont" !important;
    font-size              : 20px;
    font-style             : normal;
    -webkit-font-smoothing : antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height            : 40px;
}

body {
    font-family: "pingfang", sans-serif;
    margin: 0;
    padding: 0;
}

.site_head {
    width: 100%;
    background-color: black;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.center {
    max-width: 1459px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-r a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    line-height: 50px;
}

.shortcut-links ul {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    height: 50px;
}

.shortcut-links ul li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 50px;
    position: relative;
}

.shortcut-links ul li a {
    display: block;
    padding: 0 15px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    line-height: 50px;
}

.shortcut-links ul li.active a {
    background-color: rgb(219, 207, 207);
    color: black;
    font-weight: bold;
}

.shortcut-links ul li a:hover {
    color: #938c8c;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 130px;
    z-index: 9999;
    top: 50px;
    left: 0;
    border: 1px solid #333;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    flex-direction: column; /* 设置下拉菜单内容为列方向 */
}

.dropdown-content a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px; /* 调整下拉菜单选项的字体大小 */
    width: 100%; /* 确保选项占满菜单宽度 */
}

.dropdown-content a:hover {
    color: #938c8c; /* 改变字体颜色 */
    background-color: transparent; /* 保持背景颜色不变 */
}

.dropdown:hover .dropdown-content {
    display: flex; /* 显示下拉菜单内容，并使用flex布局 */
}

.lang-switch {
    white-space: nowrap;
    overflow: visible;
    padding-right: 10px;
    padding-left: 5px;
    line-height: 50px;
}




@media (max-width: 600px) {
/* 确保下拉菜单的初始状态是隐藏的 */
.dropdown-content {
    display: none;  /* 默认隐藏 */
    position: absolute;
    background-color: black;
    min-width: 160px;
    z-index: 1;
}

/* 当.dropdown类激活时，显示菜单 */
.dropdown:hover .dropdown-content {
    display: block;  /* 鼠标悬停时显示 */
}

}
