/* 汉服礼仪部分 */
.ceremony-list {
  overflow: hidden;
}

.ceremony-list h3 {
  position: relative;
  text-align: center;
  font-size: 24px;
}

.ceremony-list h3::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: calc(50% - 40px);
  width: 80px;
  height: 8px;
  background: #ccc;
  z-index: -1;
}

.ceremony-list .one {
  /* 汉服礼仪第一部分,采用flex布局,允许flex项目换行显示 */
  display: flex;
  flex-wrap: wrap;
  font-size: 0;
}

.ceremony-list .one .item {
  /* 每个小部分为一半大小 */
  flex: none;
  position: relative;
  width: 50%;
}

.ceremony-list .one .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ceremony-list .text {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #eee;
  font-size: 15px;
  padding: 40px;
  line-height: 1.4em;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 10px #333;
}

.ceremony-list .one .item .text p {
  margin: 4px 0;
  text-indent: 2em;
}

.ceremony-list .one .item .text h4 {
  font-size: 22px;
  margin: 10px;
  text-align: center;
}

.ceremony-list .one .item .text h5 {
  font-size: 15px;
  margin: 4px 0;
}

.ceremony-list .two {
  /* 汉服礼仪第二部分,采用flex布局,左边文字,右边图片 */
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.ceremony-list .two .left {
  flex: none;
  width: 50%;
  font-size: 16px;
  line-height: 1.4em;
  letter-spacing: 2px;
  text-indent: 2em;
  padding: 0 10px;
}

.ceremony-list .two .right {
  display: flex;
  align-items: center;
}

.ceremony-list .two .right img {
  width: 33.333333%;
  padding: 10px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 991px) {
  .ceremony-list .one .item .text h4 {
    font-size: 20px;
  }
  .ceremony-list .text {
    font-size: 14px;
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .ceremony-list h3 {
    font-size: 22px;
    margin: 12px 0;
  }
  .ceremony-list .one .item {
    width: 100%;
    height: 320px;
  }
  .ceremony-list .two {
    flex-wrap: wrap;
  }
  .ceremony-list .two .left {
    width: 100%;
    font-size: 15px;
  }
  .ceremony-list .two .right img {
    max-width: 180px;
  }
}
