/* ============================================
   Page FAQ — 帮助中心
   Scope: .page-faq
   ============================================ */
.page-faq {
  background: var(--c-rock);
  color: var(--c-ink);
}

/* ---------- Intro hero ---------- */
.page-faq__intro {
  background: linear-gradient(140deg, var(--c-deep) 0%, var(--c-darkblue) 65%, #1e3a66 100%);
  padding: 24px 0 36px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.page-faq__intro::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 210, 31, .06) 70%);
  pointer-events: none;
}

.page-faq__intro-inner {
  position: relative;
  z-index: 1;
}

.page-faq__intro-grid {
  display: grid;
  gap: 26px;
}

.page-faq__intro-text h1 {
  color: var(--c-cream);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.22;
  margin: 12px 0 12px;
  max-width: 720px;
}

.page-faq__intro-text .lede {
  color: rgba(249, 247, 242, .78);
  max-width: 660px;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.page-faq__intro-text .section-kicker {
  color: var(--c-yellow);
}

/* ---------- Quick index cards ---------- */
.page-faq__quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-faq__quick-card {
  display: block;
  padding: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  color: var(--c-cream);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.page-faq__quick-card:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--c-yellow);
  transform: translateY(-2px);
}

.page-faq__quick-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--c-yellow);
  margin-bottom: 6px;
  transition: color .2s ease;
}

.page-faq__quick-card:hover .page-faq__quick-num {
  color: var(--c-red);
}

.page-faq__quick-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-cream);
}

.page-faq__quick-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(249, 247, 242, .72);
  font-family: var(--font-display);
}

/* ---------- Dots ---------- */
.page-faq__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.page-faq__dot--warn {
  background: var(--c-yellow);
}

.page-faq__dot--red {
  background: var(--c-red);
}

.page-faq__dot--ok {
  background: var(--c-moss);
}

.page-faq__dot--clay {
  background: var(--c-clay);
}

/* ---------- Main .page-faq layout ---------- */
.page-faq__body {
  padding-top: 28px;
  padding-bottom: 48px;
}

.page-faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ---------- Sidebar index ---------- */
.page-faq__side {
  background: var(--c-deep);
  color: var(--c-cream);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}

.page-faq__side .section-kicker {
  color: var(--c-yellow);
}

.page-faq__side-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.page-faq__side-title p {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(249, 247, 242, .7);
  font-family: var(--font-body);
}

.page-faq__side-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq__side-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-cream);
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease;
}

.page-faq__side-link:hover {
  background: rgba(255, 210, 31, .1);
  border-color: rgba(255, 210, 31, .35);
}

.page-faq__side-num {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--c-yellow);
  font-size: 13px;
  line-height: 1;
}

.page-faq__side-cta {
  display: flex;
  justify-content: center;
}

/* ---------- Section heads ---------- */
.page-faq__section {
  margin-bottom: 44px;
  padding-top: 8px;
}

.page-faq__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(13, 31, 60, .08);
}

.page-faq__section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.page-faq__headnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  color: var(--c-deep);
  background: var(--c-yellow);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  flex-shrink: 0;
  margin-top: 2px;
}

.page-faq__section-titles {
  display: grid;
  gap: 2px;
}

.page-faq__section-titles .section-kicker {
  margin: 0;
}

.page-faq__section-titles h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.3;
  color: var(--c-deep);
  margin: 0;
}

/* ---------- FAQ cards (archive file cards) ---------- */
.page-faq__card-group {
  margin-bottom: 20px;
}

.page-faq__card {
  position: relative;
  background: var(--c-cream);
  border: 1px solid rgba(13, 31, 60, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.page-faq__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-clay);
  opacity: .85;
}

.page-faq__card[open]::before {
  background: var(--c-moss);
}

.page-faq__card:hover {
  border-color: rgba(178, 93, 63, .35);
  box-shadow: var(--shadow-raised);
}

.page-faq__card summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  color: var(--c-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
  position: relative;
  margin: 0;
}

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

.page-faq__card summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--c-moss);
  transition: color .2s ease, transform .2s ease;
}

.page-faq__card[open] summary::after {
  content: "–";
  color: var(--c-clay);
}

.page-faq__card-q {
  flex: 1;
}

.page-faq__card-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
  border: 2px solid var(--c-cream);
  box-shadow: 0 0 0 1px rgba(13, 31, 60, .12);
}

.page-faq__card-status--ok {
  background: var(--c-moss);
}

.page-faq__card-status--warn {
  background: var(--c-yellow);
}

.page-faq__card-status--red {
  background: var(--c-red);
}

.page-faq__card-body {
  padding: 4px 20px 20px 48px;
  border-top: 1px dashed rgba(13, 31, 60, .08);
}

