/* ==========================================================================
   INSAN QA HUB & INTERACTIVE DECISION TREE STYLESHEET
   婚攝英聖 新人引導問答指南 ＆ 全方位 QA 知識庫獨立樣式表
   ========================================================================== */

.insanc-qa-page-wrapper {
  background-color: #fbfbfb;
  min-height: 100vh;
  padding-bottom: 80px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* 1. Hero 區塊 */
.qa-hero-section {
  background: linear-gradient(135deg, #141414 0%, #1f1f1f 50%, #262626 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.qa-hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.qa-hero-content {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.qa-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.qa-hero-title {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin: 0 0 16px;
}

.qa-hero-gold-line {
  width: 60px;
  height: 3px;
  background: #d4af37;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.qa-hero-desc {
  font-size: 1.02rem;
  color: #d1d5db;
  line-height: 1.75;
  margin: 0 auto 28px;
}

.qa-hero-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.qa-hero-highlights .highlight-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.3s ease;
}

.qa-hero-highlights .highlight-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #ffffff;
}

.qa-hero-highlights .highlight-chip-gold {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #fff;
  font-weight: 600;
}

/* 2. 主內容容器與模式切換 Tabs */
.qa-main-container {
  max-width: 1040px;
  margin: -30px auto 0;
  position: relative;
  z-index: 10;
  padding: 0 16px;
}

.qa-view-mode-tabs-wrap {
  margin-bottom: 24px;
}

.qa-view-mode-tabs {
  display: flex;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  gap: 6px;
}

.qa-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.qa-mode-tab:hover {
  background: #f3f4f6;
  color: #111827;
}

.qa-mode-tab.active {
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.qa-mode-tab.active i {
  color: #d4af37;
}

.qa-mode-tab .tab-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  color: inherit;
  font-weight: 500;
}

.qa-mode-tab.active .tab-pill {
  background: rgba(212, 175, 55, 0.25);
  color: #ffd875;
}

/* 3. 搜尋欄位與熱門標籤 */
.qa-instant-search-section {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}

.qa-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.qa-search-box .search-icon {
  position: absolute;
  left: 16px;
  color: #9ca3af;
  font-size: 1.1rem;
}

.qa-search-box input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #fafafa;
  color: #1f2937;
  transition: all 0.25s ease;
  outline: none;
}

.qa-search-box input:focus {
  background: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.qa-search-clear-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.qa-search-clear-btn:hover {
  color: #111827;
}

.qa-search-hot-tags {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.qa-search-hot-tags .hot-label {
  color: #6b7280;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qa-search-hot-tags .hot-tag {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-search-hot-tags .hot-tag:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  color: #92400e;
}

/* 4. 心智圖決策樹組件 (Decision Tree Component) */
.insanc-decision-tree-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.tree-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 12px;
}

.tree-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
}

.tree-breadcrumbs .crumb {
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tree-breadcrumbs .crumb:hover {
  color: #d4af37;
  border-color: #d4af37;
}

.tree-breadcrumbs .crumb.active {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  font-weight: 600;
}

.tree-breadcrumbs .crumb.active i {
  color: #d4af37;
}

.tree-breadcrumbs .crumb-separator {
  color: #9ca3af;
  font-size: 0.75rem;
}

.tree-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tree-action-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.tree-action-btn:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #9ca3af;
}

.tree-stage {
  padding: 36px 30px;
  min-height: 380px;
}

.tree-step-header {
  margin-bottom: 30px;
  text-align: center;
}

.tree-step-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: #92400e;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.tree-step-title {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
  line-height: 1.35;
}

.tree-step-gold-line {
  width: 40px;
  height: 2px;
  background: #d4af37;
  margin: 0 auto 12px;
}

.tree-step-desc {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.6;
}

.tree-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.tree-opt-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.tree-opt-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.25s ease;
}

.tree-opt-card:hover {
  border-color: #d4af37;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: #fffdf9;
}

.tree-opt-card:hover::before {
  background: #d4af37;
}

.tree-opt-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.tree-opt-card:hover .tree-opt-icon {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.tree-opt-info {
  flex-grow: 1;
}

.tree-opt-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.35;
}

.tree-opt-sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

