/**
 * 仲谋评估官网 — 增强样式表
 * 主色: #0B2467 辅助色: #E5B973
 * 涵盖: 响应式/卡片/灯箱/浮窗/移动导航/Leaflet/Footer多栏
 */

/* ═══ 响应式基础 ═══ */
@media (max-width: 768px) {
  .wrapper { width: 100%; padding: 0 15px; }
  .header-main .wrapper { flex-direction: column; text-align: center; }
  .header-contact { margin-top: 8px; }
  .nav-bar ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-bar ul li { flex-shrink: 0; }
  .nav-bar ul li a { padding: 12px 10px; font-size: 13px; white-space: nowrap; }
  .footer .container { flex-direction: column; }
  .footer .col { margin-bottom: 20px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .index-body-top-wrapper { flex-direction: column; }
  .news-wrapper { width: 100%; }
  .module-grid { width: 100%; margin-top: 20px; }
  .banner-content h2 { font-size: 20px; }
  .banner-content p { font-size: 13px; }
}

@media (max-width: 480px) {
  .module-grid { grid-template-columns: 1fr; }
  .logo-area { flex-direction: column; }
  .logo-text h1 { font-size: 16px; }
  .page-banner h2 { font-size: 22px; }
}

/* ═══ 导航高亮 ═══ */
.nav-bar ul li a.active,
.nav-bar ul li a:hover { background: #0B2467; color: #E5B973; }

/* ═══ 页面通用Banner ═══ */
.page-banner {
  height: 240px; background: linear-gradient(135deg, #0B2467 0%, #1a3a6b 60%, #E5B973 100%);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.page-banner h2 { font-size: 32px; font-weight: bold; margin: 0; }
.page-banner p { font-size: 14px; opacity: 0.8; margin-top: 8px; }

/* ═══ 卡片hover上浮 ═══ */
.hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.hover-card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* ═══ 服务卡片网格 ═══ */
.service-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding: 30px 0; }
.service-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(11,36,103,0.15); }
.service-card .card-img { height: 160px; background: linear-gradient(135deg, #0B2467, #1a3a6b); display: flex; align-items: center; justify-content: center; font-size: 48px; color: #E5B973; }
.service-card .card-body { padding: 20px; }
.service-card .card-body h4 { color: #0B2467; margin-bottom: 10px; }
.service-card .card-body p { color: #666; font-size: 13px; line-height: 1.8; }

/* ═══ 资质证书图集 ═══ */
.cert-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cert-item { border: 1px solid #eee; border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.3s; }
.cert-item:hover { border-color: #E5B973; transform: scale(1.03); }
.cert-item img { width: 100%; height: 260px; object-fit: contain; background: #f8f9fa; }

/* ═══ 证书灯箱 ═══ */
.lightbox-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); z-index: 9999; justify-content: center; align-items: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 90%; border: 4px solid #fff; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px; cursor: pointer; z-index: 10000; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 48px; cursor: pointer; padding: 20px; user-select: none; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }

/* ═══ 浮动留言弹窗 ═══ */
.float-message-btn {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  background: #0B2467; color: #E5B973; padding: 12px 8px; border-radius: 4px 0 0 4px;
  cursor: pointer; z-index: 999; writing-mode: vertical-lr; font-size: 14px; letter-spacing: 4px;
}
.float-message-btn:hover { background: #E5B973; color: #0B2467; }
.message-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 9998; justify-content: center; align-items: center;
}
.message-modal.active { display: flex; }
.message-box { background: #fff; border-radius: 8px; padding: 30px; width: 90%; max-width: 500px; }
.message-box h3 { color: #0B2467; margin-bottom: 20px; text-align: center; }
.message-box input, .message-box textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 4px; }
.message-box textarea { height: 100px; resize: vertical; }
.message-box button { width: 100%; padding: 12px; background: #0B2467; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }
.message-box button:hover { background: #1a3a6b; }

/* ═══ Leaflet地图容器 ═══ */
#leaflet-map { height: 400px; border-radius: 8px; margin-top: 20px; }

/* ═══ 移动端横向滚动导航 ═══ */
.mobile-nav-scroll { display: none; }
@media (max-width: 768px) {
  .mobile-nav-scroll {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    background: #0B2467; padding: 8px 0; gap: 0;
  }
  .mobile-nav-scroll a { flex-shrink: 0; color: #fff; padding: 8px 14px; font-size: 13px; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.2); }
  .mobile-nav-scroll a.active, .mobile-nav-scroll a:hover { background: #E5B973; color: #0B2467; }
}

/* ═══ 新闻列表hover变色 ═══ */
.news-list li { padding: 12px 0; border-bottom: 1px dashed #eee; transition: background 0.2s; }
.news-list li:hover { background: #f0f4fa; }
.news-list li a { color: #333; }
.news-list li a:hover { color: #0B2467; }

/* ═══ Footer多栏 ═══ */
.footer { background: #0B2467; color: rgba(255,255,255,0.7); padding: 40px 0 0; }
.footer .container { display: flex; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; flex-wrap: wrap; }
.footer h4 { color: #E5B973; font-size: 16px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer a:hover { color: #E5B973; }
.footer .copyright { text-align: center; padding: 20px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; }
img{max-width:100%;height:auto}
img{max-width:100%;max-height:600px;height:auto;width:auto;display:block;object-fit:contain}
