/* ========== 支持中心 FAQ 页面专属样式 ========== */
.page-faq {
  --faq-sidebar-w: 280px;
  background: var(--c-white);
}

.page-faq ::selection {
  background: var(--c-gold);
  color: var(--c-blue);
}

/* ---------- Hero 首屏 ---------- */
.page-faq .faq-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.25) 0%, transparent 40%),
    linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-light) 100%);
  padding: calc(var(--header-h) + 32px) 0 48px;
  margin-top: calc(var(--header-h) * -1);
  position: relative;
  overflow: hidden;
  color: var(--c-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: 60%;
  height: 120%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(212, 175, 55, 0.15) 0px,
    rgba(212, 175, 55, 0.15) 1px,
    transparent 1px,
    transparent 12px
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

.page-faq .faq-hero .container {
  position: relative;
  z-index: 2;
}

.page-faq .breadcrumb {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

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

.page-faq .breadcrumb a:hover {
  color: var(--c-gold);
}

.page-faq .breadcrumb-sep {
  margin: 0 8px;
  color: var(--c-gold);
}

.page-faq .breadcrumb-current {
  color: var(--c-white);
}

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

.page-faq .faq-hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-gold);
  margin-bottom: 16px;
}

.page-faq .faq-hero-copy .eyebrow::after {
  content: "";
  height: 1px;
  width: 48px;
  background: var(--c-gold);
}

.page-faq .faq-hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1.1;
  color: var(--c-white);
  margin: 0 0 20px;
  max-width: 8em;
}

.page-faq .faq-hero-lead {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42em;
  margin-bottom: 32px;
}

.page-faq .faq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-faq .faq-hero-actions .btn {
  min-width: 160px;
  justify-content: center;
}

.page-faq .faq-hero-actions .btn-ghost {
  border-color: var(--c-white);
  color: var(--c-white);
}

.page-faq .faq-hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-faq .faq-hero-aside {
  max-width: 420px;
}

.page-faq .faq-hero-aside .panel-cut {
  padding: 32px 40px 32px 32px;
  border: 1px solid var(--c-gold);
  position: relative;
  overflow: hidden;
}

.page-faq .faq-hero-aside .panel-cut::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 24px 24px 0;
  border-style: solid;
  border-color: transparent var(--c-gold) transparent transparent;
}

.page-faq .faq-aside-mark {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-gold);
  display: block;
  margin-bottom: 24px;
}

.page-faq .aside-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue-light);
  margin-bottom: 4px;
}

.page-faq .aside-value {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--c-blue);
  margin-bottom: 8px;
}

.page-faq .aside-value .num {
  font-size: 36px;
  color: var(--c-red);
  font-family: var(--font-num);
}

.page-faq .aside-note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-ink);
}

.page-faq .aside-divider {
  border: 0;
  border-top: 1px solid var(--c-gold-soft);
  margin: 20px 0;
}

/* ---------- 主体布局 ---------- */
.page-faq .faq-body {
  padding: 64px 0 80px;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.page-faq .faq-layout > * {
  min-width: 0;
}

/* 目录 */
.page-faq .faq-toc-inner {
  border-left: 2px solid var(--c-gold);
  padding: 8px 0 8px 24px;
}

.page-faq .faq-toc-inner .eyebrow {
  color: var(--c-blue-light);
  margin-bottom: 16px;
}

.page-faq .faq-toc-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-faq .faq-toc-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--c-blue);
  text-decoration: none;
  padding: 10px 12px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.page-faq .faq-toc-list a::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--c-red);
  transition: height 0.3s var(--ease);
}

.page-faq .faq-toc-list a:hover::before,
.page-faq .faq-toc-list a:focus::before {
  height: 100%;
}

.page-faq .faq-toc-list a:hover {
  background: var(--c-gray);
  color: var(--c-blue);
}

.page-faq .faq-toc-list .toc-num {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--c-red);
}

.page-faq .faq-toc-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-gold);
}

.page-faq .faq-toc-foot p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-ink);
  margin-bottom: 12px;
}

/* 主体 */
.page-faq .faq-main {
  display: grid;
  gap: 32px;
}

.page-faq .faq-overview {
  background: var(--c-gray);
  border-left: 3px solid var(--c-gold);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-ink);
}

