@charset "utf-8";
/* 黑马程序员 - 常见问题 FAQ（移动端） */

.qa-page {
  padding-top: 1.2rem;
  padding-bottom: 0.38rem;
  background: #fff;
}

/* Banner */
.qa-banner {
  width: 6.53rem;
  height: 2.82rem;
  margin: 0 auto;
  padding-top: 0.78rem;
  box-sizing: border-box;
  border-radius: 0.29rem;
  background: url(../images/faq_banner.png) center center no-repeat;
  background-size: cover;
  text-align: center;
}
.qa-banner h1 {
  font-size: 0.46rem;
  line-height: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: #fff;
}
.qa-banner p {
  margin-top: 0.27rem;
  font-size: 0.23rem;
  line-height: 0.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.53);
}

/* 简介说明 */
.qa-intro {
  width: 6.53rem;
  margin: 0.38rem auto 0;
  padding: 0.38rem 0.47rem;
  box-sizing: border-box;
  background: #f9fbff;
  border: 1px solid #ffe2e2;
  border-radius: 0.19rem;
}
.qa-intro p {
  font-size: 0.21rem;
  line-height: 0.38rem;
  letter-spacing: 0.02rem;
  color: #333;
}
.qa-intro p + p {
  margin-top: 0.2rem;
}
.qa-intro strong {
  font-weight: 700;
}

/* 分类锚点导航 */
html {
  scroll-behavior: smooth;
}
.qa-tabs {
  position: sticky;
  top: 1rem;
  z-index: 9;
  display: flex;
  margin-top: 0.5rem;
  padding: 0.19rem 0.52rem 0.32rem;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.qa-tabs::-webkit-scrollbar {
  display: none;
}
.qa-tab {
  position: relative;
  flex: 0 0 1.81rem;
  height: 0.61rem;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 0.23rem;
  line-height: 0.59rem;
  letter-spacing: 0.02rem;
  text-align: center;
  white-space: nowrap;
  color: #666;
  background: #fff;
  border: 1px solid #e6dcdc;
  border-radius: 0.19rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.1s;
}
.qa-tab:active {
  transform: translateY(0.02rem);
}
.qa-tab + .qa-tab {
  margin-left: 0.19rem;
}
.qa-tab.active {
  color: #fff;
  font-weight: 700;
  background: #de2f0d;
  border-color: #ff8282;
}
.qa-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.29rem;
  width: 0.3rem;
  height: 0.17rem;
  margin-left: -0.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23DE2F0D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center center;
  background-size: 100% 100%;
}

/* 问答列表 */
.qa-list {
  padding: 0.55rem 0.57rem;
  background: #fff;
  border-radius: 0.19rem;
  box-sizing: border-box;
}
.qa-panel {
  display: block;
  scroll-margin-top: 2.3rem;
}
.qa-panel + .qa-panel {
  margin-top: 0.38rem;
  padding-top: 0.38rem;
  border-top: 1px solid #ecebeb;
}
.qa-item + .qa-item {
  margin-top: 0.38rem;
  padding-top: 0.38rem;
  border-top: 1px solid #ecebeb;
}

.qa-q {
  display: flex;
  align-items: center;
}
.qa-q .qa-icon {
  flex: 0 0 0.38rem;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.19rem;
  background: url(../images/qa_icon.svg) center center no-repeat;
  background-size: 100% 100%;
}
.qa-q h2 {
  flex: 1;
  font-size: 0.29rem;
  line-height: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: #333;
}
.qa-a {
  margin-top: 0.15rem;
  font-size: 0.23rem;
  line-height: 0.46rem;
  letter-spacing: 0.02rem;
  color: #333;
}
strong {
  font-weight: bolder;
  color: #333333;
}
