/* Scoped industry-news module styles mapped to site variables */
#news .news-thumb img[data-full] {
  cursor: zoom-in;
}

.news-module-group {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-module {
  background: var(--bg-section);
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.news-module a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  gap: 12px;
  width: 100%;
}

.news-num {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 18px;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.news-tag {
  background: var(--accent-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.news-date {
  color: var(--text-muted);
}

.news-title {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-desc {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-arrow {
  width: 24px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .news-module a {
    padding: 10px;
  }

  .news-num {
    width: 40px;
    height: 40px;
  }
}

/* News card layout - image on left, content on right */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card.news-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pinned-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.card.news-item {
  position: relative;
}

.news-thumb {
  width: 200px;
  min-height: 140px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-thumb img,
.news-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-content {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content .meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.news-content .tag {
  background: var(--accent-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.news-content .tag.tag-industry {
  background: var(--primary);
  color: #fff;
}

.news-content .meta span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

.news-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-content .read-more {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.news-content .read-more:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .news-thumb {
    width: 140px;
    min-height: 120px;
  }

  .news-content {
    padding: 16px;
  }

  .news-content h3 {
    font-size: 14px;
  }
}

@media (max-width: 540px) {
  .card.news-item {
    flex-direction: column;
  }

  .news-thumb {
    width: 100%;
    min-height: 160px;
  }

  .news-content .meta {
    gap: 8px;
  }

  .news-content h3 {
    font-size: 15px;
    line-height: 1.5;
  }

  .news-content p {
    font-size: 13px;
  }
}
