@charset "utf-8";
/* 黑马程序员 - 常见问题 FAQ */

body {
  background: #f9fbff;
}

/* Banner */
.qa-banner {
  height: 260px;
  background: url(../images/faq_banner.png) center center no-repeat;
  background-size: cover;
}
.qa-banner-con {
  width: 1200px;
  margin: 0 auto;
  padding-top: 67px;
  text-align: center;
}
.qa-banner-con h1 {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.qa-banner-con p {
  margin-top: 38px;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 2px;
  color: #fff;
}

/* 内容主体 */
.qa-main {
  width: 1200px;
  margin: 0 auto;
  padding-bottom: 76px;
}

/* 简介说明 */
.qa-intro {
  margin-top: 30px;
  padding: 25px 40px;
  background: #fff;
  border: 1px solid #ffe2e2;
  border-radius: 10px;
  box-sizing: border-box;
}
.qa-intro p {
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 1px;
  color: #333;
}
.qa-intro p.qa-gap {
  margin-top: 32px;
}
.qa-intro strong {
  font-weight: 700;
}

/* 分类锚点导航 */
html {
  scroll-behavior: smooth;
}
.qa-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 0;
  background: #f9fbff;
}
.qa-tab {
  display: block;
  position: relative;
  width: 150px;
  height: 45px;
  margin-left: 20px;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 16px;
  line-height: 43px;
  letter-spacing: 1px;
  text-align: center;
  color: #666;
  background: #fff;
  border: 1px solid #e6dcdc;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.1s;
}
.qa-tab:hover {
  color: #de2f0d;
  border-color: #de2f0d;
}
.qa-tab:active {
  transform: translateY(1px);
}
.qa-tabs .qa-tab:first-child {
  margin-left: 0;
}
.qa-tab.active {
  color: #fff;
  font-weight: 700;
  background: #de2f0d;
  border-color: #de2f0d;
}
.qa-tab.active:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-right: 2px solid #de2f0d;
  border-bottom: 2px solid #de2f0d;
  transform: rotate(45deg);
}

/* 问答列表 */
.qa-list {
  margin-top: 28px;
  padding: 60px 45px;
  background: #fff;
  border-radius: 10px;
  box-sizing: border-box;
}
.qa-panel {
  display: block;
  scroll-margin-top: 85px;
}
.qa-panel + .qa-panel {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #d8d8d8;
}
.qa-item + .qa-item {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #d8d8d8;
}

.qa-q {
  display: flex;
  align-items: center;
}
.qa-q .qa-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  background: url(../images/qa_icon.svg) center center no-repeat;
  background-size: 30px 30px;
}
.qa-q h3 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #333;
}
.qa-a {
  margin-top: 16px;
  padding-left: 40px;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 1px;
  color: #333;
}
.qa-a strong {
  font-weight: 700;
}
