/* 搜索栏 */
.search-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  margin-right: 10px;
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f7f7f7;
  border-radius: 18px;
  padding: 7px 12px;
  margin: 0 10px;
}

.search-input i {
  font-size: 14px;
  color: #bbb;
}

.search-input input {
  border: none;
  background: none;
  width: 100%;
  font-size: 13px;
  color: #333;
}

.search-input input::placeholder {
  color: #999;
}

.early-news {
  padding: 4px 10px;
  background: #fff7e6;
  border-radius: 14px;
  color: #f85959;
  font-size: 13px;
}

/* 主导航 */
.main-nav {
  position: sticky;
  top: 44px;
  z-index: 99;
  display: flex;
  padding: 10px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex-shrink: 0;
  padding: 0 14px;
  color: #505050;
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.main-nav a.active {
  color: #1a73e8;
  font-weight: 500;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -10px;
  height: 2px;
  background: #1a73e8;
  border-radius: 1.5px;
}

/* 新闻列表 */
.news-list {
  padding: 0;
  background: #f5f5f5;
  margin-bottom: 50px;
}

.news-item {
  padding: 15px 12px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.news-item h3 {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #222;
  flex: 1;
}

.meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #999;
  margin-top: auto;
}

.meta .source {
  color: #666;
}

.meta > span {
  position: relative;
  margin-right: 15px;
}

.meta > span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  width: 1px;
  height: 10px;
  background: #eee;
  transform: translateY(-50%);
}

/* 热点新闻 */
.news-item.hot {
  flex-direction: row;
  padding: 12px;
}

.hot-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 2px;
}

.news-item.hot img {
  width: 112px;
  height: 74px;
  border-radius: 3px;
  object-fit: cover;
  margin-right: 10px;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 74px;
}

.news-content h3 {
  margin-bottom: 4px;
  flex: 1;
}

.news-content .meta {
  margin-top: 0;
}

.news-content .views {
  color: #ff4d4f;
} 