:root {
  --qa-bg: #f5f1e8;
  --qa-bg-soft: #fffaf2;
  --qa-panel: rgba(255, 250, 242, 0.82);
  --qa-card: #ffffff;
  --qa-line: rgba(19, 38, 33, 0.08);
  --qa-line-strong: rgba(19, 38, 33, 0.16);
  --qa-text: #1f2b26;
  --qa-muted: #66756f;
  --qa-accent: #0c8f63;
  --qa-accent-deep: #095c42;
  --qa-accent-soft: rgba(12, 143, 99, 0.12);
  --qa-shadow: 0 24px 60px rgba(29, 45, 38, 0.1);
}

.knowledge-qa-page {
  background:
    radial-gradient(circle at top right, rgba(12, 143, 99, 0.14), transparent 28%),
    linear-gradient(180deg, #f4efe4 0%, #fbf7f0 38%, #ffffff 100%);
  color: var(--qa-text);
}

.knowledge-qa-hero,
.knowledge-qa-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 28px;
}

.knowledge-qa-hero::before,
.knowledge-qa-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(9, 92, 66, 0.95) 0%, rgba(12, 143, 99, 0.84) 45%, rgba(233, 180, 81, 0.32) 100%),
    url("/site/static/picture/news-bg.png") center/cover no-repeat;
  opacity: 0.98;
}

.knowledge-qa-hero__inner,
.knowledge-qa-detail-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.knowledge-qa-kicker,
.knowledge-qa-toolbar__eyebrow,
.knowledge-qa-related__kicker,
.knowledge-qa-detail-hero__panel-kicker,
.knowledge-qa-modal__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.knowledge-qa-hero__copy,
.knowledge-qa-detail-hero__copy {
  padding: 12px 0;
  color: #fffefb;
}

.knowledge-qa-hero__copy h1,
.knowledge-qa-detail-hero__copy h1 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.knowledge-qa-hero__copy > p,
.knowledge-qa-detail-hero__copy > p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 254, 251, 0.88);
}

.knowledge-qa-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.knowledge-qa-stat,
.knowledge-qa-hero__panel,
.knowledge-qa-detail-hero__panel {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.knowledge-qa-stat {
  min-width: 132px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
}

.knowledge-qa-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.knowledge-qa-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 254, 251, 0.82);
}

.knowledge-qa-hero__panel,
.knowledge-qa-detail-hero__panel {
  align-self: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(255, 251, 243, 0.14);
  color: #fffefb;
  box-shadow: var(--qa-shadow);
}

.knowledge-qa-detail-hero__panel h2 {
  margin: 10px 0 14px;
  font-size: 28px;
}

.knowledge-qa-search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 254, 251, 0.82);
}

.knowledge-qa-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.knowledge-qa-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--qa-text);
  font-size: 15px;
}

.knowledge-qa-search button,
.knowledge-qa-link,
.knowledge-qa-answer-btn,
.knowledge-qa-submit {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.knowledge-qa-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--qa-accent-soft);
  color: var(--qa-accent-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.knowledge-qa-hero__ask {
  width: 100%;
  margin-top: 18px;
}

.knowledge-qa-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.knowledge-qa-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fffefb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.knowledge-qa-filter span {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 12px;
}

.knowledge-qa-filter.is-active {
  background: #fffefb;
  border-color: #fffefb;
  color: var(--qa-accent-deep);
}

.knowledge-qa-panel__tip,
.knowledge-qa-detail-hero__panel p {
  margin: 18px 0 0;
  line-height: 1.8;
  color: rgba(255, 254, 251, 0.82);
}

.knowledge-qa-content,
.knowledge-qa-detail-body {
  padding: 32px 0 72px;
}

.knowledge-qa-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.knowledge-qa-toolbar h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
}

.knowledge-qa-toolbar__summary {
  margin: 0;
  color: var(--qa-muted);
  font-size: 14px;
}

.knowledge-qa-list {
  display: grid;
  gap: 16px;
}

