/* ========== 帮助中心 · page-faq 专属样式 ========== */
.page-faq {
  --faq-gold: #C9A227;
  --faq-gold-light: #E4C465;
  --faq-ink: #0A1628;
  --faq-ink-soft: #102F4F;
  --faq-blue: #1C4E80;
  --faq-silver: #7E96B0;
  --faq-paper: #F5F0E1;
}

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

.page-faq a:focus-visible,
.page-faq summary:focus-visible {
  outline: 2px solid var(--faq-gold, #C9A227);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 顶部视觉区 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: 44px 0 52px;
  background:
    radial-gradient(ellipse at 84% 8%, rgba(228, 196, 101, 0.14) 0%, transparent 40%),
    linear-gradient(150deg, #0A1628 0%, #102F4F 52%, #1C4E80 100%);
  overflow: hidden;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: 22px;
  pointer-events: none;
}

.page-faq .faq-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.page-faq .breadcrumb {
  margin-bottom: 18px;
}

.page-faq .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

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

.page-faq .breadcrumb a {
  color: var(--faq-silver, #7E96B0);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-faq .breadcrumb span {
  color: rgba(243, 245, 247, 0.9);
}

.page-faq .faq-hero-text .overline-label {
  color: var(--faq-gold-light, #E4C465);
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
}

.page-faq .page-title {
  margin: 14px 0 16px;
  color: #FFFFFF;
  font-family: var(--font-serif, "Noto Serif SC", serif);
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.page-faq .faq-hero-desc {
  max-width: 540px;
  margin: 0 0 22px;
  color: rgba(243, 245, 247, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.page-faq .faq-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.page-faq .faq-hero-meta .tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq .faq-hero-count {
  margin: 0;
  color: var(--faq-silver, #7E96B0);
  font-size: 13px;
}

.page-faq .faq-hero-count .text-gold {
  color: var(--faq-gold-light, #E4C465);
  font-weight: 600;
}

.page-faq .tag {
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(16, 48, 79, 0.5);
  color: rgba(243, 245, 247, 0.85);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.page-faq .tag--blue {
  border-color: rgba(28, 78, 128, 0.65);
  background: rgba(28, 78, 128, 0.3);
  color: #A9C6E0;
}

.page-faq .tag--red {
  border-color: rgba(178, 73, 60, 0.6);
  background: rgba(178, 73, 60, 0.22);
  color: #E08A7C;
}

.page-faq .faq-hero-figure {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 28px 60px rgba(10, 22, 40, 0.5),
    0 0 0 1px rgba(201, 162, 39, 0.18);
}

.page-faq .faq-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-hero-side {
  display: none;
  position: absolute;
  top: 58px;
  right: 30px;
  z-index: 2;
  writing-mode: vertical-rl;
  color: rgba(228, 196, 101, 0.65);
  font-size: 12px;
  letter-spacing: 0.3em;
  border-left: 1px solid rgba(201, 162, 39, 0.3);
  padding-left: 10px;
}

/* ---------- 布局：左索引 + 右内容 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 72px;
  align-items: start;
}

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

.page-faq .faq-index-card {
  position: sticky;
  top: 108px;
  padding: 22px 18px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 48, 79, 0.88), rgba(10, 22, 40, 0.94));
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.35);
}

.page-faq .faq-index-card .overline-label {
  display: block;
  color: var(--faq-gold-light, #E4C465);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.page-faq .faq-index-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.page-faq .faq-index-list li + li {
  margin-top: 6px;
}

.page-faq .faq-index-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(243, 245, 247, 0.88);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out), color 0.3s ease;
}

.page-faq .faq-index-list a:hover {
  background-color: rgba(201, 162, 39, 0.14);
  color: var(--faq-gold-light, #E4C465);
  transform: translateX(3px);
}

.page-faq .faq-index-num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--faq-gold-light, #E4C465);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.page-faq .faq-index-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 150, 176, 0.22);
}

.page-faq .faq-index-links a {
  color: var(--faq-silver, #7E96B0);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq .faq-index-links a:hover {
  color: var(--faq-gold-light, #E4C465);
}

/* ---------- 内容区与分组 ---------- */
.page-faq .faq-content {
  min-width: 0;
}

.page-faq .faq-group {
  position: relative;
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.page-faq .faq-group:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.05), rgba(201, 162, 39, 0.35), rgba(201, 162, 39, 0.05));
}

.page-faq .faq-group-head {
  margin-bottom: 22px;
  padding: 8px 0 8px 18px;
  border-left: 3px solid var(--faq-gold, #C9A227);
  background: linear-gradient(90deg, rgba(16, 48, 79, 0.4), transparent);
}

.page-faq .faq-group-kicker {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faq-gold, #C9A227);
}

.page-faq .faq-group-head .section-title {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-serif, "Noto Serif SC", serif);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
}

.page-faq .faq-group-desc {
  margin: 8px 0 0;
  max-width: 520px;
  color: var(--faq-silver, #7E96B0);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- 折叠项目 ---------- */
.page-faq .faq-item {
  margin-bottom: 12px;
}

.page-faq .faq-item details {
  overflow: hidden;
  border: 1px solid rgba(126, 150, 176, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 48, 79, 0.72), rgba(10, 22, 40, 0.92));
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.page-faq .faq-item details[open] {
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow: 0 8px 28px rgba(10, 22, 40, 0.35);
}

.page-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

.page-faq .faq-item summary:hover {
  background-color: rgba(201, 162, 39, 0.06);
}

.page-faq .faq-item-num {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.04));
  color: var(--faq-gold-light, #E4C465);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
}

.page-faq .faq-item-q {
  flex: 1 1 auto;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-serif, "Noto Serif SC", serif);
  font-size: 16px;
  line-height: 1.35;
}

.page-faq .faq-item-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}

.page-faq .faq-item-icon::before,
.page-faq .faq-item-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--faq-gold, #C9A227);
  border-radius: 1px;
}

.page-faq .faq-item-icon::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item-icon::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.page-faq .faq-item details[open] .faq-item-icon {
  transform: rotate(45deg);
}

.page-faq .faq-item-a {
  padding: 16px 18px 20px;
  border-top: 1px dashed rgba(126, 150, 176, 0.18);
}

.page-faq .faq-item-a p {
  margin: 0;
  color: rgba(243, 245, 247, 0.82);
  font-size: 14px;
  line-height: 1.75;
}

.page-faq .faq-inline-link {
  color: var(--faq-gold-light, #E4C465);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 162, 39, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-faq .faq-inline-link:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

/* ---------- 流程图 ---------- */
.page-faq .faq-flow-figure {
  position: relative;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid rgba(126, 150, 176, 0.22);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(16, 48, 79, 0.45), rgba(10, 22, 40, 0.25));
}

.page-faq .faq-flow-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-flow-figure figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.72), rgba(10, 22, 40, 0.1));
  color: rgba(243, 245, 247, 0.8);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- SVG 分隔线 ---------- */
.page-faq .faq-svg-divider {
  display: flex;
  justify-content: center;
  margin: -20px 0 36px;
}

/* ---------- 联系支持卡片 ---------- */
.page-faq .faq-support-card {
  position: relative;
  margin-top: 28px;
  padding: 26px 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 16px;
  background: linear-gradient(145deg, #F5F0E1, #F1E9D3);
}

.page-faq .faq-support-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #C9A227, #E4C465);
}

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

.page-faq .faq-support-info .overline-label {
  color: #8A6D20;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
}

.page-faq .faq-support-info .card-title {
  margin: 10px 0 8px;
  color: #0A1628;
  font-family: var(--font-serif, "Noto Serif SC", serif);
  font-size: 20px;
  line-height: 1.3;
}

.page-faq .faq-support-info .note-text {
  margin: 0;
  color: #3C4A5A;
  font-size: 14px;
  line-height: 1.6;
}

.page-faq .btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C9A227, #E4C465);
  color: #0A1628;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.page-faq .btn--gold:hover {
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

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

  .page-faq .faq-hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
  }

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

  .page-faq .faq-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    padding-top: 44px;
  }

  .page-faq .faq-item summary {
    padding: 20px 22px;
  }

  .page-faq .faq-item-a {
    padding: 18px 22px 22px 80px;
  }

  .page-faq .faq-group-head {
    padding-left: 22px;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
  }

  .page-faq .faq-index-card {
    padding: 26px 22px;
  }

  .page-faq .faq-item-q {
    font-size: 17px;
  }

  .page-faq .faq-item-a p {
    font-size: 15px;
  }
}
