/* ==========================================================================
   docs.css — 文档类区块：问答折叠、版本日志、源码引导行
   ========================================================================== */

/* ---------- 问答手风琴 ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 30px;
  text-align: left;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

/* 箭头用边框旋转，避免引入图标字体 */
.faq__q::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.22s;
}

.faq__item.is-open .faq__q::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.faq__a > div {
  overflow: hidden;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a p {
  padding: 0 30px 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- 版本日志 ---------- */

.changelog {
  max-height: 620px;
  overflow-y: auto;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.changelog__hint {
  font-size: 15px;
  color: var(--ink-3);
}

.changelog h3 {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.changelog h3:first-child {
  margin-top: 0;
}

.changelog h4 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
}

.changelog h4:first-child {
  margin-top: 0;
}

.changelog p {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.changelog ul {
  margin: 10px 0;
  padding-left: 20px;
  list-style: disc;
}

.changelog li {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.changelog blockquote {
  margin: 14px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-wash);
  font-size: 14px;
  line-height: 1.7;
  color: var(--brand-dark);
}

.changelog blockquote p {
  font-size: 14px;
  color: inherit;
}

.changelog a {
  color: var(--brand);
}

.changelog strong {
  color: var(--ink);
}

/* ---------- 源码引导行 ---------- */

.repo-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px var(--gutter) 56px;
}

.repo-line p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}


/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .faq__q {
    font-size: 16px;
    padding: 20px 22px;
  }

  .faq__a p {
    padding: 0 22px 22px;
  }

  .changelog {
    max-height: none;
    padding: 22px 20px;
  }

  .repo-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 40px;
  }
}
