/* 主体内容区 */
.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 40px 0;
}

/* 类型页签 */
.news-tabs {
  display: inline-block;
}

/* 资讯列表：封面为可选项，无图时正文自动占满 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.news-item.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px;
  align-items: center;
}

.news-item:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #e5e7eb;
}

.news-content {
  min-width: 0;
  height: 100%;
}

.news-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 500;
}

.tag-industry {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.tag-update {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

.tag-tutorial {
  background: #faf5ff;
  color: #9333ea;
  border: 1px solid #f3e8ff;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 10px;
  color: #111;
}

.news-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #999;
}

.news-meta span+span::before {
  content: '·';
  margin-right: 10px;
  color: #ccc;
}

.news-cover {
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f6;
}

.news-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-item:hover .news-cover img {
  transform: scale(1.03);
}

/* ================= 响应式适配 ================= */
@media (max-width: 1400px) {
  .container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  .news-item {
    padding: 18px;
  }

  .news-item.has-image {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .news-item {
    padding: 16px;
  }

  .news-item.has-image {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-cover {
    order: -1;
  }

  .news-cover img {
    aspect-ratio: 16 / 9;
  }

  .news-title {
    font-size: 17px;
  }
}