@font-face {
    font-family: "a";
    /*中文字体*/
    src: url();
    font-display: swap;
}

/* 游戏模态框样式 */
.modal, .games-modal {
    position: fixed;
    display: none;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.7);
    z-index: 99999;
    align-items: center;
    top: 0;
    justify-content: center;
    flex-direction: column;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.modal.active, .games-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content, .games-modal-content {
    z-index: 100000;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--item_bg_color);
    border-radius: 15px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    -moz-backdrop-filter: blur(var(--card_filter));
    -o-backdrop-filter: blur(var(--card_filter));
    display: flex;
    flex-direction: column;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-content h2, .games-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--item_left_title_color);
    text-align: center;
    margin-top: 20px;
}

.close, .games-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--main_text_color);
    font-size: 20px;
    line-height: 1;
}

.close:hover, .games-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.games-grid, .games-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.game-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.game-item:hover {
    background: var(--item_hover_color);
    transform: translateY(-3px);
    border-color: var(--purple_text_color);
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--item_left_title_color);
    margin-bottom: 5px;
}

.game-desc {
    font-size: 12px;
    color: var(--item_left_text_color);
}

/* 游戏容器样式 */
.game-container {
    position: fixed;
    display: none;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    background: rgba(20, 20, 20, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

#gameContent {
    background: var(--item_bg_color);
    border-radius: 15px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    -moz-backdrop-filter: blur(var(--card_filter));
    -o-backdrop-filter: blur(var(--card_filter));
    padding: 20px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-game {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--main_text_color);
    font-size: 20px;
    line-height: 1;
    z-index: 10;
}

.close-game:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

/* 各游戏样式 */
.game2048, .dino-game, .minesweeper-game, .tetris-game {
    text-align: center;
}

.game2048-header, .dino-game-header, .minesweeper-header, .tetris-header {
    margin-bottom: 20px;
    text-align: center;
}

.game2048-header h3, .dino-game-header h3, .minesweeper-header h3, .tetris-header h3 {
    color: var(--item_left_title_color);
    font-size: 24px;
    margin-bottom: 10px;
}

/* 游戏操作说明样式 */
.game-instruction {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--item_left_text_color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.game-instruction p {
    margin: 0;
}

/* 移动设备按钮样式 */
.mobile-btn {
    background: var(--purple_text_color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    min-width: 80px;
}

.mobile-btn:hover {
    background: var(--item_hover_color);
    transform: translateY(-2px);
}

/* 大型移动设备按钮样式 - 适用于俄罗斯方块等需要更大触摸区域的游戏 */
.mobile-btn-large {
    background: var(--purple_text_color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    min-width: 60px;
    min-height: 60px;
}

.mobile-btn-large:hover {
    background: var(--item_hover_color);
    transform: translateY(-2px);
}

.game2048-score, .dino-score, .tetris-stats {
    color: var(--item_left_text_color);
    font-size: 18px;
    margin-bottom: 15px;
}

.minesweeper-stats {
    color: var(--item_left_text_color);
    margin-bottom: 15px;
}

.grid2048 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    background: #bbada0;
    padding: 15px;
    border-radius: 10px;
    margin: 0 auto 20px;
    width: 320px;
    height: 320px;
}

.tile2048 {
    background: #cdc1b4;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #776e65;
    transition: all 0.2s ease;
}

.tile2048-2 {
    background: #eee4da;
}

.tile2048-4 {
    background: #ede0c8;
}

.tile2048-8 {
    background: #f2b179;
    color: white;
}

.tile2048-16 {
    background: #f59563;
    color: white;
}

.tile2048-32 {
    background: #f67c5f;
    color: white;
}

.tile2048-64 {
    background: #f65e3b;
    color: white;
}

.tile2048-128 {
    background: #edcf72;
    color: white;
    font-size: 20px;
}

.tile2048-256 {
    background: #edcc61;
    color: white;
    font-size: 20px;
}

.tile2048-512 {
    background: #edc850;
    color: white;
    font-size: 20px;
}

.tile2048-1024 {
    background: #edc53f;
    color: white;
    font-size: 16px;
}

.tile2048-2048 {
    background: #edc22e;
    color: white;
    font-size: 16px;
}

#dinoCanvas, #tetrisCanvas {
    display: block;
    margin: 0 auto 20px;
    background: #f7f7f7;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.minesweeper-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    background: #999;
    padding: 5px;
    border-radius: 5px;
    margin: 0 auto 20px;
    width: 320px;
    height: 320px;
}

.minesweeper-cell {
    background: #c0c0c0;
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.minesweeper-cell.revealed {
    background: #e0e0e0;
    border: 1px solid #999;
    cursor: default;
}

.minesweeper-cell.mine {
    background: #ff6b6b;
}

.minesweeper-cell.flag {
    background: #4ecdc4;
}

.game2048-controls, .dino-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.game2048-controls button, .dino-controls button, .minesweeper-header button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: var(--button_bg_color);
    color: var(--text_color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.game2048-controls button:hover, .dino-controls button:hover, .minesweeper-header button:hover {
    background-color: var(--button_hover_color);
}

/* 俄罗斯方块游戏控制按钮样式 */
.tetris-controls {
    margin-top: 20px;
    text-align: center;
}

.tetris-controls .control-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.tetris-controls .control-btn {
    font-size: 18px;
    padding: 10px 20px;
    margin: 0 5px;
    background: var(--purple_text_color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tetris-controls .control-btn:hover {
    background: var(--button_hover_color);
    transform: scale(1.05);
}

/* 移动设备上增大按钮尺寸 */
@media (max-width: 768px) {
    .tetris-controls {
        width: 100%;
    }
    
    .tetris-controls .control-btn {
        font-size: 24px;
        padding: 15px 30px;
        margin: 0 8px;
        min-width: 70px;
        height: 70px;
    }
    
    .tetris-controls .control-row {
        margin-bottom: 15px;
    }
}

.next-piece {
    margin: 10px auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zyyo-main {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .zyyo-right {
        padding: 15px 10px;
    }
    
    .welcome {
        font-size: 40px;
        text-align: center;
    }
    
    .projectList {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        justify-content: center;
    }
    
    .projectItem {
        width: 100%;
        height: auto;
        min-height: 85px;
        flex-direction: column;
        text-align: center;
        margin: 0;
        padding: 12px;
    }
    
    .projectItemLeft {
        width: 100%;
        order: 2;
    }
    
    .projectItemRight {
        width: 100%;
        order: 1;
        margin-bottom: 8px;
    }
    
    .projectItemRight img {
        height: 35px;
        width: 35px;
    }
    
    .projectItemLeft h1 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .projectItemLeft p {
        font-size: 11px;
        margin-top: 5px;
    }
    
    /* 优化触摸体验 */
    .projectItem:active {
        transform: scale(0.95);
        background-color: var(--item_hover_color);
    }
    
    .iconContainer {
        justify-content: center;
    }
    
    /* 热搜组件适配 */
    .hotsearch-container {
        margin-top: 30px;
        padding: 15px;
    }
}

/* 小屏幕设备适配 */
@media (max-width: 480px) {
    .projectList {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .projectItem {
        padding: 10px;
        min-height: 80px;
    }
    
    .welcome {
        font-size: 32px;
    }
    
    .title {
        font-size: 22px;
        margin: 15px 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;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* 移除移动设备上的点击高亮 */
}

/* 确保视口设置正确 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* 防止iOS自动调整字体大小 */
    scroll-behavior: smooth;
}

/* 移动端适配 - 添加viewport相关设置 */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* 在小屏幕上略微减小字体大小 */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px; /* 在更小屏幕上进一步减小字体大小 */
    }
}

/* 优化移动端触摸交互 */
button, a, .projectItem, .game-item {
    touch-action: manipulation; /* 防止双击缩放 */
}

/* 优化移动设备上的滚动体验 */
body {
    -webkit-overflow-scrolling: touch; /* 启用平滑滚动 */
}

/* 为移动设备优化欢迎标题 */
@media (max-width: 768px) {
    .welcome {
        font-size: 8vw;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .welcome {
        font-size: 10vw;
        margin: 15px 0;
    }
}

/* 改进图标容器在移动端的显示 */
@media (max-width: 768px) {
    .iconContainer {
        height: 50px;
        margin-top: 15px;
        padding-bottom: 5px;
    }
    
    .iconItem {
        width: 45px;
        height: 40px;
        margin-left: 8px;
    }
    
    .iconItem i, .iconItem svg {
        width: 20px;
        height: 20px;
    }
}

/* 改进项目列表在移动端的显示 */
@media (max-width: 768px) {
    .projectList {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 0 -5px;
    }
    
    .projectItem {
        width: calc(100% - 10px);
        margin: 5px;
        height: 90px;
        padding: 12px;
    }
    
    .projectItemLeft h1 {
        font-size: 16px;
    }
    
    .projectItemLeft p {
        font-size: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .projectList {
        grid-template-columns: 1fr;
    }
    
    .projectItem {
        width: calc(100% - 10px);
        height: 85px;
        padding: 10px;
    }
}

/* 优化热搜列表在移动端的显示 */
@media (max-width: 768px) {
    .hotsearch-container {
        margin-top: 30px;
        padding: 15px;
    }
    
    .hotsearch-list {
        gap: 8px;
        margin-top: 12px;
    }
    
    .hotsearch-item {
        padding: 10px;
        font-size: 14px;
    }
    
    .hot-rank {
        width: 24px;
        height: 24px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .hot-title {
        font-size: 14px;
    }
    
    .hot-tag {
        font-size: 11px;
        padding: 1px 6px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .hotsearch-item {
        padding: 8px;
    }
    
    .hot-rank {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .hot-title {
        font-size: 13px;
    }
}

/* 优化游戏模态框在移动端的显示 */
@media (max-width: 768px) {
    .modal, .game-container {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
        max-width: none;
        margin: 0;
        height: 90vh;
        max-height: none;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .game-item {
        padding: 10px;
        min-height: 120px;
    }
    
    .game-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-top: 15px;
    }
}

/* 优化游戏画布在移动端的显示 */
@media (max-width: 768px) {
    #gameContent {
        width: 100%;
        max-width: none;
        padding: 15px;
        margin: 0;
    }
    
    #dinoCanvas, #tetrisCanvas {
        max-width: 100%;
        height: auto;
    }
    
    .grid2048 {
        width: 280px;
        height: 280px;
        gap: 8px;
        padding: 12px;
    }
    
    .minesweeper-grid {
        width: 280px;
        height: 280px;
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .grid2048 {
        width: 240px;
        height: 240px;
        gap: 6px;
        padding: 10px;
    }
    
    .tile2048 {
        font-size: 20px;
    }
    
    .minesweeper-grid {
        width: 240px;
        height: 240px;
    }
    
    .minesweeper-cell {
        font-size: 12px;
    }
}

/* 优化游戏控制按钮在移动端的触摸体验 */
@media (max-width: 768px) {
    .game2048-controls, .dino-controls, .minesweeper-header button, .tetris-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-top: 15px;
    }
    
    .game2048-controls button, .dino-controls button, .minesweeper-header button, .tetris-controls .control-btn {
        padding: 12px 24px;
        font-size: 16px;
        min-width: 90px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .tetris-controls .control-btn {
        padding: 15px 30px;
        margin: 0 8px;
        min-width: 80px;
        height: 70px;
        font-size: 20px;
    }
    
    .tetris-controls .control-row {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .game2048-controls button, .dino-controls button, .minesweeper-header button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 80px;
        width: calc(50% - 5px);
    }
    
    .tetris-controls .control-btn {
        padding: 12px 24px;
        min-width: 70px;
        height: 60px;
        font-size: 18px;
    }
}

/* 优化页脚在移动端的显示 */
@media (max-width: 768px) {
    footer {
        position: relative;
        margin-top: 30px;
        padding: 15px;
        font-size: 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 添加横向滚动容器的样式，确保在移动设备上可以水平滚动 */
.horizontal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* 添加触摸反馈效果 */
.touch-feedback:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 为移动设备添加滑动事件支持 */
@media (hover: none) and (pointer: coarse) {
    /* 这里可以添加专门针对触摸屏的样式 */
    .projectItem:hover {
        transform: none; /* 移除悬停效果，避免在触摸设备上产生冲突 */
    }
    
    .iconItem:hover {
        width: 49px; /* 恢复原始宽度 */
        transform: none; /* 移除悬停效果 */
    }
    
    .iconItem:hover .iconTip {
        display: none; /* 隐藏提示文本 */
    }
}

/* 优化背景图片在移动设备上的显示 */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* 改为滚动而不是固定，避免移动设备上的性能问题 */
    }
}


@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;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

a:hover,
a:link,
a:visited,
a:active,
a:focus {
    text-decoration: none;
    outline: none;
    border: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* 设置滚动条样式 */
::-webkit-scrollbar {
    width: 0px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main_text_color, #000000);
    border-radius: 8px;
    height: 20%;
}

::-webkit-scrollbar-track {
    background-color: var(--main_bg_color, linear-gradient(50deg, #a2d0ff, #ffffff));
}



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: 0px;
    --back_filter_color: #000000;
    --fill:#ffffff;
}






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);
    animation: rainbowBackground 20s ease infinite;

}

@keyframes rainbowBackground {
    0% {
        background-position: 0% 50%;
        background-size: 200% 200%;
        filter: hue-rotate(0deg) saturate(120%);
    }
    25% {
        background-position: 100% 50%;
        background-size: 250% 250%;
        filter: hue-rotate(90deg) saturate(150%);
    }
    50% {
        background-position: 50% 100%;
        background-size: 300% 300%;
        filter: hue-rotate(180deg) saturate(180%);
    }
    75% {
        background-position: 0% 100%;
        background-size: 250% 250%;
        filter: hue-rotate(270deg) saturate(150%);
    }
    100% {
        background-position: 0% 50%;
        background-size: 200% 200%;
        filter: hue-rotate(360deg) saturate(120%);
    }
}

#zyyo-loading {
    background: radial-gradient(white, #d8eaff);
    background-size: 100%;
    background-position: center;

    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 999999;
    margin-top: 0px;
    top: 0px;
    pointer-events: none;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}



#zyyo-loading-center {
    height: 150px;
    width: 150px;
    position: relative;
    border-radius: 50%;
    background: #472eff;

    animation: zoom 1s linear infinite;
}

@keyframes zoom {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}




.zyyo-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;
   
}

.zyyo-main {
    width: 100%;
    margin: 0 auto;
    transition: transform 0.5s ease;
    max-width: 1150px;
    position: relative;
    display: flex;
    flex-direction: row;
}


.zyyo-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;
}


.zyyo-left::-webkit-scrollbar {
    display: none;
}


.logo {
    flex-shrink: 0;
    width: 90%;
    position: relative;
    aspect-ratio: 1/1;
    margin-top: 50px;
    background-size: cover;
    border-radius: 50%;
}



.left-div {
    flex-shrink: 0;
    width: 100%;
    border-radius: 13px;
    margin-top: 15px;
    padding: 20px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
}

.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-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    margin: 0px 5px 5px 0;
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
    background: var(--left_tag_item);
}

#line {
    width: 100%;
    height: 200px;
    font-size: 13px;
    padding-left: 8px;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

#line li {
    list-style: none;
    position: relative;
    padding: 15px 0px 0px 15px;
    border-left: 2px solid #d5d5d5;
    border-radius: 0;
    scroll-snap-align: end;
    color: var(--main_text_color);
}



.focus {
    width: 8px;
    height: 8px;
    border-radius: 22px;
    background-color: rgb(255 255 255);
    border: 2px solid #fff;
    position: absolute;
    left: -5px;
    top: 50%;
}

#line li:first-child .focus:first-child {
    background-color: #aaffcd;
    animation: focus 1.8s ease infinite;
}

#line::-webkit-scrollbar {
    display: none;
}



.zyyo-right {
    width: 100%;
    display: flex;
    padding: 20px;
  position: relative;
    padding-bottom: 50px;
    flex-direction: column;
}
.welcome {

    font-size: 65px;
    font-weight: 800;
    margin: 20px 0;
}

.index-logo {
    flex-shrink: 0;
    width: 40%;
    margin-top: 30px;
    position: relative;
    max-width: 200px;
    aspect-ratio: 1/1;
    background-size: cover;
    border-radius: 50%;
    border: 0.5px solid #ffffff;
}
.description {

    font-size: 20px;
    margin-top: 7px;
}



.gradientText {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200%;
    background-position: 0%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    animation: backgroundSizeAnimation 10s infinite linear;
    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;
    overflow-x: scroll;
    margin-top: 20px;

}

.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;
    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);
}

.tanChiShe {
    width: 85%;
}

.tanChiShe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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: flex;
    flex-wrap: wrap;
}

