@charset "utf-8";

:root {
    --body-background-color: #333333;
    --main-text-color: #efefef;
    --main-text-form-color: #333333;
    --main-text-form-hover-color: #efefef;
    --main-background-color: #00000040;
    --main-background-hover-color: #acacac60;
    --main-background-active-color: #8a8a8a80;
    --main-button-color: #ffffff40;
    --main-button-hover-color: #00000030;
    --main-button-active-color: #00000020;
    --main-input-color: #ffffff30;
    --main-input-text-placeholder-color: #ffffff70;
    --main-text-shadow: 0px 0px 8px #00000066;
    --main-search-shadow: 0 0 20px #0000000d;
    --main-search-hover-shadow: 0 0 20px #00000033;
    --border-bottom-color-hover: #efefef80;
    --border-bottom-color-active: #efefef;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--body-background-color);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    font-family: 'MiSans', sans-serif;
}

*,
a,
p {
    text-decoration: none;
    transition: 0.3s;
    color: var(--main-text-color);
    user-select: none;
}

section {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    min-height: 600px;
    opacity: 0;
    transition: ease 1.5s;
}

.noclickn {
    pointer-events: none;
}

.bg-all {
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .25s;
}

#bg {
    transform: scale(1.10);
    filter: blur(10px);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s, transform .25s, filter .25s;
    backface-visibility: hidden;
}

img.error {
    display: none;
}

.cover {
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .5) 100%), radial-gradient(rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, .3) 166%);
    transition: .25s;
}

#content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.con {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.sou {
    max-width: 680px;
    width: calc(100% - 60px);
    margin-top: -128px;
    animation: fade;
    -webkit-animation: fade 0.5s;
    -moz-animation: fade 0.5s;
    -o-animation: fade 0.5s;
    -ms-animation: fade 0.5s;
}

.box .all-search {
    opacity: 0;
    transition: 0.3s;
}

.onsearch .all-search {
    background-color: var(--main-text-form-hover-color);
    transform: translateY(-140%);
    transition: ease 0.3s !important;
}

.onsearch #bg {
    transform: scale(1.08) !important;
    filter: blur(10px) !important;
    transition: ease 0.3s !important;
}

.onsearch #icon-se,
.onsearch #icon-sou {
    color: var(--main-text-form-color) !important;
    transition: ease 0.5s;
}

.onsearch .tool-all {
    transform: translateY(-140%) !important;
}

.onsearch .search-engine {
    transform: translateY(-38%) !important;
}

.tool-all {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transform: translateY(-112%);
    z-index: 1;
}

.time {
    color: var(--main-text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#point {
    margin: 0px 4px;
    animation: fadenum 2s infinite;
    -webkit-animation: fadenum 2s infinite;
    -moz-animation: fadenum 2s infinite;
    -o-animation: fadenum 2s linear infinite;
    -ms-animation: fadenum 2s linear infinite;
}

#time_text {
    font-size: 3rem;
    margin: 6px 0px;
    text-shadow: var(--main-text-shadow);
    transition: 0.2s;
}

#time_text:hover {
    cursor: pointer;
    transition: 0.2s;
    transform: scale(1.08);
}

#time_text:active {
    transition: 0.2s;
    opacity: 0.6;
    transform: scale(1.02);
}

#day {
    font-size: 1.15rem;
    opacity: 0.8;
    margin: 4px 0px;
    text-shadow: var(--main-text-shadow);
}

#love_day {
    margin: 2px 0 0;
    text-shadow: var(--main-text-shadow);
}

.poetry {
    max-width: 680px;
    margin-top: 2px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: var(--main-text-shadow);
    opacity: 0.88;
}

.widget-panel {
    width: calc(100% - 60px);
    max-width: 760px;
    display: flex;
    gap: 12px;
    margin: 132px 0 24px 0;
    z-index: 1;
    align-items: stretch;
}

