/* 字体定义优化 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Nunito:wght@400;600;700&family=Pacifico&display=swap');

body {
    font-family: 'Nunito', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 滚动条优化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 导航栏样式优化 */
.marisa-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    opacity: 0; /* 初始隐藏 */
    transition: opacity 1s ease;
}
.marisa-navbar::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:0;
    padding: var(--edge_padding);
    background: var(--edge_gradient);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .8;
}

.navbar-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.navbar-logo span {
    font-size: 18px;
    font-weight: bold;
    color: var(--main_text_color);
}

.navbar-links {
    display: flex;
    gap: 20px;
}

.navbar-link {
    color: var(--main_text_color);
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-link:hover {
    color: var(--purple_text_color);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple_text_color);
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--main_text_color);
}

/* 移动端导航栏样式 */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block; /* 显示汉堡菜单图标 */
    }
    
    .navbar-links {
        display: none; /* 默认隐藏链接 */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(calc(var(--glass-blur) + 12px)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
        -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 12px)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
        border-bottom: 1px solid var(--glass-border);
        padding: 10px 0;
        box-shadow: var(--glass-shadow);
        z-index: 100;
    }
    
    .navbar-links.active {
        display: flex; /* 点击后显示链接 */
    }
    
    .navbar-link {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }
    
    .navbar-link::after {
        display: none; /* 移除下划线动画效果 */
    }
    
    .navbar-container {
        position: relative;
    }
}

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

/* 清除 body 上的背景，保持纯内容层 */
body {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    position: relative;
    font-family: "b", "a", sans-serif;
    transition: color 0.1s ease;
    color: var(--main_text_color);
    background: none; /* 移除 background 属性 */
}

/* 固定背景层，改用 html::before 伪元素 */
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--main_bg_color) center/cover no-repeat;
    z-index: -2; /* 背景层置于最底层 */
}

#marisa-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(rgba(255, 255, 255, 0.9), rgba(0, 0, 255, 0.3)), var(--main_bg_color);
    background-size: cover;
    background-position: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s ease;
    will-change: opacity;
}

#marisa-loading.loading-finish {
    animation: finish-fade 1.1s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

#marisa-loading-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform-origin: center;
    animation: intro-scale 0.3s ease-out;
    transition: transform 1s ease-out;
    contain: layout paint;
    will-change: transform;
}

#marisa-loading.loading-finish #marisa-loading-wrapper {
    animation: finish-scale 1.1s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

html[data-theme="Dark"] {    
    --main_text_color: #f8fafc;
    --gradient: linear-gradient(135deg, #3b6cff 0%, #5b4bff 35%, #d2b4ff 72%);
    --purple_text_color: #b79cff;
    --text_bg_color: rgba(5, 10, 30, 0.86);
    --item_bg_color: rgba(6, 10, 28, 0.84);
    --item_hover_color: rgba(24, 12, 48, 0.92);
    --item_border_color: rgba(255, 255, 255, 0.15);
    --item_left_title_color: #e5e7eb;
    --item_left_text_color: #9ca3af;
    --footer_text_color: #9ca3af;
    --left_tag_item: rgba(183, 156, 255, 0.18);
    --card_filter: 20px;
    --back_filter: 6px;
    --back_filter_color: rgba(2, 4, 20, 0.82);
    --fill: #ffffff;
    --glass-bg: linear-gradient(135deg, rgba(6, 10, 36, 0.86), rgba(30, 12, 52, 0.82));
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
    --glass-blur: 12px;
    --glass-saturate: 1.25;
    --glass-contrast: 1.06;
    --glass-brightness: 1.04;
    --edge_gradient: linear-gradient(135deg, rgba(236,240,255,0.68), rgba(124,140,255,0.40) 22%, rgba(6,8,28,0.92) 50%, rgba(148,98,255,0.38) 78%, rgba(236,240,255,0.68));
}

#marisa-loading-center {
    width: 220px;
    height: 220px;
    position: relative;
    background: none;
    border-radius: 0;
    animation: rotate-cw 6s linear infinite;
    z-index: 10;
    will-change: transform;
}

#marisa-loading-center svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 1s ease;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

