/* ========== 帮助中心页面专属样式 ========== */
.page-faq {
  --faq-sidebar-width: 320px;
  background: var(--cream);
}

.page-faq img {
  max-width: 100%;
  height: auto;
}

/* ---------- Hero 区域 ---------- */
.page-faq .faq-hero {
  background: var(--jewel);
  color: var(--cream);
  padding: 36px 0 44px;
  position: relative;
  overflow: hidden;
}

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

.page-faq .faq-hero__deco {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 460px;
  height: 200px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.page-faq .breadcrumb {
  font-family: var(--font-caption);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

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

.page-faq .breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: rgba(245, 241, 232, 0.5);
}

.page-faq .breadcrumb a {
  color: rgba(245, 241, 232, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.page-faq .breadcrumb span {
  color: rgba(245, 241, 232, 0.85);
}

.page-faq .faq-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.page-faq .faq-hero__visual {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.page-faq .faq-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.page-faq .faq-hero__visual figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 59, 59, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--cream);
  font-family: var(--font-caption);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  max-width: calc(100% - 24px);
}

.page-faq .faq-hero__kicker {
  font-family: var(--font-caption);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.68);
  margin: 0 0 10px;
}

.page-faq .faq-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 48px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--cream);
}

.page-faq .faq-hero__lead {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 241, 232, 0.82);
  margin: 0 0 22px;
  max-width: 620px;
}

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

.page-faq .faq-hero__tags .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-caption);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cream);
}

.page-faq .faq-hero__tags .tag--gold {
  background: rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.4);
  color: #E9CE7E;
}

/* ---------- 主体两栏布局 ---------- */
.page-faq .faq-body {
  padding-top: 56px;
  padding-bottom: 88px;
}

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

/* 左侧问题索引 */
.page-faq .faq-index {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 22px 20px;
  border-left: 3px solid var(--grass);
}

.page-faq .faq-index__head {
  margin-bottom: 14px;
}

.page-faq .faq-index .section-index {
  display: block;
  font-family: var(--font-caption);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 6px;
}

.page-faq .faq-index__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--grass);
  margin: 0;
}

.page-faq .faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .faq-index__list li {
  margin-bottom: 2px;
}

.page-faq .faq-index__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-caption);
  font-size: 14px;
  color: var(--slate);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-index__list a span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--sky);
}

.page-faq .faq-index__list a:hover {
  background: rgba(45, 143, 194, 0.12);
  color: var(--ink);
  transform: translateX(3px);
}

/* 左侧联系卡片 */
.page-faq .faq-contact-card {
  margin-top: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(166, 93, 58, 0.2);
  border-radius: var(--radius);
  padding: 20px;
}

.page-faq .faq-contact-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--ink);
}

.page-faq .faq-contact-card p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  margin: 0 0 14px;
  word-break: break-all;
}

.page-faq .faq-contact-card a {
  color: var(--earth);
  text-underline-offset: 3px;
}

.page-faq .faq-contact-card .btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-caption);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--grass);
  color: var(--grass);
  transition: background 0.2s ease, color 0.2s ease;
}

.page-faq .faq-contact-card .btn:hover {
  background: var(--grass);
  color: var(--cream);
}

/* ---------- 右侧主区域 ---------- */
.page-faq .faq-main {
  min-width: 0;
}

.page-faq .faq-section {
  margin-bottom: 44px;
}

.page-faq .faq-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26, 34, 38, 0.1);
}

.page-faq .faq-section__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.page-faq .faq-section__sub {
  flex: 1;
  min-width: 0;
}

.page-faq .faq-section__head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--grass);
  margin: 0 0 4px;
}

.page-faq .faq-section__head p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

/* 手风琴问答 */
.page-faq .faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(26, 34, 38, 0.08);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-faq .faq-item:hover {
  border-color: rgba(45, 143, 194, 0.32);
  box-shadow: 0 10px 28px rgba(26, 34, 38, 0.06);
}

.page-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.page-faq .faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 200;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.28s ease, color 0.28s ease;
  flex-shrink: 0;
}

.page-faq .faq-item summary:hover {
  background: var(--mist);
}

.page-faq .faq-item[open] {
  border-color: rgba(45, 143, 194, 0.4);
  box-shadow: 0 14px 36px rgba(26, 34, 38, 0.08);
}

.page-faq .faq-item[open] summary {
  color: var(--grass);
  background: var(--mist);
}

.page-faq .faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--sky);
}

.page-faq .faq-item__answer {
  padding: 0 22px 22px;
  border-top: 1px dashed rgba(26, 34, 38, 0.12);
}

.page-faq .faq-item[open] .faq-item__answer {
  animation: page-faq-reveal 0.3s ease;
}

.page-faq .faq-item__answer p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  margin: 16px 0 0;
}

.page-faq .faq-item__answer a {
  color: var(--sky);
  text-underline-offset: 3px;
}

/* 版本切换步骤 */
.page-faq .faq-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.page-faq .faq-steps li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-family: var(--font-caption);
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}

.page-faq .faq-steps li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
}

.page-faq .faq-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 21px;
  bottom: -3px;
  width: 2px;
  background: rgba(45, 143, 194, 0.25);
}

/* 移动端示意图 */
.page-faq .faq-mobile__visual {
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid rgba(26, 34, 38, 0.06);
}

.page-faq .faq-mobile__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* 章节变体 */
.page-faq .faq-section--jewel .faq-section__head h2 {
  color: var(--jewel);
}

.page-faq .faq-section--jewel .faq-section__num {
  background: rgba(122, 46, 59, 0.1);
  color: var(--jewel);
}

.page-faq .faq-section--jewel .faq-section__head {
  border-bottom-color: rgba(122, 46, 59, 0.14);
}

.page-faq .faq-section--earth .faq-section__head h2 {
  color: var(--earth);
}

.page-faq .faq-section--earth .faq-section__num {
  background: rgba(166, 93, 58, 0.1);
  color: var(--earth);
}

.page-faq .faq-section--earth .faq-section__head {
  border-bottom-color: rgba(166, 93, 58, 0.14);
}

/* 底部 CTA */
.page-faq .faq-back {
  background: var(--forest);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-faq .faq-back p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.85);
  margin: 0;
}

.page-faq .faq-back p a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.page-faq .faq-back .btn-primary {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-caption);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-back .btn-primary:hover {
  background: #B5901E;
  transform: translateY(-2px);
}

@keyframes page-faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 860px) {
  .page-faq .faq-hero {
    padding: 52px 0 64px;
  }

  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 56px;
  }

  .page-faq .faq-hero__deco {
    display: block;
  }

  .page-faq .faq-body {
    padding-top: 80px;
    padding-bottom: 96px;
  }

  .page-faq .faq-layout {
    grid-template-columns: minmax(0, var(--faq-sidebar-width)) 1fr;
    gap: 48px;
  }

  .page-faq .faq-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}
