/* 全站问答条目沿用 Trust 的单列、分隔线展示。 */
.ff-faq-list {
  width: 100%;
  max-width: 930px;
  margin-inline: auto;
}

/* 标题与问答列表使用同一居中阅读列。 */
.site-main :is(div, section):has(> .ff-faq-list) {
  max-width: 930px;
  margin-inline: auto;
}

.ff-faq-list .ff-faq-item {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--trust-border, var(--ff-line, #cbd5dc));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ff-faq-list .ff-faq-item > summary {
  position: relative;
  display: block;
  padding: 0 36px 0 0;
  color: var(--ff-ink, #102f42);
  font-size: var(--ds-text-lg);
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.ff-faq-list .ff-faq-item > summary::-webkit-details-marker { display: none; }
.ff-faq-list .ff-faq-item > summary::after {
  content: "";
  position: absolute;
  top: .5em;
  right: 8px;
  width: 9px;
  height: 9px;
  color: var(--ff-accent-ink, #9b5f21);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.ff-faq-list .ff-faq-item[open] > summary::after { transform: rotate(225deg); }
.ff-faq-list .ff-faq-item[open] > summary { color: var(--ff-brand, #102f42); }
.ff-faq-list .ff-faq-item > summary:focus-visible {
  border-radius: 2px;
}
.ff-faq-list .ff-faq-item > p {
  max-width: 850px;
  margin: 12px 0 0;
  padding: 0 22px;
  color: var(--trust-muted, var(--ff-muted, #526371));
  font-size: var(--ds-text-base);
  line-height: 1.7;
  font-weight: 400;
}

.ff-faq-result > .faq-page-result-topic {
  display: block;
  margin: 16px 0 0;
  color: var(--ff-accent-ink, #9b5f21);
  font-size: 13px;
  font-weight: 600;
}
.ff-faq-result > .ff-faq-item { padding-top: 8px; }
.ff-faq-hub__search { display: grid; gap: 10px; font-weight: 600; }
.ff-faq-hub__search input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--ff-line, #cbd5dc);
  border-radius: var(--ds-radius-control);
  background: #fff;
  color: var(--ff-ink, #102f42);
  font: 400 var(--ds-text-base)/1.5 var(--ds-font);
}
.ff-faq-hub__status { margin: 12px 0 20px; color: var(--ff-muted, #526371); }
.ff-faq-hub__topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.ff-faq-hub__group { scroll-margin-top: 100px; margin: 0 0 52px; }
.ff-faq-hub__group h3 { margin-bottom: 6px; }
.ff-faq-hub__group > p { margin: 0 0 12px; color: var(--ff-muted, #526371); }
.ff-faq-hub__pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.ff-faq-hub__pagination button {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--ff-line, #cbd5dc);
  border-radius: 6px;
  background: #fff;
  color: var(--ff-ink, #102f42);
  cursor: pointer;
}
.ff-faq-hub__pagination button:disabled { opacity: .45; cursor: default; }

@media (max-width: 600px) {
  .ff-faq-list .ff-faq-item { padding: 16px 0; }
  .ff-faq-list .ff-faq-item > summary { }
  .ff-faq-list .ff-faq-item > p { padding-left: 12px; padding-right: 0; font-size: var(--ds-text-base); font-weight: 400; }
}

/* FAQ reading width and equal-height cards; Bootstrap owns general layout. */
body.ff-site .faq-reading { max-width: 880px; margin-inline: auto; }
body.ff-site .faq-navigation-grid .ff-card { height: 100%; }

@media (min-width: 1920px) {
  body.ff-site .faq-navigation-section { padding-block: clamp(112px, 6vw, 136px); }
}

/* Shared FAQ: retain the approved content edges and original 1200px breakpoint. */
body.ff-site .site-main .ff-page-faq:has(.ff-faq-component--two-column) {
  box-sizing: border-box;
  width: min(100%, 1240px);
  max-width: none;
  margin-inline: auto;
}
/* A FAQ placed directly in a full-bleed Section also receives the standard
 * viewport side inset. A FAQ already inside a Container must NOT be inset again. */
body.ff-site .site-main section > .ff-page-faq:has(.ff-faq-component--two-column) {
  width: min(1240px, calc(100% - clamp(20px, 4vw, 48px) - clamp(20px, 4vw, 48px)));
}
/* Lift a narrow *heading + FAQ* reading wrapper as a unit, not other content. */
body.ff-site .site-main div:has(> .section-heading + .ff-page-faq > .ff-faq-component--two-column) {
  max-width: none;
}
body.ff-site .ff-faq-component--two-column {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
body.ff-site .ff-faq-component--two-column .ff-faq-list {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
/* The legacy reading selector also matches Bootstrap column wrappers; neutralize
 * it only inside the two-column shared component. */
body.ff-site .site-main .ff-faq-component--two-column > .ly-bs-row > .ly-bs-col-12 {
  max-width: none;
  margin-inline: 0;
}
:where(body.ff-site .ff-faq-component--two-column > .ly-bs-row) {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-inline: calc(-.5 * var(--bs-gutter-x));
}
:where(body.ff-site .ff-faq-component--two-column > .ly-bs-row > .ly-bs-col-12) {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 100%;
  padding-inline: calc(.5 * var(--bs-gutter-x));
}
@media (min-width: 1200px) {
  :where(body.ff-site .ff-faq-component--two-column > .ly-bs-row > .ly-bs-col-xl-6) {
    width: 50%;
  }
}

/* F01/F02: ordinary page, product and hub typography only.
 * Article body and sidebar FAQ retain their existing design and cascade.
 * Shared items own vertical padding; no wrapper-level duplication. */
body.ff-site:not(.single-post) .ff-faq-list .ff-faq-item > summary {
  font-size: var(--ds-text-base);
}
body.ff-site:not(.single-post) .ff-faq-list .ff-faq-item > p {
  font-size: var(--ds-text-base);
  line-height: 1.7;
  padding: 0 0 0 12px;
}

/* FAQ Hub search results are appended by JS (not through faq-list.php).
 * Give this existing dynamic list the same desktop/small-screen column policy.
 * This is a component-local presentation rule, not a new Section Grid. */
body.ff-site .ff-faq-hub__results > .ff-faq-list[data-faq-result-list] {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 24px;
}
body.ff-site .ff-faq-hub__results > .ff-faq-list[data-faq-result-list] > .ff-faq-search-column {
  min-width: 0;
  align-self: start;
}
@media (min-width: 1200px) {
  body.ff-site .ff-faq-hub__results > .ff-faq-list[data-faq-result-list] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FAQ 目录家族入口；不影响其他页面导航。 */


/* Keep independent columns in every disclosure state. Match only the
 * closed question height; the answer adds height to its own column. */
@media (min-width: 1200px) {
  body.ff-site:not(.single-post) .ff-faq-component--two-column .ff-faq-item,
  body.ff-site .ff-faq-hub__results .ff-faq-result > .ff-faq-item {
    padding-bottom: calc(20px + var(--faq-row-extra, 0px));
  }
  body.ff-site .ff-faq-hub__results .ff-faq-result {
    display: flow-root;
  }
}

/* FAQ-specific section and legacy markup styles (formerly unified.css).
 * Legacy declarations exclude shared FAQ items; article-specific CSS stays intact. */
.ff-site .ff-faq { margin-top: 32px; }
.ff-site .ff-faq > h2, .ff-site .ff-faq > h3 { margin-bottom: 24px; }
.ff-site .ff-faq details:where(:not(.ff-faq-item)) { border-bottom: 1px solid var(--ff-line); }
.ff-site .ff-faq details:first-of-type { border-top: 1px solid var(--ff-line); }
.ff-site .ff-faq summary:where(:not(.ff-faq-item > summary)) { padding: 20px 0; font-weight: 600; color: var(--ff-ink); }
.ff-site .ff-faq details:where(:not(.ff-faq-item)) p { padding: 0 0 24px; max-width: 75ch; color: var(--ff-muted); }
.ff-site .ff-faq details:where(:not(.ff-faq-item))[open] summary { color: var(--ff-accent-ink); }
.ff-site .buyer-questions { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--ff-line); }
.ff-site .buyer-questions > h2, .ff-site .buyer-questions > h3 { max-width: 50rem; margin: 0 0 20px; }
.ff-site .buyer-questions > details { border-bottom: 1px solid var(--ff-line); }
.ff-site .buyer-questions > details:first-of-type { border-top: 1px solid var(--ff-line); }
.ff-site .buyer-questions > details > summary { position: relative; padding: 16px 36px 16px 0; color: var(--ff-ink); font-weight: 700; list-style: none; }
.ff-site .buyer-questions > details > summary::-webkit-details-marker { display: none; }
.ff-site .buyer-questions > details > summary::after { content: "+"; position: absolute; top: .8rem; right: .25rem; color: var(--ff-accent-ink); font-size: var(--ds-text-xl); font-weight: 400; }
.ff-site .buyer-questions > details[open] > summary::after { content: "−"; }
.ff-site .buyer-questions > details > p { max-width: 51rem; padding: 0 0 16px; color: var(--ff-muted); }
.ff-site .buyer-questions > .ff-more-questions { margin-top: 12px; border: 0; }
.ff-site .buyer-questions > .ff-more-questions > summary { color: var(--ff-accent-ink); font-size: var(--ds-text-sm); }
.ff-site .buyer-questions .ff-more-questions__inner { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--ff-line); }
.ff-site .buyer-questions .ff-more-questions__inner details { border-bottom: 1px solid var(--ff-line); }
.ff-site .buyer-questions .ff-more-questions__inner details:first-of-type { border-top: 0; }
.ff-site .buyer-questions .ff-more-questions__inner summary { position: relative; padding: 12px 32px 12px 0; font-size: var(--ds-text-sm); }
.ff-site .buyer-questions .ff-more-questions__inner summary::-webkit-details-marker { display: none; }
.ff-site .buyer-questions .ff-more-questions__inner summary::after { content: "+"; position: absolute; top: .65rem; right: .25rem; color: var(--ff-accent-ink); font-size: var(--ds-text-lg); }
.ff-site .buyer-questions .ff-more-questions__inner details[open] summary::after { content: "−"; }
.ff-site .buyer-questions .ff-more-questions__inner p { padding: 0 0 12px; font-size: var(--ds-text-sm); }
.ff-site :where(.ff-faq,.buyer-questions) details:where(:not(.ff-faq-item))[open] > summary {
  color: var(--ff-brand);
}
.laeyo-qf-product .faq-list--columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.laeyo-qf-product .ff-faq details:where(:not(.ff-faq-item)) { padding: 16px 0; border-bottom: 1px solid var(--ff-line); }
.laeyo-qf-product .ff-faq summary:where(:not(.ff-faq-item > summary)) { cursor: pointer; font-weight: 600; }
.laeyo-qf-product .ff-faq p:where(:not(.ff-faq-item > p)) { margin-top: 12px; }
body.ff-site :is(.ff-faq,.buyer-questions) summary:where(:not(.ff-faq-item > summary)) { padding-block: 16px; font-size: var(--ds-text-lg); font-weight: 500; line-height: 1.5; }

body.ff-site:not(.single-post) .ff-faq .ff-faq-list .ff-faq-item[open] > summary { color: var(--ff-accent-ink); }

/* Hide the empty FAQ and any section whose only purpose is to display it. */
.ff-page-faq:has(.ff-page-faq-empty):not(:has(.ff-faq-list)),
section.ff-page-faq-section:has(.ff-page-faq-empty):not(:has(.ff-faq-list)),
section.ff-trust-section[id="buyer-questions"]:has(.ff-page-faq-empty):not(:has(.ff-faq-list)) {
    display: none;
}
