body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans SC", "Source Sans Pro", Helvetica, Arial, sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.logo {
    margin-left: 20px;
}

.logo img {
    vertical-align: middle;
}

.no-wrap {
  white-space: nowrap;
}

.left-container {
    font-size: 12px;
    text-align: left;
    margin-left: 39px;
    white-space: nowrap;
    flex-grow: 1;
}

.right-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    white-space: nowrap;
}

.search-container {
    position: relative;
    margin-right: 10px;
}

.search-input {
    width: 260px;
    height: 36px;
    border: 1px solid #a0c3ff;
    border-radius: 20px;
    padding: 0 20px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.search-input:focus {
    border-color: #007bff;
}

.search-container .dropdown {
    display:none;
    position: absolute;
    top: 105%;
    left: 0;
    border-top: none;
    border-radius: 4px;
    width: 100%;
    line-height: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color:  #f9f9f9;
    padding: 10px 1px;
    max-height: calc(100vh - 130px); 
    overflow-x: hidden;
}

.search-container .dropdown a {
    display:block;
    width: 100%;
    text-align: left;
    padding-left: 22px;
    text-decoration: none;
    color: #333;
    line-height: 2.5;
    font-size: 14px;
}

.search-container .dropdown a img {
    margin-right: 5px;
    height: 20px;
    vertical-align: middle;
}

.search-container .dropdown a span {
    vertical-align: middle;
    font-size: 13px;
}

.search-container .dropdown a:hover {
    font-weight: bold;
}

.privilege {
    font-size: 15px;
    margin-left: 10px;
    margin-right: 10px;
    text-decoration: none;
    background-image: url("/img/svg/privilege.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 25px;
    color: inherit;
}

.language-container {
    font-size: 15px;
    border-radius: 4px;
    background-image: url("/img/svg/language.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding: 4px 4px 4px 25px;
    position: relative;
    margin: 20px 10px;
}

.language-container a {
    color: inherit;
    text-decoration: none;
}

.language-container .dropdown {
    display:none;
    position: absolute;
    top: 100%; left: 0;
    background-color: #f2f2f2;
    border-radius: 4px;
    width: 100%;
    line-height: 2;
}

.language-container .dropdown a {
    display:block;
    width: 100%;
    text-align: center;
}

.language-container .dropdown a:hover {
    font-weight: bold;
}

.login {
    margin-left: 10px;
    color: #fff;
    background-color: blue;
    border-radius: 20px;
    padding: 10px 30px;
    font-weight: bold;
    text-decoration: none;
}

.login-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding-left: 10px;
    padding-right: 5px;
    position: relative;
  }

.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

.login-avatar .account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 230px);
    right: 0;
    transform: translateY(-100%);
    background-color: #f2f2f2;
    border-radius: 8px;
    padding: 15px;
    padding-bottom: 0px;
    z-index: 1;
}

.login-avatar .account-show::before {
    content: "";
    position: absolute;
    top: -20px;
    right: 19px;
    transform: none;
    border: 10px solid transparent;
    border-bottom-color: #f2f2f2;
}

.login-avatar .account-show {
    display: block;
  }

.login-avatar .account-show a {
  color: #000000; 
  text-decoration: none; 
}

.login-avatar .account-show a:hover {
  font-weight: bold;
}

.login-avatar .account-show .renew-vip, .login-avatar .account-show .upgrade-to-vip {
    background-color: #F9A632;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 32px;
}

.login-avatar .account-show .renew-vip a, .login-avatar .account-show .upgrade-to-vip a {
    color: #fff;
}

.login-avatar .account-show .account {
    background-image: url("/img/svg/account.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 30px;
    margin-left: 5px;
}

.login-avatar .account-show .logout {
    background-image: url("/img/svg/logout.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 30px;
    margin-left: 5px;
}

.content {
    margin-top: 80px;
    display: flex;
    flex-wrap: nowrap;
    height: calc(100vh - 80px);
}

.left {
    width: 200px;
    background-color: #fff;
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}

.navigation {
    list-style: none;
    padding: 25px;
    margin: 20px 0;
}

.navigation li {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.navigation li.active {
    background-color: #eee;
}

.navigation li:hover {
    background-color: #eee;
    border-color: #09f;
}

.navigation li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.navigation li a span {
    min-width: 100px;
    text-align: left;
}

.navigation li a img {
    width: 20px;
    height: 20px;
    margin-right: 16px;
}

.navigation li.active a {
    color: #417ff9;
}

.navigation li.active::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 100%;
    margin-right: 10px;
    background-color: #ccc;
    border-radius: 5px 0 0 5px;
}

.navigation li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 100%;
    margin-right: 10px;
    background-color: transparent;
    border-radius: 0;
}

.right {
    flex-grow: 1;
    background-color: #f9f9f9;
    margin-left: 200px;
    padding: 10px 30px;
    overflow-y: auto;
}

.right h3 {
    color: #686868;
}

.square-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;    margin-top: 10px;
}

.square {
    font-size: 14px;
    width: 150px;
    height: 150px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.square a {
    color: rgb(26, 26, 26);
    text-decoration: none;
}

.square a:hover {
    color: #485fc7;
    text-decoration: none;
}

.square img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.square span {
    display: block;
    text-align: center;
}

@media (max-width: 600px) {
  .privilege {
    display: none;
  }
  .language-container {
    display: none;
  }    

  .search-input {
    width: 130px;  
  }
}

@media (max-width: 768px) {
  .search-input {
    width: 130px;
  }
}