/* GEO 问答 · 贴吧风格 */
.geo-qa-page {
  --tb-blue: #2d64b3;
  --tb-blue-light: #eef4fc;
  --tb-border: #e3e8ef;
  --tb-text: #333;
  --tb-muted: #8a9199;
  --tb-bg: #f5f6f8;
  background: var(--tb-bg);
  min-height: 60vh;
}

.geo-qa-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px 48px;
}

/* 吧头 */
.geo-qa-bar {
  background: linear-gradient(135deg, #2d64b3 0%, #1a4a8a 100%);
  color: #fff;
  border-radius: 0 0 8px 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.geo-qa-bar__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.geo-qa-bar__info {
  flex: 1;
  min-width: 200px;
}

.geo-qa-bar__name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.geo-qa-bar__desc {
  margin: 0;
  font-size: 13px;
  opacity: 0.88;
  line-height: 1.5;
}

.geo-qa-bar__stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.geo-qa-bar__stats strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

/* 排序栏 */
.geo-qa-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.geo-qa-tabs a {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--tb-text);
  text-decoration: none;
  border-right: 1px solid var(--tb-border);
  transition: background 0.15s, color 0.15s;
}

.geo-qa-tabs a:last-child {
  border-right: none;
}

.geo-qa-tabs a:hover,
.geo-qa-tabs a.is-active {
  background: var(--tb-blue-light);
  color: var(--tb-blue);
  font-weight: 600;
}

.geo-qa-tabs__hint {
  margin-left: auto;
  padding: 0 16px;
  font-size: 12px;
  color: var(--tb-muted);
}

/* 帖子列表 */
.geo-qa-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.geo-qa-thread {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: box-shadow 0.15s;
}

.geo-qa-thread:hover {
  box-shadow: 0 2px 12px rgba(45, 100, 179, 0.1);
}

.geo-qa-thread__link {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}

.geo-qa-thread__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tb-blue-light);
  color: var(--tb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.geo-qa-thread__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.geo-qa-thread__body {
  flex: 1;
  min-width: 0;
}

.geo-qa-thread__q {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.geo-qa-thread:hover .geo-qa-thread__q {
  color: var(--tb-blue);
}

.geo-qa-thread__a {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.geo-qa-thread__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--tb-muted);
}

.geo-qa-thread__tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--tb-blue-light);
  color: var(--tb-blue);
  font-size: 11px;
}

.geo-qa-thread__tag--region {
  background: #e8f5e9;
  color: #2e7d32;
}

.geo-qa-thread__tag--kw {
  background: #fff8e1;
  color: #f57c00;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-qa-thread__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding-left: 8px;
  border-left: 1px dashed var(--tb-border);
  text-align: center;
}

.geo-qa-thread__reply-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--tb-blue);
  line-height: 1.2;
}

.geo-qa-thread__reply-label {
  font-size: 11px;
  color: var(--tb-muted);
}

/* 无限加载 */
.geo-qa-load-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  border: none;
}

.geo-qa-loading {
  text-align: center;
  padding: 24px;
  color: var(--tb-muted);
  font-size: 14px;
}

.geo-qa-loading.is-hidden {
  display: none;
}

.geo-qa-loading__spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--tb-border);
  border-top-color: var(--tb-blue);
  border-radius: 50%;
  animation: geoQaSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes geoQaSpin {
  to { transform: rotate(360deg); }
}

.geo-qa-end {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--tb-muted);
}

.geo-qa-end.is-hidden {
  display: none;
}

.geo-qa-pager-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* 详情页 */
.geo-qa-detail {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 6px;
  margin-bottom: 10px;
}

.geo-qa-detail--op {
  border-top: 3px solid var(--tb-blue);
}

.geo-qa-post {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--tb-border);
}

.geo-qa-post:last-child {
  border-bottom: none;
}

.geo-qa-post__floor {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 12px;
  color: var(--tb-muted);
}

.geo-qa-post__aside {
  width: 80px;
  flex-shrink: 0;
  text-align: center;
}

.geo-qa-post__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tb-blue-light);
  color: var(--tb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 6px;
}

.geo-qa-post__author {
  font-size: 12px;
  color: var(--tb-blue);
  word-break: break-all;
}

.geo-qa-post__main {
  flex: 1;
  min-width: 0;
  position: relative;
}

.geo-qa-post__time {
  font-size: 12px;
  color: var(--tb-muted);
  margin-bottom: 10px;
}

.geo-qa-post__content {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  word-break: break-word;
}

.geo-qa-post__content h2,
.geo-qa-post__content h3 {
  font-size: 16px;
  margin: 16px 0 8px;
  color: #1a1a1a;
}

.geo-qa-post__content p {
  margin: 0 0 10px;
}

.geo-qa-post__content img {
  max-width: 100%;
  height: auto;
}

