.col-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 35vh;
}
.tab-pane {
  display: inline-block;
}
.col-tabs input[type="radio"] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
.col-tabs input[name="coltab"] ~ label:after {
  display: none !important;
}

.col-tabs input[name="coltab"] ~ label:before {
  display: none !important;
}

.col-tabs .tab-item {
  user-select: none;
  height: 7vh;
  line-height: 34px;
  color: #fff !important;
  font-size: 0.22rem !important;
  cursor: pointer;
  padding: 5px;
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0vh;
}

.col-tabs .tab-content {
  position: absolute;
  border: 1px solid #eee;
  padding: 20px;
  left: 35%;
  top: 0;
  bottom: 0;
  right: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.col-tabs input[name="coltab"]:checked + .tab-item {
  /**导航选中状态**/
  background: #1e60ac;
  color: #fff;
}
.col-tabs input[name="coltab"]:checked + .tab-item + .tab-content {
  /**当前内容切换**/
  z-index: 1;
}

/**给导航添加横条的缩放效果**/
.col-tabs .tab-item:after {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  background: #1e60ac;
  left: 0;
  bottom: 2px;
  transition: 0.3s;
  transform: scaleX(0);
}

.col-tabs input[name="coltab"]:checked + .tab-item:after {
  transform: scaleX(1);
}

/**给内容区域添加一个淡入淡出的效果**/
.col-tabs .tab-content {
  position: absolute;
  background: #fff;
  padding: 20px;
  left: 35%;
  top: 0;
  bottom: 0;
  right: 0;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(50px);
}

.col-tabs input[name="coltab"]:checked + .tab-item + .tab-content {
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
}
