/* =========================================================
   鉴黄师 品牌站 — FAQ 专属样式
   （由 pages.css 按页面拆分；公共样式见 style.css）
   ========================================================= */

.hero-faq {
  position: relative;
  overflow: hidden;
  padding: 0 0 70px;
}

.hero-faq .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.hero-faq h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-faq img {
  max-width: 1920px;
  height: 426px;
  margin: 0 auto;
}

.hero-faq p {
  color: var(--text-dim);
  margin-top: 14px;
}

.hero-faq .orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold-deep) 60%, #5a3a12);
  box-shadow: 0 0 60px var(--gold-glow);
  display: grid;
  place-items: center;
  font-size: 64px;
}

.faq-main {
  --faq-gold: #f7c96b;
  padding: 0;
}

.faq-main .container {
  max-width: 1200px;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 720px;
  height: 44px;
  margin: 0 auto 24px;
  padding: 10px 16px;
  background: #0d0e0f;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
}

.faq-search svg {
  width: 24px;
  height: 24px;
  color: #7d8385;
  flex-shrink: 0;
}

.faq-search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 22px;
}

.faq-search input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.faq-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
}

.faq-tabs .tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  flex: 0 0 auto;
  padding: 0 13px;
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  background: #131418;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 999px;
  transition: color var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.faq-tabs .tab[data-category="all"] {
  width: 100px;
}

.faq-tabs .tab[data-category="account"],
.faq-tabs .tab[data-category="revenue"],
.faq-tabs .tab[data-category="copyright"],
.faq-tabs .tab[data-category="business"] {
  width: 108px;
}

.faq-tabs .tab[data-category="content"] {
  width: 140px;
}

.faq-tabs .tab[data-category="tech"] {
  width: 92px;
}

.faq-tabs .tab.active {
  color: rgba(0, 0, 0, .9);
  background: var(--faq-gold);
  border-color: var(--faq-gold);
  box-shadow: none;
}

.faq-tabs .tab.is-featured:not(.active),
.faq-tabs .tab:not(.active):hover,
.faq-tabs .tab:not(.active):focus-visible {
  color: var(--faq-gold);
  background: #131418;
  border-color: var(--faq-gold);
  box-shadow:
    0 0 0 4px rgba(247, 201, 107, .08),
    0 0 24px rgba(247, 201, 107, .34);
}

.faq-list {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, .05);
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  overflow: hidden;
  transition: background var(--ease), box-shadow var(--ease), opacity var(--ease);
}

.faq-item:hover {
  background: #fff2;
}

.faq-item[hidden] {
  display: none;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 24px 40px;
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
  transition: min-height .34s cubic-bezier(.4, 0, .2, 1), padding .34s cubic-bezier(.4, 0, .2, 1);
}

.faq-q>h3 {
  min-width: 0;
  flex: 1;
  margin: 0;
  font: inherit;
}

.faq-item.open {
   background: rgba(255, 255, 255, .1);
}

.faq-item.open .faq-q {
  align-items: flex-start;
  min-height: 52px;
  padding-bottom: 0;
}

.faq-q .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: rgba(255, 255, 255, .9);
  transition: transform var(--ease);
}

.faq-q .arrow svg {
  width: 24px;
  height: 24px;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  height: 0;
  overflow: hidden;
  will-change: height;
  transition: height .34s cubic-bezier(.4, 0, .2, 1);
}

.faq-a-inner {
  display: block;
  margin: 0;
  padding: 8px 80px 24px 40px;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .28s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.open .faq-a-inner {
  opacity: 1;
  transform: translateY(0);
}

.faq-a-inner p + p,
.faq-a-inner ul + p,
.faq-a-inner ol + p { margin-top: 10px; }
.faq-a-inner ul,
.faq-a-inner ol { padding-left: 22px; }
.faq-a-inner a { color: var(--faq-gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-a-inner img { max-width: 100%; height: auto; border-radius: 8px; }

.faq-empty {
  max-width: 1120px;
  min-height: 76px;
  margin: 0 auto;
  padding: 24px 40px;
  color: rgba(255, 255, 255, .5);
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  background: rgba(255, 255, 255, .05);
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.faq-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1095px, calc(100% - 48px));
  min-height: 387px;
  margin: 80px auto;
  padding: 80px 24px 48px;
  overflow: hidden;
  text-align: center;
  border-radius: 32px;
  background: url("/assets/img/llbg.webp") center / cover no-repeat;
}

.faq-cta-kicker {
  margin: 0;
  color: #e9b54b;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.faq-cta h2 {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
}

.faq-cta p:not(.faq-cta-kicker) {
  max-width: 535px;
  margin: 10px 0 0;
  color: #c2c2c2;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 162px;
  height: 44px;
  margin-top: 43px;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fbbf24 0%, #f97316 100%);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, .25),
    0 0 24px rgba(227, 65, 40, .92);
}

.faq-cta-btn:hover {
  color: #000;
  transform: translateY(-1px);
}

.faq-cta-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* =========================================================
   联系客服弹窗
   ========================================================= */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(2px);
}

.contact-dialog {
  position: relative;
  width: 480px;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: #131418;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  animation: contact-dialog-in .22s cubic-bezier(.2, .7, .3, 1);
}

@keyframes contact-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.contact-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.contact-dialog-title {
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.contact-dialog-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, .7);
  transition: color .2s ease;
}