.projectItem {
    margin: 7px;
    display: flex;
    background-color: var(--item_bg_color);
    border-radius: 8px;
    padding: 15px;
    height: 95px;
    width: calc(25% - 15px);
    backdrop-filter: blur(var(--card_filter));-webkit-backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));-webkit-backdrop-filter: blur(var(--card_filter));
    transition: opacity 0.3s ease, background-color 0.3s ease, border 0.3s ease, transform 0.2s ease;


}

.projectItem {
    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));
    transition: opacity 0.5s ease, background-color 0.2s ease, border 0.2s ease, transform 0.3s ease;

}


.projectItem:hover {
    box-shadow: 0 8px 16px -4px #2c2d300c;
    transform: translateY(-2px);

}

.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;

}

.skill {
    padding: 25px;
    width: 100%;
}

.skill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skill #skillWap {
    display: none;
}

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;
}

/* 热搜列表样式 */
.hotsearch-container {
    margin-top: 40px;
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    background: var(--item_bg_color);
    transition: all 0.3s ease;
}

.search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#searchInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--main_text_color);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--purple_text_color);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchEngine {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--main_text_color);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 增强文字显示效果 */
    opacity: 1;
    text-shadow: 0 0 1px var(--main_text_color);
}

#searchEngine:hover {
    background: rgba(255, 255, 255, 0.1);
    /* 鼠标悬停时进一步增强效果 */
    color: white;
}

