* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Acorn';
    src: url('./Acorn-Thin.woff') format('woff');
}

html {
    font-family: "Acorn";
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: aliceblue; */
    background: linear-gradient(-45deg,
            rgba(238, 119, 82, 0.2),
            rgba(231, 60, 126, 0.2),
            rgba(35, 166, 213, 0.2),
            rgba(35, 213, 171, 0.2));
    background-size: 600% 600%;
    animation: gradientAnimation 30s ease infinite;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    position: relative;
    width: 90vw;
    height: calc(100vh - 10vw);
    overflow: hidden;
    border-radius: 20px;
    background-color: antiquewhite;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.2);
}

input[type="radio"][name="page"] {
    display: none;
}

a:link {
    text-decoration: none;
}

label {
    cursor: pointer;
    border-radius: 20px;
    padding: 10px;
}

label:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 20px 20px 0 0;
}

header .logo:hover::before {
    rotate: 3600deg;
    transition-duration: 10s;
    filter: hue-rotate(700deg) contrast(5) saturate(5) grayscale(0%);
}

header .logo::before {
    display: inline-block;
    content: "";
    width: 40px;
    height: 40px;
    margin-left: 5px;
    transform: scaleX(-1);
    background-image: url("./handou-as-raphael.png");
    background-size: cover;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 1);
    transition-duration: 10s;
}

header .logo {
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav {
    flex: 0;
    display: flex;
    justify-content: right;
    gap: 10px;
    margin-right: 5px;
    overflow: hidden;
    transition-duration: 1.2s;
}

header:hover nav {
    flex: 1;
}

header nav:hover>label {
    display: flex;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
}

.page {
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition-duration: 0.7s;
}

.page[name="home"] {
    justify-content: center;
    transform: translate(300%, 0);
}

.page[name="about"] {
    transform: translate(-300%, 0);
}

.page[name="artworks"] {
    transform: translate(300%, 300%);
}

.page[name="paintings"] {
    transform: translate(-300%, 300%);
}

.page[name="drawings"] {
    transform: translate(300%, -300%);
}

.page[name="projects"] {
    transform: translate(-300%, -300%);
}

input[type="radio"][name="page"][id="home"]:checked~header label[for="home"] {
    background-color: rgba(255, 255, 255, 1);
}

input[type="radio"][name="page"][id="about"]:checked~header nav label[for="about"] {
    background-color: rgba(255, 255, 255, 1);
}

input[type="radio"][name="page"][id="artworks"]:checked~header nav label[for="artworks"] {
    background-color: rgba(255, 255, 255, 1);
}

input[type="radio"][name="page"][id="paintings"]:checked~header nav label[for="paintings"] {
    background-color: rgba(255, 255, 255, 1);
}

input[type="radio"][name="page"][id="drawings"]:checked~header nav label[for="drawings"] {
    background-color: rgba(255, 255, 255, 1);
}

input[type="radio"][name="page"][id="projects"]:checked~header nav label[for="projects"] {
    background-color: rgba(255, 255, 255, 1);
}

input[type="radio"][name="page"][id="home"]:checked~main .page[name="home"] {
    transform: translate(0, 0);
}

input[type="radio"][name="page"][id="about"]:checked~main .page[name="about"] {
    transform: translate(0, 0);
}

input[type="radio"][name="page"][id="artworks"]:checked~main .page[name="artworks"] {
    transform: translate(0, 0);
}

input[type="radio"][name="page"][id="paintings"]:checked~main .page[name="paintings"] {
    transform: translate(0, 0);
}

input[type="radio"][name="page"][id="drawings"]:checked~main .page[name="drawings"] {
    transform: translate(0, 0);
}

input[type="radio"][name="page"][id="projects"]:checked~main .page[name="projects"] {
    transform: translate(0, 0);
}

.welcome {
    display: flex;
    position: relative;
    width: 400px;
    height: 300px;
    align-self: center;
    justify-content: center;
    align-items: center;
}

.welcome .fly {
    position: absolute;
    width: 30px;
    /* transform: translate(120px, -116px);
    transition-duration: 10s; */
    animation: 2s flyIn forwards;
    filter: drop-shadow(5px 5px 1px rgba(0, 0, 0, 0.2));
    /* rotate: -130deg; */
}

.welcome:hover .fly {
    animation: 4s flyOut forwards;
}

.welcome .cat {
    position: absolute;
    transform: scaleX(-1) translate(70px, 10px) rotate(30deg);
    filter: drop-shadow(5px 5px 1px rgba(0, 0, 0, 0.2));
    width: 80px;
}

.welcome:hover .cat {
    transform: scaleX(1) translate(70px, -10px) rotate(30deg);
}

@keyframes flyIn {
    0% {
        transform: translate(30px, -500px);
        rotate: -360deg;
    }

    100% {
        transform: translate(120px, -116px);
        rotate: -720deg;
    }
}

@keyframes flyOut {
    0% {
        transform: translate(120px, -116px);
        rotate: 0deg;
    }

    100% {
        transform: translate(30px, -500px);
        rotate: -360deg;
    }
}

.welcome::before {
    position: absolute;
    display: block;
    content: "";
    width: 180px;
    height: 250px;
    /* bottom: 40px;
    left: 95px; */
    bottom: 35px;
    left: 165px;
    transform: rotate(10deg);
    background-image: url("./woman.png");
    background-size: 100% 100%;
    filter: drop-shadow(10px 0px 1px rgba(0, 0, 0, 0.3));
}

.welcome:hover::before {
    transform: rotate(5deg);
}

.welcome::after {
    display: block;
    content: "";
    width: 400px;
    height: 300px;
    background-image: url("./sofa.png");
    background-size: cover;
}

@keyframes infoOut {
    0% {
        transform: translateX(0px) translateY(160px);
    }

    100% {
        display: none;
        transform: translateX(300%);
    }
}

@keyframes infoIn {
    0% {
        transform: translateX(300%);
    }

    100% {
        /* display: block; */
        transform: translateX(0px) translateY(160px);
    }
}

.page[name="home"] .info {
    position: absolute;
    color: chocolate;
    transform: translateY(20px);
    animation: 1s infoOut forwards;
}

.page[name="home"]:hover>.info {
    animation: 1s infoIn forwards;
}

.page[name="home"] .info p {
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.page[name="artworks"] img,
.page[name="paintings"] img,
.page[name="drawings"] img {
    width: 200px;
}

footer {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px 0px 20px 20px;
    font-size: 12px;
    font-weight: 800;
}


header,
footer {
    background-color: rgba(255, 255, 255, 0.3);
}

button {
    background-color: transparent;
    border: none;
}

li {
    list-style: none;
}


details {
    width: 100%;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 5px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

details:hover {
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); */
}

summary {
    margin: 10px auto;
    font-size: 16px;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    list-style: none;
    position: relative;
    background-clip: text;
    transition: all 0.3s ease;
    padding-bottom: 20px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: 'more';
    position: absolute;
    right: 5px;
    bottom: -10px;
    transition: transform 0.3s ease;
    color: rgba(0, 0, 0, 0.5);
}

details[open] summary::before {
    /* transform: rotate(90deg); */
    content: 'less';
}

details summary .text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

details[open] summary .text {
    /* border-left: 2px solid #f0f0f0; */
    display: block;
}

/* UI 组件 */

.quote-card {
    width: calc(100% - 25px);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 5px 5px 1px rgba(0, 0, 0, 0.1);
    padding: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
}

.quote-card::before {
    content: " ";
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    color: #667eea;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 30px;
    line-height: 1;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.quote-card p {
    font-weight: 100;
    font-size: 14px;
    margin: 10px auto;
}

.quote-author {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: right;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    position: relative;
}

.quote-author::before {
    content: "——";
    margin-right: 8px;
}

.decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 0.1;
    bottom: -30px;
    right: -30px;
}

.music-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #667eea;
    opacity: 0.3;
    font-size: 24px;
}

.window {
    width: 200px;
    height: 400px;
    background: bisque;
    border: solid 1px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 200px;
}

.window .title_bar {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    height: 30px;
    align-items: center;
    padding: 0 5px;
    border-radius: 4px 4px 0 0;
}

.window .title_bar .title {
    flex: 1
}

.close {
    position: relative;
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
}

.close:hover {
    background: #e81123;
    border-color: #e81123;
}

.close::before,
.close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #5a5a5a;
    transform-origin: center;
    transition: all 0.2s ease;
}

