@font-face {
        font-family: "anniu";
        src: url("https://static.igem.wiki/teams/5828/ziti/hyzhuzizhiyuanj.ttf")
          format("woff");
        font-weight: normal;
        font-style: normal;
      }
input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.tabs {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;

  bottom: 0 2px 2px -1px rgba(0, 0, 0, 0.3);
}
.tab {
  position: relative;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
}
.tab-label {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-family: anniu;
  font-size: 1.3rem;
  color: #382b22;
  padding: 0.8em 1.5em;
  background: #fff0f0;
  border: 2px solid #d99282;
  border-radius: 0.75em;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: background 150ms cubic-bezier(0, 0, 0.58, 1),
    -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1),
    background 150ms cubic-bezier(0, 0, 0.58, 1),
    -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
}
.tab-label::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #eaab9d;
  border-radius: inherit;

  -webkit-transform: translate3d(0, 0.75em, -1em);
  transform: translate3d(0, 0.75em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1),
    -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
}

.tab-label:hover {
  background: #ffe9e9;
  -webkit-transform: translate(0, 0.25em);
  transform: translate(0, 0.25em);
}

.tab-label:hover::before {
  -webkit-transform: translate3d(0, 0.5em, -1em);
  transform: translate3d(0, 0.5em, -1em);
}

.tab-label:active {
  background: #ffe9e9;
  -webkit-transform: translate(0em, 0.75em);
  transform: translate(0em, 0.75em);
}

.tab-label:active::before {
  -webkit-transform: translate3d(0, 0, -1em);
  transform: translate3d(0, 0, -1em);
}
.tab-label::after {
  content: ">";
  width: 10px;
  height: 10px;
  text-align: center;
  transition: all 0.4s ease;
}
.tab-content {
  max-height: 0;
  padding: 0 10px;
  color: #000000;
  transition: all 0.4s ease;
  overflow: hidden; /* 隐藏内容 */
}

input:checked ~ .tab-content {
  max-height: 10000vh; /* 展开时，内容显示 */
  padding: 10px;
}

input:checked + .tab-label {
  background: #fff1ed;
}
input:checked + .tab-label::after {
  transform: rotate(90deg);
}

.tab-content p {
  text-align: justify;
}
.tab-label {
  position: relative;
  padding-left: 32px; /* 给左边留位置 */
  cursor: pointer;
}
