/* ============================================================
   公司新闻页面 — 关于我们同款风格
   深蓝渐变Hero + 卡片式布局 + eyebrow小标题 + 品牌蓝配色
   前缀: np- | 部署: /skin/css/news-portal.css
   ============================================================ */

/* ===== Variables ===== */
:root {
  --np-primary: #0f6ab4;
  --np-primary-dark: #0a4d80;
  --np-primary-light: #e8f4fc;
  --np-accent: #00c6ff;
  --np-text: #1a1a2e;
  --np-text-secondary: #555;
  --np-text-light: #888;
  --np-bg: #f7f9fc;
  --np-white: #fff;
  --np-border: #eef0f4;
  --np-shadow: 0 4px 24px rgba(15, 106, 180, 0.08);
  --np-shadow-hover: 0 12px 40px rgba(15, 106, 180, 0.15);
  --np-radius: 16px;
  --np-radius-sm: 10px;
  --np-transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset (scoped) ===== */
.np-page * { margin: 0; padding: 0; box-sizing: border-box; }
.np-page ul, .np-page ol { list-style: none; }
.np-page a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

/* 隐藏原站二级导航条（小房子+公司新闻下拉），保持新设计简洁 */
.nav_pc, .nav_phone { display: none !important; }

/* ===== Hero / Banner ===== */
#bann.np-bann {
  position: relative;
  min-height: 420px;
  height: auto !important;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0f6ab4 50%, #0a4d80 100%);
  color: #fff;
  padding: 120px 0 60px;
}
#bann.np-bann::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
#bann.np-bann::after {
  content: '';
  position: absolute; bottom: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,255,.15) 0%, transparent 70%);
}

/* Override original #bann .container flex centering */
#bann.np-bann .container {
  position: relative; z-index: 2;
  max-width: 1200px; width: 75%;
  height: auto; display: block; transform: none;
  flex-direction: initial; justify-content: initial; align-items: initial;
  margin: 0 auto;
}
@media screen and (max-width: 1024px) {
  #bann.np-bann .container { width: 92%; }
}

/* Breadcrumb (light on dark) */
.np-breadcrumb.np-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.55);
  margin-bottom: 28px; list-style: none; padding: 0;
  flex-wrap: wrap;
}
.np-breadcrumb li { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 10px; }
.np-breadcrumb li a { color: rgba(255,255,255,.7); transition: color .3s; }
.np-breadcrumb li a:hover { color: #fff; }
.np-breadcrumb li:not(:last-child)::after { content: '/'; color: rgba(255,255,255,.3); }
.np-breadcrumb li:last-child { color: rgba(255,255,255,.9); }

/* Hero tag */
.np-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px; font-size: 13px; color: rgba(255,255,255,.8);
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.np-hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--np-accent); box-shadow: 0 0 8px var(--np-accent);
}

/* Hero title */
#bann.np-bann h1.np-bann-title {
  font-size: 42px; font-weight: 700; line-height: 1.3;
  margin-bottom: 20px; letter-spacing: 1px; color: #fff;
}
#bann.np-bann h1.np-bann-title span { color: var(--np-accent); }

/* Hero description */
.np-bann-subtitle {
  font-size: 18px; line-height: 1.8;
  color: rgba(255,255,255,.75); max-width: 640px; margin-bottom: 32px;
}

/* Hero meta stats */
.np-hero-meta { display: flex; flex-wrap: wrap; gap: 32px; }
.np-hero-meta-item { display: flex; align-items: center; gap: 10px; }
.np-hero-meta-item .num { font-size: 32px; font-weight: 700; color: var(--np-accent); }
.np-hero-meta-item .label { font-size: 14px; color: rgba(255,255,255,.6); }

/* Breadcrumb ol reset (outside .np-page scope) */
.np-breadcrumb ol {
  display: flex; align-items: center; gap: 10px;
  list-style: none; padding: 0; margin: 0; flex-wrap: wrap;
}

/* ===== Page wrapper ===== */
.np-page {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px; color: var(--np-text); line-height: 1.6;
  background: var(--np-white); -webkit-font-smoothing: antialiased;
}

/* ===== Section ===== */
.np-section { padding: 80px 0; }
.np-section-header { text-align: center; margin-bottom: 50px; }
.np-section-header .np-eyebrow {
  display: inline-block; font-size: 14px; color: var(--np-primary);
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.np-section-header h2 { font-size: 32px; font-weight: 700; color: var(--np-text); margin-bottom: 16px; }
.np-section-header p { font-size: 16px; color: var(--np-text-secondary); max-width: 640px; margin: 0 auto; }

/* ===== Filters ===== */
.np-filters {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.np-filter {
  font-size: 14px; padding: 8px 20px; border-radius: 30px;
  background: var(--np-white); border: 1px solid var(--np-border);
  color: var(--np-text-secondary); cursor: pointer;
  transition: var(--np-transition); user-select: none;
}
.np-filter:hover { border-color: var(--np-primary); color: var(--np-primary); }
.np-filter.active {
  background: var(--np-primary); border-color: var(--np-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(15, 106, 180, 0.25);
}

/* ===== News Grid ===== */
.np-news-section { background: var(--np-white); }
.np-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

/* News card — matches about-us business card style */
.np-news-card {
  display: flex; flex-direction: column;
  background: var(--np-white); border-radius: var(--np-radius);
  overflow: hidden; border: 1px solid transparent;
  box-shadow: var(--np-shadow);
  transition: var(--np-transition); position: relative;
}
.np-news-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--np-primary), var(--np-accent));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
  z-index: 3;
}
.np-news-card:hover {
  transform: translateY(-6px); box-shadow: var(--np-shadow-hover);
  border-color: var(--np-primary);
}
.np-news-card:hover::before { transform: scaleX(1); }

