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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


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

    src: url(../fonts/Ubuntu-Regular.ttf);
    font-display: swap;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: auto;
    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));
}



html[data-theme="Dark"] {
    
    --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: 5px;
    --back_filter_color: rgba(0, 0, 0, 0.85);
    --fill:#ffffff;
    --main_bg_color: #0a0a0a;
}

html[data-theme="Dark"] body {
    background-color: #0a0a0a;
    background-image: none;
}

html[data-theme="Dark"] .jay-filter {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}






body {
    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;
    color: var(--main_text_color);

}






.jay-filter {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--back_filter_color);
    backdrop-filter:  blur(var(--back_filter));
    -webkit-backdrop-filter: blur(var(--back_filter));
    z-index: -99999999;
   
}

.jay-main {
    width: 100%;
    margin: 0 auto;
    transition: transform 0.5s ease;
    max-width: 1150px;
    position: relative;
    display: flex;
    flex-direction: row;
}


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


.jay-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%;
    overflow: visible;
}

.logo::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 153, 255, 0.1) 45%,
        rgba(0, 153, 255, 0.8) 50%,
        rgba(0, 153, 255, 0.1) 55%,
        transparent 60%
    );
    background-size: 150%;
    z-index: -1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}



.left-div {
    flex-shrink: 0;
    width: 100%;
    border-radius: 13px;
    margin-top: 15px;
    padding: 20px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.left-div:hover::before {
    left: 100%;
}

.left-div:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 轮播banner不需要额外背景和扫光效果 */
.left-time {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.left-time::before {
    display: none;
}

.left-time:hover {
    transform: none;
    box-shadow: none;
}

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

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

.left-des-item i,.left-des-item svg{
    width: 16px;
    height: 16px;
    fill:var(--fill);
   font-size: 18px;
    margin-right: 10px;
}
.left-tag {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 14px;
}

.left-tag {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.left-tag-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    margin: 0;
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--main_text_color);
    font-weight: normal;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
}

.left-tag-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 轮播banner样式 */
.timeline-carousel {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 13px;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(20, 24, 38, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    overflow: hidden;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.carousel-item:hover {
    background: var(--item_hover_color);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

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

.carousel-content {
    text-align: center;
    z-index: 2;
}

.carousel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--main_text_color);
    margin-bottom: 8px;
}

.carousel-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 18px;
    border-radius: 3px;
}

/* 心情笔记弹窗样式 - 黑白透明磨砂亚克力风格 */
.mood-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.mood-modal.active {
    display: flex;
}

.mood-modal-content {
    width: 85%;
    max-width: 420px;
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mood-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.mood-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.mood-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mood-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.mood-modal-body {
    margin-bottom: 16px;
    min-height: 60px;
    max-height: 300px;
    overflow-y: auto;
}

.mood-modal-body p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-align: justify;
    white-space: pre-wrap;
    word-break: break-word;
}

.mood-link {
    color: #8ec5ff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.mood-modal-footer {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

/* 心情导航按钮 */
.mood-nav-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    font-size: 18px;
    font-weight: 300;
}

.mood-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 1) !important;
}



.jay-right {
    width: calc(100% - 230px);
    display: flex;
    padding: 20px;
    position: relative;
    padding-bottom: 12px;
    flex-direction: column;
    min-height: 100vh;
}
.welcome {
    font-size: 65px;
    font-weight: 800;
    margin: 20px 0;
    text-align: center;
}

.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;
    height: auto;
}
.description {

    font-size: 20px;
    margin-top: 7px;
    text-align: center;
}



.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;
    margin: 0 3px;
    padding: 2px 4px;
}

.iconContainer {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 12px;
}

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

.iconItem {
    width: 49px;
    height: 43px;
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    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: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.iconItem:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 15px rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.3);
    background-color: var(--item_hover_color);
}

.iconItem:hover::before {
    left: 100%;
}

.iconItem:hover svg,
.iconItem:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    transform: scale(1.1);
}

.iconItem svg,
.iconItem img {
    transition: all 0.3s ease;
}

.iconItem i,.iconItem svg{
    width: 22px;
    height: 22px;
    fill:var(--fill);
    font-size: 22px;
    margin-right: 3px;
}
/* Message board icon with glassmorphism and white icon */
#message-board-icon {
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    border-radius: 7px;
}
#message-board-icon svg,
#message-board-icon svg * {
    fill: #ffffff !important;
    stroke: none !important;
}
#message-board-icon svg { width: 22px; height: 22px; }
.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;
    transition: width 1s ease, opacity 1s ease, transform 1s ease;
    flex-shrink: 0;
}

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





