.page-faq {
  --faq-sidebar-width: 280px;
  background: var(--c-white);
  color: var(--c-ink);
}

/* ===== Hero ===== */
.faq-hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(52, 152, 219, 0.28), transparent 70%),
    linear-gradient(135deg, var(--c-deep) 0%, var(--c-hl) 100%);
  color: var(--c-white);
  padding: 44px 0 40px;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.6) 40%, transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 255, 255, 0.5) 40%, transparent 60%),
    radial-gradient(1px 1px at 85% 65%, rgba(255, 255, 255, 0.4) 40%, transparent 60%),
    radial-gradient(1px 1px at 45% 80%, rgba(255, 255, 255, 0.5) 40%, transparent 60%),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.3) 40%, transparent 60%);
}

.faq-hero__inner {
  position: relative;
}

.faq-hero__text {
  position: relative;
  max-width: 760px;
}

.faq-hero__tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: var(--radius-pill);
  color: var(--c-gold);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(11, 29, 57, 0.25);
}

.faq-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--c-white);
  font-weight: 700;
}

.faq-hero__lead {
  max-width: 680px;
  color: rgba(242, 246, 249, 0.85);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}

.faq-hero__lead a {
  color: #7ec8f7;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.faq-hero__lead a:hover {
  color: var(--c-white);
}

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

.faq-hero__meta li {
  border: 1px solid rgba(242, 246, 249, 0.22);
  background: rgba(242, 246, 249, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(242, 246, 249, 0.92);
}

.faq-hero__figure {
  margin: 32px 0 0;
  padding: 8px;
  background: rgba(242, 246, 249, 0.08);
  border: 1px solid rgba(242, 246, 249, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.faq-hero__figure img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

/* ===== 热门问题快速跳转 ===== */
.faq-jump {
  border-bottom: 1px solid var(--c-sand);
  background: rgba(242, 246, 249, 0.85);
}

.faq-jump__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.faq-jump__label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-hl);
  font-size: 14px;
  margin-right: 4px;
  letter-spacing: 0.04em;
}

.faq-jump__tag {
  padding: 5px 14px;
  border: 1px solid var(--c-sand);
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.faq-jump__tag:hover {
  border-color: var(--c-lake);
  color: var(--c-lake);
  box-shadow: 0 2px 14px rgba(52, 152, 219, 0.16);
}

/* ===== 主体双栏布局 ===== */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 64px;
}

/* ===== 侧边目录 ===== */
.faq-cats__inner {
  background: linear-gradient(180deg, var(--c-deep), var(--c-hl));
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}

.faq-cats__title {
  font-family: var(--font-head);
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--c-white);
  font-weight: 700;
}

.faq-cats__desc {
  font-size: 13px;
  opacity: 0.7;
  margin: 0 0 20px;
}

.faq-cats__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.faq-cats__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: rgba(242, 246, 249, 0.86);
  background: rgba(242, 246, 249, 0.06);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.faq-cats__link:hover {
  background: rgba(52, 152, 219, 0.22);
  color: var(--c-white);
  transform: translateX(4px);
}

.faq-cats__num {
  font-family: var(--font-head);
  color: var(--c-gold);
  font-size: 13px;
  opacity: 0.9;
}

.faq-cats__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--c-white);
  border-color: rgba(242, 246, 249, 0.5);
  font-size: 14px;
}

.faq-cats__cta:hover {
  background: rgba(242, 246, 249, 0.12);
  color: var(--c-white);
}

/* ===== 折叠面板容器 ===== */
.faq-group {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group__head {
  border-left: 4px solid var(--c-lake);
  padding-left: 16px;
  margin-bottom: 18px;
}

.faq-group__head h2 {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--c-hl);
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  font-weight: 700;
}

.faq-group__head p {
  font-size: 14px;
  color: rgba(44, 62, 80, 0.7);
  margin: 0;
}

/* ===== 折叠项 ===== */
.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-sand);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: var(--shadow-soft);
}

.faq-item[open] {
  border-color: rgba(52, 152, 219, 0.35);
}

.faq-item__q {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--c-hl);
  font-size: 15px;
  line-height: 1.6;
  font-family: var(--font-body);
}

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

.faq-item__q::marker {
  content: "";
}

.faq-item__num {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--c-lake);
  background: rgba(52, 152, 219, 0.1);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  font-weight: 700;
}

.faq-item__text {
  flex: 1;
}

.faq-item__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--c-lake);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.faq-item__icon::before {
  width: 14px;
  height: 2px;
}

.faq-item__icon::after {
  width: 2px;
  height: 14px;
}

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.25s ease;
}

.faq-item__a-inner {
  overflow: hidden;
}

.faq-item[open] .faq-item__a {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item__a p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--c-ink);
}

.faq-item__a a {
  color: var(--c-lake);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 流程示意图 ===== */
.faq-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(230, 126, 34, 0.06));
  border: 1px solid var(--c-sand);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 28px 0 36px;
}

.faq-flow__figure {
  margin: 0;
}

.faq-flow__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.faq-flow__tip h3 {
  font-family: var(--font-head);
  color: var(--c-hl);
  font-size: 20px;
  margin: 0 0 14px;
  font-weight: 700;
}

.faq-flow__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.faq-flow__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--c-ink);
}

.faq-flow__steps span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-sun);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 28px;
}

/* ===== 平板 700px ===== */
@media (min-width: 700px) {
  .faq-flow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .faq-hero__meta {
    justify-content: flex-start;
  }

  .faq-jump__inner {
    flex-wrap: nowrap;
  }
}

/* ===== 桌面 1024px ===== */
@media (min-width: 1024px) {
  .faq-hero {
    padding: 64px 0 56px;
  }

  .faq-hero h1 {
    font-size: 52px;
  }

  .faq-hero__text {
    max-width: 780px;
  }

  .faq-hero__figure {
    margin-top: 40px;
  }

  .faq-layout {
    grid-template-columns: var(--faq-sidebar-width) minmax(0, 1fr);
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .faq-cats__inner {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .faq-item__a p {
    padding-left: 64px;
  }
}
