以下是重构后的代码,保持了段落结构:
```css
body {
background-size: 100%;
background: #ffffff;
}
.header .logosos .sos .btn {
background: url(/seac/xhtml/images/public/sosearch.png) left top !important;
color: #015293 !important;
font-size: 15px;
font-weight: bold;
}
@media screen and (min-width: 960px) {
body {
width: 100%;
z-index: 0;
}
.header {
width: 100%;
overflow: hidden;
background: #ffffff;
margin: 0px auto 0px auto;
}
.header .logosos {
margin: 35px auto 10px auto;
}
.w1140 {
width: 1130px;
margin: 0 auto;
overflow: hidden;
}
.w1150 {
width: 1110px;
margin: 0 auto;
overflow: hidden;
}
.header_nav {
width: 100%;
height: 50px;
background: #ffffff !important;
}
.header_nav .nav {
margin-left: 2px;
}
.header_nav .nav li {
font-size: 20px;
font-weight: 600;
}
}
```
以下是重构后的代码,保持了原有的样式和结构:
```css
/* 宽度设置 */
.header_nav .nav li {
width: 161px !important;
}
/* 鼠标悬停时的背景设置 */
.header_nav .nav li:hover {
background: url(https://www.neac.gov.cn/seac/xhtml/images/public/nav-bg.png) top center no-repeat;
}
/* 鼠标悬停时的文字颜色设置 */
.header_nav .nav li a:hover {
color: #ffffff !important;
}
/* 鼠标悬停时文字的样式设置 */
.header_nav .nav li a {
display: inline-block;
width: 161px;
text-align: center;
color: #015293 !important;
height: 40px;
margin-top: 5px;
line-height: 40px;
border-right: none !important;
}
/* 当鼠标悬停在索引项时,左侧边框去除 */
.header_nav .nav li.index a {
border-left: none !important;
}
/* 当鼠标悬停在激活状态的项时,背景和字体加粗 */
.header_nav .nav li.active {
background: url(https://www.neac.gov.cn/seac/xhtml/images/public/nav-bg.png) top center no-repeat !important;
font-weight: bold;
margin-left: -1px;
}
/* 当鼠标悬停在激活状态的项时,文字颜色设置 */
.header_nav .nav li.active a{
color: #ffffff !important;
}
```