.page-faq {
  --faq-shadow-amber: 7px 7px 0 0 rgba(255, 176, 32, 0.14);
  background:
    radial-gradient(120% 55% at 88% -8%, rgba(0, 240, 181, 0.08), transparent 62%),
    radial-gradient(90% 40% at 0% 42%, rgba(255, 176, 32, 0.05), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  padding-bottom: clamp(52px, 8vw, 92px);
}

.page-faq a {
  color: inherit;
}

.faq-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Hero ---------- */
.faq-hero {
  position: relative;
  border-bottom: var(--edge);
  padding: clamp(26px, 4.6vw, 48px) 0 clamp(26px, 4.6vw, 46px);
}

.faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: min(38%, 420px);
  height: 2px;
  background: var(--signal);
}

.page-faq .faq-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2.6vw, 24px);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-faq .faq-crumbs .breadcrumbs__item {
  color: var(--muted);
  text-decoration: none;
}

.page-faq .faq-crumbs a.breadcrumbs__item:hover,
.page-faq .faq-crumbs a.breadcrumbs__item:focus-visible {
  color: var(--signal);
}

.faq-crumbs__sep {
  color: var(--line);
}

.faq-hero__kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 3px solid var(--signal);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--signal);
}

.faq-hero__title {
  max-width: 22ch;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--paper);
}

.page-faq .faq-hero__lede {
  max-width: 64ch;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Shell ---------- */
.faq-shell {
  display: grid;
  gap: clamp(26px, 4vw, 40px);
  padding-top: clamp(28px, 4.6vw, 52px);
}

/* ---------- 目录 ---------- */
.faq-toc {
  min-width: 0;
}

.faq-toc__panel {
  border: var(--edge);
  background: var(--ink-2);
  box-shadow: 5px 5px 0 0 rgba(2, 6, 15, 0.75);
}

.faq-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ink-3);
  color: var(--signal);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  list-style: none;
}

.faq-toc__toggle::-webkit-details-marker {
  display: none;
}

.faq-toc__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--signal);
  border-bottom: 2px solid var(--signal);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-toc__panel[open] .faq-toc__toggle::after {
  transform: rotate(-135deg);
}

.faq-toc__list {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  display: grid;
  gap: 12px;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow-x: auto;
}

.faq-toc__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.faq-toc__link:hover,
.faq-toc__link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.faq-toc__num {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--amber);
}

/* ---------- 章节通用 ---------- */
.faq-body {
  display: grid;
  gap: clamp(32px, 5vw, 58px);
  min-width: 0;
}

.faq-block {
  min-width: 0;
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
}

.faq-block__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.faq-block__num {
  flex: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--signal);
  font-family: var(--font-num);
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: 0.06em;
  color: var(--signal);
}

.faq-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: 0.008em;
  color: var(--paper);
}

.faq-block__intro {
  max-width: 68ch;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.faq-block__intro a,
.faq-block__foot a,
.faq-step__body a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 181, 0.42);
}

.faq-block__intro a:hover,
.faq-block__foot a:hover,
.faq-step__body a:hover,
.faq-block__intro a:focus-visible,
.faq-block__foot a:focus-visible,
.faq-step__body a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--amber);
}

.faq-block__foot {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-faq .media {
  margin: 0;
  overflow: hidden;
  background: var(--ink-2);
}

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

.page-faq .media__caption {
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-3);
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- 01 适配表 ---------- */
.faq-table__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 16px;
  background: var(--amber);
  color: #1A1204;
}

.faq-table__bar-label {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.faq-table__bar-meta {
  font-family: var(--font-num);
  font-size: 12px;
  opacity: 0.84;
}

.faq-table__scroll {
  overflow-x: auto;
  border: var(--edge);
  background: var(--ink-2);
  -webkit-overflow-scrolling: touch;
}

.faq-table__scroll:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

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

.faq-table th,
.faq-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.faq-table thead th {
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.faq-table tbody td {
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
}

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

.faq-table tbody tr:nth-child(odd) {
  background: rgba(20, 34, 74, 0.5);
}

.faq-table tbody tr:nth-child(even) {
  background: rgba(12, 22, 48, 0.62);
}

.faq-table thead th:first-child,
.faq-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

.faq-table thead th:first-child {
  background: var(--ink-3);
}

.faq-table tbody td:first-child {
  background: #101E42;
  font-weight: 600;
}

.faq-table tbody tr:nth-child(even) td:first-child {
  background: #0C1630;
}

.faq-table tbody td:nth-child(2) {
  font-family: var(--font-num);
  font-size: 13.5px;
  color: var(--paper);
}

.faq-table tbody td:nth-child(3),
.faq-table tbody td:nth-child(4) {
  color: var(--muted);
  font-size: 14.5px;
}

.faq-fit__figure {
  margin: 24px 0 0;
  border: var(--edge);
  box-shadow: var(--faq-shadow-amber);
}

.faq-fit__figure img {
  aspect-ratio: 3 / 2;
  max-height: 400px;
}

/* ---------- 02 步骤 ---------- */
.faq-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), rgba(255, 176, 32, 0.06));
}

