/* ==========================================================================
   V2Ray测评 — faq.css
   FAQ 页面专属样式
   ========================================================================== */

/* 页面标题区 */
.faq-hero {
  padding: 72px 0 44px;
  background: var(--bg);
}

.faq-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.faq-hero h1 {
  margin-bottom: 16px;
}

.faq-hero__desc {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.faq-hero .toc {
  justify-content: center;
  margin: 0 auto;
  max-width: max-content;
}

/* 分类区块 */
.faq-section {
  padding: 56px 0;
}

.faq-section + .faq-section {
  border-top: 1px solid var(--border);
}

.faq-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.faq-section__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.faq-section__cat--basics {
  background: var(--tint-honey);
  color: var(--ink);
}

.faq-section__cat--setup {
  background: var(--tint-mint);
  color: var(--success);
}

.faq-section__cat--usage {
  background: var(--tint-sky);
  color: var(--text);
}

.faq-section__cat--troubleshooting {
  background: var(--tint-lilac);
  color: var(--text);
}

.faq-section__head h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
}

/* FAQ 列表 */
.faq-list {
  max-width: 860px;
}

/* Details 折叠项适配 */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  min-height: 56px;
  transition: background-color 0.12s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--bg-panel2);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.faq-item__q-text {
  flex: 1;
  text-align: left;
}

/* 底部帮助区 */
.faq-help {
  padding: 64px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.faq-help__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.faq-help__card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.faq-help__card p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 480px;
}

.faq-help__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .faq-hero {
    padding: 48px 0 32px;
  }

  .faq-section {
    padding: 40px 0;
  }

  .faq-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .faq-help {
    padding: 40px 0;
  }

  .faq-help__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-help__actions {
    width: 100%;
    flex-direction: column;
  }

  .faq-help__actions .btn {
    width: 100%;
  }
}