#marisa-loading.center-open #marisa-loading-center {
    animation-play-state: paused;
}

#marisa-loading.center-open #marisa-loading-center svg:first-child {
    animation: yin-left-open 0.8s cubic-bezier(0.15, 0.9, 0.2, 1) forwards;
}

#marisa-loading.center-open #marisa-loading-center svg:last-child {
    animation: yin-right-open 0.8s cubic-bezier(0.15, 0.9, 0.2, 1) forwards;
}

.loading-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 5px solid rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: ripple-anim 3s linear infinite;
    animation-play-state: paused;
    z-index: 1;
}

#marisa-loading.ripple-start .loading-ripple {
    animation-play-state: running;
}

@keyframes ripple-anim {
    0% {
        width: 150px;
        height: 150px;
        opacity: 0.8;
        border-width: 5px;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        border-width: 0px;
    }
}

@keyframes intro-scale {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotate-ccw {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes rotate-cw {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes finish-scale {
    0% {
        transform: scale3d(1, 1, 1);
    }
    35% {
        transform: scale3d(1.15, 1.15, 1);
    }
    60% {
        transform: scale3d(1.08, 1.08, 1);
    }
    100% {
        transform: scale3d(20, 20, 1);
    }
}

@keyframes finish-fade {
    0% {
        opacity: 1;
    }
    25% {
        opacity: 0.95;
    }
    60% {
        opacity: 0.75;
    }
    100% {
        opacity: 0;
    }
}
@keyframes yin-left-open {
    0% {
        transform: translate3d(0, 0, 0) rotateZ(0deg) scale3d(1, 1, 1);
        opacity: 1;
    }
    100% {
        transform: translate3d(120px, 0, 0) rotateZ(14deg) scale3d(1.15, 1.15, 1);
        opacity: 0.85;
    }
}

@keyframes yin-right-open {
    0% {
        transform: translate3d(0, 0, 0) rotateZ(0deg) scale3d(1, 1, 1);
        opacity: 1;
    }
    100% {
        transform: translate3d(-120px, 0, 0) rotateZ(-14deg) scale3d(1.15, 1.15, 1);
        opacity: 0.85;
    }
}
@keyframes zoom {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* 模糊层：调整背景颜色和层级 */
.marisa-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);  /* 用 rgba 表示透明黑色 */
    backdrop-filter: blur(var(--back_filter));
    -webkit-backdrop-filter: blur(var(--back_filter));
    z-index: -1;  /* 模糊层置于背景层上方 */
}

.marisa-main {
    width: 100%;
    margin: 0 auto;
    transition: transform 0.5s ease, opacity 1s ease;
    max-width: 1220px;
    position: relative;
    display: flex;
    flex-direction: row;
    opacity: 0; /* 初始隐藏 */
}

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


.marisa-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: 16px;
    margin-top: 15px;
    padding: 20px 16px;
    
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--main_text_color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.left-div .title{
    position: absolute;
    top: 10px;
    left: 16px;
    margin: 0;
}
.left-div::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

.left-div:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.left-des-item {
    display: flex;
    align-items: center;
    line-height: 24px;
    font-size: 15px;
    margin-bottom: 6px;
    overflow: hidden;
    color: var(--item_left_text_color);
}

.left-des-item i,.left-des-item svg{
    width: 18px;
    height: 18px;
    fill:var(--fill);
    font-size: 18px;
    margin-right: 12px;
    opacity: 0.8;
}
.left-div.left-des{
    padding-bottom: 12px;
}
.left-tag {
    position: relative;
    width: 100%;
    min-height: 300px;
    padding: 56px 0 24px;
    overflow: hidden;
}

.left-div.left-tag .left-des-item {
    position: absolute;
    top: 12px;
    left: 16px;
    margin: 0;
    z-index: 2;
}

.left-tag-item {
    position: absolute;
    display: inline-block;
    padding: 2px 4px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--item_left_text_color);
    text-align: center;
    cursor: default;
    transition: transform 0.3s ease;
    will-change: transform, left, top;
    transform-origin: center center;
}

.left-tag-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

#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: 15px 0px 0px 15px;
    border-left: 2px solid #d5d5d5;
    border-radius: 0;
    scroll-snap-align: end;
    color: var(--main_text_color);
}



