.page-faq {
  background: var(--light);
  scroll-behavior: smooth;
}

/* 面包屑 */
.page-faq .faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px 20px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.page-faq .faq-breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.page-faq .faq-breadcrumb a:hover {
  color: var(--orange);
}
.page-faq .faq-breadcrumb-sep {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Hero */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 52px;
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 101, 34, 0.22), transparent 32%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 58%, var(--teal) 100%);
  isolation: isolate;
}
.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-55deg, transparent 0px, transparent 18px, rgba(255, 255, 255, 0.03) 18px, rgba(255, 255, 255, 0.03) 19px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 88%);
  z-index: -1;
}
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 300px;
  height: 220px;
  background: var(--orange);
  opacity: 0.14;
  border-radius: 50% 50% 0 0;
  transform: rotate(-18deg) skewX(-8deg);
  z-index: -1;
}
.page-faq .faq-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.page-faq .faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px;
  background: rgba(242, 101, 34, 0.18);
  border: 1px solid rgba(242, 101, 34, 0.45);
  border-radius: var(--pill);
  color: #ffb88a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-faq .faq-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-faq .faq-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.75;
}

/* 搜索框 */
.page-faq .faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border-radius: var(--pill);
  box-shadow: 0 12px 32px rgba(10, 20, 30, 0.25);
}
.page-faq .faq-search-icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex: 0 0 auto;
}
.page-faq .faq-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.page-faq .faq-search input::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

/* 快捷标签 */
.page-faq .faq-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
.page-faq .faq-hero-tags-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}
.page-faq .faq-hero-tag {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-faq .faq-hero-tag:hover {
  background: rgba(242, 101, 34, 0.22);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* 主体两栏 */
.page-faq .faq-body {
  display: block;
  max-width: var(--container);
  margin-inline: auto;
  padding: 40px 20px 56px;
}

/* 分类导航（移动端横向胶囊） */
.page-faq .faq-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  background: #fff;
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.page-faq .faq-cats::-webkit-scrollbar {
  display: none;
}
.page-faq .faq-cats-title {
  flex: 0 0 auto;
  padding: 0 8px 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin: 0;
}
.page-faq .faq-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.page-faq .faq-cat-link:hover {
  background: rgba(46, 110, 78, 0.1);
  color: var(--green);
}
.page-faq .faq-cat-link[aria-current="location"] {
  background: var(--green);
  color: #fff;
}
.page-faq .faq-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat-dot, var(--green));
  flex: 0 0 auto;
}
.page-faq .faq-cat-link[aria-current="location"] .faq-cat-dot {
  background: #fff;
}

/* 问答列表 */
.page-faq .faq-list-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.page-faq .faq-list-desc {
  margin: 0 0 26px;
  color: var(--text-secondary);
  font-size: 14px;
}
.page-faq .faq-group {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}
.page-faq .faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.page-faq .faq-group-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
}
.page-faq #cat-feedback .faq-group-num {
  background: var(--orange);
}
.page-faq #cat-match .faq-group-num {
  background: var(--teal);
}
.page-faq #cat-history .faq-group-num {
  background: var(--wine);
}

/* FAQ 卡片 */
.page-faq .faq-item {
  position: relative;
  margin-bottom: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 90px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.page-faq .faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.page-faq .faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
  opacity: 0.9;
}
.page-faq #cat-feedback .faq-item::before {
  background: var(--orange);
}
.page-faq #cat-match .faq-item::before {
  background: var(--teal);
}
.page-faq #cat-history .faq-item::before {
  background: var(--wine);
}
.page-faq .faq-item:target {
  box-shadow: 0 0 0 3px var(--orange), var(--shadow-md);
}

/* summary */
.page-faq .faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.25s var(--ease);
}
.page-faq .faq-q::-webkit-details-marker {
  display: none;
}
.page-faq .faq-q:hover {
  color: var(--green);
}
.page-faq .faq-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.page-faq #cat-feedback .faq-q-mark {
  background: var(--orange);
}
.page-faq #cat-match .faq-q-mark {
  background: var(--teal);
}
.page-faq #cat-history .faq-q-mark {
  background: var(--wine);
}
.page-faq .faq-q-text {
  flex: 1 1 auto;
}
.page-faq .faq-q-chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.3s var(--ease);
}
.page-faq .faq-item[open] .faq-q-chevron {
  transform: rotate(180deg);
}
.page-faq .faq-item[open] .faq-q {
  color: var(--green);
}

