* {
    user-select:none;
}
body,html {
    margin:0;
    padding:0;
    overflow:hidden;
    overflow-x:hidden;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}
#app {
    height:100dvh;
    overflow:hidden;
    display:flex;
    flex-direction:row;
    position:relative;
    isolation:isolate;
    overflow-x:hidden;
    touch-action: pan-y;
}
#toggleButton {
    position:absolute;
    top:30px;
    right:30px;
    padding:1em;
    background-color:rgba(255,255,255,0.0);
    background-image:url("/styles/images/371da39ee8344d4fffa674777697a6fa3768.png");
    background-size:cover;
    background-position:center;
    border:none;
    cursor:pointer;
    z-index:1;
}
#bingcopyright {
            position: fixed;
            top: 30px;
            right: 60px;
            color: white;
            background: rgba(0, 0, 0, 0.2);
            padding: 5px 10px;
            border-radius: 5px;
            opacity: 0; 
            visibility: hidden; 
            z-index: -1;
            transition: opacity 0.9s ease, visibility 0.9s ease; 
}

#bingcopyright.no-blur {
        opacity: 1; 
        visibility: visible; 
}
#app::before {
    content: "";
    position: absolute;
    left: -20px;
    top: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    filter: grayscale(80%) blur(10px);
    z-index: -1;
    transition: all 1s ease-in-out;
    opacity: 1;
}
#app.no-blur::before {
    filter: none;
    transition: all 1s ease-in-out;
}
.main-container {
    height:100%;
    width:100%;
    overflow-y:hidden;
    overflow-x:hidden;
    display:flex;
    flex-direction:row;
    background-color:rgba(0,0,0,0.2);
    transition: opacity 1.5s ease-in-out;
}

.jinrishici, #search_link {
    text-decoration: none;
    color: white;
}

.jinrishici {
    text-align: center;
    font-size: 1.1em;
    font-family: sans-serif;
    margin-left: 5%;
    margin-right: 5%;
}

.jinrishici #poem_info {
    font-size:inherit;
    /* 默认继承父元素字号 */
}

#search_link {
    text-decoration:none;
    color:white;
}
::-webkit-scrollbar {
    width:8px;
    background-color:transparent;
}

::-webkit-scrollbar-thumb {
    transition:background-color linear 1000ms;
    background-color:rgba(68,73,93,0.79);
}
::-webkit-scrollbar-thumb:hover {
    transition:background-color linear 1000ms;
    background-color:rgba(94,102,128,0.79);
}

.center-container {
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    overflow:auto;
    overflow-x:hidden;
    touch-action: pan-y;
}
.search-box {
    margin-top:10%;
    margin-bottom:80px;
    margin-left:auto;
    margin-right:auto;
    height:var(--height);
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
}
.search-engins {
    position:absolute;
    width:75px;
    align-items:center;
    justify-content:center;
    height:65px;
    display:flex;
    border-bottom-left-radius:10px;
    border-top-left-radius:10px;
    z-index:100;
}
.search-engins .selected-icon {
    height:40px;
    width:40px;
    position:absolute;
    background-size:50%;
    background-position:center;
    background-repeat:no-repeat;
    align-content:center;
}
.selected-icon {
    display: inline-block; /* 确保元素可以应用变换 */
    transition: transform 0.5s;
}

