font-face {
    font-family: "a";
    /*中文字体*/
    src: url(../assets/fonts/STHeitiLight.ttc);
    font-display: swap;
}


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

    src: url();
    font-display: swap;
}

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


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

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


/* 全局隐藏滚动条 */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    /* 完全隐藏滚动条thumb */
    background: transparent;
    border-radius: 0;
    height: 0;
    width: 0;
}

::-webkit-scrollbar-track {
    /* 完全隐藏滚动条track */
    background: transparent;
    width: 0;
    height: 0;
}

html[data-theme="Dark"] {
    --main_bg_color: rgb(0, 0, 0);
    --main_text_color: #fff;
    --gradient:linear-gradient(120deg, rgb(133, 62, 255), #f76cc6 30%, rgb(255, 255, 255) 60%);
    --purple_text_color: #747bff;
    --text_bg_color: rgb(26, 4, 48);
    --item_bg_color: rgb(19, 20, 24);
    --item_hover_color: rgb(19, 23, 27);
    --item_left_title_color: rgb(255, 255, 255);
    --item_left_text_color: rgb(142, 142, 142);
    --footer_text_color: #646464;
    --left_tag_item: linear-gradient(50deg, #1f2327, #000000);
    --card_filter: 0px;
    --back_filter: 0px;
    --back_filter_color: #00000000;
    --fill:#ffffff;
}
body {
    display: flex;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    position: relative;
    font-family: "b",  "a", sans-serif;
    background: var(--main_bg_color);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* 确保背景固定，避免滚动时的视觉分离 */
    background-attachment: fixed;
    transition: color 0.1s ease;
    justify-content: center;
    color: var(--main_text_color);
    /* 禁用transform以避免合成层问题 */
    transform: none !important;
}

@keyframes zoom {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

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

.noise-filter {
    position: fixed;
    width: 100vw;
    height: 100vh;
    /* 禁用backdrop-filter以避免滚动时的视觉问题 */
    /* backdrop-filter: blur(var(--back_filter)); */
    /* -webkit-backdrop-filter: blur(var(--back-filter)); */
    z-index: -99999999;
    background: var(--back_filter_color);
    /* 禁用transform以避免视差效果 */
    transform: none !important;
}

.noise-main {
    width: 100%;
    /* 移除过渡动画以避免视觉问题 */
    /* transition: transform 0.5s ease; */
    max-width: 1150px;
    position: relative;
    flex-direction: row;
    /* 确保不会被动态变换 */
    transform: none !important;
}

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


.noise-left::-webkit-scrollbar {
    display: none;
}


.logo {
    flex-shrink: 0;
    width: 90%;
    position: relative;
    aspect-ratio: 1/1;
    margin-top: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    object-fit: cover; /* 裁剪图片以适应圆形遮罩 */
    transform: rotate(0deg) !important;
    transition: transform 0.6s ease-in-out !important; /* 平滑的旋转动画 */
    cursor: pointer; /* 添加指针样式提示可交互 */
}

/* 自定义logo样式 - 当用户想要自定义logo时，可以给logo元素添加custom-logo类 */
.logo.custom-logo {
    background-image: var(--logo-image, url('../img/logo3.png')) !important;
}

/* 悬浮时旋转效果 - 最高优先级 */
.logo:hover {
    transform: rotate(360deg) !important; /* 悬浮时顺时针转一圈 */
}

/* 确保主题切换时不影响悬浮效果 */
.theme-transitioning .logo:hover {
    transform: rotate(360deg) !important;
}

.left-div {
    flex-shrink: 0;
    width: 100%;
    border-radius: 13px;
    margin-top: 13px;
    padding: 10px;
    /* 启用高斯模糊效果 */
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    /* 确保不会被视差效果影响 */
    transform: none !important;
    /* 添加从下往上淡入动画 */
    opacity: 0;
    animation: slideInUpFade 0.8s ease-out forwards;
}

/* 为每个左侧卡片设置不同的延迟，创建连续动画效果 */
.noise-left .left-div:nth-child(1) {
    animation-delay: 0.1s;
}

.noise-left .left-div:nth-child(2) {
    animation-delay: 0.3s;
}

.noise-left .left-div:nth-child(3) {
    animation-delay: 0.5s;
}

.noise-left .left-div:nth-child(4) {
    animation-delay: 0.7s;
}

.noise-left .left-div:nth-child(5) {
    animation-delay: 0.9s;
}

.noise-left .left-div:nth-child(6) {
    animation-delay: 1.1s;
}

.noise-left .left-div:nth-child(7) {
    animation-delay: 1.3s;
}

.noise-left .left-div:nth-child(8) {
    animation-delay: 1.5s;
}

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

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

.left-des-item i,.left-des-item svg{
    width: 16px;
    height: 19px;
    fill:var(--fill);
    font-size: 16px;
    margin-right: 18px;
    justify-content: center; /* 水平居中 */
}
.left-tag {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 13px;
}

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

#line {
    width: 100%;
    height: 250px;
    font-size: 13px;
    padding: 8px;
    overflow-y: auto;
}

/* 每天60秒读懂世界图片样式 */
#line .content {
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#line .content:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#line .content div {
    width: 100%;
    height: auto;
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

#line .content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    object-fit: cover;
}

#line .content div:hover img {
    transform: scale(1.02);
    filter: brightness(1.05) contrast(1.05);
}

