@font-face {
    font-family: "a";
    src: url();
    font-display: swap;
}

@font-face {
    font-family: "b";
    src: url();
    font-display: swap;
}

:root {
    --main-bg-color: #f3f3f3;
    --main-text-color: #000000;
    --gradient-start: #4f8cff;
    --gradient-middle: #a084e8;
    --gradient-end: #f7b267;
    --purple-text-color: #6c63ff;
    --icon-bg-color: #ffffff;
    --pop-up-box-shadow: #e3e3e3;
    --project-item-bg-color: #ffffff;
    --project-item-hover-color: #e3e3e3;
    --project-item-left-title-color: #000000;
    --project-item-left-text-color: #000000;
    --footer-text-color: #000000;
    --icon-hover-color: #e3e3e3;
}

* {
    font-family: "b", "a", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    transition: all 0.1s ease;
}

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

::-webkit-scrollbar {
    width: 0px;
}

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

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

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

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

.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 #8887fa;
    border-right: 5px solid #FFC0CB;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    -webkit-animation: animate 2.5s infinite;
    animation: animate 2.5s infinite;
}

#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% {

    }

    100% {

    }
}

@keyframes animate {
    50% {
    }

    100% {
    }
}

.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;
}

.left-div {
    flex-shrink: 0;
    width: 100%;
    border-radius: 13px;
    margin-top: 15px;
    padding: 20px;
    background: var(--project-item-bg-color);
}

.left-div:hover {
    box-shadow: 0 0 16px var(--pop-up-box-shadow);
}

.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;
    justify-content: center;
}

.left-tag > * {
  flex: 0 0 calc(33.333% - 10px); 
  box-sizing: border-box;
  text-align: center; /* 文字居中 */
}

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

.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);
}

#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;
    -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%);
}

@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;
}

.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: 44px;
    height: 40px;
    box-sizing: border-box;
    background: var(--icon-bg-color);
    border-radius: 7px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.iconTip {
    white-space: nowrap;
    display: flex;
}

.iconItem:hover {
    background: var(--icon-hover-color);
}

.iconItem:hover .iconTip {
    display: block;
}

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

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-container {
    margin: 20px 0;
}

.faq-item {
    background: var(--project-item-bg-color);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:hover {
    background: var(--project-item-hover-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    color: var(--main-text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question span {
    flex: 1;
    margin-right: 15px;
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--main-text-color);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--project-item-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--project-item-left-text-color);
}

.highlight-text {
    color: var(--purple-text-color);
    font-weight: 500;
}

.highlight-link {
    color: var(--purple-text-color) !important;
    text-decoration: underline !important;
    transition: all 0.25s ease;
}

.highlight-link:hover {
    color: #b0b4f7 !important;
}

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

.projectItem {
    display: flex;
    background-color: var(--project-item-bg-color);
    border-radius: 8px;
    padding: 18px;
    height: 100%;
    width: calc(50% - 60px);
}

.projectItem:hover {
    box-shadow: 0 8px 16px -4px #2c2d300c;
    background-color: var(--project-item-hover-color);
}

.projectItemLeft p {
    font-size: 13px;
    margin-top: 15px;
    color: var(--project-item-left-text-color);
}

.projectItemLeft h1 {
    font-weight: normal;
    font-size: 18px;
    margin: 0px;
    transition: all 0.5s ease;
    color: var(--project-item-left-title-color);
}

.projectItemLeft {
    transition: all 0.5s ease;
    height: 100%;
    width: 75%;
}

.projectItemRight {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
    /*height: 100%;*/
}

.projectItemRight img {
    height: 44px;
    width: 44px;
}

footer {
    padding: 5px;
    color: var(--footer-text-color);
    font-size: 13px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    .projectItem {
        width: calc(100% - 25px);
    }
}

@media (max-width: 800px) {
    .right {
        width: 100%;
    }

    .description {
        font-size: 16px;
    }

    .welcome {
        font-size: 48px;
    }

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

    .projectItemLeft h1 {
        font-size: 15px;
    }

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

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px 16px;
    }

    .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);
        transition: all 0.25s ease-out;
    }

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

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

@media (min-width: 769px) {
    #sidebar {
        display: none !important;
    }
}

.pop-up {
    position: fixed;
    display: flex;
    visibility: hidden;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pop-up-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.15s linear;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--pop-up-box-shadow);
}

.pop-up-img {
    width: 100%;
    height: 100%;
}

.pop-up.active {
    visibility: visible;
}

.pop-up-main.active {
    opacity: 1;
}

.pop-up-close {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    box-shadow: 0 4px 16px var(--pop-up-box-shadow);
    background-color: var(--project-item-bg-color);
    margin-top: 30px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s linear;
}

.pop-up-close.active {
    opacity: 1;
}