body{
  background: #fff;
}
.list-banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  background: #ece6dc;
}
.list-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.list-wrap { padding: 22px 0 36px; }

.qa-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.qa-main {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.qa-consult {
  background:
    linear-gradient(160deg, var(--red)),
    linear-gradient(135deg, #1b3a4b 0%, #8b1e2d 100%);
  border-radius: 16px;
  box-shadow: none;
}

.qa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 16px;
  background: #fafafa;
  border-radius: 0;
}
.qa-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  transition: color .2s ease;
}
.qa-tabs a:hover { color: var(--red); }
.qa-tabs a.is-active,
.qa-tabs a.is-active:hover {
  color: var(--red);
  background: #fff;
}
.qa-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--red);
}

.qa-feed { list-style: none; }
.qa-feed-item {
  padding: 18px 2px;
  border-bottom: 1px dashed #e3d7c7;
}
.qa-feed-item:last-child { border-bottom: 0; }
.qa-feed-item__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}
.qa-feed-item__title a:hover { color: var(--red); }
.qa-feed-item__answer {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qa-feed-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.qa-feed-item__info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.qa-feed-item__info span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-feed-item__info span + span::before {
  content: "·";
  margin-right: 10px;
  color: #cbb8a5;
}
.qa-feed-item__reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--muted);
}
.qa-feed-item__reply svg {
  width: 15px;
  height: 15px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 8px;
  border-top: 1px dashed #e3d7c7;
  margin-top: 8px;
}
.pager__btn,
.pager__pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #eadfd1;
  border-radius: 8px;
  background: #faf7f2;
  color: var(--muted);
  font-size: 13px;
}
.pager__pages { display: flex; flex-wrap: wrap; gap: 8px; }
.pager__btn:hover,
.pager__pages a:hover {
  border-color: #d9b3ae;
  color: var(--red);
  background: #fff7f4;
}
.pager__pages a.is-active,
.pager__pages a.is-active:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.pager__info {
  width: 100%;
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: contents;
}
.pager__info strong { color: var(--red); margin: 0 2px; }

.qa-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-consult {
  display: block;
  overflow: hidden;
  color: #fff;
  min-height: 168px;
  padding: 22px 20px;
}
.qa-consult__kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 11px;
  letter-spacing: 1px;
}
.qa-consult strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.3;
}
.qa-consult p {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  margin-bottom: 14px;
}
.qa-consult span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.qa-consult:hover span { background: #fff7f4; }

.qa-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.qa-cat-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: none;
  transition: transform .2s ease;
}
.qa-cat-card:hover { transform: translateY(-2px); }
.qa-cat-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: linear-gradient(160deg, #ece6dc, #d8cfc3);
}

@media (max-width: 1024px) {
  .list-banner img { height: 160px; }
  .qa-page-layout { grid-template-columns: 1fr; }
  .pager__info {
    width: 100%;
  }
  .qa-cat-grid{
    display: none;
  }
}

@media (max-width: 720px) {
  .qa-main { padding: 0; }
  .qa-feed-item__title { font-size: 16px; }
  .pager__btn,
  .pager__pages a {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}