/* 60秒读懂世界标题样式 */
#line .title {
    font-size: 14px;
    font-weight: bold;
    color: var(--main_text_color);
    margin-bottom: 8px;
    margin-top: -5px;
    text-align: center;
    padding: 2px 0 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 60秒读懂世界内容区域优化 */
#line .content {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* 60秒读懂世界图片容器样式增强 */
#line .content > div {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* GPU加速优化 */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 60秒读懂世界图片悬停效果增强 */
#line .content > div:hover {
    transform: translateY(-3px) scale(1.02) translateZ(0);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* 60秒读懂世界图片点击反馈 */
#line .content > div:active {
    transform: translateY(-1px) scale(0.99) translateZ(0);
    transition: transform 0.1s ease;
}

/* 60秒读懂世界图片本身样式 */
#line .content > div img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#line .content > div:hover img {
    transform: scale(1.03) translateZ(0);
    filter: brightness(1.08) contrast(1.05) saturate(1.1);
}

/* 添加点击提示指示器 - 增强高斯模糊版 */
#line .content > div::before {
    content: '🔍 点击放大';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 11px;
    opacity: 0;
    transform: translateY(-10px) scale(0.8) translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    /* 精美的高斯模糊效果 */
    backdrop-filter: blur(15px) saturate(1.4) brightness(1.1);
    -webkit-backdrop-filter: blur(15px) saturate(1.4) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 10;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 随机一言容器样式 - 确保完美对齐 */
.left-div .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* 随机一言样式 - 修复对齐问题 */
#hitokoto {
    font-size: 14px;
    line-height: 1.5;
    color: var(--main_text_color);
    padding: 15px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    user-select: text;
    word-wrap: break-word;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    will-change: transform, background-color;
    transform: translateZ(0);
    /* 确保完美居中对齐 */
    text-align: center;
    writing-mode: horizontal-tb;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    /* 消除任何可能的偏移 */
    margin: 0;
    box-sizing: border-box;
}

#hitokoto:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#hitokoto:active {
    transform: translateY(0) scale(0.98) translateZ(0);
    transition: transform 0.1s ease;
}

/* 一言加载状态样式 */
#hitokoto:empty::before {
    content: '✨ 正在获取一言中...';
    color: #999;
    font-style: italic;
    opacity: 0.8;
}

/* 一言错误状态样式 */
#hitokoto.error {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}

/* 一言点击提示效果 */
#hitokoto::after {
    content: '💭 点击刷新';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

#hitokoto:hover::after {
    opacity: 1;
    top: -35px;
}

