/* ===== news.css ===== */
/* 行业动态列表 & 文章详情 共用样式 */

body.page-news { background: #f8f9fa; color: #1f2937; }

.page-news .news-cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.page-news .news-cat-tab {
  padding: 6px 14px; font-size: 14px; color: #43474f;
  border: 1px solid #e5e7eb; border-radius: 4px; background: #fff;
}
.page-news .news-cat-tab.active {
  background: rgba(0, 43, 92, 0.1); color: #002b5c; border-color: #002b5c; font-weight: 700;
}
.page-news .news-empty {
  padding: 64px 24px; text-align: center; color: #9ca3af; background: #fff; border-radius: 8px;
}
.page-news .news-pagination { text-align: center; margin-top: 32px; }
.page-news .article-cover { margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.page-news .article-cover img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.page-news .article-body { font-size: 16px; line-height: 1.8; color: #374151; word-break: break-word; }
.page-news .article-body img { max-width: 100%; height: auto; }
.page-news .article-body p { margin: 0 0 16px; }
.page-news .article-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5e7eb; }
.page-news .article-related-title { font-size: 22px; font-weight: 700; color: #001736; margin-bottom: 16px; }
.page-news .article-related-item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid #f3f4f6; color: inherit;
}
.page-news .article-related-item:hover .ari-title { color: #002b5c; }
.page-news .ari-title { flex: 1; font-size: 15px; font-weight: 500; }
.page-news .ari-date { font-size: 13px; color: #9ca3af; white-space: nowrap; }

/* ===== HEADER（白色款）===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-bg {
  width: 48px;
  height: 48px;
  background: #002b5c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon { width: 32px; height: 32px; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; }

.site-name { font-size: 18px; font-weight: 700; color: #002b5c; line-height: 1.3; }
.site-slogan { font-size: 11px; color: rgba(0,0,0,0.5); }

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-link:hover { color: #002b5c; }

.nav-link.active {
  color: #002b5c;
  border-bottom-color: #002b5c;
  font-weight: 700;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #002b5c;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-login:hover { background: #004080; }
.login-icon { width: 16px; height: 16px; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav.open { display: flex; }
.mobile-nav-link { padding: 12px 24px; color: #374151; text-decoration: none; font-size: 15px; border-bottom: 1px solid #f3f4f6; }

/* ===== 面包屑 ===== */
.news-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 32px;
}

.bc-link {
  color: #43474f;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.55px;
  transition: color 0.2s;
}

.bc-link:hover { color: #002b5c; }

.bc-arrow {
  width: 12px;
  height: 7px;
  object-fit: contain;
  opacity: 0.5;
}

.bc-current {
  color: #001736;
  font-weight: 500;
}

/* ===== 新闻列表页 ===== */
.news-main {
  padding: 32px 0 60px;
  min-height: calc(100vh - 240px);
}

.news-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

.news-page-title {
  font-size: 36px;
  font-weight: 700;
  color: #001736;
  letter-spacing: -0.9px;
  margin: 0 0 24px;
}

/* 文章列表 */
.news-list {
  border-top: 1px solid #c4c6d0;
}

.news-item {
  display: block;
  padding: 32px 16px;
  border-bottom: 1px solid #c4c6d0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.news-item:hover { background: #f8f9fa; }

.ni-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.ni-title {
  font-size: 20px;
  font-weight: 700;
  color: #001736;
  margin: 0;
  line-height: 1.5;
  transition: color 0.2s;
}

.news-item:hover .ni-title { color: #0047aa; }

.ni-date {
  font-size: 14px;
  font-weight: 500;
  color: #43474f;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: 8px;
}

.ni-excerpt {
  font-size: 14px;
  color: #43474f;
  line-height: 1.6;
  margin: 0;
}

/* 分页 */
.news-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 32px 16px 0;
}

.np-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
}

.np-btn:hover:not(:disabled) { border-color: #002b5c; color: #002b5c; }

.np-btn.active {
  background: #002b5c;
  border-color: #002b5c;
  color: #fff;
  font-weight: 700;
}

.np-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.np-ellipsis { font-size: 14px; color: #94a3b8; padding: 0 4px; }

/* ===== 文章详情页 ===== */
.article-main {
  padding: 32px 0 60px;
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-head {
  margin-bottom: 24px;
}

.article-title {
  font-size: 32px;
  font-weight: 700;
  color: #001736;
  line-height: 1.4;
  margin: 0 0 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.am-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #43474f;
}

.am-item img {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.am-sep { color: #c4c6d0; }

/* 文章主图 */
.article-hero-img {
  margin-bottom: 36px;
  border-radius: 8px;
  overflow: hidden;
}

.article-hero-img img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* 文章正文 */
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #374151;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #001736;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #fea619;
}

.article-body p {
  margin: 0 0 16px;
}

/* 上一篇 / 下一篇 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
}

.an-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.an-item:hover {
  border-color: #002b5c;
  background: #f0f4ff;
}

.an-prev { align-items: flex-start; }
.an-next { align-items: flex-end; text-align: right; }

.an-direction {
  font-size: 13px;
  color: #6b7280;
}

.an-title {
  font-size: 14px;
  font-weight: 600;
  color: #001736;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #002b5c;
  color: #fff;
  padding: 40px 0 0;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  /* border-bottom: 1px solid rgba(255,255,255,0.1); */
}

.footer-brand { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin: 0 0 16px; }

.footer-socials { display: flex; gap: 10px; }

.footer-social-link {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social-link:hover { background: rgba(255,255,255,0.25); }
.footer-social-link img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

.footer-col-title { font-size: 15px; font-weight: 600; margin: 0 0 16px; }

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.footer-link { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #fea619; }

.footer-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-contact-list li img { width: 14px; height: 14px; filter: brightness(0) invert(0.6); flex-shrink: 0; }

.footer-bottom { text-align: center; padding: 16px 0; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; margin-left: auto; }
}

@media (max-width: 768px) {
  .news-page-title { font-size: 26px; }
  .ni-title { font-size: 16px; }
  .ni-top { flex-direction: column; gap: 4px; }
  .ni-date { padding-left: 0; font-size: 12px; }
  .article-title { font-size: 22px; }
  .article-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .news-layout { flex-direction: column; }
  .news-sidebar { width: 100%; }
  .news-list-item { flex-direction: column; }
  .ni-thumb { width: 100%; height: 200px; }
}

@media (max-width: 480px) {
  .news-page-title { font-size: 22px; }
  .news-container { padding: 0 16px; }
  .ni-title { font-size: 15px; }
  .ni-excerpt { font-size: 13px; }
  .ni-thumb { height: 180px; }
  .article-title { font-size: 20px; }
  .article-content { font-size: 15px; line-height: 1.7; }
  .footer-container { padding: 24px 16px 0; }
  .footer-grid { gap: 20px; }
}
