    * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        @font-face {
            font-family: "Jolly";
            src: url('https://www.xiaozhangyu.vip/fonts/jollyregular.woff') format('woff');
        }

        @font-face {
            font-family: "Jolly";
            src: url('https://www.xiaozhangyu.vip/fonts/jollybold.woff') format('woff');
            font-weight: bold;
        }

        @font-face {
            font-family: "Jolly";
            src: url('https://www.xiaozhangyu.vip/fonts/jollyitalic.woff') format('woff');
            font-style: italic;
        }

        @font-face {
            font-family: "h5p";
            src: url('https://www.xiaozhangyu.vip/h5p/h5p-php-library/fonts/h5p-core-23.woff') format('woff');
        }

        @font-face {
            font-family: "h5p";
            src: url('https://www.xiaozhangyu.vip/h5p/h5p-php-library/fonts/h5p-core-23.woff') format('woff');
            font-weight: bold;
        }

        @font-face {
            font-family: "h5p";
            src: url('https://www.xiaozhangyu.vip/h5p/h5p-php-library/fonts/h5p-core-23.woff') format('woff');
            font-style: italic;
        }

        .copyright {
            text-align: center;
            color: #CECECE;
            font-size: 18px;
            margin-bottom: -20px;
            font-family: Jolly;
        }

        body {
            font-family: Jolly, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1DB799, #26B88B, #2FB97C);
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 15px;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            overflow-x: hidden;
        }

        /* 修改顶部菜单样式 */
        .top-navbar {
            background: rgba(255, 255, 255, 0.2);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            margin-bottom: 20px;
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            position: fixed;
            top: 15px;
            left: 15px;
            right: 15px;
            z-index: 1000;
            transition: all 0.3s ease;
        }

  /* 添加CSS禁止缩放和选择 */
        * {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        img {
            -webkit-user-drag: none;
            -khtml-user-drag: none;
            -moz-user-drag: none;
            -o-user-drag: none;
            user-drag: none;
        }

        /* 滚动时的竖排样式 */
        .top-navbar.scrolled {
            flex-direction: column;
            width: auto;
            right: 15px;
            left: auto;
            padding: 10px;
            align-items: flex-end;
            gap: 5px;
        }

        .top-navbar.scrolled .nav-left, 
        .top-navbar.scrolled .nav-right {
            flex-direction: column;
            gap: 5px;
            width: 100%;
        }

        .top-navbar.scrolled .nav-left a, 
        .top-navbar.scrolled .nav-right a {
            justify-content: flex-end;
            padding: 8px 10px;
        }

        .top-navbar.scrolled .nav-left a span, 
        .top-navbar.scrolled .nav-right a span {
            display: none;
        }

        .top-navbar.scrolled .nav-left {
            order: 2;
        }

        .top-navbar.scrolled .nav-right {
            order: 1;
        }

        .nav-left, .nav-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-left a, .nav-right a {
            color: #f0f8ff;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
        }

        .nav-left a:hover, .nav-right a:hover {
            color: #ffd700;
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        .nav-icon {
            font-size: 22px;
            width: 20px;
            text-align: center;
        }

        /* 游戏容器样式调整 */
        .game-container {
            background-color: hsl(147deg 30.77% 84.71%);
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.3);
            overflow: hidden;
            margin-top: 80px;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .h5p-task-description {
            font-family: 'Jolly Lodger', Arial, sans-serif;
            color: #1a73d9;
            font-size: 1.125em;
            line-height: 1.125em;
            padding: 1em;
            border-bottom: 1px solid rgba(221, 228, 234, 0.5);
            background: rgba(255, 255, 255, 0.7);
            text-align: center;
            display: none;
        }

        .images-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-bottom: 25px;
            padding: 20px;
            background-color: rgba(70, 180, 125, 0.2);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
        }

        .card {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* 优化图片显示样式 */
        .card-image-container {
            width: 100%;
            height: 70vh;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
            cursor: pointer;
        }

        .card-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s;
        }

        .card-image:hover {
            transform: scale(1.02);
        }

        /* 隐藏卡片名称容器 */
        .card-name-container {
            display: none;
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
            padding: 0 1em 1em;
            flex-wrap: wrap;
        }

        .action-btn {
            padding: 15px 30px;
            font-size: 1.5rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            display: flex;
            justify-content: center;
            align-items: center;
            user-select: none;
            min-width: 150px;
        }

        .action-btn:hover:not(.disabled) {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
        }

        .action-btn:active {
            transform: translateY(1px);
        }

        .action-btn.disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .know-btn {
            background-color: #1DB799;
            color: white;
        }

        .dont-know-btn {
            background-color: #e74c3c;
            color: white;
        }

        .nav-btn {
            background-color: #1a7a6d;
            color: white;
            padding: 10px 20px;
            font-size: 1.2rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            margin: 5px;
        }

        .feedback {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(255, 255, 255, 0.9);
            padding: 20px 40px;
            border-radius: 15px;
            font-size: 2rem;
            font-weight: bold;
            z-index: 10;
            display: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .positive-feedback {
            color: #1DB799;
            border: 3px solid #1DB799;
        }

        .negative-feedback {
            color: #e74c3c;
            border: 3px solid #e74c3c;
        }

        .thumbnail-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(25, 156, 118, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

/* 修改缩略图容器的关闭按钮位置 */
.thumbnail-container {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    width: 80%;
    position: relative; /* 添加相对定位 */
}

#close-thumbnails {
    position: sticky; /* 使用sticky定位 */
    top: -40px; /* 向上溢出30px */
    right: -20px; /* 向右溢出30px */
    margin-top: 0 !important;
    background-color: #1a7a6d;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1002; /* 更高的z-index确保在最上层 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    float: right; /* 确保在右上角 */
    margin-right: -20px; /* 向右溢出 */
    margin-top: -40px; /* 向上溢出 */
}

#close-thumbnails:hover {
    background-color: #1DB799;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    #close-thumbnails {
        margin-right: -20px;
        margin-top: -20px;
        padding: 10px 16px;
        font-size: 1.1rem;
    }
}

        .thumbnail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .thumbnail-item {
            cursor: pointer;
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s;
            border: 3px solid transparent;
        }

        .thumbnail-item:hover {
            transform: scale(1.05);
        }

        .thumbnail-item.active {
         /*   border-color: #1a7a6d;*/
        }

        .thumbnail-image {
            width: 100%;
            height: 100px;
            object-fit: cover;
        }

        .completion-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .completion-container {
            background-color: white;
            padding: 30px;
            border-radius: 15px;
            max-width: 500px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .completion-title {
            font-size: 2rem;
            color: #1a7a6d;
            margin-bottom: 20px;
        }

        .completion-stats {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }

        .completion-stat {
            padding: 15px 20px;
            border-radius: 10px;
            color: white;
            font-size: 1.2rem;
        }

        .dots-container {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 5.5px;
        }

        .dot {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background-color: #C0C0C0;
            cursor: default;
            transition: all 0.3s;
            pointer-events: none;
        }

        .dot.active {
            background-color: #FFA500;
            transform: scale(1.3);
            pointer-events: none;
        }

        .dot.learned {
            background-color: #1DB799;
            pointer-events: auto;
            cursor: pointer;
        }
/* 新增：不认识的标记点变成红色 */
.dot.unknown {
    background-color: #e74c3c;
    pointer-events: auto;
    cursor: pointer;
}
        .enlarged-view {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(25, 156, 118, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .enlarged-container {
            background-color: white;
            border-radius: 15px;
            max-width: 90%;
            max-height: 90%;
            overflow: hidden;
            width: 80%;
            text-align: center;
            position: relative;
        }

        .enlarged-image {
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
            margin: 20px auto;
            display: block;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .enlarged-name-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .enlarged-sound-btn {
            background-color: #1a7a6d;
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        .enlarged-nav {
            display: flex;
            justify-content: space-between;
            position: absolute;
            top: 50%;
            width: 100%;
            transform: translateY(-50%);
            padding: 0 20px;
        }

        .enlarged-nav-btn {
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s;
            margin-right: -15px;
            margin-left: -15px;
        }

        .enlarged-nav-btn:hover {
            transform: scale(1.1);
        }

        .enlarged-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
			z-index: 999;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        h1 {
            color: #1a7a6d;
            margin-bottom: 0;
            font-size: 1.8rem;
            flex: 1;
            text-align: center;
        }

        .counter {
            font-size: 1.2rem;
            color: #666;
            white-space: nowrap;
            display: none;
        }

        /* 庆祝动画样式 */
        .celebration-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
        }

        .celebration-container {
            background-color: white;
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            max-width: 90%;
            max-height: 90%;
            position: relative;
            overflow: hidden;
        }

        .celebration-title {
            font-size: 3rem;
            color: #FFD700;
            margin-bottom: 20px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            animation: bounce 1s infinite alternate;
        }

        .celebration-message {
            font-size: 1.8rem;
            color: #333;
            margin-bottom: 30px;
        }

        .celebration-stars {
            font-size: 4rem;
            color: #FFD700;
            margin: 20px 0;
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            z-index: 301;
        }

        @keyframes bounce {
            from { transform: scale(1); }
            to { transform: scale(1.1); }
        }
  /* 翻页按钮样式 */
        .page-nav-buttons {
            position: fixed;
            bottom: 30px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            padding: 0 30px;
            z-index: 999;
            pointer-events: none;
        }

        .page-nav-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #fff;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            pointer-events: auto;
            background: linear-gradient(145deg, #47b47d, #3a9c69);
        }

        .page-nav-btn:hover {
            opacity: 1;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        }

        .page-nav-btn a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        .page-nav-btn.disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .page-nav-btn.disabled:hover {
            transform: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
        /* 进度条样式 */
        .progress-bar {
            height: 10px;
            background-color: #e0e0e0;
            border-radius: 5px;
            margin: 10px 0;
            overflow: hidden;
            width: 100%;
            display: none;
        }

        .progress {
            height: 100%;
            background-color: #1DB799;
            width: 0%;
            transition: width 0.5s;
            display: none;
        }

        /* 帮助弹窗样式 - 美化后 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: linear-gradient(135deg, #418577, #5ba897);
            padding: 30px;
            border-radius: 18px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: modalFadeIn 0.3s ease-out;
            overflow: hidden;
            font-family: 'Jolly Lodger', sans-serif;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .modal-content h2 {
            color: #ffd700;
            margin-bottom: 15px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.3);
            padding-bottom: 10px;
            text-align: center;
        }

        .modal-content p {
            margin-bottom: 15px;
            line-height: 1.6;
            color: #f0f8ff;
        }

        .modal-content ul {
            margin-left: 20px;
            margin-bottom: 20px;
            color: #f0f8ff;
        }

        .modal-content li {
            margin-bottom: 8px;
        }

        .close-help {
            position: absolute;
            top: -20px;
            right: 20px;
            font-size: 80px;
            cursor: pointer;
            color: #f0f8ff;
            transition: color 0.3s;
            font-family: "Jolly";
        }

        .close-help:hover {
            color: #ffd700;
        }

        /* 横屏模式下的样式调整 */
        @media (max-width: 768px) and (orientation: landscape) {
            .game-container {
                padding: 15px;
            }

            h1 {
                font-size: 1.5rem;
            }

            .action-btn {
                padding: 12px 20px;
                font-size: 1.2rem;
                min-width: 120px;
            }

            .card-image-container {
                height: 65vh;
            }

            .card-name-container {
                margin-top: 15px;
            }

            .controls {
                margin-top: 15px;
                gap: 15px;
            }

            .celebration-title {
                font-size: 2rem;
            }

            .celebration-message {
                font-size: 1.4rem;
            }
        }

        /* 竖屏模式下的样式调整 */
        @media (max-width: 768px) and (orientation: portrait) {
            .game-container {
                padding: 15px;
            }

            h1 {
                font-size: 1.5rem;
            }

            .action-btn {
                padding: 12px 20px;
                font-size: 1.2rem;
                min-width: 120px;
            }

            .card-image-container {
                height: 64vh;
            }

            .controls {
                gap: 15px;
                margin-top: 15px;
            }

            .card-name-container {
                gap: 10px;
                margin-top: 15px;
            }

            .celebration-title {
                font-size: 2.2rem;
            }

            .celebration-message {
                font-size: 1.5rem;
            }
        }

        /* 超小屏幕设备优化 */
        @media (max-width: 480px) {
            .action-btn {
                padding: 10px 15px;
                font-size: 1.1rem;
                min-width: 110px;
            }

            .feedback {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background-color: rgba(255, 255, 255, 0.9);
                padding: 20px 10px;
                border-radius: 15px;
                font-size: 1.2rem;
                font-weight: bold;
                z-index: 10;
                display: none;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            }

            .controls {
                gap: 10px;
            }

            h1 {
                font-size: 1.5rem;
            }

            .card-image-container {
                height: 55vh;
            }

            .card-name-container {
                gap: 8px;
                margin-top: 10px;
            }

            .enlarged-nav-btn {
                border: none;
                border-radius: 50%;
                width: 30px;
                height: 30px;
                font-size: 1.5rem;
                cursor: pointer;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: all 0.3s;
                margin-right: -15px;
                margin-left: -15px;
            }
			.enlarged-container {
    background-color: white;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    width: 100%;
    text-align: center;
    position: relative;
}

            .celebration-container {
                padding: 20px;
            }

            .celebration-title {
                font-size: 1.8rem;
            }

            .celebration-message {
                font-size: 1.2rem;
            }

            .celebration-stars {
                font-size: 3rem;
            }
a#refreshBtn {
        display: none;
}
a#helpBtn{
             display: none;
            }
        }

        /* 移动端样式 */
        @media (max-width: 768px) {
            .images-container {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                margin-bottom: 25px;
                padding: 20px;
                background-color: rgba(70, 180, 125, 0.2);
                border-radius: 12px;
                position: relative;
                overflow: hidden;
            }
		   .page-nav-buttons {
                padding: 0 15px;
                bottom: 20px;
            }

            .page-nav-btn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
			.enlarged-container {
    background-color: white;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    width: 100%;
    text-align: center;
    position: relative;
}

.enlarged-nav{
display: none;
}
        }

        @media (max-width: 480px) {
            .images-container {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                margin-bottom: 25px;
                padding: 20px;
                background-color: rgba(70, 180, 125, 0.2);
                border-radius: 12px;
                position: relative;
                overflow: hidden;
            }
            .dot {
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background-color: #C0C0C0;
                cursor: default;
                transition: all 0.3s;
                pointer-events: none;
            }
            .dots-container {
                display: flex;
                justify-content: center;
                margin-top: 20px;
                gap: 1.5px;
            }
	 .page-nav-buttons {
                padding: 0 10px;
                bottom: 15px;
            }

            .page-nav-btn {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
a#refreshBtn {
        display: none;
}
a#helpBtn{
             display: none;
            }
.enlarged-nav{
display: none;
}

        }

 
		
		/* 图片滑动动画 - 优化版 */
.slide-left {
    animation: slideLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right {
    animation: slideRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideLeft {
    0% { 
        transform: translateX(100%) scale(0.95);
        opacity: 0;
        filter: blur(4px);
    }
    50% {
        transform: translateX(50%) scale(0.98);
        opacity: 0.5;
        filter: blur(2px);
    }
    100% { 
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slideRight {
    0% { 
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
        filter: blur(4px);
    }
    50% {
        transform: translateX(-50%) scale(0.98);
        opacity: 0.5;
        filter: blur(2px);
    }
    100% { 
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* 添加连续滑动效果 */
.enlarged-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: transform, opacity;
}

/* 触摸滑动反馈 */
.enlarged-image:active {
    transform: scale(0.98);
}

/* 滑动指示器 */
.slide-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.slide-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* 滑动提示 */
.swipe-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    animation: fadeInOut 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 优化触摸滑动体验 */
.enlarged-container {
    touch-action: pan-y pinch-zoom;
    -webkit-user-drag: none;
}

/* 滑动阴影效果 */
.enlarged-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.1) 0%, 
        transparent 20%, 
        transparent 80%, 
        rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enlarged-image.swiping::before {
    opacity: 1;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .slide-left,
    .slide-right {
        animation-duration: 0.35s;
    }
    
    .swipe-hint {
        font-size: 12px;
        bottom: 40px;
    }
}

/* 性能优化 */
.enlarged-view {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 添加微妙的弹性效果 */
@keyframes slideLeftWithBounce {
    0% { 
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
    70% {
        transform: translateX(-5%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideRightWithBounce {
    0% { 
        transform: translateX(-100%) scale(0.95);
        opacity: 0;
    }
    70% {
        transform: translateX(5%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* 可选：弹性动画版本 */
.slide-left.bounce {
    animation: slideLeftWithBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slide-right.bounce {
    animation: slideRightWithBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}



/* 优化滑动性能 */
.enlarged-image {
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
            margin: 20px auto;
            display: block;
            cursor: pointer;
            transition: transform 0.3s ease;
            will-change: transform;
            position: relative;
            z-index: 10; /* 确保图片在提示上方 */
        }

/* 防止快速滑动时卡顿 */
.enlarged-container {
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}
/* 美化页面滚动条 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #199C76;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #1DB799;
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #26B88B;
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: #1a7a6d;
}

::-webkit-scrollbar-corner {
    background: #199C76;
}

/* 为特定容器定制滚动条 */
.thumbnail-container::-webkit-scrollbar {
    width: 8px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #199C76;
    border-radius: 4px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #1DB799;
    border-radius: 4px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #26B88B;
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: #1DB799 #199C76;
}

/* 为模态窗口添加滚动条美化 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #199C76;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #1DB799;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #26B88B;
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 移动端优化 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    .thumbnail-container::-webkit-scrollbar {
        width: 4px;
    }
/* 新增：滑动提示样式 */
.swipe-tutorial {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 15px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            z-index: 500; /* 降低z-index，确保在图片下方 */
            animation: pulse 2s infinite;
            pointer-events: none; /* 关键：让提示元素不接收点击事件 */
        }

        .swipe-tutorial i {
            font-size: 20px;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }
}

/* 左侧卡通风格菜单按钮提示样式 */
.menu-tooltip {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%) translateX(-10px);
    background: linear-gradient(135deg, #1DB799, #26B88B);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    pointer-events: none;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 0 0 6px rgba(29, 183, 153, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-right: -5px;
}

.menu-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #1DB799;
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
}

.menu-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.menu-tooltip.pulse {
    animation: tooltipPulse 2s infinite;
}

@keyframes tooltipPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.2),
            0 0 0 3px rgba(255, 255, 255, 0.3),
            0 0 0 6px rgba(29, 183, 153, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 0 0 3px rgba(255, 255, 255, 0.4),
            0 0 0 6px rgba(29, 183, 153, 0.4);
    }
}

/* 确保菜单按钮有相对定位 */
.nav-left a, .nav-right a {
    position: relative;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .menu-tooltip {
        font-size: 13px;
        padding: 8px 14px;
        margin-right: -5px;
    }
    
    /* 在滚动状态下调整提示位置 */
    .top-navbar.scrolled .menu-tooltip {
        top: 50%;
        right: 100%;
        transform: translateY(-50%) translateX(-10px);
    }
    
    .top-navbar.scrolled .menu-tooltip.show {
        transform: translateY(-50%) translateX(0);
    }
}

/* 更卡通的样式选项 - 气泡对话框样式 */
.menu-tooltip.bubble {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border-radius: 25px 25px 5px 25px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        0 0 0 6px rgba(255, 165, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.6);
}

.menu-tooltip.bubble::before {
    border-left-color: #FFA500;
}

/* 星星装饰 */
.menu-tooltip::after {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    color: #FFD700;
    font-size: 12px;
    animation: starTwinkle 1.5s infinite;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* 音乐播放按钮闪动效果 */
.music-playing {
    animation: musicPulse 1.5s infinite;
}

@keyframes musicPulse {
    0% {
        transform: scale(1);
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    }
    50% {
        transform: scale(1.2);
        color: #FFD700;
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
    }
    100% {
        transform: scale(1);
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    }
}

/* 音乐按钮容器定位 */
#menuMusicToggle {
    position: relative;
    overflow: hidden;
}

/* 音乐播放进度指示器 */
.music-progress {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
    opacity: 0;
    pointer-events: none;
}

.music-progress.playing {
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .music-progress {
        height: 2px;
    }
    
    @keyframes musicPulse {
        0% {
            transform: scale(1);
            color: #ffffff;
        }
        50% {
            transform: scale(1.15);
            color: #FFD700;
        }
        100% {
            transform: scale(1);
            color: #ffffff;
        }
    }
}

 /* 游戏容器样式 */
.game-container {
    position: relative;
    background-color: hsl(147deg 30.77% 84.71%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    margin-top: 80px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 游戏区域装饰点 - 小尺寸 */
.game-container::before,
.game-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 5px 15px 5px 15px; /* 调整边框半径以适应小尺寸 */
    z-index: 1;
    opacity: 0.8;
    filter: blur(0.5px);
    animation: float 6s ease-in-out infinite;
}

/* 右上角金色装饰点 */
.game-container::before {
    top: -8px;
    right: -8px;
    background: #ffd700; /* 背景色金色 */
 
}

/* 左下角蓝色装饰点 */
.game-container::after {
    bottom: -8px;
    left: -8px;
    background: #ff6b6b; /* 使用主题色 */
    border-radius: 5px 15px 5px 15px; /* 与右上角对称 */
   
}

/* 浮动动画 - 调整幅度以适应小尺寸 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .game-container::before,
    .game-container::after {
        width: 20px;
        height: 20px;
    }
    
    .game-container::before {
        top: -6px;
        right: -6px;
    }
    
    .game-container::after {
        bottom: -6px;
        left: -6px;
    }
}

@media (max-width: 480px) {
    .game-container::before,
    .game-container::after {
        width: 18px;
        height: 18px;
    }
    
    .game-container::before {
        top: -5px;
        right: -5px;
    }
    
    .game-container::after {
        bottom: -5px;
        left: -5px;
    }
}