@charset "UTF-8";
/* =====================================================================
   常見問題 (FAQ) — 配色沿用站台既有風格
   主色 #71c9a9 / 輔色 #f2a973 / 底色 #f5f5f3 / 文字 #5c6f69
   ===================================================================== */

/* ---------------------------------------------------------------
   站台 style.css 於 (min-width:992px) 將 .breadcrumb 設為 width:100vw，
   100vw 相對於視窗而非容器，會使麵包屑撐出容器造成整頁水平溢出。
   此處僅在 FAQ 頁範圍內修正，不影響其他既有頁面。
   --------------------------------------------------------------- */
.faq_page .breadcrumb {
  width: auto;
  max-width: 100%;
}

.faq_empty {
  color: #9599a2;
  padding: 2rem 0 4rem;
}

/* ------------------------- 分類切換 ------------------------- */
.faq_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.faq_filter_btn {
  border: 1px solid #d2d2d2;
  background: #fff;
  color: #5c6f69;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq_filter_btn:hover,
.faq_filter_btn:focus {
  border-color: #71c9a9;
  color: #71c9a9;
  outline: none;
}

.faq_filter_btn.active {
  background: #71c9a9;
  border-color: #71c9a9;
  color: #fff;
}

/* ------------------------- 分組 ------------------------- */
.faq_group.is-hidden {
  display: none;
}

.faq_group + .faq_group {
  margin-top: 2.5rem;
}

.faq_group_title {
  font-family: "Marcellus", "Noto Sans", serif;
  font-size: 1.25rem;
  font-weight: normal;
  color: #71c9a9;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #dcedd8;
}

/* ------------------------- 問答 ------------------------- */
.faq_item + .faq_item {
  margin-top: 10px;
}

.faq_q {
  margin: 0;
  font-size: inherit;
}

.faq_q_btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  text-align: left;
  background: #f5f5f3;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 16px 20px;
  color: #454646;
  font-size: 1rem;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq_q_btn:hover,
.faq_q_btn:focus {
  background: #dcedd8;
  color: #5c6f69;
  outline: none;
}

/* 展開中的題目 */
.faq_q_btn:not(.collapsed) {
  background: #71c9a9;
  border-color: #71c9a9;
  color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.faq_q_text {
  flex: 1 1 auto;
}

/* +/− 指示圖示（純 CSS，不額外相依字型圖示） */
.faq_q_icon {
  flex: 0 0 auto;
  position: relative;
  width: 16px;
  height: 16px;
}

.faq_q_icon::before,
.faq_q_icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq_q_icon::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq_q_icon::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

/* 展開時「＋」轉為「－」 */
.faq_q_btn:not(.collapsed) .faq_q_icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq_a {
  border: 1px solid #dcedd8;
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.faq_a_body {
  padding: 18px 20px;
  color: #545760;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* 富文本內容的基本排版收斂
   （由部落格搬進來的內容原本是整頁文章排版，在問答框內需收斂階層） */
.faq_a_body p {
  margin-bottom: 1em;
}

.faq_a_body h1,
.faq_a_body h2,
.faq_a_body h3,
.faq_a_body h4,
.faq_a_body h5 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #5c6f69;
  line-height: 1.6;
  margin: 1.5em 0 0.6em;
}

.faq_a_body > h1:first-child,
.faq_a_body > h2:first-child,
.faq_a_body > h3:first-child,
.faq_a_body > h4:first-child,
.faq_a_body > h5:first-child {
  margin-top: 0;
}

.faq_a_body ul,
.faq_a_body ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.faq_a_body li {
  margin-bottom: 0.3em;
}

.faq_a_body > :last-child {
  margin-bottom: 0;
}

.faq_a_body img {
  max-width: 100%;
  height: auto;
}

.faq_a_body a {
  color: #4cbb93;
  text-decoration: underline;
}

/* ------------------------- RWD ------------------------- */
@media (max-width: 767.98px) {
  .faq_filter {
    gap: 8px;
    margin-bottom: 1.5rem;
  }

  .faq_filter_btn {
    font-size: 0.875rem;
    padding: 7px 16px;
  }

  .faq_q_btn {
    padding: 14px 16px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .faq_a_body {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.8;
  }
}
