/* 公共样式表 v */
/* w类名 就是公共的宽度1024px 居中显示 这个叫做版心 */
.w {
  width: 1240px;
  margin: 0 auto;
}


/*  网页的头部  */
/* 1.1 头部的导航栏  */
.shortcut {
  height: 52px;
  background-color: #333;
}

/* 因为要给li横向显示 所以要给ul添加flex布局，父元素为ul，所以给ul添加flex布局即可 */
.shortcut ul {
  height: 52px;
  display: flex;
  /*沿着 水平方向对齐
    flex-end: 从右到左对齐
    flex-start: 从左到右对齐
    center: 居中对齐
    space-between: 项目之间的间距相等
    space-around: 项目之间的间距相等，项目与边框之间的间距相等
    space-evenly: 项目之间的间距相等，项目与边框之间的间距也相等
  */
  justify-content: flex-end;
  /*沿着 垂直方向对齐
    flex-end: 从下到上对齐
    flex-start: 从上到下对齐
    center: 居中对齐
    baseline: 基线对齐
  stretch: 项目默认值，项目垂直方向上拉伸到父元素高度
  */
  align-items: center;
}



.shortcut li a {
  color: #fff;

}

.shortcut li a:hover {
  color: #ab153f !important;
}

.shortcut .line {
  height: 12px;
  width: 1px;
  background-color: #999;
  margin: 0 15px;
}

.shortcut li i {
  font-size: 18px;

  /* color: #dedbec; */
}

/* .shortcut li .active {
  color: #088643;
} */
/* 找到第一个li的a标签 */
.shortcut li:first-child a {
  color: #029b4a;
}

/* 1.2 头部的搜索栏 */
.header {
  display: flex;
  height: 132px;

  /* 子元素从左到右对齐
     */
  justify-content: flex-start;
  /* 子元素垂直居中对齐
     */
  align-items: center;
}

.header .logo {
  height: 88px;
  width: 200px;
  background-color: #61feaa;
}

.header .logo h1 {
  height: 100%;
  width: 100%;

}

.header .logo h1 a {
  display: block;
  height: 100%;
  width: 100%;
  /* no-repeat 不重复背景图片 */
  background: url(../images/logo.png) no-repeat;
  /* a是行内元素不能设置宽高
    如果要设置就要把a标签转换为块级元素
  */
  /* 隐藏文字 
    text-indent首行缩进
    -9999px 隐藏文字 跑到左侧的负数位置
    */
  text-indent: -9999px;
  /* 裁剪文字 */
  overflow: hidden;
}

.header .nav {
  display: flex;
  height: 88px;
  width: 560px;

  justify-content: space-around;
  align-items: center;

}

.nav li a {
  display: block;
  height: 40px;
  line-height: 40px;
}

.header .nav li a:hover {
  color: #029b4a;
  /* 下划线 */
  border-bottom: 2px solid #61feaa;
}

.search input {
  height: 40px;
  width: 170px;
  border: 2px solid #f4f4f4;
  padding-left: 28px;
  /* 这个是用户输入的文字设置 */
  color: #000;
  font-size: 16px;
}

.search input::placeholder {
  /* 这个是占位符的文字设置 */
  color: #999;
  font-size: 16px;
}

.cart i {
  font-size: 40px;
  margin-left: 15px;

}

/*  网页的底部  */
.footer {
  height: 580px;
  background-color: #f5f5f5;
}

.footer .footer-top {
  height: 178px;
  border-bottom: 1px solid #e8e8e8;
}

.footer .footer-top ul {
  display: flex;
  height: 178px;

  justify-content:
    /* space-evenly 项目之间的间距相等，项目与边框之间的间距也相等 贴中间
   space-between 项目之间的间距相等  贴左右
  space-around 项目之间的间距相等，项目与边框之间的间距相等
  s
  */
    space-evenly;
  align-items: center;



}

.footer .footer-top ul li {
  display: flex;
  align-items: center;

}

.footer .footer-top ul li h5 {
  width: 58px;
  height: 58px;
  background: url(../images/sprite.png) no-repeat;
}


.footer .footer-top ul li .prch2 {
  background-position: 0 -58px;
}

.footer .footer-top ul li .prch3 {
  background-position: 0 -116px;
}

.footer .footer-top ul li .prch4 {
  background-position: 0 -174px;
}



.footer .footer-top ul li p {
  font-size: 28px;
  color: #000;
  padding-left: 10px;


}

.footer-middle {
  margin-top: 60px;
  display: flex;
  /* 左右对齐 */
  justify-content: space-between;

}


.footer-middle .footer-middle-left {
  display: flex;
  width: 700px;
  justify-content: space-between;
}

.footer-middle-left dt {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;

}

.footer-middle-left dd {

  margin-bottom: 10px;
}


.footer-middle-left dd a {
  /*默认字体大小为16px 所以这个不用写了*/

  color: #999999;
}

.footer-middle-left dd a i {

  color: #0c9b51;
  margin-left: 5px;
}

.footer-middle-right ul {
  display: flex;

  justify-content: space-evenly;
  text-align: center;


}

.footer-middle-right ul li p {
  margin-top: 10px;
}

.footer-middle-left dl dd a:hover {
  color: #08d0b5;
}

.footer-bottom {
  margin-top: 100px;
  text-align: center;
  color: #a1a1a1;
  line-height: 30px;

}

.footer-bottom p {
  margin-bottom: 15px;

}

.footer-bottom p a:hover {
  color: #08d0b5;
}