#line .content > div:hover::before {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
}

/* 图片弹出窗口样式优化 - 性能增强版 */
#imagePopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* GPU加速优化 */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 弹出窗口显示状态 */
#imagePopup.show {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#imagePopup img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1) rotate(15deg) translateZ(0);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    cursor: zoom-out;
    z-index: 99999 !important;
    opacity: 0;
    filter: blur(8px);
    /* GPU加速优化 */
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 图片显示动画 - 优化的app打开效果 */
#imagePopup.show img {
    transform: translate(-50%, -50%) scale(1) rotate(0deg) translateZ(0);
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transition-delay: 0.1s;
}

#imagePopup a {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 99999 !important;
    transform: scale(0) rotate(180deg) translateZ(0);
    opacity: 0;
    /* 增强的高斯模糊效果 */
    backdrop-filter: blur(15px) saturate(1.2);
    -webkit-backdrop-filter: blur(15px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* GPU加速优化 */
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 关闭按钮显示动画 */
#imagePopup.show a {
    transform: scale(1) rotate(0deg) translateZ(0);
    opacity: 1;
    transition-delay: 0.3s;
}

#imagePopup a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.15) rotate(0deg) translateZ(0) !important;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(1.4) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.4) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* 添加轻微的光晕效果 */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* 关闭动画 - 优化的app关闭效果 */
#imagePopup.closing {
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.25s ease-out;
}

#imagePopup.closing img {
    transform: translate(-50%, -50%) scale(0.1) rotate(-15deg) translateZ(0);
    opacity: 0;
    filter: blur(8px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: all 0.25s ease-out;
}

#imagePopup.closing a {
    transform: scale(0) rotate(-180deg) translateZ(0) !important;
    opacity: 0 !important;
    transition: all 0.15s ease-out;
}

/* 移除重复的点击提示 - 只保留一个更好的版本 */

/* 添加图片悬停预览效果 - 性能优化 */
#line .content div img {
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#line .content div:hover img {
    transform: scale(1.03) translateZ(0);
    filter: brightness(1.05) contrast(1.05);
}

/* 移动设备上的触摸反馈 */
#line .content div:active {
    transform: scale(0.98) translateZ(0);
    transition: transform 0.1s ease;
}

/* App打开动画关键帧 */
@keyframes appOpen {
    0% {
        transform: translate(-50%, -50%) scale(0.1) rotate(15deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-2deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    80% {
        transform: translate(-50%, -50%) scale(0.95) rotate(1deg);
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes appClose {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
    20% {
        transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
        opacity: 0.9;
        filter: blur(1px);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.1) rotate(-15deg);
        opacity: 0;
        filter: blur(10px);
    }
}

/* 背景渐变动画 */
@keyframes backgroundFadeIn {
    0% {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
    100% {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
    }
}

@keyframes backgroundFadeOut {
    0% {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
    }
    100% {
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(0px);
    }
}

/* 关闭按钮弹跳动画 */
@keyframes buttonBounceIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 移动设备优化 */
@media (max-width: 768px) {
    #imagePopup img {
        max-width: 95%;
        max-height: 95%;
        border-radius: 8px;
    }
    
    #imagePopup a {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    /* 移动设备上的触摸反馈 */
    #line .content div:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* 关闭按钮提示 */
#imagePopup a::before {
    content: '点击关闭';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

#imagePopup a:hover::before {
    opacity: 1;
}

/* 高对比度模式支持 */
@media (prefers-reduced-motion: reduce) {
    #imagePopup,
    #imagePopup img,
    #imagePopup a {
        transition: none !important;
        animation: none !important;
    }
    
    #imagePopup.show {
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.85);
    }
    
    #imagePopup.show img {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
    
    #imagePopup.show a {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}
#line1 {
    display: flex; /* 设置为弹性容器 */
    flex-direction: column; /* 子元素垂直排列 */
    width: 100%;
    height: auto;
    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);
}
#line2 {
    width: 100%;
    height: auto;
    font-size: 13px;
    padding-left: 8px;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    display: flex; /* 设置为弹性容器 */
    flex-direction: column; /* 子元素垂直排列 */
    align-items: center; /* 水平居中 */
}

