/* =============================================
   答疑中心 /answers/
   ============================================= */

.page-faq{
  --faq-line: rgba(199, 211, 221, .16);
  --faq-tint: rgba(255, 106, 43, .13);
}

/* ---------- 面包屑 ---------- */
.page-faq .crumb{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  font-size: 13px;
  color: var(--mist);
}
.page-faq .crumb a{
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.page-faq .crumb a:hover,
.page-faq .crumb a:focus-visible{
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-top: 30px;
  padding-bottom: 44px;
}
.page-faq .faq-hero::before{
  content: "06";
  position: absolute;
  top: 4px;
  right: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(88px, 17vw, 168px);
  line-height: .78;
  letter-spacing: -.05em;
  color: rgba(127, 212, 240, .07);
  pointer-events: none;
  user-select: none;
}
.page-faq .faq-hero__main{
  min-width: 0;
}
.page-faq .faq-hero h1{
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--cream);
  max-width: 15em;
}
.page-faq .faq-hero .lede{
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}
.page-faq .faq-facts{
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  border-top: 1px solid var(--faq-line);
}
.page-faq .faq-facts li{
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.page-faq .faq-facts__num{
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  color: var(--yellow);
}
.page-faq .faq-facts__txt{
  font-size: 13px;
  color: var(--mist);
}

/* ---------- 问题板 ---------- */
.page-faq .faq-board{
  padding-bottom: 68px;
}
.page-faq .faq-split{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "list"
    "panels"
    "wide";
  margin-top: 22px;
  background: var(--night-2);
  border: 1px solid var(--stroke);
}
.page-faq .faq-input{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 问题列表 */
.page-faq .faq-list{
  grid-area: list;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--indigo);
  border-bottom: 1px solid var(--stroke);
}
.page-faq .faq-item{
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  border-bottom: 1px solid var(--faq-line);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.page-faq .faq-item:last-child{
  border-bottom: 0;
}
.page-faq .faq-item::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .3s var(--ease);
}
.page-faq .faq-item:hover{
  background: rgba(127, 212, 240, .07);
  color: var(--cream);
}
.page-faq .faq-item__num{
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--ice);
}
.page-faq .faq-item__text{
  display: block;
  min-width: 0;
}

/* 选中态：左侧橙条 + 提亮 */
.page-faq #faq-q1:checked ~ .faq-list > .faq-item:nth-of-type(1),
.page-faq #faq-q2:checked ~ .faq-list > .faq-item:nth-of-type(2),
.page-faq #faq-q3:checked ~ .faq-list > .faq-item:nth-of-type(3),
.page-faq #faq-q4:checked ~ .faq-list > .faq-item:nth-of-type(4),
.page-faq #faq-q5:checked ~ .faq-list > .faq-item:nth-of-type(5),
.page-faq #faq-q6:checked ~ .faq-list > .faq-item:nth-of-type(6){
  background: var(--faq-tint);
  color: var(--cream);
}
.page-faq #faq-q1:checked ~ .faq-list > .faq-item:nth-of-type(1)::before,
.page-faq #faq-q2:checked ~ .faq-list > .faq-item:nth-of-type(2)::before,
.page-faq #faq-q3:checked ~ .faq-list > .faq-item:nth-of-type(3)::before,
.page-faq #faq-q4:checked ~ .faq-list > .faq-item:nth-of-type(4)::before,
.page-faq #faq-q5:checked ~ .faq-list > .faq-item:nth-of-type(5)::before,
.page-faq #faq-q6:checked ~ .faq-list > .faq-item:nth-of-type(6)::before{
  transform: scaleY(1);
}

/* 键盘焦点 */
.page-faq #faq-q1:focus-visible ~ .faq-list > .faq-item:nth-of-type(1),
.page-faq #faq-q2:focus-visible ~ .faq-list > .faq-item:nth-of-type(2),
.page-faq #faq-q3:focus-visible ~ .faq-list > .faq-item:nth-of-type(3),
.page-faq #faq-q4:focus-visible ~ .faq-list > .faq-item:nth-of-type(4),
.page-faq #faq-q5:focus-visible ~ .faq-list > .faq-item:nth-of-type(5),
.page-faq #faq-q6:focus-visible ~ .faq-list > .faq-item:nth-of-type(6){
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

/* 答案面板 */
.page-faq .faq-panels{
  grid-area: panels;
  min-width: 0;
  padding: 26px 20px 32px;
  background: linear-gradient(165deg, rgba(36, 28, 76, .5), rgba(10, 26, 47, 0) 62%);
}
.page-faq .faq-panel{
  display: none;
}
.page-faq .faq-panel h3{
  margin: 0 0 14px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.35;
  color: var(--cream);
}
.page-faq .faq-panel p{
  margin: 0 0 14px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}
