/* ========================================
   自定义扩展样式 - LED散热器官网
   ======================================== */

/* ---- 导航悬浮效果增强 ---- */
.navbar-toggler {
  border: 1.5px solid rgba(0,86,179,.3);
  border-radius: 8px;
  padding: .4rem .65rem;
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0,86,179,.15); }

/* ---- 灯箱 ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(.9);
  transition: transform .3s ease;
}

.lightbox-overlay.active .lightbox-content { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.lightbox-close:hover { background: #fd7e14; }

/* ---- 产品筛选 ---- */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: .45rem 1.2rem;
  border-radius: 25px;
  border: 1.5px solid #dee2e6;
  background: transparent;
  color: #6c757d;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
}

.filter-tab.active,
.filter-tab:hover {
  background: #0056b3;
  border-color: #0056b3;
  color: white;
}

.product-item { transition: all .4s ease; }
.product-item.hidden { display: none !important; }

/* ---- 进度条动画 ---- */
.tech-progress { margin-bottom: 1.2rem; }
.tech-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.progress { height: 8px; border-radius: 4px; background: #e9ecef; }
.progress-bar {
  border-radius: 4px;
  background: linear-gradient(90deg, #0056b3, #1a7fd4);
  width: 0;
  transition: width 1.5s ease;
}

.progress-bar.orange { background: linear-gradient(90deg, #fd7e14, #ffb366); }

/* ---- 时间线 ---- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #0056b3, #fd7e14);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: .3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0056b3;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #0056b3;
}

.timeline-year {
  font-size: .78rem;
  font-weight: 700;
  color: #fd7e14;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .25rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: .3rem;
}

.timeline-text {
  font-size: .88rem;
  color: #6c757d;
  line-height: 1.7;
}

/* ---- 询盘浮层 ---- */
.inquiry-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.inquiry-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #0056b3;
  color: white;
  padding: .65rem .9rem;
  border-radius: 8px 0 0 8px;
  font-size: .82rem;
  font-weight: 600;
  transition: all .25s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transform: translateX(0);
}

.inquiry-btn:hover {
  background: #fd7e14;
  transform: translateX(-4px);
}

.inquiry-btn .icon { font-size: 1.1rem; }

/* ---- 加载骨架 ---- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- 吐司通知 ---- */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9990;
}

/* ---- 技术规格对比 ---- */
.compare-table th { background: #f0f5ff; color: #0056b3; font-weight: 700; }
.compare-table td { vertical-align: middle; }
.compare-check { color: #28a745; font-size: 1.1rem; }
.compare-cross { color: #dc3545; font-size: 1.1rem; }
.compare-best { background: rgba(253,126,20,.08); font-weight: 600; }

/* ---- 图标装饰 ---- */
.icon-circle-primary {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(0,86,179,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0056b3; font-size: 1.2rem;
}

.icon-circle-accent {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(253,126,20,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fd7e14; font-size: 1.2rem;
}

/* ---- 懒加载淡入 ---- */
img[data-src] { opacity: 0; transition: opacity .4s ease; }
img.loaded { opacity: 1; }

/* ---- 页面加载进度 ---- */
#page-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #0056b3, #fd7e14);
  z-index: 99999;
  animation: loader-anim 1.5s ease infinite;
  transform-origin: left;
}

@keyframes loader-anim {
  0%  { transform: scaleX(0); opacity: 1; }
  70% { transform: scaleX(.8); opacity: 1; }
  100%{ transform: scaleX(1); opacity: 0; }
}

/* ---- WhatsApp 按钮 ---- */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 48px; height: 48px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  z-index: 998;
  transition: all .3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #20b858;
  transform: scale(1.1);
  color: white;
}

/* ---- 滚动触发计数器 ---- */
.counter-value { transition: all .3s; }
