.page-faq {
  --faq-line: rgba(244, 240, 230, 0.12);
  --faq-line-soft: rgba(244, 240, 230, 0.07);
  --faq-gold-soft: rgba(201, 162, 76, 0.34);
  --faq-panel: rgba(18, 51, 42, 0.72);
  --faq-ink-row: rgba(244, 240, 230, 0.026);
  display: block;
  position: relative;
}

/* ---------- 首屏框景 ---------- */
.page-faq .faq-hero {
  padding-block: clamp(18px, 4vw, 40px) clamp(30px, 5vw, 64px);
}

.page-faq .faq-hero__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-l);
  padding: clamp(30px, 5vw, 62px) clamp(20px, 4.4vw, 58px) clamp(34px, 5vw, 58px);
  background:
    radial-gradient(120% 110% at 6% -10%, rgba(201, 162, 76, 0.18), transparent 52%),
    radial-gradient(100% 100% at 104% 108%, rgba(53, 214, 240, 0.13), transparent 58%),
    radial-gradient(90% 90% at 62% 48%, rgba(139, 92, 246, 0.11), transparent 62%),
    linear-gradient(165deg, rgba(18, 51, 42, 0.94), rgba(8, 21, 15, 0.98));
  box-shadow: 0 34px 90px -48px rgba(0, 0, 0, 0.92);
}

.page-faq .faq-hero__frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(244, 240, 230, 0.08);
  border-radius: calc(var(--radius-l) - 8px);
  pointer-events: none;
}

.page-faq .faq-hero__frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--faq-gold-soft) 0 1px, transparent 1px 28px);
  opacity: 0.65;
  pointer-events: none;
}

.page-faq .faq-hero__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  background-image: repeating-linear-gradient(180deg, var(--faq-gold-soft) 0 1px, transparent 1px 28px);
  opacity: 0.42;
  pointer-events: none;
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero .breadcrumb {
  margin-bottom: 26px;
}

.page-faq .faq-hero__tag {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-faq .faq-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.95rem, 5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  background-image: linear-gradient(100deg, #F1D98F 0%, #C9A24C 48%, #F1D98F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 20ch;
}

.page-faq .faq-hero__lead {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.9;
  color: rgba(244, 240, 230, 0.82);
}

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

.page-faq .faq-jump a {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid rgba(244, 240, 230, 0.16);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.page-faq .faq-jump a:hover,
.page-faq .faq-jump a:focus-visible {
  color: var(--gold-hi);
  border-color: var(--faq-gold-soft);
  background-color: rgba(201, 162, 76, 0.1);
}

/* ---------- 三步自查 ---------- */
.page-faq .faq-steps {
  margin-top: 36px;
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-step {
  position: relative;
  border-bottom: 1px solid var(--faq-line);
}

.page-faq .faq-step > summary {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 18px;
  padding: 22px 46px 22px 0;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.28s var(--ease);
}

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

.page-faq .faq-step > summary:hover {
  background-color: rgba(201, 162, 76, 0.05);
}

.page-faq .faq-step > summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), margin-top 0.3s var(--ease);
}

.page-faq .faq-step[open] > summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}

.page-faq .faq-step__no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-faq .faq-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--paper);
}

.page-faq .faq-step__hint {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-faq .faq-step__body {
  padding: 0 46px 26px 0;
  color: rgba(244, 240, 230, 0.82);
}

.page-faq .faq-step__body p {
  margin: 0 0 12px;
  max-width: var(--measure);
  font-size: 15.5px;
  line-height: 1.85;
}

.page-faq .faq-step__body ul {
  margin: 0;
  padding-left: 1.1em;
  max-width: var(--measure);
  list-style: none;
}

.page-faq .faq-step__body li {
  position: relative;
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.78);
}

.page-faq .faq-step__body li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background-color: var(--blue);
}

/* ---------- 反馈模板 ---------- */
.page-faq .faq-report {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 36px;
}

.page-faq .faq-report__list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--faq-gold-soft);
}

