/* ==========================================================================
   问答栏目样式 qa.css
   配色：深胡桃 #5C4030 / 古铜金 #A98A52 / 暖米白 #F7F4EF / 暖黑 #2B2620
   ========================================================================== */

/* 顶部 banner（与其他内页一致） */
.nbanner {
	height: 293px;
	text-align: center;
	position: relative;
	overflow: hidden;
	background: url('../images/nbanner.jpg') center center no-repeat;
	background-size: cover;
}
.nbanner span {
	color: #fff;
	display: block;
}
.nbanner span.size1 {
	font-size: 2.6rem;
	font-weight: bold;
}
.nbanner span.size2 {
	font-size: 3.8rem;
	text-transform: uppercase;
	line-height: 1;
	font-family: -webkit-pictograph;
}

/* 栏目介绍区 */
.qa-list { padding: 36px 0 60px; }
.qa-intro {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #D4C8B7;
}
.qa-h1 {
  font-size: 28px;
  font-weight: normal;
  color: #2B2620;
  margin-bottom: 12px;
}
.qa-sub {
  font-size: 14px;
  color: #6E6357;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
}
.qa-sub a { color: #A98A52; }

/* 问答项：手风琴折叠 */
.qa-item {
  background: #fff;
  border: 1px solid #ECE6DE;
  border-radius: 6px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.qa-item:hover {
  border-color: #D4C8B7;
  box-shadow: 0 4px 14px rgba(92, 64, 48, 0.06);
}
.qa-item.qa-open {
  border-color: #A98A52;
  box-shadow: 0 4px 18px rgba(92, 64, 48, 0.10);
}

/* 问题行 */
.qa-q {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}
.qa-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: #5C4030;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  margin-right: 18px;
}
.qa-ico-a { background: #A98A52; }
.qa-q h3 {
  flex: 1;
  font-size: 16px;
  font-weight: normal;
  color: #2B2620;
  line-height: 1.5;
  margin: 0;
  transition: color .25s ease;
}
.qa-q:hover h3 { color: #5C4030; }
.qa-toggle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  font-size: 22px;
  color: #A98A52;
  border: 1px solid #D4C8B7;
  border-radius: 50%;
  transition: all .25s ease;
}
.qa-open .qa-toggle {
  background: #A98A52;
  color: #fff;
  border-color: #A98A52;
  transform: rotate(0deg);
}

/* 答案区：默认折叠 */
.qa-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px 0 78px;
  transition: max-height .35s ease, padding .35s ease;
}
.qa-open .qa-a {
  max-height: 600px;
  padding: 8px 24px 24px 78px;
  border-top: 1px dashed #ECE6DE;
}
.qa-a-text {
  font-size: 14px;
  color: #6E6357;
  line-height: 1.85;
}
.qa-more {
  display: inline-block;
  margin-top: 14px;
  color: #A98A52;
  font-size: 13px;
  border-bottom: 1px solid #A98A52;
  padding-bottom: 1px;
  transition: color .25s ease, border-color .25s ease;
}
.qa-more:hover {
  color: #5C4030;
  border-color: #5C4030;
}

/* 热门角标 */
.qa-badge {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  color: #fff;
  background: #A98A52;
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 10px;
  vertical-align: middle;
  line-height: 1.6;
}
.qa-hot { border-color: #A98A52; }

/* 分类小标签 */
.qa-cat-tag {
  display: inline-block;
  margin-top: 12px;
  margin-right: 12px;
  font-size: 12px;
  color: #6E6357;
  background: #F7F4EF;
  border: 1px solid #E0D6C6;
  border-radius: 20px;
  padding: 2px 12px;
}

/* ==========================================================================
   问答详情页
   ========================================================================== */
.qa-detail { padding: 28px 0 60px; }
.qa-bread {
  font-size: 13px;
  color: #6E6357;
  padding: 12px 0 20px;
  border-bottom: 1px solid #ECE6DE;
  margin-bottom: 28px;
}
.qa-bread a { color: #6E6357; padding: 0 6px; }
.qa-bread a:hover { color: #5C4030; }
.qa-bread .cur { color: #2B2620; padding: 0 6px; }
.qa-bread span { color: #C9BBA9; }

.qa-article { margin-bottom: 36px; }

.qa-detail-q {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}
.qa-detail-q .qa-ico { margin-top: 4px; }
.qa-detail-q h1 {
  font-size: 24px;
  font-weight: normal;
  color: #2B2620;
  line-height: 1.5;
  margin: 0;
  padding: 4px 0;
}

.qa-detail-a {
  display: flex;
  align-items: flex-start;
  background: #F7F4EF;
  border-left: 3px solid #A98A52;
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
}
.qa-detail-a .qa-ico { margin-top: 2px; }
.qa-detail-content {
  flex: 1;
  font-size: 14px;
  color: #2B2620;
  line-height: 1.85;
}
.qa-detail-content p { margin: 0 0 12px; }
.qa-detail-content img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 4px; }

.qa-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid #ECE6DE;
  margin-top: 28px;
  font-size: 13px;
  color: #6E6357;
}
.qa-back a {
  color: #A98A52;
  border-bottom: 1px solid #A98A52;
  padding-bottom: 1px;
}
.qa-back a:hover { color: #5C4030; border-color: #5C4030; }

/* 相关问答 */
.qa-related {
  background: #F7F4EF;
  padding: 24px 28px;
  border-radius: 6px;
  margin-top: 28px;
}
.qa-related h4 {
  font-size: 15px;
  font-weight: normal;
  color: #5C4030;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #D4C8B7;
}
.qa-related ul { list-style: none; padding: 0; margin: 0; }
.qa-related li {
  padding: 8px 0;
  border-bottom: 1px dashed #ECE6DE;
}
.qa-related li:last-child { border-bottom: 0; }
.qa-related a {
  color: #2B2620;
  font-size: 14px;
  line-height: 1.6;
  display: block;
  transition: color .25s ease;
}
.qa-related a:hover { color: #A98A52; }

/* CTA 转化区 */
.qa-cta {
  text-align: center;
  padding: 32px 20px;
  margin-top: 36px;
  background: linear-gradient(135deg, #5C4030 0%, #4A3326 100%);
  border-radius: 6px;
}
.qa-cta p {
  color: #E8DCC8;
  font-size: 15px;
  margin: 0 0 16px;
}
.qa-cta-btn {
  display: inline-block;
  padding: 10px 36px;
  background: #A98A52;
  color: #fff;
  font-size: 14px;
  border-radius: 30px;
  transition: background .25s ease, transform .25s ease;
}
.qa-cta-btn:hover {
  background: #B89866;
  transform: translateY(-2px);
  color: #fff;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media screen and (max-width: 768px) {
  .qa-list, .qa-detail { padding: 20px 0 36px; }
  .qa-h1 { font-size: 22px; }
  .qa-sub { font-size: 13px; }

  .qa-q { padding: 16px 16px; }
  .qa-ico { flex: 0 0 30px; width: 30px; height: 30px; line-height: 30px; font-size: 14px; margin-right: 12px; }
  .qa-q h3 { font-size: 14px; }
  .qa-toggle { flex: 0 0 24px; width: 24px; height: 24px; line-height: 22px; font-size: 18px; }

  .qa-a { padding: 0 16px 0 58px; }
  .qa-open .qa-a { padding: 8px 16px 18px 58px; }
  .qa-a-text { font-size: 13px; }

  .qa-detail-q h1 { font-size: 19px; }
  .qa-detail-a { padding: 18px 16px; }
  .qa-detail-content { font-size: 13px; }
  .qa-detail-meta { flex-direction: column; align-items: flex-start; gap: 8px; }

  .qa-related { padding: 18px 16px; }
  .qa-cta { padding: 24px 16px; }
}

/* 移动端折叠菜单兼容 */
@media screen and (max-width: 40em) {
  .sect_qa .m-ins-navbox .subbox { display: none; }
  .sect_qa .m-ins-navbox.active .subbox { display: block; }
}
