h1 {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

h3 {
  margin: 0;
}

.p-color {
  color: var(--primary-color);
}

.bold {
  font-weight: bold;
}

.red {
  color: red;
}

.blue {
  color: blue;
}

.recommend-img {
  text-align: center;
  margin-top: 2rem;
}

.banner {
  position: relative;
}

.banner-bg {
  width: 100%;
}

.banner-bg img {
  width: 100%;
}

h1 span {
  /* background-image: url('../images/title-bg.png');
  background-size: 100% 100%; */
  display: inline-block;
  /* min-width: 320px; */
  line-height: 1.6;
  font-size: 2rem;
  /* color: #f7ecc2; */
  font-weight: 700;
}

.table-head {
  color: var(--white);
  font-weight: bold;
  font-size: 2.2rem;
  background: var(--primary-color);
}

.table-head th {
  line-height: 1.5;
}

em {
  font-weight: bold;
  font-style: normal;
}

table {
  line-height: 1.5;
  border-left: 1px solid var(--table-border);
  border-top: 1px solid var(--table-border);
}

table tr td,
table tr th {
  border-right: 1px solid var(--table-border);
  border-bottom: 1px solid var(--table-border);
}

.course-head {
  font-size: 1.5rem;
  /* line-height: 2; */
  display: flex;
  justify-content: space-between;
  text-align: center;
  flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  margin-bottom: 1em;
}

#course1 {
  margin-bottom: 0;
}

#course1 > div {
  width: calc(90% / 3);
  margin-bottom: 1rem;
}

.course-head#course1 > div.active::before {
  visibility: hidden;
}

#course2 > div {
  width: 30%;
}

.course-head > div {
  cursor: pointer;
  background-color: #ffebe7;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0.2em 0;
}

.course-head > div.active {
  background-color: var(--primary-color);
  color: var(--white);
  position: relative;
}

.course-head > div.active::before {
  --width: 0.5em;
  position: absolute;
  bottom: calc(var(--width) * -1);
  left: calc(50% - var(--width));
  content: '';
  border-right: var(--width) solid var(--primary-color);
  border-bottom: var(--width) solid var(--primary-color);
  border-top: var(--width) solid transparent;
  border-left: var(--width) solid transparent;
  transform: rotate(45deg);
}

.course th {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  margin-top: 0.3rem;
  background-color: var(--primary-color);
  color: var(--white);
}

.course td {
  padding: 1rem 0.5rem;
}

.course-date td {
  padding: 0.5rem;
}

.course-sub {
  font-size: 1rem;
}

.course a.btn {
  line-height: 2;
  text-align: center;
  font-weight: bold;
  color: var(--white);
  background-color: var(--primary-color);
  line-height: 2;
  display: inline-block;
  border-radius: 1rem;
  padding: 0 1rem;
  margin-top: 0.3rem;
}

.qrcode-wrap {
  display: inline-block;
  max-width: calc(100% - 100px);
}

.course .qrcode {
  display: inline-block;
  margin-left: 1em;
  text-align: center;
}

.course .qrcode img {
  width: 6rem;
}

.emphasis ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.emphasis ul li {
  width: calc(25% - 2rem);
  line-height: 3.5;
  text-align: center;
  color: var(--primary-color);
  font-weight: bold;
  background: url(../images/bg-2.png) center no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
  margin: 1rem;
}

.emphasis ul li.active {
  background-image: url(../images/bg-1.png);
  color: #ffe7c9;
}

.emphasis-detail {
  border: 3px solid var(--primary-color);
  padding: 2rem;
  display: none;
  line-height: 2;
  margin-top: 1rem;
  text-align: left;
}

#strength {
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  background-color: var(--white);
  line-height: 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.2);
}

#strength > div {
  width: 33.3333%;
  box-sizing: border-box;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 5rem;
  height: auto;
}

.strength-title {
  position: absolute;
  top: 1.8rem;
  width: 100%;
  left: 0;
  line-height: 2em;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
}

.strength-title + div {
  text-align: left;
}

#strength > div:nth-child(3),
#strength > div:nth-child(1),
#strength > div:nth-child(5) {
  background-color: rgba(255, 0, 0, 0.05);
}

.strength-title img {
  height: 1.5em;
  vertical-align: -0.35em;
  margin-right: 5px;
  font-size: inherit;
}

/* 师资 */
#teacher {
  position: relative;
}

#teacher .swiper-slide {
  color: var(--white);
  position: relative;
  height: 100%;
}

#teacher .swiper-slide > div {
  width: 87%;
  margin: auto;
  overflow: hidden;
  border-radius: 0.8em;
  position: relative;
}

#teacher .swiper-slide > div > div:first-child > img {
  width: 100%;
}

#teacher .swiper-slide > div:hover .teacher-info {
  display: block;
}

.teacher-info {
  display: none;
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 0.8em;
  background-color: rgba(87, 66, 64, 0.8);
  z-index: 2;
}

.teacher-title {
  margin-top: 0.5em;
  font-size: 1.5em;
}

.teacher-divider {
  border-top: 1px solid var(--white);
  margin: 0.5em 0;
}

.teacher-introduction {
  font-size: 0.9em;
  padding: 0 1em;
  text-align: left;
}

.stu-table {
  box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.2);
}

