/* ✦ FAQ MODULE STYLES — Averil0814 ✦
   模組化：獨立 CSS，不干擾 style.css 框架
   SEO 功能：配合 faq-module.js 自動注入 FAQPage JSON-LD
   ================================================================== */

#faq {
  padding: 100px 4vw;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,207,255,0.03) 0%, transparent 60%),
    var(--dark-void, #04060a);
  position: relative; z-index: 10;
}
#faq::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,207,255,0.12), transparent);
}

.faq-inner { max-width: 860px; margin: 0 auto; }

/* ─── Accordion grid ─── */
.faq-grid {
  border: 1px solid rgba(0, 207, 255, 0.1);
  margin-bottom: 44px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 207, 255, 0.07);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: none; }

/* ─── Question button ─── */
.faq-question {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
}
.faq-question:hover { background: rgba(0, 207, 255, 0.025); }
.faq-item.open .faq-question { background: rgba(0, 207, 255, 0.04); }

.faq-q-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 900;
  color: rgba(0, 207, 255, 0.2);
  flex-shrink: 0;
  width: 28px;
  transition: color 0.25s;
}
.faq-item.open .faq-q-num,
.faq-question:hover .faq-q-num { color: var(--hud-blue, #00cfff); }

.faq-q-text {
  flex: 1;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px; font-weight: 700;
  color: rgba(200, 216, 232, 0.82);
  line-height: 1.45;
  transition: color 0.25s;
}
.faq-item.open .faq-q-text,
.faq-question:hover .faq-q-text { color: #e8f0f8; }

/* +/× toggle */
.faq-chevron {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px; font-weight: 300;
  color: rgba(0, 207, 255, 0.35);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.25s;
  width: 22px;
  text-align: center;
}
.faq-item.open .faq-chevron {
  transform: rotate(45deg);
  color: var(--hud-blue, #00cfff);
}

/* ─── Answer panel ─── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.44s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(0, 207, 255, 0.015);
  border-top: 1px solid transparent;
}
.faq-item.open .faq-answer {
  border-top-color: rgba(0, 207, 255, 0.06);
}
.faq-answer p {
  padding: 16px 24px 22px 68px;
  font-size: 14px; line-height: 1.95;
  color: rgba(160, 190, 220, 0.7);
}

/* ─── CTA at bottom ─── */
.faq-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.faq-cta p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: 1px;
  color: rgba(160, 190, 220, 0.5);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .faq-q-text { font-size: 14px; }
  .faq-answer p { padding-left: 24px; }
  .faq-q-num { display: none; }
}
