/*-------------------------------- | --------------------------------*/
/* 基础样式
/*-------------------------------- | --------------------------------*/
html {
    cursor: grab;
}
html:active,
a {
    cursor: grabbing;
}

/* 禁止复制拖动 */
body,
a,
input,
img {
    user-drag: none;
    user-select: none;
    touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-drag: none;
    -moz-user-select: none;
    -moz-touch-callout: none;
}

/* 去掉按下的阴影盒子 */
input,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}

/*  清除a标签下划线 */
a,
a:visited {
    text-decoration: none;
}

a:focus,
a:active,
a:hover {
    outline: none;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100dvh;
}

/*--------------------------------*/
/* 点击特效样式
/*--------------------------------*/
.click-heart {
    width: 10px;
    height: 10px;
    position: fixed;
    background: #f00;
    transform: rotate(45deg);
    z-index: 999999;
}
.click-heart:after,
.click-heart:before {
    content: '';
    width: inherit;
    height: inherit;
    background: inherit;
    border-radius: 50%;
    position: fixed;
}
.click-heart:after {
    top: -5px;
    left: 0;
}
.click-heart:before {
    top: 0;
    left: -5px;
}

/*-------------------------------- | --------------------------------*/
/* 旋转方块样式
/*-------------------------------- | --------------------------------*/
.puzzle-guzzle-box {
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transform: rotateX(13deg);
    animation: puzzle_guzzle_move 5s linear infinite;
    -webkit-transform-style: preserve-3d;
    -webkit-transform: rotateX(13deg);
    -webkit-animation: puzzle_guzzle_move 5s linear infinite;
}
.puzzle-guzzle-box li {
    list-style: none;
}
.puzzle-guzzle-box .puzzle-guzzle-minbox {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50px;
    top: 50px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
.puzzle-guzzle-box .puzzle-guzzle-minbox li {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 0;
    top: 0;
}
.puzzle-guzzle-box .puzzle-guzzle-minbox li:nth-child(1) {
    background: url('img/ymcxy/01.png') no-repeat 0 0;
    transform: translateZ(50px);
    -webkit-transform: translateZ(50px);
}
.puzzle-guzzle-box .puzzle-guzzle-minbox li:nth-child(2) {
    background: url('img/ymcxy/03.png') no-repeat 0 0;
    transform: rotateX(180deg) translateZ(50px);
    -webkit-transform: rotateX(180deg) rotateZ(180deg) translateZ(50px);
}
.puzzle-guzzle-box .puzzle-guzzle-minbox li:nth-child(3) {
    background: url('img/ymcxy/05.png') no-repeat 0 0;
    transform: rotateX(0deg) translateZ(0px);
    -webkit-transform: rotateX(-90deg) rotateZ(90deg) translateZ(50px);
}
.puzzle-guzzle-box .puzzle-guzzle-minbox li:nth-child(4) {
    background: url('img/ymcxy/06.png') no-repeat 0 0;
    transform: rotateX(90deg) translateZ(50px);
    -webkit-transform: rotateX(90deg) translateZ(50px);
}
.puzzle-guzzle-box .puzzle-guzzle-minbox li:nth-child(5) {
    background: url('img/ymcxy/02.png') no-repeat 0 0;
    transform: rotateY(-90deg) translateZ(50px);
    -webkit-transform: rotateY(-90deg) translateZ(50px);
}
.puzzle-guzzle-box .puzzle-guzzle-minbox li:nth-child(6) {
    background: url('img/ymcxy/04.png') no-repeat 0 0;
    transform: rotateY(90deg) translateZ(50px);
    -webkit-transform: rotateY(90deg) translateZ(50px);
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox li {
    width: 200px;
    height: 200px;
    background: #ffffff80;
    border: 1px solid #999;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.2;
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox li:nth-child(1) {
    transform: translateZ(100px);
    -webkit-transform: translateZ(100px);
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox li:nth-child(2) {
    transform: rotateX(180deg) translateZ(100px);
    -webkit-transform: rotateX(180deg) translateZ(100px);
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(100px);
    -webkit-transform: rotateX(-90deg) translateZ(100px);
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox li:nth-child(4) {
    transform: rotateX(90deg) translateZ(100px);
    -webkit-transform: rotateX(90deg) translateZ(100px);
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(100px);
    -webkit-transform: rotateY(-90deg) translateZ(100px);
}
.puzzle-guzzle-box .puzzle-guzzle-maxbox li:nth-child(6) {
    transform: rotateY(90deg) translateZ(100px);
    -webkit-transform: rotateY(90deg) translateZ(100px);
}
.puzzle-guzzle-box:hover ol li {
    transform: translateZ(300px);
    -webkit-transform: translateZ(300px);
}
.puzzle-guzzle-box:hover ol li:nth-child(1) {
    transform: translateZ(300px);
    -webkit-transform: translateZ(300px);
}
.puzzle-guzzle-box:hover ol li:nth-child(2) {
    transform: rotateX(180deg) translateZ(300px);
    -webkit-transform: rotateX(180deg) translateZ(300px);
}
.puzzle-guzzle-box:hover ol li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(300px);
    -webkit-transform: rotateX(-90deg) translateZ(300px);
}
.puzzle-guzzle-box:hover ol li:nth-child(4) {
    transform: rotateX(90deg) translateZ(300px);
    -webkit-transform: rotateX(90deg) translateZ(300px);
}
.puzzle-guzzle-box:hover ol li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(300px);
    -webkit-transform: rotateY(-90deg) translateZ(300px);
}
.puzzle-guzzle-box:hover ol li:nth-child(6) {
    transform: rotateY(90deg) translateZ(300px);
    -webkit-transform: rotateY(90deg) translateZ(300px);
}
@keyframes puzzle_guzzle_move {
    0% {
        transform: rotateX(13deg) rotateY(0deg);
        -webkit-transform: rotateX(13deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(13deg) rotateY(360deg);
        -webkit-transform: rotateX(13deg) rotateY(360deg);
    }
}

/*-------------------------------- | --------------------------------*/
/* 页面样式
/*-------------------------------- | --------------------------------*/
body {
    overflow: hidden;
    background: url('img/背景.jpg') center center / cover no-repeat fixed, linear-gradient(to right, #b3dbe5, #ffffff);
}
body::before {
    content: '';
    position: absolute;
    top: 2dvh;
    left: 2dvw;
    width: auto;
    height: 6dvh;
    aspect-ratio: 491 / 137;
    background-image: url('img/佚名程序员.png');
    background-size: contain;
    background-repeat: no-repeat;
}
body::after {
    content: '';
    position: absolute;
    bottom: 2dvh;
    right: 2dvw;
    width: auto;
    height: 12dvh;
    aspect-ratio: 300 / 293;
    background-image: url('img/招财进宝.png');
    background-size: contain;
    background-repeat: no-repeat;
}

/*--------------------------------*/
/* 底部弹出栏
/*--------------------------------*/
.bottom-bar {
    position: fixed;
    left: 50%;
    bottom: -120px; /* 默认隐藏在视口下方 */
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 110px;
    background: rgba(40, 40, 40, 0);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.3, 1);
    z-index: 999999;
}

/* 弹出时状态 */
.bottom-bar.active {
    bottom: 0;
}

/* 内容 */
.bottom-bar p {
    margin: 0;
    font-size: 18px;
    color: white;
    letter-spacing: 1px;
}
.bottom-bar-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    column-gap: 0.5rem;
    row-gap: 0.2rem;
}
.bottom-bar-link-message {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    column-gap: 0.5rem;
    row-gap: 0.2rem;
}
.bottom-bar-link i {
    cursor: grabbing;
    filter: grayscale(1) brightness(8);
    transition: 0.125s ease-in;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
}
.bottom-bar-link i:hover {
    filter: contrast(0.5);
    transform: scale(1.05);
}
.bottom-bar-link i.i_1 {
    background-image: url('img/码云.png');
}
.bottom-bar-link i.i_2 {
    background-image: url('img/博客.png');
}
.bottom-bar-link i.i_3 {
    background-image: url('img/公众号.png');
}
.bottom-bar-link i.i_4 {
    background-image: url('img/微信.png');
}
.bottom-bar-link i.i_5 {
    background-image: url('img/二维码.png');
}
.bottom-bar-link i.i_6 {
    background-image: url('img/邮箱.png');
}
.bottom-bar-link-message i {
    cursor: grabbing;
    transition: 0.125s ease-in;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
}
.bottom-bar-link-message i:hover {
    transform: scale(1.05);
}
.bottom-bar-link-message i.i_1 {
    background-image: url('img/留言.png');
}
.bottom-bar-link-message i.i_2 {
    background-image: url('img/登录.png');
}

@media (max-width: 600px) {
    .bottom-bar-link i,
    .bottom-bar-link-message i {
        width: 1.2rem;
        height: 1.2rem;
    }
    .bottom-bar-link,
    .bottom-bar-link-message {
        top: 0.6rem;
    }
}

@media (max-width: 499px) {
    .bottom-bar-link {
        width: 5rem;
        flex-wrap: wrap;
    }
}

/*--------------------------------*/
/* 页脚
/*--------------------------------*/
footer .puzzle-guzzle {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    scale: 0.5;
    position: absolute;
    top: -14rem;
    left: 0;
}

footer .footer-enjoy-today::before {
    content: '𝔼𝕟𝕛𝕠𝕪 𝕋𝕠𝕕𝕒𝕪 \A 今日無事，唯有開心🍑';
    white-space: pre;
    display: block;
    color: white;
    text-align: center;
    font-family: initial;
    text-shadow: 1px 0 0 #9ca3af, -1px 0 0 #9ca3af, 0 1px 0 #9ca3af, 0 -1px 0 #9ca3af, 1px 1px 0 #9ca3af, -1px 1px 0 #9ca3af, 1px -1px 0 #9ca3af, -1px -1px 0 #9ca3af;
}
footer .footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 0.6rem;
    margin-top: 1.25rem;
    text-shadow: 1px 0 0 #9ca3af, -1px 0 0 #9ca3af, 0 1px 0 #9ca3af, 0 -1px 0 #9ca3af, 1px 1px 0 #9ca3af, -1px 1px 0 #9ca3af, 1px -1px 0 #9ca3af, -1px -1px 0 #9ca3af;
}
footer .footer-copyright::before {
    content: 'Copyright © 2023 ~ 2025 佚名程序员';
    display: block;
    margin-right: 0.4rem;
}

footer .footer-beian {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0rem;
}
footer .footer-beian span {
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 0.5rem;
    cursor: grabbing;
    position: relative;
    margin-left: 12.5px;
    display: inline-block;
}
footer .footer-beian span:hover {
    color: #ffbb00;
    background-color: #004cbd33;
}
footer .footer-beian .icp::before {
    content: '';
    position: absolute;
    top: 3px;
    left: -10px;
    display: inline-block;
    width: 10px;
    height: 10px;
    aspect-ratio: 32 / 32;
    background-image: url('img/ICP备案.webp');
    background-size: contain;
    background-repeat: no-repeat;
}
footer .footer-beian .ga::before {
    content: '';
    position: absolute;
    top: 2.5px;
    left: -10px;
    display: inline-block;
    width: 10px;
    height: 10px;
    aspect-ratio: 32 / 32;
    background-image: url('img/公网安备.webp');
    background-size: contain;
    background-repeat: no-repeat;
}
footer .footer-beian .icp::after {
    content: '陕ICP备2022002025号-4';
}
footer .footer-beian .ga::after {
    content: '陕公网安备61011302001852号';
}

@media (max-width: 767px) {
    footer .footer-info {
        display: block;
    }
    footer .footer-beian {
        margin-top: 0.2rem;
    }
    footer .footer-beian span {
        padding: 0.1rem 0.3rem;
    }
}

@media (max-width: 499px) {
    footer .footer-beian span {
        padding: 0.1rem 0.2rem;
    }
}

/*--------------------------------*/
/* 用户信息框样式
/*--------------------------------*/
.user-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
}
.user-loader .loader {
    width: 300px;
    height: 428px;
    padding: 30px;
    background: #f5f5f5;
    border: 2px solid #eee;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.user-loader .header {
    display: flex;
    margin-top: 10px;
    margin-bottom: 40px;
}

.user-loader .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e0e0e0;
    margin-right: 30px;
}

