/* @font-face {
    font-family: "a";
    src: url("/static/assets/fonts/中文字体.ttf");
    font-display: swap;
}

@font-face {
    font-family: "b";
    src: url("/static/assets/fonts/英文字体.ttf");
    font-display: swap;
} */


/* 右下角夏梦 */
.element {
    background-image: url("/static/assets/夏梦/夏梦.png");
    position: fixed; /* 固定 */
    top: 95%; /* 上下 */
    left: 98%; /* 左右 */
    transform: translate(-80%, -80%); /* 图片居中 */
    width: 150px; /* 宽度 */
    height: 150px; /* 高度 */ 
    background-size: cover; /* 图片大小 */
    background-position: center; /* 图片居中 */
    z-index: 10000; /* 置顶 */
    /* 鼠标放入的猫猫效果 */
    transition: all 0.3s ease;
}


/* 夏梦猫猫效果 */
.element:hover {
    background-image: url("/static/assets/夏梦/夏梦猫猫.png");
    transform: translate(-80%, -80%) rotate(-10deg) scale(1.1);
}








* {
    font-family: "b", "a", sans-serif;
}

* {
    /* 鼠标 */
    /* cursor: url('/static/sb.cur'),auto; */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    transition: none; /* 移除全局过渡，减少闪烁 */
}

/* 保留必要的过渡效果 */
.iconItem,
.theme-toggle,
.theme-icon,
.sun-icon,
.moon-icon,
.projectItem,
.projectItemLeft,
.projectItemRight,
#PageLoading,
#PageLoading-zyyo-center,
.object {
    transition: all 0.3s ease;
}

