@import "./c/config"; @import "./c/function"; .g-fx { background-color: #00023a; } .g-pg { position: relative; } .i-corner { position: absolute; z-index: 0; width: 121px; &.z-left-top { top: 15px; left: 15px; } &.z-left-bottom { bottom: 15px; left: 15px; } &.z-right-top { top: 15px; right: 15px; } &.z-right-bottom { bottom: 15px; right: 15px; } } .m-topnav { position: relative; z-index: 1; width: 100%; height: 101px; background-image: url(../images/shuju/main/top-bg.png); background-repeat: no-repeat; background-position: top center; background-size: 100%; .title { position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; line-height: 70px; text-align: center; font-size: 32px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #ffffff; } .nav-list { position: absolute; top: 40px; left: 40px; display: flex; width: 500px; &.z-right { left: auto; right: 40px; .nav-item { background-image: url(../images/shuju/main/nav-right.png); &.z-on { &::before { background-image: url(../images/shuju/main/nav-right-on.png); } } } } .nav-item { position: relative; width: 120px; height: 40px; line-height: 40px; font-size: 16px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; background-image: url(../images/shuju/main/nav-left.png); background-size: 100%; text-align: center; cursor: pointer; color: rgba(#fff, 0.85); span { position: relative; z-index: 1; } &:hover { color: #fff; } &.z-on { background-image: none; &::before { position: absolute; z-index: -1; content: ""; display: block; top: -2px; left: -5px; width: 132px; height: 47px; background-image: url(../images/shuju/main/nav-left-on.png); background-size: 100%; } } } } .msg { position: absolute; display: flex; align-items: center; top: 40px; right: 40px; font-size: 16px; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #ffffff; line-height: 22px; .weather { display: flex; align-items: center; img { position: relative; width: 20px; } div { margin-left: 3px; } } .date { margin-left: 24px; display: flex; align-items: center; .date-div { margin: 0 10px; height: 22px; width: 1px; background-color: #fff; opacity: 0.8; } } } } .g-cnt { padding: 15px; }