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

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

:root {
    --main-bg-color: #f5f7fa;
    --main-text-color: #222831;
    --gradient-start: #4f8cff;
    --gradient-middle: #a084e8;
    --gradient-end: #f7b267;
    --purple-text-color: #6c63ff;
    --text-bg-color: #e3e8f0;
    --icon-bg-color: #f0f4fa;
    --pop-up-box-shadow: #e6e6e6;
    --tab-button-bg-color: #ffffff;
    --tab-button-hover-bg-color: #f0f4fa;
    --tab-button-selected-bg-color: #84b5db;
    --tab-button-text-color: #222831;
    --project-item-bg-color: #ffffff;
    --project-item-hover-color: #f0f4fa;
    --project-item-left-title-color: #222831;
    --project-item-left-text-color: #6c757d;
    --footer-text-color: #8a99b3;
    --footer-text-hover-color: #819ed0;
    --icon-1-hover-color: #e3e8f0;
    --icon-2-hover-color: #e3e8f0;
    --icon-3-hover-color: #e3e8f0;
    --icon-4-hover-color: #e3e8f0;
    --icon-5-hover-color: #e3e8f0;
    --icon-6-hover-color: #e3e8f0;
}

* {
    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: 8px;
}

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


html[data-theme="dark"] {
    --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); */
    --gradient-start: #4f8cff;
    --gradient-middle: #a084e8;
    --gradient-end: #f7b267;
    --purple-text-color: #747bff;
    --text-bg-color: rgb(26, 4, 48);
    --icon-bg-color: rgb(19, 20, 24);
    --pop-up-box-shadow: rgb(52, 52, 52);
    --tab-button-bg-color: rgb(19, 20, 24);
    --tab-button-hover-bg-color: rgb(31, 33, 35);
    --tab-button-selected-bg-color: rgba(255, 255, 255, 0.873);
    --tab-button-text-color: white;
    --project-item-bg-color: rgb(19, 20, 24);
    --project-item-hover-color: rgb(31, 33, 35);
    --project-item-left-title-color: rgb(255, 255, 255);
    --project-item-left-text-color: rgb(142, 142, 142);
    --footer-text-color: #646464;
    --footer-text-hover-color: rgba(255, 255, 255, 0.812);
    --icon-1-hover-color: rgb(34, 39, 46);
    --icon-2-hover-color: rgb(0, 172, 238);
    --icon-3-hover-color: rgb(251, 114, 153);
    --icon-4-hover-color: rgb(0, 120, 215);
    --icon-5-hover-color: rgb(248, 113, 113);
    --icon-6-hover-color: rgb(31, 33, 35);
}


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% {
        /*-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;
   
}



.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) */
}

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

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

}

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

.text404 {
    text-align: center;
    font-size: 100px;
    font-weight: 800;
    margin: 150px 0;
}

.copyright404 {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    margin: 30px 0;
}

.button404Row {
    display: flex;
    justify-content: space-between;
    width: 60%;
    margin: 150px auto;
    gap: 30px;  /* 让按钮间有间距 */
    flex-wrap: nowrap;  /* 默认不换行 */
}

