* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 414px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  /* background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); */
  background: linear-gradient(135deg, #165dff 0%, #0fc6c2 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(12, 12, 12, 0.2);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.5);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #ff6b35;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
}

.search-container {
  flex: 1;
  margin: 0 16px;
  position: relative;
}

.search-box {
  width: 100%;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 0 36px 0 16px;
  color: white;
  font-size: 14px;
  outline: none;
}

.search-box::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.header-icon:hover {
  opacity: 1;
}

/* Navigation Tabs */
.nav-container {
  background: white;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 52px;
  z-index: 99;
  overflow-x: auto;
}

.nav-tabs {
  display: flex;
  padding: 0 16px;
}

.nav-tab {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  color: #64748b;
  position: relative;
  white-space: nowrap;
}

.nav-tab.active {
  /* color: #dc2626; */
  color: #33aaff;
  font-weight: 600;
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #33aaff, #0fc6c2);
  border-radius: 2px;
}

/* Banner Carousel */
.banner-container {
  position: relative;
  height: 230px;
  overflow: hidden;
  margin: 16px 16px 0px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  position: relative;
  overflow: hidden;
}

.banner-slider img {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-slide {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  color: white;
  padding: 20px;
  position: absolute;
  left: 0;
  bottom: 0;
}
.banner-content {
  box-sizing: border-box;
  width: 85%;
}
.banner-content h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 14px;
  opacity: 0.9;
}

.banner-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: white;
  z-index: 99;
}
.banner-current {
  font-size: 20px;
  font-weight: bold;
}
.count {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.temp-title {
  font-size: 16px;
  color: #333333;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* News Section */
.news-section {
  padding: 16px;
}

/* News Card Type 1: Large Image */
.news-card-large {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-image-large {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  position: relative;
  overflow: hidden;
}

.news-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image-large::before {
  content: "📰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.3;
}

.news-content-large {
  padding: 16px;
}

.news-title-large {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-summary {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* News Card Type 2: Left Image */
.news-card-left {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
}

.news-card-left:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.news-image-left {
  width: 120px;
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  position: relative;
  flex-shrink: 0;
}

.news-image-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image-left::before {
  content: "📰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  opacity: 0.4;
}

.news-content-left {
  padding: 12px 16px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title-left {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Card Type 4: Title Top with Three Images */
.news-card-triple {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card-triple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.news-content-triple {
  padding: 16px;
}

.news-title-triple {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-images-triple {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.news-image-small {
  flex: 1;
  height: 80px;
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.news-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image-small::before {
  content: "📰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  opacity: 0.4;
}

/* Common Meta Styles */
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
}

.news-source {
  font-weight: 500;
  color: #666;
}

.news-tag {
  background: #f5f5f5;
  color: #33aaff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* Loading Animation */
.loading {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f4f6;
  border-top: 2px solid #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 375px) {
  .container {
    max-width: 100%;
  }

  .header {
    padding: 10px 12px;
  }

  .header.scrolled {
    background: rgba(0, 0, 0, 0.5);
  }

  .news-section {
    padding: 12px;
  }

  .banner-container {
    margin: 12px 12px 0px 12px;
  }

  .search-container {
    margin: 0 12px;
  }
}

/* 卡片容器 */
.content-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 16px;
}

/* 卡片头部 - 分类标题 */
.content-card-header {
  padding: 12px 15px;
  background: #33aaff;
  border-bottom: 1px solid #ccc;
}

.content-card-header h3 {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.content-card-header h3 i {
  margin-right: 8px;
  font-size: 0.9rem;
}

/* 新闻列表容器 */
.content-card-list {
  list-style: none;
}

/* 新闻条目 - 不同格式的新闻共用样式 */
.content-card-item {
  padding: 12px;
  border-bottom: 1px solid #e3e3e3;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.content-card-item:last-child {
  border-bottom: none;
}

.content-card-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
}

/* Content Card Type 1: no Image */
.content-card-no-img {
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
}

.content-content-no-img {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-title-no-img {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Common Meta Styles */
.content-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
}

.content-meta span:first-child {
  display: inline-block;
  max-width: 80%;
  margin-right: 10px;
}

.content-meta span:last-child {
  white-space: nowrap;
}

.content-source {
  font-weight: 500;
  color: #666;
}

.content-tag {
  background: #f5f5f5;
  color: #33aaff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* Content Card Type 2: Left Image */
.content-card-left {
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
}

.content-image-left {
  width: 120px;
  height: 90px;
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  position: relative;
  flex-shrink: 0;
}

.content-image-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-image-left::before {
  content: "📰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  opacity: 0.4;
}

.content-content-left {
  padding: 0 0 0 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-title-left {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Common Meta Styles */
.content-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
}

.content-meta span:first-child {
  white-space: pre-wrap;
}

.content-meta span:last-child {
  white-space: nowrap;
}

.content-source {
  font-weight: 500;
  color: #666;
}

.content-tag {
  background: #f5f5f5;
  color: #33aaff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* Content Card Type 3: big Image */
.content-card-big-img {
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.content-image-big-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
  position: relative;
  overflow: hidden;
}

.content-image-big-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-image-big-img::before {
  content: "📰";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.3;
}

.content-content-big-img {
  padding-top: 16px;
}

.content-title-big-img {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.content-summary {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* 查看更多按钮 */
.view-more {
  display: block;
  text-align: center;
  padding: 12px 15px;
  color: #0078d7;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-more:hover {
  background-color: #f0f7ff;
}

.view-more i {
  margin-left: 5px;
  font-size: 0.8rem;
}