.search-engins .engine-name {
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:absolute;
    font-size:15px;
    font-weight:600;
    flex-grow:1;
    text-align:center;
}
.search-box .engine-box {
    max-width:290px;
    background-color:rgba(10,10,10,0.149);
    backdrop-filter:blur(30px);
    position:absolute;
    top:5em;
    left:0px;
    border-radius:10px;
    z-index:99;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    box-sizing:border-box;
    padding-bottom:20px;
    justify-content:left;
    outline:none;
}
.not_show {
    visibility:hidden;
    height:1px !important;
}
.engine-box.show {
    animation:show-engine-box 1 300ms linear;
}
@keyframes show-engine-box {
    from {
    opacity:0;
    transform:translateY(10px);
}
to {
    opacity:1;
    transform:translateY(0)
}
}.engine-box .engine {
    width:40px;
    height:40px;
    font-size:15px;
    margin:10px 20px;
}
.engine.not_show {
    margin:0;
}
.engine-box .engine:hover {
    opacity:1;
    transition:all linear 200ms;
}
.engine-box .engine .icon {
    width:60px;
    height:60px;
    background-size:40%;
    background-repeat:no-repeat;
    background-position:center;
    border-radius:10px;
}
.engine-box .engine .name {
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
    flex-grow:1;
    margin-right:15px;
    color:rgba(255,255,255);
    font-weight:600;
    letter-spacing:1px;
    font-size:14px;
}
#search-input {
    --height:75px;
    border:none;
    border-radius:10px;
    outline:none;
    height:var(--height);
    width:50vw;
    margin-left:auto;
    margin-right:auto;
    padding-left:65px;
    padding-right:65px;
    box-sizing:border-box;
    font-size:16px;
    background-color:rgba(255,255,255,0.637);
    backdrop-filter:blur(20px);
    font-weight:600;
}

.search-btn {
    position:absolute;
    right:0;
    background-image:url(/styles/images/search.png);
    background-size:30%;
    width:70px;
    height:75px;
    top:0;
    background-position:center;
    background-repeat:no-repeat;
    border-radius:10px;
    transition:all linear 200ms;
    z-index:100;
}

/* 定义晃动效果的 CSS */
@keyframes shake {
    0%,100% {
    transform:translateX(0);
}
20%,60% {
    transform:translateX(-10px);
}
40%,80% {
    transform:translateX(10px);
}
}

.shake {
    animation:shake 0.5s;
}
.sites-container {
    padding: 0 5% 10% 5%;
    width: 100%;
    box-sizing: border-box;
    align-content: center;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: opacity 0.9s ease;
}
.kind-name {
    margin-top:20px;
    font-size:17px;
    color:white;
    font-weight:600;
    height:40px;
    line-height:40px;
    display:flex;
    padding-left:50px;
}
.kind-name .icon {
    width:30px;
    height:30px;
    background-color:rgb(255,255,255,0.8);
    background-size:cover;
    margin-right:10px;
    border-radius:100%;
    margin-top:auto;
    margin-bottom:auto;
}
.sites-box {
    width: 100%;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}
.site-box {
    margin: 0;
    flex-direction: column;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    opacity: 1;
}
.site-box:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.site-box .icon {
    height: 60px;
    width: 60px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgb(255,255,255,0.8);
    margin: 10px auto;
    border-radius: 15%;
    background-image: url('loading.svg');
}
.site-box .info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.site-box .name {
    margin-top: 10px;
    color: white;
    font-weight: 200;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 5px;
    box-sizing: border-box;
}
.site-box .describe {
    margin-top:3px;
    color:rgb(201,201,201);
    flex-grow:1;
    width:calc(100% / .8);
    height:fit-content;
    font-size:18px;
    line-height:24px;
    transform:scale(.7);
    transform-origin:left top;
    margin-right:10px;
    word-break:break-all;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-weight:200;
}
.site-box.not_show {
    margin-top:0;
    margin-bottom:0;
}
.advice_box {
    width:100%;
    background-color:rgba(12,12,12,0.607);
    backdrop-filter:blur(20px);
    position:absolute;
    top:50px;
    left:0px;
    border-radius:10px;
    z-index:99;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    outline:none;
    height:fit-content;
    overflow:hidden;
}
.advice_box .advice_item {
    color:rgb(228,228,228);
    font-weight:600;
    font-size:14px;
    padding-left:30px;
    padding-top:10px;
    padding-bottom:10px;
    padding-right:10px;
    transition:background-color ease-out 60ms;
}
.advice_box .advice_item.selected {
    transition:background-color ease-in 60ms;
    background-color:rgba(0,83,238,0.609);
}
/*显示与隐藏眼的样式*/
.site-box {
    display:block;
}
.kind-name {
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:9rem;
}
.icon-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 2rem;
}
.kind-name .eye,
.kind-name .eye-slash {
    width: 1rem;
    height: 1rem;
    margin-left: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    filter: brightness(0) invert(1);
    position: absolute;
    right: 0;
}
.kind-name .eye {
    opacity: 1;
    transform: rotate(0);
}
.kind-name .eye-slash {
    opacity: 0;
    transform: rotate(0);
}
.kind-name.collapsed .eye {
    opacity: 0;
}
.kind-name.collapsed .eye-slash {
    opacity: 1;
}
.collapsed .eye {
    transform: rotate(-90deg);
}
.collapsed .eye-slash {
    transform: rotate(90deg);
}
.collapsed .sites-box {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    transform: scaleY(0);
}
@keyframes keyframes-fill {
    0% {
    transform:scale(0);
    opacity:0;
}
50% {
    transform:scale(1.2);
}
}
@media (max-width:768px) {
    #search-input {
        width:90vw;
        font-size:14px;
        }
    #toggleButton {
        display:none;
    }
    .jinrishici #poem_info {
        font-size:12px;
        /* 在手机设备上设置span的字号为12px */
    }
    .jinrishici::before {
        content:'';
        /* 换行符 */
            white-space:pre;
        /* 保持换行符 */
    }
    .jinrishici a {
        display:block;
        /* 使链接成为块级元素 */
    }
    .site-box .icon {
        height: 40px;
        width: 40px;
    }
    
    .site-box .name {
        font-size: 14px;
    }
    .sites-box {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 8px 0;
    }
    
    .site-box {
        padding: 5px;
    }

    .site-box .icon {
        height: 40px;
        width: 40px;
    }
    
    .site-box .name {
        font-size: 12px;
        margin-top: 8px;
    }
}

