/* ===== 帮助中心 FAQ 页面专属样式 ===== */
.page-faq {
  --faq-radius-lg: 22px;
  background: var(--wp-white);
  color: var(--wp-dark-text);
}

/* 首屏：深空蓝黑 + 斜切底边 + 霓虹色块 */
.page-faq .faq-hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(91, 108, 255, 0.28), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(255, 122, 0, 0.22), transparent 28%),
    var(--wp-bg-dark);
  color: var(--wp-white);
  overflow: hidden;
  padding: 48px 0 132px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 58%, rgba(0, 229, 255, 0.16) 58% 59%, transparent 59% 100%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 12%;
  width: 180px;
  height: 180px;
  background: var(--wp-accent);
  opacity: 0.16;
  transform: rotate(18deg);
  border-radius: 32px;
  pointer-events: none;
}

.page-faq .faq-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.page-faq .faq-hero .breadcrumbs a {
  color: var(--wp-secondary);
  text-decoration: none;
}

.page-faq .faq-hero .breadcrumbs .sep {
  opacity: 0.5;
}

.page-faq .faq-hero .eyebrow {
  color: var(--wp-accent);
  margin-bottom: 14px;
}

.page-faq .faq-hero h1 {
  font-family: var(--wp-font-heading);
  font-size: clamp(1.72rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  max-width: 920px;
  margin: 0;
  text-wrap: balance;
}

.page-faq .faq-hero-lead {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.8;
}

.page-faq .faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-faq .faq-jump a {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--wp-white);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.page-faq .faq-jump a:nth-child(odd) {
  border-color: rgba(0, 229, 255, 0.6);
  color: var(--wp-secondary);
}

.page-faq .faq-jump a:nth-child(even) {
  border-color: rgba(255, 122, 0, 0.65);
  color: var(--wp-accent-soft);
}

.page-faq .faq-jump a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-faq .faq-hero-media {
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--faq-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--wp-shadow-pop);
}

.page-faq .faq-hero-tag {
  position: absolute;
  left: 18px;
  bottom: 108px;
  background: var(--wp-accent);
  color: var(--wp-white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35);
}

.page-faq .faq-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  row-gap: 12px;
  max-width: 100%;
  width: fit-content;
  margin: 16px 0 0;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-sizing: border-box;
}

.page-faq .faq-hero-stats div {
  display: flex;
  flex-direction: column;
}

.page-faq .faq-hero-stats dt {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.page-faq .faq-hero-stats dd {
  font-family: var(--wp-font-heading);
  font-size: 1.5rem;
  color: var(--wp-secondary);
  margin: 2px 0 0;
}

/* 热门问题：浅色浮层与首屏错位重叠 */
.page-faq .faq-hot {
  position: relative;
  z-index: 2;
  margin-top: -76px;
  background: var(--wp-bg-light);
  padding: 84px 0 40px;
}

.page-faq .faq-hot-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.page-faq .faq-hot-head .eyebrow {
  color: var(--wp-primary-dark);
  margin: 0;
}

.page-faq .faq-hot-head h2 {
  margin: 0;
  font-family: var(--wp-font-heading);
  font-size: 1.7rem;
}

.page-faq .faq-hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: hot;
}

.page-faq .faq-hot-list li {
  counter-increment: hot;
}

.page-faq .faq-hot-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 136px;
  height: 100%;
  background: var(--wp-white);
  border: 1px solid rgba(209, 213, 219, 0.7);
  border-radius: var(--wp-radius);
  padding: 18px 20px;
  color: var(--wp-dark-text);
  text-decoration: none;
  box-shadow: var(--wp-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-faq .faq-hot-list a::before {
  content: "0" counter(hot);
  font-family: var(--wp-font-mono);
  font-size: 0.86rem;
  color: var(--wp-accent);
  margin-bottom: 14px;
}

.page-faq .faq-hot-list a::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--wp-font-mono);
  color: var(--wp-primary);
  transition: transform 0.25s ease;
}

.page-faq .faq-hot-list a:hover {
  transform: translateY(-4px);
  box-shadow: var(--wp-shadow-pop);
  border-color: var(--wp-primary);
}

