.faq-main-section {
  background-color: #f8f9fa;
}

.category-block {
  scroll-margin-top: 100px;
  margin-bottom: 50px;
}

.category-head {
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  color: #0c1e2f;
  position: relative;
  padding-left: 15px;
}

.category-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 5px;
  background-color: #ff6a00;
  border-radius: 4px;
}

/* --- 選單樣式 --- */
.faq-sidebar {
  position: sticky;
  top: 100px;
  z-index: 10;
}

.faq-nav-group {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(12, 30, 47, 0.05);
  box-shadow: 0 10px 30px rgba(12, 30, 47, 0.02);
}

.faq-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #5a626a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
  margin-bottom: 8px;
}

.faq-nav-link:last-child {
  margin-bottom: 0;
}

.faq-nav-link:hover,
.faq-nav-link.active {
  color: #ff6a00;
  background-color: rgba(255, 106, 0, 0.08);
}

/* 手機版橫向選單 */
.faq-mobile-nav-container {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid rgba(12, 30, 47, 0.08);
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 12px 0;
}

.faq-mobile-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 15px;
  -webkit-overflow-scrolling: touch;
}

.faq-mobile-nav::-webkit-scrollbar {
  display: none;
}

.faq-mobile-btn {
  padding: 8px 18px;
  background: #f1f3f5;
  border-radius: 30px;
  color: #5a626a;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.faq-mobile-btn.active {
  background: #ff6a00;
  color: #ffffff;
}

/* --- 手風琴效能優化區塊（切勿在全域下 transition: all） --- */
.accordion-item {
  border: 1px solid rgba(12, 30, 47, 0.05) !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(12, 30, 47, 0.01);
  /* 僅針對 shadow 動畫，絕不加 height 或 all */
  transition: box-shadow 0.25s ease;
}

.accordion-item:hover {
  box-shadow: 0 12px 30px rgba(12, 30, 47, 0.05);
}

.accordion-button {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c1e2f !important;
  padding: 20px 24px;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.accordion-button:not(.collapsed) {
  color: #ff6a00 !important;
  border-bottom: 1px solid rgba(12, 30, 47, 0.05);
}

.accordion-body {
  padding: 24px;
  font-size: 0.98rem;
  color: #5a626a;
  line-height: 1.8;
  background-color: #fafbfc;
}

.faq-cta-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(12, 30, 47, 0.03);
  border: 1px solid rgba(12, 30, 47, 0.03);
}

.btn-orange {
  background-color: #ff6a00;
  color: #ffffff;
  border: 1px solid #ff6a00;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-orange:hover {
  background-color: #e05a00;
  border-color: #e05a00;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.25);
}

.accordion-collapse.collapsing {
  transition: height 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (max-width: 991.98px) {
  .faq-sidebar-col {
    display: none !important;
  }

  .faq-mobile-nav-container {
    display: block;
  }
}
