
/* === CSS 自定义属性 === */
:root {
    --c-text:    #333;
    --c-muted:   #666;
    --c-subtle:  #999;
    --c-border:  #eaeaea;
    --c-accent:  #EF6D57;
    --c-purple:  #8400ff;
    --c-bg:      #fff;
    --sp-xs:  8px;
    --sp-sm:  14px;
    --sp-md:  20px;
    --sp-lg:  30px;
    --sp-xl:  60px;
    --max-content: 700px;
}

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
}

body, div, h1, h2, h3, h4, h5, p,
ol, ul, li, article, header, footer,
main, section, nav, aside {
    margin: 0;
    padding: 0;
    font-weight: normal;
    list-style: none;
}

/* === 深色模式 === */
::view-transition-old(root) {
    animation: none;
    z-index: 1;
}

::view-transition-new(root) {
    animation: circle-expand .5s ease;
    z-index: 9999;
}

@keyframes circle-expand {
    from { clip-path: circle(0% at var(--tx) var(--ty)); }
    to   { clip-path: circle(150% at var(--tx) var(--ty)); }
}

html[data-theme="dark"] {
    --c-text:    #d4d4d4;
    --c-muted:   #a0a0a0;
    --c-subtle:  #707070;
    --c-border:  #2e2e2e;
    --c-accent:  #ff7b68;
    --c-purple:  #a855f7;
    --c-bg:      #1a1a1a;
    color-scheme: dark;

    & img {
        background-color: #2a2a2a;
        background-image: none;
    }

    & :is(body, aside) > article > header > [data-action="back"] {
        background-color: var(--c-text);
    }

    & main > button {
        background-color: #222;
        border-color: #444;
    }

    & main > ol > li > div > h3 + div > p {
        color: var(--c-muted);
    }

    & details > summary > [data-action="logo"] {
        background-color: var(--c-text);
    }

    & details > summary > [data-action="menu"] {
        background: #222;
    }

    & details div {
        background-color: rgba(26, 26, 26, 0.95);
    }

    & :is(body, aside) > article > section::before {
        background: var(--c-border);
    }

    & form textarea,
    & form input {
        border-bottom-color: #444;
        color: var(--c-text);
    }

    & form button {
        border-color: #444;
    }

    & article > footer > div ol::after {
        background: var(--c-border);
    }
}

/* === 开场帘幕动画 === */
@keyframes l_translate {
    0%   { transform: translateX(50vw); }
    25%  { transform: translateX(50vw); }
    100% { transform: translateX(100vw); }
}

@keyframes r_translate {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(0); }
    100% { transform: translateX(-50vw); }
}

@keyframes r_translate_mobile {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(0); }
    100% { transform: translateX(-100vw); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes grow-progress {
    from { width: 0; }
    to   { width: 100%; }
}


/* === html === */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    background: var(--c-bg);
    overflow-x: clip;
    scrollbar-gutter: stable;

    &:has(details[open]) {
        overflow: hidden;
    }

    &::before,
    &::after {
        content: "";
        transform: translateX(-100vw);
        position: fixed;
        top: 0;
        display: block;
        z-index: 100;
        width: 50vw;
        height: 100vh;
        background-size: cover;
        background-repeat: no-repeat;
    }

    &::before {
        animation: r_translate 2s;
    }

    &::after {
        animation: l_translate 2s;
    }
}

/* === body === */
body {
    width: 100vw;
    transition: opacity 1.5s ease 0.4s;

    @starting-style {
        opacity: 0;
    }


}