.page-faq .faq-hot-list a:hover::after {
  transform: translateX(4px);
}

/* 主问答区：左侧粘性索引 + 右侧手风琴 */
.page-faq .faq-main {
  padding: 72px 0 16px;
  background: var(--wp-white);
}

.page-faq .faq-main-grid {
  display: grid;
  gap: 40px;
}

.page-faq .faq-toc {
  background:
    linear-gradient(160deg, rgba(91, 108, 255, 0.14), transparent 55%),
    var(--wp-bg-dark);
  color: var(--wp-white);
  border-radius: var(--faq-radius-lg);
  padding: 24px 20px;
  border-top: 5px solid var(--wp-accent);
}

.page-faq .faq-toc-title {
  margin: 0 0 16px;
  font-family: var(--wp-font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.page-faq .faq-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-faq .faq-toc nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-toc nav a span {
  font-family: var(--wp-font-mono);
  font-size: 0.78rem;
  color: var(--wp-secondary);
}

.page-faq .faq-toc nav a:hover {
  background: rgba(91, 108, 255, 0.25);
  transform: translateX(4px);
  color: var(--wp-white);
}

.page-faq .faq-toc-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.page-faq .faq-toc-note p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-faq .faq-toc-note p:last-child {
  margin-bottom: 0;
}

/* 分类区块 */
.page-faq .faq-cat {
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px dashed var(--wp-border);
}

.page-faq .faq-cat:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.page-faq .faq-cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--wp-font-heading);
  font-size: 1.48rem;
}

.page-faq .faq-cat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  background: var(--wp-primary);
  color: var(--wp-white);
  border-radius: 8px;
  font-family: var(--wp-font-mono);
  font-size: 0.86rem;
  transform: rotate(-2deg);
}

/* 手风琴条目 */
.page-faq .faq-item {
  background: var(--wp-white);
  border: 1px solid var(--wp-border);
  border-left-width: 5px;
  border-radius: var(--wp-radius-sm);
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(11, 13, 26, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-faq .faq-item:hover {
  box-shadow: var(--wp-shadow-card);
}

.page-faq .faq-item:target {
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.22), var(--wp-shadow-card);
}

.page-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
}

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

.page-faq .faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wp-bg-light);
  color: var(--wp-gray);
  font-family: var(--wp-font-mono);
  font-size: 1.1rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-faq .faq-item[open] summary::after {
  content: "−";
  background: var(--wp-accent);
  color: var(--wp-white);
}

.page-faq .faq-item-icon {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--wp-gray);
}

.page-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.page-faq .faq-item[open] .faq-answer {
  max-height: 800px;
  opacity: 1;
}

