.page-faq {
  --faq-border: rgba(79, 227, 193, 0.14);
  --faq-rail-w: 92px;
  background:
    radial-gradient(120% 55% at 88% 0%, rgba(79, 227, 193, 0.07), transparent 62%),
    radial-gradient(90% 40% at 6% 34%, rgba(255, 122, 47, 0.05), transparent 60%),
    var(--ink);
  padding-bottom: clamp(64px, 10vw, 120px);
}

.page-faq .faq-shell {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  padding-top: clamp(24px, 4vw, 44px);
}

.page-faq .breadcrumbs {
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: end;
  margin-top: clamp(22px, 4vw, 40px);
}

.page-faq .faq-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--warm);
}

.page-faq .faq-hero__lead .lead {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--cool);
}

.page-faq .faq-hero__note {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-faq .faq-hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(79, 227, 193, 0.22);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.page-faq .faq-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-faq .faq-hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(6, 35, 28, 0) 32%, rgba(2, 18, 14, 0.82) 100%);
  pointer-events: none;
}

.page-faq .faq-hero__figure::before {
  content: "问答索引";
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

/* ---------- 分类跳转 ---------- */
.page-faq .faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(30px, 5vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}

.page-faq .faq-jump a {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  color: var(--cool);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.24s var(--ease), background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-faq .faq-jump a:hover,
.page-faq .faq-jump a:focus-visible {
  color: var(--mask);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-faq .faq-jump a.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(79, 227, 193, 0.08);
}

/* ---------- 章节 ---------- */
.page-faq .faq-chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.5vw, 22px);
  margin-top: clamp(52px, 9vw, 100px);
  scroll-margin-top: 110px;
}

.page-faq .faq-chapter__rail {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.page-faq .faq-chapter__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cyan);
  opacity: 0.38;
}

.page-faq .faq-chapter__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cool);
}

.page-faq .faq-chapter__body h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--warm);
}

.page-faq .faq-chapter__intro {
  max-width: 62ch;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cool);
}

.page-faq .faq-chapter__intro a,
.page-faq .faq-item__a a,
.page-faq .faq-legal a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 周期对照表 ---------- */
.page-faq .faq-table-wrap {
  margin: 0 0 clamp(26px, 4vw, 38px);
  overflow-x: auto;
  border: 1px solid var(--faq-border);
  border-radius: var(--radius);
  background: rgba(2, 18, 14, 0.45);
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.page-faq .faq-table caption {
  padding: 15px 16px 13px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-faq .faq-table th,
.page-faq .faq-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--faq-border);
}

.page-faq .faq-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cool);
  background: rgba(11, 50, 39, 0.7);
}

.page-faq .faq-table tbody th {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--orange);
}

.page-faq .faq-table tbody td {
  color: var(--cool);
  line-height: 1.7;
}

.page-faq .faq-table tbody td.mono {
  font-family: var(--font-mono);
  color: var(--warm);
  white-space: nowrap;
}

/* ---------- 问答条目 ---------- */
.page-faq .faq-list {
  border-top: 1px solid var(--faq-border);
}

.page-faq .faq-item {
  position: relative;
  border-bottom: 1px solid var(--faq-border);
  transition: background-color 0.3s var(--ease);
}

.page-faq .faq-item[open] {
  background: linear-gradient(90deg, rgba(79, 227, 193, 0.07), rgba(79, 227, 193, 0) 72%);
}

.page-faq .faq-item__q {
  position: relative;
  display: block;
  padding: 19px 48px 19px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--warm);
  transition: color 0.22s var(--ease);
}

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

.page-faq .faq-item__q::marker {
  content: "";
}

.page-faq .faq-item__q:hover,
.page-faq .faq-item[open] .faq-item__q {
  color: var(--cyan);
}

.page-faq .faq-item__q::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.page-faq .faq-item[open] .faq-item__q::after {
  transform: rotate(-135deg);
}

.page-faq .faq-item__a {
  position: relative;
  padding: 2px 28px 24px 20px;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cool);
  animation: faqAnswer 0.32s var(--ease) both;
}

.page-faq .faq-item__a::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 26px;
  width: 2px;
  background: var(--cyan);
  opacity: 0.85;
}

.page-faq .faq-item__a p {
  margin: 0 0 10px;
}

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

@keyframes faqAnswer {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 内嵌示意图 ---------- */
.page-faq .faq-figure {
  position: relative;
  margin: clamp(28px, 4vw, 40px) 0 0;
  overflow: hidden;
  border: 1px solid var(--faq-border);
  border-radius: var(--radius);
}

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

.page-faq .faq-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cool);
  background: linear-gradient(to top, rgba(2, 18, 14, 0.94), rgba(2, 18, 14, 0));
}

/* ---------- 联系区块 ---------- */
.page-faq .faq-reach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-faq .faq-reach__card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
}

.page-faq .faq-reach__label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-faq .faq-reach__value {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--warm);
  overflow-wrap: anywhere;
}

.page-faq .faq-reach__value a {
  color: var(--warm);
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
  transition: color 0.22s var(--ease);
}

.page-faq .faq-reach__value a:hover,
.page-faq .faq-reach__value a:focus-visible {
  color: var(--cyan);
}

.page-faq .faq-reach__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cool);
}

.page-faq .faq-reach__cta {
  margin: clamp(22px, 3vw, 30px) 0 0;
}

.page-faq .faq-legal {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--faq-border);
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--cool);
}

/* ---------- 桌面布局 ---------- */
@media (min-width: 880px) {
  .page-faq .faq-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 64px);
  }
}

@media (min-width: 900px) {
  .page-faq .faq-chapter {
    grid-template-columns: var(--faq-rail-w) minmax(0, 1fr);
    column-gap: clamp(26px, 4vw, 52px);
  }

  .page-faq .faq-chapter__rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    align-self: start;
    position: sticky;
    top: 118px;
  }

  .page-faq .faq-item__q {
    font-size: 18px;
    padding-right: 56px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__a {
    animation: none;
  }

  .page-faq .faq-item__q::after,
  .page-faq .faq-jump a,
  .page-faq .faq-item,
  .page-faq .faq-item__q,
  .page-faq .faq-reach__value a {
    transition: none;
  }
}