.faq-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.faq-step:first-child {
  padding-top: 4px;
}

.faq-step:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.faq-step__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 40px;
  height: 40px;
  background: var(--ink-3);
  border: 2px solid var(--amber);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
}

.faq-step__title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0.008em;
  color: var(--paper);
}

.faq-step__body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-sync__figure {
  margin: 24px 0 0;
  border: var(--edge);
}

.faq-sync__figure img {
  aspect-ratio: 10 / 7;
  max-height: 360px;
}

/* ---------- 03 订阅卡片 ---------- */
.faq-subs {
  display: grid;
  gap: 16px;
}

.faq-sub {
  padding: 18px 18px 20px;
  background: var(--ink-2);
  border: var(--edge);
  border-top: 4px solid var(--amber);
  box-shadow: var(--faq-shadow-amber);
}

.faq-sub h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--paper);
}

.faq-sub p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 04 排查手风琴 ---------- */
.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--ink-2);
  border: var(--edge);
  border-left: 4px solid var(--line);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.faq-item[open] {
  background: var(--ink-3);
  border-left-color: var(--signal);
}

.faq-item__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
}

.faq-item__idx {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.faq-item__q {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--paper);
}

.faq-item__icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--signal);
}

.faq-item__icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.faq-item__icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.faq-item[open] .faq-item__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item__panel {
  padding: 0 16px 18px 16px;
}

.faq-item__panel ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.faq-item__panel li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-item__panel li::marker {
  color: var(--signal);
  font-family: var(--font-num);
}

/* ---------- 05 账号与设备 ---------- */
.faq-manage {
  display: grid;
  gap: 18px;
}

.faq-manage__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: linear-gradient(140deg, rgba(255, 176, 32, 0.16), rgba(20, 34, 74, 0.9));
  border: var(--edge);
  border-left: 4px solid var(--amber);
}

.faq-manage__stat-num {
  font-family: var(--font-num);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.faq-manage__stat-label {
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.faq-manage__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.faq-manage__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.faq-manage__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 2px;
  background: var(--signal);
}

.faq-manage__list strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--paper);
}

/* ---------- 06 联系协助 ---------- */
.faq-block--help {
  padding-top: 0;
  border-top: 0;
}

.faq-help {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: var(--edge);
  background: linear-gradient(135deg, rgba(0, 240, 181, 0.1), rgba(12, 22, 48, 0.94) 58%);
  box-shadow: 5px 5px 0 0 rgba(2, 6, 15, 0.8);
}

.faq-help__lead {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--paper);
}

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

.faq-help__list li {
  padding-left: 16px;
  position: relative;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.faq-help__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--amber);
}

.faq-help__list strong {
  color: var(--paper);
  font-weight: 600;
}

.faq-help__foot {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.faq-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.faq-help__side {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.faq-help__label {
  margin: 0 0 4px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--signal);
}

.faq-help__value {
  margin: 0 0 16px;
  font-family: var(--font-num);
  font-size: 15px;
  line-height: 1.5;
  color: var(--paper);
  word-break: break-all;
}

.faq-help__note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .faq-help__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }
}

@media (min-width: 860px) {
  .faq-subs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-manage {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }

  .faq-help {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 34px;
  }

  .faq-help__side {
    padding: 4px 0 0 26px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 1000px) {
  .faq-shell {
    grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 56px);
    align-items: start;
  }

  .faq-toc {
    position: sticky;
    top: 26px;
  }

  .faq-toc__toggle {
    display: none;
  }

  .faq-toc__list {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    gap: 0;
    padding: 12px 0;
  }

  .faq-toc__link {
    padding: 9px 14px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    white-space: normal;
    transition: color 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  }

  .faq-toc__link:hover,
  .faq-toc__link:focus-visible {
    background: rgba(0, 240, 181, 0.06);
    border-left-color: var(--signal);
    border-bottom-color: transparent;
  }

  .faq-item__panel {
    padding-left: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
