.page-faq {
  --faq-deep: #070A1E;
  --faq-card-border: rgba(212, 175, 55, 0.2);
  --faq-text-dim: rgba(255, 255, 255, 0.68);
  --faq-gold-soft: rgba(245, 197, 24, 0.14);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
}

/* ===== Hero ===== */
.page-faq .faq-hero {
  position: relative;
  padding: 118px 0 58px;
  background: linear-gradient(135deg, #070A1E 0%, #0A0E2A 42%, #1A0F2E 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.26);
  overflow: hidden;
}
.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), var(--c-purple-end), transparent);
  opacity: 0.6;
}
.page-faq .faq-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: screen;
}
.page-faq .faq-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 50% at 80% 28%, rgba(122, 31, 93, 0.32), transparent 70%),
    radial-gradient(46% 46% at 16% 80%, rgba(0, 180, 216, 0.14), transparent 72%);
}
.page-faq .faq-hero__ring {
  position: absolute;
  right: -70px;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translateY(-50%);
  border: 1px solid rgba(245, 197, 24, 0.24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-faq .faq-hero__ring::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: 50%;
}
.page-faq .faq-hero__ring span {
  font-size: 64px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: transparent;
  -webkit-text-stroke: 2px rgba(245, 197, 24, 0.55);
  line-height: 1;
}
.page-faq .faq-hero__inner {
  position: relative;
  z-index: 2;
}
.page-faq .faq-hero__content {
  max-width: 820px;
}
.page-faq .faq-hero__title {
  margin-top: 16px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.page-faq .faq-hero__title-accent {
  display: block;
  margin-top: 8px;
  background: linear-gradient(110deg, #F5C518 12%, #D4AF37 48%, #B23A8F 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-faq .faq-hero__desc {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
}

/* ===== 搜索 ===== */
.page-faq .faq-search {
  padding: 44px 0 12px;
}
.page-faq .faq-search__box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 14px 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(245, 197, 24, 0.04), 0 18px 42px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.page-faq .faq-search__box:focus-within {
  border-color: var(--c-gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 12px rgba(245, 197, 24, 0.08), 0 20px 48px rgba(0, 0, 0, 0.35);
}
.page-faq .faq-search__icon {
  flex: 0 0 auto;
  color: var(--c-gold);
}
.page-faq .faq-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 12px 0;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
}
.page-faq .faq-search__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.page-faq .faq-search__key {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
}
.page-faq .faq-search__hot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  margin-top: 16px;
  font-size: 13px;
}
.page-faq .faq-search__hot-label {
  color: rgba(255, 255, 255, 0.45);
  align-self: center;
}
.page-faq .faq-search__hot a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.32);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.page-faq .faq-search__hot a:hover,
.page-faq .faq-search__hot a:focus-visible {
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* ===== FAQ 分类网格 ===== */
.page-faq .faq-categories {
  padding: 50px 0 30px;
}
.page-faq .faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 44px;
}
.page-faq .faq-cat {
  position: relative;
  border: 1px solid var(--faq-card-border);
  border-radius: 28px;
  padding: 24px 22px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.page-faq .faq-cat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.65), transparent);
}
.page-faq .faq-cat:hover,
.page-faq .faq-cat:focus-within {
  border-color: rgba(245, 197, 24, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}
.page-faq .faq-cat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-faq .faq-cat__num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 197, 24, 0.7);
}
.page-faq .faq-cat__count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}
.page-faq .faq-cat__title {
  margin: 16px 0 2px;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.page-faq .faq-cat__summary {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  margin-bottom: 14px;
}
.page-faq .faq-cat__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.page-faq .faq-cat__extra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.18);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.page-faq .faq-cat__extra-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-info);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.18);
  animation: faq-pulse 2.2s ease-in-out infinite;
}
@keyframes faq-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(0, 180, 216, 0.03); }
}

/* ===== FAQ 折叠项 ===== */
.page-faq .faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-faq .faq-item:first-of-type {
  border-top: 0;
}
.page-faq .faq-item__q {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.page-faq .faq-item__q::-webkit-details-marker {
  display: none;
}
.page-faq .faq-item__q:hover {
  color: var(--c-gold);
}
.page-faq .faq-item__qmark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-purple-start), var(--c-purple-end));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.page-faq .faq-item__q::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: auto;
  flex: 0 0 auto;
  margin-top: -4px;
}
.page-faq .faq-item[open] .faq-item__q::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.page-faq .faq-item__a {
  padding: 0 6px 18px 38px;
  color: var(--faq-text-dim);
  font-size: 14px;
  line-height: 1.78;
}
.page-faq .faq-item__a a {
  color: var(--c-info);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 180, 216, 0.5);
  transition: color 0.2s, border-color 0.2s;
}
.page-faq .faq-item__a a:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}

/* ===== 联系客服 ===== */
.page-faq .faq-contact {
  padding: 40px 0 80px;
}
.page-faq .faq-contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 30px 24px;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(120deg, rgba(122, 31, 93, 0.28), rgba(10, 14, 42, 0.55) 48%, rgba(0, 180, 216, 0.14));
  overflow: hidden;
}
.page-faq .faq-contact__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  margin-top: 10px;
}
.page-faq .faq-contact__desc {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-size: 15px;
}
.page-faq .faq-contact__channels {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.page-faq .faq-contact__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}
.page-faq .faq-contact__channel-icon {
  flex: 0 0 auto;
  color: var(--c-gold);
}
.page-faq .faq-contact__label {
  min-width: 52px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.page-faq .faq-contact__mail,
.page-faq .faq-contact__phone,
.page-faq .faq-contact__time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.01em;
}
.page-faq .faq-contact__mail {
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 197, 24, 0.55);
  transition: color 0.2s, border-color 0.2s;
}
.page-faq .faq-contact__mail:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.page-faq .faq-contact__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-faq .faq-contact__visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: var(--faq-deep);
}
.page-faq .faq-contact__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-faq .faq-contact__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.1), rgba(178, 58, 143, 0.14), transparent);
}

/* ===== 平板及以上 ===== */
@media (min-width: 720px) {
  .page-faq .faq-hero {
    padding: 128px 0 72px;
  }
  .page-faq .faq-hero__ring {
    right: -36px;
    width: 280px;
    height: 280px;
  }
  .page-faq .faq-hero__ring span {
    font-size: 104px;
  }
  .page-faq .faq-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }
  .page-faq .faq-cat--span5 {
    grid-column: span 5;
  }
  .page-faq .faq-cat--span7 {
    grid-column: span 7;
  }
  .page-faq .faq-cat--span8 {
    grid-column: span 8;
  }
  .page-faq .faq-cat--span4 {
    grid-column: span 4;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-categories {
    padding: 70px 0 50px;
  }
  .page-faq .faq-cat {
    padding: 30px 28px 22px;
  }
  .page-faq .faq-contact {
    padding: 50px 0 100px;
  }
  .page-faq .faq-contact__inner {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    padding: 54px 56px;
    align-items: center;
  }
  .page-faq .faq-contact__visual {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
  }
}
