.page-faq {
  --faq-panel-deep: #0D1322;
  --faq-glow: rgba(0, 229, 255, 0.08);
  --faq-glow-strong: rgba(0, 229, 255, 0.16);
  background: var(--ly-bg);
  overflow-wrap: anywhere;
}

/* 顶部帮助中心 */
.faq-hero {
  position: relative;
  overflow: hidden;
  padding-top: 0;
}
.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 229, 255, 0.14), transparent 40%),
    linear-gradient(135deg, rgba(0, 255, 136, 0.04), transparent 46%);
  pointer-events: none;
}
.faq-hero .ly-container {
  position: relative;
  z-index: 1;
}
.faq-hero-copy {
  padding-top: var(--ly-space-1);
}
.faq-hero-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.06);
  color: var(--ly-blue);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.faq-hero h1 {
  margin: 0 0 var(--ly-space-1);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ly-text);
  transform: skew(-6deg);
  transform-origin: left center;
}
.faq-hero-lead {
  max-width: 42rem;
  margin: 0;
  color: var(--ly-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}
.faq-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  list-style: none;
  margin: var(--ly-space-1) 0 0;
  padding: 0;
}
.faq-hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  color: var(--ly-muted);
  font-size: 0.8125rem;
}
.faq-hero-stats strong {
  color: var(--ly-blue);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
}
.faq-hero-media {
  margin: var(--ly-space-2) 0 0;
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  overflow: hidden;
  background: var(--ly-panel);
}
.faq-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 索引加正文双层布局 */
.faq-main {
  padding-top: var(--ly-space-2);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ly-space-2);
}
.faq-index {
  background: var(--ly-panel);
  border: 1px solid var(--ly-line);
  border-left: 3px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--ly-radius);
  padding: var(--ly-space-1);
}
.faq-index-title {
  margin: 0 0 0.75rem;
  color: var(--ly-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.faq-index-list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}
.faq-index-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ly-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.faq-index-list a:hover,
.faq-index-list a:focus-visible {
  color: var(--ly-text);
  background: rgba(0, 229, 255, 0.07);
  border-color: rgba(0, 229, 255, 0.22);
}
.faq-index-list a:focus-visible {
  outline: 2px solid var(--ly-blue);
  outline-offset: 2px;
}
.faq-index-num {
  color: var(--ly-blue);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 章节统一节奏 */
.faq-chapter {
  scroll-margin-top: 1.5rem;
  padding-bottom: var(--ly-space-1);
  margin-bottom: var(--ly-space-3);
  border-bottom: 1px solid var(--ly-line);
}
.faq-chapter:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-chapter .ly-chapter {
  display: grid;
  grid-template-columns: clamp(3rem, 12vw, 5rem) minmax(0, 1fr);
  gap: 0.875rem 1rem;
  align-items: end;
  margin-bottom: var(--ly-space-2);
}
.faq-chapter .ly-chapter-num {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 100;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--ly-blue);
  opacity: 0.3;
  user-select: none;
}
.faq-chapter .ly-chapter-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ly-text);
}
.faq-chapter-desc {
  margin: 0.5rem 0 0;
  color: var(--ly-muted);
  font-size: 0.9375rem;
}

/* 折叠面板 */
.faq-item {
  display: block;
  position: relative;
  margin: 0 0 0.75rem;
  background: var(--ly-panel);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.07), rgba(0, 255, 136, 0.03));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.faq-item[open] {
  border-color: var(--ly-line-acc);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}