/* Card cover */
.np-news-card .np-card-cover {
  width: 100%; height: 220px; overflow: hidden;
  background: var(--np-bg); position: relative;
}
.np-news-card .np-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.np-news-card:hover .np-card-cover img { transform: scale(1.05); }

/* Card tag on cover */
.np-news-card .np-card-cover .np-card-tag {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  color: #fff; background: rgba(15, 106, 180, 0.9);
  padding: 4px 12px; border-radius: 20px;
  backdrop-filter: blur(4px); z-index: 2;
}

/* Placeholder cover */
.np-news-card .np-card-cover.np-cover-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--np-primary-light) 0%, #d1e9f9 100%);
}
.np-news-card .np-cover-placeholder svg {
  color: var(--np-primary); opacity: 0.3;
}

/* Card body */
.np-news-card .np-card-body {
  padding: 28px 24px; flex: 1; display: flex; flex-direction: column;
}
.np-news-card h4 {
  font-size: 18px; font-weight: 700; color: var(--np-text);
  line-height: 1.45; margin-bottom: 10px;
  transition: color var(--np-transition);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.np-news-card:hover h4 { color: var(--np-primary); }
.np-news-card .np-card-desc {
  font-size: 14px; color: var(--np-text-secondary); line-height: 1.7;
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.np-news-card .np-card-foot {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--np-text-light);
}
.np-news-card .np-card-foot .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--np-text-light);
}
.np-news-card .np-card-foot .np-read-more {
  margin-left: auto; font-weight: 600; color: var(--np-primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--np-transition);
}
.np-news-card:hover .np-card-foot .np-read-more { gap: 8px; }

/* ===== Pagination ===== */
.np-pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 56px; padding: 0 20px;
}
.np-pagination a, .np-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--np-border); border-radius: var(--np-radius-sm);
  font-size: 14px; color: var(--np-text-secondary); background: var(--np-white);
  transition: var(--np-transition);
}
.np-pagination a:hover {
  border-color: var(--np-primary); color: var(--np-primary);
  box-shadow: 0 2px 8px rgba(15, 106, 180, 0.1);
}
.np-pagination .page-num-current {
  background: var(--np-primary); border-color: var(--np-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(15, 106, 180, 0.25);
}

/* News section container centering */
.np-news-section .container { margin: 0 auto; }

/* ===== CTA Section ===== */
.np-cta {
  background: linear-gradient(135deg, #0a1628 0%, #0f6ab4 100%);
  padding: 64px 0; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.np-cta::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.np-cta .container { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.np-cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; color: #fff; text-wrap: balance; word-break: keep-all; }
.np-cta p { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 32px; }
.np-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 30px;
  font-size: 15px; font-weight: 600;
  background: var(--np-accent); color: #fff;
  transition: var(--np-transition);
}
.np-cta-btn:hover {
  background: #fff; color: var(--np-primary); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 198, 255, 0.3);
}

/* ===== Animation ===== */
@keyframes npFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.np-animate { opacity: 0; }
.np-animate.np-in { animation: npFadeUp .6s ease forwards; }

/* ===== Category tag colors ===== */
.np-news-card[data-category="company"] .np-card-tag { background: rgba(16, 185, 129, 0.92); }
.np-news-card[data-category="product"] .np-card-tag { background: rgba(15, 106, 180, 0.92); }
.np-news-card[data-category="industry"] .np-card-tag { background: rgba(232, 89, 19, 0.92); }

/* Empty tip when a filter has no result */
.np-empty-tip {
  grid-column: 1 / -1;
  text-align: center; padding: 48px 20px;
  color: var(--np-text-secondary); font-size: 15px;
  background: var(--np-bg); border-radius: var(--np-radius);
}

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

@media screen and (max-width: 768px) {
  .np-section { padding: 50px 0; }
  .np-section-header h2 { font-size: 24px; }
  .np-section-header p { font-size: 14px; }
  #bann.np-bann { min-height: auto; height: auto !important; padding: 130px 0 56px; }
  #bann.np-bann h1.np-bann-title { font-size: 28px; }
  .np-bann-subtitle { font-size: 15px; }
  .np-hero-meta { gap: 20px; margin-top: 4px; }
  .np-hero-meta-item { gap: 6px; }
  .np-hero-meta-item .num { font-size: 24px; }
  .np-hero-meta-item .label { font-size: 13px; }
  .np-hero-tag { margin-top: 6px; font-size: 12px; padding: 5px 12px; }
  .np-breadcrumb { margin-bottom: 20px; }
  .np-news-grid { grid-template-columns: 1fr; gap: 20px; }
  .np-news-card .np-card-cover { height: 180px; }
  .np-cta { padding: 48px 0; }
  .np-cta h2 { font-size: 22px; text-wrap: balance; word-break: keep-all; }
  .np-cta p { font-size: 14px; }
}

@media screen and (max-width: 480px) {
  #bann.np-bann { padding: 120px 0 44px; }
  #bann.np-bann h1.np-bann-title { font-size: 24px; }
  .np-hero-meta { gap: 16px; }
  .np-hero-meta-item .num { font-size: 20px; }
  .np-hero-tag { font-size: 11px; padding: 4px 10px; gap: 5px; }
  .np-hero-tag::before { width: 5px; height: 5px; }
  .np-breadcrumb { font-size: 13px; gap: 6px; margin-bottom: 18px; }
  .np-breadcrumb ol { gap: 6px; }
  .np-news-card .np-card-body { padding: 20px; }
  .np-news-card h4 { font-size: 16px; }
  .np-news-card .np-card-cover { height: 160px; }
  .np-pagination a, .np-pagination span { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
}
