:root {
    --background: #fff;
    --sidebar-width: 256px;
    --sidebar-width-min: 80px;
    --sidebar-dark-primary: #7ebecb;
    --sidebar-dark-secondary: #666;
    --sidebar-light-primary: #f5f6fa;
    --sidebar-light-secondary: #f5f6fa;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}
body:after {
    background-image: url('picture/bg.PNG');
    background-repeat: no-repeat;
    background-size: cover;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 1;
    z-index: -1;
}
pointer-particles {
    position: fixed;
}
nav {
    background-color: rgba(0, 0, 0, 0.20);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: end;
    text-align: center;
    top: 0;
}
.menuItems {
    list-style: none;
    display: flex;
}
.menuItems li i {
    text-align: center;
    transition: color 0.3s ease-in-out;
}
.menuItems li:hover a, .menuItems li:hover{
    color: #00ffdd;
}
.menuItems li a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.3s ease-in-out;
    position: relative;
    text-transform: uppercase;
    margin: 20px;
}
nav #name {
    left: 50px;
    font-family: Arial, sans-serif;
    position: absolute;
    cursor: default;
}
section {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}
.hero {
    text-align: center;
    padding: 50px 0;
}
footer {
    background-color: #d9ede500;
    color: #000;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}
#side-content {
    position: absolute;
    right: 0;
}
#side-content .card-widget {
    position: fixed;
    padding: 0 15px 15px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#side-content .webinfo{
    bottom: 60px;
    right: 15px;
    height: 200px;
    width: 250px;
}
#side-content .intro{
    top: 75px;
    right: 15px;
    height: 400px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}
#side-content .intro hr {
     margin: 0 auto;
     position: relative;
     width: 200px;
     border: none;
     border-top: solid 1px #666666;
 }
#side-content .intro p {
    color: #444;
}
#dragon-part {
    display: flex;
    margin: 20px 5%;
    position: relative;
    flex-direction: row;
    gap: 30px;
}
.dragons {
    scale: 120%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
/* 悬停效果：放大和增加阴影 */
#side-content .card-widget:hover {
    transform: scale(1.01); /* 放大 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* 增加阴影 */
}
#side-content .card-widget .counter {
    bottom: 10px;
    right: 50px;
    position: absolute;
}
#side-content .card-widget .counter-text {
    bottom: 70px;
    position: absolute;
    color: #333;
    font-size: 15px;
}
#side-content .card-widget .time-text {
    bottom: 120px;
    position: absolute;
    color: #333;
    font-size: 15px;
}
.blog {
    background-color: #ffffffCC;
    width: 65%;
    padding: 20px;
    margin: 20px 110px 0;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}
.blog h2 {
    font-size: 32px;
    color: #333;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.post-body p {
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 15px;
}

.post-body h3 {
    font-size: 24px;
    margin-top: 20px;
}
#gitalk-container {
    position: relative;
    width: 60%;
    margin: 0 auto;
}
#pointer-particles {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#sidebar-toggle:checked ~ #sidebar-header {
    width: calc(var(--sidebar-width-min) - 16px);
}

#sidebar-toggle:checked ~ #sidebar-content, #sidebar-toggle:checked ~ #sidebar-footer {
    width: var(--sidebar-width-min);
}

#sidebar-toggle:checked ~ #sidebar-header #sidebar-title {
    opacity: 0;
    pointer-events: none;
    transition: opacity .1s;
}

#sidebar-toggle:checked ~ #sidebar-header label[for="sidebar-toggle"] {
    left: calc(50% - 8px);
    transform: translate(-50%);
}

#sidebar-toggle:checked ~ #sidebar-header #sidebar-toggle-burger {
    background: var(--sidebar-light-primary);
}

#sidebar-toggle:checked ~ #sidebar-header #sidebar-toggle-burger:before, #sidebar-toggle:checked ~ #sidebar-header #sidebar-toggle-burger:after {
    width: 16px;
    background: var(--sidebar-light-secondary);
    transform: translate(0, 0) rotate(0deg);
}

#sidebar-toggle:checked ~ #sidebar-content .sidebar-button span {
    opacity: 0;
    transition: opacity .1s;
}

#sidebar-toggle:checked ~ #sidebar-content .fa {
    min-width: calc(100% - 16px);
}

#sidebar-toggle:checked ~ #sidebar-footer #sidebar-footer-avatar {
    margin-left: 0;
    left: 50%;
    transform: translate(-50%);
}

#sidebar-toggle:checked ~ #sidebar-footer #sidebar-footer-titlebox, #sidebar-toggle:checked ~ #sidebar-footer label[for="sidebar-footer-toggle"] {
    opacity: 0;
    transition: opacity .1s;
    pointer-events: none;
}