.close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close:hover::before,
.close:hover::after {
    background: white;
    width: 16px;
}

.window-handle {
    padding: 5px;
}

input[name="window"] {
    display: none;
}

input[name="window"]:checked+.window {
    display: none;
}

/* 通用属性 */

.padding5 {
    padding: 5px;
}

.hidden {
    display: none;
}

.scrollbar-wapper {
    overflow: hidden;
}

.scrollbar {
    scrollbar-color: transparent transparent;
}

.scrollbar:hover {
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.scrollbarX {
    overflow-x: auto;
}

.scrollbarY {
    overflow-y: auto;
}

.flex {
    flex: 1;
}

.full {
    width: 100%;
    height: 100%;
}

.fullX {
    width: 100%;
}

.fullX2 {
    width: 200%;
}

.fullY {
    height: 100%;
}

.column {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centerX {
    display: flex;
    justify-content: center;
}

.centerY {
    display: flex;
    align-items: center;
}

.gap10 {
    gap: 10px;
}

/* 单行文本截断 */
.single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 多行文本截断 -webkit-line-clamp */
.multi-line {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text {
    display: flex;
    justify-content: space-between;
    text-align: justify;
    text-justify: inter-character;
}


.filter-effect {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: hue-rotate(700deg) contrast(5) saturate(5) brightness(0.9) grayscale(0%);
    /* filter: hue-rotate(600deg) contrast(1.3) saturate(1.5) brightness(0.9) grayscale(50%); */
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        2px 2px 1px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.filter-effect:hover {
    filter: hue-rotate(0deg) brightness(1.0);
    transform: scale(1.03);
}