.page-faq__card-body p {
  margin: 10px 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
}

.page-faq__card-body a {
  color: var(--c-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(178, 93, 63, .5);
  transition: text-decoration-color .2s ease;
}

.page-faq__card-body a:hover {
  text-decoration-color: var(--c-clay);
}

/* ---------- Callout / note blocks ---------- */
.page-faq__callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 10px;
  padding: 12px 14px;
  background: rgba(255, 210, 31, .14);
  border: 1px solid rgba(255, 210, 31, .4);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

.page-faq__callout p {
  margin: 0 !important;
}

.page-faq__callout-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-clay);
  color: var(--c-cream);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Steps A/B/C ---------- */
.page-faq__steps {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-faq__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(13, 31, 60, .03);
  border-left: 3px solid var(--c-yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

.page-faq__step-num {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--c-clay);
  font-size: 14px;
  line-height: 1.6;
  min-width: 18px;
}

/* ---------- Ordered steps 01-05 ---------- */
.page-faq__ordered {
  counter-reset: faq-step;
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-faq__ordered li {
  counter-increment: faq-step;
  position: relative;
  padding: 12px 14px 12px 58px;
  background: rgba(13, 31, 60, .02);
  border: 1px solid rgba(13, 31, 60, .06);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

.page-faq__ordered li strong {
  color: var(--c-deep);
  font-weight: 600;
}

.page-faq__ordered li::before {
  content: counter(faq-step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 11px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--c-clay);
}

/* ---------- Table ---------- */
.page-faq__table-wrap {
  overflow-x: auto;
  margin: 18px 0 6px;
  border: 1px solid rgba(13, 31, 60, .08);
  border-radius: var(--radius-sm);
}

.page-faq__table-wrap .data-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: var(--c-cream);
}

.page-faq__table-wrap .data-table th,
.page-faq__table-wrap .data-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(13, 31, 60, .08);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

.page-faq__table-wrap .data-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-deep);
  background: rgba(13, 31, 60, .03);
}

.page-faq__table-wrap .data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Status bar ---------- */
.page-faq__statusbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.page-faq__statusbar .page-faq__dot {
  margin-top: 6px;
}

.page-faq__statusbar p {
  margin: 0;
}

.page-faq__statusbar--alert {
  background: rgba(230, 51, 43, .06);
  border: 1px solid rgba(230, 51, 43, .22);
}

.page-faq__statusbar--ok {
  background: rgba(91, 110, 90, .1);
  border: 1px solid rgba(91, 110, 90, .3);
}

/* ---------- Filters / chips ---------- */
.page-faq__filters {
  margin: 14px 0 6px;
}

.page-faq__filters p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-deep);
}

.page-faq__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Figure ---------- */
.page-faq__figure {
  margin: 20px 0 0;
  max-width: 600px;
}

.page-faq__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.page-faq__figure figcaption {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-slate);
  letter-spacing: .02em;
}

/* ---------- Contact card ---------- */
.page-faq__contact {
  background: linear-gradient(135deg, var(--c-deep), var(--c-darkblue));
  border-radius: var(--radius);
  color: var(--c-cream);
  padding: 24px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}

.page-faq__contact::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 210, 31, .2) 0%, rgba(255, 210, 31, 0) 70%);
  pointer-events: none;
}

.page-faq__contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.page-faq__contact-text {
  max-width: 640px;
}

.page-faq__contact-text .section-kicker {
  color: var(--c-yellow);
}

.page-faq__contact-text h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-cream);
  margin: 6px 0 8px;
}

.page-faq__contact-text p {
  margin: 0;
  opacity: .82;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

.page-faq__contact-text strong {
  color: var(--c-cream);
}

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
  .page-faq__intro {
    padding: 32px 0 44px;
  }

  .page-faq__intro-grid {
    gap: 32px;
  }

  .page-faq__intro-text h1 {
    font-size: 38px;
  }

  .page-faq__intro-text .lede {
    font-size: 16px;
  }

  .page-faq__quick {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-faq__layout {
    grid-template-columns: 230px 1fr;
    gap: 32px;
    align-items: start;
  }

  .page-faq__side {
    position: sticky;
    top: 24px;
  }

  .page-faq__side-list {
    display: grid;
    gap: 6px;
  }

  .page-faq__side-link {
    display: flex;
  }

  .page-faq__section-titles h2 {
    font-size: 28px;
  }
}

/* ---------- Desktop refinement ---------- */
@media (min-width: 1080px) {
  .page-faq__intro-text {
    max-width: 780px;
  }

  .page-faq__quick {
    gap: 12px;
  }

  .page-faq__card-body {
    padding-left: 56px;
    padding-right: 28px;
  }

  .page-faq__contact {
    padding: 28px 32px;
  }
}