.focus {
    width: 8px;
    height: 8px;
    border-radius: 22px;
    background-color: rgb(255 255 255);
    border: 2px solid #fff;
    position: absolute;
    left: -5px;
    top: 50%;
}

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

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



.marisa-right {
    width: calc(100% - 300px);
    display: flex;
    padding: 20px;
  position: relative;
    padding-bottom: 50px;
    flex-direction: column;
}
.welcome {

    font-size: 65px;
    font-weight: 800;
    margin: 20px 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: 20px;
    margin-top: 7px;
}



.gradientText {

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    background-position: 0%;
    font-family: "title";
    animation: backgroundSizeAnimation 10s 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: 700;
}

.textBackground {
    font-weight: 700;
    background: var(--text_bg_color);
    border-radius: 6px;
    font-size: 16px;
    margin: 0 4px;
    padding: 2px 6px;
    color: var(--main_text_color);
}

.iconContainer {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    margin-top: 24px;
    padding-bottom: 5px; /* 防止滚动条遮挡 */
}

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

.iconItem {
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    margin-left: 12px;

    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--main_text_color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}
.iconItem::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

.iconItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.iconItem i,.iconItem svg{
    width: 24px;
    height: 24px;
    fill:var(--fill);
    font-size: 24px;
    margin-right: 0;
    opacity: 0.9;
}

.switch {
    width: 60px;
    height: 48px;
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--main_text_color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    
    transition: all 0.3s ease;
    position: relative;
}
.switch::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

.switch:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.switch::after {
    position: absolute;
    right: -44px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

html[data-theme="Light"] .switch::after {
    content: "日间";
    color: #ffd97a;
}

html[data-theme="Dark"] .switch::after {
    content: "夜间";
    color: #8bbdff;
}

.iconTip {
    display: none;
    opacity: 0;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--main_text_color);
    animation: fadeIn 0.3s;
    white-space: nowrap;
}

