/* css/pages/faq.css — 常见问题页样式 */

/* ---------- Hero ---------- */
.page-faq .page-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 110px;
  border-bottom: 1px solid var(--line);
}
.page-faq .page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy .eyebrow { color: var(--violet); }
.hero-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 18px 0 24px;
  max-width: 560px;
}
.hero-copy h1 i {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  font-style: normal;
  white-space: nowrap;
}
.hero-copy p {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  max-width: 520px;
}
.hero-copy .actions { margin-top: 38px; }

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(143, 108, 255, .10), transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(202, 255, 55, .06), transparent 45%),
    rgba(13, 14, 18, .72);
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 108, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 108, 255, .04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .55);
  pointer-events: none;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.particle-meter {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  width: min(220px, 46%);
  color: var(--muted);
  font-family: var(--font-mono);
  pointer-events: none;
}
.particle-meter > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.particle-count {
  color: var(--lime);
  font-size: clamp(18px, 2vw, 26px);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(202, 255, 55, .35);
}
.particle-meter small {
  font-size: 9px;
  letter-spacing: .18em;
}
.meter-track {
  height: 2px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(143, 108, 255, .18);
  border-radius: 1px;
}
.meter-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--violet));
  box-shadow: 0 0 10px var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s linear;
}

/* ---------- FAQ list ---------- */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
.faq-item {
  background: rgba(13, 14, 18, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease-out);
}
.faq-item:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lime);
}
.faq-item.is-open {
  border-color: var(--violet);
  box-shadow: 0 .5rem 1.2rem rgba(143, 108, 255, .14);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .25s;
}
.faq-trigger:hover { background: rgba(143, 108, 255, .05); }

.faq-q {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--bg);
  font: 800 14px var(--font-mono);
}
.faq-question {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}
.faq-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform .35s var(--ease-out), background .25s;
}
.faq-icon::before {
  top: 11px;
  left: 3px;
  width: 18px;
  height: 2px;
}
.faq-icon::after {
  top: 3px;
  left: 11px;
  width: 2px;
  height: 18px;
}
.faq-trigger:hover .faq-icon::before,
.faq-trigger:hover .faq-icon::after { background: var(--lime); }
.faq-item.is-open .faq-icon::after { transform: rotate(90deg) scaleY(0); }
.faq-item.is-open .faq-icon::before { background: var(--violet); }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-answer {
  padding: 0 28px 24px 80px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

/* ---------- CTA ---------- */
.page-faq .cta { padding: 0; border-top: none; }
.cta-panel {
  background: linear-gradient(135deg, rgba(202, 255, 55, .08), rgba(143, 108, 255, .08));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 90px) clamp(28px, 4vw, 64px);
  text-align: center;
}
.cta-panel .section-heading {
  margin-inline: auto;
  margin-bottom: 32px;
}
.cta-panel h2 {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 14px;
}
.cta-panel p {
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Reveal ---------- */
.js.enhanced-motion [data-reveal]:not(.is-revealed) {
  opacity: 0.01;
  transform: translateY(1.2rem);
}
.js.enhanced-motion [data-reveal] {
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

.js.enhanced-motion .stagger-reveal > .faq-item {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out), border-color .35s, box-shadow .35s;
}
.js.enhanced-motion .stagger-reveal.is-revealed > .faq-item {
  opacity: 1;
  transform: translateY(0);
}
.stagger-reveal.is-revealed > .faq-item:nth-child(1) { transition-delay: 0ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(2) { transition-delay: 70ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(3) { transition-delay: 140ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(4) { transition-delay: 210ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(5) { transition-delay: 280ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(6) { transition-delay: 350ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(7) { transition-delay: 420ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(8) { transition-delay: 490ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(9) { transition-delay: 560ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(10) { transition-delay: 630ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(11) { transition-delay: 700ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(12) { transition-delay: 770ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(13) { transition-delay: 840ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(14) { transition-delay: 910ms; }
.stagger-reveal.is-revealed > .faq-item:nth-child(15) { transition-delay: 980ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .meter-bar { transition: none; }
  .faq-body { grid-template-rows: 1fr; }
  .js.enhanced-motion [data-reveal]:not(.is-revealed),
  .js.enhanced-motion .stagger-reveal > .faq-item { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .page-faq .page-hero .container {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-visual {
    min-height: 360px;
    order: -1;
  }
  .hero-copy h1 { max-width: 100%; }
}

@media (max-width: 768px) {
  .page-faq .page-hero { padding: 90px 0 70px; }
  .hero-copy h1 { font-size: 32px; letter-spacing: -.02em; }
  .hero-copy p { font-size: 14px; }
  .hero-copy .actions { flex-direction: column; gap: 10px; margin-top: 28px; }
  .hero-copy .actions .btn { display: block; text-align: center; padding: 16px; }
  .hero-visual { min-height: 300px; }
  .particle-meter { right: 16px; bottom: 16px; }

  .faq-trigger { padding: 18px 20px; gap: 12px; }
  .faq-q {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .faq-question { font-size: 15px; }
  .faq-answer {
    padding: 0 20px 18px 62px;
    font-size: 13px;
  }
  .faq-icon {
    width: 20px;
    height: 20px;
  }
  .faq-icon::before {
    top: 9px;
    left: 2px;
    width: 16px;
  }
  .faq-icon::after {
    top: 2px;
    left: 9px;
    height: 16px;
  }

  .cta-panel { padding: 40px 24px; }
}

@media (max-width: 414px) {
  .hero-copy h1 { font-size: 28px; }
  .hero-visual { min-height: 260px; }
  .cta-panel h2 { font-size: 24px; }
}

@media (hover: none), (pointer: coarse) {
  .faq-item:hover { transform: none; border-color: var(--line); box-shadow: none; }
  .faq-item.is-open { border-color: var(--violet); }
}