#line2 img {
    max-width: 100%; /* 图片最大宽度为容器的宽度 */
    height: auto; /* 图片高度根据宽度自动调整 */
}

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

.noise-right {
    width: calc(100% - 230px);
    display: flex;
    padding: 24px;
    position: relative;
    float: right;
    padding-bottom: 50px;
    flex-direction: column;
}

.welcome {
    font-size: 55px;
    font-weight: 800;
    margin: 20px 0;
    /* 欢迎文字逐渐出现动画 */
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 欢迎文字显示动画状态 */
.welcome.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.description {
    font-size: 20px;
    margin-top: 7px;
    /* 描述文字逐渐出现动画 */
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 描述文字显示动画状态 */
.description.animate-in {
    opacity: 1;
    transform: translateX(0);
}

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

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

.iconContainer {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    overflow-x: scroll;
    margin-top: 20px;
    /* 图标容器逐渐出现动画 */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 图标容器显示动画状态 */
.iconContainer.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.iconItem {
    width: 49px;
    height: 43px;
    box-sizing: border-box;
    border-radius: 7px;
    display: flex;
    margin-left: 10px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}
.iconItem i,.iconItem svg{
    width: 22px;
    height: 22px;
    fill:var(--fill);
    font-size: 22px;
     margin-right: 3px;
}
.switch {
    width: 55px;
    height: 43px;
    box-sizing: border-box;
    border-radius: 7px;
    display: flex;
    margin-left: 10px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.iconItem:hover {
    width: 95px;
    transform: translateY(-3px) scale(1.05);
    background: var(--item_hover_color);
    /* box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3); */
    border-radius: 12px;
}


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

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

.title {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    margin: 20px 0;
    transition: transform 0.4s ease;
    /* 标题逐渐出现动画 */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 标题显示动画状态 */
.title.animate-in {
    opacity: 1;
    transform: translateX(0);
}
.title i ,.title svg{
    margin-right: 8px;
    height: 26px;
    width: 26px;
   fill:var(--fill);
}
.title:hover {
    transform: translateY(-8px) scale(1.02);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* 为指定的几个标题添加文字阴影，提高可读性 */
#flagship-sites {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

#related-sites {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

#friend-links {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

#cooperation-groups {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

#more-sites {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

/* 为指定区域下的项目内容添加文字阴影 */
#flagship-sites + .projectList .projectItemLeft h1,
#related-sites + .projectList .projectItemLeft h1,
#friend-links + .projectList .projectItemLeft h1,
#cooperation-groups + .projectList .projectItemLeft h1,
#more-sites + .projectList .projectItemLeft h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.4) !important;
}

#flagship-sites + .projectList .projectItemLeft p,
#related-sites + .projectList .projectItemLeft p,
#friend-links + .projectList .projectItemLeft p,
#cooperation-groups + .projectList .projectItemLeft p,
#more-sites + .projectList .projectItemLeft p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.3) !important;
}

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

.projectItem {
    margin: 7px;
    display: flex;
    background-color: var(--item_bg_color);
    border-radius: 8px;
    padding: 15px;
    height: 100px;
    width: calc(25% - 15px);
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    /* 功能键逐渐出现动画初始状态 */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 确保不会被视差效果影响 */
}

/* 确保悬浮状态的过渡效果不受延迟影响 */
.projectItem:not(.animate-in) {
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projectItem.animate-in {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 显示动画状态 */
.projectItem.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.projectItem:hover,
.projectItem.a:hover,
.projectItem.b:hover {
    /* Windows磁铁效果 - 亮度动效 */
    transform: translateY(-3px) scale(1.01) !important;
    background: linear-gradient(135deg, var(--item_bg_color) 0%, var(--item_hover_color) 100%) !important;
    
    /* 明亮的光晕效果 */
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(0, 123, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    
    /* 发光边框 */
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
    
    /* 亮度提升 */
    filter: brightness(1.1) contrast(1.05) !important;
    
    /* 内部光晕 */
    position: relative;
    
    /* 确保悬浮效果立即响应，不受延迟影响 */
    transition-delay: 0s !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* 添加内部发光效果 - 适用于所有projectItem */
.projectItem:hover::before,
.projectItem.a:hover::before,
.projectItem.b:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(0, 123, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Windows磁贴鼠标跟随光晕效果 */
.mouse-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(173, 216, 230, 0.06) 40%,
        rgba(135, 206, 250, 0.04) 60%,
        rgba(100, 149, 237, 0.02) 80%,
        transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    mix-blend-mode: overlay;
    filter: blur(2px);
    filter: blur(1px);
}

/* 确保projectItem有相对定位以包含光晕 */
.projectItem {
    position: relative;
    overflow: hidden;
}

.projectItem.pressed {
    transform: scale(0.9);
    /* 缩小到原来的0.9倍 */
    background-color: var(--item_hover_color);
}

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

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

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

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

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


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

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

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


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

.projectItemRight img {
    height: 39px;
    width: 39px;

}


footer {
    position: fixed;
    padding: 15px 20px;
    text-align: center;
    width: auto;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    color: var(--footer_text_color);
    font-size: 13px;
    bottom: 20px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}


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

.projectItem{
    margin: 10px;
}
    .b {

        width: calc(50% - 20px);


    }
}
.index-logo {
    display: none;
    width: 40%; /* 图像宽度为父元素的40% */
    height: 0; /* 高度为0，通过padding-bottom保持宽高比 */
    padding-bottom: 40%; /* 保持宽高比为1:1 */
    background-size: cover; /* 背景图像覆盖整个元素 */
    background-position: center; /* 背景图像居中 */
    border-radius: 50%; /* 圆形遮罩 */
    background-repeat: no-repeat; /* 不重复背景图像 */
}


/* 手机尺寸 */
@media (max-width: 800px) {
    body {
        /* 设置背景图片 */
        background-image: url('../img/32.png'); /* 请替换为你的图片URL */
        /* 背景图片覆盖整个元素 */
        background-size: 100% 100%;
        /* 背景图片不会随着页面滚动 */
        background-attachment: fixed;
        /* 背景图片重复方式 */
        background-repeat: no-repeat;
        /* 背景图片位置 */
        background-position: center center;
        /* 添加模糊效果 */
        background-filter: blur(18px);
        /* 背景颜色，用于在图片加载前或模糊效果下提供背景 */
        background-color: #0d0e11e7;
    }
    
    /* 移动端60秒读懂世界优化 */
    #line {
        height: 200px;
        padding: 4px;
    }
    
    #line .content {
        padding: 6px;
        margin: 4px 0;
    }
    
    #line .content div {
        max-height: 150px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    #line .content img {
        border-radius: 6px;
    }
    
    #line .title {
        font-size: 12px;
        padding: 2px 0;
    }
    
    /* 移动端弹出窗口优化 */
    #imagePopup img {
        max-width: 95% !important;
        max-height: 95% !important;
    }
    
    #imagePopup a {
        top: 10px !important;
        right: 10px !important;
        font-size: 24px !important;
        width: 35px !important;
        height: 35px !important;
    }
}


@media (max-width: 800px) {
    .index-logo {
        display: block;
        margin: 0 auto;
    }
    .noise-left {
        display: none;
    }
    .switch {
        display: none;
    }

    .a .projectItemRight {
        display: none;

    }

    .a .projectItemRight img {
        display: none;

    }

    .a .projectItemLeft {
        width: 100%;
    }

    .a {

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

    }

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

    .noise-right {
        width: 100%;
    }


    .description {
        font-size: 4vw;
    }

    .welcome {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    font-size: 10vw;
    }

    .gradientText {
    display: inline; /* 确保span元素在同一行内显示 */
    /* 添加其他必要的样式 */
    }


    .iconContainer {
  
     margin-top: 4vw;

    }
    .projectItem{
    padding: 10px;
    }

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

    .projectItemLeft h1 {

        font-size: 18px;
    }

    .projectItem:hover h1 {

        font-size: 20px;

    }

}

.onoffswitch {
    position: relative;
    width: 38px;
    height: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    border-radius: 50px;
}

.onoffswitch-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200%;
    height: 100%;
    margin-left: -100%;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 50%;
    height: 100%;
    padding: 0;
    font-size: 12px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "";
    background-color: rgb(110 110 110 / 50%);
    color: #FFFFFF;
    text-align: left;
}

