/* ========== FAQ 页面专属样式 ========== */
.page-faq {
  background: var(--clr-cream);
}

/* ---------- Hero 锚点区 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  background: var(--clr-primary);
  color: var(--clr-cream);
  padding: 118px 0 48px;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 280px;
  height: 280px;
  border: 24px solid rgba(212, 175, 55, 0.10);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-breadcrumb {
  position: relative;
  z-index: 1;
  color: rgba(245, 245, 240, 0.64);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.page-faq .faq-breadcrumb a {
  color: rgba(245, 245, 240, 0.82);
  text-decoration: none;
}

.page-faq .faq-breadcrumb a:hover {
  color: var(--clr-gold);
}

.page-faq .faq-breadcrumb-sep {
  margin: 0 10px;
  color: rgba(212, 175, 55, 0.72);
}

.page-faq .faq-hero-grid {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
}

.page-faq .faq-hero h1 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--clr-cream);
  margin: 0 0 16px;
  max-width: 680px;
  text-wrap: balance;
}

.page-faq .faq-title-divider {
  color: var(--clr-gold);
  font-weight: 300;
}

.page-faq .faq-hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.76);
  max-width: 560px;
  margin: 0;
}

.page-faq .faq-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.page-faq .faq-hero-meta-item {
  font-size: 13px;
  color: rgba(245, 245, 240, 0.62);
  border-left: 2px solid rgba(212, 175, 55, 0.60);
  padding-left: 12px;
  line-height: 1.4;
}

.page-faq .faq-hero-meta-item strong {
  font-family: var(--font-data);
  font-size: 22px;
  color: var(--clr-cream);
  margin-right: 2px;
  font-weight: 600;
}

.page-faq .faq-hero-side {
  display: none;
}

/* ---------- 主体双栏 ---------- */
.page-faq .faq-body {
  border-top: 3px solid var(--clr-gold);
  background: var(--clr-cream);
  background-image:
    linear-gradient(rgba(11, 61, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 46, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  padding: 52px 0 88px;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* ---------- 左侧索引 ---------- */
.page-faq .faq-sidebar-inner {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 61, 46, 0.10);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 12px 34px rgba(11, 61, 46, 0.06);
}

.page-faq .faq-sidebar-label {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-gray);
  margin: 0 0 14px;
}

.page-faq .faq-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 61, 46, 0.20) transparent;
}

.page-faq .faq-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17, 31, 27, 0.10);
  color: var(--clr-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.page-faq .faq-nav-link .faq-nav-num {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--clr-gold);
}

.page-faq .faq-nav-link:hover {
  border-color: var(--clr-gold);
}

.page-faq .faq-nav-link:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 2px;
}

.page-faq .faq-nav-link.is-active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-cream);
}

.page-faq .faq-nav-link.is-active .faq-nav-num {
  color: var(--clr-gold);
}

.page-faq .faq-sidebar-card {
  margin-top: 24px;
  background: var(--clr-ink);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-sidebar-card::before {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 76px;
  height: 76px;
  background: rgba(212, 175, 55, 0.16);
  transform: rotate(24deg);
}

.page-faq .faq-sidebar-card-title {
  font-family: var(--font-headline);
  font-size: 18px;
  color: var(--clr-cream);
  margin: 0 0 6px;
  position: relative;
}

.page-faq .faq-sidebar-card-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 245, 240, 0.66);
  margin: 0 0 16px;
  position: relative;
}

.page-faq .faq-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

.page-faq .faq-dark-link,
.page-faq .faq-solid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.page-faq .faq-dark-link {
  border: 1px solid rgba(245, 245, 240, 0.46);
  color: var(--clr-cream);
  background: transparent;
}

.page-faq .faq-dark-link:hover {
  background: rgba(245, 245, 240, 0.12);
  border-color: var(--clr-gold);
}

.page-faq .faq-solid-link {
  background: var(--clr-cta);
  color: var(--clr-ink);
  border: 1px solid var(--clr-cta);
}

.page-faq .faq-solid-link:hover {
  background: #e05a25;
  border-color: #e05a25;
}

.page-faq .faq-dark-link:focus-visible,
.page-faq .faq-solid-link:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 2px;
}

/* ---------- 右侧问答区 ---------- */
.page-faq .faq-section {
  margin-bottom: 76px;
}

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

.page-faq .faq-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 2px solid rgba(11, 61, 46, 0.12);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.page-faq .faq-section-head h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--clr-deep);
  margin: 0;
}

.page-faq .faq-section-index {
  font-family: var(--font-data);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
}

