.banner .item {
  display: none;
}

.banner .item:first-child {
  display: block;
}

.banner .item img {
  position: absolute;
}

.banner:hover .slider-left,
.banner:hover .slider-right {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.banner .slider-left,
.banner .slider-right {
  position: absolute;
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transform: scale(0);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.banner .slider-left:hover,
.banner .slider-right:hover {
  transform: scale(1.1);
}

.banner .slider-left:active,
.banner .slider-right:active {
  transform: scale(1);
}

.banner .slider-left {
  left: 40px;
}

.banner .slider-left::before,
.banner .slider-right::before {
  /* 使用伪元素构造向左和向右的箭头 */
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 25px;
  background: #ddd;
  border-radius: 4px;
  transform: rotateZ(35deg);
}

.banner .slider-right::before {
  transform: rotateZ(-35deg);
}

.banner .slider-left::after,
.banner .slider-right::after {
  content: '';
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 4px;
  height: 25px;
  background: #ddd;
  border-radius: 4px;
  transform: rotateZ(-35deg);
}

.banner .slider-right::after {
  transform: rotateZ(35deg);
}

.banner .slider-right {
  right: 40px;
}

.banner .slider-dots {
  position: absolute;
  display: flex;
  justify-content: center;
  left: 0;
  bottom: 25px;
  width: 100%;
}

.banner .slider-dots li {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0 8px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  color: #eee;
  background: #555;
  cursor: pointer;
  -webkit-transition: background 0.3s;
  -moz-transition: background 0.3s;
  -o-transition: background 0.3s;
  transition: background 0.3s;
}

.banner .slider-dots li.active {
  background: #bd4f4b;
}

.banner .slider-dots li::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 25px;
  transform: scale(1.2);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.banner .slider-dots li.active::after {
  /* 小圆点选中时加上一个外边框 */
  border: 2px solid #bd4f4b;
  box-shadow: 0 0 4px #555;
  transform: scale(1);
}

@media (max-width: 767px) {
  .banner .slider-left,
  .banner .slider-right {
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
  }
  .banner .slider-left {
    left: 10px;
  }
  .banner .slider-right {
    right: 10px;
  }
  .banner .slider-left::before,
  .banner .slider-right::before {
    height: 14px;
  }
  .banner .slider-left::after,
  .banner .slider-right::after {
    height: 14px;
  }
  .banner .slider-dots {
    bottom: 10px;
  }
  .banner .slider-dots li {
    width: 22px;
    height: 22px;
    font-size: 12px;
    line-height: 22px;
    margin: 0 5px;
  }
}

.knowledge .main {
  /* 汉服知识部分，采用flex布局 */
  display: flex;
  justify-content: center;
}

.knowledge .main .item {
  position: relative;
  margin: 4px;
  border-radius: 8px;
  cursor: pointer;
}

.knowledge .main .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.knowledge .main .item .text {
  position: absolute;
  display: flex;
  flex-direction: column;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  color: #eee;
  padding: 12px;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1.3em;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  -webkit-transition: all 0.6s;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  transition: all 0.6s;
}

.knowledge .main .item:hover .text {
  justify-content: center;
  height: 100%;
  color: #fff;
  border-radius: 8px;
}

.knowledge .main .item .text h5 {
  text-align: center;
  margin: 10px 0;
  color: #fff;
  font-size: 20px;
}

.knowledge .main .item .text p {
  text-indent: 2em;
}

@media (max-width: 991px) {
  .knowledge .main .item .text {
    padding: 8px;
    font-size: 14px;
    overflow: auto;
  }
  .knowledge .main .item:hover .text {
    justify-content: flex-start;
  }
  .knowledge .main .item .text h5 {
    font-size: 18px;
    margin: 6px 0;
  }
  .knowledge .main .item .text p {
    margin: 2px;
  }
}

@media (max-width: 767px) {
  .knowledge .main {
    flex-wrap: wrap;
  }
  .knowledge .main .item {
    width: calc(50% - 16px);
  }
  .knowledge .main .item .text {
    padding: 8px;
    font-size: 12px;
  }
  .knowledge .main .item .text h5 {
    font-size: 16px;
  }
}
/* 作品展示橱柜 */

.cupboard {
  overflow: hidden;
}

.cupboard .common-btn {
  margin: 12px auto 0;
}

.cupboard .main {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.cupboard .main ul {
  width: 204px;
  height: 304px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.cupboard .main ul li {
  position: absolute;
  width: 200px;
  height: 300px;
  opacity: 0.4;
  border: 5px double #bd4f4b;
  margin: 2px;
  font-size: 0;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.cupboard .main ul li.active {
  opacity: 1;
  box-shadow: 0 0 15px #999;
  transform: scale(1.2);
  z-index: 1;
}

.cupboard .main ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cupboard .cupboard-prev,
.cupboard .cupboard-next {
  position: absolute;
  top: calc(50% - 35px);
  left: 20px;
  width: 70px;
  height: 70px;
  opacity: 0;
  background: url('../images/decoration/arrow-left.png') no-repeat 50% 50%/60px 45px;
  cursor: pointer;
  z-index: 2;
}

.cupboard .cupboard-next {
  left: auto;
  right: 20px;
  background-image: url('../images/decoration/arrow-right.png');
}

@media (max-width: 767px) {
  .cupboard .main {
    padding: 25px 0;
  }
  .cupboard .main ul {
    width: 154px;
    height: 224px;
  }
  .cupboard .main ul li {
    width: 150px;
    height: 220px;
  }
  .cupboard .cupboard-prev,
  .cupboard .cupboard-next {
    top: calc(50% - 23px);
    width: 46px;
    height: 46px;
    background-size: 46px 35px;
  }
  .cupboard .cupboard-prev {
    left: 5px;
  }
  .cupboard .cupboard-next {
    right: 5px;
  }
}
/* 设计团队部分，采用flex布局 */

.designer .main {
  display: flex;
  padding: 0 8px;
}

.designer .main .big {
  position: relative;
  width: 40%;
  flex: none;
  padding: 4px;
  font-size: 0;
  border-radius: 50%;
  border: 2px dashed #bd4f4b;
}

.designer .main .big img {
  width: 100%;
  border-radius: 50%;
}

.designer .main .big .name {
  position: absolute;
  color: #bd4f4b;
  font-size: 24px;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  text-shadow: 0 0 10px #fff;
}

.designer .main .little {
  display: inline-flex;
  flex-direction: column;
  padding-left: 6px;
}

.designer .main .little:nth-child(even) {
  flex-direction: column-reverse;
}

.designer .main .little .name {
  color: #bd4f4b;
  text-align: center;
  line-height: 30px;
  font-size: 20px;
  font-weight: 700;
}

.designer .main .little .img {
  position: relative;
  padding: 5px;
  font-size: 0;
  background: url('../images/decoration/frame.png') no-repeat 50% 50%/100% 100%;
  cursor: pointer;
}

.designer .main .big::after,
.designer .main .little .img::after {
  /* 鼠标悬浮时显示查看作品字样 */
  content: '查看作品';
  position: absolute;
  top: calc(50% - 75px);
  left: calc(50% - 75px);
  width: 150px;
  height: 150px;
  line-height: 150px;
  color: transparent;
  font-size: 18px;
  text-align: center;
  background: transparent;
  border-radius: 50%;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  transform: scale(1.5);
}

.designer .main .big:hover::after,
.designer .main .little .img:hover::after {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px #999;
  transform: scale(1);
}

.designer .main img {
  width: 100%;
  border-radius: 30px;
}

@media (max-width: 991px) {
  .designer .main .big .name {
    font-size: 20px;
  }
  .designer .main .little .name {
    font-size: 16px;
  }
  .designer .main img {
    border-radius: 20px;
  }
  .designer .main .big::after,
  .designer .main .little .img::after {
    top: calc(50% - 55px);
    left: calc(50% - 55px);
    width: 110px;
    height: 110px;
    line-height: 110px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .designer .main .big {
    width: 38%;
  }
  .designer .main img {
    border-radius: 15px;
  }
  .designer .main .big::after,
  .designer .main .little .img::after {
    top: calc(50% - 45px);
    left: calc(50% - 45px);
    width: 90px;
    height: 90px;
    line-height: 90px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .designer .main {
    flex-wrap: wrap;
  }
  .designer .main .big {
    width: 100%;
    margin-bottom: 15px;
  }
  .designer .main .big::after {
    top: calc(50% - 75px);
    left: calc(50% - 75px);
    width: 150px;
    height: 150px;
    line-height: 150px;
  }
  .designer .main .little {
    width: 33.33333%;
  }
  .designer .main img {
    border-radius: 10px;
  }
}
/* 汉服礼仪部分，采用flex布局。以大图为背景 */

.ceremony .main {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 500px;
  background: url('../images/decoration/bg-ceremony.jpg') no-repeat 50% 50% / cover;
}

.ceremony .main .text {
  /* 文字部分采用半透明背景 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
  font-size: 16px;
  letter-spacing: 4px;
  line-height: 1.8em;
  height: inherit;
  color: #ddd;
  padding: 10px 8% 30px 3%;
  background: rgba(0, 0, 0, 0.6);
}

.ceremony .main .text h5 {
  font-size: 28px;
  font-family: '楷体';
  line-height: 1.5em;
  margin: 25px 0;
}

.ceremony .main .text p {
  text-indent: 2em;
}

@media (max-width: 991px) {
  .ceremony .main {
    height: auto;
  }
  .ceremony .main .text {
    padding: 8px 5% 20px 2%;
    font-size: 15px;
    letter-spacing: 3px;
    line-height: 1.6em;
  }
  .ceremony .main .text p {
    margin: 3px 0;
  }
  .ceremony .main .text h5 {
    font-size: 24px;
    margin: 12px 0;
  }
}

@media (max-width: 767px) {
  .ceremony .main .text {
    width: 100%;
    font-size: 14px;
    padding: 15px;
    letter-spacing: 3px;
    line-height: 1.6em;
  }
  .ceremony .main .text h5 {
    font-size: 20px;
    margin: 8px 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ceremony .main .text p:nth-last-of-type(1) {
    display: none;
  }
}

/* 汉服配饰部分 */
.ornament {
  background: url('../images/decoration/bg2.png');
  overflow: hidden;
}

.ornament ul {
  display: flex;
  /* 等宽显示 */
  justify-content: space-evenly;
}

.ornament ul li {
  width: 150px;
  height: 100%;
  text-align: center;
  margin: 8px 0;
}

.ornament ul li img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  background: url('../images/decoration/ring.png') no-repeat 50% 50%/100% 100%;
}

.ornament ul li span {
  display: inline-block;
  width: 60px;
  height: 32px;
  line-height: 32px;
  margin-top: 4px;
  font-size: 16px;
  color: #eee;
  background: #bd4f4b;
  border-radius: 50%;
}

@media (max-width: 991px) {
  .ornament ul li {
    width: 120px;
    margin: 4px 0;
  }
  .ornament ul li span {
    width: 50px;
    height: 28px;
    line-height: 28px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .ornament ul li {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .ornament ul li {
    width: 90px;
  }
  .ornament ul li span {
    width: 42px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
  }
}
