/* FAQ */
.page-banner {
  background-image: url("../images/banner/banner-faq.jpg");
}

.faq-page {
  padding: 0.8rem 0;
  background: #f8fafc;
}

.faq-page > .container {
  width: calc(100% - 3.6rem);
  max-width: 16.44rem;
  margin: 0 auto;
}

.faq-page .sec-head-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  margin: 0 0 0.45rem;
}

.faq-page .sec-head-left .sec-title {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.3rem;
  line-height: 0.32rem;
  color: #1e2538;
}

.faq-page .sec-head-left .sec-rail {
  flex: none;
  width: 100%;
  height: 0;
  background: none;
  border-bottom: 1px solid #cfcfcf;
}

.faq-page .agent-layout {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.faq-page .agent-layout .sidebar {
  width: 3.09rem;
  height: 8.4rem;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0.08rem 0.08rem 0 0;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.faq-page .agent-layout .sidebar a {
  position: relative;
  width: 100%;
  height: 1.2rem;
  padding: 0 0.16rem 0 0.4rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.22rem;
  font-style: normal;
  color: #1e2538;
  text-align: left;
  text-transform: none;
  background: transparent;
  border-bottom: none;
}

.faq-page .agent-layout .sidebar a:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.27rem;
  height: 1px;
  background: #eef0f4;
  transform: translateX(-50%);
}

.faq-page .agent-layout .sidebar a:hover,
.faq-page .agent-layout .sidebar a.is-active {
  color: #dc2626;
  background: transparent;
}

.faq-page .layout-side-main {
  width: 12.04rem;
  max-width: 12.04rem;
  height: 12.94rem;
  flex: none;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.21rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 4px 0 rgba(141, 155, 185, 0.25);
  border-radius: 0.08rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.faq-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  align-content: start;
}

.faq-page .faq-item {
  margin-bottom: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.08rem;
  overflow: hidden;
}

.faq-page .faq-item.is-open {
  border-color: #e2e8f0;
}

.faq-page .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.22rem 0.28rem;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-size: 0.24rem;
  font-style: normal;
  line-height: 1.4;
  color: #1e2538;
  text-align: left;
  text-transform: none;
  background: #fff;
  border: none;
  cursor: pointer;
}

.faq-page .faq-q::after {
  content: "";
  width: 0.1rem;
  height: 0.1rem;
  margin-left: 0.16rem;
  flex-shrink: 0;
  box-sizing: border-box;
  border-right: 2px solid #9ba6bc;
  border-bottom: 2px solid #9ba6bc;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq-page .faq-item.is-open .faq-q::after {
  transform: rotate(-135deg);
  margin-top: 0.06rem;
}

.faq-page .faq-a {
  display: none;
  padding: 0.2rem 0.28rem 0.24rem;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 0.24rem;
  font-style: normal;
  line-height: 1.5;
  color: #1e2538;
  text-align: left;
  text-transform: none;
  background: #f6f6f6;
}

.faq-page .faq-item.is-open .faq-a {
  display: block;
}

.faq-page .pagination {
  margin-top: auto;
  margin-bottom: 0.64rem;
  padding-top: 0.24rem;
  justify-content: flex-start;
  gap: 0.12rem;
  font-size: 0.16rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-page .pagination a,
.faq-page .pagination span,
.faq-page .pagination li a {
  width: 0.6rem;
  min-width: 0.6rem;
  height: 0.6rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0.08rem;
  border: 1px solid #e2e8f0;
  font-size: 0.16rem;
  color: #1e2538;
}

.faq-page .pagination a:hover,
.faq-page .pagination li a:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff;
}

.faq-page .pagination a.is-active,
.faq-page .pagination .is-active,
.faq-page .pagination .current,
.faq-page .pagination span.current,
.faq-page .pagination li.active a,
.faq-page .pagination li.active span {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #fff;
}

.faq-page .pagination .page-prev,
.faq-page .pagination .page-next,
.faq-page .pagination > a:first-child,
.faq-page .pagination > a:last-child,
.faq-page .pagination > li:first-child > a,
.faq-page .pagination > li:first-child > span.disabled,
.faq-page .pagination > li:last-child > a,
.faq-page .pagination > li:last-child > span.disabled {
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0;
  overflow: hidden;
}