/* 为下拉菜单选项设置样式 */
#searchEngine option {
    background-color: var(--item_bg_color);
    color: var(--main_text_color);
    font-weight: 500;
    padding: 10px;
}

#searchButton {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: var(--purple_text_color);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#searchButton:hover {
    background: var(--item_hover_color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(116, 123, 255, 0.3);
}

.hotsearch-container:hover {
    background: var(--item_hover_color);
}

.hotsearch-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.hotsearch-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
}

.hotsearch-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.hot-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    color: var(--main_text_color);
    background: var(--text_bg_color);
}

.hot-rank.hot-top {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.hot-1 .hot-rank {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
}

.hot-2 .hot-rank {
    background: linear-gradient(135deg, #ff3e3e, #ff6b6b);
}

.hot-3 .hot-rank {
    background: linear-gradient(135deg, #ffa502, #ffd700);
}

.hot-title {
    flex: 1;
    font-size: 15px;
    color: var(--item_left_title_color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-tag {
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    background: var(--purple_text_color);
}

.hot-tag.hot-new {
    background: linear-gradient(135deg, #1e90ff, #6495ed);
}

.hot-tag.hot-hot {
    background: linear-gradient(135deg, #ff3e3e, #ff6b6b);
}

/* 响应式设计 */
@media (max-width: 800px) {
    .hotsearch-container {
        margin-top: 30px;
        padding: 15px;
    }
    
    .hotsearch-item {
        padding: 10px;
    }
    
    .hot-rank {
        width: 24px;
        height: 24px;
        font-size: 14px;
        margin-right: 12px;
    }
    
    .hot-title {
        font-size: 14px;
    }
    
    .hot-tag {
        font-size: 11px;
        padding: 1px 6px;
    }
    
    /* 响应式搜索框样式 */
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    #searchInput,
    #searchEngine,
    #searchButton {
        width: 100%;
    }
    
    #searchEngine {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    #searchButton {
        padding: 9px 15px;
        font-size: 13px;
    }
}

@media (min-width: 800px) {

    .index-logo {
        display: none;
    }
}

@media (max-width: 1150px) {
    .a {
        width: calc(50% - 20px);
    }
.projectItem{
    margin: 10px;
}
    .b {

        width: calc(50% - 20px);


    }
}

@media (max-width: 800px) {
    .zyyo-left {
        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);
    }



    .zyyo-right {
        width: 100%;
    }

    .tanChiShe {
        width: 100%;
    }

    .description {
        font-size: 4vw;
    }

    .welcome {
        font-size: 10vw;
        margin: 2vw 0;

    }
    .iconContainer {
  
     margin-top: 4vw;

}
.projectItem{
    padding: 10px;
}
    .projectItemLeft p {
        font-size: 13px;
    }

    .projectItemLeft h1 {

        font-size: 18px;
    }

    .projectItem:hover h1 {

        font-size: 20px;

    }

    .skill #skillWap {
        display: block;
    }

    .skill #skillPc {
        display: none;
    }













}





.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);

}









