.qa-center {
  --qa-primary: #ff6b00;
  --qa-primary-dark: #e65f00;
  --qa-text: #2d2925;
  --qa-muted: #6f6a65;
  --qa-surface: #ffffff;
  --qa-soft: #fff8f2;
  --qa-line: rgba(45, 41, 37, 0.1);
  padding-top: 72px;
  color: var(--qa-text);
  background: var(--qa-surface);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.qa-container {
  width: min(calc(100% - 64px), 1200px);
  max-width: 1200px;
  margin-inline: auto;
}

.qa-hero-shell {
  position: relative;
}

.qa-hero,
.qa-hero__picture,
.qa-hero__image {
  width: 100%;
}

.qa-hero {
  position: relative;
  aspect-ratio: 1920 / 680;
  overflow: hidden;
  background: #f8eee5;
}

.qa-hero__picture,
.qa-hero__image {
  display: block;
  height: 100%;
}

.qa-hero__image {
  object-fit: cover;
}

.qa-hero__content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.qa-hero__identity,
.qa-hero__featured {
  pointer-events: auto;
}

.qa-hero__identity {
  position: absolute;
  top: 50%;
  left: 56.5%;
  z-index: 3;
  width: 8%;
  min-width: 100px;
  height: 78%;
  transform: translateY(-50%);
}

.qa-hero__frame {
  position: absolute;
  object-fit: contain;
}

.qa-hero__frame--desktop {
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.qa-hero__frame--mobile {
  display: none;
}

.qa-hero__identity h1 {
  position: absolute;
  top: 50%;
  left: 41%;
  margin: 0;
  color: var(--qa-primary);
  font-size: clamp(18px, 1.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
}

.qa-hero__logo {
  position: absolute;
  top: -10%;
  right: auto;
  left: 200%;
  width: min(100%, 150px);
  height: auto;
  object-fit: contain;
}

.qa-hero__featured {
  position: absolute;
  top: 18%;
  left: 62.5%;
  z-index: 2;
  display: grid;
  width: 30%;
  gap: clamp(10px, 1.1vw, 20px);
}

.qa-featured-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: clamp(86px, 6.9vw, 132px);
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(176, 101, 44, 0.22);
  backdrop-filter: blur(8px);
}

.qa-featured-card__category {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  color: #ffffff;
  background: #FF8226;
  font-size: clamp(12px, 0.85vw, 16px);
  font-weight: 600;
  letter-spacing: 0.56em;
  line-height: 1.25;
  writing-mode: vertical-rl;
}

.qa-featured-card__body {
  min-width: 0;
  padding: clamp(11px, 1vw, 18px) clamp(14px, 1.2vw, 22px);
  background: #ffffff38;
  box-shadow: inset 0px 0px 20px 7px #fff;
}

.qa-featured-card h2,
.qa-featured-card p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qa-featured-card h2 {
  display: -webkit-box;
  color: #3f342d;
  font-size: clamp(14px, 1.05vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.qa-featured-card p {
  display: -webkit-box;
  margin-top: 5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #5f554e;
  font-size: clamp(14px, 0.84vw, 16px);
  line-height: 1.5;
}

.qa-featured-card h2 span,
.qa-featured-card p span {
  margin-right: 0.4em;
  font-weight: 700;
}

.qa-content {
  padding: 58px 0 120px;
  background: var(--qa-surface);
}

.qa-search {
  display: flex;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--qa-primary);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(242, 121, 37, 0.06);
}

.qa-search input {
  min-width: 0;
  flex: 1;
  height: 56px;
  border: 0;
  outline: 0;
  color: var(--qa-text);
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 0 20px;
}

.qa-search input::placeholder {
  color: #a49b94;
}

.qa-search button,
.qa-pagination__button,
.qa-pagination__load-more,
.qa-state__retry {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.qa-search button {
  align-self: stretch;
  order: -1;
  position: relative;
  flex: 0 0 58px;
  min-width: 58px;
  color: var(--qa-primary);
  background: transparent;
  font-size: 0;
  transition: background-color 180ms ease, transform 180ms ease;
}

.qa-search button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: '';
  transform: translate(-68%, -68%);
}

.qa-search button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  margin: 6px 0 0 3px;
  border-radius: 2px;
  background: currentColor;
  content: '';
  transform: rotate(45deg);
}

.qa-search button:hover:not(:disabled),
.qa-state__retry:hover:not(:disabled),
.qa-pagination__load-more:hover:not(:disabled) {
  background: var(--qa-primary-dark);
}

.qa-search button:hover:not(:disabled) {
  background: rgba(242, 121, 37, 0.1);
}

.qa-search button:active:not(:disabled),
.qa-state__retry:active:not(:disabled),
.qa-pagination__button:active:not(:disabled),
.qa-pagination__load-more:active:not(:disabled) {
  transform: translateY(1px);
}

.qa-search button:disabled,
.qa-pagination__button:disabled,
.qa-pagination__load-more:disabled,
.qa-state__retry:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.qa-results {
  min-height: 280px;
  margin-top: 38px;
  padding: 16px 46px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(120, 75, 41, 0.1);
}

.qa-list {
  min-height: 1px;
}

.qa-item {
  padding: 25px 0 22px;
  border-bottom: 1px solid var(--qa-line);
}

.qa-item:last-child {
  border-bottom: 0;
}

.qa-item__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.qa-item__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin-top: 1px;
  object-fit: contain;
  background: transparent url('/static/images/qa/qa-item-icon.webp') center / contain no-repeat;
}

.qa-item h2 {
  margin: 0;
  color: var(--qa-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.qa-item h2 span {
  margin-right: 0.45em;
  /* color: var(--qa-primary-dark); */
}

.qa-item__answer {
  margin: 10px 0 0 38px;
  color: #514a45;
  font-size: 14px;
  line-height: 1.8;
}

.qa-item__sources {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  max-width: calc(100% - 38px);
  margin: 14px 0 0 38px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #837a73;
  background: #f6f6f6;
  font-size: 12px;
  line-height: 1.55;
}

.qa-item__sources>span {
  color: #736a63;
  white-space: nowrap;
}

.qa-item__sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-item__sources li+li::before {
  margin-right: 10px;
  color: #c1b9b3;
  content: "/";
}

.qa-state {
  min-height: 0;
}

.qa-state--loading,
.qa-state--empty,
.qa-state--error,
.qa-state--complete {
  margin: 20px 0;
  color: var(--qa-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.qa-state--error {
  color: #c55a24;
}

.qa-state__retry {
  display: block;
  margin: 0 auto 20px;
  padding: 10px 18px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--qa-primary);
  transition: background-color 180ms ease, transform 180ms ease;
}

.qa-skeleton {
  min-height: 104px;
  margin: 16px 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #f5f2ef 20%, #fbfaf9 40%, #f5f2ef 60%);
  background-size: 200% 100%;
}

.qa-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.qa-pagination__button,
.qa-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5dfda;
  border-radius: 9px;
  color: #6f655e;
  background: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.qa-pagination__button[aria-current="page"] {
  border-color: var(--qa-primary);
  color: #ffffff;
  background: var(--qa-primary);
}

.qa-pagination__button:not(:disabled):hover {
  border-color: var(--qa-primary);
  color: var(--qa-primary-dark);
}

.qa-pagination__button[aria-current="page"]:hover {
  color: #ffffff;
  background: var(--qa-primary-dark);
}

.qa-pagination__ellipsis {
  border-color: transparent;
  color: #a79e97;
}

.qa-pagination__load-more {
  display: none;
  min-width: 142px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--qa-primary);
  transition: background-color 180ms ease, transform 180ms ease;
}

.qa-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qa-noscript {
  margin: 20px;
  color: #6f655e;
  text-align: center;
}

.qa-search :focus-visible,
.qa-pagination :focus-visible,
.qa-state__retry:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.42);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .qa-skeleton {
    animation: qa-skeleton-pulse 1.35s ease-in-out infinite;
  }
}

@keyframes qa-skeleton-pulse {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .qa-featured-card,
  .qa-search button,
  .qa-state__retry,
  .qa-pagination__button,
  .qa-pagination__load-more {
    transition: none;
  }

  .qa-skeleton {
    animation: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .qa-hero__identity {
    left: 49%;
    width: 9%;
    min-width: 86px;
    height: 72%;
  }

  .qa-hero__logo {
    left: auto;
    right: -4%;
    width: 92px;
  }

  .qa-hero__featured {
    top: 8%;
    left: 60.5%;
    width: 32.5%;
    gap: 15px;
  }

  .qa-featured-card {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 66px;
    border-radius: 16px;
  }

  .qa-featured-card__category {
    padding: 6px 0;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .qa-featured-card__body {
    padding: 7px 9px;
  }

  .qa-featured-card h2 {
    font-size: 11px;
    line-height: 1.3;
  }

  .qa-featured-card p {
    margin-top: 2px;
    -webkit-line-clamp: 1;
    font-size: 8px;
    line-height: 1.3;
  }
}

@media (max-width: 767px) {
  .qa-center {
    padding-top: 0px;
  }

  .qa-hero-shell {
    background: #fff8f1;
  }

  .qa-hero {
    aspect-ratio: 375 / 580;
    background: #fff8f1;
  }

  .qa-hero__image {
    object-position: center;
  }

  .qa-hero__content {
    position: relative;
    inset: auto;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    margin: -124px auto 0;
    padding: 0px 10px 24px;
    border-radius: 28px 28px 0 0;
    background: #fff8f0d4;
    pointer-events: auto;
  }

  .qa-hero__identity {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    height: 70px;
    padding: 0 10px 12px;
    transform: none;
  }

  .qa-hero__frame--desktop {
    display: none;
  }

  .qa-hero__frame--mobile {
    top: -15px;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .qa-hero__identity h1 {
    top: 41%;
    left: 50%;
    font-size: 19px;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 14px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }

  .qa-hero__logo {
    top: 22px;
    left: auto;
    right: 10%;
    width: 60px;
  }

  .qa-hero__featured {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    gap: 15px;
    transform: none;
  }

  .qa-featured-card {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: clamp(96px, 29.8667vw, 112px);
    border-radius: 26px;
    box-shadow: 0 7px 14px rgba(176, 101, 44, 0.17);
  }

  .qa-featured-card__category {
    font-size: 14px;
    letter-spacing: 0.48em;
    font-weight: 500;
  }

  .qa-featured-card__body {
    padding: 8px 10px;
  }

  .qa-featured-card h2 {
    font-size: 18px;
    line-height: 1.35;
  }

  .qa-featured-card p {
    margin-top: 2px;
    -webkit-line-clamp: 3;
    font-size: 16px;
    line-height: 1.35;
  }

  .qa-content {
    padding: 24px 0 64px;
  }

  .qa-container {
    width: 100%;
    max-width: none;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .qa-search {
    min-height: 44px;
    border-radius: 44px;
  }

  .qa-search input {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .qa-search button {
    flex: 0 0 44px;
    min-width: 44px;
  }

  .qa-results {
    min-height: 0;
    margin-top: 19px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .qa-item {
    padding: 17px 0;
  }

  .qa-item__header {
    gap: 7px;
  }

  .qa-item__icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .qa-item h2 {
    font-size: 16px;
    line-height: 1.45;
  }

  .qa-item__answer {
    margin: 8px 0 0 29px;
    font-size: 14px;
    line-height: 1.65;
  }

  .qa-item__sources {
    display: block;
    max-width: calc(100% - 29px);
    margin: 10px 0 0 29px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.5;
  }

  .qa-item__sources ul {
    display: block;
    margin-top: 3px;
  }

  .qa-item__sources li+li::before {
    display: none;
  }

  .qa-state--loading,
  .qa-state--empty,
  .qa-state--error,
  .qa-state--complete {
    margin: 16px 0;
    font-size: 13px;
  }

  .qa-skeleton {
    min-height: 82px;
    margin: 10px 0;
    border-radius: 10px;
  }

  .qa-pagination {
    min-height: 42px;
    margin-top: 24px;
  }

  .qa-pagination__button,
  .qa-pagination__ellipsis {
    display: none;
  }

  .qa-pagination__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }
}

.qa-item__sources a {
  color: #e86618;
  text-decoration: underline;
  text-decoration-color: rgba(232, 102, 24, 0.35);
  text-underline-offset: 3px;
}

.qa-item__sources a:hover,
.qa-item__sources a:focus-visible {
  color: #ff6b00;
  text-decoration-color: currentColor;
}
