/* .kzg-control-cabinet和.kzg-control-cabinet的所有后代 */
.kzg-control-cabinet,
.kzg-control-cabinet * {
  box-sizing: border-box;
}

.kzg-control-cabinet {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(to bottom, #f0f4f8 0%, #e8eef5 100%);
  color: #333;
}

/* 头部标题 */
.kzg-header-wrapper {
  min-width: 1200px;
  height: 809px;
  background: url("/event/static/images/control-cabinet/headerBgp.jpg")
    no-repeat top center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 修改：内容区 - 固定1200px */
.kzg-header {
  min-width: 1200px;
  height: 809px;
  position: relative;
  margin: 0 auto;
}
.kzg-worker-botton {
  position: absolute;
  top: 600px;
  left: 50px;
  width: 113px;
  height: 62px;
  background: url("/event/static/images/control-cabinet/workerBotton.png")
    no-repeat center center;
  z-index: 2;
}

.kzg-main {
  width: 1200px;
  margin: 0 auto;
}
/* 产品网格 */
.kzg-products-section {
  background: #e7e8e9;
  border-radius: 10px;
  margin-bottom: 40px;
}

.kzg-brand-tabs-section {
  background: white;
  padding: 20px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.kzg-brand-tabs-section,
.kzg-brand-tabs {
  display: flex;
  align-items: center;
  gap: 15px;
  /* background-color: blue; */
}
.kzg-brand-tabs-section .kzg-brand-label {
  font-size: 19px;
  font-weight: 800;
  color: #333;
  margin: 0 95px 0 88px;
  white-space: nowrap;
}
.kzg-brand-tabs-section .kzg-brand-tab {
  margin-right: 15px;
  height: 40px;
  line-height: 40px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.kzg-brand-tabs .active {
  /* 文字渐变色 */
  background: linear-gradient(90deg, #ffbb4e 0%, #ff5f1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* 边框渐变色 */
  position: relative;
  border-bottom: none; /* 移除原来的边框 */
}

.kzg-brand-tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px; /* 可以调整边框粗细 */
  background: linear-gradient(90deg, #ffbb4e 0%, #ff5f1b 100%);
}

.kzg-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  padding: 30px;
}

.kzg-product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  width: 263px;
  height: 414px;
  flex-wrap: wrap;
  align-content: space-between;
}

.kzg-product-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.kzg-product-image {
  flex: 1;
  width: 263px;
  height: 253px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 10px 20px;
}
.kzg-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kzg-product-description {
  display: flex;
  flex-direction: column;
  height: 161px;
  width: 263px;
  background-color: #eef2ff;
}

.kzg-product-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 限制显示2行 */
  font-size: 16px;
  text-align: left;
  font-weight: 700;
  color: #333;
  max-height: 52px;
  padding: 5px 20px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5; /* 添加行高以便更好地控制多行显示 */
}

.kzg-product-model {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #333;
  padding: 0px 20px 5px;
  width: 100%;
  text-align: left;
}
.kzg-model-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #333;
  padding: 0px 20px;
  width: 100%;
  text-align: left;
}

.kzg-product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  /* height: 44px; */
  padding: 0px 20px 0 20px;
}
.kzg-price {
  display: flex;
  width: 100%;
  margin: 5px 0;
  align-items: center;
}

.kzg-firstprice {
  color: #ff621d;
}
.kzg-minprice,
.kzg-maxprice,
.kzg-middleprice {
  color: #ff621d;
  font-size: 17px;
  font-weight: bold;
}

.kzg-buy-btn {
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  height: 35px;
  line-height: 35px;
  color: #333333;
  margin-top: auto;
  background-color: #fdd4a0;
}

.kzg-view-more {
  text-align: center;
  color: #666;
  padding: 10px 0 30px;
  font-size: 14px;
  margin-top: -24px;
  display: flex;
  justify-content: center;
}
.kzg-view-more .kzg-view-more-product {
  min-width: 455px;
  height: 40px;
  line-height: 40px;
  background-color: #eef2ff;
  color: #333333;
  cursor: pointer;
}

