@font-face {
    font-family: SourceHanSansCN;
    src: url(/2025/legacy-override-styles/assets/sourcehansanssc-regular.woff2) format("woff2")
}

.contents {
  margin-top: 10vw;
}

.navbar, .menu-container, .footer-container {
  font-size: 22px;
  a {
    font-size: 22px;
    color: #00328B;
  }
  a:link {
    color: #00328B;
  }
  
  /* visited link */
  a:visited {
    color: #00328B;;
  }
  
  /* mouse over link */
  a:hover {
    color: #00328B;;
  }
  
  /* selected link */
  a:active {
    color: #00328B;
  }
}

.navbar {
  display: flex;
  flex-direction: column;
  height: 10vw;
  width: 100vw;
  z-index: 100;
  background: white;
  position: fixed;
  top: 0;
  box-shadow: 0 0 4px 1px #0003;
 
  
  .navbar-container {
    width: 100vw;
    height: 100%;
    position: relative;
    z-index: 1;
    .navbar-content {
      height: 100%;
      display: flex;
      flex-direction: row;
      .left {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .menu-icon {
          height: 100%;
          display: flex;
          align-items: center;
          .menu-icon-img {
            height: 40%;
            width: auto;
            margin-left: 0.5em;
          }        

          .menu-close-icon {
            position: absolute;
            top: 0;
            left: 0;
            width: 2em;
            height: 2em;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #00328B;
            background: rgba(255, 255, 255, 0.5);
            &::after {
              content: '\2715';
              font-size: 1em;
              color: #00328B;
            }
          }
        }
      }
      .center {
        flex: 2;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        .logo-icon {
          img {
            width: auto;
            height: 12vw;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
          }
        }
      }
      .right {
        flex: 1;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 10%;
        .gift-icon {
          height: 50%;
          .gift-icon-img {
            width: auto;
            height: 100%;
          }
        }
        .club-icon {
          height: 50%;
          .club-icon-img {
            width: auto;
            height: 100%;
          }
        }
      }
    }
  }
}

@keyframes menuSlideIn {
  from {
    top: -100%;
  }
  to {
    top: 0;
  }
}

.menu-container {
  position: absolute;
  display: none;
  opacity: 0;
  width: 100%;
  top: 10vw;
  transition: opacity 0.5s ease-in;
  font-family: 'SourceHanSansCN';
  
  .menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  &.active {
    display: block;
    opacity: 1;
    .menu-content {
      animation: menuSlideIn 0.3s ease forwards;
    }
  }
  
  .menu-content {
    position: relative;
    top: -100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    padding: 4vw 4vw 8vw;
    backdrop-filter: blur(2px);
    
    .menu-item {
      position: relative;
      width: 100%;
      font-size: 1em;
      color: #00328B;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;

      &::before {
        content: '';
        pointer-events: none;
        position: absolute;
        top: 2em;
        right: 1em;
        width: 0.75em;
        height: 0.75em;
        font-size: 0.75em;
        color: #00328B;
        border-top: 1px solid rgb(0, 50, 138, 0.75);
        border-right: 1px solid rgb(0, 50, 138, 0.75);
        transform: rotateX(0) rotateY(0) rotateZ(135deg);
        transition: transform 0.3s ease;
      }
      &.active {
        &::before {
            transform: rotateX(180deg) rotateY(0) rotateZ(135deg);
        }
      }

      &:not(:has(.sub-menu-content)) {
        &::before {
          display: none;
        }
      }

      .menu-item-text {
        padding: 0.5em 0 0;
        border-bottom: 0.5px solid rgb(0, 50, 138, 0.75);
        height: 3em;
        display: flex;
        align-items: flex-end;
      }
      .sub-menu-content {
        display: none;
      }
      &.active {
        .sub-menu-content {
          display: flex;
          flex-direction: column;
          gap: 0.2em;
          padding: 0.5em 0 0;
          border-radius: 0.5em;
          margin-bottom: 0.5em;
          .sub-menu-item {
            height: 2em;
            display: flex;
            align-items: flex-end;
            .sub-menu-item-text {
              font-size: 0.9em;
              line-height: 1.5em;
              color: #00328B;
            }
            &:last-child {
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }
}

.footer-container {
  width: 100%;
  height: auto;
  
  .links {
    padding: 4vw;
    background: #00328B;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4vw;    
    .links-row {
      white-space: nowrap;
      width: 100%;
      height: 3em;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      gap: 4vw;
      
      .links-item {
        font-size: 1em;
        line-height: 1em;        
        text-decoration: underline;        
        text-decoration-thickness: 0.1em;
        text-underline-offset: 0.3em;
        padding-bottom: 0.2em;

        a {
          color: white;
          text-decoration: none;
        }

        &.left {
          text-align: left;
        }
        &.center {
          text-align: center;
        }
        &.right {
          text-align: right;
        }
        &.full-width {
          flex: 1;
          text-decoration: none;
          border-bottom: 0.1em solid #fff;
          position: relative; 

          &.with-arrow {
            &::after {
              content: '';
              display: inline-block;
              position: absolute;
              right: 0;
              bottom: 0.2em;           
              color: #fff;
              width: 0.6em;
              height: 0.6em;
              border-top: 0.1em solid #fff;
              border-right: 0.1em solid #fff;
              transform: rotate(45deg);
            }    
          }     
        }
      }

      .links-content {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: row;        
        align-items: center;
        gap: 0.2em;
        .link-image {
          flex: 1;
          position: relative;
          display: flex;
          flex-direction: row;
          align-items: center;
          .store-icon {
            position: relative;
            width: 100%;
            height: 52px;
            overflow: hidden;
            background-color: #fff;
            border-radius: 8px;
               
            img {
              width: 100%;
              height: 100%;
            }
          }
          
        }
      }
    }
    
    .follow-us {
      width: 100%;
      display: flex;
      align-items: center;
      margin: 4vw 0;

      .follow-us-title {
        font-size: 0.75em;
        line-height: 1em;
        text-align: center;
        white-space: nowrap;
        margin-right: 1.5em;
      }
      .follow-us-icons {
        flex: 1;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        img {
          width: auto;
          height: 8vw;
        }        
        .follow-us-icon {
          width: 8vw;
          height: 8vw;
          background-size: 200% 100%;
          background-repeat: no-repeat;
          background-position: left center;
        }
      }
    }
  }
  
  .footer-bottom {
    width: 100%;
    margin-bottom: 4vw;
    background: white;
    color: #666;
    text-align: center;
    font-size: 0.75em;
    line-height: 1.8em;
    
    .footer-logo {
      width: auto;
      height: 200px;
    }
    .footer-beian {
      color: #666;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        width: auto;
        height: 1em;
        margin-right: 0.25em;
        vertical-align: middle;
      }
    }
  }

  .popup {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;       

    .popup-bg {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      background-color: rgba(0, 0, 0, 0.5);
    }

    .popup-content {
      width: 80%;
      position: relative;
      border-radius: 0.5em;
      overflow: hidden;
      box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.4);
      .popup-content-close {
        width: 2em;
        height: 2em;
        position: absolute;
        top: 1em;
        right: 1em;
      }

      .popup-content-image {
        width: 100%;
        height: auto;
        vertical-align: bottom;
      }
     
      .popup-content-text {
        font-size: 0.8em;
      }
    }
  }

  .popup.active {
    display: flex;
  }
}