/* ============ 支持中心 / FAQ 页面专属样式 ============ */
.page-faq {
  --faq-line: rgba(31, 58, 95, 0.16);
  --faq-red-soft: rgba(194, 55, 45, 0.08);
  --faq-gold-soft: rgba(212, 175, 55, 0.22);
  --faq-navy-deep: #162a45;
}

/* ---------- 框景首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 5vw, 3.75rem);
  background:
    repeating-linear-gradient(-45deg, rgba(31, 58, 95, 0.035) 0 1px, transparent 1px 18px),
    radial-gradient(ellipse at 85% 18%, rgba(168, 196, 220, 0.5), transparent 52%),
    linear-gradient(160deg, var(--color-snow) 0%, var(--color-fog) 100%);
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-faq .faq-hero__crumb {
  margin-bottom: 1.1rem;
}

.page-faq .faq-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
}

.page-faq .faq-hero__eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--color-red);
}

.page-faq .faq-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.18;
  color: var(--color-navy);
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
}

.page-faq .faq-hero__title-main {
  display: block;
}

.page-faq .faq-hero__title-sep {
  color: var(--color-gold);
  font-weight: 500;
  margin-left: 0.15rem;
}

.page-faq .faq-hero__title-sub {
  display: block;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-red);
}

.page-faq .faq-hero__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-stone);
  max-width: 42rem;
}

.page-faq .faq-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-faq .faq-hero__figure {
  position: relative;
  margin: 0;
  max-width: 26rem;
}

.page-faq .faq-hero__figure::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: -0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border-top: 5px solid var(--color-red);
  border-left: 5px solid var(--color-red);
  border-top-left-radius: 0.7rem;
  z-index: 3;
}

.page-faq .faq-hero__figure::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -0.55rem;
  width: 0.45rem;
  height: 84%;
  border-radius: 0.3rem;
  background: repeating-linear-gradient(to bottom, var(--color-gold) 0 4px, transparent 4px 9px);
  z-index: 3;
}

.page-faq .faq-hero__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.3rem);
  box-shadow: var(--shadow-md);
}

.page-faq .faq-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid rgba(247, 245, 240, 0.55);
  z-index: 2;
  pointer-events: none;
}

.page-faq .faq-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-faq .faq-hero__caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--color-stone);
}

.page-faq .faq-hero__caption-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px var(--faq-gold-soft);
}

.page-faq .faq-hero__cut {
  position: relative;
  z-index: 1;
  height: 1.8rem;
  margin-top: clamp(2rem, 5vw, 3.25rem);
  background: var(--color-navy);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

/* ---------- 主布局：左侧目录 + 右侧手风琴 ---------- */
.page-faq .faq-layout {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: var(--color-snow);
}

.page-faq .faq-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(78deg, rgba(31, 58, 95, 0.045) 0%, transparent 34%),
    radial-gradient(ellipse at 8% 92%, rgba(168, 196, 220, 0.28), transparent 46%);
  pointer-events: none;
}

.page-faq .faq-layout__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
}

/* ---------- 左侧目录 ---------- */
.page-faq .faq-sidebar__inner {
  position: relative;
  padding: 1.4rem 1.15rem;
  background: var(--color-fog);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-gold);
}

.page-faq .faq-sidebar__label {
  margin: 0 0 1rem;
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
}

.page-faq .faq-sidebar__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.page-faq .faq-sidebar__item {
  position: relative;
}

.page-faq .faq-sidebar__item::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.35rem;
  bottom: -1.1rem;
  width: 2px;
  background: rgba(212, 175, 55, 0.4);
}

.page-faq .faq-sidebar__item:last-child::before {
  display: none;
}

.page-faq .faq-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  color: var(--color-stone);
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(247, 245, 240, 0.45);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.page-faq .faq-sidebar__link:hover {
  color: var(--color-navy);
  border-color: rgba(194, 55, 45, 0.35);
  transform: translateX(3px);
}

.page-faq .faq-sidebar__num {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-snow);
  border: 1px solid rgba(212, 175, 55, 0.7);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-navy);
}

.page-faq .faq-sidebar__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
}

.page-faq .faq-sidebar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-faq .faq-sidebar__service {
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--color-stone);
}

/* ---------- 右侧 FAQ 内容 ---------- */
.page-faq .faq-content {
  min-width: 0;
}

.page-faq .faq-section {
  scroll-margin-top: 1.25rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

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

.page-faq .faq-section__header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--faq-line);
}

.page-faq .faq-section__headings {
  min-width: 0;
}

