/* ===========================
   新闻资讯页面专用样式
   views/pressInquiries.ejs
   =========================== */

/* 分类筛选栏 */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 80px;
  z-index: 90;
}
.filter-bar .container {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.filter-tabs {
  display: flex;
  gap: 0;
}
.filter-tab {
  display: inline-block;
  padding: 14px 24px;
  font-size: 15px;
  color: #444;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab:hover {
  color: var(--primary, #FF6B00);
  background: #FFF8F0;
}
.filter-tab.active {
  color: var(--primary, #FF6B00);
  border-bottom-color: var(--primary, #FF6B00);
  font-weight: 700;
}

/* 新闻列表区 */
.news-list-section {
  padding: 60px 0 80px;
  background: #f5f7fa;
  min-height: 60vh;
}
.news-list-section .container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.news-main {
  flex: 1;
  min-width: 0;
}
.news-list-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 普通文章列表（横排左图右文） */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 文章列表项 - 横排布局（左图右文） */
.news-card {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
  transition: box-shadow 0.2s;
  border: 1px solid #eee;
}
.news-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.news-card .news-thumb {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card .news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.news-card .news-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}
.news-card .news-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-card .news-title a {
  color: #1a1a1a;
  text-decoration: none;
}
.news-card .news-title a:hover {
  color: var(--primary, #FF6B00);
}
.news-card .news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.news-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #FFF8F0;
  color: var(--primary, #FF6B00);
  font-size: 12px;
  border-radius: 20px;
  text-decoration: none;
}
.news-tag:hover {
  background: var(--primary, #FF6B00);
  color: #fff;
}

/* 分页控件 */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
}
.page-btn:hover:not(.disabled) {
  border-color: var(--primary, #FF6B00);
  color: var(--primary, #FF6B00);
}
.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: all 0.2s;
}
.page-num:hover:not(.active) {
  background: #f5f5f5;
}
.page-num.active {
  background: var(--primary, #FF6B00);
  color: #fff;
  font-weight: 700;
}
.page-ellipsis {
  width: 40px;
  text-align: center;
  color: #999;
}

/* 空状态 */
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 16px;
}

/* 侧边栏 */
.news-sidebar {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-block {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}
.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary, #FF6B00);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-link {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}
.sidebar-link:hover {
  color: var(--primary, #FF6B00);
}
.sidebar-date {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.sidebar-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 响应式 */
@media (max-width: 900px) {
  .news-list-section .container {
    flex-direction: column;
  }
  .news-sidebar {
    width: 100%;
  }
  .news-card {
    flex-direction: column;
  }
  .news-card .news-thumb {
    width: 100% !important;
    height: 200px !important;
  }
}
