.page-faq {
  --faq-pad: clamp(36px, 6vw, 60px);
  --faq-shade: rgba(244, 247, 244, 0.82);
}

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

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -110px;
  width: min(460px, 60vw);
  height: min(460px, 60vw);
  background: linear-gradient(140deg, rgba(16, 191, 108, 0.18), rgba(255, 122, 41, 0.12) 62%, transparent 100%);
  border-radius: 40% 60% 54% 46% / 54% 42% 58% 46%;
  clip-path: polygon(0 22%, 100% 0, 82% 100%, 12% 78%);
  pointer-events: none;
  z-index: 0;
}

.page-faq .faq-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-faq .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-faq .breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--slate-600);
}

.page-faq .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-faq .breadcrumb a:hover,
.page-faq .breadcrumb a:focus-visible {
  color: var(--green-300);
}

.page-faq .breadcrumb [aria-current="page"] {
  color: var(--paper-050);
}

.page-faq .faq-hero__eyebrow {
  margin: 0 0 14px;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green-500);
}

.page-faq .faq-hero__title {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(30px, 6.4vw, 54px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper-050);
}

.page-faq .faq-hero__lead {
  margin: 0 0 26px;
  max-width: 62ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--faq-shade);
}

.page-faq .faq-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 段落骨架 ---------- */
.page-faq .faq-sec {
  padding: var(--faq-pad) 0;
  border-top: 1px solid var(--line);
}

.page-faq .faq-head {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.page-faq .faq-head .section-index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--green-500);
}

.page-faq .faq-head .section-title {
  margin: 0;
  font-size: clamp(22px, 3.8vw, 32px);
  font-weight: 700;
  line-height: 1.32;
  color: var(--paper-050);
}

.page-faq .faq-head .section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  background: var(--green-500);
  border-radius: 2px;
}

.page-faq .faq-head .section-note {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 近 7 天更新带 ---------- */
.page-faq .faq-scale {
  height: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(to right, var(--slate-600) 0 1px, transparent 1px 26px);
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: 26px 6px;
}

.page-faq .faq-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-faq .faq-tick {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--green-500);
  border-radius: var(--radius-sm);
}

.page-faq .faq-tick__time {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--orange-500);
}

.page-faq .faq-tick__cat {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green-300);
}

.page-faq .faq-tick__title {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--paper-050);
}

.page-faq .faq-strip__note {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 配图 ---------- */
.page-faq .faq-fig {
  margin: 24px 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-faq .faq-fig img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-fig figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--muted);
}

.page-faq .faq-fig--side {
  margin: 0 0 22px;
}

/* ---------- 六类索引：标签页 ---------- */
.page-faq .faq-tabs {
  display: grid;
  gap: 18px;
}

.page-faq .faq-tabs .tab-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.page-faq .faq-tabs .tab-list::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-tabs .tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.page-faq .faq-tabs .tab:hover {
  color: var(--paper-050);
  border-color: var(--green-300);
}

.page-faq .faq-tabs .tab:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.page-faq .faq-tabs .tab[aria-selected="true"] {
  color: var(--paper-050);
  border-color: var(--green-500);
  background: linear-gradient(180deg, rgba(16, 191, 108, 0.16), rgba(16, 191, 108, 0.04));
}

.page-faq .faq-tabs .tab-num {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--green-500);
}

.page-faq .faq-tabs .tab[aria-selected="true"] .tab-num {
  color: var(--green-300);
}

.page-faq .faq-tabs .tab-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--muted);
}

.page-faq .faq-tabs .tab[aria-selected="true"] .tab-count {
  color: var(--orange-200);
}

.page-faq .faq-tabs .tab-panel {
  animation: faq-fade 160ms var(--ease) both;
}

.page-faq .faq-tabs .tab-panel:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 4px;
}

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

/* ---------- 折叠问答 ---------- */
.page-faq .faq-item {
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-item > summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 16px 16px;
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.6;
  color: var(--paper-050);
  cursor: pointer;
  list-style: none;
}

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

.page-faq .faq-item > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: transparent;
  transition: background-color 160ms var(--ease);
}

.page-faq .faq-item > summary:hover {
  color: var(--green-300);
}

.page-faq .faq-item > summary:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.page-faq .faq-item[open] > summary {
  color: var(--green-300);
}

.page-faq .faq-item[open] > summary::before {
  background: var(--green-500);
}

.page-faq .faq-item__q {
  display: block;
}

.page-faq .faq-item__mark {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.page-faq .faq-item__mark::before,
.page-faq .faq-item__mark::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}

