/* ========================================
   新闻中心页面 - Figma node 1:1682
   ======================================== */

.news-section {
  padding: 48px 0 80px;
  background: var(--white);
}

.news-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 48px;
  padding-bottom: 0;
}

.news-tab {
  display: inline-block;
  padding: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  color: #4a5565;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.news-tab:hover {
  color: var(--primary);
}

.news-tab.active {
  font-weight: 600;
  color: var(--primary);
}

.news-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.news-card-text {
  flex: 1;
  min-width: 0;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: #101828;
  margin-bottom: 16px;
  line-height: 1.4;
}

.news-title a {
  color: inherit;
  text-decoration: none;
}

.news-title a:hover {
  color: var(--primary);
}

.news-excerpt {
  font-size: 14px;
  color: #4a5565;
  line-height: 1.625;
  margin-bottom: 16px;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-date {
  font-size: 14px;
  color: var(--primary);
}

.news-btn {
  display: inline-block;
  padding: 8px 24px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-btn:hover {
  opacity: 0.9;
}

.news-card-img {
  flex-shrink: 0;
  width: 380px;
  height: 237.5px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .news-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .news-card-img {
    width: 100%;
    height: 200px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .news-card-img {
    height: 180px;
  }

  .news-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
