.page-faq {
  --faq-rail-w: 232px;
  background: var(--ink);
  color: var(--text-body);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px) 0 clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--outline);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 50% 50%, rgba(53, 230, 210, 0.2), rgba(53, 230, 210, 0) 68%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  bottom: -240px;
  left: -160px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle at 50% 50%, rgba(240, 71, 140, 0.17), rgba(240, 71, 140, 0) 68%);
  pointer-events: none;
}

.page-faq .faq-hero .crumbs,
.page-faq .faq-hero__grid {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.5vw, 40px);
  margin-top: clamp(20px, 3vw, 32px);
}

.page-faq .faq-hero__eyebrow {
  margin: 0;
  color: var(--gold);
}

.page-faq .faq-hero__title {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 6.6vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--text-strong);
  max-width: 18ch;
}

.page-faq .faq-hero__lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--text-body);
}

.page-faq .faq-hero__card {
  align-self: start;
  padding: clamp(18px, 2.5vw, 24px);
  background: linear-gradient(150deg, rgba(226, 180, 87, 0.14), rgba(19, 30, 58, 0.9) 62%);
  border-color: rgba(226, 180, 87, 0.45);
}

.page-faq .faq-hero__card .rule-card__label {
  margin: 0 0 10px;
  color: var(--gold);
}

.page-faq .faq-hero__card .rule-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-strong);
}

.page-faq .faq-hero__card .rule-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- 主体两栏 ---------- */
.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 5vw, 56px) 0 clamp(8px, 2vw, 16px);
}

.page-faq .faq-rail {
  min-width: 0;
}

.page-faq .faq-rail__head {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.page-faq .faq-rail__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-rail__item {
  flex: 0 0 auto;
}

.page-faq .faq-rail__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 13px;
  border: 1px solid var(--outline);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.page-faq .faq-rail__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.page-faq .faq-rail__link:hover,
.page-faq .faq-rail__link:focus-visible {
  border-color: var(--accent-cyan);
  color: var(--text-strong);
  background: rgba(53, 230, 210, 0.08);
  transform: translate(-2px, -2px);
  outline: none;
}

.page-faq .faq-main {
  display: grid;
  gap: clamp(38px, 6vw, 66px);
  min-width: 0;
}

/* ---------- 区块标题 ---------- */
.page-faq .faq-block {
  min-width: 0;
}

.page-faq .faq-block__head {
  border-top: 2px solid var(--outline);
  padding-top: clamp(14px, 2vw, 20px);
}

.page-faq .faq-block__no {
  margin: 0;
  color: var(--accent-cyan);
}

.page-faq .faq-block__title {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 900;
  color: var(--text-strong);
  max-width: 24ch;
}

.page-faq .faq-block__desc {
  margin: 12px 0 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}

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

/* ---------- 问答列表 ---------- */
.page-faq .faq-list {
  display: grid;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-faq .faq-item {
  background: var(--surface);
  border: 1px solid var(--outline);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-faq .faq-item[open] {
  border-color: var(--accent-cyan);
  box-shadow: var(--hard-shadow-sm);
}

.page-faq .faq-item > summary {
  list-style: none;
}

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

.page-faq .faq-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "no tag arrow"
    "q q q";
  gap: 8px 14px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.page-faq .faq-item__head:hover {
  background: rgba(53, 230, 210, 0.05);
}

.page-faq .faq-item__head:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: -2px;
}

.page-faq .faq-item__no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.page-faq .faq-item__tag {
  grid-area: tag;
  justify-self: start;
}

.page-faq .faq-item__q {
  grid-area: q;
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.6;
  font-weight: 700;
  color: var(--text-strong);
}

.page-faq .faq-item__arrow {
  grid-area: arrow;
  align-self: start;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.page-faq .faq-item__arrow::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.22s ease;
}

.page-faq .faq-item[open] .faq-item__arrow::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.page-faq .faq-item__body {
  padding: 14px 18px 20px;
  border-top: 1px dashed var(--outline);
  animation: faq-open 0.26s ease both;
}

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

.page-faq .faq-item__body p {
  margin: 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.85;
}

.page-faq .faq-item__body p + p {
  margin-top: 10px;
}

.page-faq .faq-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 230, 210, 0.45);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-faq .faq-link:hover,
.page-faq .faq-link:focus-visible {
  color: var(--text-strong);
  border-bottom-color: var(--text-strong);
}

/* ---------- 更新频率时间带 ---------- */
.page-faq .faq-timeline {
  margin-top: clamp(22px, 3vw, 32px);
  padding: 18px clamp(14px, 2.5vw, 24px) 10px;
  background: var(--surface);
  border: 1px solid var(--outline);
}

.page-faq .faq-timeline__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-timeline__node {
  position: relative;
  flex: 1 0 104px;
  min-width: 104px;
  padding: 22px 12px 14px;
  border-top: 2px solid var(--outline);
}

.page-faq .faq-timeline__node::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--outline);
}

.page-faq .faq-timeline__node.is-done {
  border-top-color: var(--status-ok);
}

.page-faq .faq-timeline__node.is-done::before {
  background: var(--status-ok);
}

.page-faq .faq-timeline__node.is-current {
  border-top-color: var(--status-pending);
}

.page-faq .faq-timeline__node.is-current::before {
  background: var(--status-pending);
  box-shadow: 0 0 0 4px rgba(240, 160, 60, 0.22);
}

.page-faq .faq-timeline__week {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-strong);
}

.page-faq .faq-timeline__state {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.page-faq .faq-timeline__node.is-done .faq-timeline__state {
  color: var(--status-ok);
}

.page-faq .faq-timeline__node.is-current .faq-timeline__state {
  color: var(--status-pending);
}

/* ---------- 结尾 CTA ---------- */
.page-faq .faq-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin: clamp(34px, 5vw, 56px) 0 clamp(44px, 6vw, 76px);
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(120deg, rgba(240, 71, 140, 0.14), rgba(19, 30, 58, 0.92) 60%);
}

.page-faq .faq-cta__title {
  margin: 10px 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.page-faq .faq-cta__desc {
  margin: 10px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.8;
}

.page-faq .faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-cta__actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

/* ---------- 桌面端 ---------- */
@media (min-width: 900px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    align-items: start;
  }

  .page-faq .faq-hero__card {
    margin-top: 30px;
  }

  .page-faq .faq-item__head {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "no tag q arrow";
    align-items: center;
    padding: 18px 22px;
  }

  .page-faq .faq-item__arrow {
    align-self: center;
  }

  .page-faq .faq-item__body {
    padding: 16px 22px 22px;
  }

  .page-faq .faq-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-faq .faq-cta__actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 1000px) {
  .page-faq .faq-layout {
    grid-template-columns: var(--faq-rail-w) minmax(0, 1fr);
    align-items: start;
  }

  .page-faq .faq-rail {
    position: sticky;
    top: 92px;
  }

  .page-faq .faq-rail__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-rail__link {
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    white-space: normal;
    padding: 9px 10px;
  }

  .page-faq .faq-rail__link:hover,
  .page-faq .faq-rail__link:focus-visible {
    border-color: transparent;
    border-left-color: var(--accent-cyan);
    background: rgba(53, 230, 210, 0.07);
    transform: none;
  }
}

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

  .page-faq .faq-item__arrow::before,
  .page-faq .faq-rail__link {
    transition: none;
  }
}
