/* 
Last modified: "2021/12/08 21:02:13"
 */


:root {
    --padding-size: 1rem;
    --html-bg-color: hlsa(0deg, 0%, 0%, 0.01); --html-bg-color-transparent:hlsa(0deg, 0%, 0%, 0)
}

html {
    font-size: 2vmin;
    background-color: var(--html-bg-color);
}

body {
    width: 80vw;
    height: 100vh;
    overflow: hidden;
    margin: 0 auto;
    background-color: #fff;
}

main {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

main>* {
    flex-grow: 1;
    height: 100%;
}

main ul#toolsList {
    overflow: scroll;
    /* display: flex;
    justify-content: center;
    flex-direction: column; */
    letter-spacing: 0.1em;
    /* padding: var(--padding-size); */
    text-align: right;
    transition: all 0.2s linear;
    position: relative;
    height: -webkit-fill-available;
    height: fill-availabel;
    /* height: fit-content; */
    /* max-height: calc(100% - var(--padding-size)); */
    margin: auto 0;

    background-color: rgba(0, 0, 0, 0.03);

}




main ul#toolsList>li {
    cursor: pointer;
    transition: all 0.2s linear;
    line-height: 2em;
    opacity: 0.6;
}
main ul#toolsList>li .now ,main ul#toolsList>li.now,main ul#toolsList>#header.now  {
    background: linear-gradient(270deg, white,rgba(255,255,255,0.8) 50%, transparent);
opacity: 1!important;
}

main ul#toolsList:hover>li {
    opacity: 0.5;
}
main ul#toolsList:hover>li.now {
    opacity: 1!important;
}

main ul#toolsList>li:hover {
    opacity: 1;
    background: linear-gradient(270deg, rgba(255,255,255,0.4) 0%,rgba(255,255,255,0.2) 50%, transparent);

}

main ul#toolsList dl {
    padding: 1em;
    font-weight: 300;
}

main ul#toolsList dt {
    font-size: 1.5rem;
}

main ul#toolsList dd {
    font-size: 1rem;
}


main ul#toolsList #header {
    cursor: default;
}

main ul#toolsList #header dd ul {
    display: block;
}

main ul#toolsList #header dd ul li {
    display: inline-block;
    padding: 0.25em 0 0.25em 1em;
    cursor: pointer;
}

main ul#toolsList #header dd ul:hover li {
    opacity: 0.5;
}

main ul#toolsList #header dd ul li:hover {
    opacity: 1;
}

main ul#toolsList li#footer {
    cursor: default;
}

main ul#toolsList li#footer>dl>dt,
main ul#toolsList li#footer>dl>dd {
    font-size: 0.5rem;
}

main ul#toolsList li#footer a {
    position: relative;
    display: inline-block;
}

main ul#toolsList li#footer a::before,
main ul#toolsList li#footer a::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0.3em;
    transition: transform 0.5s ease;
}

main ul#toolsList li#footer a::before {
    background-color: #999;
    transform: scale(0, 100%);
    transform-origin: left;
}

main ul#toolsList li#footer a::after {
    background-color: #000;
    transform: scale(100%, 100%);
    transform-origin: right;
}

main ul#toolsList li#footer a:hover:before {
    transform: scale(100%, 100%);
}

main ul#toolsList li#footer a:hover:after {
    transform: scale(0%, 100%);
}

.v-viewport {
    max-height: 100%;
    margin: auto;
    display: flex;
    height: 100%;
overflow: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.v-page {
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: 100%;
    overflow-y: scroll;
    margin: auto;
    padding: 0 0 8vh;
    display: block;
    width: 100%;
    word-wrap: break-word;
}
.v-page::after{
    content: '';
    width: 100%;
    height: 8vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
main #detail {
    position: relative;
    flex-grow: 10;
    max-width: 60vw;
    max-height: 100%;
    margin: auto;
background-color: rgba(0, 0, 0, 0);

}

main #detail #bookmarkContainer {
    position: unset;
}

main #detail #bookmarkContainer>dt {
    position: relative;
    text-align: center;
}
/* 
main #detail #bookmarkContainer::after {
    display: block;
    height: 0%;
    padding-top: 0%;
    content: '';
    padding-bottom: 4em;
} */

main #detail #bookmarkContainer dt{
        margin: 10% 0;
}
main #detail a#bookmarkBtn {
    display: inline-block;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    position: relative;
    border: dashed 2px rgba(0, 0, 0, 0.3);
    font-size: 1.5em;
    font-weight: 300;
    letter-spacing: 0.1em;
    border-radius: 0.25em;
    padding: 0.25em;
    cursor: move;
    background-color: rgba(255, 255, 255, 0.8);
    transition: border 0.2s ease, box-shadow 0.2s ease;

    box-shadow: 0px 4px 12px 0px rgb(0 0 0 / 8%),
        0px 8px 32px 0px rgb(0 0 0 / 4%);

    max-width: 100%;
    box-sizing: border-box;
}

