.page-faq {
  --faq-gold-line: linear-gradient(90deg, #C5A059 0%, #E3B877 60%, rgba(197, 160, 89, 0.1) 100%);
  --faq-sidebar-w: 300px;
  --faq-accent: #C5A059;
  --faq-crimson: #8C1D2F;
  background:
    radial-gradient(circle at 90% 4%, rgba(197, 160, 89, 0.12), transparent 320px),
    linear-gradient(180deg, #0A1128 0%, #0A1128 100%);
  color: #F5F2E9;
  min-height: 100vh;
  padding: 32px 0 80px;
}

.page-faq .container {
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.page-faq .faq-toc {
  position: relative;
  order: 2;
}

.page-faq .faq-toc-inner {
  background: linear-gradient(145deg, #1B2A4A 0%, #0A1128 100%);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 3px;
  padding: 28px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(0, 0, 0, 0.2);
  position: relative;
}

.page-faq .faq-toc-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--faq-gold-line);
}

.page-faq .faq-toc-kicker,
.page-faq .faq-version-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E3B877;
  margin: 0 0 8px;
  font-weight: 600;
}

.page-faq .faq-toc-title {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F5F2E9;
  line-height: 1.3;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 220, 230, 0.2);
}

.page-faq .faq-toc-desc {
  font-size: 0.9rem;
  color: #D8DCE6;
  line-height: 1.7;
  margin: 0 0 20px;
}

.page-faq .faq-toc-nav {
  display: grid;
  gap: 6px;
}

.page-faq .faq-toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  text-decoration: none;
  color: #F5F2E9;
  border: 1px solid transparent;
  transition: background-color 200ms cubic-bezier(0.16, 0.84, 0.44, 1), border-color 200ms cubic-bezier(0.16, 0.84, 0.44, 1), transform 200ms cubic-bezier(0.16, 0.84, 0.44, 1);
}

.page-faq .faq-toc-link:hover,
.page-faq .faq-toc-link:focus-visible {
  background: rgba(197, 160, 89, 0.1);
  border-color: rgba(197, 160, 89, 0.4);
}

.page-faq .faq-toc-num {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: 0.85rem;
  color: #C5A059;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 50%;
}

.page-faq .faq-toc-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.page-faq .faq-toc-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 220, 230, 0.16);
}

.page-faq .faq-toc-note-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #E3B877;
  margin: 0 0 8px;
  letter-spacing: 0.08em;
}

.page-faq .faq-toc-note p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #D8DCE6;
  margin: 0 0 8px;
}

.page-faq .faq-toc-note-link a {
  color: #C5A059;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  padding-bottom: 2px;
  font-weight: 600;
}

.page-faq .faq-toc-note-link a:hover {
  color: #E3B877;
  border-bottom-color: #E3B877;
}

.page-faq .faq-stage {
  order: 1;
  min-width: 0;
}

.page-faq .breadcrumb {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: #D8DCE6;
}

.page-faq .breadcrumb-link {
  color: #C5A059;
  text-decoration: none;
  margin-right: 4px;
}

.page-faq .breadcrumb-link:hover {
  color: #E3B877;
}

.page-faq .breadcrumb-sep {
  margin-right: 4px;
  color: rgba(216, 220, 230, 0.5);
}

.page-faq .breadcrumb-current {
  color: #F5F2E9;
}

.page-faq .faq-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 0 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  position: relative;
}

.page-faq .faq-hero h1 {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #F5F2E9;
  letter-spacing: 0.02em;
}

.page-faq .faq-hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: #D8DCE6;
  margin: 0;
  max-width: 44em;
}

.page-faq .faq-hero-image {
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.25);
}

.page-faq .faq-hero-image::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(10, 17, 40, 0.35) 100%);
  pointer-events: none;
}

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

.page-faq .faq-answers {
  display: grid;
  gap: 24px;
}

.page-faq .faq-cluster {
  background: rgba(27, 42, 74, 0.55);
  border: 1px solid rgba(216, 220, 230, 0.14);
  border-radius: 3px;
  padding: 24px 20px 8px;
  position: relative;
  transition: border-color 320ms cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 320ms cubic-bezier(0.16, 0.84, 0.44, 1);
  scroll-margin-top: 24px;
}

.page-faq .faq-cluster:target {
  border-color: rgba(197, 160, 89, 0.65);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.25), 0 10px 28px rgba(0, 0, 0, 0.15);
}

.page-faq .faq-cluster-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.page-faq .faq-cluster-num {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #C5A059;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  margin-top: 4px;
}

