/* ============================================================
   凯立德官网 - 全局样式
   Site-wide stylesheet (fresh build)
   ============================================================ */

:root {
  --primary: #0081e6;
  --primary-dark: #006bbd;
  --primary-light: #1e9fff;
  --text: #333333;
  --text-light: #666666;
  --text-faint: #999999;
  --bg-gray: #f5f7fa;
  --bg-dark: #05070c;
  --border: #e6e6e6;
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container-w: 1200px;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }

/* ---------- Utility ---------- */
.hide { display: none !important; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,129,230,.35);
}
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 品牌 Logo 作为页面唯一 h1(重置默认样式，避免影响布局) */
.site-logo { margin: 0; font-size: 0; line-height: 0; display: flex; align-items: center; }
.logo { flex-shrink: 0; }
.logo img { height: 42px; width: auto; }

.main-nav { display: flex; height: 100%; }
.main-nav > li { position: relative; display: flex; align-items: center; }
.main-nav > li > a {
  display: block;
  padding: 0 22px;
  height: var(--header-h);
  line-height: var(--header-h);
  font-size: 16px;
  color: var(--text);
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.main-nav > li.current > a,
.main-nav > li:hover > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.main-nav .nav-item {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 220px;
  padding: 10px 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
}
.main-nav > li:hover .nav-item {
  opacity: 1;
  visibility: visible;
}
.nav-item a {
  display: block;
  padding: 8px 24px;
  color: var(--text-light);
  font-size: 14px;
}
.nav-item a:hover { color: var(--primary); background: #f7f9fc; }
.nav-item .group-title {
  padding: 8px 24px 2px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.header-right { display: flex; align-items: center; gap: 14px; }
.open-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  transition: background .2s;
}
.open-btn:hover { background: var(--primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--text);
  transition: all .25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-nav.open { max-height: 80vh; overflow-y: auto; }
.mobile-nav > li { border-bottom: 1px solid #f2f2f2; }
.mobile-nav > li > a {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
}
.mobile-nav .m-sub { display: none; background: #fafbfc; padding: 6px 0; }
.mobile-nav .m-sub.show { display: block; }
.mobile-nav .m-sub a { display: block; padding: 9px 34px; color: var(--text-light); font-size: 14px; }
.mobile-nav .m-trigger { position: relative; }
.mobile-nav .m-trigger::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-faint);
}

/* ============================================================
   底部
   ============================================================ */
.site-footer { background: #252b33; color: #b6bfc9; }
.footer-top {
  padding: 44px 0 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; color: #8b95a1; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-contact .hotline { font-size: 20px; color: #fff; font-weight: 600; margin: 6px 0 10px; }
.footer-contact .qr-img { display: flex; gap: 16px; margin-top: 10px; }
.footer-contact .qr-img div { text-align: center; font-size: 12px; color: #8b95a1; }
.footer-contact .qr-img img { width: 84px; height: 84px; object-fit: cover; margin-bottom: 4px; }

.footer-bottom {
  padding: 18px 0;
  font-size: 12px;
  color: #7c8794;
}
.footer-bottom .f-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.footer-bottom .f-legal a:hover { color: #fff; }
.footer-bottom .f-links { display: flex; gap: 12px; margin-top: 6px; }
.footer-bottom .f-links a { color: #7c8794; }
.footer-bottom .f-links a:hover { color: #fff; }

/* ============================================================
   通用页面元素
   ============================================================ */
.page-banner { width: 100%; overflow: hidden; }
.page-banner img { width: 100%; height: auto; }

.breadcrumb {
  padding: 18px 0;
  color: var(--text-light);
  font-size: 13px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-faint); }
.breadcrumb .cur { color: var(--text); }

.section {
  padding: 60px 0;
}
.section-gray { background: var(--bg-gray); }
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.section-title .en { display: block; font-size: 13px; color: var(--text-faint); font-weight: 400; letter-spacing: 2px; margin-top: 6px; }
.section-sub {
  text-align: center;
  font-size: 15px;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* 返回顶部 (与咨询按钮同款: 蓝色圆形, 白图标) */
.back-top {
  position: fixed;
  right: 12px;
  bottom: 100px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 129, 230, .4);
  opacity: .9;
  transition: all .2s;
}
.back-top svg { width: 22px; height: 22px; }
.back-top:hover { opacity: 1; background: #0068d1; }

/* 咨询留言悬浮按钮 (icon 图标) */
.consult-btn {
  position: fixed;
  right: 12px;
  bottom: 40px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 129, 230, .4);
  transition: all .2s;
}
.consult-btn svg { width: 24px; height: 24px; }
.consult-btn:hover { opacity: .9; background: #0068d1; }

/* 移动端子菜单分组标题 */
.m-sub-title {
  padding: 14px 20px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
}

/* ---------- 留言弹窗 ---------- */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
}
.consult-modal.show { display: flex; }
.consult-modal-box {
  width: 420px;
  max-width: 92vw;
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.consult-modal-box h3 { font-size: 20px; margin-bottom: 18px; text-align: center; }
.consult-modal-box form textarea,
.consult-modal-box form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.consult-modal-box form textarea { height: 100px; resize: vertical; }
.consult-modal-box form textarea:focus,
.consult-modal-box form input:focus { border-color: var(--primary); }
.consult-modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
.consult-modal-actions .btn { flex: 1; text-align: center; }

/* 留言弹窗验证码 */
.consult-modal-captcha { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.consult-modal-box .consult-modal-captcha input { flex: 1; width: auto; height: 42px; margin: 0; padding: 0 12px; box-sizing: border-box; }
.consult-modal-box .consult-modal-captcha img { height: 42px; width: 112px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; flex-shrink: 0; box-sizing: border-box; margin: 0; }

/* 咨询成功提示 */
.consult-tip { text-align: center; padding: 30px 10px; }
.consult-tip img { margin: 0 auto 14px; }
.consult-tip p { font-size: 16px; color: var(--text); }

/* 简单分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px 0 10px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-light);
  background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  .header-right .open-btn { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo img { height: 34px; }
  .section { padding: 40px 0; }
  .section-title, .section h2 { font-size: 24px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .section-sub { font-size: 14px; }
  .back-top { right: 14px; bottom: 104px; width: 42px; height: 42px; }
}
/* ---------- 下拉/巨幕菜单 ---------- */
.main-nav .nav-item {
  padding: 14px 0;
  min-width: 200px;
}
.main-nav .nav-item.mega {
  min-width: 720px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 18px 22px;
}
.main-nav .nav-item.mega .mega-col { padding: 0 8px; border-right: 1px solid #f0f0f0; }
.main-nav .nav-item.mega .mega-col:last-child { border-right: none; }
.main-nav .nav-item.mega .group-title { padding: 6px 0 4px; font-size: 14px; font-weight: 600; }
.main-nav .nav-item.mega .group-title a { color: var(--text); padding: 0; background: none; }
.main-nav .nav-item.mega .group-title a:hover { color: var(--primary); }
.main-nav .nav-item.mega a { padding: 6px 0; }
.main-nav > li:hover .nav-item.mega { opacity: 1; visibility: visible; }
@media (max-width: 1024px) {
  .main-nav .nav-item.mega { min-width: 620px; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
}
.mobile-nav .m-sub-title { padding: 12px 20px 2px; font-size: 13px; font-weight: 600; color: var(--text-faint); }
.mobile-nav .m-sub-link { display: block; padding: 9px 34px; color: var(--text-light); font-size: 14px; }
.mobile-nav .m-sub-link:hover { color: var(--primary); }
.mobile-nav .m-nav-link { font-weight: 600; }

/* ---------- 分页补充样式 ---------- */
.pagination .dots { border: none; background: transparent; min-width: auto; color: #999; }
.pagination a.disabled { color: #ccc; pointer-events: none; border-color: #eee; }

/* ============================================================
   前端分页(改进版)
   ============================================================ */
.pagination {
  justify-content: center;
  gap: 8px;
  margin: 36px 0 10px;
}
.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  line-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #e5e7f0;
  color: #4a5568;
  background: #fff;
  transition: all .2s ease;
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,129,230,.15);
}
.pagination .current {
  background: linear-gradient(135deg, var(--primary), #004fcc);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,129,230,.3);
}
.pagination .dots {
  border: none;
  background: transparent;
  min-width: auto;
  color: #b0b8c4;
  box-shadow: none;
}
.pagination .nav-page {
  padding: 0 16px;
  color: var(--primary);
  border-color: #cfe4ff;
}
.pagination .nav-page:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a.disabled {
  color: #c2c8d0;
  pointer-events: none;
  border-color: #eef0f4;
  background: #fafbfc;
}

/* ============================================================
   移动端整体优化
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .section-title, .home-title { font-size: 22px; }
  .section-sub, .home-sub { font-size: 13px; margin-bottom: 24px; }
  .breadcrumb { padding: 12px 14px; font-size: 12px; }
  .page-title { font-size: 20px; margin: 6px 0 16px; }
  .page-wrap { padding: 0 14px 40px; }
  .tabs-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tabs-nav button { padding: 10px 14px; white-space: nowrap; font-size: 13px; }
  .p-grid { gap: 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer-col a { padding: 3px 0; font-size: 12px; }
  .footer-contact .qr-img { flex-wrap: wrap; }
  .sidebar-none { display: none; }
  .back-top { width: 42px; height: 42px; right: 8px; bottom: 96px; }
  .consult-btn { width: 42px; height: 42px; right: 8px; bottom: 44px; }
  .consult-modal-box { padding: 20px; }
  .carousel-dots { bottom: 8px; }
  .media-row { gap: 16px; }
  .media-row .media-text { text-align: center; align-items: center; }
  .media-row .media-text p,
  .media-row .media-text h3 { text-align: center; }
  .media-row .media-list { text-align: left; width: 100%; }
  .media-row .media-list li { text-align: left; }
  .btn-view { padding: 8px 26px; font-size: 13px; }
}
@media (max-width: 380px) {
  .footer-top { grid-template-columns: 1fr; }
}
