:root {
  --border-color: #e5e7eb;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --badge-orange: #f97316;
  --accent: #2563eb;
  --radius: 10px;
  --btn: #007bbd;
}

.news-page {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 16px;
}

.tab-bar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  padding: 4px 0;
  font-weight: 500;
  position: relative;
}

.tab-btn.active {
  color: var(--btn);
  font-weight: 700;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 2px;
  background: var(--btn);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.article-thumb {
  width: 200px;
  height: 135px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;

}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb .thumb-source {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.4;
  color: var(--text-main);
}

.article-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.article-badge {
  background: var(--btn);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.article-time {
  color: var(--text-sub);
  margin-left: auto;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.page-btn.active {
  background: var(--btn);
  color: #fff;
  border-color: var(--btn);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1000px) {
  .article-thumb {
    width: 130px;
    height: 85px;
  }
  .article-title {
    font-size: 15px;
  }
  .tab-bar {
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
}

@media (max-width: 800px) {
  .article-desc {
    display: none;
  }
  .article-thumb {
    width: 110px;
    height: 75px;
  }
  .article-card {
    gap: 12px;
  }
  .article-title {
    font-size: 14px;
    margin-bottom: 6px;
  }
}