.widget-card {
    flex: 1;
    min-height: 156px;
    padding: 18px 20px;
    border-radius: 20px;
    background: var(--main-background-color);
    box-shadow: var(--main-search-shadow);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card-compact {
    min-height: auto;
    padding: 12px 16px;
    flex: 0 0 240px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.widget-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.widget-title {
    font-size: 0.95rem;
    opacity: 0.8;
}

.countdown-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 14px;
}

.countdown-days {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
    text-shadow: var(--main-text-shadow);
}

.countdown-meta {
    opacity: 0.82;
    font-size: 0.9rem;
}

.search,
.wd,
.s {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
    display: flex;
    justify-content: center;
    animation: fade;
    -webkit-animation: fade 0.5s;
    -moz-animation: fade 0.5s;
    -o-animation: fade 0.5s;
    -ms-animation: fade 0.5s;
}

.wd::-webkit-input-placeholder {
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.all-search {
    display: flex;
    align-items: center;
    width: 100%;
    height: 43px;
    border-radius: 30px;
    color: var(--main-text-color);
    background-color: var(--main-background-color);
    box-shadow: var(--main-search-shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: 0.5s ease;
}

.all-search:hover {
    box-shadow: var(--main-search-hover-shadow);
}

.con .sou form .wd {
    width: 100%;
    height: 100%;
    line-height: 100%;
    text-indent: 4px;
    font-size: 1.25rem;
    color: var(--main-text-form-color);
}

.sou form .se,
.sou form .s {
    width: 40px;
    height: 40px;
    display: flex;
    padding: 10px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

#icon-se,
#icon-sou {
    font-size: 1.25rem;
    color: #efefef;
}

.sou form .se {
    transition: 0.3s;
    border-radius: 0px 30px 30px 0px;
}

.sou form .se:hover {
    transition: 0.3s;
    background: var(--main-background-color);
    border-radius: 0px 30px 30px 0px;
}

.sou-button {
    transition: 0.3s;
    border-radius: 30px 0px 0px 30px;
}

.sou-button:hover {
    transition: 0.3s;
    background: var(--main-background-color);
    border-radius: 30px 0px 0px 30px;
}

.all-search input::-webkit-input-placeholder,
.all-search input::-moz-placeholder,
.all-search input:-ms-input-placeholder {
    color: var(--main-text-color);
    text-align: center;
}

.search-engine {
    position: absolute;
    margin-top: 10px;
    margin-left: 5px;
    padding: 10px;
    color: var(--main-text-color);
    background-color: var(--main-background-color);
    box-shadow: var(--main-search-shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: none;
    z-index: 999;
    animation: fade;
    -webkit-animation: fade 0.5s;
    -moz-animation: fade 0.5s;
    -o-animation: fade 0.5s;
    -ms-animation: fade 0.5s;
}

.search-engine-list {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
    height: 152px;
    overflow-y: auto;
    overflow-x: hidden;
}

.se-li {
    flex: 1;
    width: 23%;
    min-width: 23%;
    max-width: 23%;
    width: 100%;
    padding: 8px 0px;
    margin: 1%;
    border-radius: 8px;
    transition: 0.3s;
    background: var(--main-background-color);
}

.se-li:hover {
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    background-color: var(--main-background-hover-color);
}

.se-li-text {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.se-li-text span {
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#keywords {
    position: absolute;
    width: 100%;
    top: 46.5%;
    font-size: small;
    color: var(--main-text-color);
    background-color: var(--main-background-color);
    box-shadow: var(--main-search-shadow);
    border-radius: 8px;
    display: none;
    z-index: 999;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: down 0.5s;
    -webkit-animation: down 0.5s;
    -moz-animation: down 0.5s;
    -o-animation: down 0.5s;
    -ms-animation: down 0.5s;
}

.keyword {
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.3s;
    animation: fade 0.5s;
    -webkit-animation: fade 0.5s;
    -moz-animation: fade 0.5s;
    -o-animation: fade 0.5s;
    -ms-animation: fade 0.5s;
}

.keyword i {
    margin-right: 6px;
    font-size: small;
}

.keyword:hover,
.keyword.choose {
    cursor: pointer;
    transition: 0.3s;
    text-indent: 10px;
    border-radius: 8px;
    background-color: var(--main-background-hover-color);
}

#menu {
    width: 44px;
    height: 44px;
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2000000;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    animation: fade 1s;
    -webkit-animation: fade 1s;
    -moz-animation: fade 1s;
    -o-animation: fade 1s;
    -ms-animation: fade 1s;
}

#menu:hover {
    cursor: pointer;
    background: var(--main-background-color);
}

#menu:active {
    cursor: pointer;
    transform: scale(0.90);
}

#menu i {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.75rem;
    transition: 0.3s;
}

.foot {
    position: absolute;
    bottom: 10px;
    z-index: 1000;
    text-align: center;
    width: 100%;
    height: 20px;
    line-height: 20px;
}

.power {
    color: var(--main-text-color);
    opacity: 0.8;
    font-size: small;
    text-shadow: var(--main-text-shadow);
}

.power a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.power a:hover {
    opacity: 0.85;
}

.site-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -12px);
    min-width: 220px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.38);
    color: var(--main-text-color);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    z-index: 1002;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

::-webkit-scrollbar {
    background-color: transparent !important;
    width: 6px;
}

::-webkit-scrollbar-track {
    display: none;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
    background-color: var(--main-background-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--main-background-active-color);
}

::selection,
::-moz-selection,
::-webkit-selection {
    background: #00000040;
    color: #000000b3;
}

.close_sou {
    width: 100%;
    height: 100%;
    position: absolute;
}
