/* 版心的公共类 */
.container {
width: 1240px;
margin: 0 auto;
}
/* ---------------快捷菜单模块:xtx-shortcut */
.xtx-shortcut {
height: 52px;
background-color: #333333;
}
.xtx-shortcut .container {
height: 52px;
/* ps */
/* background-color: skyblue; */
}
.xtx-shortcut ul li {
float: left;
line-height: 52px;
color: #666666;
}
.xtx-shortcut ul a {
margin: 0 16px;
color: #dcdcdc;
font-size: 14px;
}
.xtx-shortcut li:last-child a {
margin-right: 0;
}
.xtx-shortcut li:last-child a::before {
content: '';
display: inline-block;
width: 11px;
height: 16px;
margin-top: -3px;
margin-right: 8px;
/* ps */
/* background-color: red; */
background: url('../images/sprites.png') -160px -70px;
/* 垂直对齐方式 */
vertical-align: middle;
}
/* -------------主导航模块:xtx-main-nav */
.xtx-main-nav {
height: 130px;
padding-top: 30px;
/* 自动内减 */
box-sizing: border-box;
/* ps */
/* background-color: pink; */
}
.xtx-main-nav .logo {
width: 207px;
height: 70px;
margin-left: 25px;
/* ps */
/* background-color: red; */
}
.xtx-main-nav .logo a {
display: block;
height: 70px;
background: url('../images/logo.png');
background-size: 100% 100%;
font-size: 0;
}
.xtx-main-nav nav {
margin-left: 40px;
}
.xtx-main-nav nav li {
float: left;
height: 70px;
margin-right: 48px;
line-height: 70px;
}
.xtx-main-nav nav a:hover {
color: #27ba9b;
border-bottom: 1px solid #27ba9b;
padding-bottom: 7px;
}
.xtx-main-nav .search {
position: relative;
width: 172px;
height: 30px;
margin-top: 24px;
margin-left: 34px;
/* ps */
/* background-color: orange; */
}
.xtx-main-nav .search::before {
content: '';
position: absolute;
top: 5px;
left: 2px;
width: 18px;
height: 18px;
/* ps */
/* background-color: red; */
background: url('../images/sprites.png') -80px -70px;
}
.xtx-main-nav .search input {
width: 172px;
height: 30px;
border-bottom: 2px solid #e7e7e7;
padding-left: 31px;
}
.xtx-main-nav .cart {
position: relative;
width: 23px;
height: 23px;
margin-top: 28px;
margin-left: 15px;
/* ps */
/* background-color: skyblue; */
background: url('../images/sprites.png') -120px -70px;
}
.xtx-main-nav .cart span {
/* 子绝父相 */
position: absolute;
right: -12px;
top: -5px;
width: 20px;
height: 15px;
background-color: #e26237;
border-radius: 8px;
color: #fff;
font-size: 13px;
text-align: center;
line-height: 15px;
}
/* ------------------宣传服务:xtx-service */
.xtx-service {
height: 174px;
background-color: #333;
}
.xtx-service .container {
width: 1393px;
height: 173px;
border-bottom: 1px solid #434343;
/* ps */
/* background-color: pink; */
}
.xtx-service .container a {
float: left;
width: 33.33%;
height: 173px;
/* ps */
/* background-color: skyblue; */
text-align: center;
line-height: 173px;
font-size: 28px;
color: #fff;
}
.xtx-service .container a::before {
content: '';
display: inline-block;
width: 58px;
height: 58px;
margin-right: 19px;
/* ps */
/* background-color: red; */
background: url('../images/sprites.png') 0 0;
/* 垂直对齐方式 */
vertical-align: middle;
}
.xtx-service a:nth-child(2)::before {
background-position: -130px 0;
}
.xtx-service a:nth-child(3)::before {
background-position: -65px 0;
}
/* -----------------版权信息:xtx-copyright */
.xtx-copyright {
height: 168px;
background-color: #333;
}
.xtx-copyright .container {
height: 168px;
padding-top: 41px;
box-sizing: border-box;
/* ps */
/* background-color: pink; */
text-align: center;
font-size: 14px;
color: #999;
}
.xtx-copyright .container a {
color: #999;
}
.xtx-copyright .container p:first-child {
height: 35px;
}
/* ---------------网站入口:xtx-entry */
.xtx-entry {
height: 500px;
background-color: #f5f5f5;
}
.xtx-entry .container {
position: relative;
height: 500px;
/* ps */
/* background-color: pink; */
}
.xtx-entry .container .category {
/* 子绝父相 */
position: absolute;
left: 0;
top: 0;
width: 251px;
height: 500px;
background-color: rgba(0,0,0,.8);
}
.xtx-entry .category a {
color: #fff;
}
.xtx-entry .category li {
position: relative;
height: 50px;
padding-left: 36px;
line-height: 50px;
}
.xtx-entry .category li:hover {
background-color: #27ba9b;
}
.xtx-entry .category span {
font-size: 14px;
}
.xtx-entry .category span:first-child {
margin-left: 15px;
}
.xtx-entry .category a::after {
content: '';
position: absolute;
top: 19px;
right: 19px;
width: 6px;
height: 11px;
/* ps */
/* background-color: red; */
background: url('../images/sprites.png') -80px -110px;
}
.xtx-entry .prev {
position: absolute;
top: 228px;
left: 260px;
width: 45px;
height: 45px;
border-radius: 50%;
background: rgba(0,0,0,.2) url('../images/sprites.png') 13px -60px;
/* background-color: rgba(0,0,0,.2); */
}
.xtx-entry .next {
position: absolute;
top: 228px;
right: 10px;
width: 45px;
height: 45px;
border-radius: 50%;
background: rgba(0,0,0,.2) url('../images/sprites.png') -22px -60px;
}
.xtx-entry .indicator {
position: absolute;
left: 680px;
bottom: 31px;
width: 110px;
height: 10px;
/* ps */
/* background-color: red; */
}
.xtx-entry .indicator li {
float: left;
width: 10px;
height: 10px;
margin-right: 15px;
background-color: rgba(255,255,255,.43);
border-radius: 50%;
}
.xtx-entry .indicator li.active {
background-color: #fff;
}
.xtx-entry .indicator li:last-child {
margin-right: 0;
}
/* ----------------新鲜好物模块:xtx-new-goods */
.xtx-new-goods {
height: 520px;
/* ps */
/* background-color: pink; */
}
.xtx-new-goods .goods-hd {
height: 115px;
/* ps */
/* background-color: skyblue; */
line-height: 115px;
}
.xtx-new-goods .goods-hd h2 {
height: 115px;
font-size: 29px;
font-weight: 400;
}
.xtx-new-goods .goods-hd h2 span {
font-size: 16px;
color: #999;
}
.xtx-new-goods .goods-hd a {
color: #666;
}
.xtx-new-goods .goods-hd a::after {
content: '';
display: inline-block;
width: 7px;
height: 13px;
margin-left: 13px;
/* ps */
/* background-color: red; */
background: url('../images/sprites.png') 0 -110px;
vertical-align: middle;
}
.xtx-new-goods .goods-list {
height: 405px;
/* ps */
/* background-color: orange; */
}
.xtx-new-goods .goods-list li {
float: left;
width: 304px;
height: 405px;
margin-right: 8px;
background-color: #f0f9f4;
line-height: 1;
text-align: center;
}
.xtx-new-goods .goods-list li:last-child {
margin-right: 0;
}
.xtx-new-goods .goods-list li img {
width: 100%;
}
.xtx-new-goods .goods-list li h3 {
height: 40px;
margin-top: 22px;
font-size: 20px;
font-weight: 400;
}
.xtx-new-goods .goods-list li p {
color: #9a2e1f;
font-size: 23px;
}
.xtx-new-goods .goods-list li span {
font-size: 17px;
}