.iconItem:hover {
    width: 95px;
    transform: translateY(-2px);
    background: var(--item_hover_color);
}


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

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

.player-section {
    width: 100%;
    margin-top: 24px;
}

.player-card {
    padding: 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 48px rgba(9, 11, 24, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html[data-theme="Dark"] .player-card {
    background: rgba(10, 12, 25, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.title {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    margin: 20px 0;
    transition: transform 0.4s ease;
}
.title i ,.title svg{
    margin-right: 8px;
    height: 26px;
    width: 26px;
   fill:var(--fill);
}
.title:hover {
    transform: translateY(-5px);
}



.projectList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 2px;
    margin-bottom: 0;
}

.projectItem {
    display: flex;
    flex-direction: row;
    background-color: var(--item_bg_color);
    border-radius: 12px;
    padding: 15px;
    height: 100px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.projectItem:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 107, 157, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 107, 157, 0.3);
    background-color: var(--item_hover_color);
}

.projectItem:hover::before {
    left: 100%;
}

.projectItem.pressed {
    transform: scale(0.98);
    background-color: var(--item_hover_color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.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;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.projectItem:hover .projectItemRight img {
    transform: rotate(40deg) scale(1.15); /* 添加缩放效果 */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); /* 添加发光效果 */
    animation: logoHover 0.6s ease-in-out;
}

/* 更多项目按钮样式 - 黑白透明磨砂风格 */
.project-more-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px dashed rgba(255, 255, 255, 0.15) !important;
}

.project-more-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

.project-more-btn .more-icon {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.project-more-btn:hover .more-icon {
    transform: rotate(90deg);
    stroke: rgba(255, 255, 255, 0.9);
}

/* AI项目弹窗样式 - 黑白透明磨砂亚克力风格 */
.ai-projects-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    overflow: hidden;
}

.ai-projects-modal.active {
    display: flex;
}

.ai-projects-modal-content {
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    width: 90%;
    max-width: 480px;
    min-height: 360px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-projects-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    width: 100%;
}

.ai-projects-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 0.5px;
}

.ai-projects-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ai-projects-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* AI项目容器 */
.ai-projects-container {
    position: relative;
    width: 100%;
    height: 260px;
    margin-bottom: 16px;
    border-radius: 20px;
    overflow: hidden;
}

.ai-project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
}

.ai-projects-container:hover .ai-project-nav {
    opacity: 1;
}

.ai-project-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.ai-project-nav-left {
    left: 8px;
}

.ai-project-nav-right {
    right: 8px;
}

.ai-projects-slider {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.ai-project-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100%);
    overflow: hidden;
    border-radius: 16px;
}

.ai-project-item.active {
    opacity: 1;
    animation: fadeInScale 0.4s ease-out forwards;
}

.ai-project-item.prev {
    opacity: 0.4;
    transform: translateX(-100%);
}

.ai-project-item.next {
    opacity: 0.4;
    transform: translateX(100%);
}

.ai-project-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.7);
    -webkit-filter: blur(2px) brightness(0.7);
    z-index: 0;
    transition: filter 0.4s ease, transform 0.6s ease;
}

.ai-project-item:hover .ai-project-background {
    transform: scale(1.08);
    filter: blur(3px) brightness(0.8);
}

.ai-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.6) 40%,
        rgba(10, 10, 15, 0.2) 70%,
        rgba(10, 10, 15, 0.1) 100%
    );
    z-index: 1;
}

.ai-project-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: white;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ai-project-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.ai-project-item:hover .ai-project-name {
    transform: translateY(-4px);
}

