.page-faq {
  --faq-line: rgba(26, 26, 46, .14);
  --faq-line-soft: rgba(26, 26, 46, .07);
  --faq-paper-shadow: 4px 4px 0 rgba(26, 26, 46, .12);
  --faq-paper-shadow-hover: 7px 7px 0 rgba(26, 26, 46, .18);
  display: block;
  padding: 24px 0 72px;
  overflow-x: clip;
}

.page-faq .ht-breadcrumb {
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ht-graphite);
}

.page-faq .ht-breadcrumb a {
  color: var(--ht-blue);
  text-decoration: none;
}

.page-faq .ht-breadcrumb a:hover {
  color: var(--ht-blue-deep);
  text-decoration: underline;
}

/* ---------- 首屏 ---------- */
.faq-hero {
  padding: 4px 0 44px;
}

.faq-hero__bar {
  width: 104px;
  height: 6px;
  border-radius: 2px;
  margin-bottom: 22px;
  background: linear-gradient(90deg,
    var(--ht-blue) 0 42%,
    var(--ht-orange) 42% 70%,
    var(--ht-teal) 70% 100%);
}

.faq-hero__title {
  margin: 10px 0 20px;
  color: var(--ht-ink);
  max-width: 22ch;
}

.faq-hero__lead {
  max-width: 64ch;
  color: var(--ht-graphite);
}

.faq-hero__overview {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-hero__overview li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ht-mist);
  border: 1px solid var(--ht-ink);
  box-shadow: var(--faq-paper-shadow);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ht-ink);
  transition: transform 180ms var(--ht-ease), box-shadow 180ms var(--ht-ease);
}

.faq-hero__overview li:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--faq-paper-shadow-hover);
}

.faq-hero__num {
  font-family: var(--ht-mono-stack);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ht-blue);
}

/* ---------- 章节节奏 ---------- */
.page-faq .ht-section {
  padding-top: 60px;
}

.page-faq .ht-section-head {
  max-width: 68ch;
}

.page-faq .ht-section-head .ht-lead {
  color: var(--ht-graphite);
}

/* ---------- 三步引导 ---------- */
.faq-steps {
  margin-top: 34px;
}

.faq-rail {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
}

.faq-rail__item {
  position: relative;
  padding: 0 0 26px 46px;
}

.faq-rail__item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--ht-blue);
  background: var(--ht-cream);
  box-sizing: border-box;
  transition: background-color 180ms var(--ht-ease), border-color 180ms var(--ht-ease);
  z-index: 1;
}

.faq-rail__item::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--ht-blue-line);
}

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

.faq-rail__item:last-child::after {
  display: none;
}

.faq-rail__item:hover::before {
  background: var(--ht-teal);
  border-color: var(--ht-teal);
}

.faq-rail__num {
  display: block;
  font-family: var(--ht-mono-stack);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ht-blue);
}

.faq-rail__label {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ht-ink);
  letter-spacing: -.01em;
}

.faq-rail__note {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ht-graphite);
}

.faq-steps__body {
  display: grid;
  gap: 30px;
  min-width: 0;
}

.faq-device {
  margin: 0;
}

.faq-device__frame {
  max-width: 268px;
  margin: 0 auto;
  padding: 14px 12px;
  background: var(--ht-mist);
  border: 1px solid var(--ht-ink);
  border-radius: 22px;
  box-shadow: var(--faq-paper-shadow);
  transition: transform 180ms var(--ht-ease), box-shadow 180ms var(--ht-ease);
}

.faq-device__frame:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--faq-paper-shadow-hover);
}

.faq-device__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.faq-device .ht-figure__cap {
  max-width: 268px;
  margin: 12px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ht-graphite);
  text-align: center;
}

.faq-step-list {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.faq-step {
  padding: 20px 20px 22px;
  background: var(--ht-mist);
  border: 1px solid var(--faq-line);
  border-left: 3px solid var(--ht-blue);
  border-radius: 3px;
}

.faq-step .ht-h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ht-ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.faq-step__num {
  font-family: var(--ht-mono-stack);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ht-blue);
}

.faq-step p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ht-graphite);
}

.faq-step p.faq-step__trap {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 107, 53, .09);
  border-left: 2px solid var(--ht-orange);
  border-radius: 2px;
  font-size: 14px;
  color: var(--ht-ink);
}

.faq-step__trap span {
  display: inline-block;
  margin-right: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--ht-orange);
}

/* ---------- 界面速览 ---------- */
.faq-screens {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.faq-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px;
  background: var(--ht-mist);
  border: 1px solid var(--ht-ink);
  border-radius: 3px;
  box-shadow: var(--faq-paper-shadow);
  transition: transform 180ms var(--ht-ease), box-shadow 180ms var(--ht-ease);
}

.faq-screen:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--faq-paper-shadow-hover);
}

.faq-screen__tag {
  align-self: flex-start;
  margin: 0;
  padding: 3px 10px;
  font-family: var(--ht-mono-stack);
  font-size: 11px;
  letter-spacing: .16em;
  color: #FFFFFF;
  background: var(--ht-blue);
  border-radius: 2px;
}

.faq-screen .ht-h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ht-ink);
}

.faq-screen p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ht-graphite);
}

.faq-screen__lines {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.faq-screen__lines li {
  height: 6px;
  border-radius: 3px;
  background: var(--ht-blue-line);
}

.faq-screen__lines li:nth-child(1) {
  width: 84%;
}

.faq-screen__lines li:nth-child(2) {
  width: 58%;
  background: var(--ht-blue-soft);
  opacity: .45;
}

.faq-screen__lines li:nth-child(3) {
  width: 70%;
}

/* ---------- 两端配合 ---------- */
.faq-sync {
  display: grid;
  gap: 30px;
  min-width: 0;
}

.faq-sync__media {
  min-width: 0;
}

.faq-sync__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ht-ink);
  border-radius: 3px;
  box-shadow: var(--faq-paper-shadow);
  object-fit: cover;
}