/* 右侧导航 */
.kzg-right-nav-total {
  position: fixed;
  right: 100px;
  top: 187px;
  width: 184px;
}
@media (max-width: 1250px) {
  .kzg-right-nav-total {
    right: 2px;
  }
}

@media (min-width: 1251px) {
  .kzg-right-nav-total {
    right: 100px;
  }
}
.kzg-right-nav-main {
  width: 184px;
  min-height: 550px;
  padding: 0 15px 10px;
  border-radius: 10px;
  background-color: #fffbf5;
  .kzg-right-nav-main-pic {
    width: 100%;
    height: 46px;
    background: url("/event/static/images/control-cabinet/right-nav-main-pic.png")
      no-repeat center center;
  }
  .kzg-right-nav-main-items {
    min-height: 500px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    .kzg-right-nav-main-item {
      width: 87%;
      color: #333;
      height: 23px;
      line-height: 23px;
      text-align: center;
      background-color: #ffeed4;
      margin-bottom: 3px;
      border-radius: 2px;
      font-size: 14px;
    }
    .kzg-right-nav-main-item:hover {
      cursor: pointer;
      color: #ffaf04;
    }
  }
}

.kzg-right-nav-total .kzg-right-nav-botton {
  width: 30px;
  height: 30px;
  margin: 10px auto;
  background: url("/event/static/images/control-cabinet/right-nav-botton.png")
    no-repeat;
  background-size: auto 100%;
}

/* 圆点闪烁开始 */
.kzg-header-circle {
  position: absolute;
}
.kzg-header-circle-pulse-dot {
  width: 24px;
  height: 24px;
}

/* 背景闪烁层 */
.kzg-header-circle-pulse-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.6);
  z-index: 0;
  animation: bg-pulse 0.8s ease-in-out infinite;
}

/* 外部白色实心圈（固定不动） */
.kzg-header-circle-pulse-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  z-index: 1;
  animation: none;
}

/* 内部橙黄色实心圈（固定不动） - 使用额外元素 */
.kzg-header-circle-pulse-dot .kzg-header-circle-pulse-dot-inner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffaf04;
  z-index: 2;
}

/* 背景闪烁动画 */
@keyframes bg-pulse {
  0%,
  100% {
    background: rgba(240, 240, 240, 0.3);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    background: rgba(240, 240, 240, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
  }
}
/* 圆点闪烁结束 */
.kzg-header-icon-picture {
  display: flex;
  justify-content: center;
  min-width: 81px;
  height: 46px;
  border-radius: 4px;
  position: absolute;
  color: white;
  background-size: 100% 100%;
  padding: 3px 11px;
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
}
.kzg-header-icon-picture:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: transform 0.5s ease; /* 添加平滑过渡 */
}
/* 悬浮提示 */
.tippy-box[data-theme~="custom-dark"] {
  background-color: #000;
  color: #fff;
}

.tippy-box[data-theme~="custom-dark"][data-placement^="top"]
  > .tippy-arrow::before {
  border-top-color: #000;
}

.tippy-box[data-theme~="custom-dark"][data-placement^="bottom"]
  > .tippy-arrow::before {
  border-bottom-color: #000;
}
.kzg-enquiry {
  font-size: 16px;
  display: flex;
  width: 100%;
  margin: 5px 0;
  align-items: center;
  color: #e45050;
  cursor: pointer;
}
/* 无产品时的显示 */
.kzg-no-product {
  grid-column: 1 / -1;
  width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 30px auto;
}
.kzg-no-product-icon {
  width: 100%;
  height: 195px;
  background: url("/event/static/images/control-cabinet/kzg-no-product-icon.png")
    no-repeat top center;
}
.kzg-no-product-text {
  font-size: 16px;
  margin: 10px 0;
}
.kzg-login-view-price {
  cursor: pointer;
  color: #e45050;
  font-size: 14px;
}