.onoffswitch-inner:after {
    content: "";
    background-color: #272727;
    color: #FAFAFA;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    height: 70%;
    aspect-ratio: 1/1;
    background: #FFFFFF;
    position: absolute;
    top: 12.5%;
    bottom: 12.5%;
    right: 5px;
    border-radius: 20px;  
}

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

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 50%;
}
/* 鼠标小黑猫光标*/
button {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/work.cur),alias}
p {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/texto.cur),auto}
a {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/ayuda.cur),auto}
a:active {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/work.cur),alias}
body {cursor:url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/normal.cur),auto}

/* 增强的动画效果 */

/* 左侧标签浮动动画 */
.left-tag-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.left-tag-item:hover {
    transform: translateY(-1px) scale(1.02);
    /* box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25); */
    background: linear-gradient(45deg, var(--left_tag_item), rgba(0, 123, 255, 0.1));
}

.left-tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.left-tag-item:hover::before {
    left: 100%;
}

/* 时间显示区域动画 */
#clock, #lbl {
    transition: all 0.3s ease;
}

#clock:hover, #lbl:hover {
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transform: scale(1.05);
}

/* 描述文字动画 */
.description {
    transition: all 0.3s ease;
}

.description:hover {
    transform: translateX(5px);
    color: var(--purple_text_color);
}