.faq-sync__cap {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ht-graphite);
}

.faq-sync__text {
  min-width: 0;
}

.faq-sync__text .ht-h2 {
  margin: 8px 0 14px;
  color: var(--ht-ink);
}

.faq-sync__text > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ht-graphite);
  max-width: 60ch;
}

.faq-sync__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.faq-sync__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ht-ink);
}

.faq-sync__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 11px;
  height: 2px;
  background: var(--ht-orange);
}

.faq-sync__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- 问题分类 ---------- */
.faq-groups {
  margin-top: 34px;
  display: grid;
  gap: 20px;
}

.faq-group {
  padding: 20px 18px 8px;
  background: var(--ht-mist);
  border: 1px solid var(--faq-line);
  border-top: 3px solid var(--ht-blue);
  border-radius: 3px;
  min-width: 0;
}

.faq-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ht-ink);
}

.faq-group__num {
  font-family: var(--ht-mono-stack);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ht-blue);
}

.page-faq .faq-q {
  border-bottom: 1px solid var(--ht-blue-line);
}

.page-faq .faq-q:last-of-type {
  border-bottom: 0;
}

.page-faq .faq-q summary {
  position: relative;
  display: block;
  padding: 14px 34px 14px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ht-ink);
  cursor: pointer;
  list-style: none;
  transition: color 160ms var(--ht-ease);
}

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

.page-faq .faq-q summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--ht-blue);
  border-bottom: 1.6px solid var(--ht-blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms var(--ht-ease);
}

.page-faq .faq-q[open] summary {
  color: var(--ht-blue-deep);
}

.page-faq .faq-q[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.page-faq .faq-q summary:hover {
  color: var(--ht-blue);
}

.page-faq .faq-q summary:focus-visible {
  outline: 3px solid var(--ht-orange);
  outline-offset: 2px;
}

.faq-q__body {
  padding: 0 22px 16px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ht-graphite);
}

.faq-q__body a {
  color: var(--ht-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-q__body a:hover {
  color: var(--ht-blue-deep);
}

/* ---------- 术语小词典 ---------- */
.faq-terms {
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--faq-line);
}

.faq-terms__item {
  padding: 18px 0;
  border-bottom: 1px solid var(--faq-line);
  min-width: 0;
}

.faq-terms__item dt {
  margin-bottom: 7px;
  font-family: var(--ht-mono-stack);
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--ht-blue);
}

.faq-terms__item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ht-graphite);
}

.faq-terms__eg {
  display: block;
  margin-top: 9px;
  padding-left: 12px;
  border-left: 2px solid var(--ht-blue-line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ht-ink);
}

/* ---------- 兜底入口 ---------- */
.faq-help {
  padding: 32px 24px 34px;
  background: var(--ht-ink);
  border: 1px solid var(--ht-ink);
  border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(10, 92, 255, .35);
}

.faq-help .ht-eyebrow {
  color: var(--ht-orange-soft);
}

.faq-help__title {
  margin: 8px 0 14px;
  color: var(--ht-cream);
}

.faq-help p {
  margin: 0 0 12px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(246, 241, 231, .84);
}

.faq-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- 浮动回跳 ---------- */
.faq-toplink {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ht-cream);
  background: var(--ht-ink);
  border: 1px solid var(--ht-ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(255, 107, 53, .55);
  transition: background-color 180ms var(--ht-ease), transform 180ms var(--ht-ease);
}

.faq-toplink:hover {
  background: var(--ht-blue-deep);
  transform: translate(-2px, -2px);
}

.faq-toplink:focus-visible {
  outline: 3px solid var(--ht-orange);
  outline-offset: 2px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-faq {
    padding-top: 32px;
  }

  .faq-screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-hero__title {
    max-width: 26ch;
  }
}

@media (min-width: 900px) {
  .page-faq .ht-section {
    padding-top: 92px;
  }

  .faq-steps {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .faq-rail {
    margin-bottom: 0;
  }

  .faq-sync {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 46px;
    align-items: center;
  }

  .faq-sync__media {
    order: 2;
  }

  .faq-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .faq-group:nth-child(1) {
    grid-column: 1 / -1;
  }

  .faq-group:nth-child(1) .faq-q__body {
    max-width: 72ch;
  }

  .faq-terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
  }
}

@media (min-width: 1080px) {
  .faq-steps__body {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .faq-device {
    position: sticky;
    top: 32px;
  }

  .faq-screens {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
  }

  .faq-screen:nth-child(1) {
    grid-column: 1 / span 7;
  }

  .faq-screen:nth-child(2) {
    grid-column: 8 / span 5;
  }

  .faq-screen:nth-child(3) {
    grid-column: 1 / span 5;
  }

  .faq-screen:nth-child(4) {
    grid-column: 6 / span 7;
  }

  .faq-help {
    padding: 40px 36px 42px;
  }
}

@media (max-width: 560px) {
  .faq-device__frame {
    max-width: 236px;
  }

  .faq-device .ht-figure__cap {
    max-width: 100%;
  }

  .faq-toplink {
    right: 12px;
    bottom: 12px;
    padding: 9px 14px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-hero__overview li,
  .faq-device__frame,
  .faq-screen,
  .faq-rail__item::before,
  .faq-toplink,
  .page-faq .faq-q summary,
  .page-faq .faq-q summary::after {
    transition: none;
  }

  .faq-hero__overview li:hover,
  .faq-device__frame:hover,
  .faq-screen:hover,
  .faq-toplink:hover {
    transform: none;
  }
}
