.page-faq {
  background: var(--bg);
  color: var(--ink);
  padding-bottom: clamp(48px, 7vw, 96px);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 88px)) 0 clamp(44px, 6vw, 80px);
  background: var(--bg);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: -12% -6% auto -6%;
  height: 82%;
  z-index: -2;
  background: linear-gradient(126deg, rgba(139, 92, 255, .32) 0%, rgba(51, 230, 255, .08) 52%, rgba(11, 16, 38, 0) 78%);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 66%);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(46, 61, 115, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 61, 115, .55) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 80% 18%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 80% 18%, #000 0%, transparent 62%);
}

.page-faq .faq-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}

@media (min-width: 1000px) {
  .page-faq .faq-hero__inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    align-items: end;
  }
}

.page-faq .faq-hero__lead-col { min-width: 0; }

.page-faq .breadcrumb { margin-bottom: clamp(14px, 2vw, 24px); }

.page-faq .faq-hero__title {
  margin: 12px 0 0;
  font-size: clamp(31px, 5.2vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: .02em;
  max-width: 18ch;
}

.page-faq .faq-hero__lead {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--muted);
}

/* 搜索框（视觉入口） */
.page-faq .faq-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
  max-width: 560px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}

.page-faq .faq-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(51, 230, 255, .16);
}

.page-faq .faq-search__icon {
  display: flex;
  color: var(--cyan);
  flex: 0 0 auto;
}

.page-faq .faq-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.page-faq .faq-search__input::placeholder { color: var(--muted); }

.page-faq .faq-search__input:focus { outline: none; }

.page-faq .faq-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-hero__quick a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.page-faq .faq-hero__quick a:hover,
.page-faq .faq-hero__quick a:focus-visible {
  color: var(--ink);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(51, 230, 255, .38);
}

/* 悬浮信息卡 */
.page-faq .faq-hero__card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  background: linear-gradient(158deg, rgba(30, 41, 84, .96), rgba(20, 27, 58, .78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 54px -32px rgba(0, 0, 0, .92);
}

.page-faq .faq-hero__card::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, transparent 48%, rgba(51, 230, 255, .3) 48%);
  pointer-events: none;
}

.page-faq .faq-hero__card-label {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet);
}

.page-faq .faq-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-faq .faq-facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(46, 61, 115, .9);
}

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

.page-faq .faq-facts__k {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: .01em;
}

.page-faq .faq-facts__v {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 主体骨架 ---------- */
.page-faq .faq-body { padding-top: clamp(40px, 6vw, 84px); }

.page-faq .faq-body__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 64px);
}

@media (min-width: 1024px) {
  .page-faq .faq-body__grid {
    grid-template-columns: 236px minmax(0, 1fr);
    align-items: start;
  }
}

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

.page-faq .faq-side__inner {
  display: grid;
  gap: 16px;
}

.page-faq .faq-toc {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 1024px) {
  .page-faq .faq-side__inner {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

  .page-faq .faq-toc {
    border-left: 2px solid var(--line);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: none;
    padding: 4px 0 4px 18px;
  }
}

.page-faq .toc__link {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.page-faq .toc__link:hover,
.page-faq .toc__link:focus-visible { color: var(--ink); }

.page-faq .toc__link[data-current="true"] {
  color: var(--cyan);
  font-weight: 700;
}

@media (max-width: 1023px) {
  .page-faq .toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
  }
}

.page-faq .faq-side__card {
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-faq .faq-side__text {
  margin: 8px 0 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 章节 ---------- */
.page-faq .faq-stream { min-width: 0; }

.page-faq .faq-sec { padding-bottom: clamp(38px, 5vw, 68px); }

.page-faq .faq-sec + .faq-sec {
  border-top: 1px solid var(--line);
  padding-top: clamp(38px, 5vw, 68px);
}

.page-faq .faq-sec:last-of-type { padding-bottom: clamp(20px, 3vw, 32px); }

.page-faq .faq-sec__body { margin-top: clamp(20px, 3vw, 32px); }

/* ---------- 七步指南 ---------- */
.page-faq .steps-rail {
  display: flex;
  gap: 6px;
  margin: 0 0 6px;
}

.page-faq .steps-rail span {
  flex: 1 1 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.page-faq .steps-rail span:nth-child(n+5) { background: var(--line); }

.page-faq .steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-faq .steps__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 6px 18px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color .24s var(--ease);
}

.page-faq .steps__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  opacity: 0;
  transition: opacity .26s var(--ease);
}

.page-faq .steps__item:hover::before { opacity: 1; }

.page-faq .steps__item:hover { background: rgba(30, 41, 84, .5); }

.page-faq .steps__num {
  display: inline-block;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--cyan);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-faq .steps__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
}

.page-faq .steps__text {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 68ch;
}

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

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-faq .faq-figure--narrow { max-width: 720px; }

/* ---------- 文档索引 / 标签页 ---------- */
.page-faq .faq-tabs { min-width: 0; }

.page-faq .faq-tabs .tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-faq .tabs__btn {
  appearance: none;
  cursor: pointer;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease);
}

