/* ============================================
   页面专属样式 · 常见问题与帮助中心 (faq)
   作用域：.page-faq
   ============================================ */
.page-faq {
  --faq-rd: 26px;
  --faq-num-bg: rgba(0, 212, 255, .08);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

/* ----- 页面头区 / 首屏目录 ----- */
.page-faq .faq-entry {
  position: relative;
  padding-top: calc(var(--header-h) + 46px);
  padding-bottom: 56px;
  background:
    radial-gradient(880px 360px at 92% -6%, rgba(181, 55, 242, .18), transparent 62%),
    radial-gradient(640px 300px at 4% 22%, rgba(0, 212, 255, .10), transparent 58%),
    var(--bg);
}

.page-faq .faq-hero {
  position: relative;
  max-width: 1120px;
}

.page-faq .faq-hero-glyph {
  position: absolute;
  z-index: 0;
  top: -8px;
  right: 0;
  width: 210px;
  height: 112px;
  opacity: .72;
  pointer-events: none;
}

.page-faq .breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}

.page-faq .breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed), color var(--speed);
}

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

.page-faq .breadcrumb-sep {
  margin: 0 10px;
  color: rgba(154, 167, 184, .5);
}

.page-faq .page-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-faq .page-title {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: .01em;
  text-wrap: balance;
}

.page-faq .page-lead {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.page-faq .faq-hero-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.page-faq .faq-hero-tags li {
  margin: 0;
}

.page-faq .faq-toc {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .page-faq .faq-toc {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .page-faq .faq-toc {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-faq .faq-toc-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border-cyan);
  border-radius: var(--faq-rd);
  transition: border-color var(--speed), transform var(--speed), background var(--speed);
}

.page-faq .faq-toc-item::before {
  content: "";
  position: absolute;
  right: -16px;
  top: -16px;
  width: 76px;
  height: 76px;
  border: 1px dashed rgba(0, 212, 255, .3);
  border-radius: 50%;
  pointer-events: none;
}

.page-faq .faq-toc-item:hover,
.page-faq .faq-toc-item:focus-visible {
  background: linear-gradient(140deg, #241743 0%, var(--panel) 65%);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.page-faq .faq-toc-no {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-faq .faq-toc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-faq .faq-toc-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ----- 章节面板 ----- */
.page-faq .faq-section {
  position: relative;
  padding: 58px 0 72px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-faq .faq-section-replay {
  background:
    radial-gradient(760px 360px at 100% 0, rgba(181, 55, 242, .14), transparent 62%),
    linear-gradient(160deg, #17102B 0%, var(--panel) 62%, #100B22 100%);
}

.page-faq .faq-section-oldver {
  background:
    radial-gradient(680px 340px at 0% 100%, rgba(255, 122, 26, .13), transparent 62%),
    linear-gradient(155deg, #2A0E1E 0%, #200B18 68%, #160716 100%);
}

.page-faq .faq-section-sync {
  background:
    radial-gradient(720px 340px at 50% -8%, rgba(0, 212, 255, .10), transparent 62%),
    linear-gradient(180deg, #0B1322 0%, var(--bg) 80%);
}

.page-faq .faq-section-other {
  background: linear-gradient(180deg, var(--bg) 0%, #0D1524 100%);
  border-top: 1px solid var(--border-cyan);
}

.page-faq .faq-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.page-faq .faq-sec-index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--cyan);
  background: var(--faq-num-bg);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  transform: skewX(-8deg);
}

.page-faq .faq-sec-main {
  flex: 1 1 auto;
  min-width: 0;
}

.page-faq .faq-sec-kicker {
  margin: 2px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple);
}

.page-faq .faq-sec-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.16;
}

.page-faq .faq-sec-desc {
  max-width: 680px;
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ----- 问答手风琴 ----- */
.page-faq .faq-list {
  display: grid;
  gap: 14px;
}

.page-faq .faq-item {
  border: 1px solid var(--border-cyan);
  border-radius: var(--faq-rd);
  background: rgba(10, 14, 26, .5);
  transition: border-color var(--speed), background var(--speed), box-shadow var(--speed);
}

.page-faq .faq-item:hover {
  border-color: rgba(0, 212, 255, .6);
}

.page-faq .faq-item[open] {
  border-color: rgba(0, 212, 255, .85);
  background: rgba(10, 14, 26, .72);
  box-shadow: var(--shadow-glow);
}

.page-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--faq-rd);
}

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

.page-faq .faq-item summary::marker {
  content: "";
}

.page-faq .faq-item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-faq .faq-item-no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
  background: var(--faq-num-bg);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  white-space: nowrap;
}

.page-faq .faq-item-q {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}

.page-faq .faq-item-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-cyan);
  border-radius: 50%;
  transition: border-color var(--speed), background var(--speed);
}

.page-faq .faq-item-icon::before,
.page-faq .faq-item-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform var(--speed);
}

