.page-faq {
  --faq-line: rgba(47, 240, 206, 0.16);
  --faq-line-soft: rgba(242, 251, 248, 0.08);
  --faq-text: #C7DCD6;
  --faq-open: #0C2A24;
  color: var(--ky-white);
}

/* ---------- 首屏 ---------- */
.page-faq .faq-hero {
  position: relative;
  padding: 32px 0 56px;
  background:
    radial-gradient(880px 360px at 84% 4%, rgba(255, 90, 43, 0.10), transparent 62%),
    radial-gradient(700px 420px at 4% 96%, rgba(47, 240, 206, 0.10), transparent 66%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 240, 206, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 240, 206, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 88% at 50% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(120% 88% at 50% 0%, #000 18%, transparent 76%);
  pointer-events: none;
}

.page-faq .faq-hero > .ky-shell {
  position: relative;
  z-index: 1;
}

.page-faq .faq-hero .ky-crumbs {
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--ky-mist);
}

.page-faq .faq-hero .ky-crumbs a {
  color: var(--ky-cyan-soft);
  text-decoration: none;
}

.page-faq .faq-hero .ky-crumbs a:hover {
  color: var(--ky-cyan);
  text-decoration: underline;
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: 34px;
}

.page-faq .faq-hero__lead .ky-index {
  color: var(--ky-cyan);
  letter-spacing: 0.14em;
}

.page-faq .faq-hero__title {
  margin: 16px 0 0;
  font-size: clamp(34px, 7vw, 74px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ky-white);
}

.page-faq .faq-hero__text {
  max-width: 46ch;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--faq-text);
}

.page-faq .faq-hero__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-faq .faq-hero__slots li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 162, 58, 0.34);
  border-radius: var(--ky-radius);
  background: rgba(255, 162, 58, 0.07);
  color: var(--ky-amber);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.page-faq .faq-hero__slots .ky-mono {
  color: inherit;
}

.page-faq .faq-hero__slots-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ky-mist);
}

.page-faq .faq-hero__figure {
  margin: 0;
  border: 1px solid var(--faq-line);
  border-radius: var(--ky-radius);
  overflow: hidden;
  background: var(--ky-glass);
  box-shadow: 0 24px 60px -40px rgba(47, 240, 206, 0.5);
}

.page-faq .faq-hero__figure .ky-figure__caption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ky-mist);
}

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

/* ---------- 正文骨架 ---------- */
.page-faq .faq-body__shell {
  display: grid;
  gap: 34px;
  padding: 56px 0 72px;
}

.page-faq .faq-axis .ky-axis__title {
  color: var(--ky-cyan);
  letter-spacing: 0.14em;
}

.page-faq .faq-axis .ky-axis__link {
  color: var(--faq-text);
  text-decoration: none;
  transition: color 200ms var(--ky-ease);
}

.page-faq .faq-axis .ky-axis__link:hover,
.page-faq .faq-axis .ky-axis__link[aria-current="true"] {
  color: var(--ky-cyan);
}

/* ---------- 筛选条 ---------- */
.page-faq .faq-flow__head .ky-h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.15;
}

.page-faq .faq-flow__intro {
  max-width: 48ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ky-mist);
}

.page-faq .faq-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--faq-line-soft);
  border-radius: var(--ky-radius);
  background: var(--ky-glass);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.page-faq .faq-filter .ky-filter__btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 13px;
  border: 1px solid rgba(47, 240, 206, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--ky-cyan-soft);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background 220ms var(--ky-ease), color 220ms var(--ky-ease), border-color 220ms var(--ky-ease);
}

.page-faq .faq-filter .ky-filter__btn:hover {
  border-color: var(--ky-cyan);
  background: rgba(47, 240, 206, 0.10);
}

.page-faq .faq-filter .ky-filter__btn:focus-visible {
  outline: 2px solid var(--ky-cyan);
  outline-offset: 2px;
}

.page-faq .faq-filter .ky-filter__btn.is-active,
.page-faq .faq-filter .ky-filter__btn[aria-pressed="true"] {
  border-color: var(--ky-cyan);
  background: var(--ky-cyan);
  color: var(--ky-void);
}

.page-faq .faq-filter__count {
  margin-left: auto;
  color: var(--ky-mist);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.page-faq .faq-filter__count [data-filter-count] {
  font-family: var(--ky-font-mono);
  font-weight: 600;
  color: var(--ky-amber);
}

/* ---------- 分组 ---------- */
.page-faq .faq-list {
  margin-top: 34px;
}

.page-faq .faq-group {
  margin-top: 52px;
}

.page-faq .faq-group:first-child {
  margin-top: 0;
}

.page-faq .faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--faq-line);
}

.page-faq .faq-group__no {
  color: var(--ky-cyan);
  font-size: 12.5px;
  letter-spacing: 0.16em;
}

.page-faq .faq-group__title {
  margin: 0;
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ky-white);
}

