.page-faq {
  --gold: #D4AF37;
  --c-bg: #0A0B0D;
  --c-carbon: #1C1E20;
  --c-ivory: #F5F2EB;
  --c-red: #E63946;
  --c-yellow: #F4D03F;
  --c-gray: #8A8D8F;
  --c-gold-light: #F5E6A8;
  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "JetBrains Mono", "Roboto Mono", "SF Mono", monospace;
  --font-num: "DIN Alternate", "Roboto Mono", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--c-bg);
  color: var(--c-ivory);
  overflow-x: clip;
}

/* ============ Hero ============ */
.faq-hero {
  background: var(--c-bg);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: calc(var(--header-h) + 24px) 0 40px;
  position: relative;
}

.faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-red) 55%, var(--c-yellow) 100%);
  opacity: 0.85;
}

.faq-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.faq-hero .breadcrumbs {
  margin-bottom: 20px;
}

.faq-hero__frame {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: var(--c-carbon);
}

.faq-hero__media {
  position: relative;
  height: auto;
  overflow: hidden;
  min-height: 220px;
}

.faq-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
}

.faq-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 28px;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.12) 0%, rgba(10, 11, 13, 0.88) 100%);
}

.faq-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--c-gold-light);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.faq-hero__title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-ivory);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(10, 11, 13, 0.6);
}

.faq-hero__lead {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 235, 0.82);
  margin: 0;
  max-width: 620px;
}

.faq-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-top: 0;
  margin-top: 0;
}

.faq-hero__stat {
  background: var(--c-carbon);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.faq-hero__stat .stat-number {
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
  letter-spacing: 0.02em;
}

.faq-hero__stat .data-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-gray);
  letter-spacing: 0.08em;
}

/* ============ 主区域结构 ============ */
.faq-board {
  background: var(--c-bg);
  padding: 40px 0 64px;
}

.faq-board__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

/* ============ 侧边栏 ============ */
.faq-sidebar {
  order: -1;
}

.faq-sidebar__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ivory);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
  position: relative;
}

.faq-sidebar__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 54px;
  height: 2px;
  background: var(--c-red);
}

.faq-sidebar__cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.faq-sidebar__cat {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-carbon);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.faq-sidebar__cat:hover {
  border-left-color: var(--c-gold);
  background: rgba(28, 30, 32, 0.85);
  transform: translateX(4px);
}

.faq-sidebar__dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  display: block;
}

.faq-sidebar__dot--red { background: var(--c-red); }
.faq-sidebar__dot--gold { background: var(--c-gold); }
.faq-sidebar__dot--yellow { background: var(--c-yellow); }
.faq-sidebar__dot--gray { background: var(--c-gray); }
.faq-sidebar__dot--light { background: var(--c-gold-light); }

.faq-sidebar__text {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ivory);
  letter-spacing: 0.02em;
}

.faq-sidebar__count {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--c-gray);
}

.faq-sidebar__contact {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(10, 11, 13, 0.4) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 20px 18px;
}

.faq-sidebar__contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-gray);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.faq-sidebar__contact-value {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold);
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}

.faq-sidebar__contact-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(245, 242, 235, 0.65);
  margin: 0 0 16px;
  line-height: 1.6;
}

.faq-sidebar__cta {
  width: 100%;
  justify-content: center;
}

/* ============ 右侧内容面板 ============ */
.faq-panel {
  min-width: 0;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-carbon);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0 16px;
  margin-bottom: 32px;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.faq-search:focus-within {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.faq-search__icon {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--c-gold);
  line-height: 1;
}

.faq-search__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--c-ivory);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 0;
}

.faq-search__input::placeholder {
  color: rgba(245, 242, 235, 0.35);
}

/* ============ FAQ 分区 ============ */
.faq-section {
  margin-bottom: 52px;
}

.faq-section__header {
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--c-gold);
}

.faq-section__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.faq-section__index {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.04em;
}

.faq-section__tag {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--c-gray);
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(138, 141, 143, 0.4);
}

.faq-section__heading {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--c-ivory);
  margin: 0 0 8px;
  line-height: 1.25;
}