.geo-qa-post__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: #fff3e0;
  color: #e65100;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.geo-qa-detail__title {
  margin: 0;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 1px solid var(--tb-border);
  color: #1a1a1a;
}

/* 相关问答 */
.geo-qa-related {
  background: #fff;
  border: 1px solid var(--tb-border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 12px;
}

.geo-qa-related h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tb-text);
}

.geo-qa-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.geo-qa-related li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--tb-border);
}

.geo-qa-related li:last-child {
  border-bottom: none;
}

.geo-qa-related a {
  color: var(--tb-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.geo-qa-related a:hover {
  color: var(--tb-blue);
}

/* 面包屑 */
.geo-qa-breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--tb-muted);
}

.geo-qa-breadcrumb a {
  color: var(--tb-muted);
  text-decoration: none;
}

.geo-qa-breadcrumb a:hover {
  color: var(--tb-blue);
}

@media (max-width: 768px) {
  .geo-qa-bar {
    padding: 16px;
    border-radius: 0;
    margin: 0 -12px 10px;
  }

  .geo-qa-bar__name {
    font-size: 18px;
  }

  .geo-qa-tabs__hint {
    display: none;
  }

  .geo-qa-thread__side {
    display: none;
  }

  .geo-qa-post {
    flex-direction: column;
    padding: 16px;
  }

  .geo-qa-post__aside {
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .geo-qa-post__avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin: 0;
  }

  .geo-qa-detail__title {
    font-size: 17px;
    padding: 14px 16px;
  }
}

/* 首页雪糕问答专区 */
.tvm-geo-qa-home {
  margin: 24px auto 32px;
  padding: 20px 22px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border: 1px solid #e3e8ef;
  border-radius: 8px;
}

.tvm-geo-qa-home__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tvm-geo-qa-home__head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #1a1a1a;
}

.tvm-geo-qa-home__sub {
  margin: 0;
  font-size: 13px;
  color: #8a9199;
}

.tvm-geo-qa-home__more {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #2d64b3;
  color: #fff !important;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.tvm-geo-qa-home__more:hover {
  background: #1a4a8a;
}

.tvm-geo-qa-home__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tvm-geo-qa-home__item {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  transition: box-shadow 0.15s;
}

.tvm-geo-qa-home__item:hover {
  box-shadow: 0 2px 12px rgba(45, 100, 179, 0.12);
}

.tvm-geo-qa-home__link {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.tvm-geo-qa-home__q {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 6px;
}

.tvm-geo-qa-home__item:hover .tvm-geo-qa-home__q {
  color: #2d64b3;
}

.tvm-geo-qa-home__a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin-bottom: 8px;
}

.tvm-geo-qa-home__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #8a9199;
}

.tvm-geo-qa-home__tag {
  padding: 1px 6px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 3px;
}

.tvm-geo-qa-home__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: #8a9199;
}

.tvm-geo-qa-home__foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: #8a9199;
}

.tvm-geo-qa-home__foot a {
  color: #2d64b3;
  text-decoration: none;
  font-weight: 600;
}

.tvm-nav-link--qa {
  color: #2d64b3 !important;
  font-weight: 600;
}

.geo-qa-topbar {
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.geo-qa-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.geo-qa-topbar__logo {
  font-size: 18px;
  font-weight: 700;
  color: #2d64b3;
  text-decoration: none;
}

.geo-qa-topbar__nav {
  display: flex;
  gap: 16px;
}

.geo-qa-topbar__nav a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.geo-qa-topbar__nav a.is-active,
.geo-qa-topbar__nav a:hover {
  color: #2d64b3;
  font-weight: 600;
}

.geo-qa-topbar--m {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 16px;
  font-size: 16px;
}

.geo-qa-topbar--m .geo-qa-topbar__back {
  position: absolute;
  left: 12px;
  color: #2d64b3;
  text-decoration: none;
}

.geo-qa-foot {
  text-align: center;
  padding: 24px 16px 40px;
  color: #8a9199;
  font-size: 13px;
}

.geo-qa-foot a {
  color: #2d64b3;
  text-decoration: none;
}

.a88-geo-qa {
  margin: 10px 12px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
}

.a88-geo-qa__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.a88-geo-qa__head h2 {
  margin: 0;
  font-size: 16px;
}

.a88-geo-qa__head a {
  font-size: 13px;
  color: #2d64b3;
  text-decoration: none;
}

@media (max-width: 768px) {
  .tvm-geo-qa-home__list {
    grid-template-columns: 1fr;
  }

  .tvm-geo-qa-home__head {
    flex-direction: column;
  }
}

.geo-qa-reply-lead {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f7f9fc;
  border-left: 3px solid #2d64b3;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

.geo-qa-reply-contact {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e0e6ed;
  color: #666;
  font-size: 13px;
}

.geo-qa-reply-contact a {
  color: #2d64b3;
  text-decoration: none;
}

.geo-qa-post__kw-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}