/* 欢迎文字动画增强 */
.welcome {
    position: relative;
    overflow: hidden;
}

.welcome::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00ff00, #ffff00, #ff00ff);
    transition: width 0.8s ease;
}

.welcome:hover::after {
    width: 100%;
}

/* 右键菜单动画增强 */
.menu-item {
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(18, 125, 231, 0.3), transparent);
    transition: left 0.4s ease;
}

.menu-item:hover::before {
    left: 100%;
}

/* 移动端按钮动画 */
.mobile-nav-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-button:hover {
    transform: scale(1.05) rotate(2deg);
    background-color: #007bff;
    /* box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); */
}

/* 项目图片旋转增强 */
.projectItemRight img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.projectItem:hover .projectItemRight img {
    transform: rotate(40deg) scale(1.2);
    filter: brightness(1.2) contrast(1.1);
}

/* 开关按钮动画增强 */
.onoffswitch-label {
    transition: all 0.3s ease;
}

.onoffswitch-label:hover {
    /* box-shadow: 0 0 15px rgba(0, 123, 255, 0.4); */
    transform: scale(1.02);
}

/* 摸鱼日历图片动画 - 增强版 */
#moyuImage {
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 8px;
    cursor: pointer;
    /* GPU加速优化 */
    will-change: transform, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#moyuImage:hover {
    transform: scale(1.05) rotate(1deg) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1) saturate(1.2) contrast(1.05);
}

#moyuImage:active {
    transform: scale(1.02) rotate(0.5deg) translateZ(0);
    transition: transform 0.1s ease;
}

/* 摸鱼日历容器样式增强 */
#line2 .container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#line2 .container:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px) translateZ(0);
}

/* 摸鱼日历点击提示 - 增强高斯模糊 */
#line2 .container::before {
    content: '🔍 点击放大';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 11px;
    opacity: 0;
    transform: translateY(-10px) scale(0.8) translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    /* 增强的高斯模糊效果 */
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#line2 .container:hover::before {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
}