.page-faq .faq-report__list li {
  padding: 8px 0 8px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.8);
}

.page-faq .faq-report__list strong {
  color: var(--gold-hi);
  font-weight: 600;
}

.page-faq .faq-mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  color: var(--blue);
  word-break: break-all;
}

.page-faq .faq-tpl {
  margin: 0;
  padding: 24px clamp(16px, 3vw, 30px);
  border: 1px solid var(--faq-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-m);
  background-image: linear-gradient(180deg, rgba(8, 21, 15, 0.97), rgba(18, 51, 42, 0.88));
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.05;
  color: #D6E4DB;
  overflow-x: auto;
  white-space: pre;
}

.page-faq .faq-tpl code {
  font-family: inherit;
}

.page-faq .faq-figure {
  margin: 40px 0 0;
}

.page-faq .faq-figure .media-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ---------- 胜率表 ---------- */
.page-faq .faq-odds__scroll {
  margin-top: 34px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-m);
  background-image: linear-gradient(180deg, rgba(8, 21, 15, 0.78), rgba(18, 51, 42, 0.5));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-odds__table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.page-faq .faq-odds__table caption {
  caption-side: top;
  padding: 20px 18px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-faq .faq-odds__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 18px;
  text-align: left;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  background-color: rgba(10, 28, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--faq-gold-soft);
}

.page-faq .faq-odds__table thead th[aria-sort] {
  cursor: pointer;
  padding-right: 34px;
  position: sticky;
}

.page-faq .faq-odds__table thead th[aria-sort]::after {
  content: "⇅";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(244, 240, 230, 0.35);
}

.page-faq .faq-odds__table thead th[aria-sort="descending"]::after {
  content: "▼";
  color: var(--gold-hi);
}

.page-faq .faq-odds__table thead th[aria-sort="ascending"]::after {
  content: "▲";
  color: var(--gold-hi);
}

.page-faq .faq-odds__table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--faq-line-soft);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.84);
  white-space: nowrap;
}

.page-faq .faq-odds__table tbody tr:nth-child(even) {
  background-color: var(--faq-ink-row);
}

.page-faq .faq-odds__table tbody tr:hover {
  background-color: rgba(201, 162, 76, 0.08);
}

.page-faq .faq-odds__table tbody tr.is-new {
  background-color: rgba(139, 92, 246, 0.07);
}

.page-faq .faq-odds__table .numc {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--mist);
}

.page-faq .faq-odds__name {
  color: var(--paper);
  font-weight: 500;
}

.page-faq .faq-odds__name .tag {
  margin-left: 8px;
  vertical-align: middle;
}

.page-faq .faq-odds__rate {
  position: relative;
  padding-bottom: 22px !important;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold-hi) !important;
}

.page-faq .faq-odds__rate i {
  position: absolute;
  left: 18px;
  bottom: 10px;
  height: 2px;
  width: calc((100% - 36px) * var(--w) / 100);
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--violet), var(--blue));
  opacity: 0.85;
}

.page-faq .faq-odds__note {
  margin: 22px 0 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist);
}

.page-faq .faq-odds__note a {
  color: var(--blue);
}

.page-faq .faq-odds__texture {
  margin: 46px 0 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--faq-line-soft);
}

.page-faq .faq-odds__texture img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.72;
}

/* ---------- 段位问答 ---------- */
.page-faq .faq-faq {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.page-faq .faq-q {
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-m);
  background-image: linear-gradient(180deg, rgba(18, 51, 42, 0.55), rgba(10, 28, 23, 0.75));
  transition: border-color 0.28s var(--ease);
}

.page-faq .faq-q[open] {
  border-color: var(--faq-gold-soft);
}

.page-faq .faq-q > summary {
  position: relative;
  padding: 20px 52px 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--paper);
}

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

.page-faq .faq-q > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  margin-top: 0;
  border-radius: 0 3px 3px 0;
  background-image: linear-gradient(180deg, var(--gold-hi), var(--gold));
  transition: height 0.3s var(--ease), margin-top 0.3s var(--ease);
}