/* 文字和颜色相关元素的平滑过渡 */
.welcome,
.description,
.title,
h1, h2, h3, h4, h5, h6,
p, span, div,
.projectItemLeft h1,
.projectItemLeft p {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* 确保主题切换时的平滑过渡 */
html, body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

a:hover,
a:link,
a:visited,
a:active,
a:focus {
    text-decoration: none;
    outline: none;
    border: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 设置滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-text-color, #000000);
    border-radius: 8px;
    height: 20%;
}

::-webkit-scrollbar-track {
    background-color: var(--main-bg-color, linear-gradient(50deg, #a2d0ff, #ffffff));
}

   
  
  


    /*暗色主题*/
html[data-theme="dack"] {
    --main-bg-color: rgb(0, 0, 0) ;
    --main-text-color: #fff;
    --gradient-start: rgb(133, 62, 255);
    --gradient-middle: #f76cc6;
    --gradient-end: rgb(255, 255, 255);
    --purple-text-color: #747bff;
    --text-bg-color: rgb(26, 4, 48);
    --icon-bg-color: rgb(19, 20, 24);
    --icon-1-hover-color: rgb(68, 120, 241);
    --icon-2-hover-color: rgb(232, 68, 241);
    --icon-3-hover-color: rgb(179, 206, 0);
    --icon-4-hover-color: rgb(201, 13, 0);
    --icon-5-hover-color: rgb(111, 44, 20);
    --project-item-bg-color: rgb(19, 20, 24);
    --project-item-hover-color: rgb(19, 23, 27);
    --project-item-left-title-color: rgb(255, 255, 255);
    --project-item-left-text-color: rgb(142, 142, 142);
    --footer-text-color: #646464;
}



   /*评论*/
:root {
    --waline-border: none;
    --waline-box-shadow: 0 12px 40px rgb(134 151 168 / 25%);
  }
  
  @media (prefers-color-scheme: dark) {
    body {
      --waline-box-shadow: 0 0px 0px #ffffff;
    }
  }


/* 评论动图 */
  /* #wl-edit {
    background: url("/素材/gif/评论动图.gif") ;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: right bottom !important; 
} */




/* 背景样式 */
   body {
    background-image: url('/static/assets/网页背景.jpg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
  }
  
  /* 统一的背景覆盖层 */
  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
    transition: background-color 0.3s ease; /* 添加平滑过渡 */
  }
  
  /* 暗色主题时调整覆盖层透明度 */
  html[data-theme="dack"] body::before {
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  /* 当屏幕宽度小于或等于760px时，移除背景图片和覆盖层 */
  @media (max-width: 760px) {
    body {
      background-image: none;
    }
    body::before,
    html[data-theme="dack"] body::before {
      content: none; /* 移除覆盖层 */
    }
    body {
      display: flex;
      height: 100%;
      min-height: 100vh;
      width: 100%;
      background: var(--main-bg-color, linear-gradient(50deg, #a2d1ff, #fffbfb));
      overflow-x: hidden;
      justify-content: center;
      color: var(--main-text-color, #000000);
  
  }
  
  }


body {
    display: flex;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    justify-content: center;
    color: var(--main-text-color);

}







#PageLoading {
    background: radial-gradient(white, #d8eaff);
    background-size: 100%;
    background-position: center;
    background-color: #fff;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 999999;
    margin-top: 0px;
    top: 0px;
    pointer-events: none;
    opacity: 1;
    transition: all 0.5s ease;
    background-attachment: fixed;
}

/* 暗色主题加载动画样式 */
html[data-theme="dack"] #PageLoading {
    background: radial-gradient(#1a1a1a, #0a0a0a), #000;
    background-attachment: fixed;
}

#PageLoading-zyyo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#PageLoading-zyyo-center {
    height: 200px;
    width: 200px;
    position: relative;
    transition: all 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.object {
    -moz-border-radius: 50% 50% 50% 50%;
    -webkit-border-radius: 50% 50% 50% 50%;
    border-radius: 50% 50% 50% 50%;
    position: absolute;
    border-left: 5px solid #bdbdbd;
    border-right: 5px solid #585858;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    -webkit-animation: animate 2.5s infinite;
    animation: animate 2.5s infinite;
}

/* 暗色主题旋转圆环样式 */
html[data-theme="dack"] .object {
    border-left: 5px solid #4a4a4a;
    border-right: 5px solid #8a8a8a;
}

#object_one {
    width: 20%;
    height: 20%;
}

#object_two {
    width: 35%;
    height: 35%;
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

#object_three {
    width: 45%;
    height: 45%;
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

#object_four {
    width: 55%;
    height: 55%;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

@-webkit-keyframes animate {
    50% {
        -ms-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes animate {
    50% {
        -ms-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }

    100% {
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}









.main {
    width: 100%;
    max-width: 1200px;
    position: relative;
    flex-direction: row;
}

.left {
    width: 250px;
    height: 100vh;
    display: flex;
    padding: 0 15px;
    position: fixed;
    align-items: center;
    flex-direction: column;
}

.left-main {
    width: 100%;
     height: 100vh;
    overflow-y: scroll;
    display: flex;
  
    align-items: center;
    flex-direction: column;

}

.left-main::-webkit-scrollbar {
   display: none;
}


.logo {
    flex-shrink: 0;
    width: 90%;
    position: relative;
    aspect-ratio: 1/1;
    margin-top: 50px;
    background-size: cover;
    border-radius: 50%;
    
    transition: all 0.8s ease-in-out;
   
}

.pinlun {
    flex-shrink: 0;
    width: 100%;
    border-radius: 13px;
    margin-top: 15px;
    padding: 20px;
    background: var(--project-item-bg-color, rgba(249, 250, 251, 0.6));
    backdrop-filter: blur(7px); /* 模糊效果 */
}

.left-div {
    flex-shrink: 0;
    width: 100%;
    border-radius: 13px;
    margin-top: 15px;
    padding: 20px;
    background: var(--project-item-bg-color, rgba(249, 250, 251, 0.6));
    backdrop-filter: blur(5px); /* 模糊效果 */
}

.left-des {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.left-div-item {
    display: flex;
    align-items: center;
    line-height: 20px;
    font-size: 15px;
    gap: 8px;
    overflow: hidden;
}

.left-tag {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
}

.left-tag-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
    background: var(--main-bg-color, linear-gradient(50deg, #a2d1ff, #ffffff));

}

#line {
    width: 100%;
    height: 200px;
    font-size: 13px;
    padding-left: 10px;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

#line li {
    list-style: none;
    position: relative;
    padding: 15px 0px 0px 15px;
    border-left: 2px solid #adbeff;
    border-radius: 0;
    scroll-snap-align: end;
    color: #82888a;
}



.focus {
    width: 15px;
    height: 15px;
    border-radius: 22px;
    background-color: #8da1ff;
    border: 2px solid #fff;
    position: absolute;
    left: -9px;
    top: 50%;
}

#line li:first-child .focus:first-child {
    background-color: #2ecc71;
    animation: focus 1.8s ease infinite;
}
#line::-webkit-scrollbar {
   display: none;
}
.left-title {
    font-size: 20px;
    margin-top: 30px;
}


.right {
    width: calc(100% - 250px);
    display: flex;
    padding: 25px;
    position: relative;
    float: right;
    flex-direction: column;
}

.welcome {

    font-size: 55px;
    font-weight: 800;
    margin: 30px 0;
}

.description {

    font-size: 20px;
    margin-top: 7px;
}

.gradientText {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    background-position: 0%;
    animation: backgroundSizeAnimation 5s ease-in-out infinite;
    background-image: linear-gradient(120deg, var(--gradient-start, #bd34fe), var(--gradient-middle, #e0321b) 30%, var(--gradient-end, #41d1ff) 60%);
    transition: background-image 0.3s ease; /* 添加渐变图片过渡效果 */
}

@keyframes backgroundSizeAnimation {
    0% {
        background-position: 100%;
    }

    25% {
        background-position: 50%;
    }

    50% {
        background-position: 0%;
    }

    75% {
        background-position: 50%;
    }

    100% {
        background-position: 100%;
    }

}

.purpleText {
    color: var(--purple-text-color, #747bff);
    font-weight: 800;
    transition: color 0.3s ease; /* 添加文字颜色过渡效果 */
}

.textBackground {
    font-weight: 800;
    background: var(--text-bg-color, #f4f4f4);
    border-radius: 5px;
    font-size: 15px;
    padding: 3px 5px;
    transition: background-color 0.3s ease, color 0.3s ease; /* 添加背景和文字颜色过渡效果 */
}

.iconContainer {
    width: 100%;
    gap: 8px;
    height: 60px;
    display: flex;
    align-items: center;
    overflow-x: scroll;
    margin-top: 20px;

}

.iconContainer::-webkit-scrollbar {
   display: none;
}



.iconItem {
    width: auto;
    height: 40px;
    box-sizing: border-box;
    background: var(--icon-bg-color, rgba(249, 250, 251, 0.6));
    border-radius: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0 15px;
    backdrop-filter: blur(4px); /* 模糊效果 */
}

.switch {
    width: 55px;
}

.iconItem:not(.theme-toggle) .iconTip {
    white-space: nowrap;
    display: block;
    transition: color 0.3s ease; /* 添加文字颜色过渡效果 */
}

/* 主题切换按钮特殊处理 */
.iconItem.theme-toggle {
    width: 47px;
    padding: 0;
    border-radius: 15px;
}

/* 按钮悬停效果 */
.iconItem:hover {
    transform: translateY(-2px);
    background: var(--btn-hover-color, var(--icon-5-hover-color, rgb(255, 183, 156)));
}

/* 移动端hover时仍然显示文字 */
.iconItem:hover .iconTip {
    display: block;
}

/* 修复a标签按钮文字闪烁问题 */
.iconItem {
    color: var(--main-text-color, #000000);
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.iconItem:hover {
    color: var(--main-text-color, #000000);
}

.switch:hover {
    width: 55px;

    transform: translateY(-2px);
    background: var(--icon-5-hover-color, rgb(255, 183, 156));
}

.tanChiShe {
    width: 85%;
}

.tanChiShe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    margin: 20px 0;
    transition: all 0.4s ease;
}

.title:hover {
    transform: translateY(-5px);
}

.projectList {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 5px;
}

.projectItem {
    opacity: 0;
    transition-delay: 0.4s;
    transform: translateY(110px);
    /*淡入动画*/
    display: flex;
    background-color: var(--project-item-bg-color, rgba(249, 250, 251, 0.6));
    border-radius: 10px;
    padding: 18px;
    height: 105px;
    width: calc(50% - 8px);
    transition: all 0.5s ease;
    backdrop-filter: blur(5px); /* 模糊效果 */


}

.projectItem.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}


.projectItem:hover {
    border: 0.8px solid #747bff;
    box-shadow: 0 8px 16px -4px #2c2d300c;
    background-color: var(--project-item-hover-color, rgba(244, 245, 246, 0.8));
}



.projectItem:hover .projectItemLeft {
    width: 100%;
}

.projectItem:hover .projectItemRight {
    width: 0%;
}

.projectItem:hover .projectItemRight img {
    transform: rotate(40deg);
}

.projectItem:hover h1 {
    font-size: 18px;
}

.projectItemLeft p {
    font-size: 13px;
    margin-top: 5px;
    color: var(--project-item-left-text-color, #7e7e7e);
}

.projectItemLeft h1 {
    font-weight: normal;
    font-size: 18px;
    margin: 0px;

    transition: all 0.4s ease;
    color: var(--project-item-left-title-color, #000000);
}

.projectItemLeft {
    transition: all 0.4s ease;
    height: 100%;
    width: 80%;
}


.projectItemRight {
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 100%;
}

.projectItemRight img {
    /* 图标旋转 */
    transition: all 0.5s ease;
    height: 44px;
    width: 44px;

}

.skill {
    padding: 25px;
    width: 100%;
}

.skill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skill #skillWap {
    display: none;
}

footer {
    padding: 5px;
    color: var(--footer-text-color);
    font-size: 13px;
    margin-top: 20px;
}




@media (max-width: 1000px) {

    .projectItem {
        width: calc(100% - 25px);
    }


  


}

@media (max-width: 800px) {


    .right {
        width: 100%;
    }
.tanChiShe {
    width: 100%;
}
    .description {
        font-size: 16px;
    }

    .welcome {
        font-size: 48px;

    }


    .projectItemLeft p {
        font-size: 14px;
    }

    .projectItemLeft h1 {

        font-size: 15px;
    }

    .projectItem:hover h1 {

        font-size: 20px;

    }

    .projectList {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .skill #skillWap {
        display: block;
    }

    .skill #skillPc {
        display: none;
    }





    .left {
        position: fixed;
        z-index: 9999;
        padding: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        background: none;
        transition: all 0.3s linear;
    }

    .left-main {
        position: absolute;
        float: left;
        width: 60vw;
        /*侧边栏+按钮宽度*/
        left: -60vw;
        /*侧边栏隐藏在屏外宽度*/
        padding: 15px;
        box-sizing: border-box;
        background: var(--main-bg-color, linear-gradient(50deg, #a2d1ff, #ffffff));
        transition: all 0.15s ease-out;
    }

 

    .left-open {
        pointer-events: auto;
        background: rgba(100, 100, 100, 0.5);
    }


    .left-main-open {
        left: 0;
    }








}





.tc {
    position: fixed;
    display: flex;
    visibility: hidden;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.tc-main {
    z-index: 100000;
    width: 80%;
    max-width: 300px;
    /* 根据需要调整最大宽度 */
    min-height: 200px;
    background-color: #ffffff;
    border-radius: 12px;
    opacity: 0;
    display: flex;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateY(20%) scale(0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tc-img {
    width: 100%;
    height: 100%;
}

.tc.active {
    visibility: visible;
    opacity: 1;
}

.tc-main.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tc-close {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
      background-color: var(--project-item-bg-color, rgba(249, 250, 251, 0.6));
    margin-top: 30px;
    border-radius: 50%;
}







.onoffswitch {
    position: relative;
    width: 38px;
    height: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    border-radius: 50px;
}

.onoffswitch-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200%;
    height: 100%;
    margin-left: -100%;
    transition: margin 0.2s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 50%;
    height: 100%;
    padding: 0;
    font-size: 12px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "";
    background-color: #e4e4e4;
    color: #FFFFFF;
    text-align: left;
}

.onoffswitch-inner:after {
    content: "";
    background-color: #272727;
    color: #FAFAFA;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    height: 70%;
    aspect-ratio: 1/1;
    background: #FFFFFF;
    position: absolute;
    top: 12.5%;
    bottom: 12.5%;
    right: 5px;

    border-radius: 20px;
    transition: all 0.2s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 50%;
}

/* 主题切换按钮样式 - 使用与其他按钮相同的样式 */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 40px;
    border-radius: 7px;
    background: var(--icon-bg-color, rgba(249, 250, 251, 0.6));
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}

/* 应用普通按钮的悬停效果 */


.theme-icon {
    position: relative;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.sun-icon, .moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

/* 亮色主题时显示太阳，隐藏月亮 */
html:not([data-theme="dack"]) .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1) translate(0, 0);
}

html:not([data-theme="dack"]) .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5) translate(0, 0);
}

/* 暗色主题时显示月亮，隐藏太阳 */
html[data-theme="dack"] .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5) translate(0, 0);
}

html[data-theme="dack"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1) translate(0, 0);
}

/* 主题切换动画效果 */
.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon svg {
    color: var(--main-text-color, #000000);
}