.page-faq {
  --faq-gap: 28px;
  --faq-side-w: 348px;
}

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

/* ---------- 首屏 ---------- */

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 44px) 0 clamp(30px, 4.6vw, 56px);
  border-bottom: var(--edge-w) solid var(--edge);
  background:
    radial-gradient(circle at 92% 4%, rgba(232, 163, 61, 0.22), transparent 44%),
    linear-gradient(150deg, #123A44 0%, #0B0E12 56%, #0B0E12 100%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -46%;
  width: 74%;
  height: 132%;
  background: linear-gradient(208deg, rgba(47, 211, 196, 0.18), rgba(232, 163, 61, 0.12) 52%, transparent 78%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

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

.page-faq .faq-hero .h1 {
  margin: 14px 0 0;
  max-width: 18ch;
}

.page-faq .faq-lede {
  margin-top: 18px;
  max-width: 62ch;
  color: #DED6C8;
}

.page-faq .faq-lede p {
  font-size: 15.5px;
  line-height: 1.8;
}

.page-faq .faq-lede p + p {
  margin-top: 14px;
}

.page-faq .faq-stats {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.page-faq .faq-stat {
  min-width: 0;
  padding-left: 14px;
  border-left: var(--edge-w) solid var(--gold);
}

.page-faq .faq-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-lite);
}

.page-faq .faq-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 720px) {
  .page-faq .faq-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ---------- 筛选工具栏 ---------- */

.page-faq .faq-wrap {
  position: relative;
}

.page-faq .faq-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-faq .faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-faq .faq-cat {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: transparent;
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.page-faq .faq-cat:hover {
  color: var(--gold-lite);
  border-color: var(--gold);
}

.page-faq #cat-all:checked ~ .faq-toolbar .faq-cat[for="cat-all"],
.page-faq #cat-hand:checked ~ .faq-toolbar .faq-cat[for="cat-hand"],
.page-faq #cat-season:checked ~ .faq-toolbar .faq-cat[for="cat-season"],
.page-faq #cat-account:checked ~ .faq-toolbar .faq-cat[for="cat-account"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.page-faq .faq-radio:focus-visible ~ .faq-toolbar .faq-cat {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-faq #cat-hand:checked ~ .faq-layout .faq-group:not([data-cat="hand"]),
.page-faq #cat-season:checked ~ .faq-layout .faq-group:not([data-cat="season"]),
.page-faq #cat-account:checked ~ .faq-layout .faq-group:not([data-cat="account"]) {
  display: none;
}

/* ---------- 主栅格 ---------- */

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--faq-gap);
  align-items: start;
}

.page-faq .faq-qa {
  min-width: 0;
}

.page-faq .faq-band {
  margin: 0 0 22px;
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  background: var(--ink-2);
}

.page-faq .faq-band img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  opacity: 0.55;
}

/* ---------- 问题分组 ---------- */

.page-faq .faq-group {
  background: var(--ink-2);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  margin-bottom: 22px;
  overflow: hidden;
}

.page-faq .faq-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: var(--edge-w) solid var(--edge);
  background: linear-gradient(90deg, rgba(232, 163, 61, 0.12), transparent 62%);
}

.page-faq .faq-group__head .h3 {
  margin: 0;
  font-size: 18px;
}

.page-faq .faq-group__count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
}

/* ---------- 手风琴 ---------- */

.page-faq .qa {
  border-bottom: 1px solid var(--edge);
}

.page-faq .qa:last-child {
  border-bottom: 0;
}

.page-faq .qa summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px 15px 15px;
  border-left: 3px solid transparent;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.page-faq .qa summary::marker {
  content: "";
}

.page-faq .qa summary:hover {
  background: rgba(232, 163, 61, 0.07);
  border-left-color: var(--gold);
  color: var(--gold-lite);
}

.page-faq .qa summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-faq .qa__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.page-faq .qa__q {
  flex: 1 1 auto;
  min-width: 0;
}

.page-faq .qa[open] summary {
  border-left-color: var(--gold);
  background: rgba(232, 163, 61, 0.09);
  color: var(--gold-lite);
}

.page-faq .qa[open] .qa__idx {
  color: var(--gold);
}