/* 答案区 */
.page-faq .faq-a {
  padding: 6px 22px 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}
.page-faq .faq-a p {
  margin: 14px 0 0;
}
.page-faq .faq-item[open] .faq-a {
  animation: page-faq-fade-in 0.3s var(--ease);
}

@keyframes page-faq-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 反馈升级区 */
.page-faq .faq-escalate {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 10% 20%, rgba(242, 101, 34, 0.16), transparent 30%),
    linear-gradient(145deg, var(--blue-deep) 0%, var(--blue) 55%, var(--teal) 130%);
  color: #fff;
}
.page-faq .faq-escalate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 26px, rgba(255, 255, 255, 0.025) 26px, rgba(255, 255, 255, 0.025) 27px);
  pointer-events: none;
}
.page-faq .faq-escalate-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.page-faq .faq-escalate-head {
  margin-bottom: 36px;
}
.page-faq .faq-eyebrow--light {
  background: rgba(242, 101, 34, 0.2);
  border-color: rgba(242, 101, 34, 0.5);
  color: #ffd0b8;
  text-transform: capitalize;
  font-size: 13px;
}
.page-faq .faq-escalate-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.page-faq .faq-escalate-desc {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.75;
}
.page-faq .faq-escalate-grid {
  display: grid;
  gap: 32px;
}

/* 步骤 */
.page-faq .faq-step-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-faq .faq-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}
.page-faq .faq-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.35);
}
.page-faq .faq-step-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.page-faq .faq-step-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.65;
}
.page-faq .faq-escalate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
}

/* 图片区 */
.page-faq .faq-visuals {
  display: grid;
  gap: 20px;
}
.page-faq .faq-figure {
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}
.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.page-faq .faq-figure figcaption {
  padding: 12px 8px 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 更多帮助 */
.page-faq .faq-more {
  max-width: var(--container);
  margin-inline: auto;
  padding: 56px 20px 64px;
}
.page-faq .faq-more-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.page-faq .faq-more-grid {
  display: grid;
  gap: 16px;
}
.page-faq .faq-more-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.page-faq .faq-more-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.page-faq .faq-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(46, 110, 78, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.page-faq .faq-more-card strong {
  font-size: 16px;
  font-weight: 700;
}
.page-faq .faq-more-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* 桌面端 */
@media (min-width: 992px) {
  .page-faq .faq-breadcrumb {
    padding-top: 22px;
  }
  .page-faq .faq-hero {
    padding: 72px 0 80px;
  }
  .page-faq .faq-hero h1 {
    font-size: 56px;
  }
  .page-faq .faq-lead {
    font-size: 16px;
  }
  .page-faq .faq-search input {
    font-size: 16px;
  }
  .page-faq .faq-hero-tag {
    font-size: 14px;
  }

  .page-faq .faq-body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    padding: 56px 20px 72px;
  }

  .page-faq .faq-cats {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    margin-bottom: 0;
    border-radius: var(--radius-lg);
    overflow: visible;
  }
  .page-faq .faq-cats-title {
    padding: 8px 10px 14px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .page-faq .faq-cat-link {
    padding: 11px 14px;
    white-space: normal;
    border-radius: 12px;
  }

  .page-faq .faq-list-title {
    font-size: 32px;
  }
  .page-faq .faq-group-title {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .page-faq .faq-q {
    font-size: 16px;
    padding: 20px 24px 20px 28px;
  }
  .page-faq .faq-a {
    padding: 6px 28px 24px 28px;
  }

  .page-faq .faq-escalate {
    padding: 72px 0 84px;
  }
  .page-faq .faq-escalate-title {
    font-size: 36px;
  }
  .page-faq .faq-escalate-desc {
    font-size: 15px;
  }
  .page-faq .faq-escalate-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
  .page-faq .faq-step {
    padding: 18px 20px;
  }
  .page-faq .faq-step-body p {
    font-size: 14px;
  }
  .page-faq .faq-visuals {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .page-faq .faq-more {
    padding: 72px 20px 84px;
  }
  .page-faq .faq-more-title {
    font-size: 28px;
  }
  .page-faq .faq-more-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item[open] .faq-a {
    animation: none;
  }
  .page-faq .faq-item,
  .page-faq .faq-hero-tag,
  .page-faq .faq-more-card {
    transition: none;
  }
}

.page-faq {
  --cat-dot: transparent;
}
