.page-faq{
  --faq-side-w: 236px;
  --faq-gap: 48px;
  --faq-line: rgba(123, 44, 191, 0.28);
  --faq-surface: rgba(19, 26, 34, 0.86);
  padding-bottom: 0;
}

/* ===== 顶部英雄区 ===== */
.page-faq .faq-hero{
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(760px 300px at 82% -10%, rgba(123, 44, 191, 0.3), transparent 62%),
    radial-gradient(480px 240px at 4% 22%, rgba(31, 58, 95, 0.55), transparent 68%),
    linear-gradient(180deg, var(--bg-elev), var(--bg));
  border-bottom: 1px solid var(--faq-line);
}
.page-faq .faq-hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.65), transparent);
  pointer-events: none;
}
.page-faq .faq-hero .container{
  position: relative;
  z-index: 1;
}
.page-faq .faq-hero-grid{
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
}
.page-faq .faq-hero-copy .sec-label{
  color: var(--green);
}
.page-faq .faq-hero-copy h1{
  margin: 10px 0 14px;
  font-family: var(--heading);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.16;
  color: var(--white);
  letter-spacing: 0.01em;
}
.page-faq .faq-lead{
  margin: 0;
  max-width: 62ch;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
}
.page-faq .faq-hero-copy .v-note{
  margin-top: 18px;
  color: var(--blue-bright);
  letter-spacing: 0.14em;
}
.page-faq .faq-hero-visual{
  max-width: 600px;
  min-height: 0;
}
.page-faq .faq-hero-visual .img-frame{
  width: 100%;
}

