.forum-page {
  min-height: 70rem;
  padding-bottom: 10rem;
  background: #f5f5f5;
  font-family: "Microsoft YaHei", sans-serif;
}
.forum-inner {
  width: 140rem;
  margin: auto;
}
.forum-content {
  margin-top: 8rem;
}
.forum-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}
.forum-sort {
  display: flex;
  gap: 3rem;
}
.forum-sort button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font: 1.6rem "Microsoft YaHei";
  cursor: pointer;
}
.forum-sort button::after {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0 0 0.3rem 0.7rem;
  border-right: 0.1rem solid currentColor;
  border-bottom: 0.1rem solid currentColor;
  transform: rotate(45deg);
}
.forum-sort button.active {
  color: #00479d;
}
.forum-sort button.active::after {
  transform: rotate(225deg);
  margin-bottom: 0;
}
.forum-search {
  display: flex;
  height: 4rem;
  width: 50rem;
}
.forum-search input {
  min-width: 0;
  flex: 1;
  padding: 0 1.8rem;
  border: 0;
  border-radius: 2.1rem 0 0 2.1rem;
  font-size: 1.4rem;
}
.forum-search input::placeholder{
    color: #DCDFE6;
}

.forum-search button {
  flex: 0 0 5.5rem;
  border: 0;
  background: #00479d;
  color: #fff;
  cursor: pointer;
}
.forum-search-submit {
  position: relative;
  border-radius: 2.1rem;
}
.forum-search-submit::before {
  content: "";
  width: 1rem;
  height: 1rem;
  position: absolute;
  top: 1.35rem;
    left: 2rem;
  border: .12rem solid #fff;
  border-radius: 50%;
}
.forum-search-submit::after {
  content: "";
  width: .55rem;
  height: .12rem;
  position: absolute;
      top: 2.6rem;
    left: 2.8rem;
  background: #fff;
  transform: rotate(45deg);
}
.forum-search .forum-post-open {
 flex: 0 0 7rem;
  margin-left: 1.5rem;
  border-radius: 2.1rem;
  background: #00479d;
  color: #fff;
  font-size: 1.4rem;
}
.forum-card {
  margin-bottom: 3rem;
}
.forum-card__main {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4rem;
  background: #fff;
  border-radius: 0.8rem;
}
.forum-user {
  width: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 4rem;
  text-align: center;
  font-size: 1.4rem;
}
.forum-avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: #e8f1fc;
  color: #00479d;
  font-size: 2.2rem;
  line-height: 5.5rem;
  text-align: center;
}
.forum-card__body {
  flex: 1;
}
.forum-card__body h2 {
  margin: 0 0 1rem;
  color: #00479d;
  font-size: 1.8rem;
  font-weight: 500;
}
.forum-card__body p {
  margin: 0;
  color: #666;
  font-size: 1.4rem;
  line-height: 1.6;
}
.forum-card__meta {
  height: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 4rem;
  color: #999;
  font-size: 1.4rem;
}
.forum-card__meta span + span {
  color: #444;
}
.forum-toggle {
  width: 2rem;
  height: 2rem;
  padding: 0;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}
.forum-toggle::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  position: absolute;
  top: 0.4rem;
  left: 0.5rem;
  border-right: 0.15rem solid #111;
  border-bottom: 0.15rem solid #111;
  transform: rotate(45deg);
}
.forum-card.is-open .forum-toggle {
  transform: rotate(180deg);
}
.forum-tag {
  position: absolute;
  top: 0;
  right: 0;
  width: 11.4rem;
  height: 3rem;
  border-radius: 0 0 0 1.5rem;
  background: #00479d;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 3rem;
  text-align: center;
}
.forum-comments {
  height: 0;
  overflow: hidden;
  padding: 0 8.8rem;
  background: #fff;
  border-top: 0.1rem solid #00479d;
  box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.16);
  transition: 0.3s;
}
.forum-card.is-open .forum-comments {
  height: auto;
  padding: 2rem 8.8rem;
}
.forum-comments p {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 0.1rem solid #ededed;
  color: #555;
  font-size: 1.4rem;
}
.forum-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
}
.forum-modal.is-visible {
  display: block;
}
.forum-modal__dialog {
  position: relative;
  width: 68rem;
  margin: 15vh auto;
  padding: 3rem;
  border-radius: 1rem;
  background: #fff;
}
.forum-modal__dialog h2 {
  margin: 0 0 2rem;
  color: #00479d;
  font-size: 2.2rem;
}
.forum-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  border: 0;
  background: transparent;
  font-size: 2.8rem;
  cursor: pointer;
}
.forum-types {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.forum-types button {
  padding: 0.7rem 1.5rem;
  border: 0.1rem solid #00479d;
  background: #fff;
  color: #00479d;
  font-size: 1.4rem;
}
.forum-types button.active {
  background: #00479d;
  color: #fff;
}
.forum-modal input,
.forum-modal textarea {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border: 0.1rem solid #ddd;
  font: 1.4rem "Microsoft YaHei";
}
.forum-modal textarea {
  height: 18rem;
  resize: vertical;
}
.forum-submit {
  display: block;
  width: 12rem;
  height: 4rem;
  margin: auto;
  border: 0;
  border-radius: 2rem;
  background: #00479d;
  color: #fff;
  font-size: 1.6rem;
}
@media (max-width: 1024px) {
  .forum-inner {
    width: 100%;
  }
  .forum-content {
    margin-top: 0;
    padding: 3vw;
  }
  .forum-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 3vw;
    margin-bottom: 3vw;
  }
  .forum-search input {
    width: auto;
    flex: 1;
  }
  .forum-search {
    width: 100%;
  }
  .forum-card__main {
    padding: 3vw;
    min-width: 0;
  }
  .forum-user {
    margin-right: 3vw;
  }
  .forum-card__body {
    width: 18%;
    flex: none;
    min-width: 0;
  }
  .forum-card__body p {
    display: none;
  }
  .forum-card__meta {
    margin: 0 2vw;
    font-size: 1.2rem;
    min-width: 0;
  }
  .forum-card__meta span {
    white-space: nowrap;
  }
  .forum-comments,
  .forum-card.is-open .forum-comments {
    padding: 3vw;
  }
  .forum-modal__dialog {
    width: calc(100% - 6vw);
    margin: 10vh auto;
  }
}
