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


@font-face {
    font-family: "b";

  src: url(/static/fonts/Ubuntu-Regular.ttf);
    font-display: swap;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.2s ease;
}

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


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

::-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="Dark"] {
    --main_text_color: #fff;
    --main_bg_color: linear-gradient(180deg, #0f1115, #0b0e13);
    --gradient: linear-gradient(120deg, #8b5cf6, #f76cc6 30%, #6ee7ff 60%);
    --purple_text_color: #8b5cf6;
    --text_bg_color: rgba(42, 45, 53, 0.55);
    --item_bg_color: rgba(24, 26, 32, 0.85);
    --item_hover_color: rgba(30, 34, 40, 0.95);
    --item_left_title_color: #ffffff;
    --item_left_text_color: #a3a3a3;
    --footer_text_color: #9aa0a6;
    --left_tag_item: linear-gradient(50deg, #131720, #0b0f14);
    --card_filter: 0px;
    --back_filter: 0px;
    --back_filter_color: #000000;
    --fill: #ffffff;
    --card_border: 1px solid rgba(255, 255, 255, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}






body {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    position: relative;
    font-family: "b", "a", sans-serif;
    background: var(--main_bg_color);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: color 0.1s ease;
    color: var(--main_text_color);
    overflow: hidden;
}

#zyyo-loading {
    background: #f8fafc;
    background-size: 100%;
    background-position: center;

    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 999999;
    margin-top: 0px;
    top: 0px;
    pointer-events: none;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, background-color 0.25s ease;
}

html[data-theme="Dark"] #zyyo-loading {
    background: #070a16;
}





#zyyo-loading-center {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0f172a;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
    animation: dotPulse 0.9s ease-in-out infinite;
}

#zyyo-loading-center::before,
#zyyo-loading-center::after {
    content: '';
    position: absolute;
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0f172a;
    opacity: .75;
    animation: dotPulse 0.9s ease-in-out infinite;
}

html[data-theme="Dark"] #zyyo-loading-center,
html[data-theme="Dark"] #zyyo-loading-center::before,
html[data-theme="Dark"] #zyyo-loading-center::after {
    background: #e2e8f0;
}

#zyyo-loading-center::before {
    left: -20px;
    animation-delay: -0.15s;
}

#zyyo-loading-center::after {
    left: 20px;
    animation-delay: -0.30s;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(0.6);
        opacity: .55;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}




.zyyo-filter {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--back_filter_color);
    backdrop-filter: blur(var(--back_filter));
    -webkit-backdrop-filter: blur(var(--back_filter));
    z-index: -99999999;

}

.zyyo-main {
    width: 100%;
    margin: 0 auto;
    transition: transform 0.5s ease;
    max-width: 1150px;
    position: relative;
    display: flex;
    flex-direction: row;
    height: 100vh;
}


.zyyo-left {
    overflow-y: scroll;
    width: 230px;
    height: 100vh;
    display: flex;
    padding: 0 15px;
    position: sticky;
    top: 0;
    left: 0;
    align-items: center;
    flex-direction: column;
}


.zyyo-left::-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%;
}



.left-div {
    flex-shrink: 0;
    width: 100%;
    border-radius: 13px;
    margin-top: 15px;
    padding: 20px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    border: var(--card_border);
}

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

.left-des-item {
    display: flex;
    align-items: center;
    line-height: 20px;
    font-size: 15px;
    margin-bottom: 5px;
    overflow: hidden;
}

.left-des-item i,
.left-des-item svg {
    width: 16px;
    height: 16px;
    fill: var(--fill);
    font-size: 18px;
    margin-right: 10px;
}

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

.left-tag-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    margin: 0 6px 6px 0;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 999px;
    background: var(--left_tag_item);
    box-shadow: none;
}

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

#line li {
    list-style: none;
    position: relative;
    padding: 14px 0 0 16px;
    border-left: 3px solid rgba(36, 38, 43, 0.20);
    border-radius: 0;
    scroll-snap-align: end;
    color: var(--main_text_color);
}



.focus {
    width: 10px;
    height: 10px;
    border-radius: 22px;
    background-color: #ffffff;
    border: 2px solid rgba(36, 38, 43, 0.22);
    position: absolute;
    left: -6px;
    top: 50%;
    box-shadow: var(--shadow);
}

#line li:first-child .focus:first-child {
    background-color: #aaffcd;
    animation: focus 1.8s ease infinite;
}

html[data-theme="Dark"] #line li {
    border-left-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="Dark"] .focus {
    background-color: rgba(255, 255, 255, 0.60);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
}

#line::-webkit-scrollbar {
    display: none;
}



.zyyo-right {
    width: calc(100% - 230px);
    display: flex;
    padding: 20px;
    position: relative;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.right-scroll {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
}

.welcome {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.index-logo {
    flex-shrink: 0;
    width: 40%;
    margin-top: 30px;
    position: relative;
    max-width: 200px;
    aspect-ratio: 1/1;
    background-size: cover;
    border-radius: 50%;
    border: 0.5px solid #ffffff;
}

.description {
    font-size: 18px;
    line-height: 1.7;
    margin-top: 8px;
    color: var(--item_left_text_color);
}



.gradientText {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    background-position: 0%;
    font-family: "title";
    animation: backgroundSizeAnimation 16s ease-in-out infinite;
    background-image: var(--gradient);
}

@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);
    font-weight: 800;
}

