/* ============================================================
   1. 全局重置 & 变量
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0B5ADB;
  --primary-hover: #0947b3;
  --primary-light: #e8edfb;
  --accent: #1676f1;
  --accent-light: #3b82f6;
  --bg: #f0f4fa;
  --text: #0a133d;
  --text-muted: #5a657a;
  --border: #e5eff3;
  --white: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --radius: 0.75rem;
  --nav-height: 72px;
}

body {
    font-family: Hiragino Sans GB,Microsoft Yahei UI,Microsoft Yahei,\5FAE\8F6F\96C5\9ED1,Segoe UI,Tahoma,"\5B8B\4F53",SimSun,'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #F6F7FB;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  padding-top: var(--nav-height);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; margin-top: 36px; }

/* ============================================================
   2. 导航栏（与首页一致）
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  background-color: #ffffff;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(7, 1, 88, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.logo img { height: 2.375rem; width: auto; border-radius: 0.5rem; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: 0.2s;
}
.nav-links a:hover { background: rgba(15, 42, 118, 0.08); color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.phone-link { font-size: 0.9rem; color: var(--text-muted); }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: 1.5px solid var(--primary);
  transition: 0.2s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: white;
}
.mobile-menu a {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 1.215rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ===== 移动端菜单增强 ===== */
#navbar.menu-open {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mobile-overlay-dynamic {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mobile-overlay-dynamic.active {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open { overflow: hidden; }

/* ============================================================
   3. 新闻板块
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 1.6rem;
}
.section-title .badge {
  display: inline-block;
  background: rgb(236, 240, 248);
  color: var(--primary);
  padding: 0.2rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.news-filters button {
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
}
.news-filters button:hover { background: #e2e8f0; color: #0f172a; }
.news-filters button.active { background: var(--primary); color: white; }

.news-grid {
  column-count: 4;
  column-gap: 1.5rem;
  margin-bottom: 1rem;
}

.news-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}
.news-card .content { padding: 1rem 1.2rem 1.2rem; }
.news-card .category {
  display: inline-block;
  background: rgba(55, 96, 231, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.7rem;
  border-radius: 0.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}
.news-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.4;
  color: #0f172a;
}
.news-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.news-card .tags span {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 0.1rem 0.6rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.news-card .date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
}

/* ============================================================
   4. 页脚（与首页一致）
   ============================================================ */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand .logo {
  display: inline-flex;
  color: white;
  font-size: 1.3rem;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.footer-brand .logo img { height: 2.4rem; width: auto; border-radius: 0.5rem; }
.footer-brand p { font-size: 0.9rem; max-width: 350px; }
.footer-contact p { margin: 0.3rem 0; font-size: 0.85rem; }
.footer-qr {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-qr img {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  border: 3px solid rgb(255, 255, 255);
}
.footer-qr div p { font-size: 0.8rem; margin: 0; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: right;
}
.footer-links h4 { color: white; font-size: 1rem; margin-bottom: 1rem; }
.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom a { margin-left: 1.5rem; transition: 0.2s; }
.footer-bottom a:hover { color: white; }

/* ============================================================
   5. 响应式
   ============================================================ */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions .phone-link,
  .nav-actions .btn-primary { display: none; }
  .menu-toggle { display: block; }
  .news-grid { column-count: 2; }
  .section-title h2 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .news-grid { column-count: 1; }
  .container { padding: 0 1rem; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
  .footer-bottom a { margin: 0 0.75rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .news-grid { column-count: 3; }
}
/* ============================================================
   6. 新闻列表头部（全宽白色背景，无阴影圆角）
   ============================================================ */
.news-header-wrapper {
  background: #ffffff;
  width: 100%;
  padding: 0.8rem 0 2.5rem;
  /* 无阴影、无圆角、无边框 */
}

.news-header-wrapper .section-title {
  margin-bottom: 1.2rem;
}

.news-header-wrapper .section-title .badge {
  background: var(--primary-light);
  color: var(--primary);
}

.news-header-wrapper .section-title h2 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.news-header-wrapper .section-title p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.news-header-wrapper .news-filters {
  margin-bottom: 0;
  padding-top: 0.5rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .news-header-wrapper {
    padding: 1.8rem 0 1.2rem;
  }
  .news-header-wrapper .section-title h2 {
    font-size: 1.4rem;
  }
  .news-header-wrapper .section-title p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .news-header-wrapper {
    padding: 1.2rem 0 1rem;
  }
  .news-header-wrapper .section-title h2 {
    font-size: 1.2rem;
  }
}