.ai-project-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    max-width: 80%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ai-project-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.ai-project-item:hover .ai-project-link-hint {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.ai-projects-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ai-project-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-project-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ai-project-indicator.active {
    background: rgba(255, 255, 255, 0.95);
    width: 24px;
    border-radius: 4px;
}

/* AI项目切换动画 - 淡入淡出 + 缩放 */
@keyframes projectFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes projectFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes projectSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-project-item.slide-out {
    animation: projectFadeOut 0.3s ease-in forwards;
}

.ai-project-item.slide-in {
    animation: projectFadeIn 0.4s ease-out forwards;
}

/* 初始淡入效果 */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ai-project-item.active {
    opacity: 1;
    animation: fadeInScale 0.4s ease-out forwards;
}

.ai-project-item.prev {
    opacity: 0.4;
    transform: translateX(-100%);
}

.ai-project-item.next {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .ai-projects-modal {
        align-items: flex-end;
    }
    
    .ai-projects-modal-content {
        width: 100%;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
    }
    
    .ai-projects-container {
        height: 200px;
    }
    
    .ai-project-nav {
        opacity: 1;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ai-projects-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    text-decoration: none;
    opacity: 1;
}

.ai-project-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.ai-project-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.ai-project-item:hover .ai-project-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.ai-project-icon svg {
    width: 26px;
    height: 26px;
    stroke: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.ai-project-item:hover .ai-project-icon svg {
    stroke: rgba(255, 255, 255, 1);
}

.ai-project-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 6px;
}

.ai-project-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.4;
}

.ai-projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

@media (max-width: 768px) {
    .ai-projects-modal {
        align-items: flex-end;
    }
    
    .ai-projects-modal-content {
        width: 100%;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    
    .ai-projects-modal.active .ai-projects-modal-content {
        transform: translateY(0);
    }
    
    .ai-projects-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
        max-height: calc(85vh - 80px);
    }
    
    .ai-project-item {
        padding: 12px 8px;
    }
    
    .ai-project-icon {
        width: 40px;
        height: 40px;
    }
    
    .ai-project-name {
        font-size: 12px;
    }
}

@keyframes logoHover {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(20deg) scale(1.2);
    }
    100% {
        transform: rotate(40deg) scale(1.15);
    }
}


footer {
    position: absolute;
    padding: 10px;
    text-align: center;
    width: 100%;
    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: 0;
}

@media (min-width: 800px) {

    header {
        text-align: center;
    }
    
    .index-logo {
        display: none;
    }
    
    .welcome {
        text-align: center;
        width: 100%;
        display: block;
    }

    /* Desktop: reduce gap between player and links */
    .projectList {
        margin-top: 8px;
    }
}