.textBackground {
    font-weight: 800;
    background: var(--text_bg_color);
    border-radius: 5px;
    font-size: 17px;
    margin: 0 3px;
    padding: 2px 4px;
}

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

}

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



.iconItem {
    width: 49px;
    height: 43px;
    box-sizing: border-box;
    border-radius: 7px;
    display: flex;
    margin-left: 10px;
    position: relative;

    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    border: var(--card_border);
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.iconItem i,
.iconItem svg {
    width: 22px;
    height: 22px;
    fill: var(--fill);
    font-size: 22px;
    margin-right: 3px;
}

.switch {
    width: 55px;
    height: 43px;
    box-sizing: border-box;
    border-radius: 7px;
    display: flex;
    margin-left: 10px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    border: var(--card_border);

    align-items: center;
    justify-content: center;
    transition: width 1s ease, opacity 1s ease, transform 1s ease;
    flex-shrink: 0;
}

.iconTip {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    border: var(--card_border);
    border-radius: 6px;
    background: var(--item_bg_color);
    color: var(--main_text_color);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}





.iconItem:hover {
    transform: translateY(-2px);
    background: var(--item_hover_color);
    z-index: 3;
}


.iconItem:hover .iconTip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(4px);
}

.switch:hover {
    width: 55px;
    /* transform: translateY(-2px); */
    background: var(--item_hover_color);
}

.tanChiShe {
    width: 60%;
}

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

/* title 样式已不再使用，移除以保持样式整洁 */

.projectList {
    display: flex;
    flex-wrap: wrap;
}

.projectItem {
    margin: 8px;
    display: flex;
    background: var(--item_bg_color);
    border-radius: 10px;
    padding: 14px;
    height: 96px;
    width: calc(25% - 16px);
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    border: var(--card_border);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}




.projectItem:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);

}

.projectItem.pressed {
    transform: scale(0.97);
    background-color: var(--item_hover_color);
}

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

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

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

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

.projectItemLeft p {
    font-size: 12px;
    margin-top: 15px;
    color: var(--item_left_text_color);
}


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

    transition: font-size 0.4s ease;
    color: var(--item_left_title_color);
}

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


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

.projectItemRight img {

    height: 39px;
    width: 39px;

}

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

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

.skill #skillWap {
    display: none;
}

footer {
    position: absolute;
    padding: 10px;
    text-align: center;
    width: 100%;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    color: var(--footer_text_color);
    font-size: 13px;
    bottom: 0;
    border-top: var(--card_border);
}

@media (min-width: 800px) {

    .index-logo {
        display: none;
    }
}

@media (max-width: 1150px) {
    .a {
        width: calc(50% - 20px);
    }

    .projectItem {
        margin: 10px;
    }

    .b {

        width: calc(50% - 20px);


    }
}

@media (max-width: 800px) {
    .zyyo-left {
        display: none;
    }

    .a .projectItemRight {
        display: none;

    }

    .a .projectItemRight img {
        display: none;

    }

    .a .projectItemLeft {
        width: 100%;
    }

    .a {

        width: calc(50% - 18px);
        margin: 9px;

    }

    .b {
        height: 110px;
        margin: 8px 15px;
        width: calc(100% - 30px);
    }



    .zyyo-right {
        width: 100%;
    }

    .tanChiShe {
        width: 90%;
    }

    .description {
        font-size: 4vw;
    }

    .welcome {
        font-size: 10vw;
        margin: 0;

    }

    .iconContainer {

        margin-top: 4vw;

    }

    .projectItem {
        padding: 10px;
    }

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

    .projectItemLeft h1 {

        font-size: 18px;
    }

    .projectItem:hover h1 {

        font-size: 20px;

    }

    .skill #skillWap {
        display: block;
    }

    .skill #skillPc {
        display: none;
    }

}





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

.tc-main {
    z-index: 100000;

    width: 80%;
    max-width: 300px;
    min-height: 200px;
    background-color: #ffffff;
    border-radius: 15px;

    display: flex;
    border: var(--card_border);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    opacity: 0;

}

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

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

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

}









.onoffswitch {
    position: relative;
    width: 38px;
    height: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-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: rgb(110 110 110 / 50%);
    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: right 0.2s ease-in 0s;
}

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

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

/* 统一边框由各自模块样式内定义，移除冗余覆盖 */

/* Tabs */
.tabs {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 14px 0 18px 0;
    padding-left: 6px;
    /* 防止第一个 tab 左侧被裁切，整体右移一点 */
}

.tab {
    padding: 8px 14px;
    background: var(--item_bg_color);
    color: var(--main_text_color);
    border: var(--card_border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: background-color 0.2s ease, transform 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}

.tabs .tab svg {
    fill: var(--fill);
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.tab:hover {
    background: var(--item_hover_color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.tab.active {
    background: var(--item_hover_color);
    box-shadow: 0 0 0 2px var(--purple_text_color) inset, var(--shadow);
}

.tab:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px var(--purple_text_color);
}

/* Animated show/hide for content blocks */
content {
    position: relative;
}

.projectList,
.skill,
.about {
    transition: opacity .25s ease, transform .25s ease;
    will-change: opacity, transform;
}

.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateY(8px);
}

/* About block */
.about {
    background: var(--item_bg_color);
    border: var(--card_border);
    border-radius: 12px;
    padding: 35px;
    margin: 14px 10px;
    line-height: 1.8;
}
