* {
    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: 0px 0px 12px 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: 0px;
    left: 15px;
    right: 15px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 滚动时的竖排样式 */
.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, .nav-right div[type="button"] {
    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;
    background: none;
    border: none;
}

.nav-left a:hover, .nav-right a:hover, .nav-right div[type="button"]:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Top navbar utility button icons */
.nav-right .utility .icon {
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-image: url('../images/utility_btns.svg');
    background-size: 400% 200%;
}

.nav-right .utility .icon.undo_redo {
    background-position: 0 100%;
}

.nav-right .utility .icon.reset_image {
    background-position: 33.3333333333% 100%;
}

.nav-right .utility .icon.export {
    background-position: 66.6666666667% 100%;
}

.nav-right .utility .icon.print {
    background-position: 100% 100%;
}

.nav-right .utility .icon.zoom_in,
.nav-right .utility .icon.zoom_out {
    width: 18px;
    height: 18px;
}

.nav-right .util-label {
    font-size: 12px;
    display: none;
}



.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;
}

.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);
}

.images-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
margin-top: -30px;
    background-color: rgba(70, 180, 125, 0);
    border-bottom: 1px solid rgba(221, 228, 234, 0.1);
    position: relative;
}

.sequencing-item {
    position: relative;
    width: 210px;
    height: 210px;
    border-radius: 0.4em;
    overflow: hidden;
    cursor: pointer;
    border: solid 5px rgba(40, 185, 130, 0.3);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.sequencing-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #47B47D;
}

.sequencing-item.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    border-color: #47B47D;
    box-shadow: 0 8px 16px rgba(92, 154, 223, 0.3);
    z-index: 1000;
    transition: none;
}

.sequencing-item.drop-target {
    border: 2px dashed #47B47D;
    background-color: rgba(92, 154, 223, 0.05);
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.sequencing-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.sequencing-correct {
    border: solid 3px #47b47d !important;
    position: relative;
}

.sequencing-incorrect {
    border: solid 3px #dd2e2e !important;
    position: relative;
}

.sequencing-mark {
    border-radius: 0em 0em 20em 0em;
    line-height: 1em;
    padding-right: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
    font-size: 1em;
    position: absolute;
    left: 0%;
    top: 0%;
    width: 2.5em;
    height: 2.5em;
    z-index: 1;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sequencing-correct-mark {
    background-color: #47b47d;
}

.sequencing-incorrect-mark {
    background-color: #dd2e2e;
}

.sequencing-correct-mark:before {
    content: "\f00c";
   font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sequencing-incorrect-mark:before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.hint-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(71, 180, 125, 0.5);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border: 0px solid white;
}

.placeholder {
    width: 210px;
    height: 210px;
    border: 2px dashed #47b47d;
    border-radius: 0.4em;
    background-color: rgba(70, 180, 125, 0.1);
    visibility: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-number {
    font-family: Jolly, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 80px;
    z-index: 2;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
   /* margin-top: 20px;
    padding: 0 1em 1em;*/
    flex-wrap: wrap;
}

button {
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    font-family: 'Jolly Lodger', sans-serif;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

button:hover:before {
    left: 100%;
}

#checkBtn {
    background: linear-gradient(145deg, #47b47d, #3a9c69);
    color: white;
}

#checkBtn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(26, 115, 217, 0.3);
}

#checkBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#hintBtn {
    background: linear-gradient(145deg, #47b47d, #3a9c69);
    color: white;
}

#hintBtn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(71, 180, 125, 0.3);
}

#hintBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#resetBtn {
    background: linear-gradient(145deg, #47b47d, #3a9c69);
    color: white;
    display: none;
}

#resetBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
}

#modifyBtn {
    background: linear-gradient(145deg, #47b47d, #3a9c69);
    color: white;
    display: none;
}

#modifyBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.3);
}

/* #soundToggle {
background: linear-gradient(145deg, #47b47d, #3a9c69);
    color: white;
    padding: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
} */
 
#soundToggle i {
    font-size: 22px;
}

  #soundToggle:hover {
    transform: translateY(-3px);
 /* box-shadow: 0 6px 12px rgba(155, 89, 182, 0.3);*/
} 