main #detail a#bookmarkBtn:hover {
    border: dashed 2px var(--border-color);
    box-shadow: 0px 4px 24px 0px rgb(0 0 0 / 4%), 0px 12px 48px 0px rgb(0 0 0 / 2%);

}

main #detail a#bookmarkBtn::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;
    background: #fff;
    z-index: -999;
    -webkit-filter: blur(0.5em);
            filter: blur(0.5em);
}

main #detail a#bookmarkBtn::after {
    content: '"拖拽到书签栏保存，点击查看源码 / Drag and drop to the bookmark bar to save, click to view the source code"';
    position: absolute;
    display: block;
    width: 30000%;
    max-width: 48vw;
    left: 50%;
    transform: translate(-50%,0);
    top: 133%;
    font-size: 0.5rem;
    pointer-events: none;
}

main #detail #bookmarkContainer>dd {
    text-align: center;
    letter-spacing: 0.1em;
    position: relative;
}

/* main #detail #bookmarkContainer>dd::after {
    content: "拖拽到书签栏保存，点击查看源码 / Drag and drop to the bookmark bar to save, click to view the source code";
    font-size: 10px;
    display: block;
    opacity: 0.64;
    padding: 1em;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    position: absolute;
    box-sizing: border-box;
} */



main #detail article {
    padding: 0 2em 2em;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: auto;
    min-width: 72%;
    max-width: 90%;
}

@media screen and (max-width: 800px) {
    html{
        font-size: 16px;
    }
    body {
        width: 100%;
    }

    main {
        width: 100%;
        max-width: none;
        flex-direction: column-reverse;
    }

    main ul#toolsList {
        width: 100%;
        white-space: nowrap;
        overflow-x: scroll;
        padding: 0;
        flex-grow: 0;
        text-align: left;
        flex-shrink: 0;
        background-color: rgba(0, 0, 0, 0.04);
        height: auto;
        transition: padding 0.5s ease;
    }

    .ios ul#toolsList {
        padding-bottom: 90pt!important;
    }
    .android ul#toolsList {
        padding-bottom: 10pt!important;
    }
    
    main ul#toolsList>li {
        display: inline-block;
    }

    main ul#toolsList #header dd ul li {
        padding: 0.25em 1em 0.25em 0em;
    }

    main #detail {
        max-width: none;
        width: 100%;
        position: relative;
    }
    main #detail a#bookmarkBtn::after{
        max-width: 92vw;
    }
    main div#detail:after {
        content: '';
        height: 3em;
        width: 100%;
        display: block;
        position: absolute;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72));
    }

    main #detail #bookmarkContainer>dt {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 3em 3em;
    }

    main #detail #bookmarkContainer::after {
        display: none;
    }

    main #detail #bookmarkContainer>dd {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }

    main #detail #bookmarkContainer>dd::after {
        content: "请在电脑打开 /  pls open this page on computer";
        display: block;
        font-size: 0.8rem;
        opacity: 0.6;
        margin-top: 1em;
        border-bottom: double 4px black;
        position:absolute;
        left: 50%;
        transform: translate(-50%,0);
        width:fit-content;
    }

    main #detail article {
        padding-top: 2em;
        margin-top: 2em;
    }
}

::-webkit-scrollbar {
    z-index: 999;
    width: 2px;
    height: 2px;
    mix-blend-mode: multiply;
    background-blend-mode: multiply;
    transition: background-color 0.5s ease;
}

::-webkit-scrollbar-thumb {
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.08);
    mix-blend-mode: multiply;
    background-blend-mode: multiply;
    transition: background-color 0.5s ease;
}

*:hover::-webkit-scrollbar-thumb {
    z-index: 999;
    background: rgba(0, 0, 0, 0.32);
    mix-blend-mode: multiply;
    background-blend-mode: multiply;
}

::-webkit-scrollbar-track {
    z-index: 999;
    border-radius: 0;
    background: rgba(0, 0, 0, 0);
    mix-blend-mode: multiply;
    background-blend-mode: multiply;
}

* {
    scrollbar-color: rgba(0, 0, 0, 0.02) rgba(0, 0, 0, 0);
    scrollbar-width: thin;
}

*:hover {
    scrollbar-color: rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0);
    scrollbar-width: thin;
}


@supports (bottom: env(safe-area-inset-bottom)) {

    body,
    .fixedBottom {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
}



#detail:before {
    /* content: var(--demo-content); */
    position: absolute;
    top: 0;
    font-size: 1rem;
    line-height: 1rem;
    padding: 1rem;
    background: hsla(0deg, 100%, 100%, 0.8);
    border-bottom: solid 1px #aaa;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
    letter-spacing: 0.05em;
    font-weight: 300;
    thisCssFrom: loadDemo;
    word-break: keep-all;
    white-space: nowrap;
}

#detail:after {
    content: '';
    display: block;
    height: calc(3rem + 2px);
    width: 20vw;
    position: absolute;
    top: 0;
    right: 0;
    background: rgb(255, 255, 255);
    background: linear-gradient(-90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* #detail:hover:before,
#detail:hover:after {
    opacity: 0;
} */


a[title=站长统计]{
    display: none;
}