.knowledge-qa-card,
.knowledge-qa-detail-card,
.knowledge-qa-related__card {
  border: 1px solid var(--qa-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 60px rgba(31, 43, 38, 0.06);
}

.knowledge-qa-card {
  overflow: hidden;
}

.knowledge-qa-card__head {
  padding: 20px 22px 8px;
}

.knowledge-qa-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.knowledge-qa-card__index,
.knowledge-qa-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.knowledge-qa-card__index {
  background: #efe8d8;
  color: #6d5b2c;
}

.knowledge-qa-card__tag {
  background: var(--qa-accent-soft);
  color: var(--qa-accent-deep);
}

.knowledge-qa-card__question {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--qa-text);
}

.knowledge-qa-card__question-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: color 0.18s ease, background-size 0.18s ease;
}

.knowledge-qa-card__question-link:hover {
  color: var(--qa-accent-deep);
  background-size: 100% 2px;
}

.knowledge-qa-card__body {
  padding: 0 22px 22px;
}

.knowledge-qa-answer {
  padding: 18px 20px;
  border: 1px solid rgba(12, 143, 99, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.96) 0%, rgba(245, 249, 247, 0.9) 100%);
}

.knowledge-qa-answer__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.knowledge-qa-answer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--qa-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.knowledge-qa-answer__label {
  color: var(--qa-accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-qa-answer__body {
  color: #33413b;
  line-height: 1.9;
  font-size: 15px;
}

.knowledge-qa-answer__body p:first-child {
  margin-top: 0;
}

.knowledge-qa-answer__body p:last-child {
  margin-bottom: 0;
}

.knowledge-qa-answer__body img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.knowledge-qa-answer__body table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.knowledge-qa-page mjx-container {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.knowledge-qa-answer__body mjx-container[jax="CHTML"][display="true"] {
  margin: 1em 0;
  padding: 8px 0;
}

.knowledge-qa-card__question mjx-container,
.knowledge-qa-detail-hero__copy mjx-container {
  line-height: 1;
}

.knowledge-qa-card__actions,
.knowledge-qa-detail-hero__actions,
.knowledge-qa-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.knowledge-qa-card__actions {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--qa-line);
}

.knowledge-qa-link,
.knowledge-qa-answer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.knowledge-qa-link {
  border: 1px solid var(--qa-line-strong);
  background: #fff;
  color: var(--qa-text);
}

.knowledge-qa-answer-btn,
.knowledge-qa-submit {
  border: 1px solid var(--qa-accent);
  background: var(--qa-accent);
  color: #fff;
}

.knowledge-qa-link:hover,
.knowledge-qa-answer-btn:hover,
.knowledge-qa-submit:hover,
.knowledge-qa-search button:hover,
.knowledge-qa-filter:hover {
  transform: translateY(-1px);
}

.knowledge-qa-empty {
  margin-top: 18px;
  padding: 34px 24px;
  border: 1px dashed var(--qa-line-strong);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.knowledge-qa-empty.is-filter-empty {
  display: none;
}

.knowledge-qa-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.knowledge-qa-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--qa-line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--qa-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.knowledge-qa-page-link:hover {
  transform: translateY(-1px);
  border-color: rgba(12, 143, 99, 0.36);
  color: var(--qa-accent-deep);
}

.knowledge-qa-page-link.is-active {
  border-color: var(--qa-accent);
  background: var(--qa-accent);
  color: #fff;
  cursor: default;
}

.knowledge-qa-page-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.knowledge-qa-page-status {
  color: var(--qa-muted);
  font-size: 14px;
}

.knowledge-qa-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: rgba(255, 254, 251, 0.84);
  font-size: 14px;
}

.knowledge-qa-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.knowledge-qa-detail-card {
  padding: 28px;
}

.knowledge-qa-detail-card__head h2 {
  margin: 14px 0 0;
  font-size: 28px;
}

.knowledge-qa-answer__body--detail {
  margin-top: 20px;
  font-size: 16px;
}

.knowledge-qa-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--qa-line);
}

