/* ============================================
   page-faq ｜ 支持中心 · 专属样式
   作用域：.page-faq
   移动端优先，桌面增强
   ============================================ */
/* ---- 设计令牌（作用域内变量） ---- */
.page-faq {
  --faq-hero-bg: #1a1a1a;
  --faq-hero-accent: #d40000;
  --faq-hero-gold: #b8860b;
  --faq-nav-width: 220px;
  --faq-gap: 40px;
  --faq-border: 1px solid rgba(184, 134, 11, 0.25);
  --faq-radius: 6px;
  --faq-transition: 0.3s ease;
  color: var(--color-text, #fff);
  background: var(--color-bg, #2f2f2f);
}

/* ---- 页面标题区：对角错位色块 ---- */
.page-faq .faq-hero {
  position: relative;
  background: var(--faq-hero-bg);
  padding: 32px 0 48px;
  margin-bottom: 32px;
  overflow: hidden;
}
.page-faq .faq-hero__inner {
  position: relative;
  z-index: 2;
}
.page-faq .faq-hero__block {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--faq-hero-accent);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}
.page-faq .faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, Merriweather, Georgia, serif);
  font-size: 13px;
  color: var(--color-text-secondary, #ccc);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.page-faq .faq-breadcrumb a {
  color: var(--faq-hero-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--faq-transition);
}
.page-faq .faq-breadcrumb a:hover,
.page-faq .faq-breadcrumb a:focus-visible {
  border-bottom-color: var(--faq-hero-gold);
}
.page-faq .faq-breadcrumb__sep {
  color: var(--faq-hero-gold);
  opacity: 0.5;
}
.page-faq .faq-hero__text {
  position: relative;
  z-index: 2;
}
.page-faq .faq-hero__title {
  font-family: var(--font-heading, Impact, Oswald, sans-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text, #fff);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.page-faq .faq-hero__subtitle {
  font-family: var(--font-body, Merriweather, Georgia, serif);
  font-size: 16px;
  color: var(--color-text-secondary, #ccc);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
}

/* ---- 主体布局：移动端单栏 ---- */
.page-faq .faq-body {
  padding-bottom: 60px;
}
.page-faq .faq-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- 左侧分类导航（移动端：横向标签） ---- */
.page-faq .faq-nav {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-faq .faq-nav::-webkit-scrollbar {
  display: none;
}
.page-faq .faq-nav__list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: max-content;
}
.page-faq .faq-nav__item {
  flex-shrink: 0;
}
.page-faq .faq-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-surface, #1a1a1a);
  border: var(--faq-border);
  border-radius: var(--faq-radius);
  text-decoration: none;
  color: var(--color-text-secondary, #ccc);
  font-family: var(--font-heading, Impact, Oswald, sans-serif);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--faq-transition), border-color var(--faq-transition), color var(--faq-transition), box-shadow var(--faq-transition);
  white-space: nowrap;
}
.page-faq .faq-nav__link:hover {
  border-color: var(--faq-hero-gold);
  color: var(--color-text, #fff);
  box-shadow: 0 0 12px rgba(184, 134, 11, 0.15);
}
.page-faq .faq-nav__link:focus-visible {
  outline: 2px solid var(--faq-hero-gold);
  outline-offset: 2px;
}
.page-faq .faq-nav__num {
  font-family: var(--font-heading, Impact, Oswald, sans-serif);
  font-size: 13px;
  color: var(--faq-hero-gold);
  opacity: 0.7;
}
.page-faq .faq-nav__label {
  font-family: var(--font-heading, Impact, Oswald, sans-serif);
}

/* ---- 右侧问答面板 ---- */
.page-faq .faq-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---- 分类区块 ---- */
.page-faq .faq-category {
  background: var(--color-surface, #1a1a1a);
  border: var(--faq-border);
  border-radius: var(--faq-radius);
  padding: 24px 20px;
  transition: box-shadow var(--faq-transition);
}
.page-faq .faq-category:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.page-faq .faq-category__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.15);
}
.page-faq .faq-category__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.page-faq .faq-category__icon--contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(184, 134, 11, 0.08);
  border-radius: 4px;
}
.page-faq .faq-category__title {
  font-family: var(--font-heading, Impact, Oswald, sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text, #fff);
  margin: 0;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.page-faq .faq-category__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- 折叠面板（details/summary） ---- */
.page-faq .faq-item {
  border-bottom: 1px solid rgba(184, 134, 11, 0.08);
}
.page-faq .faq-item:last-child {
  border-bottom: none;
}
.page-faq .faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 8px 16px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--faq-transition);
  border-radius: 4px;
}
.page-faq .faq-item__question::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item__question:hover {
  background: rgba(184, 134, 11, 0.05);
}
.page-faq .faq-item__question:focus-visible {
  outline: 2px solid var(--faq-hero-gold);
  outline-offset: -2px;
}
.page-faq .faq-item__qtext {
  font-family: var(--font-body, Merriweather, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text, #fff);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.page-faq .faq-item__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform var(--faq-transition);
}
.page-faq .faq-item__arrow::before,
.page-faq .faq-item__arrow::after {
  content: '';
  position: absolute;
  background: var(--faq-hero-gold);
  border-radius: 1px;
  transition: transform var(--faq-transition);
}
.page-faq .faq-item__arrow::before {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
  transform: rotate(0deg);
}
.page-faq .faq-item__arrow::after {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
  transform: rotate(0deg);
}
/* 展开状态：箭头旋转45度 */
.page-faq .faq-item[open] .faq-item__arrow {
  transform: rotate(45deg);
}
.page-faq .faq-item[open] .faq-item__arrow::before {
  transform: rotate(0deg);
}
.page-faq .faq-item[open] .faq-item__arrow::after {
  transform: rotate(0deg);
}
.page-faq .faq-item__answer {
  padding: 0 12px 20px 16px;
  font-family: var(--font-body, Merriweather, Georgia, serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary, #ccc);
  border-left: 2px solid rgba(184, 134, 11, 0.25);
  margin-left: 12px;
}
.page-faq .faq-item__answer p {
  margin: 0 0 8px;
}
.page-faq .faq-item__answer p:last-child {
  margin-bottom: 0;
}
.page-faq .faq-item__highlight {
  color: var(--faq-hero-gold);
  font-weight: 600;
}

/* ---- 联系信息列表 ---- */
.page-faq .faq-contact-list {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-faq .faq-contact-list li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary, #ccc);
}
.page-faq .faq-contact-list li strong {
  color: var(--faq-hero-gold);
  font-weight: 600;
}
.page-faq .faq-contact-list a {
  color: var(--color-text, #fff);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
  transition: border-color var(--faq-transition);
}
.page-faq .faq-contact-list a:hover,
.page-faq .faq-contact-list a:focus-visible {
  border-bottom-color: var(--faq-hero-gold);
}
.page-faq .faq-contact-note {
  font-size: 14px;
  color: var(--color-text-secondary, #ccc);
  font-style: italic;
  margin-top: 4px;
}

/* ---- 页内链接区 ---- */
.page-faq .faq-more {
  margin-top: 8px;
  padding: 20px 24px;
  background: var(--color-surface, #1a1a1a);
  border: 1px solid rgba(184, 134, 11, 0.15);
  border-radius: var(--faq-radius);
  text-align: center;
}
.page-faq .faq-more p {
  font-family: var(--font-body, Merriweather, Georgia, serif);
  font-size: 15px;
  color: var(--color-text-secondary, #ccc);
  margin: 0;
}
.page-faq .faq-more__link {
  color: var(--faq-hero-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  transition: border-color var(--faq-transition), color var(--faq-transition);
}
.page-faq .faq-more__link:hover,
.page-faq .faq-more__link:focus-visible {
  border-bottom-color: var(--faq-hero-gold);
  color: var(--color-text, #fff);
}

/* ---- 桌面端增强（≥768px） ---- */
@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 48px 0 64px;
    margin-bottom: 40px;
  }
  .page-faq .faq-hero__block {
    width: 38%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.2;
  }
  .page-faq .faq-hero__title {
    font-size: 64px;
  }
  .page-faq .faq-hero__subtitle {
    font-size: 18px;
  }
  .page-faq .faq-breadcrumb {
    font-size: 14px;
  }
  .page-faq .faq-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--faq-gap);
  }
  /* 左侧导航：垂直固定 */
  .page-faq .faq-nav {
    width: var(--faq-nav-width);
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    z-index: 10;
    overflow: visible;
  }
  .page-faq .faq-nav__list {
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
  .page-faq .faq-nav__link {
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    transition: background var(--faq-transition), border-color var(--faq-transition), color var(--faq-transition);
  }
  .page-faq .faq-nav__link:hover {
    background: rgba(184, 134, 11, 0.08);
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: none;
  }
  .page-faq .faq-nav__num {
    font-size: 12px;
  }
  /* 问答面板宽度自适应 */
  .page-faq .faq-content {
    max-width: calc(100% - var(--faq-nav-width) - var(--faq-gap));
  }
  .page-faq .faq-category {
    padding: 32px 28px;
  }
  .page-faq .faq-category__title {
    font-size: 30px;
  }
  .page-faq .faq-category__icon {
    width: 56px;
    height: 56px;
  }
  .page-faq .faq-category__icon--contact {
    width: 56px;
    height: 56px;
  }
  .page-faq .faq-category__icon--contact svg {
    width: 48px;
    height: 48px;
  }
  .page-faq .faq-item__qtext {
    font-size: 17px;
  }
  .page-faq .faq-item__answer {
    font-size: 16px;
  }
  .page-faq .faq-more {
    padding: 24px 32px;
  }
  .page-faq .faq-more p {
    font-size: 16px;
  }
}

/* ---- 宽桌面微调（≥1024px） ---- */
@media (min-width: 1024px) {
  .page-faq .faq-hero__title {
    font-size: 72px;
  }
  .page-faq .faq-hero__subtitle {
    font-size: 20px;
  }
  .page-faq .faq-nav {
    width: 240px;
  }
  .page-faq .faq-nav__link {
    padding: 14px 20px;
    font-size: 15px;
  }
  .page-faq .faq-category {
    padding: 36px 32px;
  }
  .page-faq .faq-category__title {
    font-size: 32px;
  }
}

/* ---- 减少动画偏好 ---- */
@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
