/* ============================================================
   dlzo-hero.css —— 首页首屏「登录/注册」「方案咨询」按钮
   ------------------------------------------------------------
   背景：原来这两个按钮是"烤"在 hero 图片里的，无法调整大小、
         无法点击统计、换图就得重新做图。现在改成真 HTML 按钮，
         叠加在 banner 左侧文字下方。

   位置依据（banner 为 1920×640）：
     · 图中文字左边距 x ≈ 100/1920 = 5.2%  → 按钮左对齐同一个 5.2%
     · 图中标签行底边 y ≈ 435/640 = 68%    → 按钮从 72.5% 开始
   若将来换 banner，改下面 :root 里的几个百分比即可。

   回滚：删本文件 + 布局里那行 <link> + 模板里 .dz-hero-btns 两处
   ============================================================ */

:root{
  --dz-hero-left:   5.2%;   /* 按钮左边距（对齐图中文字） */
  --dz-hero-top:    72.5%;  /* 按钮顶边（在标签行下方） */
  --dz-hero-fs:     18px;   /* 按钮字号 */
  --dz-hero-px:     34px;   /* 按钮左右内边距 */
  --dz-hero-py:     13px;   /* 按钮上下内边距 */
  --dz-hero-radius: 11px;   /* 圆角 */
  --dz-hero-gap:    18px;   /* 两个按钮间距 */
}

/* 轮播项作为定位基准（Bootstrap 未加载，.item 没有 position） */
.dz-hero-slide{ position:relative; }

.dz-hero-btns{
  position:absolute; left:var(--dz-hero-left); top:var(--dz-hero-top);
  display:flex; gap:var(--dz-hero-gap); align-items:center; z-index:5;
}

.dz-hero-btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-size:var(--dz-hero-fs); font-weight:600; letter-spacing:1.5px;
  padding:var(--dz-hero-py) var(--dz-hero-px);
  border-radius:var(--dz-hero-radius);
  text-decoration:none !important; white-space:nowrap;
  transition:background .22s ease, box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

/* 描边按钮：深色 banner 上的默认样式（浅色文字） */
.dz-hero-btn--ghost{
  color:#eaf2ff !important;
  background:rgba(255,255,255,.10);
  border:1.5px solid rgba(150,190,255,.55);
}
.dz-hero-btn--ghost:hover{
  background:rgba(255,255,255,.20);
  border-color:#8ab4ff;
}

/* 描边按钮：浅色 banner 上的样式（深色文字，否则看不见） */
.dz-hero-btns--onlight .dz-hero-btn--ghost{
  color:#2E5FB8 !important;
  background:rgba(255,255,255,.88);
  border:1.5px solid rgba(70,130,240,.45);
}
.dz-hero-btns--onlight .dz-hero-btn--ghost:hover{
  background:#fff; border-color:#2E7BFF;
}

/* 实心主按钮：两种 banner 上都用同一套 */
.dz-hero-btn--solid{
  color:#fff !important;
  background:linear-gradient(95deg,#2E7BFF,#4FA8FF);
  border:1.5px solid transparent;
  box-shadow:0 6px 22px rgba(46,123,255,.45);
}
.dz-hero-btn--solid:hover{
  box-shadow:0 9px 28px rgba(46,123,255,.62);
  transform:translateY(-2px);
}

/* ============================================================
   移动端
   banner 是 1920×640（3:1），缩到 390px 宽只有 130px 高，
   图里的字会小到看不清。这里改为裁切显示「左侧文字区」：
   object-fit:cover + object-position:left  → 手机上只显示左约 42%，
   等效放大，文字和按钮都恢复可读。
   ============================================================ */
@media (max-width: 767px){
  .dz-hero-slide{ height:330px; overflow:hidden; }
  .dz-hero-slide img{ width:100%; height:330px; object-fit:cover; object-position:left center; display:block; }
  .dz-hero-slide picture{ display:block; height:330px; }
  .dz-hero-btns{
    left:6%; top:70%; gap:10px; flex-wrap:wrap;
  }
  .dz-hero-btn{
    font-size:13px; padding:9px 18px; border-radius:8px; letter-spacing:.8px;
  }
}
@media (max-width: 400px){
  .dz-hero-slide{ height:300px; }
  .dz-hero-slide img, .dz-hero-slide picture{ height:300px; }
  .dz-hero-btns{ left:5.5%; top:68%; }
  .dz-hero-btn{ font-size:12px; padding:8px 15px; }
}

/* ============================================================
   轮播：切换箭头 + 指示点
   ------------------------------------------------------------
   背景：Bootstrap 的 carousel CSS 是通过 RequireJS 异步加载的，
         加载前两张图会叠在一起闪一下，且箭头/圆点没有样式
         （箭头依赖 FontAwesome，本站也没加载那个字体）。
   做法：① 本地先显式声明 .item 显隐，消除闪动
         ② 箭头用纯 CSS 边框画 chevron，不依赖任何图标字体
         ③ 指示点按「激活=发光药丸 / 未激活=圆环」重做，
            取品牌 logo 上的青色 #2BC4C4
   ============================================================ */

/* ① 显式控制显隐（本地立刻生效，不依赖异步 CSS） */
#index-focus .carousel-inner > .item{ display:none; }
#index-focus .carousel-inner > .item.active,
#index-focus .carousel-inner > .item.next,
#index-focus .carousel-inner > .item.prev{
  display:block;
}
/* ★ 关键补充 ★ 光有 display 还不够：必须让新图与旧图一样「绝对定位铺满」，
   滑动时两张才会同时在位、始终盖住整屏，中间不会露出白底。
   Bootstrap 原生就是这么做的，这里显式写一遍，不依赖异步加载的 bootstrap.css。*/
