/* ===== 页面专属 CSS：帮助中心 ===== */
.page-faq {
  --faq-gold: #FFD700;
  --faq-red: #FF0000;
  --faq-bg-dark: #0A0F2E;
  --faq-bg-card: rgba(26, 32, 68, 0.7);
  --faq-border-glow: rgba(255, 215, 0, 0.2);
  --faq-radius-lg: 24px;
  --faq-radius-md: 16px;
  --faq-radius-sm: 12px;
  --faq-accordion-bg: rgba(10, 15, 46, 0.6);
  --faq-question-hover: rgba(255, 215, 0, 0.08);
  --faq-answer-bg: rgba(255, 255, 255, 0.03);
  --faq-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --faq-gap: 16px;

  background-color: var(--faq-bg-dark);
  color: #FFFFFF;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  min-height: 100vh;
  position: relative;
  /* 铜钱纹背景点缀 */
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(255, 0, 0, 0.02) 0%, transparent 50%),
                    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 215, 0, 0.008) 40px, rgba(255, 215, 0, 0.008) 42px);
}

/* ===== 容器 ===== */
.page-faq .container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ===== 英雄区 ===== */
.page-faq .faq-hero {
  padding: 48px 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-faq .faq-hero-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FF8C00));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  overflow: hidden;
}

.page-faq .faq-hero-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.page-faq .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted, #C0C0C0);
  margin-bottom: 8px;
}

.page-faq .breadcrumb-link {
  color: var(--faq-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.page-faq .breadcrumb-link:hover,
.page-faq .breadcrumb-link:focus-visible {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-faq .breadcrumb-sep {
  color: var(--color-text-muted, #C0C0C0);
  user-select: none;
}

.page-faq .breadcrumb-current {
  color: #FFFFFF;
  font-weight: 500;
}

.page-faq .faq-title {
  font-family: 'ZCOOL KuaiLe', 'Ma Shan Zheng', 'Noto Sans SC', cursive, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--faq-gold);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(255, 215, 0, 0.15);
}

.page-faq .faq-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted, #C0C0C0);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* ===== 引言 ===== */
.page-faq .faq-intro {
  padding: 8px 0 16px;
}

.page-faq .faq-intro-text {
  font-size: 1rem;
  color: var(--color-text-muted, #C0C0C0);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-faq .faq-inline-link {
  color: var(--faq-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.page-faq .faq-inline-link:hover,
.page-faq .faq-inline-link:focus-visible {
  color: #FFFFFF;
}

/* ===== 手风琴整体 ===== */
.page-faq .faq-accordion-wrapper {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== 每个板块 ===== */
.page-faq .faq-block {
  background: var(--faq-bg-card);
  border-radius: var(--faq-radius-lg);
  padding: 28px 28px 32px;
  box-shadow: var(--faq-shadow);
  border: 1px solid var(--faq-border-glow);
  position: relative;
  overflow: hidden;
}

/* 铜钱纹装饰角 */
.page-faq .faq-block::before {
  content: "♦";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  color: rgba(255, 215, 0, 0.04);
  line-height: 1;
  pointer-events: none;
  transform: rotate(15deg);
  font-family: 'ZCOOL KuaiLe', cursive;
}

.page-faq .faq-block::after {
  content: "♦";
  position: absolute;
  bottom: -30px;
  left: -30px;
  font-size: 90px;
  color: rgba(255, 0, 0, 0.03);
  line-height: 1;
  pointer-events: none;
  transform: rotate(-10deg);
  font-family: 'ZCOOL KuaiLe', cursive;
}

.page-faq .faq-block-title {
  font-family: 'ZCOOL KuaiLe', 'Ma Shan Zheng', 'Noto Sans SC', cursive, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--faq-gold);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.page-faq .faq-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FF8C00));
  border-radius: 50%;
  font-size: 1rem;
  color: var(--faq-bg-dark);
  flex-shrink: 0;
}

/* ===== 手风琴项 ===== */
.page-faq .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.page-faq .faq-item:last-child {
  border-bottom: none;
}

.page-faq .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
  border-radius: var(--faq-radius-sm);
  position: relative;
  gap: 12px;
}

.page-faq .faq-question:hover {
  background: var(--faq-question-hover);
  padding-left: 12px;
  color: var(--faq-gold);
}

.page-faq .faq-question:focus-visible {
  outline: 2px solid var(--faq-gold);
  outline-offset: 2px;
  background: var(--faq-question-hover);
  padding-left: 12px;
  color: var(--faq-gold);
}

.page-faq .faq-q-text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.page-faq .faq-q-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--faq-gold);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.page-faq .faq-question[aria-expanded="true"] .faq-q-icon {
  transform: rotate(45deg);
}

/* ===== 答案区 ===== */
.page-faq .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.page-faq .faq-answer[aria-hidden="false"],
.page-faq .faq-answer:not([aria-hidden]) {
  grid-template-rows: 1fr;
}

.page-faq .faq-answer-inner {
  min-height: 0;
  padding: 0 0 18px;
  color: var(--color-text-muted, #C0C0C0);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-faq .faq-answer-inner p {
  margin: 0 0 8px;
}

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

/* ===== 区块内图片 ===== */
.page-faq .faq-block-visual {
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-faq .faq-example-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--faq-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 215, 0, 0.1);
  display: inline-block;
}

/* ===== 更多帮助 ===== */
.page-faq .faq-more-help {
  margin-top: 8px;
}

.page-faq .faq-more-help-card {
  background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FF8C00));
  border-radius: var(--faq-radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
  position: relative;
  z-index: 1;
}

.page-faq .faq-more-help-icon {
  font-size: 3rem;
  font-weight: 700;
  color: var(--faq-bg-dark);
  margin-bottom: 12px;
  line-height: 1;
  font-family: 'ZCOOL KuaiLe', cursive;
}

.page-faq .faq-more-help-text {
  font-size: 1.05rem;
  color: var(--faq-bg-dark);
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.6;
}

.page-faq .faq-more-help-btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--faq-bg-dark);
  color: var(--faq-gold);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.page-faq .faq-more-help-btn:hover,