/* === 图片默认占位 === */
img {
    display: block;
    max-width: 100%;
    height: auto;
    background-image: url("data:image/svg+xml,%3Csvg id='_1' data-name='1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 440'%3E%3Cdefs%3E%3Cstyle%3E.cls-2%7Bfill:%2396533f%7D.cls-3%7Bfill:%23f4b079%7D%3C/style%3E%3C/defs%3E%3Cpath fill='%23fdfdff' d='M0 0h680v440H0z' id='_2' data-name='2'/%3E%3Cpath class='cls-2' d='M738.1 420.5c-6.3-8.8 6.3-22.1.7-25.1-7.5.2-9.9-13.6 5.3-2.2 13.2 19.3 124.6 4.2 44.4 4.6-31 13.2-67.2-43.7-62.8-16.4-17.3-10.7 27.9-31.9 37.2-39.1-2.4-5.5-18.5-1.8-25-.5-3.2 8.3-12.6-4.6-11.8 5.9-.2 5.1-5.6-.3-5.5-2.9.4-47.2 32.1-41.6 27.4-77.2-6.9-14.1 1.9 31.4-14.2 25.8 8.4-4.2 11.7-25 3-26-11.5 1.2-6.9-10-8.8-17.1 6.6-.6 15.4 14.7 21.7 8.2 1-3.7 1.8-17.7 3.4-7-7.4 21.8 5.4 36.9 10.8 56.1 6.7-22.7-23.8-56.5 1.6-78.1 9.1-7.3-16.4 34.5-3.3 29.9-2.5-1.7 34.1-42 17.9-16.3-3.8 7.3 10.8 5.9 9.4-1.5 5.6-16.4 2.9 15.8 16.3 4.5 9.5 5.2 1.5-13.7 7.1-15.7 6.5 1.1 3.1 13.1 10.7 14 2.8.2 5-6.4 1.1-7.1 5.9-7.3 3.6 6.2 7.6 7.2 2.9 3 13.2 3.7 11 8.6-1.5 2.8-6-4-7 1.9-8.9-10.6-9.7 2.7-6.4 9.8 26 3.7 15.6-27.1 9.3-40.2 10.6 5 12.7 19.6 12.6 31.1 2.1 7 5-4.3 4.2-6.9 2.5-8.6-11.2-20.4-6.1-24.4 10.1 20.6 16.8 14.4 7.1-3 26.4-8.1-101.8-52.8-105.6 10.2 11.5 9.7-5.9 11.8-11.7 4.3-10-11.7-36-9-44.7-21.1 20.1 4.4 42.3 24.7 36-10.7 6.5-19.6 34.7 5.4 46.8-4.9 49.8-8 36.6-25.4 68.4 6 17.7 6.1-3.6-17.7 26.9-20.6 4-9.6-.7-39.1 17.4-25.7-10.8 2.2 1.7 14.6 1.7 1.2 5.5 7.5-3.2 15.2 7.2 19.5-3.1-.4-7.5-.9-5.5 4.9-10.4 11.7 14.5 14.4 4.4 17.5-.8-5.3-4.8 12.8 3.9 13.9-5.4 4-6.4-1.9-9.1-4-4.9-1.2 5.4-9.9-.9-11.7-5.5-9.3-7-53.4-13-14.3.2 12.7-8.3 24 12.8 12.1-.4 7-22.5 10.1-17.5 21.4-.7 6.5 4.7 2.4 6-1 20.1-18.9-3 9.2-9.2 18.6-8.4 32.2-5.9 62.2 1.4 98.3-7.8 22.4-5.5-64.1-17.1-33.9-2.1-2-.7-9.6-5.9-8.6 1.4 14.9-8.1 45 11.2 49.5-4.3-19.1 4.1-11.1 6.2 2.3-39 7.7-16-46.8-24.8-68.4-9.5-4.2 1.3 18.4-9.7 16 2.1-17.3-10.4-10.1-21.5-4.7-3.6 3.4-27.2 3.6-19.6.6 20.1 1.5 20.8-7.9.3-5.1-5.8-1.5-15.4 18.2-8.1 12.5 9.3-20.7-2.6 33.8 12.4 20.5 8.1-7.8 11.3 35.3 27 33.8 1.2-3.9 4.4-9.6 6.9-3 3 4-4.6 6.7-1.2 10.6 7 2.5 7.9-15 13-11.1-13.4 16.6 17.5 45.8 3.8 48.6-2.2-.8 3.4-9.3-3.8-6.2-4.6 5.1-13.3 3.9-17.5 8.2 3.4 5.1 10.9-2 15.7-.1-2.6 3.3-4.7 6.7-9.7 5.9-9.1 2.5 1.7 22.9-16.5 17.8-8.4-26.2-28.5-9.6-50.9-16.8-11.7-5.4-9.4 22.3-24.8 16.8zm34.3-152.4c7.8-4-.5-13.5-2.1-4.7-6.1 9.2-8.5 33.4 7.5 29.9 6.3-25.8 45-4.3 58-20.1-4.6-3.7-23.8 5.1-19-7.5 11.3 3.4 10.6-8 5.7-13.2-20.4-18.1-12.8 40-29.1 1.2-1.9-7.2-10.7 13.2-9.8 2.8 4.7-8.1-12.7-4.9-.2 5-6.5 6.2 11.6 2.5 15.4 3.6 4 11.3-26.9 10.2-26.4 3zM851 271c1.1 4.6-6.3 2.4-5.5 5.9s.1 11.3 5.7 7.8c15.1-10.7-13.3-27.7-.2-13.7zm-77.6 38c-.8 4.2-.7 12.2 3.9 13.7 10.4-6.3 5.4-37.1-3.9-13.7zm85.4-29c3.8 28 11.1-11.8 1.7-18.8-11-3.9-.3 13.6-1.7 18.8zm-42.7 132.5c-8.6-.3-1.6 5.5 3.6 5.4s1-7-3.6-5.4zm4.5-2.2c9.1-2.9-4.2-2.4-6.4-3.9s-2.6 1-2.2 2.5 6-.6 8.6 1.4zm-74.4 4.1c-.8-2.8-3.7-2.1-5.6-3.1-5.6.9 5.7 10 5.6 3.1zm1-4.1c-1.1-2.4-4.1-7.6-6.4-4.3s4.5 3.2 6.4 4.3zm92.2-138.6c2.7.1 3.2-5.9.3-5.4s-3 5.6-.3 5.4zm-88.7 133.1c.2-1.6-4.8-5.3-5.2-2.3s3.9 4.4 5.2 2.3z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-3' d='M918.8 211.5c10.4 2.2.3 13.2 7.6 17.3 3.8 2.2.9 5.7 2.3 8.6-3.8-1.4-1.5-6.7-5.8-7s.2 5.9-3.5 6.7-3.7-4.3-1.8-6.1c2.6-5.8-11.6-14.3 1.2-19.5zm-2.5 7.9c-.1 5.3 5 1.8 4.2-1.9-.3-5.5-5.2-2.2-4.2 1.9z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-2' d='M717.3 234.6c-11 11-54-43.5-23.7-20.1-9.5 6.3 17.3 15.3 23.7 20.1z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-3' d='M901.7 223.7c1.4-1 6.7 1.5 3.3-3.8 1.8-4.7 7.1 4.9 3 6.6-8.5 6.3 13.5 11.4.7 19.7-5.2-.9 2.5-16.8-3.8-7a3.3 3.3 0 0 0-2.8-1c-.8-2.3 6.6-3.2 2-5s-2.7-2.5-2.4-4.6c4.7-1.6-1.2-3.3 0-4.9z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-2' d='M879.9 315.9c6.6 7.1-.4 42.7-10.5 28.4 14.7 1.3 5.7-20.9 10.5-28.4z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-3' d='M907.1 204.4c-3.3-8 2.2-16.3-3.6-21.4 8.6-4.4 7.7 20.1 3.6 21.4z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-2' d='M726.6 300c-4.4 8.1-8.6 15.1-5.8 24.7-5.9-4.2-3.7-23 5.8-24.7z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-3' d='M894.6 170.2c5.2-5.7 15.2 9.3 6.8 8.4 1.2-5.6-3.4-6.5-6.8-8.4z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-2' d='M907.1 204.4c2.7 0 17.6 7.4 7.7 9.1.6-5.6-8.1-3.3-7.7-9.1zM902.1 238.2c5.4-.4 3 6.1 6.6 8-1.7 6.3-7.5-5.2-6.6-8z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-3' d='M916.8 209.1c-2.7-1.8-5.4-10.1-1.3-11.3 3.6 1.4.6 8 1.3 11.3z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-2' d='M874.8 302.3c-2.3 7.5-5.2-2.2-6.4-5 .6-4.4 6.8 2.2 6.4 5zM901.7 223.7c-1.2 1.6 4.7 3.3 0 4.9-5.4-2.9-6.7-12.8 0-4.9zM716.9 239c3.2-3.4 9.4 5.4 8.5 8.5-3.7-2-6-5.3-8.5-8.5zM901.1 184.3c.5 4 1.4 8.1-.1 12.2-2.1-1.8-3.7-12.5.1-12.2z' transform='translate(-460 -96)'/%3E%3Cpath class='cls-3' d='M899.6 195.6a2.2 2.2 0 0 1 .9 3.7c-.8-1.1-3-2.9-.9-3.7zM899 180c.4.5 2.7 3.6 2.1 4.3s-4.1-2.9-2.1-4.3zM849.9 224.4c-33.5 1.4 24 37.6-20 40.4-6.5-20.8 4.2-9.6 13.4-11.7 1.9-7.2-16.5-5.2-13.4-15 11.5 8.6 3.2-11.1-1.4-2.6-13.9 7-13.6-12.5-17.5-2.1 2.2 12.4-16.3.3-15.2 10-2.3-1.3-.8-6.2-3.6-6.5-4.9 2.3-1.1 12.1-9.6 11.2s3-10 3.1-15.8c-5.4 7.2-27.9 12.1-17.9-.8-29.1-11.7 11.9 115.7-9.2 58.9-15.2-12.4-1.7-33.5-7.5-48.5 11.8-7.5-5.3-8.7-.9-17 14-34.5 104.4-39.9 99.7-.5zM841.4 275.6h-1.5' transform='translate(-460 -96)'/%3E%3Cpath d='M722.2 328.2l.9-1.2z' transform='translate(-460 -96)' fill='%23fcfcfc'/%3E%3Cpath class='cls-2' d='M829.3 323.8c12.1-13.8 8 13 4.1 18.9-7.5-2.4-2.1-13.1-4.1-18.9zM831.6 301.2c6.4-11.4 9.9 11.6 4.1 13.9-6.6-.8-1.2-9.8-4.1-13.9zM857.5 324.7c-.4-3.8-.6-27.1 3.1-16.3-1.1 4.5 3.3 15.8-3.1 16.3z' transform='translate(-460 -96)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

/* === 主体布局 === */
main {
    width: 100vw;
    height: calc(100% - 100vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;

    & > figure {
        margin: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;

        & > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            scale: 1.1;
            will-change: transform;
            backface-visibility: hidden;
        }
    }

    & > svg {
        position: absolute;
        width: 100vw;
        height: 100vh;
        display: block;
    }

    & > button {
        cursor: pointer;
        background-color: white;
        margin: 0 0 60px;
        font-size: 14px;
        letter-spacing: 5px;
        color: var(--c-muted);
        border: 1px solid #dadada;
        padding: 10px 40px;
    }

    /* === Hero 首篇文章信息 === */
    & > div {
        width: 28vw;
        position: absolute;
        top: 40vh;
        left: 10vw;
        display: flex;
        flex-direction: column;

        & > p {
            color: #fff;
            font-size: 12px;
        }

        & > h2 {
            font-size: clamp(20px, 3vw, 32px);
            margin-top: 15px;

            & > a {
                color: #fff;
                text-decoration: none;
            }
        }

        & > h2 + div > p {
            color: #fff;
            font-size: 14px;
            margin-top: 30px;
        }
    }

    /* === 文章卡片（列表页） === */
    & > ol {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(var(--c-border), var(--c-border)) center / 1px 100% no-repeat;

        & > li {
            height: 440px;
            padding: 3% 0;
            display: flex;
            flex-direction: row;
            align-items: center;
            animation: slideUp 0.5s ease both;

            & > a {
                height: 100%;
                margin-right: -50px;
            }

            & img {
                position: sticky;
                height: 100%;
                z-index: 10;
            }

            &:nth-child(even) {
                flex-direction: row-reverse;

                & > a {
                    margin-left: -50px;
                }
            }

            & > div {
                background: var(--c-bg);
                height: 90%;
                width: 500px;
                border: 1px solid var(--c-border);
                display: flex;
                flex-direction: column;
                justify-content: center;

                & > * {
                    width: 50%;
                    margin: 10px 0 0 80px;
                }

                & > p:first-child {
                    color: var(--c-subtle);
                    font-size: 12px;
                }

                & > h3 {
                    font-size: 30px;
                    line-height: 1.1;
                    cursor: pointer;
                    & > a {
                        color: var(--c-text);
                        text-decoration: none;
                    }
                }

                & > h3 + div > p {
                    color: #555;
                    font-size: 14px;
                    line-height: 1.8;
                    word-break: break-all;
                }

                & > div:first-of-type {
                    width: 60%;
                    height: 33%;
                }

                & > div:last-of-type {
                    color: var(--c-subtle);
                    display: flex;
                    align-items: center;
                    line-height: 1;

                    & > p {
                        margin-right: 18px;
                        line-height: 1;
                    }

                    & i:last-of-type,
                    & i:last-of-type:hover {
                        color: var(--c-subtle);
                        cursor: default;
                    }
                }
            }
        }
    }
}

/* === 导航菜单 === */
details {
    position: absolute;
    top: 8vh;
    left: 4vw;
    width: 92vw;
    z-index: 9;

    & > summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 10px 20px;
        list-style: none;
        pointer-events: none;

        &::-webkit-details-marker {
            display: none;
        }

        & [data-action="logo"] {
            --svg: url("data:image/svg+xml, \
    %3Csvg data-name='1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 182.05 74.32'%3E%3Cpath d='M20.98 42.12c2.7-.71 7-.42 6-4.36-7.05.74-7.63-5 .42-6.18a11.31 11.31 0 0 1 1.76-4.86c-6.55-5.38 3.35-6.85 7-7.17v-3c-11 1.38-9.54-7.94 0-7.17-1.18-6.75 6.27-10.3 8.09-2.54 3.5-1.34 7.38-1.14 7.8 2.82-.93 4.71-10.34 2.51-9.28 8.15 1.56-.44 5.82-1.94 7.81-2.67 5.83 1.12 2.43 6.71-1.76 7.1 1.58.29 4 1.92 3.94 3.59 2.66-1 5.81-1 6 2.28-.77 3.07-10.06 3.86-8.72 7.14-.48.82 9.93-4.89 10.55 0-1.69 5.59-13.84 5.32-19.12 7-2.81.08-4.9-4.66-1.2-5.34 2.62-.13 4.48-.05 4.64-2.88-4 1.09-8.32-2.13-5.48-4.79 5.69-1.68 6.82.43 7.24-6.25-3.1 1.38-10.58 2.73-12.73 3.65-.16 2.44 2.48 2.76 2.67 5.1-1.11 3.09-5 2.33-4.92 7.07 3.22-2.47 7-.47 4.57 2.53-3.72 2.54-11.09 4.86-15.4 6 2.07 13.17-9.75 21.06-7.59 7-2.77 2.94-6.4 7.3-10.09 8-4.41-.09-3.86-5.14-1-6.61-1.83-10-4.44-33.78 2.74-44 2.63 1.17 4.31 3.35 7.39 2.6 14.11-7.3 7.36 21.26 8.67 27.79zM6.78 52.88a67.69 67.69 0 0 1 6.89-3.52q.57-10.47.56-28c-.22-4.81.53-3.18-3.05-2.25-6.32.67-3.54 10.05-4.47 13.43 9.73-4.94 8.46 5.79-.21 6-.03 4.99.18 7.24.28 14.34zm27.21.91c-4.86 1.67-8.56 1.28-9.35-3.37 1.82-3.9 3.9-1.61 11-3.66 7.52-1.17 11.38-3 15.79-3.8 7.13 2.46 1.41 7-3.45 7.11 1.15 3.46-3.12 8.09-2.25 12.93.42 6.15 12.11 4.5 14.63.85 1.51 1.76 3-16 4.08-7.6 17.24 21.17-33.95 24.92-23.14-2.53-6.1 5.83-12.59 14.81-21.72 16.81 1.66-5.89 10.14-11.3 14.41-16.74zM93.04 47.47c-5.88.14-5.8-9 0-8.86 5.98-.16 6.01 8.98 0 8.86zM152.37 37.34c.89 1 2 3 .56 4 14-2 16.67-1.63 5 13.71-3 2 1.42 8.17-3.09 8.58-7-1.56-15.27 9.76-23.91 10.68-1.18-2 11.38-12.54 15.26-16.52-2.27-1.79-5.93-4.46-5.27-6.47-21.5 16.91 2.25-10.63 6.68-13.5-29.37 3.86-11.61 7-23.27 16.25-5.33-2.43-.4-30.83 6.32-17.65 14.36-4.33 32.13-2 45.43-5.91 2.92.11 6.07 6.6 6 8.23-.91 5.13-7.44-.07-11.39 2.63-6.88 3.38-.39-2.12 1.69-5.52-3.51-.26-16.26 1.14-20.01 1.49zm-1-31c1.38 4-7.24 4.29-8.44 8.23-.12 3.25-3.58 2.11-4.43-.63-11.3 3.38-15.58-6.29-1.62-5.84-2-7.71 7.57-6.59 6.89-.91 2.3-.04 5.77-1.93 7.62-.86zM162.19.01c3.5 0 5.3 3.65 2.46 6.54a36.78 36.78 0 0 0 7.18-3.09c2.74.39 5.52 4.83 2 6.5-8.06 1.75-13.06-.35-19.79 6 30.2-5.06 11.84 17.59 6.18 12.37-2.46 1.14-14.48 2.93-18.59 3.38-5-1.12-2.72-5.93 1.72-5.07a27.77 27.77 0 0 1-.84-4.22c-7.59.91-5.66 3.58-4.57 9.29-2.46 7.41-10.25-8.3-6.82-11.54 5.13-2.41 16-2.65 19.89-3.94 1-1.42 3.25-4.42 3.94-5.62-5.2-.46-3.41-.72 1.2-2.11 3.01-2.81 2.02-8.17 6.06-8.5zm-18.35 49.5c7.23 1.92 8 3.62 12.24-3.51-.91-2-6.11-.65-6.75-2.32-2 1.83-4.33 4.25-6.4 5.9a6.35 6.35 0 0 1 .93-.08zm8.6-28.92c-1.68.28-3.78.52-5.84 1 1.4 3.64-1.54 5.4 4.43 3.87.11.25 1.34-5.38 1.41-4.87zm6.89 3.23c1.22.09 1.94.45 2.18 1.05a8.83 8.83 0 0 0 3.09-6.89c-2.85 1.47-4.76 1.54-7.1 1.9.26 1.64-.32 2.63-1.83 4.64z'/%3E%3C/svg%3E");
            -webkit-mask: var(--svg);
            mask: var(--svg);
            display: block;
            background-color: white;
            width: 66px;
            height: 28px;
            mask-repeat: no-repeat;
            -webkit-mask-repeat: no-repeat;
        }

        & [data-action="menu"] {
            pointer-events: auto;
            cursor: pointer;
            background: white;
        }

        & path {
            fill: none;
            stroke: var(--c-purple);
            stroke-width: 7;
            transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
        }
    }

    &[open] {
        & summary path:nth-child(1),
        & summary path:nth-child(3) {
            stroke-dasharray: 90 207;
            stroke-dashoffset: -134;
        }

        & summary path:nth-child(2) {
            stroke-dasharray: 1 60;
            stroke-dashoffset: -30;
        }

        & summary > [data-action="logo"] {
            transition: background-color 0.3s ease;
            background-color: #333;
        }

        &::details-content {
            margin-top: calc(-50px - 8vh);
        }
    }

    &::details-content {
        width: 100vw;
        height: 100vh;
        margin-left: -4vw;
        margin-top: -130vh;
        overflow: hidden;
        transition:
            margin-top 0.5s ease,
            opacity 0.5s ease,
            content-visibility 0.5s ease allow-discrete;
    }

    & div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 100vw;
        height: 100vh;
        background-color: #fffe;

        & a {
            color: var(--c-subtle);
            text-decoration: none;
        }

        & ul {
            display: flex;
            margin-top: 20vh;

            & li {
                position: relative;
                margin: 30px;
                font-size: 20px;
                background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 2px;
                transition: background-size 0.5s ease;

                &:hover {
                    background-size: 100% 2px;
                }
            }
        }

        & p {
            color: var(--c-subtle);
            margin-bottom: 30px;
            font-size: 14px;
        }
    }
}