/* ===== 筛选芯片 ===== */
.page-faq .faq-tabs{
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.page-faq .faq-tabs .chip{
  flex: 0 0 auto;
  font-family: var(--body);
}
.page-faq .faq-tabs .chip.is-active{
  border-color: rgba(57, 255, 20, 0.6);
  color: var(--green);
}

/* ===== 主体双栏 ===== */
.page-faq .faq-board-wrap{
  padding: clamp(36px, 6vw, 64px) 0 0;
}
.page-faq .faq-board{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

/* ===== 左侧分类索引 ===== */
.page-faq .faq-side{
  min-width: 0;
}
.page-faq .faq-nav{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.page-faq .faq-nav-link{
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 192px;
  padding: 12px 14px;
  color: var(--gray);
  text-decoration: none;
  background: rgba(31, 58, 95, 0.24);
  border: 1px solid rgba(176, 196, 222, 0.12);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}
.page-faq .faq-nav-link:hover{
  background: rgba(58, 86, 255, 0.18);
  border-color: rgba(58, 86, 255, 0.55);
  color: var(--white);
  transform: translateX(4px);
}
.page-faq .faq-nav-ico{
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.page-faq .faq-nav-ico svg{
  width: 18px;
  height: 18px;
}
.page-faq .faq-nav-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.page-faq .faq-nav-text strong{
  font-family: var(--heading);
  font-size: 0.97rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}
.page-faq .faq-nav-text small{
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray);
  opacity: 0.85;
}

/* ===== 侧栏求助卡 ===== */
.page-faq .faq-side-help{
  margin-top: 18px;
  padding: 16px 16px 18px;
  background: linear-gradient(145deg, rgba(123, 44, 191, 0.16), rgba(31, 58, 95, 0.22));
  border: 1px solid rgba(123, 44, 191, 0.3);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.page-faq .faq-side-help-title{
  margin: 0 0 6px;
  font-family: var(--heading);
  font-weight: 600;
  color: var(--white);
}
.page-faq .faq-side-help-desc{
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray);
}
.page-faq .faq-side-help-desc a{
  color: var(--blue-bright);
  text-decoration: none;
  word-break: keep-all;
}
.page-faq .faq-side-help-desc a:hover{
  color: var(--green);
}

/* ===== 右侧问题列表 ===== */
.page-faq .faq-questions{
  min-width: 0;
}
.page-faq .faq-section{
  margin-bottom: clamp(44px, 6vw, 68px);
}
.page-faq .faq-section:last-child{
  margin-bottom: 0;
}
.page-faq .faq-group-head{
  position: relative;
  margin: 0 0 20px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--green);
}
.page-faq .faq-group-head .sec-label{
  color: var(--purple-light);
}
.page-faq .faq-group-head h2{
  margin: 6px 0 6px;
  font-family: var(--heading);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.page-faq .faq-group-head p{
  margin: 0;
  max-width: 58ch;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== 手风琴卡片 ===== */
.page-faq .faq-card{
  position: relative;
  margin-bottom: 14px;
  background: var(--faq-surface);
  border: 1px solid var(--faq-line);
  border-left: 3px solid var(--purple);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: border-color 0.25s ease, background 0.25s ease;
}
.page-faq .faq-card:has(details[open]){
  background: rgba(19, 26, 34, 1);
  border-left-color: var(--green);
}
.page-faq .faq-card summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 16px 20px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  user-select: none;
  -webkit-user-select: none;
}
.page-faq .faq-card summary::-webkit-details-marker{
  display: none;
}
.page-faq .faq-card summary:hover .faq-q{
  color: var(--green);
}
.page-faq .faq-card .faq-q{
  transition: color 0.22s ease;
}
.page-faq .faq-toggle{
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}
.page-faq .faq-toggle::before,
.page-faq .faq-toggle::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--green);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.page-faq .faq-toggle::before{
  transform: translate(-50%, -50%);
}
.page-faq .faq-toggle::after{
  transform: translate(-50%, -50%) rotate(90deg);
}
.page-faq details[open] .faq-toggle::after{
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.page-faq .faq-card-body{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-out);
}
.page-faq details[open] .faq-card-body{
  grid-template-rows: 1fr;
}
.page-faq .faq-card-body-inner{
  overflow: hidden;
}
.page-faq .faq-card-body-inner > p{
  margin: 0;
  padding: 0 22px 16px 20px;
  color: var(--gray);
  font-size: 0.94rem;
  line-height: 1.78;
}
.page-faq .faq-card-body-inner > p:last-child{
  padding-bottom: 18px;
}
.page-faq .faq-card-body-inner a{
  color: var(--blue-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 86, 255, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.page-faq .faq-card-body-inner a:hover{
  color: var(--green);
  border-bottom-color: rgba(57, 255, 20, 0.5);
}

/* ===== 排查步骤竖线 ===== */
.page-faq .faq-steps{
  counter-reset: faqstep;
  margin: 4px 0 8px;
  padding: 6px 22px 6px 34px;
  list-style: none;
}
.page-faq .faq-step{
  counter-increment: faqstep;
  position: relative;
  margin-bottom: 24px;
  padding-left: 42px;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.72;
}
.page-faq .faq-step:last-child{
  margin-bottom: 6px;
}
.page-faq .faq-step::before{
  content: counter(faqstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -1px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.35);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.page-faq .faq-step:not(:last-child)::after{
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: -16px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(57, 255, 20, 0.5), rgba(123, 44, 191, 0.4));
}
.page-faq .faq-step strong{
  color: var(--white);
  font-weight: 600;
}
.page-faq .faq-flow-img{
  margin: 4px 20px 20px;
}
.page-faq .faq-flow-img .img-frame{
  width: 100%;
}

/* ===== FAQ 底部资源区 ===== */
.page-faq .faq-resources{
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(32px, 6vw, 56px) 0 clamp(32px, 5vw, 48px);
  background: linear-gradient(115deg, rgba(31, 58, 95, 0.55), rgba(123, 44, 191, 0.18)), var(--bg-elev);
  border-top: 1px solid rgba(123, 44, 191, 0.3);
}
.page-faq .faq-resources-head{
  margin-bottom: 24px;
}
.page-faq .faq-resources-head .sec-label{
  color: var(--green);
}
.page-faq .faq-resources-head h2{
  margin: 8px 0 8px;
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
  color: var(--white);
}
.page-faq .faq-resources-head p{
  margin: 0;
  color: var(--gray);
  font-size: 0.94rem;
  line-height: 1.7;
}
.page-faq .faq-resources-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.page-faq .faq-resource-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  color: var(--gray);
  text-decoration: none;
  background: rgba(13, 17, 23, 0.72);
  border: 1px solid rgba(176, 196, 222, 0.14);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: border-color 0.24s ease, background 0.24s ease, transform 0.24s ease;
}
.page-faq .faq-resource-card:hover{
  border-color: rgba(57, 255, 20, 0.55);
  background: rgba(31, 58, 95, 0.4);
  transform: translateY(-4px);
}
.page-faq .faq-resource-card strong{
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.page-faq .faq-resource-card span{
  font-size: 0.86rem;
  line-height: 1.6;
}
.page-faq .faq-resources-foot{
  margin-top: 24px;
}

/* ===== 桌面端增强 ===== */
@media (min-width: 960px){
  .page-faq .faq-hero-grid{
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
  }
  .page-faq .faq-tabs{
    flex-wrap: wrap;
  }
  .page-faq .faq-board{
    grid-template-columns: var(--faq-side-w) minmax(0, 1fr);
    gap: var(--faq-gap);
    align-items: start;
  }
  .page-faq .faq-side{
    position: sticky;
    top: 96px;
    z-index: 20;
  }
  .page-faq .faq-nav{
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }
  .page-faq .faq-nav-link{
    min-width: 0;
    width: 100%;
  }
  .page-faq .faq-nav-link:hover{
    transform: translateX(4px);
  }
  .page-faq .faq-resources-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