.faq-page .pagination .page-prev::before,
.faq-page .pagination .page-next::before,
.faq-page .pagination > a:first-child::before,
.faq-page .pagination > a:last-child::before,
.faq-page .pagination > li:first-child > a::before,
.faq-page .pagination > li:first-child > span.disabled::before,
.faq-page .pagination > li:last-child > a::before,
.faq-page .pagination > li:last-child > span.disabled::before {
  content: "";
  width: 0.12rem;
  height: 0.12rem;
  box-sizing: border-box;
  border-top: 2px solid #9ba6bc;
  border-right: 2px solid #9ba6bc;
}

.faq-page .pagination .page-prev::before,
.faq-page .pagination > a:first-child::before,
.faq-page .pagination > li:first-child > a::before,
.faq-page .pagination > li:first-child > span.disabled::before {
  transform: rotate(-135deg);
}

.faq-page .pagination .page-next::before,
.faq-page .pagination > a:last-child::before,
.faq-page .pagination > li:last-child > a::before,
.faq-page .pagination > li:last-child > span.disabled::before {
  transform: rotate(45deg);
}

.faq-page .pagination .page-prev:hover::before,
.faq-page .pagination .page-next:hover::before,
.faq-page .pagination > a:first-child:hover::before,
.faq-page .pagination > a:last-child:hover::before,
.faq-page .pagination > li:first-child > a:hover::before,
.faq-page .pagination > li:last-child > a:hover::before {
  border-color: #dc2626;
}

.faq-page .pagination .current,
.faq-page .pagination span.current {
  font-size: 0.16rem !important;
  line-height: 1 !important;
  color: #fff !important;
}

@media (max-width: 900px) {
  .faq-page > .container {
    width: calc(100% - 0.48rem);
    max-width: none;
    overflow: visible;
  }

  .faq-page {
    padding: 0.48rem 0 0.64rem;
  }

  .faq-page .sec-head-left .sec-title {
    font-size: 0.36rem;
    line-height: 1.3;
  }

  .faq-page .agent-layout {
    flex-direction: column;
    gap: 0.24rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .faq-page .agent-layout .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    overflow: visible !important;
    padding: 0.16rem !important;
    gap: 0.12rem !important;
    box-sizing: border-box;
    border-radius: 0.08rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .faq-page .agent-layout .sidebar a {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0.56rem;
    white-space: nowrap;
    padding: 0.12rem 0.2rem !important;
    font-size: 0.22rem !important;
    line-height: 1.3;
    border-radius: 0.04rem;
    background: #f5f7fa;
    box-sizing: border-box;
  }

  .faq-page .agent-layout .sidebar a.is-active {
    color: #fff !important;
    background: #dc2626 !important;
  }

  .faq-page .agent-layout .sidebar a:not(:last-child)::after {
    display: none !important;
  }

  .faq-page .layout-side-main {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
    padding: 0.2rem !important;
    overflow: visible !important;
    display: block !important;
  }

  .faq-page .faq-list {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    gap: 0.14rem;
  }

  .faq-page .faq-q {
    font-size: 0.26rem;
    line-height: 1.4;
    padding: 0.24rem 0.2rem;
    align-items: flex-start;
  }

  .faq-page .faq-q::after {
    margin-top: 0.1rem;
  }

  .faq-page .faq-a {
    font-size: 0.22rem;
    line-height: 1.55;
    padding: 0.2rem;
    word-break: break-word;
  }

  .faq-page .pagination {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    margin: 0.28rem 0 0.08rem !important;
    padding-top: 0.16rem !important;
    height: auto !important;
    overflow: visible !important;
  }

  .faq-page .pagination a,
  .faq-page .pagination span,
  .faq-page .pagination li a,
  .faq-page .pagination li span {
    width: 0.56rem !important;
    min-width: 0.56rem !important;
    height: 0.56rem !important;
    font-size: 0.2rem !important;
    white-space: nowrap;
  }

  .faq-page .pagination .current,
  .faq-page .pagination span.current {
    font-size: 0.2rem !important;
    color: #fff !important;
    background: #dc2626 !important;
    border-color: #dc2626 !important;
  }
}
