/* ==========================================================================
   FAQ Section Styles — 常见问题
   Uses CSS custom properties from shared variables.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   FAQ Section Background
   Multi-layer radial gradients for a subtle blue tint effect
   -------------------------------------------------------------------------- */
.faq-section {
  background:
    radial-gradient(ellipse 600px 400px at 10% 20%, rgba(58, 106, 234, 0.06), transparent),
    radial-gradient(ellipse 500px 350px at 90% 70%, rgba(58, 106, 234, 0.05), transparent),
    linear-gradient(180deg, #f8faff 0%, #f0f4ff 40%, #f8faff 100%);
}

/* --------------------------------------------------------------------------
   FAQ Background Decorations
   Absolute-positioned decorative circles
   -------------------------------------------------------------------------- */
.faq-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.faq-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(58, 106, 234, 0.07);
}

.faq-circle-1 {
  width: 300px;
  height: 300px;
  top: -60px;
  right: -80px;
}

.faq-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: -50px;
  border-style: dashed;
}

.faq-circle-3 {
  width: 120px;
  height: 120px;
  top: 40%;
  right: 8%;
  border-color: rgba(58, 106, 234, 0.05);
  background: rgba(58, 106, 234, 0.02);
}

/* --------------------------------------------------------------------------
   FAQ Label Badge
   Gradient pill badge above the title
   -------------------------------------------------------------------------- */
.faq-label {
  background: linear-gradient(135deg, #e8f1ff 0%, #d2dfff 100%);
  color: #3a6aea;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   FAQ Title Decorative Line
   Short gradient bar beneath the title
   -------------------------------------------------------------------------- */
.faq-title-line {
  width: 40px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #3a6aea, #7295f1);
}

/* --------------------------------------------------------------------------
   FAQ Item Card
   Semi-transparent card with backdrop blur
   -------------------------------------------------------------------------- */
.faq-item {
  border: 1px solid rgba(229, 231, 235, 0.6);
  backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   FAQ Accent Bar
   Left edge gradient indicator on each item
   -------------------------------------------------------------------------- */
.faq-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #3a6aea, #7295f1);
  opacity: 0.25;
  border-radius: 0 2px 2px 0;
  transition: all 0.3s ease;
}

/* Accent bar highlight on item hover / active */
.faq-item:hover .faq-accent-bar,
.faq-item--active .faq-accent-bar {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   FAQ Number Badge
   Gradient circle number indicator
   -------------------------------------------------------------------------- */
.faq-number {
  background: linear-gradient(135deg, #3a6aea, #4975ec);
  color: #ffffff;
  border-radius: 0.625rem;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   FAQ Answer Inner Content
   Separator line at the top of the answer body
   -------------------------------------------------------------------------- */
.faq-answer-inner {
  padding-top: 12px;
  border-top: 1px solid #f0f4ff;
}

/* --------------------------------------------------------------------------
   FAQ CTA Button
   Gradient call-to-action with shadow and hover animation
   -------------------------------------------------------------------------- */
.faq-cta {
  background: linear-gradient(135deg, #3a6aea 0%, #4975ec 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(58, 106, 234, 0.3);
  transition: all 0.3s ease;
}

.faq-cta:hover {
  background: linear-gradient(135deg, #0d48cf 0%, #3a6aea 100%);
  box-shadow: 0 6px 20px rgba(58, 106, 234, 0.4);
  transform: translateY(-1px);
}

.faq-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(58, 106, 234, 0.35);
}

/* --------------------------------------------------------------------------
   FAQ Accordion Toggle (details/summary or JS-driven)
   -------------------------------------------------------------------------- */
.faq-item__question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-item__question:hover {
  background-color: rgba(58, 106, 234, 0.02);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item--active .faq-item__answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem;
}

.faq-item__toggle-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item--active .faq-item__toggle-icon {
  transform: rotate(180deg);
  color: var(--primary-500, #3a6aea);
}
