/*
created by
TheSmallHanCat
Koyuki

Nekoria / AList optimized edition
用于文件目录美化以及背景图

Desktop:
https://nekoria.xyz/api/h

Mobile:
https://nekoria.xyz/api/v
*/


/* =========================================================
   Desktop background
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;

    background-image: url('https://nekoria.xyz/api/h');

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    background-attachment: fixed;

    background-color: #f2f6fc;
}


/* 手机 / 平板竖屏 */

@media screen and (max-width: 1024px) and (orientation: portrait) {

    body {
        background-image: url('https://nekoria.xyz/api/v');

        background-position: center center;

        background-attachment: scroll;
    }
}


/* 手机 / 平板横屏 */

@media screen and (max-width: 1024px) and (orientation: landscape) {

    body {
        background-image: url('https://nekoria.xyz/api/h');

        background-position: center center;

        background-attachment: scroll;
    }
}

/* =========================================================
   Background animation
   ========================================================= */

@keyframes gradientBG {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* =========================================================
   Flying fish
   ========================================================= */

.fish-container {
    margin: 0;
    padding: 0;

    background-color: transparent;

    width: 100%;
    height: 200px;

    z-index: -1;

    position: fixed;

    bottom: 0;
    left: 0;

    opacity: 0.5;

    pointer-events: none;
}


/* 手机端缩小鱼动画区域，减少遮挡和性能消耗 */

@media screen and (max-width: 768px) {

    .fish-container {
        height: 120px;
        opacity: 0.32;
    }
}


/* =========================================================
   AList interface transparency
   ========================================================= */

.hope-c-PJLV-igScBhH-css {
    background-color: rgba(255, 255, 255, 0.8) !important;

    justify-content: center;
}


.hope-c-PJLV-ijgzmFG-css {
    opacity: 0.8 !important;

    justify-content: center;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.hope-c-PJLV-iigjoxS-css {
    opacity: 0.7;

    justify-content: center;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.hope-c-PJLV-ikEIIxw-css {
    opacity: 0.7;

    justify-content: center;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.hope-c-PJLV-iiuDLME-css {
    opacity: 0.7;

    justify-content: center;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.hope-c-PJLV-ikSuVsl-css {
    opacity: 0.7;

    justify-content: center;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


.hope-c-PJLV-ikaMhsQ-css {
    --hope-colors-background: #ffffff00;
}


.hope-c-PJLV-idaeksS-css {
    opacity: 0.6;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 7px;
}


.hope-c-PJLV-ifiEvmt-css {
    opacity: 0.7;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.hope-c-PJLV-iSMXDf-css {
    opacity: 0.9;
}


/* =========================================================
   Mobile transparency optimization
   手机上稍微提高不透明度，避免背景太花导致文字难读
   ========================================================= */

@media screen and (max-width: 768px) {

    .hope-c-PJLV-igScBhH-css {
        background-color: rgba(255, 255, 255, 0.86) !important;
    }

    .hope-c-PJLV-ijgzmFG-css,
    .hope-c-PJLV-iigjoxS-css,
    .hope-c-PJLV-ikEIIxw-css,
    .hope-c-PJLV-iiuDLME-css,
    .hope-c-PJLV-ikSuVsl-css {
        opacity: 0.85;

        /*
         * 手机上降低 blur，
         * 减少 GPU 压力
         */
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .hope-c-PJLV-idaeksS-css {
        opacity: 0.78;

        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);

        border-radius: 8px;
    }

    .hope-c-PJLV-ifiEvmt-css {
        opacity: 0.82;

        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .hope-c-PJLV-iSMXDf-css {
        opacity: 0.95;
    }
}


/* =========================================================
   Hennnyano
   ========================================================= */

.sw-Hennnyano {
    width: 224px;
    height: 224px;

    position: fixed;

    left: 0;
    bottom: -230px;

    z-index: 100;

    pointer-events: auto !important;

    -webkit-transition:
        bottom 1.3s cubic-bezier(0, 2.06, 0.56, 0.78);

    transition:
        bottom 1.3s cubic-bezier(0, 2.06, 0.56, 0.78);
}


.sw-Hennnyano.show {
    bottom: -60px;
}


/* =========================================================
   Tablet Hennnyano
   ========================================================= */

@media print,
screen and (max-width: 1024px) {

    .sw-Hennnyano {
        width: 25.26042vw;
        height: 25.26042vw;

        bottom: -25.26042vw;
    }

    .sw-Hennnyano.show {
        bottom: -6.25vw;
    }
}


/* =========================================================
   Mobile Hennnyano
   限制最大尺寸，防止小屏上占用过大
   ========================================================= */

@media screen and (max-width: 768px) {

    .sw-Hennnyano {
        width: min(32vw, 150px);
        height: min(32vw, 150px);

        /*
         * 考虑全面屏底部安全区域
         */
        left: env(safe-area-inset-left, 0px);
    }

    .sw-Hennnyano.show {
        bottom: calc(
            -38px + env(safe-area-inset-bottom, 0px)
        );
    }
}


/*
.sw-Hennnyano .body {
    width: 100%;
    height: 100%;

    position: absolute;

    left: 0;
    bottom: 0;

    background:
        url('/cat/img/img_hennyano_body.png')
        left bottom / contain no-repeat;
}

.sw-Hennnyano .eyes {
    width: 100%;
    height: 100%;

    position: absolute;

    left: 0;
    bottom: 0;

    background:
        url('/cat/img/img_hennyano_eyes.png')
        left bottom / contain no-repeat;
}
*/


/* =========================================================
   Hover
   ========================================================= */

@media (any-hover: hover) {

    .sw-Hennnyano:hover {
        cursor: pointer !important;
    }
}


/* =========================================================
   Very small phones
   ========================================================= */

@media screen and (max-width: 480px) {

    body {
        /*
         * 手机尺寸过小时让画面稍微偏上，
         * 一般二次元竖图主体会更容易完整显示
         */
        background-position: center top;
    }

    .fish-container {
        height: 90px;
        opacity: 0.25;
    }

    .sw-Hennnyano {
        width: min(30vw, 120px);
        height: min(30vw, 120px);
    }
}