/* === 文章页 === */
.icon-letter {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='-33 0 528 463.3'%3E%3Cpath d='m466.4,252.6c-11,40.4,27.8,165.8-28.4,165.7-135.3,1.4-267.8,1.6-403,.2-22.7.7-30.8-10.4-30.8-30.3,12.9-60.4-29.2-280.4,21.9-296.6,6.6-19.6,31.3-23.4,37.6-42.2,3.1-9.1,6.2-13.5,15.5-12.6,63.6-8.6,132.4,63.9,173.5,46.1,11.7-16.4,154.3-66.7,150.5-36.7-1.5,30.8,25.4,11.5,30.7,21.4-7.7,29.1,36.1,17.7,33.6,45.8-3.9,46.1,0,92.9-.9,139.3Zm-240.2,121.4c-13-124.4,59-309.4-121.5-317.4-17.2-4.3-23-.2-22.8,18.3,10.5,363.7-52.3,194.3,144.3,299.1Zm14.5-134.5c5.5,205.2-32.8,114.4,131.5,90.5,8.1-1.4,16.9.9,16.9-12.8-90.2-45.5-153.4-166.7-12.7-219.8,22.7-5.5,11.4-23.8,11.1-35.7-12.1-22.4-95.6,16.7-116.9,26.9-53.7,24.5-20.8,103-29.8,150.9Zm200.8-130.9c-22.3,47.7,28.1,282.1-28.1,275.3-78.4-19.1-151.4,29.7-230.1,7C-32.9,355.9,52.4,449.9,36.1,126.7,4.3,43.1,22.7,362.3,18.1,383.3c9.3,36.4,111,6.6,145.7,16.1,84.9,21.9,170.6-9.7,259.4.4,19.8.7,26.8-3.8,26.4-25.1-7.5-88,12.1-181.7-8-266Zm-154.5,264.6c25-12.5,143.4,6.6,133.3-18.2-6.3-87.7,12.9-192.6-6.7-272.1-40.2,27.1,26.1,259.8-32.3,265.2-32.4,2-65.6,3.8-94.3,25.1Zm-102.3,1C14.1,310,84.1,407.2,57.9,84.2c-20.6,68.9-.2,168.8-7.1,247.8,0,34.9-.2,35.5,34.3,34.3,33.6-1.1,66.6,3.9,99.9,7.9Zm204.3-174.8c15.2-112.2-82.2-5-29.5,39.2,35.4,34.8,30.3-14.5,29.5-39.2Zm-10.8,89.4c-12.1-29.9-15.2-31.2-37.5-16,9.4,12.7,22.6,16.2,37.5,16Zm-42.9-156.9c20.3,4.5,47.1,2.8,38.2-20.2-17.8-5.2-23.3,8-38.2,20.2Zm-9.5,12.4c-15.2,11-20.9,22.6-14.7,40,20.2-8.1,18.3-22.4,14.7-40Zm-3,109.4c10.2-22.1,7.9-28.6-13-36.5-4.7,15.4,3.2,26.3,13,36.5Zm22.2,6.5c20.6,3,13.4-19.7-2.6-22-13.8,0-13.7,27.6,2.6,22Zm-2-121.3c-15.8-4-11.3,21.7-2.5,23.3,14.7-.2,22-26.7,2.5-23.3Z'%2F%3E%3Cpath d='m190.6,118.1c-53.2,7.8-54.5,51.5-7.5,69.1-97.2,56.8-99.4-140.1,7.5-69.1Zm-31.8-5.5c-48.4-4.4-55.9,66.6-6.5,69.4-16.5-24.9-14-47.9,6.5-69.4Z'%2F%3E%3Cpath d='m122.5,264.9c5-9.9-3.5-17.2-5.1-28.8,16.4,8.3,28.7,6,32.5-16.7,11.1,13.8,18.5,29.7,41.3,18-23,28.5,19.7,40.7-4,48.6-17.6-.8-17.4,10.7-17.6,25.4-13.4-12.8-26.2-18.3-39.5,3.3-2.2-19.3-.8-34.6-19.5-37.1-11.5-5.7,4.9-16.6,12.7-13.5,12.1,44.5,83.7,15.1,31.1-19.2-15-8.2-20.3,20.3-31.9,19.9Z'%2F%3E%3Cpath d='m324.7,289.1c-21.8,13.1-39.4,20.8-59.8,23.1,11.3-16.9,30-24.9,59.8-23.1Z'%2F%3E%3Cpath d='m307.2,268.1c-15.7,4.2-32.3,24.7-43.7,14.7.8-15.3,26.3-21.3,43.7-14.7Z'%2F%3E%3Cpath d='m268.6,144.5c-21.4-6.6,36-31.7,38.6-19-2.4,13.4-28,8.2-38.6,19Z'%2F%3E%3C%2Fsvg%3E");
}