.page-faq .faq-q[open] > summary::before {
  height: 60%;
  margin-top: -30%;
}

.page-faq .faq-q > summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.page-faq .faq-q[open] > summary::after {
  content: "–";
}

.page-faq .faq-q__body {
  padding: 0 22px 22px;
}

.page-faq .faq-q__body p {
  margin: 0;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(244, 240, 230, 0.78);
}

.page-faq .faq-q__body a {
  color: var(--blue);
}

/* ---------- 换设备 ---------- */
.page-faq .faq-device {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-faq .faq-device .section-title {
  margin-top: 10px;
  margin-bottom: 18px;
}

.page-faq .faq-device__steps {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-faq .faq-device__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--faq-line-soft);
}

.page-faq .faq-device__no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.page-faq .faq-device__steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.82);
}

.page-faq .faq-device__note {
  padding: 26px clamp(18px, 3vw, 30px);
}

.page-faq .faq-device__note-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-hi);
}

.page-faq .faq-device__note ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-device__note li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.78);
  border-bottom: 1px solid var(--faq-line-soft);
}

.page-faq .faq-device__note li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-faq .faq-device__note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--blue);
  transform: rotate(45deg);
}

.page-faq .faq-device__note a {
  color: var(--blue);
}

/* ---------- 处理流程 ---------- */
.page-faq .faq-sla {
  position: relative;
  margin: 40px 0 0;
  padding: 0 0 0 34px;
  list-style: none;
}

.page-faq .faq-sla::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background-image: linear-gradient(180deg, var(--gold), rgba(53, 214, 240, 0.4), transparent);
}

.page-faq .faq-sla__node {
  position: relative;
  padding-bottom: 34px;
}

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

.page-faq .faq-sla__node::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background-color: var(--ink);
  transition: box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.page-faq .faq-sla__node:hover::before {
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 8px rgba(201, 162, 76, 0.22);
}

.page-faq .faq-sla__time {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.page-faq .faq-sla__node h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--paper);
}

.page-faq .faq-sla__node p {
  margin: 0;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.78);
}

.page-faq .faq-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 44px;
  padding: clamp(24px, 4vw, 38px);
  border-left: 3px solid var(--gold);
}

.page-faq .faq-cta__text h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold-hi);
}

.page-faq .faq-cta__text p {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(244, 240, 230, 0.8);
}

.page-faq .faq-cta__text a {
  color: var(--blue);
}

.page-faq .faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-faq .faq-report {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
  }

  .page-faq .faq-sla {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-left: 0;
  }

  .page-faq .faq-sla::before {
    left: 0;
    right: 0;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 1px;
    background-image: linear-gradient(90deg, var(--gold), rgba(53, 214, 240, 0.4), transparent);
  }

  .page-faq .faq-sla__node {
    padding: 34px 0 0;
  }

  .page-faq .faq-sla__node::before {
    left: 0;
    top: 0;
  }

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

@media (min-width: 980px) {
  .page-faq .faq-device {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .page-faq .faq-odds__table {
    min-width: 100%;
  }
}

@media (max-width: 619px) {
  .page-faq .faq-hero__title {
    max-width: none;
  }

  .page-faq .faq-step > summary {
    padding-right: 40px;
  }

  .page-faq .faq-step__hint {
    font-size: 11px;
  }

  .page-faq .faq-q > summary {
    padding: 18px 46px 18px 18px;
  }

  .page-faq .faq-q__body {
    padding: 0 18px 20px;
  }

  .page-faq .faq-tpl {
    font-size: 12px;
    line-height: 1.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-step > summary,
  .page-faq .faq-step > summary::after,
  .page-faq .faq-q > summary::before,
  .page-faq .faq-q > summary::after,
  .page-faq .faq-sla__node::before,
  .page-faq .faq-jump a {
    transition: none;
  }
}

.page-faq {
  --w: 1rem;
}
