/* ============================================================
   news.css — 新闻动态列表页专属样式（v3.0 首页完整签名风）
   完整套用首页 home63.css 卡片语言：155° 对角渐变 + 四角角标 + 双层阴影 + 标题辉光。
   依赖：base.css、layout.css、dark-base.css。
   ============================================================ */

/* ========== 分类筛选 ========== */
.news-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.news-tab {
  padding: 10px 28px; font-size: 14px; font-family: inherit;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(12, 161, 184, 0.06);
  border: 1px solid rgba(12, 161, 184, 0.2);
  border-radius: 24px; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}
.news-tab:hover { border-color: var(--lake); color: var(--lake-light); box-shadow: 0 0 14px rgba(12, 161, 184, 0.25); }
.news-tab.active {
  background: linear-gradient(135deg, var(--lake), var(--lake-dark));
  color: var(--white); border-color: transparent;
  box-shadow: 0 6px 18px rgba(12, 161, 184, 0.35);
}

/* ========== 新闻卡片 ========== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  position: relative;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(12, 161, 184, 0.18);
  background: linear-gradient(155deg, rgba(12, 161, 184, 0.07) 0%, rgba(10, 22, 40, 0.5) 60%, rgba(5, 13, 26, 0.55) 100%);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(93, 194, 210, 0.08);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* 四角角标 */
.news-card::before,
.news-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border-color: rgba(93, 194, 210, 0.5); border-style: solid;
  transition: border-color 0.4s var(--ease); z-index: 3;
}
.news-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.news-card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93, 194, 210, 0.45);
  box-shadow: 0 18px 44px rgba(12, 161, 184, 0.2), inset 0 2px 0 rgba(93, 194, 210, 0.32);
}
.news-card:hover::before,
.news-card:hover::after { border-color: var(--lake-light); }
.news-card:hover .news-cover-icon { transform: scale(1.1); }
.news-card:hover .news-more { color: var(--lake-light); gap: 8px; }
.news-cover { position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-cover-icon { width: 56px; height: 56px; color: rgba(255, 255, 255, 0.6); transition: transform 0.4s var(--ease); }
.news-cover-cat {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 12px; font-weight: 600; color: var(--white);
  background: rgba(5, 13, 26, 0.6); backdrop-filter: blur(8px);
  padding: 5px 14px; border-radius: 3px; letter-spacing: 1px;
}
.cover-company { background: linear-gradient(135deg, #0CA1B8, #087A8A); }
.cover-academic { background: linear-gradient(135deg, #0A1628, #0F1F38); }
.cover-case { background: linear-gradient(135deg, #5DC2D2, #0CA1B8); }
.news-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.news-cat {
  font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--lake-light); text-transform: uppercase;
}
.news-date { font-family: var(--font-en); font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.news-title {
  font-size: 17px; font-weight: 700; color: var(--white);
  line-height: 1.5; margin-bottom: 12px; transition: color 0.3s;
}
.news-card:hover .news-title { color: var(--lake-light); text-shadow: 0 0 10px rgba(93, 194, 210, 0.3); }
.news-excerpt {
  font-size: 13.5px; color: rgba(255, 255, 255, 0.62);
  line-height: 1.8; flex: 1; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-more {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.3s var(--ease);
}
.news-more::after { content: '→'; }

/* 空状态 */
.news-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: rgba(255, 255, 255, 0.4); font-size: 15px; display: none;
}

/* ========== 分页 ========== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  font-family: var(--font-en); font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(12, 161, 184, 0.06);
  border: 1px solid rgba(12, 161, 184, 0.2);
  border-radius: 8px; cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease);
}
.pagination a:hover { border-color: var(--lake); color: var(--lake-light); box-shadow: 0 0 12px rgba(12, 161, 184, 0.25); }
.pagination .active {
  background: linear-gradient(135deg, var(--lake), var(--lake-dark));
  color: var(--white); border-color: transparent;
}
.pagination .disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ========== RESPONSIVE (news) ========== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}