.page-faq .faq-overview p {
  margin: 0;
}

.page-faq .faq-highlight {
  font-family: var(--font-num);
  color: var(--c-red);
  background: var(--c-red-soft);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
  white-space: nowrap;
}

.page-faq .faq-quick-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 20px;
  background: var(--c-gray);
  border-left: 3px solid var(--c-gold);
}

.page-faq .faq-quick-label {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--c-blue);
  margin-right: 8px;
}

.page-faq .faq-quick-filter a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--c-blue-light);
  text-decoration: none;
  border: 1px solid var(--c-gold-soft);
  padding: 4px 12px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.page-faq .faq-quick-filter a:hover {
  background: var(--c-blue);
  color: var(--c-white);
}

/* FAQ 分区 */
.page-faq .faq-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 24px;
}

.page-faq .faq-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--c-gray);
  padding-bottom: 16px;
}

.page-faq .faq-section-head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
}

.page-faq .faq-section-num {
  font-family: var(--font-num);
  font-size: 28px;
  color: var(--c-gold);
  line-height: 1;
  flex-shrink: 0;
}

.page-faq .faq-section-head h2 {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--c-blue);
  margin: 0;
  flex-shrink: 0;
}

.page-faq .faq-section-content {
  display: grid;
  gap: 16px;
}

/* 手风琴 */
.page-faq .faq-item {
  border: 1px solid var(--c-gray);
  border-left: 3px solid var(--c-gold);
  background: var(--c-white);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-faq .faq-item summary {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--c-blue);
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.page-faq .faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-gold);
  border-bottom: 2px solid var(--c-gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.page-faq .faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.page-faq .faq-item summary:hover {
  background: var(--c-gray);
}

.page-faq .faq-item[open] {
  border-left-color: var(--c-gold);
  border-color: var(--c-gold);
  background: linear-gradient(135deg, var(--c-white) 0%, var(--c-gold-soft) 180%);
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.08);
}

.page-faq .faq-item:target {
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px var(--c-red-soft);
}

.page-faq .faq-answer {
  padding: 16px 20px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink);
  border-top: 1px dashed var(--c-gold-soft);
}

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

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

.page-faq .faq-answer a {
  color: var(--c-blue-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: var(--font-body);
}

.page-faq .faq-answer a:hover {
  color: var(--c-red);
}

/* 中奖规则图 */
.page-faq .faq-figure {
  margin: 0 0 8px;
  max-width: 500px;
  border: 1px solid var(--c-gray);
  padding: 16px;
  background: var(--c-gray);
}

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

.page-faq .faq-figure figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-blue-light);
  padding-top: 12px;
  text-align: center;
}

/* 客户端图标 */
.page-faq .faq-icon-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-faq .faq-icon-block img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 50%;
  border: 1px solid var(--c-gold);
  padding: 12px;
  background: var(--c-white);
}

.page-faq .faq-img-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

/* 底部帮助 */
.page-faq .faq-more-help {
  position: relative;
  margin-top: 8px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background:
    repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.1) 0px, rgba(212, 175, 55, 0.1) 1px, transparent 1px, transparent 8px),
    linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-light) 100%);
  color: var(--c-white);
  overflow: hidden;
}

.page-faq .faq-more-help::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-width: 32px 32px 0 0;
  border-style: solid;
  border-color: var(--c-gold) transparent transparent transparent;
}

.page-faq .faq-more-help-text {
  min-width: 260px;
  flex: 1;
}

.page-faq .faq-more-help-text h2 {
  font-family: var(--font-head);
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--c-white);
}

.page-faq .faq-more-help-text p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.page-faq .faq-more-help .btn {
  flex-shrink: 0;
}

/* ---------- 平板与桌面适配 ---------- */
@media (min-width: 768px) {
  .page-faq .faq-img-row {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .page-faq .faq-quick-filter {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero {
    padding: calc(var(--header-h) + 64px) 0 96px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }

  .page-faq .faq-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 60px;
  }

  .page-faq .faq-layout {
    grid-template-columns: var(--faq-sidebar-w) minmax(0, 1fr);
    gap: 64px;
  }

  .page-faq .faq-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-faq .faq-body {
    padding: 80px 0 96px;
  }

  .page-faq .faq-more-help-text {
    max-width: 70%;
  }
}