/* 美化滚动条 - 已禁用 */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
    display: none;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    display: none;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
    display: none;
}

/* ========== 主题切换动画 ========== */

/* 主题切换过渡效果 */
.theme-transitioning {
    overflow: hidden;
    position: relative;
}

.theme-transitioning * {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 主题切换波纹效果 */
.theme-ripple {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0, 123, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    );
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    animation: themeRippleExpand 0.8s ease-out forwards;
}

@keyframes themeRippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        width: 200vw;
        height: 200vh;
        opacity: 0;
    }
}

/* 主题切换元素波浪动画 */
@keyframes themeChangeWave {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 主题切换时的特殊效果 - 不影响悬浮旋转 */
.theme-transitioning .logo:not(:hover) {
    animation: logoThemeChange 0.8s ease-out;
}

.theme-transitioning .welcome {
    animation: textThemeChange 0.6s ease-out 0.1s;
}

.theme-transitioning .description {
    animation: textThemeChange 0.6s ease-out 0.2s;
}

@keyframes logoThemeChange {
    0% {
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        filter: brightness(1.5);
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: brightness(1);
    }
}

@keyframes textThemeChange {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-20px);
        opacity: 0.5;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 主题切换按钮增强 */
.onoffswitch-label {
    position: relative;
    overflow: hidden;
}

.onoffswitch-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.onoffswitch-checkbox:checked + .onoffswitch-label::before {
    left: 100%;
}

/* 主题过渡时的背景效果 */
.theme-transitioning::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(0, 123, 255, 0.1) 0%, 
        transparent 70%
    );
    z-index: -1;
    animation: themeBackgroundPulse 0.8s ease-out;
}

@keyframes themeBackgroundPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* 主题切换时的粒子效果 */
.theme-transitioning .particle,
.theme-transitioning .bubble,
.theme-transitioning .star {
    animation-duration: 0.5s !important;
}

/* 不同主题下的动画调整 */
html[data-theme="Dark"] .particle {
    background: rgba(0, 123, 255, 0.6);
}

html[data-theme="Dark"] .bubble {
    background: radial-gradient(circle at 30% 30%, 
        rgba(0, 123, 255, 0.8), 
        rgba(0, 123, 255, 0.1)
    );
}

html[data-theme="Dark"] .star {
    background: #00ff00;
    box-shadow: 0 0 6px #00ff00;
}

html[data-theme="Light"] .particle {
    background: rgba(255, 255, 255, 0.8);
}

html[data-theme="Light"] .bubble {
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.2)
    );
}

html[data-theme="Light"] .star {
    background: #007bff;
    box-shadow: 0 0 4px #007bff;
}

/* ========== 移动端触摸反馈动画 ========== */