.iconItem:hover {
    width: auto;
    min-width: 60px;
    max-width: 200px;
    padding: 0 16px;
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.iconItem:hover .iconTip {
    display: inline-block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

.tanChiShe {
    width: 85%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.title {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    margin: 24px 0 16px;
    transition: transform 0.4s ease;
    color: var(--main_text_color);
}
.title i ,.title svg{
    margin-right: 12px;
    height: 28px;
    width: 28px;
    fill:var(--fill);
}
.title:hover {
    transform: translateY(-2px);
}

.projectList {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Use gap instead of margin on items */
    margin: 0 -7px; /* Compensate for outer gap if needed, or just remove margin on items */
}

.projectItem {
    margin: 0; /* Managed by gap or flex layout */
    display: flex;
    border-radius: 16px;
    padding: 16px;
    height: 110px;
    width: calc(25% - 15px); /* Adjust based on gap */
    
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--main_text_color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.projectItem::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

.projectItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

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

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

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

.projectItem:hover .projectItemRight img {
    transform: rotate(45deg) scale(0.8);
}

.projectItem:hover h1 {
    font-size: 18px;
    color: var(--purple_text_color);
}

.projectItemLeft {
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projectItemLeft h1 {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px 0;
    transition: all 0.3s ease;
    color: var(--item_left_title_color);
    line-height: 1.2;
}

.projectItemLeft p {
    font-size: 13px;
    margin: 0;
    color: var(--item_left_text_color);
    line-height: 1.4;
    opacity: 0.8;
}

.projectItemRight {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    height: 100%;
    opacity: 1;
}

.projectItemRight img {
    height: 42px;
    width: 42px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

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

.skill #skillWap {
    display: none;
}

.skill-section {
    margin-bottom: 1.5em;
}
  
.skill-section h4 {
    color: #6a1b9a;
    margin-bottom: 0.8em;
}
  
.skill-list {
    margin-left: 1.5em;
}
  
 .skill-list ul {
    margin-left: 1em;
    list-style-type: circle;
}
  
.skill-list li {
    margin: 0.4em 0;
    line-height: 1.5;
}

footer {
    position: relative;
    margin-top: 40px;
    padding: 24px;
    text-align: center;
    width: 100%;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    border-top: 1px solid var(--item_border_color);
    color: var(--footer_text_color);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Noto Sans SC', 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 800px) {
    .index-logo {
        display: none;
    }
}

@media (max-width: 1220px) {
    .projectItem, .a, .b {
        width: calc(50% - 8px);
    }
}

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

    .projectItemRight {
        display: none;
    }
    
    .projectItemLeft {
        width: 100%;
    }

    .projectItem, .a, .b {
        width: 100%;
        height: auto;
        min-height: 100px;
        margin-bottom: 12px;
    }

    .marisa-right {
        width: 100%;
        padding: 0 16px;
    }

    .tanChiShe {
        width: 100%;
    }

    .description {
        font-size: 16px;
    }

    .welcome {
        font-size: 32px;
        margin: 16px 0;
    }
    
    .iconContainer {
        margin-top: 16px;
    }

    .projectItem:hover h1 {
        font-size: 18px; /* Reset or keep */
    }

    .skill #skillWap {
        display: block;
    }

    .skill #skillPc {
        display: none;
    }
}





.tc {
    position: fixed;
   
    display: flex;
    visibility: hidden;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    background: var(--back_filter_color);
    z-index: 99999;
    align-items: center;
    top: 0;
    justify-content: center;
    flex-direction: column;
}

.tc-main {
    z-index: 100000;
    
    width: 80%;
    max-width: 300px;
    min-height: 200px;
    background-color: #ffffff;
    border-radius: 15px;

    display: flex;
    transition: transform 0.2s linear;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateY(30%) scale(0.5);

}

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

.tc.active {
    visibility: visible;
}

.tc-main.active {

    transform: translateY(0) scale(1);

}









.onoffswitch {
    position: relative;
    width: 44px;
    height: 22px;
    -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: 999px;
    background: linear-gradient(135deg, rgba(255, 230, 180, 0.15), rgba(120, 160, 255, 0.35));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.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: #ffffff;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "日";
    background: linear-gradient(135deg, #ffe7b0, #ffb38a);
    color: #6b3b13;
    text-align: right;
    justify-content: flex-end;
    padding-right: 6px;
}

.onoffswitch-inner:after {
    content: "夜";
    background: linear-gradient(135deg, #223355, #111827);
    color: #e5edff;
    text-align: left;
    justify-content: flex-start;
    padding-left: 6px;
}

.onoffswitch-switch {
    display: block;
    height: 72%;
    aspect-ratio: 1/1;
    background: #ffffff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 4px;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: right 0.2s ease-in 0s, box-shadow 0.2s ease-in 0s, background-color 0.2s ease-in 0s, transform 0.2s ease-in 0s;
}

.onoffswitch-switch::before,
.onoffswitch-switch::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

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

html[data-theme="Light"] .onoffswitch-switch {
    background: radial-gradient(circle at 30% 30%, #fff9d6, #f6c453);
}

html[data-theme="Light"] .onoffswitch-switch::after {
    background: radial-gradient(circle at 30% 30%, #fff9d6, #f6c453);
    box-shadow:
        0 0 0 2px rgba(255, 244, 214, 0.9),
        0 0 8px rgba(255, 220, 130, 0.9),
        0 0 0 6px rgba(255, 228, 160, 0.35);
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.82);
}

html[data-theme="Light"] .onoffswitch-switch::before {
    background: radial-gradient(circle, rgba(255, 249, 214, 0) 40%, rgba(255, 249, 214, 0.95) 68%, rgba(255, 249, 214, 0) 82%);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
    box-shadow:
        0 0 10px rgba(255, 232, 170, 0.9),
        0 0 18px rgba(255, 220, 130, 0.9);
}

/* 夜间模式：更干净的按钮背景 */
html[data-theme="Dark"] .onoffswitch-switch {
    background: linear-gradient(135deg, #0a0f1a, #111827);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* 夜间模式：统一光晕层级 */
html[data-theme="Dark"] .onoffswitch-switch::before {
    background: #fef4c3;
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow:
        0 0 6px rgba(254, 244, 195, 0.8),
        0 0 12px rgba(254, 244, 195, 0.5);
}

/* 夜间模式：内部阴影（更自然） */
html[data-theme="Dark"] .onoffswitch-switch::after {
    background: #050816;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.75);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}


/* About Us 页面样式 */
.left-div.left-des {
  /* 容器基础样式 */
  color: var(--main_text_color);
  line-height: 1.6;
  position: relative;
}

/* 打印按钮样式 */
.left-div.left-des .print-button {
  background: var(--item_bg_color);
  color: var(--main_text_color);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 3px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

/* 页眉样式 */
.left-div.left-des .header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--main_text_color);
  padding-bottom: 1rem;
}

.left-div.left-des .header h1 {
  font-size: 2em;
  margin-bottom: 0.5rem;
}

/* 章节标题样式 */
.left-div.left-des .section-title {
  color: var(--main_text_color);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--main_text_color);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem;
}

/* 经历条目样式 */
.left-div.left-des .experience-item {
  margin: 1.5rem 0;
}

.left-div.left-des .experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.left-div.left-des .experience-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--main_text_color);
}

.left-div.left-des .experience-subtitle {
  color: var(--purple_text_color);
  font-style: italic;
}

.left-div.left-des .experience-duration {
  color: var(--purple_text_color);
  white-space: nowrap;
}

/* 技能部分样式 */
.left-div.left-des .technical-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.left-div.left-des .skill-category {
  break-inside: avoid;
}

.left-div.left-des .skill-category h3 {
  margin: 0.5rem 0;
  color: var(--main_text_color);
}

/* 出版物列表样式 */
.left-div.left-des .publication-list {
  list-style-type: none;
  padding-left: 1rem;
}

.left-div.left-des .publication-item {
  margin: 0.8rem 0;
  position: relative;
}

.left-div.left-des .publication-item::before {
  content: "•";
  color: var(--main_text_color);
  position: absolute;
  left: -1rem;
}

/* 链接样式 */
.left-div.left-des a {
  color: var(--purple_text_color);
  text-decoration: underline;
  word-break: break-all;
}

/* 列表样式 */
.left-div.left-des ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin: 0.5em 0;
}

.left-div.left-des ul ul {
  list-style-type: circle;
}

/* 打印优化 */
@media print {
  .left-div.left-des {
    padding: 0;
    max-width: 100%;
  }
  
  .left-div.left-des .print-button {
    display: none;
  }
  
  .left-div.left-des a {
    text-decoration: none;
    color: inherit;
  }
}

/* 响应式布局 */
@media (max-width: 768px) {
  .left-div.left-des .technical-skills {
    grid-template-columns: 1fr;
  }
  
  .left-div.left-des .experience-header {
    flex-direction: column;
  }
  
  .left-div.left-des .experience-duration {
    margin-top: 0.5rem;
  }
}

/* APlayer Customization - Liquid Glass Style & Compact Layout */
#aplayer-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 340px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#aplayer-floating.collapsed #aplayer-local {
    display: none;
}

.aplayer-toggle {
    background: var(--glass-bg);
    color: var(--main_text_color);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border);
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    #aplayer-floating {
        right: 12px;
        top: 68px;
        bottom: auto;
        left: auto;
        max-width: 320px;
        width: auto;
    }
    .aplayer-toggle {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        padding: 0;
        font-size: 18px;
        line-height: 1;
        margin-bottom: 10px;
    }
    .aplayer-toggle .aplayer-toggle-label {
        display: none;
    }
    #aplayer-local {
        width: 300px !important;
        max-width: calc(100vw - 24px) !important;
    }
}

