.header {
  background: #0566B3; 
}

.header .containers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0566B3;
  line-height: 60px;
  height: 60px;
}

a:hover{
  text-decoration: none;
}


.header .left {
  display: flex;
}

.header .nav-menu {
  display: flex;
  gap: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header .nav-menu li {
  color: #ACDAFF;
  font-size: 16px;
  cursor: pointer;
}
.header .nav-menu li i{
  color:#fff;
}

.header .nav-menu li:hover,.header .nav-menu li.active{
  color: #fff
}
.header .left img {
  width: 125px;
  height: 38px;
}

.header .right a {
  color: #ACDAFF;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

.header .right .login {
  padding-right: 12px;
  border-right: 1px solid #C8C8C8;
  margin-right: 12px;
}

.grid-menu {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px;
    background: #fff;
    position: absolute;
    width: 100%;
    z-index: 9999;
    overflow: auto;
}

    .grid-menu.show {
        display: grid;
    }

.grid-item {
    padding: 3px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    flex-direction: column; /* 讓圖片在上、文字在下 */
    align-items: center;
    gap: 3px; /* 圖片與文字距離 */
}

.grid-item span {
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.grid-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media only screen and (max-width: 767px) {
  .header .mobile {
    display: flex;
    background: #fff !important;
    height: 0.8rem;
    border-bottom: 1px solid #e1e1e1;
    align-items: center;
    padding: 0 0.1rem;
  }

  .header .mobile img {
    width: 0.4rem;
  }

  .header .mobile span {
    font-size: 0.32rem;
    color: #333;
  }

    .record-buttons {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .record-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 30px;
        cursor: pointer;
    }

    .record-btn.favorite-btn {
        margin-left: 5px;
    }

    .record-btn i {
        font-size: 18px;
        margin-top: 5px;
        color: #555;
        transition: color 0.2s;
    }

    .record-btn .btn-text {
        font-size: 10px;
        color: #333;
    }
}