.page-faq .faq-item-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .faq-item[open] .faq-item-icon {
  background: rgba(0, 212, 255, .12);
  border-color: var(--cyan);
}

.page-faq .faq-item[open] .faq-item-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-faq .faq-item-a {
  padding: 0 20px 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.page-faq .faq-item-a p {
  margin: 0 0 10px;
}

.page-faq .faq-item-a p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-item-a a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, .4);
  transition: border-color var(--speed), color var(--speed);
}

.page-faq .faq-item-a a:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.page-faq .faq-key {
  color: var(--purple);
  font-weight: 700;
}

.page-faq .faq-note {
  margin-top: 12px;
  padding: 12px 16px;
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(181, 55, 242, .08);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ----- 旧版本下载 · 时间胶囊 ----- */
.page-faq .faq-oldver-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

@media (min-width: 960px) {
  .page-faq .faq-oldver-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 42px;
  }
}

.page-faq .faq-capsule {
  position: relative;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255, 122, 26, .38);
  border-radius: var(--faq-rd);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 122, 26, .16), transparent 62%),
    rgba(10, 14, 26, .6);
}

.page-faq .faq-capsule::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 122, 26, .28);
  border-radius: calc(var(--faq-rd) - 8px);
  pointer-events: none;
}

.page-faq .faq-capsule img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--faq-rd) - 10px);
}

.page-faq .faq-capsule-tag {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 30px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--orange);
  background: rgba(10, 14, 26, .84);
  border: 1px solid rgba(255, 122, 26, .5);
  border-radius: var(--radius-pill);
}

.page-faq .faq-capsule figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ----- 数据同步 · 示意图 ----- */
.page-faq .faq-sync-figure {
  position: relative;
  margin: 0 0 40px;
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  border-radius: var(--faq-rd);
}

@media (min-width: 720px) {
  .page-faq .faq-sync-figure {
    margin-bottom: 56px;
  }
}

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

.page-faq .faq-sync-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text);
  background: rgba(10, 14, 26, .8);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-pill);
}

/* ----- 底部联系卡 ----- */
.page-faq .faq-contact-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--border-cyan);
  border-radius: var(--faq-rd);
  background:
    linear-gradient(120deg, rgba(0, 212, 255, .12), rgba(181, 55, 242, .10) 55%, rgba(255, 122, 26, .10));
  box-shadow: var(--shadow-glow);
}

.page-faq .faq-contact-copy {
  flex: 1 1 auto;
}

.page-faq .faq-contact-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-faq .faq-contact-title {
  margin: 0 0 12px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.35;
}

.page-faq .faq-contact-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-faq .faq-contact-mail {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: rgba(10, 14, 26, .7);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-pill);
}

.page-faq .faq-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 720px) {
  .page-faq .faq-contact-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .page-faq .faq-contact-actions {
    flex-direction: row;
    flex: 0 0 auto;
  }
}

/* ----- 窄屏优化 ----- */
@media (max-width: 559px) {
  .page-faq .faq-hero-glyph {
    display: none;
  }

  .page-faq .faq-sec-head {
    gap: 12px;
  }

  .page-faq .faq-item summary {
    gap: 10px;
    padding: 16px;
  }

  .page-faq .faq-item-a {
    padding: 0 16px 18px;
  }
}
