header {
  background: linear-gradient(#2f0101 0%, rgba(115, 25, 25, 0.97) 100%) !important;
}

.main {
  padding: 0 0.8rem;
}

@media screen and (max-width: 751px) {
  .main {
    padding: 0;
  }
}

.main .banner {
  width: 100%;
  height: 2.8rem;
  margin-top: 1.38rem;
}

@media screen and (max-width: 751px) {
  .main .banner {
    margin-top: 0;
  }
}

.main .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main .layout {
  display: flex;
  padding-bottom: 0.5rem;
  min-height: calc(100vh - 2.58rem - 2.8rem);
}

@media screen and (max-width: 751px) {
  .main .layout {
    flex-direction: column;
    min-height: calc(100vh - 3rem - 2.8rem);
  }
}

.main .layout .sidebar {
  width: 3rem;
  flex-shrink: 0;
  background-color: #fff;
}

@media screen and (max-width: 751px) {
  .main .layout .sidebar {
    width: calc(100% - 0.8rem);
    margin: 0.24rem auto;
  }
}

.main .layout .sidebar .top {
  width: 100%;
  height: 0.76rem;
  line-height: 0.76rem;
  padding-left: 0.4rem;
  background-color: #fff;
  font-size: 0.24rem;
  color: #333;
  font-weight: bold;
}

@media screen and (max-width: 751px) {
  .main .layout .sidebar .top {
    position: relative;
  }
  .main .layout .sidebar .top::after {
    content: "";
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.28rem;
    height: 0.28rem;
    background: url("../img/arrow-right.png") no-repeat;
    background-size: contain;
  }
  .main .layout .sidebar .top:hover + .subs {
    display: block;
  }
}

.main .layout .sidebar .subs {
  font-size: 0;
  width: 100%;
}

@media screen and (max-width: 751px) {
  .main .layout .sidebar .subs {
    display: none;
  }
  .main .layout .sidebar .subs:hover {
    display: block;
  }
}

.main .layout .sidebar .subs .submenu {
  display: inline-block;
  width: 100%;
  height: 0.66rem;
  line-height: 0.66rem;
  padding-left: 0.4rem;
  font-size: 0.18rem;
  color: #333;
}

.main .layout .sidebar .subs .submenu:hover {
  background-color: #781824;
  border-left: 8px solid #ff5d4b;
  color: #fff;
}

.main .layout .container {
  flex: 1;
  overflow: hidden;
  padding: 0 0.2rem;
  background-color: #f7f8f9;
}

.main .layout .container .breadcrumb {
  height: 0.64rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dddfe4;
}

.main .layout .container .breadcrumb span:first-child {
  font-size: 0.24rem;
  color: #333;
  height: 0.64rem;
  line-height: 0.64rem;
  border-bottom: 2px solid #781824;
}

.main .layout .container .breadcrumb span:last-child {
  font-size: 0.14rem;
  color: #333;
}

.main .layout .container .detail {
  padding-top: 0.4rem;
  padding-bottom: 0.8rem;
  position: relative;
  min-height: calc(100% - 0.64rem);
}

.main .layout .container .detail .title {
  font-size: 0.32rem;
  color: #333;
  text-align: center;
}

.main .layout .container .detail .subtitle {
  font-size: 0.16rem;
  color: #999;
  margin-top: 0.48rem;
  text-align: center;
}

.main .layout .container .detail .content {
  margin-top: 0.24rem;
  font-size: 0.22rem !important;
}

.main .layout .container .detail .content > img {
  height: auto;
}

.main .layout .container .detail .quick {
  position: absolute;
  bottom: 0.32rem;
  font-size: 0.2rem;
  color: #333;
}

.main .layout .container .detail .quick a {
  color: #781824;
}

.main .layout .container .columns {
  padding-bottom: 0.8rem;
}

.main .layout .container .columns .column-item {
  width: 100%;
  height: 0.64rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-left: 0.24rem;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.main .layout .container .columns .column-item::before {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.04rem;
  height: 0.04rem;
  border-radius: 50%;
  background-color: #781824;
}

.main .layout .container .columns .column-item span:first-child {
  font-size: 0.18rem;
  color: #666;
  flex-shrink: 0;
}

.main .layout .container .columns .column-item span:last-child {
  flex: 1;
  font-size: 0.16rem;
  color: #333;
  margin-left: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0.24rem;
}

.main .layout .container .teachers .block {
  margin-bottom: 0.36rem;
}

.main .layout .container .teachers .block .title {
  font-size: 0.2rem;
  color: #781824;
  padding: 0.24rem 0.12rem;
  position: relative;
}

.main .layout .container .teachers .block .title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.04rem;
  height: 0.2rem;
  background-color: #781824;
  border-radius: 0.04rem;
}

.main .layout .container .teachers .block .choice {
  font-size: 0.2rem;
  color: #333;
  padding: 0.24rem;
  padding-bottom: 0.12rem;
  margin-top: 0.12rem;
  background-color: rgba(120, 24, 36, 0.2);
}

.main .layout .container .teachers .block .choice .choice-item {
  display: flex;
  padding-bottom: 0.12rem;
}

.main .layout .container .teachers .block .choice .choice-item:last-child {
  padding-bottom: 0;
}

.main .layout .container .teachers .block .choice .choice-item span {
  color: #781824;
  font-weight: bold;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.main .layout .container .teachers .block .choice .choice-item > div {
  display: flex;
  flex-wrap: wrap;
}

.main .layout .container .teachers .block .choice .choice-item > div a {
  padding-right: 0.4rem;
  margin-bottom: 0.2rem;
}

.main .layout .container .teachers .block .choice .choice-item > div a.active, .main .layout .container .teachers .block .choice .choice-item > div a:hover {
  font-weight: bold;
  color: #781824;
}

.main .layout .container .teachers .block .lists {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 0.36rem;
}

.main .layout .container .teachers .block .lists .teacher-item {
  width: 45%;
  font-size: 0;
  display: flex;
  margin-bottom: 0.7rem;
}

.main .layout .container .teachers .block .lists .teacher-item img {
  width: 1.8rem;
  height: 2.4rem;
  object-fit: cover;
}

.main .layout .container .teachers .block .lists .teacher-item .infos {
  margin-left: 0.5rem;
  position: relative;
}

.main .layout .container .teachers .block .lists .teacher-item .infos .name {
  font-size: 0.24rem;
  color: #781824;
  margin-bottom: 0.2rem;
}

.main .layout .container .teachers .block .lists .teacher-item .infos .position {
  font-size: 0.16rem;
  color: #333;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #dddfe4;
}

.main .layout .container .teachers .block .lists .teacher-item .infos a {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1rem;
  background: #fff;
  color: #781824;
  border: 1px solid #781824;
  height: 0.3rem;
  line-height: 0.3rem;
  text-align: center;
  font-size: 0.14rem;
}

.main .layout .container .teachers .block .lists .teacher-item .infos a:hover {
  background-color: #781824;
  color: #fff;
}

.main .layout .container .teacher {
  padding: 0.55rem 0 0 0.7rem;
}

@media screen and (max-width: 751px) {
  .main .layout .container .teacher {
    padding: 0.24rem;
  }
}

.main .layout .container .teacher .info {
  display: flex;
}

@media screen and (max-width: 751px) {
  .main .layout .container .teacher .info {
    flex-direction: column;
  }
}

.main .layout .container .teacher .info .avatar {
  width: 2.2rem;
  height: 3.3rem;
  margin-right: 0.5rem;
  object-fit: cover;
}

@media screen and (max-width: 751px) {
  .main .layout .container .teacher .info .avatar {
    margin: 0.1rem auto;
  }
}

.main .layout .container .teacher .info .info-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main .layout .container .teacher .info .info-right .name {
  font-size: 0.42rem;
  color: #781824;
  margin-bottom: 0.2rem;
}

.main .layout .container .teacher .info .info-right .contact {
  background: #e9ffef;
  border-radius: 0.08rem;
  padding: 0.14rem 0;
  margin-bottom: 0.3rem;
}

.main .layout .container .teacher .info .info-right .info-line {
  font-size: 0.24rem;
  margin-bottom: 0.24rem;
  color: #333;
}

.main .layout .container .teacher .info .info-right .info-line:last-child {
  margin-bottom: 0;
}

.main .layout .container .teacher .block {
  padding: 0.3rem 0;
  border-bottom: 1px dashed #eee;
}

.main .layout .container .teacher .block .block-title {
  font-size: 0.24rem;
  color: #333;
  font-weight: bold;
  padding-left: 0.24rem;
  margin-bottom: 0.2rem;
  position: relative;
}

.main .layout .container .teacher .block .block-title::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border: 0.14rem solid transparent;
  border-left-color: #781824;
}

.main .layout .container .teacher .block .fields {
  font-size: 0.18rem;
}

.main .layout .container .teacher .edit {
  font-size: 0.18rem;
  color: #666;
  text-align: right;
  margin-top: 0.2rem;
}