.page-faq .faq-group__hint {
  margin-left: auto;
  color: var(--ky-mist);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- 手风琴条目 ---------- */
.page-faq .faq-item {
  interpolate-size: allow-keywords;
  border-bottom: 1px solid var(--faq-line-soft);
  border-left: 2px solid transparent;
  transition: background 280ms var(--ky-ease), border-left-color 280ms var(--ky-ease);
}

.page-faq .faq-item[open] {
  border-left-color: var(--ky-cyan);
  background: linear-gradient(96deg, rgba(12, 42, 36, 0.96), rgba(12, 42, 36, 0.42) 78%, rgba(12, 42, 36, 0));
}

.page-faq .faq-item__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 16px 18px 18px;
  cursor: pointer;
  list-style: none;
}

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

.page-faq .faq-item__summary:focus-visible {
  outline: 2px solid var(--ky-cyan);
  outline-offset: -2px;
}

.page-faq .faq-item__no {
  color: var(--ky-cyan);
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.page-faq .faq-item__q {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ky-white);
}

.page-faq .faq-item__sign {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.page-faq .faq-item__sign::before,
.page-faq .faq-item__sign::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ky-cyan);
  transition: transform 300ms var(--ky-ease), opacity 300ms var(--ky-ease);
}

.page-faq .faq-item__sign::after {
  transform: rotate(90deg);
}

.page-faq .faq-item[open] .faq-item__sign::after {
  transform: rotate(0deg);
  opacity: 0;
}

.page-faq .faq-item__body {
  height: auto;
  overflow: hidden;
  padding: 0 18px 22px 18px;
  animation: faq-open 320ms var(--ky-ease) both;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-faq .faq-item__body p {
  max-width: 62ch;
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--faq-text);
}

.page-faq .faq-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: faqstep;
}

.page-faq .faq-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--faq-text);
}

.page-faq .faq-step-no {
  color: var(--ky-amber);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.page-faq .faq-item__link {
  margin: 0;
}

.page-faq .faq-item__link a {
  display: inline-block;
  color: var(--ky-cyan);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 240, 206, 0.42);
}

.page-faq .faq-item__link a:hover,
.page-faq .faq-item__link a:focus-visible {
  color: var(--ky-cyan-soft);
  border-bottom-color: var(--ky-cyan-soft);
  outline: none;
}

.page-faq .faq-item__link a::after {
  content: attr(data-target-name);
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
  color: var(--ky-mist);
  font-size: 12px;
  opacity: 0;
  transition: max-width 280ms var(--ky-ease), opacity 280ms var(--ky-ease), margin-left 280ms var(--ky-ease);
}

.page-faq .faq-item__link a:hover::after,
.page-faq .faq-item__link a:focus-visible::after {
  max-width: 14ch;
  margin-left: 8px;
  opacity: 1;
}

/* ---------- 设备示意图 ---------- */
.page-faq .faq-device-figure {
  margin: 26px 0 0;
  border: 1px solid var(--faq-line-soft);
  border-radius: var(--ky-radius);
  overflow: hidden;
  background: var(--ky-glass);
}

.page-faq .faq-device-figure .ky-figure__caption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ky-mist);
}

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

/* ---------- 结尾行动区 ---------- */
.page-faq .faq-next {
  padding: 0 0 80px;
}

.page-faq .faq-next__panel {
  display: grid;
  gap: 26px;
  padding: 32px 26px;
  border: 1px solid var(--faq-line);
  border-radius: var(--ky-radius);
  background: linear-gradient(140deg, rgba(12, 42, 36, 0.86), rgba(3, 12, 10, 0.72));
}

.page-faq .faq-next__copy .ky-index {
  color: var(--ky-orange);
  letter-spacing: 0.16em;
}

.page-faq .faq-next__copy .ky-h2 {
  margin: 12px 0 0;
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ky-white);
}

.page-faq .faq-next__copy p {
  max-width: 54ch;
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--faq-text);
}

.page-faq .faq-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-faq .faq-next__actions .ky-btn {
  text-decoration: none;
}

/* ---------- 响应式 ---------- */
@media (min-width: 900px) {
  .page-faq .faq-hero {
    padding: 40px 0 76px;
  }

  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: end;
  }

  .page-faq .faq-body__shell {
    padding: 72px 0 96px;
  }

  .page-faq .faq-next__panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    padding: 44px 42px;
  }

  .page-faq .faq-next__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1040px) {
  .page-faq .faq-body__shell {
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 62px;
    align-items: start;
  }

  .page-faq .faq-axis {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 1039px) {
  .page-faq .faq-axis .ky-axis__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
  }

  .page-faq .faq-axis .ky-axis__link {
    font-size: 13.5px;
  }
}

@media (max-width: 560px) {
  .page-faq .faq-hero__slots {
    gap: 8px;
  }

  .page-faq .faq-hero__slots li {
    padding: 6px 11px;
    font-size: 13px;
  }

  .page-faq .faq-item__summary {
    gap: 10px;
    padding: 16px 12px 16px 14px;
  }

  .page-faq .faq-item__body {
    padding: 0 14px 20px 14px;
  }

  .page-faq .faq-item__q {
    font-size: 15px;
  }

  .page-faq .faq-filter__count {
    width: 100%;
    margin-left: 0;
  }

  .page-faq .faq-next__panel {
    padding: 26px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__body {
    animation: none;
  }

  .page-faq .faq-item,
  .page-faq .faq-item__sign::before,
  .page-faq .faq-item__sign::after,
  .page-faq .faq-item__link a::after,
  .page-faq .faq-filter .ky-filter__btn {
    transition: none;
  }
}