.faq-item[open]::before {
  opacity: 1;
}
.faq-item-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 0.875rem;
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.125rem;
  position: relative;
  z-index: 1;
}
.faq-item-summary::-webkit-details-marker {
  display: none;
}
.faq-item-summary::marker {
  content: "";
}
.faq-item-summary:focus-visible {
  outline: 2px solid var(--ly-blue);
  outline-offset: -2px;
}
.faq-item-q {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
  background: var(--ly-grad-cg);
  color: var(--ly-bg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.faq-item-title {
  flex: 1 1 16rem;
  margin: 0;
  color: var(--ly-text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s;
}
.faq-item[open] .faq-item-title {
  color: var(--ly-blue);
}
.faq-item-summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  flex: 0 0 1.625rem;
  border: 1px solid var(--ly-line);
  border-radius: 50%;
  color: var(--ly-muted);
  font-size: 1.0625rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.faq-item[open] .faq-item-summary::after {
  content: "–";
  color: var(--ly-blue);
  border-color: var(--ly-blue);
  background: rgba(0, 229, 255, 0.08);
}
.faq-item .ly-tag {
  flex: 0 0 auto;
}
.faq-item-body {
  position: relative;
  z-index: 1;
  padding: 0.875rem 1.125rem 1.125rem 4rem;
  border-top: 1px dashed var(--ly-line);
  color: var(--ly-muted);
}
.faq-item-body p {
  margin: 0 0 0.625rem;
}
.faq-item-body p:last-child {
  margin: 0;
}
.faq-item-body a {
  color: var(--ly-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item-body a:focus-visible {
  outline: 2px solid var(--ly-blue);
  outline-offset: 2px;
}

/* 联系支持面板 */
.faq-contact {
  margin-top: var(--ly-space-1);
  padding: var(--ly-space-1);
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 4px 18px 4px 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(255, 45, 120, 0.03)),
    var(--ly-panel);
}
.faq-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ly-space-1);
  align-items: center;
}
.faq-contact-copy h3 {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--ly-text);
}
.faq-contact-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.faq-contact-list li {
  display: flex;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--ly-line);
  color: var(--ly-muted);
  font-size: 0.9375rem;
}
.faq-contact-list li:last-child {
  border-bottom: 0;
}
.faq-contact-list span {
  flex: 0 0 3.5rem;
  color: var(--ly-text);
  font-weight: 600;
}
.faq-contact-note {
  margin: 0.875rem 0 0;
  padding: 0.75rem 0.875rem;
  border-left: 3px solid var(--ly-orange);
  border-radius: 6px;
  background: rgba(255, 122, 0, 0.08);
  color: var(--ly-muted);
  font-size: 0.875rem;
}
.faq-contact-copy .ly-btn {
  margin-top: 1rem;
}
.faq-contact-media {
  margin: 0;
  border-radius: var(--ly-radius);
  overflow: hidden;
  background: var(--ly-bg);
}
.faq-contact-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 标签色彩节奏 */
.page-faq .faq-item .ly-tag {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.08);
  color: var(--ly-blue);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-faq .faq-item .ly-tag--ok {
  border-color: rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.08);
  color: var(--ly-green);
}
.page-faq .faq-item .ly-tag--hot {
  border-color: rgba(255, 122, 0, 0.28);
  background: rgba(255, 122, 0, 0.1);
  color: var(--ly-orange);
}

@media (max-width: 480px) {
  .faq-item-body {
    padding-left: 1.125rem;
  }
  .faq-chapter .ly-chapter {
    grid-template-columns: minmax(2.5rem, 3.5rem) minmax(0, 1fr);
  }
}

@media (min-width: 700px) {
  .faq-contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .faq-hero-lead {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--ly-space-3);
  }
  .faq-index {
    position: sticky;
    top: 2rem;
  }
  .faq-index-list {
    display: block;
  }
  .faq-index-list a {
    display: flex;
    white-space: normal;
    border-bottom: 1px solid var(--ly-line);
    border-radius: 0;
    padding: 0.5rem 0.25rem;
  }
  .faq-index-list a:hover,
  .faq-index-list a:focus-visible {
    background: transparent;
    border-color: rgba(0, 229, 255, 0.22);
  }
  .faq-hero-copy {
    padding-top: var(--ly-space-2);
  }
}
