.page-faq {
  --faq-sidebar-w: 288px;
  --faq-border: rgba(10, 37, 64, 0.09);
  background: var(--grey-blue);
  color: var(--ink);
  min-height: 70vh;
}

/* ===== Hero ===== */
.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--ink) 60%, #08233b 100%);
  color: var(--white);
}
.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 46%;
  height: 220px;
  border-radius: 30px;
  background: linear-gradient(115deg, transparent 18%, rgba(0, 230, 118, 0.18));
  transform: rotate(-12deg);
  pointer-events: none;
}
.page-faq .faq-hero .container {
  position: relative;
  z-index: 2;
}
.page-faq .faq-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.page-faq .faq-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}
.page-faq .faq-hero .breadcrumb a:hover {
  color: var(--green);
}
.page-faq .faq-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.page-faq .faq-hero__content {
  position: relative;
}
.page-faq .faq-hero__content::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 5px;
  height: 72px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--green), transparent 90%);
}
.page-faq .faq-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.page-faq .faq-hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
}
.page-faq .faq-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.page-faq .faq-hero__lead {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}
.page-faq .faq-hero__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}
.page-faq .faq-hero__media {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.28), rgba(0, 230, 118, 0.1));
}
.page-faq .faq-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
  border-radius: 10px;
  object-fit: cover;
}

/* ===== 快速检索 ===== */
.page-faq .faq-quicknav {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-top: -28px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.1);
}
.page-faq .faq-quicknav__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  color: var(--blue-bright);
  background: var(--grey-blue);
}
.page-faq .faq-quicknav__body {
  flex: 1;
  min-width: 220px;
}
.page-faq .faq-quicknav__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
}
.page-faq .faq-quicknav__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-faq .faq-quicknav__tags .tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-bright);
  background: var(--grey-blue);
  border: 1px solid rgba(30, 136, 229, 0.14);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.page-faq .faq-quicknav__tags .tag:hover {
  border-color: var(--blue-bright);
  background: var(--blue-dark);
  color: var(--white);
}

/* ===== 双栏布局 ===== */
.page-faq .faq-layout {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 72px;
  align-items: start;
}

/* ===== 侧边栏 ===== */
.page-faq .faq-sidebar__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--blue-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(10, 37, 64, 0.16);
}
.page-faq .faq-sidebar__nav::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.2), transparent 70%);
}
.page-faq .faq-sidebar__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-faq .faq-sidebar__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.2s, box-shadow 0.2s;
}
.page-faq .faq-sidebar__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.page-faq .faq-sidebar__link.is-current {
  color: var(--white);
  background: rgba(30, 136, 229, 0.2);
}
.page-faq .faq-sidebar__link.is-current::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15);
}
.page-faq .faq-layout:has(#faq-version:target) .faq-sidebar__link[href="#faq-version"],
.page-faq .faq-layout:has(#faq-tags:target) .faq-sidebar__link[href="#faq-tags"],
.page-faq .faq-layout:has(#faq-live:target) .faq-sidebar__link[href="#faq-live"],
.page-faq .faq-layout:has(#faq-account:target) .faq-sidebar__link[href="#faq-account"],
.page-faq .faq-layout:has(#faq-contact:target) .faq-sidebar__link[href="#faq-contact"] {
  color: var(--white);
  background: rgba(0, 230, 118, 0.14);
}
.page-faq .faq-layout:has(#faq-version:target) .faq-sidebar__link[href="#faq-version"]::before,
.page-faq .faq-layout:has(#faq-tags:target) .faq-sidebar__link[href="#faq-tags"]::before,
.page-faq .faq-layout:has(#faq-live:target) .faq-sidebar__link[href="#faq-live"]::before,
.page-faq .faq-layout:has(#faq-account:target) .faq-sidebar__link[href="#faq-account"]::before,
.page-faq .faq-layout:has(#faq-contact:target) .faq-sidebar__link[href="#faq-contact"]::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15);
}
.page-faq .faq-sidebar__note {
  margin-top: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.06);
  font-size: 13px;
  line-height: 1.65;
  color: var(--grey);
}
.page-faq .faq-sidebar__note .tag {
  margin-bottom: 10px;
}
.page-faq .faq-sidebar__note p {
  margin: 0;
}

/* ===== FAQ 分组 ===== */
.page-faq .faq-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.page-faq .faq-group {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.page-faq .faq-group:target {
  animation: faq-target-flash 1.1s ease-out;
}
@keyframes faq-target-flash {
  0% {
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.28);
    border-radius: 16px;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.page-faq .faq-group__desc {
  margin: 8px 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--grey);
}

/* ===== 折叠面板 ===== */
.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-faq .faq-item {
  background: var(--white);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.page-faq .faq-item[open] {
  border-color: rgba(30, 136, 229, 0.32);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.1);
}
.page-faq .faq-item__q {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
}
.page-faq .faq-item__q::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grey-blue);
  transition: background 0.25s ease;
}
.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: var(--blue-bright);
}
.page-faq .faq-item__icon::before {
  width: 10px;
  height: 2px;
}
.page-faq .faq-item__icon::after {
  width: 2px;
  height: 10px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.page-faq .faq-item[open] .faq-item__icon {
  background: rgba(0, 230, 118, 0.14);
}
.page-faq .faq-item[open] .faq-item__icon::before,
.page-faq .faq-item[open] .faq-item__icon::after {
  background: var(--green);
}
.page-faq .faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.page-faq .faq-item__a {
  margin-top: -10px;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey);
}
.page-faq .faq-item__a p {
  margin: 0 0 8px;
}
.page-faq .faq-item__a p:last-child {
  margin-bottom: 0;
}
.page-faq .faq-item__a a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 联系支持 ===== */
.page-faq .faq-contact-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.page-faq .faq-contact-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--faq-border);
  border-left: 4px solid var(--blue-bright);
  border-radius: 10px;
}
.page-faq .faq-contact-card:nth-child(2) {
  border-left-color: var(--green);
}
.page-faq .faq-contact-card:nth-child(3) {
  border-left-color: var(--orange);
}
.page-faq .faq-contact-card::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grey-blue);
  opacity: 0.5;
}
.page-faq .faq-contact-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
}
.page-faq .faq-contact-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey);
  word-break: break-word;
}
.page-faq .faq-contact-card p:last-child {
  margin-bottom: 0;
}
.page-faq .faq-contact-card a {
  color: var(--blue-bright);
  font-weight: 600;
  text-decoration: none;
}

/* ===== 流程面板 ===== */
.page-faq .faq-flow {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, var(--blue-dark), var(--ink));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.18);
}
.page-faq .faq-flow__text h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.page-faq .faq-flow__steps {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
}
.page-faq .faq-flow__steps li::marker {
  color: var(--green);
  font-weight: 700;
}
.page-faq .faq-flow__steps a,
.page-faq .faq-flow__note a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-faq .faq-flow__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}
.page-faq .faq-flow__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .page-faq .faq-contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .page-faq .faq-flow {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 28px;
  }
}

@media (min-width: 992px) {
  .page-faq .faq-hero {
    padding: 64px 0 76px;
  }
  .page-faq .faq-hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .page-faq .faq-layout {
    grid-template-columns: var(--faq-sidebar-w) minmax(0, 1fr);
    gap: 36px;
    margin-top: 48px;
  }
  .page-faq .faq-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .page-faq .faq-stack {
    gap: 64px;
  }
  .page-faq .faq-group__desc {
    font-size: 14px;
  }
}