.user-loader .info {
    flex: 1;
    padding-top: 10px;
}

.user-loader .nickname {
    width: 80px;
    height: 32px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
}
.user-loader .signature {
    width: 110px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 8px;
}

.user-loader .user-form {
    width: 220px;
    height: 220px;
    background: #e0e0e0;
    border-radius: 1rem;
    margin: 0 auto;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}
.user-loader .user-form::before {
    content: '账号登录';
    display: block;
    color: #674430;
    font-weight: bold;
}
.user-loader .user-form::after {
    content: ' ';
    display: block;
    font-size: 1rem;
    color: #8090ac;
}
.user-loader .user-form.success::after {
    content: '✅ 登录成功！';
    display: block;
    font-size: 1rem;
    color: #80ac84;
}
.user-loader .user-form.logging::after {
    content: '💤登录中...';
    display: block;
    font-size: 1rem;
    color: #8090ac;
}
.user-loader .user-form.failure::after {
    content: '❌ 账号密码错误';
    display: block;
    font-size: 1rem;
    color: #ac8080;
}
.user-loader .user-form.error::after {
    content: '❌ 请求出错';
    display: block;
    font-size: 1rem;
    color: #ac8080;
}

.user-loader .loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    animation: QRcode_loader_shine 1.2s infinite;
}