.knowledge-qa-adjacent__item {
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--qa-line-strong);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--qa-text);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.knowledge-qa-adjacent__item span {
  color: var(--qa-muted);
  font-size: 13px;
  font-weight: 700;
}

.knowledge-qa-adjacent__item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.knowledge-qa-adjacent__item--next {
  text-align: right;
}

.knowledge-qa-adjacent__item:not(.is-disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(5, 137, 81, 0.28);
  box-shadow: 0 16px 36px rgba(31, 43, 38, 0.08);
}

.knowledge-qa-adjacent__item.is-disabled {
  color: rgba(32, 43, 39, 0.52);
}

.knowledge-qa-related__card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.knowledge-qa-related__card h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.knowledge-qa-related__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-qa-related__card li + li {
  margin-top: 12px;
}

.knowledge-qa-related__card a {
  color: var(--qa-text);
  text-decoration: none;
  line-height: 1.6;
}

.knowledge-qa-related__card a:hover {
  color: var(--qa-accent);
}

.knowledge-qa-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
}

.knowledge-qa-modal.is-open {
  display: block;
}

.knowledge-qa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 26, 0.58);
}

.knowledge-qa-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 28px;
  overflow-y: auto;
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 30px 80px rgba(18, 30, 26, 0.22);
}

.knowledge-qa-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2ede2;
  color: var(--qa-text);
  font-size: 24px;
  cursor: pointer;
}

.knowledge-qa-modal__head h2 {
  margin: 6px 0 10px;
  font-size: 32px;
}

.knowledge-qa-modal__question {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.knowledge-qa-modal__tip {
  margin: 10px 0 0;
  color: var(--qa-muted);
  line-height: 1.8;
}

.knowledge-qa-alert {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.knowledge-qa-alert.is-visible {
  display: block;
}

.knowledge-qa-alert.is-error {
  background: #fff0ec;
  color: #b3472f;
}

.knowledge-qa-alert.is-success {
  background: #eef9f3;
  color: #1d744f;
}

.knowledge-qa-form {
  margin-top: 22px;
}

.knowledge-qa-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-qa-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.knowledge-qa-field--full {
  grid-column: 1 / -1;
}

.knowledge-qa-field label {
  font-size: 14px;
  font-weight: 700;
}

.knowledge-qa-field input,
.knowledge-qa-field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d7d9d2;
  border-radius: 16px;
  outline: none;
  background: #fff;
  color: var(--qa-text);
  font-size: 15px;
}

.knowledge-qa-field input:focus,
.knowledge-qa-field textarea:focus {
  border-color: rgba(12, 143, 99, 0.5);
  box-shadow: 0 0 0 4px rgba(12, 143, 99, 0.12);
}

.knowledge-qa-form__actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.knowledge-qa-submit {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.knowledge-qa-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.knowledge-qa-form__actions p {
  margin: 0;
  color: var(--qa-muted);
  font-size: 13px;
}

.req {
  color: #cf5b35;
}

[data-qa-item].is-hidden {
  display: none;
}

body.knowledge-qa-modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .knowledge-qa-hero__inner,
  .knowledge-qa-detail-hero__inner,
  .knowledge-qa-detail-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-qa-related__card {
    position: static;
  }
}

@media (max-width: 768px) {
  .knowledge-qa-hero,
  .knowledge-qa-detail-hero,
  .knowledge-qa-content,
  .knowledge-qa-detail-body {
    padding-top: 28px;
  }

  .knowledge-qa-hero__panel,
  .knowledge-qa-detail-hero__panel,
  .knowledge-qa-card__head,
  .knowledge-qa-card__body,
  .knowledge-qa-detail-card,
  .knowledge-qa-related__card,
  .knowledge-qa-modal__dialog {
    padding: 20px;
  }

  .knowledge-qa-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .knowledge-qa-form__grid {
    grid-template-columns: 1fr;
  }

  .knowledge-qa-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-qa-submit {
    width: 100%;
  }

  .knowledge-qa-adjacent {
    grid-template-columns: 1fr;
  }

  .knowledge-qa-adjacent__item--next {
    text-align: left;
  }
}
