.page-faq {
  --faq-pad-block: clamp(40px, 7vw, 88px);
  --faq-ring: 2px 26px 2px 26px;
  background:
    radial-gradient(115% 62% at 92% 0%, rgba(46, 230, 214, 0.09), transparent 60%),
    radial-gradient(80% 52% at 0% 40%, rgba(255, 122, 26, 0.06), transparent 66%),
    var(--ink-950);
  color: var(--white-100);
  font-family: var(--font-body);
  padding-bottom: clamp(48px, 8vw, 112px);
  overflow-x: clip;
}

.page-faq .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 面包屑 ---------- */
.page-faq .breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px) var(--gutter) 0;
  font-size: 13px;
  color: var(--grey-300);
}
.page-faq .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-faq .breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-700);
}
.page-faq .breadcrumb a {
  color: var(--grey-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-faq .breadcrumb a:hover,
.page-faq .breadcrumb a:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}
.page-faq .breadcrumb [aria-current="page"] {
  color: var(--white-100);
}

/* ---------- 首屏 ---------- */
.faq-hero {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 60px) var(--gutter) clamp(40px, 6vw, 84px);
  display: grid;
  gap: clamp(30px, 5vw, 60px);
}
.faq-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.faq-hero .lede {
  max-width: 48ch;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.78;
  color: var(--grey-300);
}

.faq-quick {
  display: grid;
  gap: 1px;
  margin-top: clamp(26px, 4vw, 40px);
  background: var(--line-700);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
  overflow: hidden;
}
.faq-quick__item {
  display: block;
  padding: 18px 20px 20px;
  background: var(--ink-900);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.faq-quick__item:hover,
.faq-quick__item:focus-visible {
  background: var(--ink-800);
}
.faq-quick__item:focus-visible {
  outline: 2px solid var(--lemon-300);
  outline-offset: -2px;
}
.faq-quick__no {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--cyan-400);
}
.faq-quick__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: clamp(18px, 1.9vw, 22px);
  letter-spacing: 0.01em;
}
.faq-quick__note {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.66;
  color: var(--grey-300);
}

.faq-hero__figure {
  position: relative;
  margin: 0;
}
.faq-hero__figure::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 46px;
  width: 3px;
  height: 34%;
  background: linear-gradient(180deg, var(--cyan-400), rgba(255, 122, 26, 0.7));
  border-radius: 3px;
}
.faq-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ink-800);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
}
.faq-hero__figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey-300);
}

/* ---------- 章节骨架 ---------- */
.faq-section {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--faq-pad-block) var(--gutter);
}
.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: clamp(48px, 8vw, 96px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), var(--orange-500));
}
.faq-section__head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 42px);
}
.page-faq .section-number {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  color: var(--white-100);
  opacity: 0.26;
}
.faq-section h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.faq-section__intro {
  max-width: 64ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--grey-300);
}

/* ---------- 三步流程 ---------- */
.step-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-700);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
  overflow: hidden;
}
.step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: start;
  padding: clamp(20px, 3vw, 30px) clamp(16px, 2.4vw, 30px);
  background: var(--ink-950);
}
.step-item__no {
  padding-top: 3px;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1;
  color: var(--cyan-400);
}
.step-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: 0.01em;
}
.step-item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--grey-300);
}
.step-item a {
  color: var(--cyan-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 230, 214, 0.42);
}
.step-item a:hover,
.step-item a:focus-visible {
  border-bottom-color: var(--lemon-300);
  color: var(--lemon-300);
}

/* ---------- 适配清单表格 ---------- */
.adapt-scroll {
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.adapt-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 15px;
}
.adapt-table caption {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  color: var(--grey-300);
  border-bottom: 1px solid var(--line-700);
}
.adapt-table th,
.adapt-table td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-700);
  line-height: 1.7;
}
.adapt-table thead th {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--grey-300);
  background: var(--ink-900);
}
.adapt-table tbody th {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
  color: var(--white-100);
  white-space: nowrap;
}
.adapt-table tbody td {
  color: var(--grey-300);
}
.adapt-table tbody tr:nth-child(even) {
  background: var(--ink-900);
}
.adapt-table tbody tr:last-child th,
.adapt-table tbody tr:last-child td {
  border-bottom: 0;
}
.adapt-table .num {
  color: var(--lemon-300);
  white-space: nowrap;
}
.adapt-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--sage-500);
  font-size: 14px;
  line-height: 1.72;
  color: var(--grey-300);
}