.page-faq .faq-more-help-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: #FFFFFF;
  color: var(--faq-bg-dark);
  border-color: var(--faq-bg-dark);
}

/* ===== 响应式 ===== */
/* 移动端优先：以上为默认样式（窄屏），以下为桌面增强 */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 64px 0 32px;
  }

  .page-faq .faq-hero-inner {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }

  .page-faq .faq-hero-text {
    text-align: left;
  }

  .page-faq .breadcrumb {
    justify-content: flex-start;
  }

  .page-faq .faq-title {
    font-size: 2.8rem;
  }

  .page-faq .faq-block {
    padding: 40px 40px 44px;
  }

  .page-faq .faq-block-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .page-faq .faq-question {
    padding: 20px 0;
    font-size: 1.05rem;
  }

  .page-faq .faq-answer-inner {
    font-size: 1rem;
  }

  .page-faq .faq-more-help-card {
    padding: 44px 36px;
  }

  .page-faq .faq-more-help-text {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero {
    padding: 80px 0 40px;
  }

  .page-faq .faq-title {
    font-size: 3.2rem;
  }

  .page-faq .faq-accordion-wrapper {
    gap: 48px;
  }

  .page-faq .faq-block {
    padding: 48px 48px 52px;
  }

  .page-faq .faq-block-title {
    font-size: 2rem;
  }
}

/* 窄屏安全 */
@media (max-width: 480px) {
  .page-faq .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-faq .faq-hero {
    padding: 32px 0 16px;
  }

  .page-faq .faq-title {
    font-size: 1.8rem;
  }

  .page-faq .faq-block {
    padding: 20px 16px 24px;
    border-radius: var(--faq-radius-md);
  }

  .page-faq .faq-question {
    padding: 14px 0;
    font-size: 0.95rem;
  }

  .page-faq .faq-more-help-card {
    padding: 28px 16px;
  }

  .page-faq .faq-more-help-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .page-faq .faq-block-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}