.page-faq .qa__body {
  padding: 2px 18px 18px 49px;
  font-size: 14.5px;
  line-height: 1.78;
  color: #DED6C8;
  animation: faq-unfold 0.22s ease;
}

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

.page-faq .qa__link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 211, 196, 0.45);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-faq .qa__link:hover {
  color: var(--gold-lite);
  border-color: var(--gold-lite);
}

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

/* ---------- 右侧三步卡 ---------- */

.page-faq .faq-side {
  min-width: 0;
}

.page-faq .faq-steps {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.page-faq .faq-steps__img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-bottom: var(--edge-w) solid var(--edge);
}

.page-faq .faq-steps__body {
  padding: 18px 18px 22px;
}

.page-faq .faq-steps__kicker {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-faq .faq-steps .h3 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.4;
}

.page-faq .faq-step-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-faq .faq-step-list::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 20px;
  bottom: 34px;
  border-left: 2px dashed var(--cyan);
  opacity: 0.42;
}

.page-faq .faq-step {
  position: relative;
  padding: 0 0 22px 52px;
  outline: none;
}

.page-faq .faq-step:last-child {
  padding-bottom: 0;
}

.page-faq .faq-step__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--edge-w) solid var(--gold);
  background: var(--ink);
  color: var(--gold-lite);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-faq .faq-step__name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.5;
  margin-bottom: 6px;
}

.page-faq .faq-step:hover .faq-step__num,
.page-faq .faq-step:focus-within .faq-step__num,
.page-faq .faq-step:focus .faq-step__num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}

.page-faq .faq-step__meta {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-faq .faq-step__meta b {
  color: var(--paper);
  font-weight: 700;
}

.page-faq .faq-step__tip {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--chili);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.page-faq .faq-steps__foot {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 1020px) {
  .page-faq .faq-layout {
    grid-template-columns: minmax(0, 1fr) var(--faq-side-w);
    gap: 34px;
  }

  .page-faq .faq-steps {
    position: sticky;
    top: 84px;
  }
}

/* ---------- 容易判错的牌型 ---------- */

.page-faq .faq-edge__lede {
  margin-top: 16px;
  max-width: 64ch;
}

.page-faq .faq-table-wrap {
  margin-top: 24px;
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow-hard);
  overflow-x: auto;
}

.page-faq .faq-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.page-faq .faq-table thead th {
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: var(--edge-w) solid var(--edge);
}

.page-faq .faq-table td {
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  vertical-align: top;
  border-bottom: 1px solid var(--edge);
  color: #DED6C8;
}

.page-faq .faq-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-faq .faq-table td:first-child {
  color: var(--paper);
  font-weight: 700;
}

.page-faq .td-ok {
  color: var(--gold);
  font-weight: 700;
}

.page-faq .td-warn {
  color: var(--chili);
  font-weight: 700;
}

.page-faq .faq-edge__note {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 反馈通道 ---------- */

.page-faq .faq-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: clamp(22px, 4vw, 44px);
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  background:
    radial-gradient(circle at 88% 0%, rgba(232, 163, 61, 0.2), transparent 52%),
    linear-gradient(140deg, #123A44 0%, #151A21 62%, #0B0E12 100%);
}

.page-faq .faq-help__main .h2 {
  margin: 8px 0 0;
  max-width: 16ch;
}

.page-faq .faq-help__main .body-copy {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.78;
  color: #DED6C8;
}

.page-faq .faq-help__list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-faq .faq-help__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #DED6C8;
}

.page-faq .faq-help__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.page-faq .faq-help__card {
  align-self: start;
  padding: 20px;
  border: var(--edge-w) solid var(--edge);
  border-radius: var(--radius);
  background: rgba(11, 14, 18, 0.72);
}

.page-faq .faq-help__k {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-faq .faq-help__v {
  margin: 4px 0 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--gold-lite);
  word-break: break-word;
}

.page-faq .faq-help__note {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 900px) {
  .page-faq .faq-help {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .qa__body {
    animation: none;
  }

  .page-faq .qa summary,
  .page-faq .qa__link,
  .page-faq .faq-cat,
  .page-faq .faq-step__num {
    transition: none;
  }
}