.button404 {
    width: 250px;
    height: 75px;
    background: var(--icon-bg-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.iconItemBack {
    font-size: 20px;     /* 原来是 15px，调大 */
    font-weight: bold;
    line-height: 1;      /* 避免上下留白过多 */
    white-space: nowrap; /* 不换行（可选） */
}

@media (max-width: 700px) {
    .button404Row {
        flex-direction: column;  /* 纵向排列 */
        width: 80%;              /* 宽度变宽点，居中 */
        align-items: center;     /* 按钮居中 */
    }

    .button404 {
        width: 100%;             /* 按钮撑满父元素宽度 */
        max-width: 300px;        /* 限制最大宽度，防止太宽 */
        margin-bottom: 15px;     /* 按钮间距 */
    }

    .button404:last-child {
        margin-bottom: 0;        /* 最后一个去掉底部外边距 */
    }
}


@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: 15px;
    padding: 3px 5px;

}

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

.iconItemLong {
    width: 80px;
    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;
}

.switch {
    width: 55px;
    display: flex;
}

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


.iconItemLong:nth-child(1):hover {
    background: var(--icon-1-hover-color);
}

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

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

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

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

/* .iconItem:nth-child(6):hover {
    background: var(--icon-6-hover-color);
} */

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

.switch:hover {
    width: 55px;

    background: var(--icon-6-hover-color);
}

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

.button-container {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    align-items: center;
    padding: 8px;
    background: var(--project-item-bg-color);
    border-radius: 16px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-container:hover {
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

.tab-button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--project-item-left-text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.tab-button:not(.but-active):hover {
    background: var(--tab-button-hover-bg-color);
    color: var(--tab-button-text-color);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.but-active {
    background: var(--purple-text-color);
    color: white;
    /* box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3); */
}

.but-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
}

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

.intro-content, .about-content {
    background: var(--project-item-bg-color);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ Styles */
.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:hover {
    background: var(--project-item-hover-color);
} */

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

/* .faq-answer a {
    color: var(--purple-text-color);
    text-decoration: underline;
    transition: all 0.25s ease;
}

.faq-answer a:hover {
    color: #b0b4f7;
} */

.intro-content p, .about-content p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--project-item-left-text-color);
}

.intro-content p:first-child, .about-content p:first-child {
    margin-top: 0;
}

.intro-content p:last-child, .about-content p:last-child {
    margin-bottom: 0;
}

.intro-ul {
    padding-left: 20px; 
    margin: 12px 0;
    font-size: 16px;
    line-height: 2;
    color: var(--project-item-left-text-color);
    list-style-type: disc; 
}

.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: 105px;
    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: 5px;
    color: var(--project-item-left-text-color);
}

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

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

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


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

.projectItemRight img {
    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;
}

.footer-links {
    color: var(--footer-text-color);
}

.footer-links:hover {
    color: var(--footer-text-hover-color);
    transition: 0.3;
}




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

    }

    .button-container {
        margin: 20px 0;
        padding: 6px;
        gap: 8px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 40px;
    }

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

    /* FAQ Mobile Styles */
    .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;
    }

}





.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);
    /*transform: translateY(20%);*/
}

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

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

.pop-up-main.active {
    opacity: 1;
    /*transform: translateY(0);*/
}

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

.lang-toggle {
    width: 50px;
    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;
    position: fixed;  /* 固定定位，相对于浏览器窗口 */
    top: 1rem;        /* 距离浏览器顶部 1rem */
    right: 1rem;      /* 距离浏览器右侧 1rem */
    z-index: 1000;    /* 保证在最上层 */
    cursor: pointer;  /* 鼠标变成手指形状 */
}

.lang-toggle-long {
    width: 80px;
    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;
    position: fixed;  /* 固定定位，相对于浏览器窗口 */
    top: 1rem;        /* 距离浏览器顶部 1rem */
    right: 1rem;      /* 距离浏览器右侧 1rem */
    z-index: 1000;    /* 保证在最上层 */
    cursor: pointer;  /* 鼠标变成手指形状 */
}

.iconItemzh {
    font-size: 15px; /* 可以根据需要调小或调大 */
    font-weight: bold;
}

.onoffswitch {
  position: relative;
  width: 70px;
  height: 24px;
  user-select: none;
  font-family: Trebuchet, Arial, sans-serif;
  font-weight: bold;
  font-size: 12px;
}

.onoffswitch-checkbox {
  display: none;
}

.onoffswitch-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  border-radius: 50px;
  background-color: #272727;
  color: #fff;
  padding: 0 28px;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
}

.onoffswitch-switch {
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 5px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
  transition: left 0.2s ease-in-out, background-color 0.3s;
  z-index: 2;
}

/* 文字样式，叠放 */
.onoffswitch-text {
  position: absolute;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
  font-size: 12px;
  font-weight: bold;
}

/* “light” 文字靠左 */
.on-text {
  left: 10px;
  opacity: 1;
  color: #000;
}

/* “dark” 文字靠右 */
.off-text {
  right: 10px;
  opacity: 0.5;
  color: #fff;
}

/* OFF状态（默认） */
.onoffswitch-checkbox:not(:checked) + .onoffswitch-label {
  background-color: #272727;
  color: #fff;
  justify-content: flex-end;
}

.onoffswitch-checkbox:not(:checked) + .onoffswitch-label .onoffswitch-switch {
  left: 5px;
  background-color: #fff;
}

/* OFF 状态文字透明度切换 */
.onoffswitch-checkbox:not(:checked) + .onoffswitch-label .off-text {
  opacity: 1;
  color: #fff;
}
.onoffswitch-checkbox:not(:checked) + .onoffswitch-label .on-text {
  opacity: 0;
}