.stu-table-title {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.stu-table-title div {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 2;
}

.stu-table-title div:not(:last-child) {
  border-right: 1px solid var(--white);
}

.stu-table-title div:nth-child(1),
.stu-table-title div:nth-child(3) {
  width: 20%;
}

.stu-table-title div:nth-child(2),
.stu-table-title div:nth-child(4) {
  width: 30%;
}

.stu-table .swiper-slide {
  width: 50%;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.6);
  line-height: 3rem;
  transition-timing-function: linear;
  box-sizing: border-box;
}

.stu-table .swiper-slide div:nth-child(1) {
  display: inline-block;
  width: 40%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stu-table .swiper-slide div:nth-child(2) {
  display: inline-block;
  width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stu-extra {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.stu-extra a {
  display: inline-block;
  font-size: 1.2rem;
  border: 2px solid var(--primary-color);
  background-color: #ffebe7;
  color: var(--primary-color);
  font-weight: bold;
  padding: 0.8rem 3rem;
  border-radius: 0.5rem;
  text-align: center;
}

/* 教学风采 */

.pics-items {
  --margin: 2rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--margin);
  margin-right: var(--margin);
}

.pics-items img {
  display: block;
  margin-left: var(--margin);
  width: calc(25% - var(--margin));
}

.pics-items img:nth-child(n + 5) {
  margin-top: var(--margin);
}

.contact {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: space-around;
  box-sizing: border-box;
  text-align: center;
  color: var(--white);
  line-height: 2;
}

.contact img {
  width: 10rem;
}

.t1 {
  position: relative;
}

.t1 img {
  max-width: 90%;
  z-index: 2;
  position: relative;
}

.swiper-free-mode > .swiper-wrapper {
  transition-timing-function: linear;
}

.qrcode-block {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  font-weight: bold;
}

.qrcode-block > div {
  max-width: 8rem;
  margin: 0 2rem;
}

.history {
  display: flex;
  justify-content: space-between;
}

.history a {
  width: 18%;
  display: inline-block;
  box-sizing: border-box;
  font-size: 1.2rem;
  border: 2px solid var(--primary-color);
  background-color: #ffebe7;
  color: var(--primary-color);
  font-weight: bold;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

#department-category {
  height: 120px;
  display: flex;
  text-align: center;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  justify-content: center;
  position: relative;
  align-items: center;
}

#department-category > .item {
  flex: 1;
  height: 100%;
  /* width: calc((100% / 10) - 0.7rem); */
  margin: 0 auto;
  position: relative;
  /* padding: 0.7rem 0; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#department-category > div span {
  vertical-align: middle;
}

.line {
  width: 2px !important;
  height: 80px;
  background-color: var(--primary-color);
  /* margin-top: 10px !important; */
}

/* #department-category > div:not(:last-child)::after {
	position: absolute;
	content: '';
	height: 70%;
	right: -6px;
	top: 15%;
	width: 2px;
	background-color: var(--primary-color);
} */
#department-category img {
  display: block;
  margin: 0 auto;
  width: 3rem;
  margin-bottom: 0.4rem;
}

#department-category > div.active::before {
  position: absolute;
  content: '';
  bottom: 0;
  width: 80%;
  left: 10%;
  height: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background-color: var(--primary-color);
}

.department-info {
  background-color: var(--white);
  border-radius: 1.2rem;
  box-shadow: 0 0 0.8rem rgba(0, 0, 0, 0.2);
  margin-top: 1em;
  position: relative;
  display: none;
  line-height: 1.8;
  text-align: left;
}

.department-info > div {
  padding: 1.875rem;
  position: relative;
}

.department-info h3 {
  margin: 0.5em;
}

.department-info p {
  margin: 0.2em;
  text-indent: 2em;
}

.department-info::before {
  content: '';
  position: absolute;
  top: -0.6rem;
  width: 1.2rem;
  height: 1.2rem;
  box-shadow: -0.2rem -0.2rem 0.4rem rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  transform: rotate(45deg);
}

.department-info .department-info-close {
  display: none;
}

.department-info::before {
  left: var(--left);
}

/* .department-info:nth-child(2)::before {
	left: 18.1%;
}
.department-info:nth-child(3)::before {
	left: 30.5%;
}
.department-info:nth-child(4)::before {
	left: 43%;
}
.department-info:nth-child(5)::before {
	left: 55.5%;
}
.department-info:nth-child(6)::before {
	left: 67.9%;
}
.department-info:nth-child(7)::before {
	left: 80.4%;
}
.department-info:nth-child(8)::before {
	left: 92.8%;
} */
.btnRow {
  display: flex;
  justify-content: center;
}

.btn3 {
  margin: 0 20px 15px;
  line-height: 2;
  text-align: center;
  font-weight: bold;
  color: var(--white);
  /* background-color: #eee; */
  line-height: 2;
  display: inline-block;
  border-radius: 3rem;
  padding: 0 1rem;
  cursor: pointer;
  width: 22%;
  height: 50px;
  line-height: 50px;
  color: #000;
  border: 2px solid firebrick;
  font-size: 20px;
}

.pink {
  background-color: firebrick;
  color: white;
  position: relative;
}

.classTable {
  background-color: var(--white);
  border-radius: 20px;
  padding: 1.875rem;
  margin-top: 1em;
}

.pink::before {
  content: '';
  position: absolute;
  width: 20px;
  bottom: -11px;
  left: calc(50% - 10px);
  height: 20px;
  background-color: firebrick;
  transform: rotate(45deg);
}

.image-preview {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000001;
  visibility: hidden;
}

.previewed-image {
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
