/* ===================================
   新闻资讯页面 - 共享样式
   继承主站设计语言
   =================================== */

:root {
  --primary: #0a3d7c;
  --primary-light: #1557a8;
  --primary-dark: #06285a;
  --accent: #e8a020;
  --accent-hover: #d4901a;
  --text-main: #1a1a2e;
  --text-sub: #555577;
  --text-light: #888;
  --bg-white: #ffffff;
  --bg-light: #f5f7fb;
  --bg-dark: #0d1b3e;
  --border: #e0e6f0;
  --shadow: 0 4px 24px rgba(10,61,124,0.10);
  --shadow-hover: 0 8px 40px rgba(10,61,124,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 32px; }

/* ---- Header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  height: var(--header-height);
  transition: background var(--transition);
}
.header-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 60px; width: auto; display: block; object-fit: contain; min-width: 200px; vertical-align: middle; }
.nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--text-main);
  padding: 8px 0; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-call {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 14px;
}
.btn-call svg { width: 18px; height: 18px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: 4px;
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-main); transition: all var(--transition); }

/* ---- Hero Banner ---- */
.news-hero {
  margin-top: var(--header-height);
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; text-align: center;
}
.news-hero .section-tag { color: var(--accent); }
.news-hero .section-title { color: #fff; }
.news-hero .section-subtitle { color: rgba(255,255,255,0.8); }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header.light .section-tag,
.section-header.light .section-title,
.section-header.light .section-subtitle { color: rgba(255,255,255,0.9); }
.section-header.light .section-tag { color: var(--accent); }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: 32px; font-weight: 700; color: var(--text-main);
  margin-bottom: 12px;
}
.section-subtitle { font-size: 16px; color: var(--text-sub); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 16px 0; font-size: 14px; color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ---- Filter / Tabs ---- */
.news-filter {
  display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px; border-radius: 4px; font-size: 14px; font-weight: 600;
  border: 2px solid var(--border); color: var(--text-sub);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- News List ---- */
.news-section { padding: 60px 0; }
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-card {
  display: flex; gap: 24px; padding: 24px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid transparent;
}
.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--border);
}
.news-card-img {
  width: 280px; min-height: 180px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-light);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { flex: 1; display: flex; flex-direction: column; }
.news-card-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
  font-size: 13px; color: var(--text-light);
}
.news-card-tag {
  display: inline-block; padding: 2px 10px; border-radius: 3px;
  font-size: 12px; font-weight: 600;
}
.tag-corporate { background: #e8f0fe; color: #1a73e8; }
.tag-industry { background: #e6f4ea; color: #137333; }
.tag-policy { background: #fef3e0; color: #e8a020; }
.news-card-source { color: var(--text-light); }
.news-card-title {
  font-size: 18px; font-weight: 700; color: var(--text-main);
  margin-bottom: 10px; line-height: 1.5;
  transition: color var(--transition);
}
.news-card-title:hover { color: var(--primary); }
.news-card-title-clickable { cursor: pointer; }
.news-card-title-clickable:hover { color: var(--primary); }
.news-card-summary {
  font-size: 14px; color: var(--text-sub); line-height: 1.7;
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.news-card-date { font-size: 13px; color: var(--text-light); }
.news-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-size: 14px; font-weight: 600;
  transition: color var(--transition);
}
.news-card-link:hover { color: var(--accent); gap: 8px; }
.news-card-source-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-light);
  background: var(--bg-light); padding: 2px 8px; border-radius: 3px;
}

/* ---- Empty State ---- */
.news-empty {
  text-align: center; padding: 80px 20px;
  color: var(--text-light);
}
.news-empty svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.3; }
.news-empty p { font-size: 16px; }

/* ---- Pagination ---- */
.news-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 48px;
}
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text-sub);
  border: 1px solid var(--border); transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---- Back to Top ---- */
.back-top {
  position: fixed; bottom: 100px; right: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all var(--transition);
  opacity: 0; pointer-events: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-2px); background: var(--primary-light); }