#aplayer-local {
    max-width: 320px !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(var(--glass-contrast)) brightness(var(--glass-brightness));
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    overflow: hidden;
}

#aplayer-local .aplayer {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
}

#aplayer-local .aplayer .aplayer-body {
    background: transparent !important;
}

#aplayer-local .aplayer .aplayer-info {
    border: none !important;
    padding: 10px !important;
    height: auto !important;
}

#aplayer-local .aplayer .aplayer-pic {
    height: 66px !important;
    width: 66px !important;
    border-radius: 8px !important;
    margin: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#aplayer-local .aplayer .aplayer-info .aplayer-music {
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    height: auto !important;
}

#aplayer-local .aplayer .aplayer-info .aplayer-music .aplayer-title {
    font-size: 14px !important;
    color: var(--main_text_color) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

#aplayer-local .aplayer .aplayer-info .aplayer-music .aplayer-author {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

@keyframes aplayer-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

#aplayer-local .aplayer-marquee {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
}

#aplayer-local .aplayer-marquee .aplayer-marquee-inner {
    display: inline-block;
    white-space: nowrap;
}

#aplayer-local .aplayer-marquee.aplayer-marquee-active .aplayer-marquee-inner {
    padding-left: 100%;
    animation: aplayer-marquee var(--aplayer-marquee-duration, 10s) linear infinite;
}