.page-faq .faq-cluster-title {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #F5F2E9;
  margin: 0 0 4px;
  line-height: 1.3;
}

.page-faq .faq-cluster-sub {
  font-size: 0.875rem;
  color: #D8DCE6;
  margin: 0;
  line-height: 1.6;
}

.page-faq .faq-item {
  border-top: 1px solid rgba(216, 220, 230, 0.12);
  transition: background-color 200ms cubic-bezier(0.16, 0.84, 0.44, 1);
}

.page-faq .faq-item[open] {
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.06), transparent 80%);
}

.page-faq .faq-item[open] .faq-q-mark {
  transform: rotate(135deg);
  border-color: #E3B877;
}

.page-faq .faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  user-select: none;
}

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

.page-faq .faq-question:focus-visible {
  outline: 2px solid rgba(197, 160, 89, 0.6);
  outline-offset: -2px;
}

.page-faq .faq-q-text {
  font-size: 1rem;
  font-weight: 600;
  color: #F5F2E9;
  line-height: 1.6;
  flex: 1;
}

.page-faq .faq-q-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(197, 160, 89, 0.6);
  border-left: 0;
  border-top: 0;
  transform: rotate(-45deg);
  margin-top: 6px;
  transition: transform 320ms cubic-bezier(0.16, 0.84, 0.44, 1), border-color 200ms cubic-bezier(0.16, 0.84, 0.44, 1);
}

.page-faq .faq-answer {
  padding: 0 28px 16px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.18);
}

.page-faq .faq-answer:last-child {
  border-bottom: 1px solid transparent;
}

.page-faq .faq-a-text {
  font-size: 0.925rem;
  line-height: 1.78;
  color: #D8DCE6;
  margin: 0 0 10px;
}

.page-faq .faq-a-tag {
  margin: 0;
  font-size: 0.82rem;
}

.page-faq .faq-a-tag a {
  color: #C5A059;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  padding-bottom: 1px;
  transition: color 200ms, border-color 200ms;
}

.page-faq .faq-a-tag a:hover {
  color: #E3B877;
  border-bottom-color: #E3B877;
}

.page-faq .faq-note {
  margin-top: 32px;
}

.page-faq .faq-note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(120deg, rgba(140, 29, 47, 0.16), rgba(197, 160, 89, 0.06));
  border-left: 3px solid #8C1D2F;
  padding: 16px 18px;
  border-radius: 0 3px 3px 0;
}

.page-faq .faq-note-badge {
  flex: 0 0 auto;
  background: #8C1D2F;
  color: #F5F2E9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 2px;
  margin-top: 2px;
}

.page-faq .faq-note-box p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #F5F2E9;
  margin: 0;
}

.page-faq .faq-version {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: linear-gradient(135deg, #1B2A4A 0%, #0A1128 100%);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 3px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-version::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--faq-gold-line);
}

.page-faq .faq-version-image {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

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

.page-faq .faq-version-title {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #F5F2E9;
  margin: 0 0 12px;
  line-height: 1.3;
}

.page-faq .faq-version-text {
  font-size: 0.925rem;
  line-height: 1.78;
  color: #D8DCE6;
  margin: 0 0 16px;
}

.page-faq .faq-version-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.page-faq .faq-version-list li {
  font-size: 0.875rem;
  color: #D8DCE6;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.page-faq .faq-version-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 1px solid #C5A059;
  transform: rotate(45deg);
}

.page-faq .faq-version-link a {
  color: #C5A059;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  padding-bottom: 3px;
  transition: color 200ms, border-color 200ms;
}

.page-faq .faq-version-link a:hover {
  color: #E3B877;
  border-bottom-color: #E3B877;
}

@media (min-width: 720px) {
  .page-faq {
    padding: 40px 0 88px;
  }

  .page-faq .faq-layout {
    grid-template-columns: var(--faq-sidebar-w) minmax(0, 1fr);
    gap: 48px;
  }

  .page-faq .faq-toc {
    order: 1;
    position: sticky;
    top: 32px;
  }

  .page-faq .faq-stage {
    order: 2;
  }

  .page-faq .faq-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 28px;
  }

  .page-faq .faq-cluster {
    padding: 28px 28px 12px;
  }

  .page-faq .faq-version {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    padding: 28px;
    align-items: center;
  }

  .page-faq .faq-version-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item,
  .page-faq .faq-q-mark,
  .page-faq .faq-version,
  .page-faq .faq-cluster,
  .page-faq .faq-toc-link {
    transition: none;
  }
}
