/* =====================================================================
   盯盯安防 · 官网首页美化 beautify.css
   设计风格：深蓝科技 + 现代商务
   说明：仅在首页 index.htm 中引用，不影响其它内页
   ===================================================================== */

/* ---------- 基础 ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #4a5568;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; }

/* ---------- 导航栏 ---------- */
.navbar-default {
  background: linear-gradient(180deg, rgba(8,20,44,.62) 0%, rgba(8,20,44,0) 100%) !important;
  border-bottom: 0;
}
.navbar { padding-top: 22px; }
.navbar-default .navbar-brand { width: 150px; height: 46px; background-size: auto 46px; }
.navbar-default .navbar-nav { padding-top: 10px; }
.navbar-default .navbar-nav li a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  color: #fff;
  margin: 0 16px;
  padding: 4px 0;
  position: relative;
}
/* 导航下划线 */
.navbar-default .navbar-nav li a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #2f8bff, #7cc0ff);
  transform: translateX(-50%); transition: width .3s ease;
}
.navbar-default .navbar-nav li a:hover::after,
.navbar-default .navbar-nav li.hover a::after,
.navbar-default .navbar-nav li.active a::after { width: 68%; }
.navbar-default .navbar-nav li a:hover,
.navbar-default .navbar-nav li.hover a,
.navbar-default .navbar-nav li.active a { color: #fff !important; }

/* 滚动吸顶后的白色导航 */
.navbar-default.sticky {
  background: #fff !important;
  box-shadow: 0 6px 24px rgba(10,35,80,.10);
}
.navbar-default.sticky .navbar-brand { background-image: url(../images/logo-block.png); }
.navbar-default.sticky .navbar-nav li a { color: #2b3a55; }
.navbar-default.sticky .navbar-nav li a:hover,
.navbar-default.sticky .navbar-nav li.hover a,
.navbar-default.sticky .navbar-nav li.active a { color: #0a5bd3 !important; }

/* 电话按钮 */
.navbar-default .navbar-nav li.tel a {
  display: inline-block;
  margin-left: 22px; padding: 6px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0a5bd3, #2f8bff);
  box-shadow: 0 6px 16px rgba(10,90,210,.35);
}
.navbar-default .navbar-nav li.tel a p { color: #fff !important; font-weight: 600; letter-spacing: .5px; }
.navbar-default.sticky .navbar-nav li.tel a p { color: #fff !important; }

/* ---------- 板块标题 ---------- */
.sx-jianju { padding-top: 74px; padding-bottom: 78px; }
.h-h2, .h-h2-white {
  font-size: 34px; font-weight: 700; color: #14233d;
  margin: 0; padding-bottom: 16px; letter-spacing: 1px;
  display: inline-block; position: relative;
}
.h-h2-white { color: #fff; }
.h-h2::after, .h-h2-white::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 64px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, #0a5bd3, #2f8bff);
}
/* 隐藏旧的整条横线 */
.xx, .xx-white { display: none; }
.m-sm, .m-sm-white {
  display: block; font-size: 15px; letter-spacing: 4px;
  text-transform: uppercase; color: #8a94a6;
  background: transparent !important; padding: 0;
  margin: 18px 0 8px;
}
.m-sm-white { color: rgba(255,255,255,.72); }
.m-sm.vicolor, .m-sm-white.vicolor { background: transparent !important; }

/* ---------- 按钮 ---------- */
.btn-center, .btn-center-white, .s-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0a5bd3, #2f8bff);
  color: #fff !important; border: 0 !important; border-radius: 30px;
  padding: 10px 30px; font-size: 15px; font-weight: 500;
  box-shadow: 0 8px 20px rgba(10,90,210,.28);
  transition: all .3s ease;
}
.btn-center:hover, .btn-center-white:hover, .s-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(10,90,210,.40);
  color: #fff !important;
}
.btn-center-white {
  background: #fff; color: #0a5bd3 !important;
  box-shadow: 0 8px 20px rgba(2,15,40,.22);
}
.btn-center-white:hover { color: #0a5bd3 !important; }

/* ---------- Banner ---------- */
.banner { position: relative; }
.banner .owl-controls .owl-pagination .owl-page span {
  background: rgba(255,255,255,.45); width: 26px; height: 6px; border-radius: 4px;
  transition: .3s;
}
.banner .owl-controls .owl-page.active span {
  background: #fff; border: 0; width: 34px;
}

/* ---------- 关于我们 ---------- */
.about { background: #fff; }
.about figure img {
  border-radius: 18px;
  box-shadow: 0 20px 46px rgba(10,35,80,.14);
}
.about .text-left { font-size: 15px; line-height: 2.1; color: #5b6b80; }
.about .hg-3 { margin-bottom: 22px; }

/* ---------- 客户展示（案例） ---------- */
.case {
  background: linear-gradient(135deg, #081e47 0%, #0b3a8c 100%);
}
.case .menu-kj2 li a {
  color: rgba(255,255,255,.85); padding: 6px 18px; border-radius: 20px;
  background: rgba(255,255,255,.08); transition: .3s; font-size: 14px;
}
.case .menu-kj2 li a:hover { background: #fff; color: #0a5bd3; }
.case .m-sm { color: rgba(255,255,255,.72); }

/* 案例卡片 */
.case-img figure {
  position: relative; overflow: hidden;
  border: 0; border-radius: 16px;
  background: #0b2e66;
  box-shadow: 0 14px 34px rgba(2,12,38,.45);
  margin-bottom: 0;
}
.case-img .row div { margin-bottom: 26px; }
.case-img figure img {
  width: 100%; height: 256px; object-fit: cover; display: block;
}
.case-img figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  height: auto; z-index: 1; padding: 34px 16px 14px;
  background: linear-gradient(180deg, rgba(8,20,45,0) 0%, rgba(8,20,45,.92) 55%);
}
.case-img figure figcaption h3 {
  opacity: 1; height: auto; padding: 0; margin: 0;
  background: transparent; text-align: left;
}
.case-img figure h3 > a { font-size: 16px; font-weight: 600; color: #fff; }
.case-img figure h3 > a:hover { color: #7cc0ff; text-decoration: none; }
.case-img figure h3 p {
  color: rgba(255,255,255,.72); font-size: 12px; font-weight: 400;
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 8px; margin: 8px 0 0;
}
.case-img figure h3 small a.btn-center {
  background: rgba(255,255,255,.18); box-shadow: none;
  padding: 4px 16px; font-size: 12px; border-radius: 20px; margin-top: 8px;
}

/* ---------- 合作企业 ---------- */
.kehu { background: #f5f7fb; }
.kehu .item img {
  margin: 0 8px 22px; padding: 16px; height: 96px; width: auto; object-fit: contain;
  background: #fff; border: 1px solid #eef1f6; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(10,45,110,.07); transition: all .3s ease;
  filter: grayscale(30%);
}
.kehu .item:hover img {
  transform: translateY(-5px);
  border-color: #cfe0ff;
  box-shadow: 0 14px 30px rgba(10,45,110,.14);
  filter: grayscale(0%);
}

/* ---------- 服务流程 ---------- */
.service {
  background: #0a1c3d;
  background: linear-gradient(160deg, #071636 0%, #0b2e66 55%, #0f3f8f 100%);
}
.service .row .row { position: relative; }
/* 步骤之间的连接线（桌面端） */
@media (min-width: 992px) {
  .service .row .row::before {
    content: ""; position: absolute; top: 56px; left: 14%; right: 14%;
    height: 2px; z-index: 0;
    background: linear-gradient(90deg, rgba(47,139,255,0), rgba(47,139,255,.55), rgba(47,139,255,0));
  }
}
.service figure {
  width: 112px; height: 112px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 24px rgba(2,10,30,.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; position: relative; z-index: 1;
  transition: .35s ease;
}
.service figure:hover { transform: translateY(-6px); }
.service figure figcaption {
  width: auto; height: auto; line-height: 1; font-size: 0;
  border: 0; border-radius: 0; background: transparent; margin: 0;
  color: #6db3ff;
}
.service figure figcaption svg { width: 46px; height: 46px; }
.service h4 { font-size: 17px; font-weight: 600; color: #fff; margin-top: 18px; letter-spacing: .5px; }
.service .hg-2 { color: rgba(255,255,255,.72); font-size: 14px; }
.service .row > div { position: relative; }

/* ---------- 更多业务（团队） ---------- */
.team { background: #f5f7fb; }
.team figure {
  border-radius: 16px; overflow: hidden;
  background: #fff; border: 0;
  box-shadow: 0 12px 30px rgba(10,45,110,.10);
}
.team figure img { width: 100%; height: 240px; object-fit: cover; display: block; }
.team figure figcaption {
  position: relative; height: auto; top: auto; left: auto; right: auto; bottom: auto;
  padding: 18px 16px 16px; text-align: center; background: #fff;
}
.team figure figcaption h3 {
  height: auto; opacity: 1; padding: 0; margin: 0;
  background: transparent; text-align: center;
}
.team figure h3 > a { font-size: 17px; font-weight: 600; color: #14233d; }
.team figure h3 p { color: #0a5bd3; font-size: 13px; font-weight: 400; margin: 4px 0 6px; border: 0; padding: 0; }
.team figure h3 small a.btn-center { margin-top: 6px; font-size: 12px; padding: 5px 18px; }

/* ---------- 新闻中心 ---------- */
.news {
  background: linear-gradient(135deg, #f0f4fb 0%, #e6eefc 100%);
}
.news .item {
  background: #fff; border-radius: 16px; padding: 14px 14px 18px;
  box-shadow: 0 12px 30px rgba(10,45,110,.09); margin: 0 10px;
}
.news figure { margin: 0; }
.news figure img { border-radius: 12px; width: 100%; height: 190px; object-fit: cover; }
.news h3 { margin: 14px 6px 8px; }
.news h3 a { color: #14233d; font-weight: 600; font-size: 17px; }
.news h3 a:hover { color: #0a5bd3; text-decoration: none; }
.news p { color: #66758c; font-size: 14px; line-height: 1.8; margin: 0 6px 12px; }
.news .owl-pagination .owl-page span { background: #b9c9e4; width: 10px; height: 10px; }
.news .owl-controls .owl-page.active span { background: #0a5bd3; border: 0; }

/* ---------- 页脚 ---------- */
.foot-bg { background: #081c3a; }
.foot-bg .container { padding-top: 30px; }
.foot { color: rgba(255,255,255,.65); }
.foot-dh a { color: #7cc0ff; }
.foot .menu-kj a { color: rgba(255,255,255,.7); }
.foot .menu-kj a:hover { color: #7cc0ff; text-decoration: none; }
.kefu-menu .qrcode-item img { box-shadow: 0 4px 14px rgba(0,0,0,.35); }

/* ---------- 移动端适配 ---------- */
@media (max-width: 767px) {
  .sx-jianju { padding-top: 52px; padding-bottom: 54px; }
  .h-h2, .h-h2-white { font-size: 26px; }
  .case-img figure img, .team figure img { height: 200px; }
  .service figure { width: 96px; height: 96px; }
  .service figure figcaption svg { width: 40px; height: 40px; }
  .kehu .item img { height: 72px; }
  .news figure img { height: 160px; }
  /* 移动端隐藏右侧悬浮客服栏（客服/电话/回到顶部） */
  .kefu { display: none !important; }
}

/* =====================================================================
   内页 banner 统一美化：清爽深蓝科技风格（隐藏旧烧字图）
   ===================================================================== */
.banner, .channel-banner {
  position: relative;
  background: linear-gradient(135deg, #071636 0%, #0b3a8c 100%) !important;
  background-image: linear-gradient(135deg, #071636 0%, #0b3a8c 100%) !important;
  border: 0;
  overflow: hidden;
}
.banner-mask {
  background-image: none !important;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-mask figure, .channel-banner figure { display: none; }
.banner .banner-info, .channel-banner .banner-info {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
}
.banner .banner-info h3, .channel-banner .banner-info h3 {
  color: #fff !important; font-size: 40px; font-weight: 700; letter-spacing: 3px; margin: 0 0 8px;
}
.banner .banner-info p, .channel-banner .banner-info p {
  color: rgba(255,255,255,.8) !important; font-size: 16px; letter-spacing: 5px; margin: 0;
}
/* 内页首屏留出导航高度，避免内容被固定导航遮挡 */
body.page-inner { padding-top: 0; }
@media (max-width: 767px) {
  .banner-mask { min-height: 140px; }
  .banner .banner-info h3, .channel-banner .banner-info h3 { font-size: 26px; }
  .banner .banner-info p, .channel-banner .banner-info p { font-size: 13px; }
}

/* =====================================================================
   科技感 Hero 首屏轮播（复刻妙搭项目风格）
   ===================================================================== */
.hero {
  position: relative; width: 100%; height: 680px; overflow: hidden;
  background: hsl(215,100%,18%);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
/* 蒙层：左侧深、右侧渐亮 */
.hero-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% 50%, rgba(10,30,70,.55) 0%, rgba(0,45,77,0) 55%),
    linear-gradient(100deg, hsla(215,100%,15%,.95) 0%, hsla(215,80%,35%,.60) 45%, hsla(195,100%,40%,.28) 100%);
}
.hero-overlay::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 30% 33%, rgba(51,204,255,.14), transparent 70%);
}
/* 网格纹理 */
.hero-grid { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 50px 50px;
}
/* 粒子点缀 */
.hero-particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-particles i { position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px rgba(100,200,255,.6), 0 0 4px rgba(255,255,255,.4);
  animation: heroFloat var(--dd,5s) ease-in-out infinite, heroBlink var(--dd,5s) ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(var(--dy,-16px)); } }
@keyframes heroBlink { 0%,100% { opacity: .25; } 50% { opacity: .85; } }
/* 文案层 */
.hero-content { position: absolute; z-index: 4; top: 50%; left: 0; right: 0;
  transform: translateY(-50%); max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.10); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: hsl(195,100%,60%);
  animation: heroPulse 2s ease-in-out infinite; }
@keyframes heroPulse { 0%,100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.hero-title { margin: 20px 0; font-size: 60px; line-height: 1.15; font-weight: 700;
  background: linear-gradient(120deg,#fff 30%, hsl(195,90%,82%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: #fff; }
.hero-title span { display: block; }
.hero-sub { max-width: 576px; margin: 0 0 32px; font-size: 20px; line-height: 1.7; color: rgba(255,255,255,.88); }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 12px; font-weight: 600; font-size: 16px; color: #0a5bd3;
  background: linear-gradient(120deg,#fff, hsl(195,90%,95%));
  box-shadow: 0 12px 30px rgba(0,40,80,.35); transition: all .3s ease; }
.hero-cta svg { width: 20px; height: 20px; transition: transform .3s ease; }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,40,80,.45); text-decoration: none; color: #0a5bd3; }
.hero-cta:hover svg { transform: translateX(4px); }
/* 毛玻璃箭头 */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1; color: #fff; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.10); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
  transition: all .3s ease; }
.hero-arrow:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) scale(1.08); color: #fff; }
.hero-arrow--prev { left: 32px; } .hero-arrow--next { right: 32px; }
.hero-arrow--prev:hover { left: 30px; } .hero-arrow--next:hover { right: 30px; }
/* 胶囊指示器 */
.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 999px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.5); transition: all .3s ease; }
.hero-dots button.is-active { width: 32px; background: #fff; }
/* 底部过渡衔接 */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; z-index: 4;
  pointer-events: none; background: linear-gradient(180deg, rgba(10,30,60,0) 0%, rgba(10,30,60,.55) 100%); }
/* 文案入场动画 */
.hero-content .hero-badge, .hero-content .hero-title, .hero-content .hero-sub, .hero-content .hero-cta {
  opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.hero-content.is-in .hero-badge { opacity: 1; transform: translateY(0); transition-delay: .2s; }
.hero-content.is-in .hero-title { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.hero-content.is-in .hero-sub { opacity: 1; transform: translateY(0); transition-delay: .5s; }
.hero-content.is-in .hero-cta { opacity: 1; transform: translateY(0); transition-delay: .7s; }
/* 响应式 */
@media (max-width: 991px) {
  .hero { height: 560px; } .hero-title { font-size: 46px; }
}
@media (max-width: 767px) {
  .hero { height: 400px; }
  .hero-title { font-size: 30px; margin: 14px 0; }
  .hero-sub { font-size: 16px; margin-bottom: 24px; }
  .hero-content { padding: 0 24px; }
  .hero-arrow { width: 46px; height: 46px; font-size: 22px; }
  .hero-arrow--prev { left: 12px; } .hero-arrow--next { right: 12px; }
  .hero-dots { bottom: 20px; }
  .hero-cta { padding: 12px 26px; font-size: 15px; }
}
