
.answer-content {
  line-height: 1.8;
  font-size: 16px;
  color: #212529;
}
.answer-content p {
  margin-bottom: 1em;
}
.answer-content p:last-child {
  margin-bottom: 0;
}
.answer-content h1, .answer-content .editor-heading-h1 {
  font-size: 1.75em;
  font-weight: bold;
  margin: 0.67em 0;
  line-height: 1.2;
}
.answer-content h2, .answer-content .editor-heading-h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.75em 0;
  line-height: 1.3;
}
.answer-content h3, .answer-content .editor-heading-h3 {
  font-size: 1.25em;
  font-weight: bold;
  margin: 0.83em 0;
  line-height: 1.4;
}
.answer-content blockquote, .answer-content .editor-quote {
  border-left: 4px solid var(--theme-primary-color);
  padding-left: 1em;
  margin: 1em 0;
  color: #6c757d;
  font-style: italic;
}
.answer-content ul, .answer-content .editor-list-ul {
  list-style-type: disc;
  padding-left: 2em;
  margin: 1em 0;
}
.answer-content ol, .answer-content .editor-list-ol {
  list-style-type: decimal;
  padding-left: 2em;
  margin: 1em 0;
}
.answer-content li, .answer-content .editor-listitem {
  margin: 0.5em 0;
}
.answer-content pre, .answer-content .editor-code {
  background-color: #282c34;
  color: #abb2bf;
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
  font-family: "Courier New", "Consolas", "Monaco", monospace;
  font-size: 14px;
  line-height: 1.5;
}
.answer-content pre code, .answer-content .editor-code code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}
.answer-content code, .answer-content .editor-text-code {
  background-color: #f1f3f5;
  color: #c7254e;
  padding: 2px 6px;
  font-family: "Courier New", "Consolas", "Monaco", monospace;
  font-size: 0.9em;
}
.answer-content a, .answer-content .editor-link {
  color: var(--theme-link-color);
  text-decoration: underline;
}
.answer-content a:hover, .answer-content .editor-link:hover {
  color: var(--theme-link-color);
  filter: brightness(0.8);
}
.answer-content strong, .answer-content b, .answer-content .editor-text-bold {
  font-weight: bold;
}
.answer-content em, .answer-content i, .answer-content .editor-text-italic {
  font-style: italic;
}
.answer-content u, .answer-content .editor-text-underline {
  text-decoration: underline;
}
.answer-content s, .answer-content del, .answer-content .editor-text-strikethrough {
  text-decoration: line-through;
}
.answer-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  border: 1px solid var(--theme-border-color, #dee2e6);
}
.answer-content td, .answer-content th {
  border: 1px solid var(--theme-border-color, #dee2e6);
  padding: 10px 12px;
  text-align: left;
  min-width: 75px;
  vertical-align: top;
}
.answer-content th {
  background-color: var(--theme-section-alt-bg-color, #f8f9fa);
  font-weight: 600;
}
.answer-content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  display: block;
}
.answer-content hr {
  border: 0;
  border-top: 2px solid var(--theme-border-color, #dee2e6);
  margin: 2em 0;
}

.answer-summary {
  line-height: 1.6;
  font-size: 15px;
  color: #495057;
}
.answer-summary * {
  margin: 0;
  padding: 0;
}
.answer-summary p {
  margin-bottom: 0.5em;
}
.answer-summary p:last-child {
  margin-bottom: 0;
}
.answer-summary img, .answer-summary table, .answer-summary pre, .answer-summary .editor-code {
  display: none;
}
.answer-summary ul, .answer-summary ol {
  display: inline;
  list-style: none;
}
.answer-summary ul li, .answer-summary ol li {
  display: inline;
}
.answer-summary ul li:after, .answer-summary ol li:after {
  content: "、";
}
.answer-summary ul li:last-child:after, .answer-summary ol li:last-child:after {
  content: "";
}

/* ========== FAQ 手風琴（重新設計）========== */
.faq-list {
  border-top: 1px solid var(--theme-border-color, #e9ecef);
}

.faq-item {
  border-bottom: 1px solid var(--theme-border-color, #e9ecef);
  margin-bottom: 0.5rem;
}

.faq-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0.75rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.faq-toggle:hover {
  background-color: var(--theme-section-alt-bg-color, #f8f9fa);
}
.faq-toggle:focus {
  outline: none;
  box-shadow: none;
}
.faq-toggle:not(.collapsed) {
  background-color: var(--theme-section-alt-bg-color, #f8f9fa);
}
.faq-toggle:not(.collapsed) .faq-q-icon {
  background-color: var(--theme-primary-color);
  color: #fff;
}
.faq-toggle:not(.collapsed) .faq-chevron {
  transform: rotate(180deg);
  color: var(--theme-primary-color);
}

.faq-q-icon,
.faq-a-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.faq-q-icon {
  background-color: var(--theme-border-color, #e9ecef);
  color: #495057;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.faq-a-icon {
  background-color: var(--theme-primary-color);
  color: #fff;
  margin-top: 2px;
}

.faq-toggle-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
  line-height: 1.5;
}

.faq-category-badge {
  flex-shrink: 0;
  font-size: 0.875rem;
}

.faq-chevron {
  flex-shrink: 0;
  color: #adb5bd;
  line-height: 0;
  transition: transform 0.2s ease, color 0.15s ease;
}

.faq-answer-panel {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 1.25rem calc(0.75rem + 28px + 0.75rem);
  background-color: var(--theme-section-alt-bg-color, #f8f9fa);
  border-top: 1px solid var(--theme-border-color, #dee2e6);
  animation: faq-fade-in 0.25s ease;
}

@keyframes faq-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.faq-answer-body {
  flex: 1;
}

.questions-sidebar-search .input-group {
  font-size: 0.9rem;
}

.questions-accordion-icon {
  color: var(--theme-primary-color);
}

.question-related-title {
  max-width: 200px;
}

.card-header-theme-primary {
  background-color: var(--theme-primary-color);
  color: #fff;
}

.faq-question-title {
  font-size: 1.125rem;
  font-weight: 500;
}

.badge-theme-primary {
  background-color: var(--theme-primary-color);
  color: #fff;
}

/* ========== 問題詳情頁（show）========== */
.question-show-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.question-show-answer-box {
  background-color: var(--theme-section-alt-bg-color, #f8f9fa);
  padding: 1.25rem 1.5rem;
}

.question-show-related-link {
  line-height: 1.4;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.question-show-type-badge {
  font-size: 0.875rem;
}

.question-show-keywords {
  font-size: 0.875rem;
  color: #6c757d;
}
