/* FAQ 页 — 深色导航式手风琴（参考 Dynadot 常见问题风格） */
.page-faq {
  background: #001533;
}

.page-faq .faq-main {
  position: relative;
  color: rgba(255, 255, 255, 0.94);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  min-height: 50vh;
  padding-bottom: 3rem;
}

.page-faq .faq-main__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  max-height: 42vh;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(165deg, #001a3d 0%, #001533 50%, #001533 100%);
}

.page-faq .faq-main__glow::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -18%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse 65% 55% at 35% 35%, rgba(56, 189, 248, 0.38) 0%, rgba(0, 21, 51, 0) 72%);
}

.page-faq .faq-hero {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2rem;
}

.page-faq .faq-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.page-faq .faq-hero__intro {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36em;
}

.page-faq .faq-accordion {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.page-faq .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-faq .faq-item:last-child {
  border-bottom: none;
}

.page-faq .faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  text-align: left;
}

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

.page-faq .faq-item summary:focus {
  outline: none;
}

.page-faq .faq-item summary:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.85);
  outline-offset: 4px;
  border-radius: 4px;
}

.page-faq .faq-item__q-text {
  flex: 1;
  min-width: 0;
}

.page-faq .faq-item__toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 400;
  color: #fff;
  margin-top: 0.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-item[open] .faq-item__toggle {
  transform: rotate(45deg);
  border-color: rgba(255, 255, 255, 0.95);
}

.page-faq .faq-item__a {
  padding: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.page-faq .faq-item__a p {
  margin: 0 0 0.75rem;
}

.page-faq .faq-item__a p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-item__a ul,
.page-faq .faq-item__a ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.35rem;
}

.page-faq .faq-item__a li {
  margin: 0.35rem 0;
}

.page-faq .faq-item__a a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.page-faq .faq-item__a a:hover {
  color: #bae6fd;
}

.page-faq .faq-item__a code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #e0f2fe;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

/* 与浅底页脚衔接 */
.page-faq .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