@keyframes QRcode_loader_shine {
    100% {
        left: 200%;
    }
}

/*--------------------------------*/
/* 账号密码登录表单
/*--------------------------------*/
#loginForm {
    --bg-light: #efefef;
    --bg-dark: #707070;
    --clr: #58bc82;
    --clr-alpha: #9c9c9c60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80%;
}

#loginForm .input-span {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#loginForm input[type='username'],
#loginForm input[type='password'] {
    border-radius: 0.25rem;
    padding: 0.5rem 0.375rem;
    width: calc(100% - 0.75rem);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--clr-alpha);
    outline: 1px solid var(--bg-dark);
    color: #674430;
}

#loginForm input[type='username']:focus,
#loginForm input[type='password']:focus {
    outline: 1px solid var(--clr);
}

#loginForm .label {
    align-self: flex-start;
    color: var(--clr);
    font-weight: 600;
    font-size: 0.8rem;
}

#loginForm .submit {
    padding: 0.5rem 0.375rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    border-radius: 1.5rem;
    background-color: var(--bg-dark);
    color: var(--bg-light);
    border: none;
    cursor: grabbing;
    transition: all 300ms;
    font-weight: 600;
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
}

#loginForm .submit:hover {
    background-color: var(--clr);
    color: var(--bg-dark);
}
