.page-faq {
  --faq-line: rgba(42, 53, 96, 0.82);
  --faq-line-hot: rgba(255, 106, 31, 0.42);
  --faq-r-sm: 16px;
  position: relative;
  z-index: 0;
  padding-bottom: clamp(56px, 8vw, 104px);
  color: var(--text);
  overflow-x: clip;
}

.page-faq::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 320px at 84% 4%, rgba(255, 106, 31, 0.20), transparent 68%),
    radial-gradient(480px 280px at 8% 0%, rgba(77, 163, 255, 0.13), transparent 72%);
}

.page-faq .shell {
  position: relative;
}

/* ===================== 首屏 ===================== */

.page-faq .faq-hero {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  padding-block: clamp(20px, 3.4vw, 40px) clamp(40px, 6vw, 76px);
}

.page-faq .faq-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.page-faq .faq-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.8;
  color: var(--muted);
}

.page-faq .faq-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-facts li {
  flex: 1 1 190px;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--faq-line);
  border-radius: var(--faq-r-sm);
  background: linear-gradient(158deg, rgba(22, 34, 74, 0.82), rgba(14, 23, 48, 0.55));
}

.page-faq .faq-facts b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--orange);
}

.page-faq .faq-facts span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-faq .faq-hero__figure {
  margin: 0;
}

.page-faq .faq-hero__figure .media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.page-faq .faq-hero__figure img,
.page-faq .faq-shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-faq .faq-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: clamp(34px, 5vw, 76px);
  }
}

/* ===================== 阶段切换 ===================== */

.page-faq .faq-stage {
  padding-block: clamp(32px, 5vw, 60px) 0;
}

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

.page-faq .faq-stage__head h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.page-faq .faq-stage__head p:last-child {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-faq .faq-tabs {
  margin-top: clamp(24px, 3.4vw, 40px);
}

.page-faq .faq-tablist {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-faq .faq-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-pill);
  background: rgba(14, 23, 48, 0.72);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.page-faq .faq-tab:hover {
  color: var(--text);
  border-color: rgba(77, 163, 255, 0.45);
}

.page-faq .faq-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.page-faq .faq-tab__idx {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: 0.75;
}

.page-faq .faq-tab__hint {
  display: none;
}

.page-faq .faq-tab[aria-selected="true"] {
  color: var(--text);
  border-color: rgba(53, 224, 138, 0.5);
  background: linear-gradient(140deg, rgba(53, 224, 138, 0.16), rgba(22, 34, 74, 0.92));
}

.page-faq .faq-tab[aria-selected="true"] .faq-tab__idx {
  color: var(--green);
  opacity: 1;
}

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

.page-faq .faq-group {
  margin-top: 24px;
}

@media (min-width: 960px) {
  .page-faq .faq-tabs {
    display: grid;
    grid-template-columns: minmax(220px, 258px) minmax(0, 1fr);
    gap: clamp(26px, 3.6vw, 56px);
    align-items: start;
  }

  .page-faq .faq-tablist {
    position: sticky;
    top: 96px;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-tab {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding: 15px 18px 15px 20px;
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    border-radius: 0 var(--faq-r-sm) var(--faq-r-sm) 0;
    background: transparent;
    text-align: left;
    white-space: normal;
  }

  .page-faq .faq-tab__label {
    font-size: 14.5px;
    font-weight: 700;
  }

  .page-faq .faq-tab__hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--muted);
  }

  .page-faq .faq-tab[aria-selected="true"] {
    border-color: transparent;
    border-left-color: var(--green);
    background: linear-gradient(90deg, rgba(53, 224, 138, 0.15), rgba(22, 34, 74, 0.4) 58%, transparent);
  }

  .page-faq .faq-group {
    margin-top: 0;
  }
}

/* ===================== 分组标题 ===================== */

