/* 论坛资讯 Tab 区 — 自 Website ConsultFeedPanel 迁移 */
#qb-pc-feeds {
  width: 888px;
  margin-top: 8px;
}

.tab-feed-panel {
  display: flex;
  flex-direction: column;
  height: 1030px;
  overflow: hidden;
  background: #fff;
  border: 0.5px solid rgba(3, 23, 77, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(3, 23, 77, 0.04);
}

.tab-feed-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scrollbar-width: none;
}

.tab-feed-tabs::-webkit-scrollbar {
  display: none;
}

.tab-feed-tab {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #242424;
  font-size: 15px;
  line-height: 1;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s;
}

.tab-feed-tab:hover {
  color: #205aef;
}

.tab-feed-tab.active {
  color: #205aef;
  font-weight: 600;
}

.tab-feed-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #205aef;
}

.tab-feed-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tab-feed-state {
  flex-shrink: 0;
}

.tab-feed-list {
  padding: 0 16px;
}

.tab-feed-list.is-refreshing {
  opacity: 0.55;
  pointer-events: none;
}

.tab-feed-row {
  display: flex;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 4px;
  text-decoration: none;
  color: #242424;
  border-bottom: 1px solid #efefef;
  transition: background 0.15s;
}

.tab-feed-row:last-child {
  border-bottom: none;
}

.tab-feed-row:hover {
  background: #f6f7fa;
}

.tab-feed-row:hover .tab-feed-title {
  color: #136ce9;
}

.tab-feed-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.tab-feed-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tab-feed-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tab-feed-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tab-feed-desc {
  margin: 0;
  color: #666;
  font-size: 12px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tab-feed-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #8f8f8f;
  font-size: 12px;
  line-height: 20px;
}

.tab-feed-source {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-feed-dot {
  opacity: 0.6;
}

.tab-feed-loadmore {
  min-height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.tab-feed-loadmore[aria-hidden='false'] {
  min-height: 24px;
  padding: 4px 16px 8px;
}

.tab-feed-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e5e5e5;
  border-top-color: #205aef;
  border-radius: 50%;
  animation: tab-feed-spin 0.8s linear infinite;
}

@keyframes tab-feed-spin {
  to { transform: rotate(360deg); }
}

.tab-feed-skeleton {
  padding: 12px 16px;
}

.tab-feed-skeleton-row {
  height: 88px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f3f4f6 25%, #eceff3 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: tab-feed-shimmer 1.2s infinite;
}

@keyframes tab-feed-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tab-feed-error {
  padding: 24px 16px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.tab-feed-retry {
  margin-top: 10px;
  padding: 6px 14px;
  border: 1px solid #205aef;
  border-radius: 6px;
  background: transparent;
  color: #205aef;
  cursor: pointer;
}

.tab-feed-retry:hover {
  background: rgba(32, 90, 239, 0.08);
}

@media (max-width: 1240px) {
  #qb-pc-feeds {
    width: 100%;
  }
}
