/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
}

/* 顶部状态栏 */
.status-bar {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

/* 搜索栏 */
.search-bar {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  background: #fff;
}

.search-input {
  flex: 1;
  margin: 0 12px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 16px;
  display: flex;
  align-items: center;
}

.search-input input {
  border: none;
  background: none;
  margin-left: 8px;
  font-size: 14px;
  width: 100%;
}

.early-news {
  color: #f85959;
  font-size: 14px;
}

/* 导航菜单 */
.main-nav,
.sub-nav {
  padding: 12px 0;
  display: flex;
  overflow-x: auto;
  background: #fff;
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.main-nav::-webkit-scrollbar,
.sub-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.main-nav a,
.sub-nav a {
  padding: 0 16px;
  font-size: 15px;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a.active,
.sub-nav a.active {
  color: #1a73e8;
  font-weight: 500;
}

/* 功能卡片区域 */
.feature-cards {
  padding: 12px 16px;
  display: flex;
  overflow-x: auto;
  background: #fff;
  /* 隐藏滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feature-cards::-webkit-scrollbar {
  display: none;
}

.card {
  min-width: 100px;
  padding: 10px;
  margin-right: 12px;
  border-radius: 8px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
}

.card:last-child {
  margin-right: 0;
}

.card i {
  font-size: 18px;
  color: #1a73e8;
  margin-right: 6px;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card span {
  font-size: 14px;
  color: #333;
  margin-bottom: 1px;
}

.card small {
  font-size: 11px;
  color: #999;
}

/* 新闻列表 */
.news-list {
  margin-top: 8px;
}

.news-item {
  padding: 16px;
  display: flex;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.news-item img {
  width: 120px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

.news-info {
  flex: 1;
  margin-left: 12px;
}

.news-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.meta {
  color: #999;
  font-size: 12px;
}

.meta span {
  margin-right: 12px;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  text-decoration: none;
  font-size: 12px;
}

.bottom-nav a.active {
  color: #1a73e8;
}

.bottom-nav i {
  font-size: 20px;
  margin-bottom: 4px;
}

/* 轮播图 */
.swiper-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px;
  padding: 0;
  background: #fff;
  margin-top: 8px;
}

.swiper-slide {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.swiper-pagination {
  bottom: 12px !important;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.8) !important;
  opacity: 0.6;
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff !important;
}

/* 新闻列表样式补充 */
.news-images {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  padding-right: 16px;
}

.news-images img {
  width: calc((100% - 16px) / 3);
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

/* 当新闻只有文字和多图时的样式 */
.news-item:has(.news-images) {
  display: block;
}

/* 顶部导航样式调整 */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
/* 调整作者卡片样式 */
.author-item {
  padding: 12px 16px;
}

.avatar {
  width: 44px;
  height: 44px;
}

.author-name {
  font-size: 15px;
  font-weight: 500;
}

.verified {
  color: #ffc107;  /* 改为金色认证图标 */
}

.author-desc {
  font-size: 13px;
  color: #999;
  margin: 2px 0;
}

.author-fans {
  font-size: 12px;
  color: #999;
}

.follow-btn {
  padding: 6px 14px;
  font-size: 13px;
  background: #e8f1ff;
  color: #1a73e8;
}

/* 更多领域作者的描述文字可以多行显示 */
.author-item:has(.author-meta) .author-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0;
} 