:root {
    --primary-100: #26A69A;
    --primary-200: #408d86;
    --primary-300: #cdfaf6;
    --accent-100: #80CBC4;
    --accent-200: #43A49B;
    --text-100: #263339;
    --text-200: #728f9e;
    --bg-100: #D0EBEA;
    --bg-200: #E0F2F1;
    --bg-300: #E9F6F5;
    --bs-100: rgba(51, 69, 77, 0.3);
    --bs-200: rgba(65, 88, 98, 0.3);
    --MARL: 3;
    --MARR: 2;
}


/*Public Function*/
html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    user-select: none;
    font-family: Arial, serif;
}

/*Body*/
body {
    /*Size&Color*/
    margin: 0;
    padding: 0;
    /*background: #B0BEC5;*/
    color: var(--text-100);
    background: var(--bg-200);
    background: linear-gradient(to right, var(--bg-300), var(--bg-200));
    scroll-behavior: smooth;
}

.head_box {
    /*Position*/
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    top: 0;
    left: 0;
    z-index: 1000;
    /*Size&Color*/
    width: 100vw;
    height: 7vh;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 5px var(--bs-200);
}

.head_box_main {
    width: 80vw;
    display: flex;
    align-items: center;
    justify-self: center;
}

@media (orientation: portrait) {
    .head_box_main {
        width: 95vw;
    }
}

.header_left {
    /*position*/
    display: flex;
    align-items: center;
    text-align: center;
    /*Size&Color*/
    margin: 0.5vw 2vw;
    color: var(--text-100);
    font-size: 2vh;
    column-gap: 30px;
}

