
.tabs-wrapper {
  position: relative;
  height: 80px;
  margin-bottom: 10px;
  z-index: 20;
}

.tabs {
  position: absolute;
  display: flex;
  height: 60px;
  transition: all 0.3s ease;
  left: 50%;
  transform: translateX(-50%);
  gap: 9vw;
  /*GLS的有獨立設置 margin-top: 85px; 在GLS.css */
}

.tabs a{
    color: white;
    text-decoration: none; 
    font-weight: 400;
}

.tab {
  position: relative;
  width: 115px;
  height: 58px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  line-height: 16px;
  letter-spacing: 0.07em;
  cursor: pointer;
  margin-right: -5px;
  transition: all 0.3s ease;
  border-radius: 15px;
  backdrop-filter: blur(20px);
  color: white;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: none;
  border: 2px solid;
  text-decoration: none;
  
}


.tab:nth-child(1) {
  border-color: #6c8dc4;
  text-shadow: 0 0 5px rgba(108, 141, 196, 0.3);
  box-shadow: 0 0 5px rgba(108, 141, 196, 0.5);
}

.tab:nth-child(2) {
  border-color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  color: #fff;
}

.tab:nth-child(3) {
  border-color: #f4c951;
  text-shadow: 0 0 5px rgba(244, 201, 81, 0.3);
  box-shadow: 0 0 5px rgba(244, 201, 81, 0.5);
}

.tab:nth-child(4) {
  border-color: #e07255;
  text-shadow: 0 0 5px rgba(224, 114, 85, 0.3);
  box-shadow: 0 0 5px rgba(224, 114, 85, 0.5);
}

.tab:hover {
  transform: scale(1.2);
  z-index: 10;
  border: none;
  text-shadow: 0 0 5px black, 0 0 10px black;
}

.tab:nth-child(1):hover {
  background-color: #6c8dc4;
  box-shadow: 0 0 5px #6c8dc4, 
            0 0 10px #6c8dc4, 
            0 0 15px #6c8dc4, 
            0 0 25px #6c8dc4,
            inset 0 0 15px rgba(255, 255, 255, 0.8);
}

.tab:nth-child(2):hover {
  background-color: rgb(245, 245, 245);
  box-shadow: 0 0 5px #ffffff, 
            0 0 10px #ffffff, 
            0 0 15px #ffffff, 
            0 0 25px #ffffff,
            inset 0 0 15px rgba(200, 200, 255, 0.8);
  color: #000;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.tab:nth-child(3):hover {
  background-color: #f4c951;
  box-shadow: 0 0 5px #f4c951, 
            0 0 10px #f4c951, 
            0 0 15px #f4c951, 
            0 0 25px #f4c951,
            inset 0 0 15px rgba(255, 255, 200, 0.8);
  color: #000;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.tab:nth-child(4):hover {
  background-color: #e07255;
  box-shadow: 0 0 5px #e07255, 
            0 0 10px #e07255, 
            0 0 15px #e07255, 
            0 0 25px #e07255,
            inset 0 0 15px rgba(255, 200, 200, 0.8);
}


/* 平板調整 (768px - 1024px) */
@media (max-width: 1024px) {
  .tabs-wrapper {
    height: 70px;
    margin-bottom: 15px;
  }
  
  .tab {
    font-size: 15px; 
    line-height :15px;
    margin-right: 0; 
    border-radius: 12px;
    flex-shrink: 1; 
    min-width: 65px;
  }
  
  .tab:hover {
    transform: scale(1.1);
  }
}

/* 手機調整 (max-width: 768px) */
@media (max-width: 768px) {
  .tabs {
    max-width: calc(100vw - 20px); 
    flex-wrap: nowrap; 
    overflow: visible;
  }
  
  .tab {
    width: 85px;
    height: 45px;
    font-size: 12px;
    line-height: 12px;
    border-radius: 10px;
    min-width: 55px;
    padding: 2px 4px;
  }
  
  .tab:hover {
    transform: scale(1.08);
  }
}