.tree-opt-arrow {
  color: #9ca3af;
  font-size: 0.95rem;
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.tree-opt-card:hover .tree-opt-arrow {
  color: #d4af37;
  transform: translateX(4px);
}

/* 解答卡片檢視 (Leaf Answer Card View) */
.tree-answer-view {
  padding: 30px;
  animation: fadeIn .3s ease-in-out;
}

.answer-card {
  background: #ffffff;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.answer-header {
  border-bottom: 1.5px solid #f3f4f6;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.answer-cat-tag {
  display: inline-block;
  background: #1a1a1a;
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.answer-question-title {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.answer-question-title i {
  color: #d4af37;
  margin-top: 3px;
}

.answer-body {
  font-size: 0.96rem;
  color: #374151;
  line-height: 1.8;
}

/* 5. 分類知識庫手風琴 (Knowledge Base View) */
.qa-category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #4b5563;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-pill-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.filter-pill-btn.active {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.filter-pill-btn.active i {
  color: #d4af37;
}

.qa-knowledge-accordion-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.qa-item-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.qa-item-card[open] {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.qa-item-summary {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: #ffffff;
  transition: background 0.2s ease;
  list-style: none !important;
}

.qa-item-summary::-webkit-details-marker,
.qa-item-summary::marker {
  display: none !important;
}

.qa-item-summary::after {
  display: none !important;
}

.qa-item-card[open] .qa-item-summary {
  background: #fffdfa;
  border-bottom: 1px solid #f3f4f6;
}

.qa-item-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
  padding-right: 14px;
}

.qa-item-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.qa-item-question {
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.qa-item-card[open] .qa-item-question {
  color: #92400e;
}

.qa-item-toggle-icon {
  color: #9ca3af;
  font-size: 0.95rem;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.qa-item-card[open] .qa-item-toggle-icon {
  transform: rotate(180deg);
  color: #d4af37;
}

.qa-item-body {
  padding: 22px 24px 28px;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.8;
  animation: fadeIn .25s ease-in-out;
}

.qa-quick-highlight {
  background: #fffbeb;
  border-left: 4px solid #d4af37;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: #92400e;
  margin-bottom: 18px;
  line-height: 1.6;
}

.qa-detailed-content {
  color: #374151;
}

/* 6. AI 智能延伸推薦提問 (Follow-up Suggestions) */
.qa-followup-suggestions {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #e5e7eb;
}

.followup-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 10px;
}

.followup-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.followup-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.followup-chip i {
  color: #d4af37;
}

.followup-chip:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.followup-chip:hover i {
  color: #ffd875;
}

/* 行動 Footer */
.qa-action-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.qa-target-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d4af37;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.qa-target-cta-btn:hover {
  background: #b38f5f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.qa-share-small-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.qa-share-small-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

/* 7. 三大主題整合專區 (Consolidated 3 Themes View) */
.consolidated-sections-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.consolidated-theme-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.theme-card-header {
  background: #1a1a1a;
  color: #ffffff;
  padding: 24px 30px;
  position: relative;
}

.theme-card-header .theme-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.theme-card-header .theme-title {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.theme-card-header .theme-desc {
  font-size: 0.88rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.6;
}

.theme-card-body {
  padding: 30px;
}

.theme-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.theme-pillar {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transition: transform 0.25s ease;
}

.theme-pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.theme-pillar .pillar-num {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #d4af37;
  line-height: 1;
  margin-bottom: 10px;
}

.theme-pillar .pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.theme-pillar .pillar-text {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.65;
}

/* 時間軸 Stepper */
.timeline-stepper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  position: relative;
}

.timeline-step-item {
  background: #fdfdfd;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
}

.t-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d4af37;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 0.95rem;
}

.t-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.t-step-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.t-step-desc {
  font-size: 0.82rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* 印刷成品區塊 */
.consolidated-products-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}

.products-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.product-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-item .prod-name {
  font-size: 0.88rem;
  color: #334155;
  font-weight: 500;
}

.product-item .prod-price {
  font-size: 0.95rem;
  color: #92400e;
  font-weight: 700;
}

/* 婚禮卡片 Summary Grid */
.wedding-plans-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.w-plan-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  transition: transform 0.2s ease;
}

.w-plan-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.w-plan-box.w-plan-hot {
  border: 2px solid #d4af37;
  background: #fffdf9;
  position: relative;
}

.w-hot-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4af37;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

.w-plan-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.w-plan-desc {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

/* 8. 底部 CTA 區塊 */
.qa-bottom-cta-section {
  margin-top: 50px;
}

.qa-cta-box {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.qa-cta-tag {
  color: #d4af37;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}

.qa-cta-title {
  font-family: var(--font-serif, "Noto Serif TC", serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.qa-cta-desc {
  font-size: 0.92rem;
  color: #d4d4d8;
  margin: 0;
  max-width: 540px;
  line-height: 1.6;
}

.qa-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.qa-no-results {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
}

.qa-no-results .no-results-icon {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

.qa-no-results .no-results-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.qa-no-results .no-results-desc {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 auto 20px;
  max-width: 460px;
}

/* 動畫 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 手機版響應式調校 */
@media (max-width: 767px) {
  .qa-hero-title {
    font-size: 1.65rem;
  }

  .qa-hero-section {
    padding: 40px 0 35px;
  }

  .qa-main-container {
    margin-top: -20px;
  }

  .qa-view-mode-tabs {
    flex-direction: column;
    padding: 6px;
  }

  .qa-mode-tab {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .tree-stage {
    padding: 24px 16px;
  }

  .tree-options-grid {
    grid-template-columns: 1fr;
  }

  .tree-opt-card {
    padding: 16px 14px;
  }

  .tree-top-toolbar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .tree-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .answer-card {
    padding: 22px 18px;
  }

  .answer-question-title {
    font-size: 1.3rem;
  }

  .qa-item-summary {
    padding: 14px 16px;
  }

  .qa-item-body {
    padding: 16px 16px 20px;
  }

  .qa-cta-box {
    padding: 28px 20px;
    text-align: center;
  }

  .qa-cta-desc {
    margin: 0 auto;
  }

  .qa-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .qa-cta-actions .btn {
    width: 100%;
  }
}
