/* 文件：css/news-list.css */

/* ========== Banner ========== */
.news-banner {
  background: linear-gradient(135deg, #0A3D24 0%, #07C160 100%);
}

/* ========== 分类 Tab ========== */
.news-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}
.tab-group {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-group::-webkit-scrollbar { display: none; }
.tab-item {
  padding: 16px 28px;
  font-size: 15px;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}
.tab-item:hover {
  color: var(--primary);
}
.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ========== 新闻列表 ========== */
.news-list-section {
  padding: 48px 0 80px;
  min-height: 400px;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* 新闻卡片 */
.news-card {
  display: flex;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.news-card-thumb {
  width: 200px;
  min-width: 200px;
  height: 140px;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-thumb .thumb-placeholder {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}
.news-card-thumb .thumb-placeholder svg {
  width: 100%;
  height: 100%;
}

.news-card-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-title:hover {
  color: var(--primary);
}

.news-card-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.news-card-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  align-self: flex-start;
  transition: color 0.3s;
}
.news-card-link:hover {
  color: var(--primary-dark);
}
.news-card-link::after {
  content: ' →';
  transition: margin 0.3s;
}
.news-card-link:hover::after {
  margin-left: 4px;
}

/* 分类标签 */
.news-card-category {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 500;
}
.cat-brand { background: rgba(7,193,96,0.1); color: #07C160; }
.cat-industry { background: rgba(26,173,143,0.1); color: #1AAD8F; }
.cat-case { background: rgba(255,107,0,0.1); color: #FF6B00; }

/* 加载更多 */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}
.btn-load-more {
  padding: 12px 48px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-load-more:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 空状态 */
.news-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-light);
  font-size: 16px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .news-list {
    max-width: 100%;
  }
  .news-card {
    flex-direction: column;
  }
  .news-card-thumb {
    width: 100%;
    min-width: 100%;
    height: 180px;
  }
  .news-card-body {
    padding: 16px;
  }
  .news-card-title {
    font-size: 16px;
  }
  .tab-item {
    padding: 14px 20px;
    font-size: 14px;
  }
  .news-list-section {
    padding: 32px 0 60px;
  }
}

@media (max-width: 480px) {
  .news-card-thumb {
    height: 160px;
  }
}