#aplayer-local .aplayer .aplayer-info .aplayer-controller .aplayer-time {
    color: rgba(255, 255, 255, 0.7) !important;
    bottom: 4px !important;
}

#aplayer-local .aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path {
    fill: var(--main_text_color) !important;
}

#aplayer-local .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
    background: rgba(255, 255, 255, 0.2) !important;
    height: 4px !important;
    border-radius: 2px !important;
}

#aplayer-local .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded {
    background: rgba(255, 255, 255, 0.2) !important;
    height: 4px !important;
    border-radius: 2px !important;
}

#aplayer-local .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
    background: var(--purple_text_color, #747bff) !important;
    height: 4px !important;
    border-radius: 2px !important;
}

#aplayer-local .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
    background: var(--main_text_color) !important;
    width: 8px !important;
    height: 8px !important;
    margin-top: -2px !important;
}

#aplayer-local .aplayer .aplayer-volume-bar-wrap .aplayer-volume-bar {
    background: rgba(255,255,255,0.2) !important;
}
#aplayer-local .aplayer .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume {
    background: var(--purple_text_color, #747bff) !important;
}

#aplayer-local .aplayer .aplayer-list {
    background: rgba(0, 0, 0, 0.35) !important;
}

#aplayer-local .aplayer .aplayer-list ol {
    background: transparent !important;
}

#aplayer-local .aplayer .aplayer-list ol li {
    color: var(--purple_text_color) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: transparent !important;
}

#aplayer-local .aplayer .aplayer-list ol li * {
    color: var(--purple_text_color) !important;
}

#aplayer-local .aplayer .aplayer-list ol li .aplayer-list-index,
#aplayer-local .aplayer-list ol li .aplayer-list-index {
    color: var(--purple_text_color) !important;
    opacity: 1 !important;
}

#aplayer-local .aplayer .aplayer-list ol li .aplayer-list-author,
#aplayer-local .aplayer-list ol li .aplayer-list-author {
    color: var(--purple_text_color) !important;
    opacity: 1 !important;
}

#aplayer-local .aplayer .aplayer-list ol li .aplayer-list-title,
#aplayer-local .aplayer-list ol li .aplayer-list-title {
    color: var(--purple_text_color) !important;
    opacity: 1 !important;
}

#aplayer-local .aplayer .aplayer-list ol li:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

#aplayer-local .aplayer .aplayer-list ol li:hover .aplayer-list-index,
#aplayer-local .aplayer .aplayer-list ol li:hover .aplayer-list-author,
#aplayer-local .aplayer .aplayer-list ol li:hover .aplayer-list-title {
    color: var(--purple_text_color) !important;
}

#aplayer-local .aplayer .aplayer-list ol li.aplayer-list-light {
    background: rgba(255, 255, 255, 0.12) !important;
}

#aplayer-local .aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-index,
#aplayer-local .aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-author,
#aplayer-local .aplayer .aplayer-list ol li.aplayer-list-light .aplayer-list-title {
    color: var(--purple_text_color) !important;
}

/* 强制覆盖任何默认样式 */
.aplayer-list-index,
.aplayer-list-author,
.aplayer-list-title {
    color: var(--purple_text_color) !important;
}
