/* news.css - Extracted from inline styles - fixed */
:root {
  --red: #E60012; --red-hover: #CC0010; --red-light: rgba(230,0,18,0.08);
  --blue: #003366; --blue-light: #0066cc;
  --nav-bg: #0a1628; --body-bg: #ffffff; --section-bg: #f5f7fa;
  --text-dark: #333333; --text-body: #555555; --text-muted: #888888;
  --border-light: #e5e7eb;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --header-h: 120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--body-bg); color: var(--text-dark); font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #f0f0f0; } ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* BANNER */
.page-banner {
  position: relative;
  height: 40vh;
  min-height: 320px;
  overflow: hidden;
  background: linear-gradient(rgba(10,22,40,0.6), rgba(0,51,102,0.6)), url('../images/banner-news.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(10,22,40,0.35); }
.page-banner::after { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="60" cy="70" r="1.5" fill="rgba(255,255,255,0.02)"/></svg>') repeat; opacity: 0.5; z-index: 1; }
.banner-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 24px; }
.banner-content .breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.banner-content .breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.banner-content .breadcrumb a:hover { color: #fff; }
.banner-content h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 900; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.banner-content p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* CATEGORY TABS */
.tabs-section { background: #fff; border-bottom: 1px solid var(--border-light); position: sticky; top: 120px; z-index: 100; }
.tabs-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 0; overflow-x: auto; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tab-btn { padding: 20px 24px; font-size: 14px; font-weight: 500; color: var(--text-muted); background: none; border: none; cursor: pointer; white-space: nowrap; position: relative; transition: color .2s; }
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--red); font-weight: 600; }
.tab-btn.active::after { content: ''; position: absolute; bottom: 0; left: 24px; right: 24px; height: 3px; background: var(--red); border-radius: 3px 3px 0 0; }

/* ARTICLE GRID */
.articles-section { padding: 60px 32px; background: var(--section-bg); }
.articles-inner { max-width: 1440px; margin: 0 auto; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); transition: all 0.3s; text-decoration: none; color: inherit; display: block; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.article-card-img { position: relative; width: 100%; height: 220px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-img .tag-overlay { position: absolute; top: 16px; left: 16px; padding: 4px 12px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; border-radius: 4px; letter-spacing: 0.03em; }
.article-card-body { padding: 24px; }
.article-card-body h3 { font-size: 18px; font-weight: 700; color: var(--blue); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.article-card:hover h3 { color: var(--red); }
.article-card-body .summary { font-size: 14px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.article-card-meta .date { display: flex; align-items: center; gap: 4px; }
.article-card-meta .cat-tag { padding: 3px 10px; background: var(--section-bg); border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--blue); }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-body);
  background: #fff; border: 1px solid var(--border-light); cursor: pointer;
  transition: all .2s; text-decoration: none; padding: 0 12px;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination span.current,
.pagination a.current,
.pagination .active { background: var(--red); color: #fff; border-color: var(--red); }
.pagination span.disabled,
.pagination a.disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .articles-section { padding: 40px 16px; }
}
@media (max-width: 640px) {
  .tabs-inner { padding: 0 16px; }
  .tab-btn { padding: 16px 16px; font-size: 13px; }
}
