.page-faq {
  --gold: #d4af37;
  --gold-light: #fce043;
  --bg-deep: #0a0a0a;
  --bg-elevated: #161616;
  --surface: #1f1f1f;
  --divider: #38383a;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --radius: 14px;
  --radius-pill: 999px;
  --font-subhead: clamp(1.25rem, 2vw, 1.5rem);
  --font-body: clamp(1rem, 1.2vw, 1.125rem);
  --transition: 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-faq .faq-hero__frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  overflow: hidden;
  border: 0;
}

.page-faq .faq-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-faq .faq-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.7) 45%, rgba(10, 10, 10, 0.25) 100%);
}

.page-faq .faq-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3.25rem;
  width: 100%;
}

.page-faq .faq-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.page-faq .faq-breadcrumb .breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.page-faq .faq-breadcrumb .breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--text-muted);
}

.page-faq .faq-breadcrumb .breadcrumb__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 160ms ease;
}

.page-faq .faq-breadcrumb .breadcrumb__link:hover {
  color: var(--gold);
}

.page-faq .faq-breadcrumb .breadcrumb__current {
  color: var(--gold);
}

.page-faq .faq-hero__content .section-label {
  margin-bottom: 0.75rem;
}

.page-faq .faq-hero h1 {
  margin: 0 0 1rem;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.page-faq .faq-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: var(--font-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-faq .faq-layout-wrap {
  padding-block: 3rem 4.5rem;
}

.page-faq .faq-layout {
  display: grid;
  gap: 2.5rem;
}

.page-faq .faq-aside__inner {
  display: grid;
  gap: 1.25rem;
}

.page-faq .faq-category,
.page-faq .faq-help {
  padding: 1.5rem;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.015);
}

.page-faq .faq-help {
  border-left: 3px solid var(--gold);
}

.page-faq .faq-aside__title {
  margin: 0 0 0.375rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-faq .faq-aside__desc {
  margin: 0 0 1.1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-faq .faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.page-faq .faq-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.page-faq .faq-filter__label:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.page-faq .faq-filter__label:active {
  transform: scale(0.96);
}

.page-faq .faq-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.625rem;
  height: 1.625rem;
  padding: 0 0.375rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.page-faq .faq-filter__radio:checked + .faq-filter__label {
  background: var(--gold);
  border-color: transparent;
  color: var(--bg-deep);
  font-weight: 600;
}

.page-faq .faq-filter__radio:checked + .faq-filter__label .faq-filter__count {
  background: rgba(0, 0, 0, 0.2);
  color: var(--bg-deep);
}

.page-faq .faq-filter__radio:focus-visible + .faq-filter__label {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.page-faq .faq-help__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.page-faq .faq-help__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.875rem;
}

.page-faq .faq-help__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-faq .faq-help__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-faq .faq-help__value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.page-faq .faq-help__note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-faq .faq-help__note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.page-faq .faq-help__note a:hover {
  color: var(--gold-light);
}

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

.page-faq .faq-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-faq .faq-section-head h2 {
  margin: 0;
  font-size: var(--font-subhead);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-faq .faq-hot__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.page-faq .faq-hot__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--divider);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.015);
  transition: border-color 180ms ease, transform 180ms ease;
}

.page-faq .faq-hot__item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.page-faq .faq-hot__num {
  flex: 0 0 auto;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

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

.page-faq .faq-hot__content .tag {
  display: inline-block;
  margin-bottom: 0.4rem;
}

.page-faq .faq-hot__q {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.page-faq .faq-hot__a {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.page-faq .faq-all {
  position: relative;
  margin-top: 4rem;
}

.page-faq .faq-texture {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 0;
  width: 200px;
  height: 200px;
  opacity: 0.08;
  pointer-events: none;
}

.page-faq .faq-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-faq .faq-accordion {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
}

.page-faq .faq-item {
  display: grid;
  grid-template-rows: auto 0fr;
  align-content: start;
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, grid-template-rows 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-faq .faq-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.page-faq .faq-item[open] {
  border-color: rgba(212, 175, 55, 0.5);
  background: var(--surface);
  grid-template-rows: auto 1fr;
}

.page-faq .faq-item__q {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .faq-item__icon {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
}

.page-faq .faq-item[open] .faq-item__icon {
  background: rgba(212, 175, 55, 0.12);
}

.page-faq .faq-item__title {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}

.page-faq .faq-item__mark {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms ease;
}

.page-faq .faq-item[open] .faq-item__mark {
  transform: rotate(45deg);
}

.page-faq .faq-item__a {
  min-height: 0;
  overflow: hidden;
}

.page-faq .faq-item__a p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-faq .faq-item__a a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.page-faq .faq-item__a a:hover {
  color: var(--gold-light);
}

.page-faq:has(#faq-cat-download:checked) .faq-hot__item:not([data-category="download"]),
.page-faq:has(#faq-cat-download:checked) .faq-item:not([data-category="download"]) {
  display: none;
}

.page-faq:has(#faq-cat-update:checked) .faq-hot__item:not([data-category="update"]),
.page-faq:has(#faq-cat-update:checked) .faq-item:not([data-category="update"]) {
  display: none;
}

.page-faq:has(#faq-cat-guide:checked) .faq-hot__item:not([data-category="guide"]),
.page-faq:has(#faq-cat-guide:checked) .faq-item:not([data-category="guide"]) {
  display: none;
}

.page-faq:has(#faq-cat-service:checked) .faq-hot__item:not([data-category="service"]),
.page-faq:has(#faq-cat-service:checked) .faq-item:not([data-category="service"]) {
  display: none;
}

.page-faq [data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-faq [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

@media (min-width: 768px) {
  .page-faq .faq-hero__frame {
    min-height: 500px;
  }

  .page-faq .faq-hero__content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .page-faq .faq-hot__item {
    padding: 1.75rem;
  }

  .page-faq .faq-item__q {
    padding: 1.375rem 1.5rem;
  }

  .page-faq .faq-item__a p {
    padding: 0 1.5rem 1.375rem 4.375rem;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-layout-wrap {
    padding-block: 4.5rem 6rem;
  }

  .page-faq .faq-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .page-faq .faq-aside {
    position: sticky;
    top: calc(var(--header-h, 80px) + 24px);
  }

  .page-faq .faq-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .page-faq .faq-filter__label {
    justify-content: space-between;
  }

  .page-faq .faq-hot__list {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-faq .faq-item,
  .page-faq .faq-item__a,
  .page-faq .faq-item__mark,
  .page-faq .faq-filter__label {
    transition: none;
  }
}