.back-top svg { width: 20px; height: 20px; }

/* ---- Floating Service ---- */
.float-service {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-item {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); position: relative;
  transition: all var(--transition);
}
.float-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.float-item svg { width: 24px; height: 24px; }
.float-tooltip {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
  background: var(--bg-dark); color: #fff; padding: 6px 14px;
  border-radius: 4px; font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.float-item:hover .float-tooltip { opacity: 1; }

/* ---- Footer ---- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); }
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo { display: flex; margin-bottom: 16px; }
.footer-logo .logo-img { height: 80px; filter: brightness(0) invert(1); }
.footer-slogan { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-links-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-links-col li { margin-bottom: 10px; }
.footer-links-col a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center; font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }
.footer-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 14px; font-weight: 600;
  margin-top: 20px;
}
.footer-back:hover { gap: 10px; }

/* ---- WeChat Modal ---- */
.wechat-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; }
.wechat-modal.show { display: flex; }
.wechat-modal-content { background: #fff; border-radius: 12px; padding: 32px; text-align: center; max-width: 320px; position: relative; }
.wechat-modal-content h3 { font-size: 18px; margin-bottom: 16px; color: #333; }
.wechat-modal-content img { width: 200px; height: 200px; object-fit: contain; margin-bottom: 12px; }
.wechat-modal-content p { font-size: 13px; color: #999; }
.wechat-close { position: absolute; top: 8px; right: 12px; font-size: 24px; cursor: pointer; color: #999; line-height: 1; }
.wechat-close:hover { color: #333; }

/* ---- Article Detail Modal ---- */
.article-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: flex-start; padding: 80px 20px 40px; overflow-y: auto; }
.article-modal.show { display: flex; }
.article-modal-content {
  background: #fff; border-radius: var(--radius); max-width: 800px; width: 100%;
  position: relative; animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-modal-header {
  padding: 32px 36px 0; position: relative;
}
.article-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-light); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-sub); transition: all var(--transition);
  cursor: pointer;
}
.article-modal-close:hover { background: var(--border); color: var(--text-main); }
.article-modal-tag { display: inline-block; padding: 3px 12px; border-radius: 3px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.article-modal-title { font-size: 26px; font-weight: 700; color: var(--text-main); line-height: 1.5; margin-bottom: 16px; }
.article-modal-meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-light); padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-modal-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: 0 0 var(--radius) var(--radius); margin-top: 20px; }
.article-modal-body { padding: 32px 36px 40px; font-size: 15px; line-height: 1.9; color: var(--text-main); }
.article-modal-body p { margin-bottom: 16px; }
.article-modal-body h2, .article-modal-body h3 { font-weight: 700; margin: 24px 0 12px; color: var(--text-main); }
.article-modal-body h2 { font-size: 20px; }
.article-modal-body h3 { font-size: 17px; }
.article-modal-body img { border-radius: var(--radius-sm); margin: 16px 0; }
.article-modal-body ul, .article-modal-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-modal-body li { margin-bottom: 8px; list-style: disc; }
.article-modal-body ol li { list-style: decimal; }
.article-modal-body blockquote {
  border-left: 4px solid var(--accent); padding: 12px 20px;
  background: var(--bg-light); margin: 16px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-sub);
}
.article-modal-body a { color: var(--primary); text-decoration: underline; }
.article-no-content { text-align: center; padding: 40px; color: var(--text-light); font-size: 15px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--header-height); left: 0; right: 0;
    background: #fff; padding: 16px 32px; box-shadow: var(--shadow);
    gap: 0;
  }
  .nav.open .nav-link { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header-actions .btn-call { display: none; }
  .news-card { flex-direction: column; }
  .news-card-img { width: 100%; min-height: 200px; }
  .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Loading ---- */
.news-loading {
  text-align: center; padding: 60px 20px;
}
.news-loading .spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  margin: 0 auto 16px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
