* {
    margin: 0;
    padding: 0;
    font-family: "Yu Gothic UI";
}

.top_search {
    position: fixed;
    margin-left: 20vw;
    width: 79vw;
    margin-top: 1vh;
    margin-right: 1vw;
    top: 0;
    left: 0;
    height: 5vh;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 100;
    box-shadow: 0px 6px 5px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.top_search input {
    width: 97%;
    height: 60%;
    margin: 10px 10px;
    font-size: 16px;
    background-color: #fff;
    border: none;
    outline: none;
    border-radius: 5px;
    padding: 0 8px;
}

.left_menu ul.menu_root {
    top: 0;
    left: 0;
    width: 18vw;
    height: calc(100vh - 20px);
    background-color: #fff;
    z-index: 100;
    box-shadow: 6px 0px 5px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: block;
    flex-direction: column;
}

.left_item {
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition-duration: 0.5s;
    transform: none;
}

.left_item:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.left_item.active {
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

.left_icon {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.3);
}

#left_icon1 {
    background-image: url('https://blog-image-1316340567.cos.ap-shanghai.myqcloud.com/blog/music/ai.webp');
}

.item_context {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left_menu .sub_menu {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height .2s ease-out, opacity .12s ease-out, padding .2s ease-out, visibility 0s .2s;
    width: 100%;
    box-sizing: border-box;
}

.left_item.open>.sub_menu {
    max-height: 360px;
    width: 100%;
    display: block;
    opacity: 1;
    visibility: visible;
    padding: 8px;
    transition: max-height .28s ease-in, opacity .16s ease-in, padding .28s ease-in, visibility 0s 0s;
}
.left_menu .sub_menu li {
    height: 36px;
    width: 100%;
    display: block;
    list-style: none;
    margin: 6px 0;
    padding: 0;
    border-radius: 10px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color .18s ease, opacity .12s ease;
    opacity: 0;
}
.left_item.open>.sub_menu li {
    opacity: 1;
    transition: background-color .18s ease, opacity .16s ease .08s;
}
.left_item.open>.sub_menu li:hover{
    background-color: rgba(55, 177, 140, 0.5);
}
.left_menu .sub_menu li > a {
    color: inherit !important;
    text-decoration: none !important;
    background: transparent;
    display: block;
    outline: none;
}
.left_menu .sub_menu li > a:hover,
.left_menu .sub_menu li > a:focus,
.left_menu .sub_menu li > a:active,
.left_menu .sub_menu li > a:visited {
    color: inherit !important;
    text-decoration: none !important;
    outline: none;
}
#panel{
    position: fixed;
    left: 20vw;
    top: 7vh;
    width: 79vw;
    height: calc(100vh - 8vh);
    margin: 0 1vw 1vh 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0px 6px 5px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 50;
}

#waifu {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    font-size: 0;
    transition: all 0.3s ease-in-out;
}

#waifu:hover {
    transform: translateY(-10px);
}

#waifu-tool {
    color: #5b6c7d;
    opacity: 0;
    transition: opacity 0.3s;
}

#waifu:hover #waifu-tool {
    opacity: 1;
}

#waifu-tips {
    position: fixed;
    bottom: 45px;
    /* left: 20px; */
    max-width: 18vw;
    min-height: 70px;
    padding: 15px 15px;
    border: 1px solid rgba(55, 177, 140, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 15px rgba(55, 177, 140, 0.2);
    font-size: 14px;
    line-height: 24px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: "Yu Gothic UI", sans-serif;
    word-wrap: break-word;
    z-index: 998;
}

#waifu-tips.active {
    opacity: 1;
    transition: opacity 0.3s;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(55, 177, 140, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 177, 140, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 6px rgba(55, 177, 140, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(55, 177, 140, 1);
}

/* 针对 panel 区域的滚动条 */
#panel::-webkit-scrollbar {
    width: 10px;
}

#panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(55, 177, 140, 0.7), rgba(55, 177, 140, 0.5));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(55, 177, 140, 0.9), rgba(55, 177, 140, 0.7));
    box-shadow: 0 0 8px rgba(55, 177, 140, 0.6);
}