/* 触摸按下效果 */
.touch-feedback {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.touch-active {
    transform: scale(0.90) !important;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 触摸波纹效果 */
.touch-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: touchRipple 0.6s ease-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes touchRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 移动端悬停效果（针对支持hover的设备） */
@media (hover: hover) and (pointer: fine) {
    .mobile-hover-effect:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* 触摸设备专用样式 */
@media (hover: none) and (pointer: coarse) {
    .projectItem {
        transition: all 0.2s ease !important;
    }
    
    .projectItem:active {
        transform: scale(0.98) translateY(2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .iconItem:active {
        transform: scale(0.9);
        background: var(--item_hover_color);
    }
    
    .logo:active {
        transform: scale(0.90) rotate(10deg) !important;
    }
    
    .left-tag-item:active {
        transform: scale(0.96);
        background: rgba(0, 123, 255, 0.2);
    }
}

/* 手机端按钮增强 */
.mobile-nav-button {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.mobile-nav-button:active::before {
    width: 120px;
    height: 120px;
}

/* 触摸反馈按钮类 */
.btn-touch {
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-touch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-touch:active::after {
    width: 200px;
    height: 200px;
}

/* 触摸滑动效果 */
.touch-slide {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.touch-slide.slide-left {
    transform: translateX(-10px);
}

.touch-slide.slide-right {
    transform: translateX(10px);
}

.touch-slide.slide-up {
    transform: translateY(-10px);
}

.touch-slide.slide-down {
    transform: translateY(10px);
}

/* 长按效果 */
.long-press-effect {
    position: relative;
}

.long-press-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.3));
    transition: width 0.8s ease;
}

.long-press-effect.long-pressing::before {
    width: 100%;
}

/* 触摸反馈的震动效果已移除 */
/* .vibrate-feedback {
    animation: touchVibrate 0.3s ease-in-out;
} */

/* iOS风格的触摸反馈 */
.ios-touch-feedback {
    transition: all 0.1s ease;
}

.ios-touch-feedback:active {
    transform: scale(0.97);
    opacity: 0.8;
}

/* Android风格的触摸反馈 */
.android-touch-feedback {
    position: relative;
    overflow: hidden;
}

.android-touch-feedback::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.android-touch-feedback:active::after {
    opacity: 1;
}

/* 手势操作反馈 */
.swipe-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    transition: all 0.3s ease;
    z-index: 1000;
}

.swipe-indicator.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.swipe-indicator::after {
    content: '\2192'; /* 右箭头 */
    font-size: 20px;
    color: #007bff;
}

/* 移除虚线分割线样式 */
/* hr.dashed {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 10px 0;
} */

  #clock {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    color: #faf6f6; /* 时钟文字颜色 */
    justify-content: center; /* 水平居中 */
  }
  #lbl {
    font-family: brushscriptmt;
    
    color: #fdf7f7;
    padding: 2px;
    justify-content: center; /* 水平居中 */
    line-height: 1.5;
    height:auto;
    font-size: 13px;


}
#date{
    font-size: 13px;
    justify-content: center; /* 水平居中 */
}
.projectItemRightimg { 
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.396);
    height: 120px; /* 设置一个合适的高度，或者根据需要自动调整 */
    max-width: 99%;
    overflow: hidden; /* 隐藏超出容器的内容 */
  }
  #img-1 {
    max-width: 100%;
    max-height: 100%;
    margin-right: 6px; /* 添加右侧间隔 */
  }
/* 在手机尺寸下显示的按钮样式 */
@media screen and (max-width: 800px) {
    .mobile-nav-button {
      display: block;
      position: fixed;
      top: 15px;
      left: 10px;
      z-index: 199000;
      width: 50px;
      height: 50px;
      background-color: #232730f5; /* 方块按钮的背景颜色 */
      color: #fff;
      text-align: center;
      line-height: 50px; /* 垂直居中 */
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.02s ease-in-out; /* 过渡效果 */
      
    }
  
    /* 侧边栏的弹出样式 */
    .noise-left {
      display: none;
      position: fixed;
      top: 2;
      width: 50%;
      height: 100%;
      background-color:  #0d0e11ed;  /* 弹出层的背景颜色 */
      z-index: 99900; /* 确保弹出层在按钮下面 */
      transition: left 0.1s ease-in-out;
    }
  /* 侧边栏弹出时按钮的位置 */

    /* 显示侧边栏 */
    .noise-left.show {
      left: 0;
    }
  }
  /* 移动端logo显示调整 */
@media screen and (max-width: 800px) {
    .logo {
    /* 移动端保持显示，但调整大小 */
    width: 60px;
    height: 60px;
    margin-top: 20px;
    /* 保持旋转效果 */
    transform: rotate(0deg) !important;
    transition: transform 0.6s ease-in-out !important;
    }
    
    .logo:hover {
    transform: rotate(360deg) !important;
    }
  }
  /* 在非手机尺寸下隐藏按钮 */
  @media screen and (min-width: 800px) {
    .mobile-nav-button {
      display: none;
    }
  }
  