.head_left_nav {
    display: flex;
    column-gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.mobile-menu-btn,
.mobile-menu-overlay {
    display: none;
}

@media (orientation: portrait) {
    .head_left_nav {
        display: none !important;
    }

    .mobile-menu-btn {
        /*position*/
        display: block;
        align-items: center;
        text-align: center;
        /*Size&Color*/
        margin-left: auto;
        margin-right: 10px;
        color: var(--text-100);
        font-size: 2vh;
        column-gap: 30px;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 7vh;
        left: 100vw;
        width: 100vw;
        height: auto;
        font-size: 2vh;
        backdrop-filter: blur(10px);
        transition: transBar 1s ease;
        z-index: 1000;
        padding: 2vh;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .mobile-menu a {
        padding: 12px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid black;
        transition: all 0.2s;
    }
}

.header_left a {
    color: var(--text-100);
    text-decoration: none;
}

/*main page*/
.main_page {
    /*Position*/
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.boxTitle1 {
    font-size: 5vh;
    font-weight: bold;
    margin-bottom: 10px;
}

.boxTitle2 {
    font-size: 4vh;
    font-weight: bold;
    margin-bottom: 10px;
}

.boxTitle3 {
    font-size: 3vh;
    font-weight: bold;
    margin-bottom: 10px;
}

.title1 {
    font-size: 2.5vh;
    font-weight: bold;
}

.text1 {
    font-size: 2vh;
}

.break1 {
    height: 8vh;
}

.break2 {
    height: 4vh;
}

.break3 {
    height: 2vh;
}

.break4 {
    height: 1vh;
}

/*User Box*/
.userBoxBottomBlank{
    height: 15vh;
}

.user_box {
    /*Position*/
    display: flex;
    align-self: center;
    /*Size&Color*/
    height: 60vh;
    width: min(max(30vw, 50vh), 80vw);
    border-radius: 20px;
    background: var(--bg-100);
    box-shadow: 0 1em 8em rgba(0, 0, 0, 0.35);
}

@media (orientation: portrait) {
    .userBoxBottomBlank{
        height: 10vh;
    }

    .user_box {
        width: min(max(30vw, 50vh), 95vw);
    }
}

.user_box_main {
    display: flex;
    align-self: center;
    flex-direction: column;
    width: 100%;
    margin: 20px;
}

.user_box_name_box {
    font-size: 6vh;
    height: 6vh;
    text-align: center;
    color: var(--text-100);
    align-self: center;
}

.user_box_name {
    display: flex;
    height: 6vh;
    animation: caret 1s steps(1) infinite;
    text-decoration: none;
    align-items: center;
    justify-items: center;
    justify-content: center;
}

.user_box_name span {
    min-height: 6vh;
    color: var(--text-100);
    text-align: center;
    text-decoration: none;
}

.user_box_line {
    width: 100%;
    margin-top: 2vh;
    margin-bottom: 2vh;
    height: 1px;
    border-top: solid var(--text-200) 1px;
}

.user_box_roles {
    display: flex;
    align-items: end;
    flex-direction: column;
    font-size: 2vh;
}

.user_box_roles a {
    color: var(--text-100);
    opacity: 1;
    transition: opacity 0.3s;
    text-decoration: none;
}

/*Wave*/
.ocean {
    height: 10vh;
    width: 100%;
    position: relative;
    z-index: 5;
    Overflow: hidden;
}

.wave {
    background: url("/src/fig/wave.svg") repeat-x;
    background-size: contain;
    width: 300%;
    /*top: -5vh;*/
    left: 0;
    height: 100%;
    position: relative;
    animation: wave 29s ease infinite;
}

.wave:nth-of-type(2) {
    top: -100%;
    animation: swell 7s ease infinite;
    /*margin-left: 8vw;*/
    opacity: 1;
}

.wave:nth-of-type(3) {
    top: -180%;
    margin-left: -2vw;
    animation: wave2 17s ease infinite;
    opacity: 1;
}

@keyframes wave {
    0%, 100% {
        margin-left: 0;
    }
    50% {
        margin-left: -200vw;
    }
}

@keyframes swell {
    0%, 100% {
        transform: translate(-2vw, 10%);
    }
    50% {
        transform: translate(0, 50%);
    }
}

@keyframes wave2 {
    0%, 100% {
        margin-left: -20vw;
    }
    50% {
        margin-left: -200vw;
    }
}

/*Main Detail*/
.main_detail {
    display: flex;
    flex-direction: column;
    background: var(--bg-100);
    border-radius: 5vw 5vw 0 0;
    position: relative;
    z-index: 10;
}

.lookDown{
    align-self: center;
    font-size: 2vh;
    margin-top: 1.5vh;

    animation: fade-control linear both;
    animation-timeline: scroll(root);
    animation-range: 0vh 30vh; /* 核心控制区间 */
}

@keyframes fade-control {
    to { opacity: 0; }
}

@media (orientation: portrait) {
    .lookDown{
        margin-top: 0.5vh;
    }
}

#usageGraph {
    width: 100%;
    height: auto;
    background-color: transparent;
    overflow: hidden;
}

#usageGraph svg {
    height: auto;
    background: transparent !important;
    border-radius: 10px;
    width: 100% !important;
}

#usageGraph polygon{
    /*fill: var(--accent-100);*/
}

.boxFlex1 {
    width: 80vw;
    height: auto;
    align-self: center;
    background: var(--bg-100);
    border-radius: 20px;
    box-shadow: 0 0 40px 1px var(--bs-100);
    display: flex;
}

.boxFlex2 {
    width: 79vw;
    height: auto;
    align-self: center;
    background: var(--bg-100);
    border-radius: 20px;
    box-shadow: 0 0 40px 1px var(--bs-100);
    display: flex;
    overflow: hidden;
}

.boxFlex3 {
    width: 78vw;
    height: auto;
    align-self: center;
    background: var(--bg-100);
    border-radius: 20px;
    box-shadow: 0 0 40px 1px var(--bs-100);
    display: flex;
    overflow: hidden;
}

@media (orientation: portrait) {
    .boxFlex1 {
        width: 99vw;
    }

    .boxFlex2 {
        width: 98vw;
    }

    .boxFlex3 {
        width: 97vw;
    }

    .boxFlex4 {
        width: 96vw;
    }
}

.boxFlex_Main {
    display: flex;
    align-self: center;
    flex-direction: column;
    width: calc(100% - 40px);
    margin: 20px;
}