.page-faq .faq-section-img {
  display: block;
  width: min(100%, 500px);
  height: auto;
  margin: 0 0 24px;
  border: 1px solid rgba(11, 61, 46, 0.10);
  box-shadow: 0 10px 30px rgba(11, 61, 46, 0.10);
  background: var(--clr-muted);
}

/* ---------- 手风琴 ---------- */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-faq .faq-item {
  background: #fff;
  border: 1px solid rgba(17, 31, 27, 0.10);
  border-left: 3px solid transparent;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(11, 61, 46, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.page-faq .faq-item[open] {
  border-left-color: var(--clr-gold);
  box-shadow: 0 8px 24px rgba(11, 61, 46, 0.09);
}

.page-faq .faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  padding: 18px 20px;
}

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

.page-faq .faq-item summary:hover .faq-q {
  color: var(--clr-cta);
}

.page-faq .faq-item summary:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: -2px;
  border-radius: 6px;
}

.page-faq .faq-q {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--clr-deep);
  transition: color 180ms ease;
}

.page-faq .faq-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--clr-gold);
  border-radius: 3px;
  position: relative;
  background: #fff;
}

.page-faq .faq-icon::before,
.page-faq .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--clr-primary);
  border-radius: 1px;
  transition: transform 180ms ease;
}

.page-faq .faq-icon::before {
  left: 4px;
  right: 4px;
  top: 8px;
  height: 2px;
}

.page-faq .faq-icon::after {
  top: 4px;
  bottom: 4px;
  left: 8px;
  width: 2px;
}

.page-faq .faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}

.page-faq .faq-a {
  padding: 4px 20px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--clr-gray);
}

.page-faq .faq-a p {
  margin: 0;
}

.page-faq .faq-a a {
  color: var(--clr-primary);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-faq .faq-a a:hover {
  color: var(--clr-cta);
}

.page-faq .faq-a a:focus-visible {
  outline: 2px solid var(--clr-cta);
  outline-offset: 2px;
}

.page-faq .faq-num {
  color: var(--clr-deep);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---------- 分组底部提示条 ---------- */
.page-faq .faq-section-note {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--clr-muted);
  border-left: 4px solid var(--clr-gold);
  padding: 18px 22px;
  border-radius: 6px;
}

.page-faq .faq-section-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--clr-deep);
}

.page-faq .faq-section-note--dark {
  background: var(--clr-primary);
  border-left-color: var(--clr-cta);
  color: var(--clr-cream);
}

.page-faq .faq-section-note--dark p {
  color: rgba(245, 245, 240, 0.80);
}

.page-faq .faq-section-note--dark a {
  color: var(--clr-gold);
  font-weight: 600;
}

/* ---------- 桌面端适配 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 148px 0 76px;
  }

  .page-faq .faq-hero-desc {
    font-size: 16px;
  }

  .page-faq .faq-hero-side {
    display: block;
    position: absolute;
    right: -6px;
    bottom: 18px;
    width: 250px;
    height: 180px;
  }

  .page-faq .faq-hero-badge {
    position: absolute;
    right: 36px;
    top: 0;
    width: 64px;
    height: 64px;
    background: var(--clr-gold);
    color: var(--clr-primary);
    display: grid;
    place-items: center;
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    transform: rotate(8deg);
    box-shadow: 10px 10px 0 rgba(3, 9, 7, 0.28);
  }

  .page-faq .faq-hero-alias {
    position: absolute;
    right: -4px;
    bottom: -8px;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 150px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(212, 175, 55, 0.42);
  }

  .page-faq .faq-hero-slash {
    position: absolute;
    right: 26px;
    bottom: 44px;
    width: 180px;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-gold), rgba(212, 175, 55, 0));
    transform: rotate(-7deg);
  }

  .page-faq .faq-layout {
    grid-template-columns: 280px 1fr;
    gap: 52px;
    align-items: start;
  }

  .page-faq .faq-sidebar-inner {
    position: sticky;
    top: 110px;
    padding: 26px 22px;
  }

  .page-faq .faq-nav {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    gap: 8px;
    padding-bottom: 0;
  }

  .page-faq .faq-nav-link {
    justify-content: flex-start;
    white-space: normal;
    width: 100%;
  }

  .page-faq .faq-sidebar-actions {
    flex-direction: column;
  }

  .page-faq .faq-sidebar-actions .faq-dark-link,
  .page-faq .faq-sidebar-actions .faq-solid-link {
    width: 100%;
  }
}
