@font-face {
    font-family: "siyuan";
    src: url();
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    font-size: 16px;
    font-family: '微软雅黑';
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    margin: 0;
    width: 100%;
}


.navbar {
    flex-shrink: 0;
    width: 100%;
    height: 6rem;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
    font-weight: bold;
    justify-content: space-between;
}

.navbarBrand {
    background-image: url($rootPath/xincheng/images/yiliao/icon/fetaphon_logo_368x68.png);
    width: 10.35rem;
    height: 1.8rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.navbarLinkList {
    display: flex;
    flex-direction: row;
    width: 70%;
    height: 100%;
    justify-content: end;
}

.navbarLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    height: 100%;
}


.navbarLink a {
    color: #3b3b3b;
    text-decoration: none;
}

.navbarLink a:hover {
    color: #FFDEE4;
    cursor: pointer;
}

.split {
    margin: 0 2% 0 2%;
    color: #3b3b3b;
    height: 100%;
    line-height: 6rem;
}

.switchLanguageButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 2%;
    color: #3b3b3b;
    height: 100%;
}

.switchLanguageButton:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 2%;
    color: #FFDEE4;
    cursor: pointer;
    height: 100%;
}

/* 以下为页面向上滚动后导航栏的样式 */
.navbarScrolled{
    flex-shrink: 0;
    width: 100%;
    height: 6rem;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
    font-weight: bold;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.5);
}

.navbarScrolled .navbarBrand {
    background-image: url($rootPath/xincheng/images/yiliao/icon/fetaphon_logo_white_370x68.png);
    width: 10.35rem;
    height: 1.88rem;
    background-size: cover;
    background-repeat: no-repeat;
}

.navbarScrolled .navbarLinkSelected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    height: 100%;
    background-color: #FFDEE4;
}

.navbarScrolled .navbarLinkSelectedSub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    height: 100%;
    border-bottom: solid 4px #FFDEE4;
    /* background-color: #FFDEE4; */
}

.navbarScrolled .navbarLinkSelectedSub a {
    color: #FFDEE4;
    text-decoration: none;
}

.navbarScrolled .navbarLinkSelected a {
    color: #000000;
    text-decoration: none;
}

.navbarScrolled .navbarLink:hover {
    background-color: #FFDEE4;
}

.navbarScrolled .navbarLink a {
    color: #ffffff;
    text-decoration: none;
}

.navbarScrolled .navbarLink .navbarLinkBlack {
    color: #000000;
}

.navbarScrolled .split {
    margin: 0 2% 0 2%;
    color: #ffffff;
    height: 100%;
    line-height: 6rem;
}

.navbarScrolled .switchLanguageButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 2%;
    color: #ffffff;
    height: 100%;
}

.navbarScrolled .switchLanguageButton:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 2%;
    color: #000000;
    cursor: pointer;
    height: 100%;
}