.message {
    text-align: center;
    margin: 15px 1em;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    display: none;
    font-size: 16px;
    font-family: 'Jolly Lodger', sans-serif;
}

.success {
    background-color: #d5f4e6;
    color: #27ae60;
    display: block;
    border-left: 4px solid #2ecc71;
}

.error {
    background-color: #fadbd8;
    color: #c0392b;
    display: block;
    border-left: 4px solid #e74c3c;
}

.info {
    background-color: #d6eaf8;
    color: #2874a6;
    display: block;
    border-left: 4px solid #3498db;
}

.attempts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
    font-family: 'Jolly Lodger', sans-serif;
}

.attempts i {
    color: #1a73d9;
}

.sound-control {
    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;
}

/* 翻页按钮样式 */
.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%;
}

/* 成功动画样式 - 增强版 */


/* 粒子效果 */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f00;
    opacity: 0;
    z-index: 2001;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.2, 1.2, 1);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 60px rgba(75, 183, 27, 0.2);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(75, 183, 27, 0.6);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(75, 183, 27, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(75, 183, 27, 0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 成功动画样式 */
.success-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2001;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.success-content {
    background: linear-gradient(135deg, #47b47d, #3a9c69);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 2002;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #fff;
    fill: none;
    animation: stroke 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-text {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    font-family: 'Jolly', sans-serif;
}

.success-subtext {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Jolly', sans-serif;
}

.success-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-family: 'Jolly', sans-serif;
}

.success-stats div {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
}

.success-close {
   background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
font-weight: normal;
    font-family: 'Jolly', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* 关键：将按钮设置为块级元素 */
    margin: 0 auto; /* 关键：自动左右外边距实现水平居中 */
    width: fit-content; /* 确保按钮宽度根据内容自适应 */
    min-width: 120px; /* 可选：设置最小宽度，使按钮看起来更协调 */
}

.success-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .success-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .success-checkmark {
        width: 80px;
        height: 80px;
    }
    
    .success-text {
        font-size: 1.5rem;
    }
    
    .success-subtext {
        font-size: 1rem;
    }
    
    .success-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* 正确序列号标注样式 */
.correct-order-number {
    position: absolute;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    background-color: rgba(71, 180, 125, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    border: 0px solid white;
    animation: popIn 0.5s ease-out forwards;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .top-navbar {
        padding: 10px 15px;
        margin-top: 15px;
    }
    
    .nav-left a span, .nav-right a span {
        display: none;
    }
    
    .nav-left a, .nav-right a {
        padding: 10px;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    
    .nav-left, .nav-right {
        gap: 10px;
    }
    
    .game-container {
        margin-top: 70px;
    }
    
    .images-container {
        gap: 15px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .sequencing-item {
        width: 205px;
        height: 205px;
        flex-shrink: 0;
    }
    
    .placeholder {
        width: 205px;
        height: 205px;
        flex-shrink: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .placeholder-number {
        width: 36px;
        height: 36px;
        font-size: 50px;
    }
    
    .controls {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    
    button {
        width: auto;
        padding: 12px 16px;
        border-radius: 50px;
        font-size: 15px;
    }
    
    #soundToggle {
        width: 44px;
        height: 44px;
        padding: 0;
    }
    
    #soundToggle i {
        font-size: 22px;
    }
    
    .page-nav-buttons {
        padding: 0 15px;
    }
    
    .page-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .success-checkmark {
        width: 90px;
        height: 90px;
    }
    
    .success-text {
        font-size: 24px;
    }
    
    .correct-order-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
@media only screen and (max-width: 1199px) {
    .top-navbar {
        padding: 8px 10px;
        margin-top: 0px;
    }
}
@media (max-width: 480px) {
    .top-navbar {
        padding: 8px 10px;
        margin-top: 0px;
    }
    
    .nav-left a, .nav-right a {
        padding: 8px;
        width: 40px;
        height: 40px;
    }
    
    .game-container {
        margin-top: 60px;
    }
    
    .sequencing-item {
        width: 155px;
        height: 155px;
    }
    
    .placeholder {
        width: 155px;
        height: 155px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .placeholder-number {
        width: 30px;
        height: 30px;
        font-size: 50px;
    }
    
    .h5p-task-description {
        padding: 0.8em;
    }
    
    .images-container {
        padding: 10px;
    }
    
    .hint-number {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .controls {
        gap: 10px;
    }
    
    button {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    #soundToggle {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    #soundToggle i {
        font-size: 22px;
    }
    
    .sequencing-mark {
        width: 1.8em;
        height: 1.8em;
    }
    
    .top-navbar.scrolled {
        flex-direction: column;
        width: 40px;
        right: 5px;
        left: auto;
        padding: 10px;
        align-items: flex-end;
        gap: 5px;
    }

    .page-nav-buttons {
        padding: 0 10px;
    }

    .page-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .success-checkmark {
        width: 70px;
        height: 70px;
    }

    .success-text {
        font-size: 20px;
    }

    .correct-order-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
.modal-content img{
width:100%;
}
}

/* 新增样式：防止手机缩放 */
.sequencing-item.dragging-mobile {
    transform: scale(1.05);
    z-index: 1000;
    transition: none;
    touch-action: none;
}

/* 背景音乐播放器样式 */
.music-player {
    display: none;
}

/* 游戏标题样式 */
.game-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffd700;
}

.game-subtitle {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.9;
}
.bianhao  {
text-align:left;color:#f0f8ff;font-size:16px;font-family:Jolly;
}
.copyright{
text-align:center;color:#3F786B;font-size:20px;margin-top: 20px;font-family:Jolly;
}

 /* 游戏容器样式 */
.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: 60px;
    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;
    }
}
/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1DB799, #26B88B, #2FB97C);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-family: "Jolly";
}

.loading-progress {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.5s;
    border-radius: 5px;
}
/* 加载动画样式 */
/* 加载动画淡出效果 */
.loading-overlay.fade-out {
    animation: fadeOut 0.6s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* 确保加载覆盖层有合适的层级 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1DB799, #26B88B, #2FB97C);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-family: "Jolly";
}

.loading-progress {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.5s ease-out;
    border-radius: 5px;
}

/* 历史记录弹窗样式 */
.modal-content-history {
    max-width: 800px;
}

/* 难度筛选器样式 */
.difficulty-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.difficulty-filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.difficulty-filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.difficulty-filter-btn.active {
    background: rgba(71, 180, 125, 0.5);
    color: #fff;
    border-color: rgba(71, 180, 125, 0.7);
}

/* 图表容器样式 */
.chart-section {
    margin-bottom: 20px;
}

.chart-container {
    background: linear-gradient(135deg, rgba(71, 180, 125, 0.1), rgba(58, 156, 105, 0.2));
    border: 1px solid rgba(71, 180, 125, 0.3);
    box-shadow: 0 4px 15px rgba(71, 180, 125, 0.2);
    border-radius: 8px;
    height: 300px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.chart-container.collapsed {
    display: none;
}

.chart-wrapper {
    width: 100%;
    height: 100%;
}

.chart-wrapper canvas {
    height: 300px !important;
    width: 100% !important;
}

.chart-container::-webkit-scrollbar-track {
    background: rgba(71, 180, 125, 0.2);
}

.chart-container::-webkit-scrollbar-thumb {
    background: #47b47d;
}

.chart-container::-webkit-scrollbar-thumb:hover {
    background: #3a9c69;
}

#progressChart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.history-section {
    margin-top: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    background: rgba(40, 50, 60, 0);
    border-radius: 10px;
    transition: background 0.3s;
}

.history-header:hover {
    background: rgba(50, 60, 70, 0.7);
}

.history-title {
    font-size: 20px;
    color: #ffffff;
    margin: 0;
}

.toggle-history {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    display: none;
}

.history-table.show {
    display: table;
}

.history-table th {
    background: rgba(40, 50, 60, 0.3);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table tr:hover {
    background: rgba(50, 60, 70, 0.5);
}

.history-table .no-records {
    text-align: center;
    color: #e0e0e0;
    font-style: italic;
    padding: 20px;
}

.history-table-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.history-table-container::-webkit-scrollbar {
    width: 8px;
}

.history-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.history-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.history-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}