.onoffswitch {
    position: relative;
    width: 38px;
    height: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    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%;
}

/* 移动端游戏响应式调整 */
@media (max-width: 768px) {
    #gameContent {
        max-width: 95%;
        max-height: 95vh;
        padding: 15px;
    }
    
    /* 小恐龙游戏适配 */
    #dinoCanvas {
        width: 100%;
        height: 180px;
        max-width: 500px;
    }
    
    /* 俄罗斯方块游戏适配 */
    #tetrisCanvas {
        width: 100%;
        max-width: 280px;
        height: auto;
    }
    
    .tetris-controls {
        margin-top: 10px;
    }
    
    .control-row {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    /* 扫雷游戏适配 */
    .minesweeper-grid {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .minesweeper-cell {
        aspect-ratio: 1/1;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 2048游戏适配 */
    .grid2048 {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* 小屏幕手机特殊适配 */
@media (max-width: 480px) {
    .game-instruction {
        font-size: 12px;
        padding: 8px;
    }
    
    .mobile-btn {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 70px;
    }
    
    .mobile-btn-large {
        padding: 12px 16px;
        font-size: 18px;
        min-width: 50px;
        min-height: 50px;
    }
    
    .tetris-header h3, .dino-game-header h3, .minesweeper-header h3 {
        font-size: 20px;
    }
}

/* 移动设备适配 - 按钮排列优化 */
@media screen and (max-width: 768px) {
  .zyyo-main {
    flex-direction: column;
    padding: 0 10px;
  }
  
  .zyyo-right {
    padding: 15px 10px;
  }
  
  .welcome {
    font-size: 40px;
    text-align: center;
  }
  
  .projectList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    justify-content: center;
  }
  
  .projectItem {
    width: 100%;
    height: auto;
    min-height: 85px;
    flex-direction: column;
    text-align: center;
    margin: 0;
    padding: 12px;
  }
  
  .projectItemLeft {
    width: 100%;
    order: 2;
  }
  
  .projectItemRight {
    width: 100%;
    order: 1;
    margin-bottom: 8px;
  }
  
  .projectItemRight img {
    height: 35px;
    width: 35px;
  }
  
  .projectItemLeft h1 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .projectItemLeft p {
    font-size: 11px;
    margin-top: 5px;
  }
  
  /* 优化触摸体验 */
  .projectItem:active {
    transform: scale(0.95);
    background-color: var(--item_hover_color);
  }
  
  .iconContainer {
    justify-content: center;
  }
  
  /* 热搜组件适配 */
  .hotsearch-container {
    margin-top: 30px;
    padding: 15px;
  }
}

/* 小屏幕设备适配 */
@media screen and (max-width: 480px) {
  .projectList {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .projectItem {
    padding: 10px;
    min-height: 80px;
  }
  
  .welcome {
    font-size: 32px;
  }
  
  .title {
    font-size: 22px;
    margin: 15px 0;
  }
}

/* 实验室项目样式 */
.lab-project {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-color-1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-info {
    text-align: center;
    font-size: 16px;
    color: var(--text-color-2);
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bg-color-2);
    border-radius: 8px;
}

.project-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 20px;
}

.project-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .lab-project {
        padding: 15px;
    }
    
    .project-content {
        min-height: 250px;
    }
    
    .project-placeholder svg {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 480px) {
    .lab-project {
        padding: 10px;
    }
    
    .project-content {
        min-height: 200px;
    }
    
    .project-placeholder svg {
        width: 80px;
        height: 80px;
    }
}

.next-piece {
    margin: 10px auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zyyo-main {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .zyyo-right {
        padding: 15px 10px;
    }
    
    .welcome {
        font-size: 40px;
        text-align: center;
    }
    
    .projectList {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        justify-content: center;
    }
    
    .projectItem {
        width: 100%;
        height: auto;
        min-height: 85px;
        flex-direction: column;
        text-align: center;
        margin: 0;
        padding: 12px;
    }
    
    .projectItemLeft {
        width: 100%;
        order: 2;
    }
    
    .projectItemRight {
        width: 100%;
        order: 1;
        margin-bottom: 8px;
    }
    
    .projectItemRight img {
        height: 35px;
        width: 35px;
    }
    
    .projectItemLeft h1 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .projectItemLeft p {
        font-size: 11px;
        margin-top: 5px;
    }
    
    /* 优化触摸体验 */
    .projectItem:active {
        transform: scale(0.95);
        background-color: var(--item_hover_color);
    }
    
    .iconContainer {
        justify-content: center;
    }
    
    /* 热搜组件适配 */
    .hotsearch-container {
        margin-top: 30px;
        padding: 15px;
    }
}

/* 小屏幕设备适配 */
@media (max-width: 480px) {
    .projectList {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .projectItem {
        padding: 10px;
        min-height: 80px;
    }
    
    .welcome {
        font-size: 32px;
    }
    
    .title {
        font-size: 22px;
        margin: 15px 0;
    }
}