/* 新闻资讯区域 - 左边上图下文，右边左文右图 */
.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-header {
  margin-bottom: 40px;
}

.news-header h2 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 30px;
}

.news-tabs {
  display: flex;
  gap: 0;
}

.news-tab {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  border-radius: 0;
}

.news-tab:first-child {
  border-radius: 8px 0 0 8px;
}

.news-tab:nth-child(2) {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.news-tab:last-child {
  border-radius: 0 8px 8px 0;
}

.news-tab.active {
  background: #3b82f6;
  color: white;
}

/* 新闻内容区域 */
.news-content {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.news-content:not(.active) {
  display: none;
}

.news-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* 左侧大新闻卡片 - 上图下文布局 */
.news-main-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s;
  height: 100%;
}

.news-main-card:hover {
  transform: translateY(-3px);
}

.news-main-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.news-main-content {
  padding: 24px;
}

.news-category {
  display: inline-block;
  background: #6b7280;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 16px;
}

.news-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.read-more {
  color: #60a5fa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.read-more:hover {
  color: #93c5fd;
}

/* 右侧新闻列表 - 左文右图布局，与左侧高度对齐 */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  justify-content: space-between;
}

.news-small-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: transform 0.3s;
  align-items: flex-start;
  flex: 1;
  min-height: 200px;
}

.news-small-card:hover {
  transform: translateY(-3px);
}

/* 左侧文字内容 */
.news-small-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.news-small-category {
  background: #6b7280;
  color: white;
  font-size: 12px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  max-width: 70px;          /* 最大宽度限制 */
  white-space: nowrap;       /* 不换行 */
}

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

.news-small-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.news-small-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: auto;
}

/* 右侧图片 - 增大尺寸 */
.news-small-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
/* 响应式设计 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .qr-code {
    display: none;
  }

  .news-content.active {
    grid-template-columns: 1fr;
  }

  .news-small-card {
    flex-direction: column;
    min-height: auto;
  }

  .news-small-image {
    width: 100%;
    height: 300px;
  }