.page-faq .faq-panel p:last-child{
  margin-bottom: 0;
}
.page-faq .faq-panel a{
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 210, 74, .45);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.page-faq .faq-panel a:hover,
.page-faq .faq-panel a:focus-visible{
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.page-faq .faq-panel__more{
  font-size: 14px;
  color: var(--ice);
}
.page-faq .faq-panel__fig{
  margin: 20px 0 0;
  max-width: 280px;
}

/* 面板切换 */
.page-faq #faq-q1:checked ~ .faq-panels > .faq-panel:nth-of-type(1),
.page-faq #faq-q2:checked ~ .faq-panels > .faq-panel:nth-of-type(2),
.page-faq #faq-q3:checked ~ .faq-panels > .faq-panel:nth-of-type(3),
.page-faq #faq-q4:checked ~ .faq-panels > .faq-panel:nth-of-type(4),
.page-faq #faq-q5:checked ~ .faq-panels > .faq-panel:nth-of-type(5),
.page-faq #faq-q6:checked ~ .faq-panels > .faq-panel:nth-of-type(6){
  display: block;
  animation: faq-fade-in .34s var(--ease) both;
}

@keyframes faq-fade-in{
  from{
    opacity: 0;
    transform: translateY(8px);
  }
  to{
    opacity: 1;
    transform: none;
  }
}

/* 全宽对照区 */
.page-faq .faq-wide{
  grid-area: wide;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(14, 59, 62, .92), rgba(10, 26, 47, .35));
}
.page-faq .faq-wide__fig{
  margin: 0;
}
.page-faq .faq-wide__copy{
  padding: 26px 20px 32px;
}
.page-faq .faq-wide__copy h2{
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.2;
  color: var(--cream);
}
.page-faq .faq-wide__copy p{
  margin: 14px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}
.page-faq .faq-steps{
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-faq .faq-steps li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  background: rgba(10, 26, 47, .55);
  border-left: 2px solid var(--ice);
}
.page-faq .faq-steps__n{
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: var(--yellow);
}

/* ---------- 收束区 ---------- */
.page-faq .faq-cta{
  padding-bottom: 96px;
}
.page-faq .faq-cta__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 22px 30px;
}
.page-faq .faq-cta__copy{
  min-width: 0;
}
.page-faq .faq-cta__copy h2{
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.2;
  color: var(--cream);
}
.page-faq .faq-cta__copy p{
  margin: 12px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}
.page-faq .faq-cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- 移动端收窄 ---------- */
@media (max-width: 520px){
  .page-faq .faq-hero::before{
    font-size: 76px;
    top: 10px;
  }
  .page-faq .faq-item{
    padding: 14px 14px;
    font-size: 13.5px;
  }
  .page-faq .faq-panels{
    padding: 22px 16px 26px;
  }
  .page-faq .faq-wide__copy{
    padding: 22px 16px 26px;
  }
  .page-faq .faq-cta__inner{
    padding: 24px 18px 26px;
  }
}

/* ---------- 左右分屏 ---------- */
@media (min-width: 880px){
  .page-faq .faq-hero{
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
    align-items: end;
    padding-top: 52px;
    padding-bottom: 68px;
  }
  .page-faq .faq-facts{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 22px;
  }
}

@media (min-width: 900px){
  .page-faq .faq-split{
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    grid-template-areas:
      "list panels"
      "wide wide";
  }
  .page-faq .faq-list{
    border-bottom: 0;
    border-right: 1px solid var(--stroke);
  }
  .page-faq .faq-panels{
    min-height: 400px;
    padding: 38px 40px 46px;
  }
  .page-faq .faq-wide__copy{
    padding: 34px 40px 42px;
  }
}

@media (min-width: 860px){
  .page-faq .faq-cta__inner{
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 40px;
    align-items: center;
    padding: 40px 44px;
  }
  .page-faq .faq-cta__actions{
    justify-content: flex-end;
  }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce){
  .page-faq .faq-item::before{
    transition: none;
  }
  .page-faq #faq-q1:checked ~ .faq-panels > .faq-panel:nth-of-type(1),
  .page-faq #faq-q2:checked ~ .faq-panels > .faq-panel:nth-of-type(2),
  .page-faq #faq-q3:checked ~ .faq-panels > .faq-panel:nth-of-type(3),
  .page-faq #faq-q4:checked ~ .faq-panels > .faq-panel:nth-of-type(4),
  .page-faq #faq-q5:checked ~ .faq-panels > .faq-panel:nth-of-type(5),
  .page-faq #faq-q6:checked ~ .faq-panels > .faq-panel:nth-of-type(6){
    animation: none;
  }
}