.contact-dialog-close svg {
  width: 16px;
  height: 16px;
}

.contact-dialog-close:hover {
  color: #fff;
}

.contact-dialog-body {
  padding: 0 24px 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .035);
}

.contact-row+.contact-row {
  margin-top: 20px;
}

.contact-row-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: #0d0e0f;
  color: #f7c96b;
}

.contact-row-icon svg {
  width: 28px;
  height: 28px;
}

.contact-row-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.contact-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.contact-row-label {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 20px;
}

.contact-row-value {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-row-copy {
  flex: 0 0 auto;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  transition: background .2s ease, border-color .2s ease;
}

.contact-row-copy:hover {
  background: rgba(255, 255, 255, .12);
}

.contact-row-copy.copied {
  color: #f7c96b;
  border-color: rgba(247, 201, 107, .5);
  background: rgba(247, 201, 107, .12);
}

.contact-dialog-note {
  margin-top: 16px;
  color: rgba(249, 115, 22, 1);
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 860px) {
  .hero-faq {
    padding: 0 0 24px;
  }

  .hero-faq .container {
    grid-template-columns: 1fr;
  }

  .hero-faq img {
    width: 100%;
    height: auto;
  }

  .hero-faq .orb {
    display: none;
  }

  .contact-modal {
    padding: 16px;
  }

  .contact-dialog-head {
    height: 56px;
    padding: 0 16px;
  }

  .contact-dialog-body {
    padding: 0 16px 16px;
  }
}

@media (max-width: 920px) {
  .faq-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .faq-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
  .faq-main {
    padding: 0 0 40px;
  }

  .faq-main .container {
    padding: 0 16px;
  }

  .faq-search {
    height: 40px;
    max-width: 343px;
    margin: 0 auto 16px;
    padding: 8px 16px;
  }

  .faq-search input {
    font-size: 14px;
    line-height: 20px;
  }

  .faq-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 0 16px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .faq-tabs::-webkit-scrollbar {
    display: none;
  }

  .faq-tabs .tab {
    height: 32px;
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
  }

  .faq-tabs .tab[data-category] {
    width: auto;
  }

  .faq-tabs .tab[data-category="all"] {
    min-width: 48px;
  }

  .faq-tabs .tab.is-featured:not(.active) {
    color: rgba(255, 255, 255, .7);
    border-color: rgba(255, 255, 255, .05);
    box-shadow: none;
  }

  .faq-list {
    width: 100%;
    max-width: none;
    gap: 12px;
  }

  .faq-q {
    align-items: center;
    min-height: 76px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
  }

  .faq-item.open .faq-q {
    min-height: auto;
    padding-bottom: 0;
  }

  .faq-a-inner {
    padding: 8px 56px 16px 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .faq-empty {
    min-height: 76px;
    padding: 24px 16px;
    font-size: 14px;
  }

  .faq-cta {
    width: min(337px, calc(100% - 38px));
    min-height: 481px;
    margin-top: 38px;
    padding: 122px 8px 40px;
    border-radius: 20px;
    background: url("/assets/img/llbg-m.webp") center bottom / 100% auto no-repeat;
  }

  .faq-cta::before {
    background-size: 9px 9px;
    opacity: .58;
  }

  .faq-cta::after {
    height: 156px;
  }

  .faq-cta-kicker {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
  }

  .faq-cta h2 {
    margin-top: 10px;
    font-size: clamp(30px, 8.55vw, 32px);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
  }

  .faq-cta p:not(.faq-cta-kicker) {
    max-width: 313px;
    margin-top: 10px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    line-height: 22px;
  }

  .faq-cta-btn {
    width: 139px;
    height: 33px;
    margin-top: 41px;
    gap: 6px;
    font-size: 13px;
    line-height: 22px;
    border-radius: 11px;
    box-shadow:
      inset 0 0 11px rgba(255, 255, 255, .25),
      0 0 22px rgba(227, 65, 40, .92);
  }

  .faq-cta-btn svg {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}