.boxFlex_Main a {
    color: var(--text-100);
    text-decoration: none;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boxPaper {
    width: 100%;
    background: var(--accent-100);
    align-self: start;
    display: flex;
    overflow: hidden;
    border-radius: 10px;
}

.boxPaper_Main {
    color: var(--text-100);
    text-decoration: none;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px;
}

.boxGrid {
    --columnsCount: 4;
    width: 100%;
    display: grid !important;
    gap: 10px;
    grid-template-columns: repeat(var(--columnsCount), 1fr) !important;
}

@media (orientation: portrait) {
    .boxGrid {
        --columnsCount: 1 !important;
    }

    #codeSkillsBox{
        --columnsCount: 2;
    }
}

.boxGridItem {
    width: calc(100%) !important;
    height: 10vh;
    background: var(--accent-100);
    border-radius: 20px;
    font-size: 2.2vh;
    color: var(--text-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    position: relative;
    overflow: hidden;
}

.boxGridItem a {
    width: 100%;
    font-size: 2vh;
    color: var(--text-100);
    text-align: center;
    text-decoration: none;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;

    opacity: 0;
    position: absolute;
    bottom: 10px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.boxGridItem b {
    width: 100%;
    color: var(--text-100);
    text-align: center;
    text-decoration: none;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: all 0.3s ease;
}

#codeProjectBox .boxGridItem:hover{
    background: var(--accent-200);
}

#codeProjectBox .boxGridItem:hover b {
    transform: translateY(-100%);
}

#codeProjectBox .boxGridItem:hover a {
    opacity: 1;
    transform: translateY(0);
    bottom: 10px;
}

@media (orientation: portrait) {
    #codeProjectBox .boxGridItem a {
        opacity: 1;
        transform: translateY(0);
        bottom: 10px;
    }

    #codeProjectBox .boxGridItem b {
        transform: translateY(-100%);
    }
}

.box_Line {
    width: 100%;
    margin-top: 2vh;
    margin-bottom: 2vh;
    height: 3px;
    background: var(--text-200);
    border-radius: 5px;
}

.degreeBar {
    width: 60%;
    margin-top: 3%;
    height: 10%;
    background-color: var(--bg-300);
    border-radius: 15px;
    overflow: hidden;
}

.degreeNow {
    height: 100%;
    background-color: #728F9E;
    border-radius: 15px 0 0 15px;
}

.Favorite_project_main {
    display: flex;
    align-self: center;
    flex-direction: column;
    width: 100%;
    margin: 20px;
}

.Favorite_items_box {
    overflow: hidden;
}

.Favorite_items_type {
    transition: all 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.Favorite_items_typeFilter_line {
    width: 100%;
    margin-bottom: 2vh;
    height: 3px;
    border-top: solid var(--text-200) 1px;
}

.Favorite_items_typeFilter_nav {
    display: flex;
    margin-left: 20px;
    column-gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.Favorite_items_typeFilter_nav div {
    display: flex;
    height: 4vh;
    width: auto;
    background: var(--text-200);
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
}

.Favorite_items_typeFilter_nav div a {
    margin: 5px 15px 5px 15px;
    font-size: 2vh;
}

.Favorite_items_typeFilter_nav div:hover {
    background: var(--primary-100) !important;
}

.Favorite_items {
    --columnsCount: 2;
    background: var(--accent-100);
    width: 100%;
    display: grid !important;
    border-radius: 20px;
    gap: 10px;
    align-items: center;
    grid-template-columns: repeat(var(--columnsCount), 1fr) !important;
}

@media (orientation: portrait) {
    .Favorite_items {
        --columnsCount: 1;
    }
}

.Favorite_item_fig {
    height: 90%;
    width: 80%;
    margin-left: 10%;
}

@media (orientation: portrait) {
    .Favorite_item_fig {
        width: 77%;
        margin-right: 3%;
    }
}

.Favorite_item_fig img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

@media (orientation: portrait) {
    .Favorite_item_fig img{
        height: 20vh;
    }
}

.Favorite_item_detail {
    height: calc(100% - 40px);
    width: calc(100% - 10px);
    font-size: 2vh;
    margin: 20px 10px 20px 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Favorite_item_detail h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.Favorite_item_detail a {
    font-size: 2vh;
    text-align: left;
}

.ender {
    font-size: 2vh;
    text-align: center;
}