/* 针对大屏幕的媒体查询 */
@media (min-width: 1920px) {
    .site-box .icon {
        height: 70px;
        width: 70px;
    }
    
    .site-box .name {
        font-size: 16px;
        margin-top: 15px;
    }
    .sites-box {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 30px;
        padding: 20px;
    }
    
    .site-box {
        padding: 15px;
    }
}

/* 针对超大屏幕的媒体查询 */
@media (min-width: 2560px) {
    .site-box .icon {
        height: 80px;
        width: 80px;
    }
    
    .site-box .name {
        font-size: 18px;
        margin-top: 20px;
    }
    .sites-box {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 35px;
    }
    
    .site-box {
        padding: 20px;
    }
}

/* 添加鼠标悬停效果 */
.kind-name:hover {
    transform: translateX(5px);
    transition: transform 0.2s ease-in-out;
}

/* 添加点击涟漪效果 */
.kind-name {
    position: relative;
    overflow: hidden;
}

.kind-name::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    left: 0;
    transform: scale(0);
    opacity: 0;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.kind-name:active::after {
    transform: scale(1);
    opacity: 1;
}

/* 添加展开/折叠时的动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.sites-box:not(.collapsed) {
    animation: slideDown 0.3s ease-out;
}

.collapsed .sites-box {
    animation: slideUp 0.3s ease-out;
}

/* 修改折叠状态的样式 */
.kind-name.collapsed + .sites-box {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    visibility: hidden;
    transform: translateY(-20px) scaleY(0);
}

/* 修改图标动画 */
.kind-name .eye,
.kind-name .eye-slash {
    width: 1rem;
    height: 1rem;
    margin-left: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    filter: brightness(0) invert(1);
    position: absolute;
    right: 0;
}

.eye-slash {
    opacity: 0;
    transform: rotate(-90deg);
}

.kind-name.collapsed .eye {
    opacity: 0;
    transform: rotate(90deg);
}

.kind-name.collapsed .eye-slash {
    opacity: 1;
    transform: rotate(0deg);
}

/* 添加鼠标悬停效果 */
.kind-name {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kind-name:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* 添加点击涟漪效果 */
.kind-name {
    position: relative;
    overflow: hidden;
}

.kind-name::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    left: 0;
    transform: scale(0);
    opacity: 0;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kind-name:active::after {
    transform: scale(1);
    opacity: 1;
}