/* ---------- 回访编号树 ---------- */
.faq-split {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}
.code-tree {
  position: relative;
  display: grid;
  gap: clamp(16px, 2.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.code-tree::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan-400), var(--line-700) 45%, var(--line-700));
}
.code-tree__item {
  position: relative;
  padding-left: 28px;
}
.code-tree__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--cyan-400);
  background: var(--ink-950);
}
.code-tree__code {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  color: var(--orange-500);
}
.code-tree__item h3 {
  margin: 6px 0 6px;
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.01em;
}
.code-tree__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.74;
  color: var(--grey-300);
}
.faq-figure {
  margin: 0;
}
.faq-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ink-800);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
}
.faq-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--grey-300);
}

/* ---------- 折叠问答 ---------- */
.faq-accordion {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--ink-900);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-item[open] {
  border-color: rgba(46, 230, 214, 0.42);
}
.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px clamp(16px, 2.4vw, 26px);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--white-100);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "Q";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-400);
}
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--grey-300);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover::after,
.faq-item summary:focus-visible::after {
  color: var(--lemon-300);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--lemon-300);
  outline-offset: -2px;
}
.faq-item__body {
  padding: 0 clamp(16px, 2.4vw, 26px) 20px calc(clamp(16px, 2.4vw, 26px) + 27px);
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--grey-300);
}
.faq-item__body p {
  margin: 0;
}

/* ---------- 逐场回看 ---------- */
.replay-note {
  padding: clamp(18px, 2.8vw, 30px) clamp(18px, 3vw, 34px);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--faq-ring);
  background: linear-gradient(96deg, rgba(255, 122, 26, 0.1), rgba(7, 16, 25, 0) 72%), var(--ink-900);
}
.replay-note p {
  margin: 0;
  font-size: clamp(15.5px, 1.3vw, 17px);
  line-height: 1.82;
  color: var(--white-100);
}
.replay-note a {
  color: var(--orange-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 26, 0.5);
}
.replay-note a:hover,
.replay-note a:focus-visible {
  color: #ffa25c;
  border-bottom-color: #ffa25c;
}
.replay-points {
  display: grid;
  gap: 1px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line-700);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
  overflow: hidden;
}
.replay-points li {
  padding: 16px clamp(16px, 2.4vw, 26px);
  background: var(--ink-950);
  font-size: 15px;
  line-height: 1.72;
  color: var(--grey-300);
}
.replay-points .num {
  display: inline-block;
  margin-right: 10px;
  color: var(--cyan-400);
}

/* ---------- 工单 ---------- */
.ticket-grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 36px);
}
.ticket-scope {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.ticket-scope li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: var(--ink-900);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
  font-size: 15px;
  line-height: 1.72;
  color: var(--grey-300);
}
.ticket-scope li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--cyan-400);
  transform: rotate(45deg);
}
.ticket-contact {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-700);
  border-radius: var(--faq-ring);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
}
.ticket-contact__lead {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--white-100);
}
.contact-pair {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.contact-pair__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-700);
}
.contact-pair__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-pair dt {
  min-width: 84px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey-300);
}
.contact-pair dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--white-100);
  word-break: break-word;
}
.ticket-contact .btn {
  display: inline-block;
}

/* ---------- 动效 ---------- */
@keyframes faq-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page-faq [data-reveal].is-visible {
  animation: faq-rise 0.5s var(--ease) both;
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .faq-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .replay-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .faq-section__head {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 6px 32px;
  }
  .page-faq .section-number {
    grid-row: 1 / span 2;
    padding-top: 8px;
  }
  .faq-section h2 {
    grid-column: 2;
  }
  .faq-section__intro {
    grid-column: 2;
  }
  .step-item {
    align-items: center;
  }
}

@media (min-width: 960px) {
  .faq-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: end;
  }
  .faq-hero__figure {
    padding-bottom: clamp(0px, 2vw, 18px);
  }
}

@media (min-width: 1000px) {
  .faq-split {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: start;
  }
  .faq-figure {
    position: sticky;
    top: 128px;
  }
  .ticket-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .faq-accordion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .faq-item:nth-child(odd) {
    border-radius: 2px 26px 26px 2px;
  }
  .faq-item:nth-child(even) {
    border-radius: 26px 2px 2px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq [data-reveal].is-visible {
    animation: none;
  }
  .faq-quick__item,
  .faq-item,
  .faq-item summary::after {
    transition: none;
  }
}
