.page-faq {
  --faq-aside-top: calc(var(--bar-h) + 86px);
  --faq-block-gap: 46px;
  background: var(--paper);
}

.page-faq .breadcrumb {
  padding-top: 22px;
}

.page-faq .faq-head {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.page-faq h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 10px 0 0;
  max-width: 18em;
}

.page-faq .faq-lede {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
}

/* ---------- 分类锚点条 ---------- */

.page-faq .faq-anchors {
  position: sticky;
  top: var(--bar-h);
  z-index: 15;
  background: linear-gradient(180deg, var(--mist) 0%, rgba(233, 236, 238, 0.95) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-ink);
}

.page-faq .faq-anchor-bar {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-anchor-bar::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-anchor-bar a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 12px 11px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: var(--lake-deep);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.page-faq .faq-anchor-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--rock);
  transition: color 0.18s var(--ease);
}

.page-faq .faq-anchor-bar a:hover,
.page-faq .faq-anchor-bar a:focus-visible {
  color: var(--apricot-deep);
  background: rgba(240, 138, 60, 0.09);
  border-bottom-color: var(--apricot);
  outline: none;
}

.page-faq .faq-anchor-bar a:hover .faq-anchor-num,
.page-faq .faq-anchor-bar a:focus-visible .faq-anchor-num {
  color: var(--apricot);
}

/* ---------- 主布局 ---------- */

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 36px 0 78px;
}

/* ---------- 分类区块 ---------- */

.page-faq .faq-block {
  scroll-margin-top: calc(var(--bar-h) + 76px);
  margin-bottom: var(--faq-block-gap);
}

.page-faq .faq-block:last-child {
  margin-bottom: 0;
}

.page-faq .faq-block-head {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--lake-deep);
}

.page-faq .faq-block-num {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--apricot);
}

.page-faq .faq-block-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-faq .faq-block-note {
  margin: 9px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--rock);
}

/* ---------- 问题条 ---------- */

.page-faq .faq-list {
  margin-top: 16px;
}

.page-faq .faq-item {
  position: relative;
  margin: 0 0 10px;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.24s var(--ease), border-color 0.24s var(--ease),
    background-color 0.24s var(--ease);
}

.page-faq .faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition: background-color 0.2s var(--ease);
}

.page-faq .faq-item:hover {
  border-color: var(--lake);
  box-shadow: var(--shadow-lift);
}

.page-faq .faq-item[open] {
  border-color: var(--line-ink);
  background: linear-gradient(180deg, #fdf5ec 0%, var(--paper) 46%);
  box-shadow: var(--shadow-lift);
}

.page-faq .faq-item[open]::before {
  background: var(--lake);
}

.page-faq .faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 17px 20px 17px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

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

.page-faq .faq-item[open] .faq-q {
  color: var(--lake-deep);
}

.page-faq .faq-q::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--apricot);
  transition: color 0.2s var(--ease);
}

.page-faq .faq-item[open] .faq-q::after {
  content: "–";
  color: var(--lake);
}

.page-faq .faq-q:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: -2px;
}

.page-faq .faq-a {
  padding: 2px 22px 20px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink);
}

.page-faq .faq-a > p {
  margin: 0 0 12px;
  max-width: 64ch;
}

.page-faq .faq-a > p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-a a:not(.btn) {
  color: var(--lake);
  text-decoration: none;
  border-bottom: 1px solid var(--line-ink);
}

.page-faq .faq-a a:not(.btn):hover {
  color: var(--apricot-deep);
  border-bottom-color: var(--apricot);
}

/* ---------- 编号步骤 ---------- */

.page-faq .faq-steps {
  list-style: none;
  counter-reset: faq-step;
  margin: 6px 0 14px;
  padding: 0;
}

.page-faq .faq-steps li {
  position: relative;
  counter-increment: faq-step;
  padding: 0 0 14px 34px;
  max-width: 62ch;
}

.page-faq .faq-steps li::before {
  content: counter(faq-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lake);
}

.page-faq .faq-steps li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 4px;
  border-left: 1px dashed var(--line-ink);
}

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

.page-faq .faq-steps li:last-child::after {
  display: none;
}

/* ---------- 关联入口 ---------- */

.page-faq .faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}

.page-faq .faq-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--lake);
  text-decoration: none;
}

.page-faq .faq-links a::after {
  content: "→";
  color: var(--apricot);
  transition: transform 0.2s var(--ease);
}

.page-faq .faq-links a:hover {
  color: var(--apricot-deep);
}

.page-faq .faq-links a:hover::after {
  transform: translateX(3px);
}

/* ---------- 配图 ---------- */

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

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

.page-faq .faq-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--rock);
}

/* ---------- 联系方式 ---------- */

.page-faq .faq-contact {
  display: grid;
  gap: 16px;
  margin: 16px 0 6px;
  padding: 18px 20px;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--mist);
}

.page-faq .faq-contact-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--rock);
}

.page-faq .faq-contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--lake-deep);
  word-break: break-all;
  user-select: all;
}

/* ---------- 侧栏 ---------- */

.page-faq .faq-aside-inner {
  position: relative;
}

.page-faq .faq-aside-card {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--mist);
}

.page-faq .faq-aside-title {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink);
}

.page-faq .faq-track {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.page-faq .faq-track li {
  position: relative;
  padding: 0 0 22px 26px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink);
}

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

.page-faq .faq-track li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 2px solid var(--apricot);
  border-radius: 50%;
  background: var(--paper);
}

.page-faq .faq-track li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 19px;
  bottom: 3px;
  border-left: 1px dashed var(--lake);
}

.page-faq .faq-track li:last-child::after {
  display: none;
}

.page-faq .faq-aside-note {
  margin: 0 0 14px;
  padding: 7px 10px;
  border-left: 2px solid var(--lake);
  background: rgba(30, 111, 140, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lake-deep);
}

.page-faq .faq-aside-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--rock);
}

.page-faq .faq-aside-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-faq .faq-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-faq .faq-item {
    margin-bottom: 12px;
  }

  .page-faq .faq-q {
    padding: 18px 24px 18px 26px;
  }

  .page-faq .faq-a {
    padding: 2px 26px 22px;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-layout {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 56px;
    padding: 48px 0 92px;
  }

  .page-faq .faq-aside-inner {
    position: sticky;
    top: var(--faq-aside-top);
  }

  .page-faq .faq-block-head {
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-item::before,
  .page-faq .faq-q,
  .page-faq .faq-q::after,
  .page-faq .faq-anchor-bar a,
  .page-faq .faq-anchor-num,
  .page-faq .faq-links a::after {
    transition: none;
  }
}