.page-faq .faq-group__title {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.page-faq .faq-group__sub {
  margin: 10px 0 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

/* ===================== 问答列表 ===================== */

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(18px, 2.6vw, 28px);
}

.page-faq .faq-item {
  border: 1px solid var(--faq-line);
  border-radius: var(--faq-r-sm);
  background: linear-gradient(152deg, rgba(14, 23, 48, 0.88), rgba(10, 16, 36, 0.72));
  overflow: hidden;
  transition: border-color 0.28s ease, background-color 0.28s ease;
}

.page-faq .faq-item:hover {
  border-color: rgba(77, 163, 255, 0.4);
}

.page-faq .faq-item[open] {
  border-color: rgba(53, 224, 138, 0.42);
  background: linear-gradient(152deg, rgba(22, 34, 74, 0.95), rgba(14, 23, 48, 0.9));
}

.page-faq .faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

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

.page-faq .faq-q::marker {
  content: "";
}

.page-faq .faq-q:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
}

.page-faq .faq-q__idx {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.page-faq .faq-q__text {
  flex: 1 1 auto;
  min-width: 0;
}

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

.page-faq .faq-q__mark::before,
.page-faq .faq-q__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-faq .faq-q__mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-faq .faq-item[open] .faq-q__mark::before,
.page-faq .faq-item[open] .faq-q__mark::after {
  background: var(--green);
}

.page-faq .faq-item[open] .faq-q__mark::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.page-faq .faq-a {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--muted);
}

.page-faq .faq-a p {
  margin: 0 0 10px;
}

.page-faq .faq-a p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-a a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 163, 255, 0.42);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-faq .faq-a a:hover {
  color: var(--orange-soft);
  border-bottom-color: currentColor;
}

.page-faq .faq-item[open] .faq-a {
  animation: faq-answer-in 0.28s ease both;
}

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

/* 版本变更分组：橙色描边区分 */

.page-faq .faq-group--hot .faq-item {
  border-color: var(--faq-line-hot);
}

.page-faq .faq-group--hot .faq-item[open] {
  border-color: rgba(255, 106, 31, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 106, 31, 0.14);
}

.page-faq .faq-group--hot .faq-q__idx {
  color: var(--orange-soft);
}

.page-faq .faq-group--hot .faq-item[open] .faq-q__mark::before,
.page-faq .faq-group--hot .faq-item[open] .faq-q__mark::after {
  background: var(--orange-soft);
}

/* 变更组配图 */

.page-faq .faq-shot {
  margin: 4px 0;
}

.page-faq .faq-shot figure {
  margin: 0;
}

.page-faq .faq-shot .media {
  overflow: hidden;
  border-radius: var(--faq-r-sm);
  border: 1px solid var(--faq-line-hot);
}

/* ===================== 底部联系卡 ===================== */

.page-faq .faq-help {
  padding-block: clamp(48px, 7vw, 92px) 0;
}

.page-faq .faq-help__card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.6vw, 46px);
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(255, 106, 31, 0.19), transparent 66%),
    linear-gradient(158deg, rgba(22, 34, 74, 0.95), rgba(14, 23, 48, 0.9));
  box-shadow: var(--shadow-panel);
}

.page-faq .faq-help__text {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--muted);
}

.page-faq .faq-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-faq .faq-help__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
}

.page-faq .faq-help__meta div {
  padding-left: 14px;
  border-left: 2px solid rgba(53, 224, 138, 0.55);
}

.page-faq .faq-help__meta dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-faq .faq-help__meta dd {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
}

@media (min-width: 860px) {
  .page-faq .faq-help__card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(28px, 3.6vw, 60px);
    align-items: end;
  }

  .page-faq .faq-help__meta {
    margin-top: 0;
  }
}

@media (min-width: 640px) {
  .page-faq .faq-q {
    padding: 18px 22px;
  }

  .page-faq .faq-a {
    padding: 0 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item[open] .faq-a {
    animation: none;
  }

  .page-faq .faq-tab,
  .page-faq .faq-item,
  .page-faq .faq-q__mark::before,
  .page-faq .faq-q__mark::after {
    transition-duration: 0.01ms;
  }
}