.page-faq .faq-section__num {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: var(--color-snow);
  border-radius: 0.5rem 0.5rem 0.5rem 1.5rem;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(194, 55, 45, 0.24);
}

.page-faq .faq-section__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  line-height: 1.35;
  color: var(--color-navy);
}

.page-faq .faq-section__intro {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-stone);
}

.page-faq .faq-section__items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---------- FAQ 手风琴条目 ---------- */
.page-faq .faq-item {
  background: var(--color-snow);
  border: 1px solid var(--faq-line);
  border-radius: calc(var(--radius) - 0.25rem);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.page-faq .faq-item:hover {
  transform: translateY(-1px);
}

.page-faq .faq-item[open] {
  border-color: rgba(194, 55, 45, 0.4);
  box-shadow: 0 8px 20px rgba(31, 58, 95, 0.09);
}

.page-faq .faq-item__q {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1.05rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--color-navy);
  user-select: none;
}

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

.page-faq .faq-item__q::marker {
  content: "";
}

.page-faq .faq-item__icon {
  flex: 0 0 auto;
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--faq-red-soft);
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  left: 0.44rem;
  top: 0.68rem;
  width: 0.58rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-red);
}

.page-faq .faq-item__icon::after {
  left: 0.68rem;
  top: 0.44rem;
  width: 2px;
  height: 0.58rem;
  transition: transform 0.3s ease;
}

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

.page-faq .faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.page-faq .faq-item[open] .faq-item__a {
  grid-template-rows: 1fr;
}

.page-faq .faq-item__a-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0.15rem 1.1rem 1.05rem;
  border-left: 3px solid var(--color-red);
  margin-left: 1.05rem;
  color: var(--color-stone);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-faq .faq-item[open] .faq-item__a-inner {
  animation: faqFadeIn 0.45s ease both;
}

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

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

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

.page-faq .faq-item__a-inner a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(194, 55, 45, 0.4);
}

.page-faq .faq-item__a-inner a:hover {
  text-decoration-color: var(--color-red);
}

/* ---------- 安全与平台使用（深色面板） ---------- */
.page-faq .faq-security__panel {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  border-radius: calc(var(--radius) + 0.45rem);
  background:
    radial-gradient(ellipse at 88% 6%, rgba(212, 175, 55, 0.17), transparent 40%),
    linear-gradient(150deg, var(--color-navy) 0%, var(--faq-navy-deep) 100%);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.22);
}

.page-faq .faq-security__fig {
  margin: 0;
  max-width: 17rem;
  width: 100%;
}

.page-faq .faq-security__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.3rem);
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.35);
}

.page-faq .faq-security__figcap {
  margin-top: 0.6rem;
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(247, 245, 240, 0.72);
}

.page-faq .faq-security__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.page-faq .faq-item--inverse {
  background: rgba(247, 245, 240, 0.05);
  border-color: rgba(247, 245, 240, 0.15);
}

.page-faq .faq-item--inverse:hover {
  transform: none;
}

.page-faq .faq-item--inverse[open] {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 10px 26px rgba(20, 20, 20, 0.28);
}

.page-faq .faq-item--inverse .faq-item__q {
  color: var(--color-snow);
}

.page-faq .faq-item--inverse .faq-item__icon {
  background: rgba(212, 175, 55, 0.18);
}

.page-faq .faq-item--inverse .faq-item__icon::before,
.page-faq .faq-item--inverse .faq-item__icon::after {
  background: var(--color-gold);
}

.page-faq .faq-item--inverse .faq-item__a-inner {
  border-left-color: var(--color-gold);
  color: rgba(247, 245, 240, 0.86);
}

.page-faq .faq-item--inverse .faq-item__a-inner a {
  color: var(--color-gold);
}

.page-faq .faq-item--inverse .faq-item__a-inner a:hover {
  text-decoration-color: var(--color-gold);
}

/* ---------- 底部求助区 ---------- */
.page-faq .faq-help__inner {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

.page-faq .faq-help__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--color-snow);
}

.page-faq .faq-help__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(247, 245, 240, 0.8);
}

.page-faq .faq-help__action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- 响应式适配 ---------- */
@media (min-width: 40rem) {
  .page-faq .faq-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
  }

  .page-faq .faq-security__panel {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 62rem) {
  .page-faq .faq-layout__inner {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 2.75rem;
    align-items: start;
  }

  .page-faq .faq-sidebar__inner {
    position: sticky;
    top: 1.6rem;
  }

  .page-faq .faq-help__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }
}