/* ON状态 */
.onoffswitch-checkbox:checked + .onoffswitch-label {
  background-color: #e4e4e4;
  color: #000;
  justify-content: flex-start;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  left: calc(100% - 23px);
  background-color: #fff;
}

/* ON 状态文字透明度切换 */
.onoffswitch-checkbox:checked + .onoffswitch-label .on-text {
  opacity: 1;
  color: #000;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .off-text {
  opacity: 0;
}

body.light-theme {
  background-color: #f2f2f2;
  color: #000;
}

body.dark-theme {
  background-color: #121212;
  color: #fff;
}




/* .certificateGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.certificateCard {
  background-color: var(--card-bg-color, #f9f9f9);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
}

.certificateCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.certificateCard img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.certificateCard h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  color: var(--text-primary-color, #222);
}

.certificateCard p {
  margin: 0;
  color: var(--text-secondary-color, #555);
  font-size: 0.9rem;
  line-height: 1.3;
} */
.timelineContainer {
  position: relative;
  display: flex;
  overflow-x: auto;
  padding: 30px 20px 40px; /* 上方留空间放时间轴线 */
  gap: 30px;
  scroll-behavior: smooth;
}

.timelineLine {
  position: absolute;
  top: 40px; /* 时间轴线垂直位置 */
  left: 20px;
  right: 20px;
  height: 4px;
  background-color: var(--timeline-line-color, #ccc);
  border-radius: 2px;
  z-index: 1;
}

.certificateCard {
  position: relative;
  flex: 0 0 280px;
  background-color: var(--project-item-bg-color); /* 修改这里 */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.certificateCard:hover {
  transform: translateY(-8px);
  background-color: var(--project-item-hover-color); /* 修改这里 */
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.certificateCard img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.certificateCard h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  color: var(--project-item-left-title-color); /* 修改这里 */
}

.certificateCard p {
  margin: 0;
  color: var(--project-item-left-text-color); /* 修改这里 */
  font-size: 0.9rem;
  line-height: 1.3;
}

/* 时间轴点 */
.timelineDot {
  position: absolute;
  top: 36px; /* 和时间轴线对齐 */
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--timeline-dot-color, #4285f4);
  border: 3px solid #fff;
}

/* :root {
  --scrollbar-thumb-color: #bbb;
}

/* 深色主题 */
html[data-theme="dark"] {
  --scrollbar-thumb-color: #555;
} */

/* 基础样式（WebKit） */
.timelineContainer::-webkit-scrollbar {
  height: 8px; /* 横向滚动条高度 */
}

.timelineContainer::-webkit-scrollbar-track {
  background: transparent; /* 滚动条轨道背景 */
}

.timelineContainer::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-color, #888); /* 拇指颜色 */
  border-radius: 4px;
  border: 1px solid transparent;
}

/* Firefox 支持 */
.timelineContainer {
  scrollbar-width: thin; /* 可选: auto / thin / none */
  scrollbar-color: var(--scrollbar-thumb-color, #888) transparent;
}





.photoWallContainer {
  display: flex;
  flex-direction: column; /* 垂直排列 */
  gap: 24px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--project-item-bg-color);
  scroll-behavior: smooth;
}


.photoCard {
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--project-item-bg-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  padding: 10px;
  text-align: center;
}

.photoCard:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}


.photoCard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.photoCard h3 {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: white;
}

.photoCard p {
  margin: 12px 0 0 0;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--project-item-left-text-color);
}

.photoImageWrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden; /* ✨ 确保子元素不会超出边界 */
}

.photoImageWrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photoOverlayTitle {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  text-align: left;
  display: flex;
  justify-content: space-between; /* 一边一个 */
  align-items: flex-end;
  border-radius: 0;
  color: white;
}

.photoDate {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
}

::-webkit-scrollbar {
  width: 8px;       /* 可以按需调整宽度 */
  height: 8px;      /* 横向滚动条高度 */
  background: transparent;  /* 滚动条轨道透明 */
}

::-webkit-scrollbar-thumb {
  background: transparent;  /* 滑块透明 */
  border-radius: 8px;
}

/* Firefox 透明滚动条设置 */
* {
  scrollbar-width: thin;  /* 滚动条宽度薄 */
  scrollbar-color: transparent transparent; /* 滑块和轨道都透明 */
}

.photo-CN .photo-AU {
    display: flex;
    flex-wrap: wrap;   /* 允许换行 */
    align-items: center;
    gap: 8px;
    width: 100%;
    display: block;

}

.photoRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 每行两张图 */
  gap: 16px;
}