.faq-section__desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 235, 0.65);
  margin: 0;
}

/* ============ FAQ 手风琴项 ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--c-carbon);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(212, 175, 55, 0.55);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(212, 175, 55, 0.45);
}

.faq-item[open] {
  border-left-color: var(--c-gold);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.faq-item__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq-item__head:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: -2px;
}

.faq-item__num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.1em;
  flex: 0 0 auto;
  opacity: 0.8;
}

.faq-item__q {
  flex: 1;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ivory);
  line-height: 1.5;
}

.faq-item__toggle {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  background: var(--c-gold);
  transition: transform 0.35s var(--ease-out);
}

.faq-item__toggle::before {
  width: 14px;
  height: 2px;
  left: 4px;
  top: 10px;
}

.faq-item__toggle::after {
  width: 2px;
  height: 14px;
  left: 10px;
  top: 4px;
}

.faq-item[open] .faq-item__toggle::after {
  transform: scaleY(0);
}

.faq-item__body {
  padding: 2px 20px 22px 50px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(245, 242, 235, 0.78);
}

.faq-item__body p {
  margin: 0 0 12px;
}

.faq-item__hl {
  color: var(--c-gold-light);
  font-weight: 500;
  background: linear-gradient(transparent 62%, rgba(212, 175, 55, 0.28) 62% 90%, transparent 90%);
  padding: 0 2px;
}

.faq-item__points {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item__points li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(245, 242, 235, 0.85);
}

.faq-item__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 2px;
  background: var(--c-red);
}

.faq-item__link {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item__link:hover {
  color: var(--c-gold-light);
}

/* ============ 适配卡 ============ */
.faq-compat-card {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 28px;
  background: linear-gradient(145deg, #121417 0%, #171a1d 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.faq-compat-card__media {
  background: var(--c-bg);
  overflow: hidden;
}

.faq-compat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-compat-card__info {
  padding: 24px 22px;
}

.faq-compat-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ivory);
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 10px;
}

.faq-compat-card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--c-gold);
}

.faq-compat-card__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-compat-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(245, 242, 235, 0.82);
  line-height: 1.6;
}

.faq-compat-card__mark {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 5px;
}

.faq-compat-card__mark--gold { background: var(--c-gold); }
.faq-compat-card__mark--red { background: var(--c-red); }
.faq-compat-card__mark--yellow { background: var(--c-yellow); }
.faq-compat-card__mark--gray { background: var(--c-gray); }

.faq-compat-card__btn {
  width: 100%;
}

/* ============ 底部链接卡 ============ */
.faq-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.faq-links__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 18px;
  background: var(--c-carbon);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 2px solid rgba(212, 175, 55, 0.5);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.faq-links__card:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  background: rgba(28, 30, 32, 0.85);
}

.faq-links__label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ivory);
}

.faq-links__arrow {
  font-family: var(--font-num);
  font-size: 22px;
  color: var(--c-gold);
  line-height: 1;
}

/* ============ 平板断点 ============ */
@media (min-width: 600px) {
  .faq-hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .faq-hero__frame {
    clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 54px, 100% 100%, 0 100%);
  }

  .faq-hero__content {
    padding: 36px 40px 40px;
  }

  .faq-hero__title {
    font-size: 44px;
  }

  .faq-hero__lead {
    font-size: 15px;
  }

  .faq-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .faq-hero__stat {
    padding: 22px 18px;
  }

  .faq-hero__stat .stat-number {
    font-size: 40px;
  }

  .faq-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============ 桌面断点 ============ */
@media (min-width: 960px) {
  .faq-board {
    padding: 64px 0 80px;
  }

  .faq-board__grid {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
  }

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

  .faq-section__heading {
    font-size: 28px;
  }

  .faq-item__q {
    font-size: 16px;
  }

  .faq-item__body {
    font-size: 14px;
    padding-right: 36px;
  }

  .faq-compat-card {
    grid-template-columns: 1fr 1fr;
  }

  .faq-compat-card__info {
    padding: 30px 28px;
  }

  .faq-compat-card__btn {
    width: auto;
    justify-self: start;
  }
}