.icon-view {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='1360 -8 480 480'%3E%3Cpath d='m1591.4,57.9c2.3-10-6.7-62.5,7.4-57.6,9.5.6,6.5,9,6.6,14.5.3,29.4.4,58.8,0,88.2-.2,10.6,1,18.3,14.3,17.9,65.9,43.2,82.1-9.6,126.7-49.6,5.3-5.5,11.9-10.2,17.9-4.9,16.2,7.5-62.4,70.8-70.6,82.3-23.1,14.8,39.8,59.2,51.2,69.1,13,10.3,29.8,3.3,44.9,4.5,13,3.9,39.8-8.4,43,9.7.6,15.9-48,7-59.6,8.2-31.4-3-48.5,21-66.3,38.2-24.9,24.1-22.4,26.8,1.9,51.5,8.2,12.7,66.1,56.3,56,66.3-5.4,5.5-12.8,2.6-18.3-3-20-20.4-40.3-40.5-60-61.2-8.6-9-15.2-16.4-28.1-4.6-6.9,6.3-17.8,10.1-27.3,11.3-22.7,2.7-27.5,15-25.9,35.9,1.9,24.6.6,49.5.3,74.2,0,5.4,3,14-6.6,14.3-15.8,4.9-4.3-88.1-7.3-102,3.2-27.9-42.2-17.3-56.7-34-13.2-10.2-22-1.9-26.6,4.4-15.7,21.6-39,35.6-54.2,57.4-4.9,7.1-13.1,14.7-20.9,6.9-15.4-23.9,100.7-76.9,66.7-106-62.5-87.6-130.7-25.4-133.9-59.1.2-15.2,18.7-6.2,29-8.2,5.9-1.2,12.4-.9,18.5-.1,30.5,10.8,115.7-51.1,85.1-78.4-10.1-13.9-80.6-65.3-65.2-77.8,6.7-6.5,14.4.8,19,7.2,16,22,39.8,36.4,55.7,58.8,14.6,22.2,26.4-2.4,45.5-3.1,50.9-3.9,36.2-41.8,38-71.3Zm4.8,229.3c76.7,5.5,76.6-114.1.2-112.3-78.8,8.2-66,116.3-.2,112.3Zm-61-100.6c-94.9,40.6-88.2,51.8,1.1,90.6-15.3-31.4-13.4-60.2-1.1-90.6Zm122.9,88.5c18.2-1.3,88.6-36.1,69.7-50.7-21.6-11.1-38.1-32.8-67.6-33.5,14.2,27.7,15.5,54.8-2.1,84.2Zm10.5-105.2c-38.5-44.8-116.1-44.4-141.8.9,48.1-17.5,94.8-20.2,141.8-.9Zm-.1,123.3c-46.5,24-93.3,18.3-144.6.2,41.4,46.3,114.6,44.4,144.6-.2Z'%2F%3E%3Cpath d='m1598.1,263.7c-43.1-1.5-42.7-64.5-2.2-64.4,5.5.3,10.6-.7,7,8.6-6.1,15.8,5.5,20.6,16.7,18.1,31.3-9-2.3,48.2-21.5,37.7Z'%2F%3E%3C%2Fsvg%3E");
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.icon-like {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='2545 0 420 463.3'%3E%3Cpath d='m2563.9,172.8c-10.5-103.9,124.5-146.1,186.7-72.9,4.3,6.3,8.9,6.3,14.8.2,59.8-70.1,188.5-31.5,187.3,65.6-2.9,115.3-119,172.7-182.5,254.7-8.3,10.2-17.3,9.2-25.3-.2-58-75.4-184.5-142.8-181.1-247.4Zm18.8-4.1c3.7,101.6,109.5,152.6,165.3,225.7,5.4,6.5,12.8,7.3,19.3-1.1,56.1-70.8,149.8-120,165-216.3-5.1-155.4-192.3-73.3-154.2-44,16.8,13.7,20.6,35.5,32.7,52.2,5.1,7,4.8,15.5-5.3,18.6-7.9,2.4-13.1-1.6-14.7-10.2-3.3-18.1-18.3-29.9-25.2-46.3-4.1-9.8-10.6-10.3-16.2-.3-8.7,15.4-17.4,30.7-25.8,46.3-3.3,6-4.7,14.1-14.4,10.1-8.9-3.7-8-12.3-4.6-17.6,10.8-16.7,14.6-37.9,30.3-51.2,19.7-16.4-.7-20.3-12.4-30-52.1-50.9-143.2-6.6-139.8,64.1Z'%2F%3E%3Cpath d='m2794.8,276.4c.4,3.7,2,8.1-2.8,9.8-3.9,1.4-7.6-.4-9.7-4.2-7.4-13.3-13.1-16.3-15.5,2.5-.7,5.5-1.9,11.1-9,11.2-7.2,0-8.1-5.4-8.9-11.1-2.1-15.7-7.2-18.6-15.8-3.3-2,3.6-4.9,6.2-9.2,5.4-5.4-1-4.4-5-3.8-8.9,3.3-20.2-6.3-17.6-17.6-9.5-3.9,2.8-9.7,1.7-9.3.6,9.8-17.1-8.3-50.9,12.1-35.1,31.3,29.5,70.8,29.4,102.8,1.6,4.4-3.3,8.4-8.3,13.5-2.6,4.4,4.9-.5,8.2-3.8,11.3-11.7,11,13.4,16.7,4.4,24.7-8,7.1-14.2-11.7-25.5-5.4-8.1,4.5-3.2,8.5-1.9,13.1Z'%2F%3E%3C%2Fsvg%3E");
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

i[class^="icon"] {
    display: block;
    background-color: var(--c-text);
    width: 18px;
    height: 18px;
    margin-right: 5px;
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}


/* === 文章预览滑入层 === */
aside {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    background: var(--c-bg);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.5, 0.5, 0.9);

    & > article {
        position: relative;
    }

    & + canvas {
        display: none;
    }
}

/* === 文章页 === */
:is(body, aside) > article {
    position: absolute;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    timeline-scope: --title;

    & > header {
        width: 100%;
        max-width: 100%;
        align-self: end;
        height: 50px;
        border-bottom: 1px solid var(--c-border);
        background: var(--c-bg);
        top: 0;
        position: sticky;
        z-index: 10;
        display: flex;
        align-items: center;
        transition: box-shadow 0.5s ease;

        & > * {
            margin: 13px;
        }

        &::before {
            content: "";
            position: absolute;
            bottom: 0;
            top: 0;
            left: 0;
            height: 2px;
            width: 0;
            background: #0004;
            animation: grow-progress linear both;
            animation-timeline: scroll(nearest);
        }

        &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            height: 100%;
            width: var(--play-progress, 0%);
            background: #0001;
            pointer-events: none;
        }

        & > [data-action="back"] {
            background-color: #333;
            --svg2: url("data:image/svg+xml,%3Csvg data-name='2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66.4 68.7'%3E%3Cpath d='M51.9 68.7c-13.2.7-12.8-11.5-9.7-20.9-6.9 5.4-13 15.2-22 18.1 3.6-5.4 11.3-11.5 15.8-17.1-1.8.6-7.8 2-8.2 1.8-2 0-4.4-3.8-2-4.5s22.2-4.5 24.7-5.3c6.7 3.2-2 4.8-4.8 5.4 1.1 1.9.8 3.4-.9 6.3a25.2 25.2 0 0 0-1 7.3c1.7 9.5 20.3 5.3 19-5.9 1.9 4.9 3.7 2.3 3.6 8.8-1.7 2.5-1.2 4.2-5.5 4.6a30.2 30.2 0 0 1-9 1.4zm-6.8-49.6c-3.8 1.5-10.6 2.6-13.3 3.9a11.2 11.2 0 0 1 .9 3.8c4.7 1.3.3 3.4-1.7 4.7a31.4 31.4 0 0 0-1.5 5.9l4.4-1.9c1.9.1 1.4 1.6.8 2-3.7 2.3-11.4 5.2-15.6 5.7-.1.5-.2 6.2-.2 6.8-.3 7.9-5.5 8.9-5.9 6s.5-5.6.7-7.9c-2.9 3.4-7.4 9-11.4 10.1-4-.5-2-4.3.3-5.2C0 53-1-2.9 6.9 12.4a17.2 17.2 0 0 1 5-.2c3.7-4.2 7.9.2 7.3 5.3 0 8.1 0 15.5-.1 22.6a40.7 40.7 0 0 0 8-2v-4.9c-2.3.9-4.7 1.3-5.6-1.8 1.3-1.3 4.6-1.2 5.9-2.4a11.3 11.3 0 0 1 2.3-5.8c-1.2-.5-2.6-1.9-2.6-3.1s7.6-2.1 9.2-2.9v-5c-3.1.9-7.6.7-8.1-2.8 1.7-2.1 5.6-1.6 8.1-2.3-.2-2.2.2-6.7 2.7-7.1.9 0 4 2.6 3.4 5 3-.9 7.2-2.3 7.8 1.5-1.1 2.5-6.6 3.2-8.6 4.3a18.9 18.9 0 0 0-.8 5.3c2.4-.7 6.2-2 9-3.1 2.7.6 2.3 2.5 1.3 3.6s-2.2 1-3.3 1.5zM9.3 29c7.1 1.1-1.5 5.5-4.7 5.6 0 5.3.2 9.6.3 16.8a82.1 82.1 0 0 1 8.8-4.6c.5-7.4.6-16.6.6-28.6 0-3.4.1-4.6-1.9-4.4l-.3.4c-.5.4-5.5 1.7-6.1 2.1a82.5 82.5 0 0 0-1.2 14.9c1-.8 4.4-2.5 4.5-2.2zm31.3 9.2c-1.5 0-3.6-2.8-1-3.4a27.3 27.3 0 0 0 4.5-.6 38.1 38.1 0 0 0 1.3-4.5c-1.8.2-4.5 1-5.8-.4s-1.5-1.6-.7-2.2l7.1-1.5c.6-1.9.2-4.4 1-5.8 2.1.6 4.3 1.7 4 4.2 2.2-.6 5.6-2.1 5.9 1-1.3 1.9-5.6 2.5-7.6 3.4-1.1 3.4-1.6 4.1-.7 4.9s1 0 1.2-.3l7.5-2.1c7.5 3.2-14.7 6.9-16.7 7.3z'/%3E%3C/svg%3E");
            -webkit-mask: var(--svg2);
            mask: var(--svg2);
            width: 24px;
            height: 24px;
            mask-repeat: no-repeat;
            -webkit-mask-repeat: no-repeat;
            cursor: pointer;
        }

        & > h3 {
            color: var(--c-muted);
            font-size: 14px;
            flex: 10;
            text-align: center;
            user-select: none;
            animation: fadeIn linear both;
            animation-timeline: --title;
            animation-range: exit;
        }

        & > [data-action="play"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            z-index: 4;
            background-color: transparent;
            border: none;
            padding: 0;

            & svg {
                pointer-events: none;
                cursor: pointer;
                fill: var(--c-muted);
            }
        }

        & > [data-action="like"] {
            width: 18px;
            height: 18px;
            border: none;
            background: none;
            cursor: pointer;
            padding: 0;

            & svg {
                pointer-events: none;
            }

            & path {
                fill: none;
                stroke: var(--c-muted);
                transition: all .3s ease;
            }

            &[data-liked] path {
                fill: var(--c-accent);
                stroke: var(--c-accent);
            }

            &[data-liked] svg {
                animation: like-pop .4s ease;
            }
        }

        & > [data-action="theme"] {
            width: 18px;
            height: 18px;
            border: none;
            background: none;
            cursor: pointer;
            padding: 0;

            & svg {
                pointer-events: none;
                color: var(--c-muted);
            }
        }
    }

    & > * {
        width: 700px;
        max-width: 90%;
    }

    & > h1 {
        margin-top: 50px;
        font-size: clamp(22px, 4vw, 30px);
        line-height: 1.3;
        font-weight: bold;
        view-timeline-name: --title;
    }

    & > h1 + span {
        margin-top: 20px;
        color: var(--c-muted);
        font-size: 13px;
    }

    & > section::before {
        content: '';
        height: 1px;
        width: 100px;
        background: #eee;
        display: block;
        margin: 30px auto 40px;
    }

    &.page section::before {
        display: none;
    }

    & > footer {
        width: var(--max-content);
        max-width: 90vw;

        /* === 评论表单 === */
        & form {
            margin-top: 30px;
            display: flex;
            flex-direction: column;

            & > div:first-of-type {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
            }

            & > div:last-of-type {
                display: flex;
                justify-content: center;
                gap: 16px;
                margin-top: 30px;
            }

            & textarea,
            & input {
                resize: vertical;
                overflow-x: hidden;
                border: none;
                border-bottom: 2px solid #eee;
                padding: 15px;
                margin-top: 20px;
                outline: none;
                font-size: 14px;
                background: transparent;

                &:focus {
                    transition: border-bottom 0.15s ease;
                    border-bottom: 2px solid #ABDEDE;
                }
            }

            & input:focus::placeholder {
                transition: all 0.15s ease;
                transform: translateX(-16px) translateY(-16px) scale(0.8);
            }

            & button {
                cursor: pointer;
                letter-spacing: 5px;
                border: 1px solid #dadada;
                width: 140px;
                text-align: center;
                color: var(--c-muted);
                font-size: 14px;
                padding: 10px 0;
                background-color: transparent;
            }
        }

        /* === 评论区 === */
        & > div {
            margin-top: 70px;
            margin-bottom: 100px;

            & ol::after {
                content: '';
                height: 1px;
                width: 100%;
                background: #eee;
                display: block;
                margin: 30px auto 40px;
            }

            & li {
                margin-top: 30px;
                display: grid;
                grid-template-columns: 40px 1fr auto;
                gap: 0 var(--sp-sm);

                &:not(:first-child) {
                    margin-left: 30px;
                }
            }

            & li > img {
                grid-row: 1 / 3;
                align-self: center;
                border-radius: 50%;
            }

            & cite {
                color: var(--c-accent);
                font-style: normal;
                font-size: 14px;

                & a {
                    color: inherit;
                    font-style: normal;
                }

                &[data-author="master"] a {
                    color: rgba(132, 0, 255, 0.5);
                }
            }

            & time {
                font-size: 12px;
                color: var(--c-muted);
            }

            & li > button {
                grid-column: 3;
                grid-row: 1 / 3;
                align-self: center;
                color: var(--c-accent);
                cursor: pointer;
                background: none;
                border: none;
                font-size: 13px;
                padding: 0;
            }

            & li > p {
                grid-column: 1 / -1;
                margin-top: 14px;
                font-size: 14px;
                line-height: 1.7;
                color: var(--c-text);
            }
        }
    }
}