.page-faq .faq-item__mark::before {
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
}

.page-faq .faq-item__mark::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

.page-faq .faq-item[open] .faq-item__mark::before {
  background: var(--green-500);
}

.page-faq .faq-item[open] .faq-item__mark::after {
  transform: scaleY(0);
}

.page-faq .faq-item__a {
  padding: 0 0 18px 16px;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--muted);
}

.page-faq .faq-item__a p {
  margin: 0;
  max-width: 62ch;
}

.page-faq .faq-item__a a {
  color: var(--green-300);
  text-underline-offset: 3px;
}

.page-faq .faq-item__a a:hover {
  color: var(--orange-200);
}

/* ---------- 本周热门 ---------- */
.page-faq .faq-hot {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-faq .faq-hot__row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num body"
    "num link";
  gap: 4px 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.page-faq .faq-hot__num {
  grid-area: num;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--slate-600);
  transition: color 160ms var(--ease);
}

.page-faq .faq-hot__row:hover .faq-hot__num {
  color: var(--green-500);
}

.page-faq .faq-hot__body {
  grid-area: body;
}

.page-faq .faq-hot__q {
  margin: 0 0 6px;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper-050);
}

.page-faq .faq-hot__a {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

.page-faq .faq-hot__link {
  grid-area: link;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-300);
  text-decoration: none;
  border-bottom: 1px solid var(--green-500);
  padding-bottom: 2px;
}

.page-faq .faq-hot__link:hover {
  color: var(--orange-200);
  border-bottom-color: var(--orange-500);
}

/* ---------- 反馈入口 ---------- */
.page-faq .faq-fb {
  display: grid;
  gap: 14px;
}

.page-faq .faq-fb__where,
.page-faq .faq-fb__tpl {
  padding: 20px 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-faq .faq-fb__tpl {
  border-left: 4px solid var(--green-500);
}

.page-faq .faq-fb__title {
  margin: 0 0 14px;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper-050);
}

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

.page-faq .faq-fb__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

.page-faq .faq-fb__key {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--green-500);
  color: var(--ink-900);
  font-size: var(--fs-12);
  font-weight: 700;
}

.page-faq .faq-fb__list a {
  color: var(--green-300);
  text-underline-offset: 3px;
}

.page-faq .faq-fb__list a:hover {
  color: var(--orange-200);
}

.page-faq .faq-fb__pre {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  line-height: 1.9;
  color: var(--faq-shade);
  overflow-x: auto;
  white-space: pre;
}

.page-faq .faq-fb__tip {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 客服邮箱与时效 ---------- */
.page-faq .faq-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-faq .faq-contact__card {
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 2px solid var(--slate-600);
}

.page-faq .faq-contact__card--accent {
  border-top-color: var(--orange-500);
  background: linear-gradient(180deg, rgba(255, 122, 41, 0.09), rgba(255, 122, 41, 0.02));
}

.page-faq .faq-contact__label {
  margin: 0 0 10px;
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-faq .faq-contact__card--accent .faq-contact__label {
  color: var(--orange-200);
}

.page-faq .faq-contact__val {
  margin: 0 0 10px;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.6;
  color: var(--paper-050);
  word-break: break-word;
}

.page-faq .faq-contact__val a {
  color: var(--green-300);
  text-decoration: none;
  border-bottom: 1px solid var(--green-500);
  padding-bottom: 2px;
}

.page-faq .faq-contact__val a:hover {
  color: var(--orange-200);
  border-bottom-color: var(--orange-500);
}

.page-faq .faq-contact__meta {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

.page-faq .faq-tail {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-faq .faq-tail a {
  color: var(--green-300);
  text-underline-offset: 3px;
}

.page-faq .faq-tail a:hover {
  color: var(--orange-200);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-faq .faq-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-faq .faq-fb {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-faq .faq-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-faq .faq-hot__row {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas: "num .page-faq link";
    align-items: center;
    gap: 20px;
  }

  .page-faq .faq-hot__link {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-fig--side {
    max-width: 720px;
  }

  .page-faq .faq-tabs {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .page-faq .faq-tabs .tab-list {
    position: sticky;
    top: calc(var(--header-h, 64px) + 16px);
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
    gap: 4px;
  }

  .page-faq .faq-tabs .tab {
    width: 100%;
    padding: 12px 14px;
  }

  .page-faq .faq-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

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

  .page-faq .faq-tabs .tab,
  .page-faq .faq-item > summary::before,
  .page-faq .faq-item__mark::before,
  .page-faq .faq-item__mark::after,
  .page-faq .faq-hot__num {
    transition: none;
  }
}