#sidebar-bar {
    position: fixed;
    left: 10px;
    top: 75px;
    height: calc(100% - 20vw);
    background: var(--sidebar-dark-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    color: var(--sidebar-light-primary);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    overflow: hidden;
    user-select: none;
}

#sidebar-bar hr {
    margin: 0 auto;
    position: relative;
    width: calc(100% - 32px);
    border: none;
    border-top: solid 1px var(--sidebar-dark-secondary);
}

#sidebar-bar a {
    color: inherit;
    text-decoration: inherit;
}

#sidebar-bar input[type="checkbox"] {
    display: none;
}

#sidebar-header {
    position: relative;
    left: 16px;
    width: calc(var(--sidebar-width) - 16px);
    min-height: 80px;
    background: var(--sidebar-dark-primary);
    border-radius: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: width .2s;
}

#sidebar-title {
    font-size: 1.5rem;
    transition: opacity 1s;
}

label[for="sidebar-toggle"] {
    position: absolute;
    right: 0;
    width: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#sidebar-toggle-burger {
    position: relative;
    width: 16px;
    height: 2px;
    background: var(--sidebar-dark-primary);
    border-radius: 99px;
    transition: background .2s;
}

#sidebar-toggle-burger:before, #sidebar-toggle-burger:after {
    content: '';
    position: absolute;
    top: -6px;
    width: 10px;
    height: 2px;
    background: var(--sidebar-light-primary);
    border-radius: 99px;
    transform: translate(2px, 8px) rotate(30deg);
    transition: .2s;
}

#sidebar-toggle-burger:after {
    top: 6px;
    transform: translate(2px, -8px) rotate(-30deg);
}

#sidebar-content {
    margin: -16px 0;
    padding: 16px 0;
    position: relative;
    flex: 1;
    width: var(--sidebar-width);
    background: var(--sidebar-dark-primary);
    box-shadow: 0 0 0 16px var(--sidebar-dark-primary);
    direction: rtl;
    overflow-x: hidden;
    transition: width .2s;
}

#sidebar-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
#sidebar-content-highlight {
    position: absolute;
    left: 16px;
    top: calc(-54px - 16px);
    width: calc(100% - 16px);
    height: 54px;
    background: var(--background);
    background-attachment: fixed;
    border-radius: 16px 0 0 16px;
    transition: top .2s;
}

#sidebar-content-highlight:before, #sidebar-content-highlight:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 100%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 16px 16px var(--background);
}

#sidebar-content-highlight:after {
    top: 100%;
    box-shadow: 16px -16px var(--background);
}

.sidebar-button {
    position: relative;
    margin-left: 16px;
    height: 54px;
    display: flex;
    align-items: center;
    color: var(--sidebar-light-secondary);
    direction: ltr;
    cursor: pointer;
    z-index: 1;
    transition: color .2s;
}

.sidebar-button span {
    transition: opacity 1s;
    margin: 0 auto;
}

.sidebar-button .fa {
    transition: min-width .2s;
}

.sidebar-button:nth-of-type(1):hover ~ #sidebar-content-highlight { top: calc((1 - 1) * 54px + 16px); }
.sidebar-button:nth-of-type(1):hover { color: var(--sidebar-dark-secondary);}
.sidebar-button:nth-of-type(2):hover ~ #sidebar-content-highlight { top: calc((2 - 1) * 54px + 16px); }
.sidebar-button:nth-of-type(2):hover { color: var(--sidebar-dark-secondary);}
.sidebar-button:nth-of-type(3):hover ~ #sidebar-content-highlight { top: calc((3 - 1) * 54px + 16px); }
.sidebar-button:nth-of-type(3):hover { color: var(--sidebar-dark-secondary);}

/* hack: Repeat this pattern for other .sidebar-button:nth-of-type(N):hover selectors */

#sidebar-bar .fa {
    min-width: 3rem;
    text-align: center;
}
.cubes {
    width: 40px;
    height: 40px;
    margin: 100px auto;
}

.cubes .sk-cube {
    width: 33%;
    height: 33%;
    background-color: #333;
    float: left;
    animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
}

.cubes .sk-cube1 {
    animation-delay: 0.2s;
}

.cubes .sk-cube2 {
    animation-delay: 0.3s;
}

.cubes .sk-cube3 {
    animation-delay: 0.4s;
}

.cubes .sk-cube4 {
    animation-delay: 0.1s;
}

.cubes .sk-cube5 {
    animation-delay: 0.2s;
}

.cubes .sk-cube6 {
    animation-delay: 0.3s;
}

.cubes .sk-cube7 {
    animation-delay: 0s;
}