@keyframes like-pop {
    50% { transform: scale(1.3); }
}

/* === 正文排版 === */
section {
    margin-bottom: 100px;

    & img {
        cursor: zoom-in;
    }

    & dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: none;
        max-height: none;
        border: 0;
        outline: 0;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        opacity: 0;
        scale: .9;
        transition: opacity .3s, scale .3s, overlay .3s allow-discrete, display .3s allow-discrete;

        &[open] {
            display: grid;
            place-items: center;
            opacity: 1;
            scale: 1;

            @starting-style {
                opacity: 0;
                scale: .9;
            }
        }

        &::backdrop {
            background: rgba(0, 0, 0, 0);
            backdrop-filter: blur(4px);
            transition: background .3s, backdrop-filter .3s, overlay .3s allow-discrete, display .3s allow-discrete;
        }

        &[open]::backdrop {
            background: rgba(0, 0, 0, .8);

            @starting-style {
                background: rgba(0, 0, 0, 0);
            }
        }

        & img {
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
            cursor: zoom-out;
            background: none;
            border: 0;
            border-radius: 0;
            box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
        }
    }
}

/* === 滚动条 === */
::-webkit-scrollbar-track-piece {
    background-color: var(--c-bg);
    -webkit-border-radius: 0;
}

::-webkit-scrollbar {
    width: 6px;
    height: 500px;
}