.page-faq .tabs__btn:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

.page-faq .tabs__btn[aria-selected="true"] {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

.page-faq .faq-tabpanel {
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-faq .faq-tabpanel__intro {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 66ch;
}

.page-faq .doclist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.page-faq .doclist__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(46, 61, 115, .7);
}

@media (min-width: 720px) {
  .page-faq .doclist__item {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
  }
}

.page-faq .doclist__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.page-faq .doclist__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 记录查询 ---------- */
.page-faq .faq-cards { margin-bottom: 18px; }

.page-faq .faq-note {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  background: rgba(139, 92, 255, .09);
  border-left: 2px solid var(--violet);
  border-radius: var(--radius);
}

/* ---------- 常见排查 ---------- */
.page-faq .qa {
  display: grid;
  gap: 10px;
}

.page-faq .qa__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .24s var(--ease);
}

.page-faq .qa__item:hover { border-color: rgba(51, 230, 255, .5); }

.page-faq .qa__item[open] {
  border-color: rgba(51, 230, 255, .62);
  box-shadow: 0 0 0 1px rgba(51, 230, 255, .14);
}

.page-faq .qa__q {
  cursor: pointer;
  position: relative;
  padding: 16px 48px 16px 18px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  list-style: none;
}

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

.page-faq .qa__q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .24s var(--ease);
}

.page-faq .qa__item[open] .qa__q::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.page-faq .qa__a {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(46, 61, 115, .7);
}

.page-faq .qa__steps {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.page-faq .qa__steps li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.page-faq .qa__steps li::marker {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* 联系面板 */
.page-faq .faq-contact { margin-top: clamp(20px, 3vw, 30px); }

.page-faq .faq-contact__text {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 66ch;
}

.page-faq .faq-contact__rows {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.page-faq .faq-contact .copyline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-faq .copyline__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
}

.page-faq .faq-contact .copyline__value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  color: var(--ink);
  word-break: break-all;
}

.page-faq .faq-contact .copy-btn {
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--orange);
  background: none;
  border: 1px solid rgba(255, 159, 67, .45);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}

.page-faq .faq-contact .copy-btn:hover {
  background: rgba(255, 159, 67, .14);
}

.page-faq .faq-contact .copy-btn[data-copied="true"] {
  color: var(--ok);
  border-color: rgba(61, 220, 151, .55);
}

.page-faq .faq-contact__actions { margin-top: 4px; }

/* ---------- 更新与自助结果 ---------- */
.page-faq .faq-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(20px, 3vw, 30px);
}

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

.page-faq .faq-stat {
  padding: 20px 18px;
  background: var(--panel);
}

.page-faq .faq-stat__num {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--cyan);
  line-height: 1.2;
}

.page-faq .faq-stat__label {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-faq .topics {
  margin: 0 0 clamp(22px, 3vw, 32px);
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.page-faq .topics__item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--violet);
  border-radius: var(--radius);
  transition: border-left-color .24s var(--ease), transform .24s var(--ease);
}

.page-faq .topics__item:hover {
  border-left-color: var(--cyan);
  transform: translateY(-2px);
}

.page-faq .topics__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.page-faq .topics__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.page-faq .faq-cta {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(132deg, rgba(139, 92, 255, .22), rgba(51, 230, 255, .1) 58%, rgba(20, 27, 58, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-faq .faq-cta__title {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: .02em;
}

.page-faq .faq-cta__text {
  margin: 12px 0 20px;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 返回顶部 ---------- */
.page-faq .to-top {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.page-faq .to-top:hover,
.page-faq .to-top:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 小屏收敛 ---------- */
@media (max-width: 640px) {
  .page-faq .faq-hero__title { max-width: none; }

  .page-faq .steps__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 10px;
  }

  .page-faq .steps__num { justify-self: start; }

  .page-faq .faq-tabs .tabs__list { gap: 6px; }

  .page-faq .tabs__btn {
    padding: 8px 12px;
    font-size: 13.5px;
  }

  .page-faq .qa__q {
    padding: 14px 42px 14px 14px;
    font-size: 15px;
  }

  .page-faq .qa__a { padding: 0 14px 16px; }

  .page-faq .faq-contact .copyline { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq *,
  .page-faq *::before,
  .page-faq *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