.page-faq .faq-answer p {
  margin: 0;
  padding: 16px 22px 20px 45px;
  border-top: 1px solid var(--wp-border);
  color: var(--wp-gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

.page-faq .faq-answer a {
  color: var(--wp-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 分类配色 */
.page-faq .faq-cat[data-cat="download"] .faq-item {
  border-left-color: var(--wp-secondary);
}

.page-faq .faq-cat[data-cat="download"] .faq-item-icon {
  background: var(--wp-secondary);
}

.page-faq .faq-cat[data-cat="gift"] .faq-item {
  border-left-color: var(--wp-accent);
}

.page-faq .faq-cat[data-cat="gift"] .faq-item-icon {
  background: var(--wp-accent);
}

.page-faq .faq-cat[data-cat="entry"] .faq-item {
  border-left-color: var(--wp-primary-dark);
}

.page-faq .faq-cat[data-cat="entry"] .faq-item-icon {
  background: var(--wp-primary);
}

.page-faq .faq-cat[data-cat="favorites"] .faq-item {
  border-left-color: var(--wp-primary);
}

.page-faq .faq-cat[data-cat="favorites"] .faq-item-icon {
  background: var(--wp-primary-dark);
}

/* 中段流程图：蓝紫渐变 + 橙色斜块装饰 */
.page-faq .faq-switch {
  background: linear-gradient(135deg, var(--wp-primary-dark), var(--wp-primary) 65%, #4B5BEF);
  color: var(--wp-white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, 0.08) 36% 36.4%, transparent 36.4%),
    radial-gradient(circle at 82% 30%, rgba(255, 122, 0, 0.32), transparent 30%);
  pointer-events: none;
}

.page-faq .faq-switch::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  background: var(--wp-accent);
  opacity: 0.36;
  transform: rotate(16deg);
  border-radius: 48px;
  pointer-events: none;
}

.page-faq .faq-switch-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.page-faq .faq-switch-text .eyebrow {
  color: var(--wp-accent-soft);
}

.page-faq .faq-switch-text h2 {
  font-family: var(--wp-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.18;
  margin: 0 0 14px;
}

.page-faq .faq-switch-text > p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin: 0;
}

.page-faq .faq-switch-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-faq .faq-switch-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.page-faq .faq-switch-steps li span {
  flex: 0 0 auto;
  font-family: var(--wp-font-mono);
  font-size: 0.86rem;
  color: var(--wp-secondary);
  font-weight: 700;
}

.page-faq .faq-switch-figure {
  margin: 0;
}

.page-faq .faq-switch-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--wp-white);
  padding: 10px;
  border-radius: var(--faq-radius-lg);
  box-shadow: var(--wp-shadow-pop);
  transform: rotate(-1.2deg);
}

/* 联系支持 */
.page-faq .faq-contact {
  background: var(--wp-bg-dark);
  color: var(--wp-white);
  padding: 72px 0;
  position: relative;
}

.page-faq .faq-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--wp-primary), var(--wp-secondary) 55%, var(--wp-accent));
}

.page-faq .faq-contact-head .eyebrow {
  color: var(--wp-accent);
}

.page-faq .faq-contact-head h2 {
  font-family: var(--wp-font-heading);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.page-faq .faq-contact-head p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  max-width: 860px;
  margin: 0;
}

.page-faq .faq-trust {
  list-style: none;
  margin: 36px 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-faq .faq-trust li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}

.page-faq .faq-trust strong {
  display: block;
  font-family: var(--wp-font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--wp-secondary);
  line-height: 1.2;
}

.page-faq .faq-trust span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-faq .faq-contact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-faq .faq-contact-grid li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--wp-primary);
  border-radius: var(--wp-radius);
  padding: 22px 20px;
}

.page-faq .faq-contact-grid li:nth-child(2) {
  border-top-color: var(--wp-accent);
}

.page-faq .faq-contact-grid li:nth-child(3) {
  border-top-color: var(--wp-secondary);
}

.page-faq .faq-contact-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.page-faq .faq-contact-value {
  display: block;
  margin-top: 10px;
  font-family: var(--wp-font-mono);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--wp-white);
  word-break: break-all;
}

.page-faq .faq-contact-desc {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-faq .faq-contact-note {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.7;
}

.page-faq .faq-contact-note a {
  color: var(--wp-accent-soft);
}

/* 响应式布局 */
@media (min-width: 720px) {
  .page-faq .faq-hot-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-faq .faq-trust {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-faq .faq-contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .page-faq .faq-hero {
    padding: 64px 0 150px;
  }

  .page-faq .faq-hero-inner h1,
  .page-faq .faq-hero-inner .faq-hero-lead,
  .page-faq .faq-hero-inner .faq-jump {
    max-width: 56%;
  }

  .page-faq .faq-hero-media {
    position: absolute;
    right: 24px;
    top: 120px;
    width: min(500px, 40%);
    margin-top: 0;
  }

  .page-faq .faq-hero-tag {
    bottom: 108px;
  }

  .page-faq .faq-hot-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-faq .faq-main-grid {
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
  }

  .page-faq .faq-toc {
    position: sticky;
    top: 100px;
  }

  .page-faq .faq-switch-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-answer {
    transition: none;
  }

  .page-faq .faq-item[open] .faq-answer {
    max-height: none;
  }

  .page-faq .faq-hot-list a,
  .page-faq .faq-jump a,
  .page-faq .faq-toc nav a,
  .page-faq .faq-item summary::after,
  .page-faq .faq-switch-figure img {
    transition: none;
    transform: none;
  }
}