::-webkit-scrollbar-thumb:vertical {
    height: 70%;
    background-color: #7e5cac;
    -webkit-border-radius: 3px;
    outline: 1px solid var(--c-bg);
    outline-offset: -1px;
}

::-webkit-scrollbar-thumb:hover {
    height: 70%;
    background-color: #9f9f9f;
    -webkit-border-radius: 4px;
}

/* === 响应式 === */
@media screen and (max-width: 1024px) {
    #vibrant polygon {
        transform: translateX(-10%);
    }

    main {
        & > div {
            width: 40%;

            & > h2 {
                font-size: 20px;
            }

            & > h2 + div > p {
                font-size: 14px;
                margin-top: 10px;
            }
        }

        & > ol > li,
        & > ol > li:nth-child(even) {
            width: 95%;
            height: auto;
            flex-direction: column;
        }

        & > ol > li > a,
        & > ol > li:nth-child(even) > a {
            margin: 0;
            width: 100%;
            height: auto;
        }

        & > ol > li img {
            position: static;
            width: 100%;
            height: auto;
        }

        & > ol > li > div {
            height: auto;
            width: 96%;
            margin: 0 auto;
            background: transparent;
            border: none;

            & > h3 {
                font-size: 24px;
            }

            & > div:first-of-type {
                width: 100%;
                height: auto;
            }

            & > * {
                width: 100%;
                margin: 10px 0 0;
            }
        }
    }
}

@media screen and (max-width: 640px) {
    html {
        &::before {
            width: 100vw;
            animation: r_translate_mobile 2s;
        }

        &::after {
            display: none;
        }
    }


    main{
        &>div {
        top: 70vh;
        width: 70%;
        left: 5%;
        }
        & polygon {
            display: none;
        }
        &>ol{
            background: none;
        }
    }

    details div ul {
        margin-top: 30%;
    }

    details div li {
        font-size: 16px;
    }
}