#index-focus .carousel-inner > .item.next,
#index-focus .carousel-inner > .item.prev{
  position:absolute;
  top:0;
  width:100%;
}

/* ② 左右箭头 */
#index-focus .carousel-control{
  position:absolute; top:50%; margin-top:-24px;
  width:48px; height:48px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(8,18,38,.42);
  border:1.5px solid rgba(255,255,255,.38);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  text-decoration:none !important;
  opacity:.62; z-index:12;
  transition:opacity .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
#index-focus:hover .carousel-control{ opacity:1; }
#index-focus .carousel-control:hover{
  background:rgba(46,123,255,.72);
  border-color:#9cc4ff;
  transform:scale(1.06);
}
/* 左箭头贴到最左边缘：banner 里文字从 x=78 开始，
   原先 left:24px 时箭头右边缘到 72，几乎压住标题「让品牌声量持续放大」，
   所以外移到 8px（右边缘 56，与文字留出 22px 空隙） */
#index-focus .carousel-control.left{ left:8px; }
/* 右侧留出 104px：避开本站固定悬浮的「联系电话/在线客服/公众号」面板（宽约 85px），
   否则右箭头会被整个盖住 */
#index-focus .carousel-control.right{ right:104px; }

/* 用边框画箭头，不依赖 FontAwesome（fa-chevron-* 本站无字体，会渲染成空白）。
   ⚠️ 关键：模板里的 span 是 class="icon-prev fa fa-chevron-left"，
   Bootstrap 的 .carousel-control .icon-prev 会把它变成 position:absolute
   并加上 margin:-10px，从而脱离外层 flex 居中 —— 这正是「箭头不在圆圈正中」的原因。
   所以这里必须用 !important 把定位和边距全部拉回 flex 流内。 */
#index-focus .carousel-control .fa{
  position:static !important;
  top:auto !important; left:auto !important; right:auto !important;
  margin:0 !important;
  display:block; width:11px; height:11px;
  font-size:0 !important; line-height:0;   /* 屏蔽字体图标 */
  color:transparent;
  border-top:2.5px solid #fff;
  border-right:2.5px solid #fff;
}
/* 旋转的是「⌐」形方框（只有上+右边框），它的视觉重心不在方框中心，
   旋转后会整体偏移 3.88px，看起来就是「箭头不在圆圈正中」。
   实测补偿：左箭头 +3.9px、右箭头 −3.9px；
   垂直方向本来就是居中的，不需要补偿。
   （另：原来那对 margin-left/right:3px 只会把偏移改成 2.38px，已去掉） */
#index-focus .carousel-control.left .fa{ transform:translate(3.9px,0) rotate(-135deg); }
#index-focus .carousel-control.right .fa{ transform:translate(-3.9px,0) rotate(45deg); }
#index-focus .carousel-control .sr-only{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0);
}

/* ③ 指示点：激活=发光药丸，未激活=圆环 */
#index-focus .carousel-indicators{
  position:absolute; left:0; right:0; bottom:26px;
  margin:0; padding:0; text-align:center; list-style:none; z-index:12;
}
#index-focus .carousel-indicators li{
  display:inline-block; width:12px; height:12px; margin:0 5px;
  border-radius:50%; cursor:pointer; text-indent:0; overflow:hidden;
  background:rgba(255,255,255,.10);
  border:1.5px solid rgba(255,255,255,.55);
  transition:width .3s ease, border-radius .3s ease, background .3s ease,
             border-color .3s ease, box-shadow .3s ease;
}
#index-focus .carousel-indicators li:hover{
  border-color:#2BC4C4;
  background:rgba(43,196,196,.18);
}
#index-focus .carousel-indicators li.active{
  width:34px; height:12px; border-radius:7px;
  background:rgba(43,196,196,.18);
  border:1.5px solid #2BC4C4;
  box-shadow:0 0 10px rgba(43,196,196,.8), inset 0 0 8px rgba(43,196,196,.35);
}

@media (max-width: 767px){
  #index-focus .carousel-control{ width:36px; height:36px; margin-top:-18px; opacity:.8; }
  #index-focus .carousel-control.left{ left:10px; }
  #index-focus .carousel-control.right{ right:60px; }
  #index-focus .carousel-control .fa{ width:9px; height:9px; border-width:2px; }
  #index-focus .carousel-indicators{ bottom:16px; }
  #index-focus .carousel-indicators li{ width:9px; height:9px; margin:0 4px; }
  #index-focus .carousel-indicators li.active{ width:24px; height:9px; border-radius:5px; }
}