@media (max-width: 1150px) {
    .projectList {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .projectList {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .projectItem {
        margin-bottom: 0;
        min-height: 70px;
        padding: 10px 8px;
    }
}

@media (max-width: 800px) {
    .jay-left {
        display: none;
    }
    
    header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 12px 15px;
        justify-content: center;
        min-height: auto;
    }
    
    .index-logo {
        margin: 0 auto;
        display: block;
        width: 40%;
        max-width: 150px;
        height: auto;
        flex-shrink: 0;
        margin-top: 10px;
    }
    
    .welcome {
        text-align: center;
        margin: 8px 0;
        font-size: 7vw;
        line-height: 1.2;
    }

    .description {
        font-size: 14px;
        margin-top: 4px;
        padding: 0 10px;
    }

    .iconContainer {
        margin-top: 1vw;
        height: 36px;
        padding: 0 10px;
        gap: 8px;
    }
    
    .iconItem {
        margin: 0 4px;
        width: 32px;
        height: 32px;
    }

    .projectItem {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        height: auto;
        min-height: 65px;
    }

    /* 移动设备显示优化 */
    .projectItemLeft {
        width: 65%;
        flex-shrink: 1;
    }
    
    .projectItemRight {
        width: 35%;
        height: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-top: 0;
        margin-left: 6px;
        flex-shrink: 0;
    }
    
    /* 确保logo正确显示在右侧 */
    .projectItemRight .left-des-item {
        justify-content: flex-end;
    }
    
    .projectItemRight .left-des-item img {
        margin-left: 0;
        margin-right: 0;
    }
    
    .projectItemRight img {
        height: 28px;
        width: 28px;
    }

    .jay-right {
        width: 100%;
        padding: 12px 15px;
        padding-bottom: 60px;
    }

    .personal-visual {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .projectItemLeft p {
        font-size: 12px;
        margin-top: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .projectItemLeft h1 {
        font-size: 15px;
        line-height: 1.25;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    .title {
        font-size: 20px;
        margin: 15px 0;
        padding: 0 10px;
    }

    .player-section {
        margin-top: 15px;
    }
    
    /* 移动设备触摸反馈 */
    .projectItem:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* 小屏手机适配 */


@media (max-width: 480px) {
    header {
        padding: 10px 12px;
    }
    
    .index-logo {
        width: 50%;
    }
    
    .welcome {
        font-size: 8vw;
    }
    
    .description {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .iconContainer {
        height: 40px;
        padding: 0 15px;
    }
    
    .iconItem {
        margin: 0 6px;
        width: 32px;
        height: 32px;
    }
    
    .projectItem {
        padding: 15px;
    }
    
    .projectItemLeft h1 {
        font-size: 14px;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    
    .projectItemLeft p {
        font-size: 11px;
        letter-spacing: 0.2px;
        margin-top: 4px;
    }
    
    .title {
        font-size: 18px;
        text-align: center;
    }
    
    .jay-right {
        padding: 10px 12px;
        padding-bottom: 70px;
    }
    
    /* 弹窗适配 */
    .tc-main {
        width: 90%;
        max-width: none;
        min-height: 180px;
        border-radius: 12px;
    }
    
    /* 开关按钮适配 */
    .onoffswitch {
        width: 48px;
        height: 24px;
    }
    
    .onoffswitch-switch {
        right: 6px;
    }
    
    .onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
        right: 45%;
    }
}





.tc {
    position: fixed;
   
    display: flex;
    visibility: hidden;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.5);
    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);

}









/* 复制按钮样式 */
.mb-text-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mb-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #666;
    opacity: 0;
    transition: all 0.2s ease;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mb-copy-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* 鼠标悬停在文本容器上时显示复制按钮 */
.mb-item-right:hover .mb-copy-btn,
.mb-reply-body:hover .mb-copy-btn {
    opacity: 1;
}

/* 调整回复中的复制按钮位置 */
.mb-reply-body .mb-text-container {
    margin-top: 4px;
}

.mb-reply-body .mb-copy-btn {
    top: 4px;
}

.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%;
    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: 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;
    transition: right 0.2s ease-in 0s;
}

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

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

/* 看板娘样式 */
.kanban-girl {
    position: fixed;
    bottom: 120px;
    left: 50%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.5s ease-out;
}

.kanban-girl.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.kanban-girl-image {
    width: 120px;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanban-girl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kanban-girl-bubble {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    max-width: 350px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: auto;
    display: inline-block;
    writing-mode: horizontal-tb;
    direction: ltr;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kanban-girl-bubble.show {
    opacity: 1;
    animation: fadeOut 3s ease 10s forwards;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .kanban-girl-bubble {
        max-width: 250px;
        font-size: 11px;
    }
}

/* 看板娘消息样式 */
.kanban-girl-message {
    color: #ff6b9d !important;
    animation: kanbanGirlFadeIn 0.6s ease-out forwards;
}

@keyframes kanbanGirlFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 思考中指示器容器 */
.thinking-indicator {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.thinking-indicator.active {
    display: flex;
    animation: thinkingIndicatorPulse 1s ease-in-out infinite;
}

@keyframes thinkingIndicatorPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* 思考中频谱动画 - 内联版 */
.thinking-spectrum-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 20px;
}

.spectrum-bar-inline {
    width: 3px;
    height: 100%;
    background: linear-gradient(to top, #ffd93d, #ff9f43);
    border-radius: 2px;
    animation: spectrumBarPulse 0.8s ease-in-out infinite;
}

.spectrum-bar-inline:nth-child(1) {
    animation-delay: 0s;
}

.spectrum-bar-inline:nth-child(2) {
    animation-delay: 0.15s;
}

.spectrum-bar-inline:nth-child(3) {
    animation-delay: 0.3s;
}

.spectrum-bar-inline:nth-child(4) {
    animation-delay: 0.45s;
}

.spectrum-bar-inline:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes spectrumBarPulse {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 思考中特效 */
.kanban-girl-message.thinking {
    color: #ffd93d !important;
}

.kanban-girl-message.thinking::placeholder {
    color: #ffd93d !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 轮播标语渐隐渐显+上下浮动动画 */
.placeholder-enter {
    animation: placeholderFadeInUp 0.5s ease-out forwards;
}

.placeholder-exit {
    animation: placeholderFadeOutUp 0.4s ease-in forwards;
}

@keyframes placeholderFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes placeholderFadeOutUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 移动端看板娘调整 */
@media (max-width: 768px) {
    .kanban-girl {
        bottom: 75px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
    }
    
    .kanban-girl.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .kanban-girl-image {
        width: 80px;
        height: 120px;
    }
    
    .kanban-girl-bubble {
        max-width: 150px;
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* 内容区域布局 */
.content-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 10px auto 12px;
    padding: 0 10px;
}

.player-section-full {
    flex: 1;
    min-width: 0;
    height: auto;
    border-radius: 16px;
}

/* 音乐可视化效果容器 - 显示在播放器下方、网址块上方 */
.audio-visualizer-container {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    margin: 0 auto 12px;
    max-width: 600px;
    width: 100%;
}

.audio-visualizer-container.active {
    display: flex;
}

.visualizer-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 32px;
}

.visualizer-bars .viz-bar {
    width: 4px;
    height: 8px;
    background: linear-gradient(to top, rgba(255,255,255,0.7), rgba(255,255,255,0.3));
    border-radius: 2px;
    transform-origin: bottom;
    transition: height 0.1s ease;
}

/* 播放时触发动画 */
.visualizer-bars.playing .viz-bar {
    animation: vizPulse 0.8s ease-in-out infinite;
}

.visualizer-bars.playing .viz-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bars.playing .viz-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bars.playing .viz-bar:nth-child(3) { animation-delay: 0.15s; }
.visualizer-bars.playing .viz-bar:nth-child(4) { animation-delay: 0.05s; }
.visualizer-bars.playing .viz-bar:nth-child(5) { animation-delay: 0.2s; }
.visualizer-bars.playing .viz-bar:nth-child(6) { animation-delay: 0.08s; }
.visualizer-bars.playing .viz-bar:nth-child(7) { animation-delay: 0.12s; }
.visualizer-bars.playing .viz-bar:nth-child(8) { animation-delay: 0.18s; }
.visualizer-bars.playing .viz-bar:nth-child(9) { animation-delay: 0.03s; }
.visualizer-bars.playing .viz-bar:nth-child(10) { animation-delay: 0.22s; }
.visualizer-bars.playing .viz-bar:nth-child(11) { animation-delay: 0.07s; }
.visualizer-bars.playing .viz-bar:nth-child(12) { animation-delay: 0.14s; }

@keyframes vizPulse {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* 响应式 */
@media (max-width: 768px) {
    .audio-visualizer-container {
        padding: 6px 16px;
        margin-bottom: 10px;
    }
    
    .visualizer-bars {
        height: 24px;
        gap: 3px;
    }
    
    .visualizer-bars .viz-bar {
        width: 3px;
        height: 6px;
    }
}

/* 响应式布局 - 桌面端保持原样 */
@media (min-width: 769px) {
}

/* 灵动岛样式 - 现代化设计 */
.dynamic-island {
    position: fixed;
    bottom: 310px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    transform-origin: center;
    width: auto;
    min-width: 60px;
    max-width: 320px;
    height: 44px;
    background: rgba(25, 28, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 16px;
    opacity: 0;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

/* 隐藏底部资源笔记灵动岛入口，仅保留按钮/看板娘触发弹窗 */
#dynamicIsland,
.dynamic-island {
    display: none !important;
}

/* 灵动岛激活状态 */
.dynamic-island.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* 灵动岛最小化状态 */
.dynamic-island.minimized {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    background: rgba(25, 28, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 频谱容器 - 始终显示 */
.island-spectrums {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 频谱条样式 - 细细的线条 */
.spectrum-bar {
    width: 2px;
    height: 12px;
    background: linear-gradient(to bottom, #00d4ff, #ff0080);
    border-radius: 1px;
    animation: spectrumPulse 1s ease-in-out infinite;
    transform-origin: center;
    margin: 0 1px;
}

/* 频谱条动画 - 错落有致 */
.spectrum-bar:nth-child(1) {
    animation-duration: 0.7s;
    animation-delay: 0s;
}

.spectrum-bar:nth-child(2) {
    animation-duration: 0.8s;
    animation-delay: 0.1s;
}

.spectrum-bar:nth-child(3) {
    animation-duration: 0.9s;
    animation-delay: 0.2s;
}

.spectrum-bar:nth-child(4) {
    animation-duration: 0.75s;
    animation-delay: 0.15s;
}

.spectrum-bar:nth-child(5) {
    animation-duration: 0.85s;
    animation-delay: 0.05s;
}

/* 上下居中的频谱动画 */
@keyframes spectrumPulse {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 消息容器 */
.island-message {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 消息容器 - 支持上下滚动 */
.message-container {
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 消息文本 */
.message-text {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 44px;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* 消息上下滚动动画 */
.message-text.sliding {
    animation: messageSlide 5s ease-in-out infinite;
}

/* 消息上下滚动动画 */
@keyframes messageSlide {
    0%, 20% {
        transform: translateY(0);
        opacity: 1;
    }
    30%, 50% {
        transform: translateY(-100%);
        opacity: 0;
    }
    60%, 80% {
        transform: translateY(100%);
        opacity: 0;
    }
    90%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 消息淡入淡出动画 */
.message-text.fade-in {
    animation: messageFadeIn 0.8s ease-out forwards;
}

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

.message-text.fade-out {
    animation: messageFadeOut 0.8s ease-in forwards;
}

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

/* 小球状态下的消息 */
.dynamic-island.minimized .island-message {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* 非小球状态下的消息 */
.dynamic-island:not(.minimized) .island-message {
    opacity: 1;
    transform: scale(1);
}

/* 灵动岛悬停效果 */
.dynamic-island:hover {
    transform: translateX(-50%) scale(1.02);
    background: rgba(25, 28, 42, 0.9);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 8px 20px rgba(100, 200, 255, 0.2);
}

/* 灵动岛点击效果 */
.dynamic-island:active {
    transform: translateX(-50%) scale(0.98);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .dynamic-island {
        bottom: 205px;
        height: 40px;
        padding: 0 14px;
        border-radius: 22px;
    }
    
    .dynamic-island.minimized {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        height: 40px;
    }
    
    .message-text {
        font-size: 12px;
        line-height: 40px;
    }
    
    .audio-bar {
        height: 12px;
    }
}

/* 动态灵动岛美化样式代码 结束*/

/* 旧版侧栏/底部「资源笔记」入口与手机灵动岛面板：始终隐藏，仅通过下载按钮/看板娘打开弹窗 */
.notes-section,
.dynamic-island-panel,
#islandPanel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 资源笔记弹窗样式 - 黑白透明磨砂亚克力风格 */
.notes-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    overflow: hidden;
}

.notes-modal.active {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
}

.notes-modal-content {
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    flex-shrink: 0;
}

.notes-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-search-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.notes-search-toggle:hover {
    background: rgba(74, 144, 226, 0.3);
    color: rgba(74, 144, 226, 0.9);
    transform: scale(1.1);
}

.notes-search-toggle.active {
    background: rgba(74, 144, 226, 0.3);
    color: rgba(74, 144, 226, 0.9);
}

.notes-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.notes-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 资源笔记弹窗搜索框 - 顶部居中 */
.notes-search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.notes-search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.notes-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.notes-search-box input:focus {
    border-color: rgba(74, 144, 226, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.notes-search-box button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(74, 144, 226, 0.7);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.notes-search-box button:hover {
    background: rgba(74, 144, 226, 0.9);
}

/* 筛选项 */
.notes-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.notes-filter-bar select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.notes-filter-bar select:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.notes-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.notes-filter select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(20, 20, 25, 0.9);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.notes-filter select:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(30, 30, 35, 0.95);
}

.notes-filter select option {
    background: rgba(30, 30, 35, 0.98);
    color: rgba(255, 255, 255, 0.95);
}

.notes-timeline {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.notes-timeline::-webkit-scrollbar {
    width: 6px;
}

.notes-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.notes-timeline::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.notes-timeline::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.notes-date-group {
    margin-bottom: 24px;
}

.notes-date {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notes-resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.notes-resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.25s ease;
}

.notes-resource-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.notes-resource-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notes-resource-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 10px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-left: 10px;
}

.notes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.notes-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
    stroke: rgba(255, 255, 255, 0.5);
}

.notes-empty p {
    font-size: 14px;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .notes-modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 20px;
    }
    
    .notes-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notes-filter {
        justify-content: flex-start;
    }
    
    .notes-filter select {
        flex: 1;
        font-size: 12px;
        padding: 6px 8px;
        width: auto;
    }
    
    .notes-keyword-search.expanded {
        max-width: 100%;
        width: 100%;
    }
    
    .notes-resource-list {
        grid-template-columns: 1fr;
    }
}

/* 资源笔记分页样式 */
.notes-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notes-pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notes-pagination-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.notes-pagination-btn:hover:not(:disabled) {
    border-color: rgba(74, 144, 226, 0.5);
    background: rgba(74, 144, 226, 0.2);
}

.notes-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.notes-pagination-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
}

/* 响应式分页样式 */
@media (max-width: 768px) {
    .notes-pagination-controls {
        gap: 8px;
    }
    
    .notes-pagination-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .notes-pagination-info {
        font-size: 12px;
        margin: 0 4px;
    }
}
