/* ===== 帮助中心 /help/ ===== */

.page-faq {
  --faq-accent: var(--slate);
  --faq-hair: rgba(26, 22, 20, .14);
}

/* ---------- 首屏 ---------- */

.page-faq .faq-hero {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--faq-hair);
  overflow: hidden;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  top: -32%;
  right: -14%;
  width: 54%;
  height: 168%;
  background: linear-gradient(155deg, rgba(11, 27, 51, .08), rgba(11, 27, 51, 0) 64%);
  transform: rotate(-5deg);
  pointer-events: none;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  padding: 34px 0 42px;
}

.page-faq .faq-hero__kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold-ink);
  text-transform: uppercase;
}

.page-faq .faq-hero__title {
  margin: 0 0 18px;
  max-width: 16em;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-faq .faq-hero__lede {
  margin: 0 0 26px;
  max-width: 36em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.page-faq .faq-hero__facts {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--faq-hair);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 22px;
}

.page-faq .faq-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-faq .faq-hero__fact-n {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--gold-ink);
}

.page-faq .faq-hero__facts li > span:last-child {
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate);
}

.page-faq .faq-hero__figure {
  margin: 0;
}

.page-faq .faq-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--faq-hair);
  border-radius: var(--radius);
  object-fit: cover;
}

.page-faq .faq-hero__figure .media-frame__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
}

@media (min-width: 900px) {
  .page-faq .faq-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 52px;
    padding: 68px 0 58px;
  }

  .page-faq .faq-hero__figure {
    transform: translateY(14px);
  }

  .page-faq .faq-hero__title {
    font-size: 44px;
  }
}

@media (min-width: 1080px) {
  .page-faq .faq-hero__title {
    font-size: 54px;
  }
}

/* ---------- 主体 ---------- */

.page-faq .faq-body {
  background: var(--cream);
}

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

.page-faq .faq-index__label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--slate);
  text-transform: uppercase;
}

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

.page-faq .faq-index__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gold-soft);
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}

.page-faq .faq-index__list a:hover,
.page-faq .faq-index__list a:focus-visible {
  background: var(--white);
  border-color: var(--gold);
  transform: translateX(2px);
}

.page-faq .faq-index__list .mono {
  font-size: 12px;
  color: var(--gold-ink);
}

@media (min-width: 980px) {
  .page-faq .faq-body__grid {
    grid-template-columns: 208px minmax(0, 1fr);
    align-items: start;
    gap: 56px;
  }

  .page-faq .faq-index {
    position: sticky;
    top: 96px;
  }

  .page-faq .faq-index__list {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .page-faq .faq-index__list a {
    width: 100%;
  }
}

.page-faq .faq-stream__note {
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 排障卡片 ---------- */

.page-faq .faq-card {
  position: relative;
  margin-bottom: 18px;
  padding: 24px 20px 22px;
  background: var(--white);
  border: 1px solid var(--faq-hair);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 96px;
  transition: box-shadow .28s var(--ease);
}

.page-faq .faq-card:hover {
  box-shadow: 0 10px 26px -18px rgba(11, 27, 51, .5);
}

.page-faq .faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--faq-accent);
}

.page-faq .faq-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .5s var(--ease);
}

.page-faq .faq-card:has(.faq-acc[open])::after {
  width: 100%;
}

.page-faq .faq-card--red { --faq-accent: var(--red); }
.page-faq .faq-card--cyan { --faq-accent: var(--cyan); }
.page-faq .faq-card--gold { --faq-accent: var(--gold); }
.page-faq .faq-card--green { --faq-accent: var(--green); }

.page-faq .faq-card__fold {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.page-faq .faq-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.page-faq .faq-card__num {
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--faq-accent);
}

.page-faq .faq-card__title {
  flex: 1 1 200px;
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-faq .faq-card__state {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}

.page-faq .faq-card__brief {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--slate);
}

.page-faq .faq-card__figure {
  margin: 16px 0 0;
}

.page-faq .faq-card__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

.page-faq .faq-card__figure .media-frame__caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
}

@media (min-width: 720px) {
  .page-faq .faq-card {
    padding: 28px 30px 26px;
  }

  .page-faq .faq-card__title {
    font-size: 22px;
  }
}

/* ---------- 展开区 ---------- */

.page-faq .faq-acc {
  margin-top: 18px;
}

.page-faq .faq-acc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
  background: rgba(26, 22, 20, .045);
  border-left: 3px solid var(--faq-accent);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: background .22s var(--ease);
}

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

.page-faq .faq-acc__summary:hover,
.page-faq .faq-acc__summary:focus-visible {
  background: rgba(26, 22, 20, .085);
}

.page-faq .faq-acc__hint {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.page-faq .faq-acc__hint::before,
.page-faq .faq-acc__hint::after {
  content: "";
  position: absolute;
  background: var(--slate);
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}

.page-faq .faq-acc__hint::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.page-faq .faq-acc__hint::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.page-faq .faq-acc[open] .faq-acc__hint::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-faq .faq-acc > *:not(summary) {
  animation: faq-rise .3s var(--ease) both;
}

@keyframes faq-rise {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-acc > *:not(summary) {
    animation: none;
  }

  .page-faq .faq-card,
  .page-faq .faq-index__list a,
  .page-faq .faq-acc__hint::before,
  .page-faq .faq-acc__hint::after {
    transition: none;
  }
}

.page-faq .faq-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-faq .faq-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.page-faq .faq-steps__n {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  color: var(--gold-ink);
}

.page-faq .faq-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.page-faq .faq-acc__note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-faq .faq-acc__result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 14px;
  background: rgba(201, 162, 39, .1);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.page-faq .faq-acc__result a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-faq .faq-acc__result a:hover,
.page-faq .faq-acc__result a:focus-visible {
  color: var(--ink);
}

.page-faq .faq-acc__dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 自检清单 ---------- */

.page-faq .faq-check {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-faq .faq-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.page-faq .faq-check input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid rgba(26, 22, 20, .26);
  border-radius: 2px;
  background: var(--white);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.page-faq .faq-check input:checked {
  background: var(--green);
  border-color: var(--green);
}

.page-faq .faq-check input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.page-faq .faq-check input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.page-faq .faq-check input:checked + span {
  color: var(--slate);
  text-decoration: line-through;
  text-decoration-color: rgba(90, 102, 117, .45);
}

/* ---------- 人工通道 ---------- */

.page-faq .faq-contact {
  position: relative;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}

.page-faq .faq-contact::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: rotate(-4deg);
  pointer-events: none;
}

.page-faq .faq-contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.page-faq .faq-contact__label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.page-faq .faq-contact__title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -.018em;
  color: var(--white);
}

.page-faq .faq-contact__copy > p:not(.faq-contact__label):not(.faq-contact__cta) {
  margin: 0;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .76);
}

.page-faq .faq-contact__cta {
  margin: 26px 0 0;
}

.page-faq .faq-contact__list {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--rule-dark);
}

.page-faq .faq-contact__list > div {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-dark);
}

.page-faq .faq-contact__list dt {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold-soft);
}

.page-faq .faq-contact__list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  word-break: break-word;
}

@media (min-width: 640px) {
  .page-faq .faq-contact__list > div {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: baseline;
    gap: 22px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-contact__inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 64px;
  }

  .page-faq .faq-contact__title {
    font-size: 38px;
  }
}
