.materials-container {
  width: 100%;
  background-color: #f3f3f3;
  padding-bottom: 30px;
  padding-top: 30px;
}

.materials-content {
  width: 1200px;
  border-radius: 20px;
  background: #fff;
  margin: 0 auto 20px;
  padding: 20px 20px 0 20px;
}

.materials-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}
.materials-nav-item {
  position: relative;
  font-size: 16px;
  display: flex;
  padding: 10px 0;
}

.subject-name {
  width: 60px;
  height: 34px;
  border-radius: 34px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subject-item {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}
.subject-item-name {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  margin-bottom: 10px;
  height: 34px;
  border-radius: 34px;
  padding: 0 18px;
  cursor: pointer;
}
.subject-item-name-active {
  background: rgba(255, 138, 25, 0.2);
  color: #e87200;
}
.materials-content-items {
  position: relative;
  width: 1200px;
  border-radius: 20px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.materials-content-item {
  position: relative;
  width: 590px;
  height: 188px;
  background: #fff;
  border-radius: 20px;
  margin-left: 20px;
  padding: 24px;
  font-size: 16px;
}
.materials-content-item:nth-child(1) {
  position: absolute;
  margin-left: 0;
  top: 0;
  left: 0;
  height: 400px;
}
.materials-content-item:nth-child(2) {
  margin-bottom: 20px;
}
.materials-content-item-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.materials-content-item-name {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}
.materials-content-item-free {
  position: absolute;
  top: -2px;
  right: 30px;
  width: 56px;
  height: 52px;
}
.materials-content-item-list {
  font-size: 16px;
  display: flex;
  flex-direction: column;
}
.materials-content-item-list-item {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  width: 488px;
  height: 60px;
  padding: 0 24px;
  background: #f9fafb;
  border-radius: 10px;
}
.materials-content-item-desc-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.materials-content-item-desc {
  font-size: 16px;
  color: #999;
  width: 300px;
}
.materials-content-item:nth-child(1) .materials-content-item-name {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
}
.materials-content-item:nth-child(1) .materials-content-item-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 30px;
}
.materials-list {
  width: 1200px;
  border-radius: 20px;
  margin: 0 auto 20px;
}
.materials-list-title {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
.materials-list-items {
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.materials-list-item {
  position: relative;
  width: 590px;
  padding: 24px 24px 60px;
  font-size: 18px;
  background: #ffffff;
  border-radius: 20px;
  margin-bottom: 20px;
  margin-right: 20px;
}
.materials-list-item:nth-child(2n) {
  margin-right: 0;
}
.materials-list-item-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}
.materials-list-item-desc {
  font-size: 18px;
  color: #666;
}
.materials-list-item-btn {
  width: 92px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(153, 153, 153, 0.2);
  border-radius: 18px;
  font-size: 14px;
  color: #999999;
  position: absolute;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
}
.materials-list-item-btn:hover {
  background: rgba(255, 138, 25, 0.2);
  color: #e87200;
}
.qrcode-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qrcode-popup {
  position: relative;
  width: 590px;
  height: 640px;
  background-image: url("../images/bg-qrcode-popup.png");
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.qrcode-popup-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  padding-bottom: 20px;
  color: #ff8a19;
}
.qrcode-popup-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/bg-qrcode-box.png");
  background-repeat: no-repeat;
  background-position: center;
  width: 390px;
  height: 424px;
}
.qrcode-img {
  width: 240px;
  height: 240px;
}
.qrcode-popup-desc {
  font-weight: 500;
  font-size: 22px;
  color: #e87200;
  margin-top: -20px;
}
.qrcode-popup-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.qrcode-popup-close::before,
.qrcode-popup-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 3px;
  background: #ffb56d;
  border-radius: 2px;
  transform-origin: center;
}

.qrcode-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.qrcode-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.qrcode-popup-close:hover::before,
.qrcode-popup-close:hover::after {
  background: #ff8a19;
}

/* 备考资料详情 */
.materials-detail {
  width: 100%;
  min-height: 400px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
}
.materials-detail-name {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 20px;
}
.materials-detail-read-count {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #999999;
}
.icon-eye {
  width: 24px;
  margin-right: 10px;
}
.materials-detail-content {
  font-size: 18px;
  color: #333333;
  line-height: 32px;
  padding-top: 20px;
}
.materials-detail-questions {
  font-size: 18px;
  color: #333333;
  line-height: 32px;
  padding-top: 20px;
}
.materials-detail-questions-item{
  margin-bottom: 20px;
}
.materials-detail-questions-item-content{
  padding-left: 20px;
}
.materials-detail-more {
  font-size: 18px;
  color: #ff8a19;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}
.materials-detail-more:hover {
  color: #e87200;
}