.cubes .sk-cube8 {
    animation-delay: 0.1s;
}

.cubes .sk-cube9 {
    animation-delay: 0.2s;
}

@keyframes sk-cubeGridScaleDelay {
    0%,
    70%,
    100% {
        transform: scale3D(1, 1, 1);
    }
    35% {
        transform: scale3D(0, 0, 1);
    }
}

/*  begin folding css */

.folding {
    margin: 20px auto;
    width: 60px;
    height: 60px;
    transform: rotateZ(45deg);
}

.folding .sk-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    transform: scale(1.1);
}

.folding .sk-cube:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00ffdd;
    animation: sk-foldCubeAngle 2.4s infinite linear both;
    transform-origin: 100% 100%;
}

.folding .sk-cube2 {
    transform: scale(1.1) rotateZ(90deg);
}

.folding .sk-cube3 {
    transform: scale(1.1) rotateZ(180deg);
}

.folding .sk-cube4 {
    transform: scale(1.1) rotateZ(270deg);
}

.folding .sk-cube2:before {
    animation-delay: 0.3s;
}

.folding .sk-cube3:before {
    animation-delay: 0.6s;
}

.folding .sk-cube4:before {
    animation-delay: 0.9s;
}

@keyframes sk-foldCubeAngle {
    0%,
    10% {
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%,
    75% {
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%,
    100% {
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

/*  begin bounce css */

.bounce {
    margin: 100px auto 0;
    width: 70px;
    text-align: center;
}

.bounce>div {
    width: 18px;
    height: 18px;
    background-color: #333;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.bounce .bounce1 {
    animation-delay: -0.32s;
}

.bounce .bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

/*  begin dots css */

.dots {
    margin: 100px auto;
    width: 40px;
    height: 40px;
    position: relative;
    text-align: center;
    animation: sk-rotate 2.0s infinite linear;
}

.dot1,
.dot2 {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: #333;
    border-radius: 100%;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.dot2 {
    top: auto;
    bottom: 0;
    animation-delay: -1.0s;
}

@keyframes sk-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-bounce {
    0%,
    100% {
        transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
    }
}

/*  begin fluct css */

.fluct {
    width: 40px;
    height: 40px;
    background-color: #333;
    margin: 100px auto;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

/*  begin double css */

.double {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 100px auto;
}

.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%,
    100% {
        transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
    }
}
/*  begin rect css */

.rect {
    margin: 100px auto;
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

.rect>div {
    background-color: #333;
    height: 100%;
    width: 6px;
    display: inline-block;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.rect .rect2 {
    animation-delay: -1.1s;
}

.rect .rect3 {
    animation-delay: -1.0s;
}

.rect .rect4 {
    animation-delay: -0.9s;
}

.rect .rect5 {
    animation-delay: -0.8s;
}

@keyframes sk-stretchdelay {
    0%,
    40%,
    100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1.0);
    }
}
.loader {
    position: fixed;
    background-color: #fff;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-items: center;
    transform: translate(-50%,-50%);
    z-index: 99999;
}
/* hack: Loading items
 <!-- begin cubes modal -->
 <div class="cubes">
  <div class="sk-cube sk-cube1"></div>
  <div class="sk-cube sk-cube2"></div>
  <div class="sk-cube sk-cube3"></div>
  <div class="sk-cube sk-cube4"></div>
  <div class="sk-cube sk-cube5"></div>
  <div class="sk-cube sk-cube6"></div>
  <div class="sk-cube sk-cube7"></div>
  <div class="sk-cube sk-cube8"></div>
  <div class="sk-cube sk-cube9"></div>
 </div>

 <!-- begin folding modal -->
 <div class="folding">
  <div class="sk-cube1 sk-cube"></div>
  <div class="sk-cube2 sk-cube"></div>
  <div class="sk-cube4 sk-cube"></div>
  <div class="sk-cube3 sk-cube"></div>
 </div>

 <!-- begin bounce modal -->
 <div class="bounce">
  <div class="bounce1"></div>
  <div class="bounce2"></div>
  <div class="bounce3"></div>
 </div>

 <!-- begin dots modal -->
 <div class="dots">
  <div class="dot1"></div>
  <div class="dot2"></div>
 </div>

 <!-- begin fluct modal -->
 <div class="fluct"></div>

 <!-- begin dots modal -->
 <div class="double">
  <div class="double-bounce1"></div>
  <div class="double-bounce2"></div>
 </div>

 <!-- begin rect modal -->
 <div class="rect">
  <div class="rect1"></div>
  <div class="rect2"></div>
  <div class="rect3"></div>
  <div class="rect4"></div>
  <div class="rect5"></div>
 </div>
 */