@font-face {
            font-family: 'DY';
            src: url('../font/dy.otf') format('opentype');
        }

        @font-face {
            font-family: 'FZ';
            src: url('../font/fz.ttf') format('truetype');
        }

        @font-face {
            font-family: 'ZhuYuan';
            src: url('../font/zhuyuan.ttf') format('truetype');
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            outline: none;
        }

        body {
            font-family: 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            height: 100vh;
            position: relative;
            overflow: hidden;
            overscroll-behavior-y: contain;
        }

        #app {
            width: 1920px;
            height: 1080px;
            transform-origin: 0% 0% 0px;
            position: absolute;
            overflow: hidden;
        }

        .body {
            width: 100%;
            height: 100%;
            position: relative;
            background: url('../img/bg.png')   center/cover no-repeat;
        }

        /* .body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 0;
        } */

        .container {
            position: relative;
            z-index: 1;
            text-align: center;
            padding-top: 234px;
            padding-bottom: 118px;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            position: fixed;
            top: 20px;
            right: 30px;
            width: 80px;
            height: 90px;
            z-index: 10;
        }

        .logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        h1 {
            font-family: 'DY';
            font-size: 72px;
            color: #fff;
            -webkit-text-stroke: 5px #8B4513;
            text-shadow:
                5px 5px 0 rgba(0,0,0,0.3),
                0 4px 8px rgba(0,0,0,0.5);
            margin-bottom: 60px;
            letter-spacing: 8px;
        }
        h1 img {
            width:1552px;
           
        }
        .subtitle {
            font-family: 'FZ';
            font-size: 28px;
            color: #fff;
            -webkit-text-stroke: 1px #5D4E37;
            padding: 0 40px;
            border-radius: 10px;
            display: block;
            font-weight: bold;
            width: fit-content;
            margin: 0 auto 0;
        }
        .subtitle img {
            width: 1320px;

        }

        .home-info {
            margin-bottom: 153px;
        }

        .home-info img {
            width: 547px;
        }

        .start-btn {
            font-family: 'DY', 'ZhuYuan', sans-serif;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 404px;
            height: 114px;
            font-size: 32px;
            color: #fff;
            background: url('../img/start.png') ;
            background-size: 100% 100%;
            border: none;
            cursor: pointer;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
            transition: transform 0.1s ease;
        }

        .start-btn:hover {
            transform: scale(1.05);
        }

        .start-btn:active {
            transform: scale(0.95);
        }

        .sound-btn {
            position: fixed;
            bottom: 40px;
            left: 40px;
            width: 100px;
            height: 100px;
            background: transparent;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
            padding: 0;
            z-index: 10;
        }

        .sound-btn:hover {
            transform: scale(1.1);
        }

        .sound-btn img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* 游戏界面样式 */
        .game-screen {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 5;
        }

        .game-screen.active {
            display: flex;
            flex-direction: column;
        }

        .game-header {
            display: flex;
            padding: 27px 40px;
            padding-bottom: 0;
        }

        .game-header > *:not(:first-child) {
            margin-left: 20px;
        }

        .back-btn {
            font-family: 'DY', 'ZhuYuan', sans-serif;
            width: 160px;
            height: 80px;
            background: url('../img/back.png');
            background-size: 100% 100%;
            border: none;
            color: #fff;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .task-text-container {
            display: flex;
            height: 110px;
            margin-bottom: 27px;
            flex-direction: column;
        }

        .task-text-container > *:not(:first-child) {
            margin-top: 15px;
        }

        .task-title {
            font-family: 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            font-size: 60px;
            color: #422411;
            font-weight: 400;
        }

        .task-desc img {
            width: 1425px;
            margin-left: 20px;
            object-fit: contain;
        }

        /* 关卡进度 */
        .level-progress {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #8B4513;

            margin: 0 auto;
            padding: 0 40px;
            border-radius: 50px;
            width: 547px;
            height:70px;
            box-shadow: 0 2px 2px   #000;
            margin-bottom: 27px;
        }
.pro-cont{
    width: 1152px;
    margin-left: 182px;
}
        .progress-dots {
            display: flex;
            align-items: center;
            padding: 18px 25px;
            border-radius: 50px 0 0 50px;
        }

        .progress-dots > .progress-dot:not(:first-child) {
            margin-left: 20px;
        }

        .progress-dot {
            width: 31px;
            height: 31px;
            border-radius: 50%;
            background: #C8A882;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: all 0.3s ease;
        }

        .progress-dot.current {
            background: #E8913A;
        }

        .progress-dot.correct {
            /* background: #5EC850; */
            background: url(../img/right.png);
            background-size: 100% 100%;
        }

        .progress-dot.wrong {
            background: url(../img/wrong.png);
            background-size: 100% 100%;
        }

        .progress-text {
            font-family: 'DY', 'Microsoft YaHei', sans-serif;
            font-size: 36px;
            color: #fff;
            font-weight: bold;
            padding: 18px 11px;
            border-radius: 0 50px 50px 0;
            text-align: center;
           
            line-height: 1;
           
        }

        /* 答题区域容器 */
        .quiz-container {
            display: flex;
            flex: 1;
            padding: 0 100px;
            padding-left: 182px;
            padding-right: 73px;
            padding-bottom: 33px;

            align-items: center;
        }

        .quiz-container > *:not(:first-child) {
            margin-left: 65px;
        }

        /* 左侧图片区域 */
        .quiz-image-section {
            flex: 0 0 1151px;
            height: 652px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 0;
        }

        .quiz-image-wrapper {
            position: relative;
             
            
        }

        .quiz-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }

        .quiz-image-wrapper.drag-over {
            /* box-shadow: 0 0 30px rgba(232, 145, 58, 0.6); */
            border-color: #E8913A;
        }

        .quiz-image-label {
            display: none;
            position: absolute;
            bottom: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            padding: 10px 24px;
            border-radius: 10px;
            font-family: 'DY', 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            font-size: 28px;
            -webkit-text-stroke: 1px #000;
        }

        .magnifier-icon {
            position: absolute;
            bottom: 120px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 50px;
            background: url(../img/find.png);
            background-size: 100% 100%;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        .magnifier-icon::before {
            content: '';
            width: 20px;
            height: 20px;
            border: 4px solid #fff;
            border-radius: 50%;
            position: relative;
        }

        .magnifier-icon::after {
            content: '';
            width: 4px;
            height: 12px;
            background: #fff;
            position: absolute;
            bottom: 14px;
            right: 14px;
            transform: rotate(-45deg);
            border-radius: 2px;
        }

        /* 右侧描述列表 */
        .desc-section {
            width: 449px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding-top: 10px;
        }
.drag-left{
    width: 1151px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-left > *:not(:first-child) {
    margin-left: 32px;
}
        .desc-list {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .desc-list > .desc-item:not(:first-child) {
            margin-top: 15px;
        }

        .desc-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #FFAC4E;
            border: none;
            border-radius: 15px;
            padding: 10px 18px;
            min-height: 60px;
            line-height: 1.2;
            font-family: 'DY', 'ZhuYuan', sans-serif;
            font-size: 30px;
            color: #fff;
            transition: all 0.3s ease;
           border: 3px solid #BD7E53;
           white-space: normal;
           word-break: break-all;
        }

        .desc-item.current {
            /* background: #E8913A; */
            box-shadow: 0 4px 8px rgba(232, 145, 58, 0.4);
        }

        .desc-item.locked {
            color: rgba(255, 255, 255, 0.55);
        }

        .desc-text {
            flex: 1;
            line-height: 1.2;
            white-space: nowrap;
        }

        .desc-text-sub {
            font-size: 18px;
            line-height: 1.2;
            /* opacity: 0.9; */
        }

        .desc-icon {
            width: 28px;
            height: 28px;
            object-fit: contain;
            margin-left: 10px;
        }

        /* 拖拽区域 */
        .drag-section {
            flex: 1;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            padding: 0 211px 0 182px;
        }

        .drag-hint {
            font-family: 'DY', 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            font-size: 32px;
            width: 264px;
            color: #5D4E37;
            font-weight: bold;
        }

        .drag-btn-wrapper {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
        }

        .drag-btn-wrapper > .drag-btn:not(:first-child) {
            margin-left: 36px;
        }

        .drag-btn {
            font-family: 'DY', 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            /* width: 190px; */
            height: 72px;
            padding: 0 28px;
            font-size: 34px;
            font-weight: bold;
            border: none;
            border-radius: 50px;
            cursor: grab;
            transition: all 0.2s ease;
            color: #fff;
            background: #56C94F;
            box-shadow: 0 2px 0 rgba(0, 0, 0, 1);
            touch-action: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            outline: none;
        }

        .drag-btn.dragging {
            opacity: 0;
        }

        .drag-btn > *:not(:first-child) {
            margin-left: 10px;
        }

        .drag-btn .info-icon {
            width: 30px;
            height: 30px;
            object-fit: contain;
            cursor: pointer;
            flex: 0 0 auto;
        }

        /* .drag-btn:hover {
            transform: scale(1.05);
        } */

        .drag-btn:active {
            cursor: grabbing;
            /* transform: scale(0.95); */
        }

        /* .increase-btn {
            background: #4A90E2;
            border: 4px solid #357ABD;
        }

        .decrease-btn {
            background: #5EC850;
            border: 4px solid #4AAD3D;
        }*/

        .drag-btn.disabled,
        .drag-btn[style*="pointer-events: none"] {
            /* opacity: 0.5 !important; */
            cursor: not-allowed !important;
            /* filter: grayscale(30%); */
        }

        .drag-btn.selected {
            background-color: #4A90E2 !important;
            border-color: #357ABD !important;
            filter: none !important;
        }

        .touch-drag-clone {
            pointer-events: none;
            /* opacity: 0.9; */
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        }

        .dragging-label {
            white-space: nowrap;
            position: absolute;
            z-index: 9999;
            pointer-events: none;
            display: none;
            font-family: 'DY', 'Microsoft YaHei', sans-serif;
            padding: 25px 28px;
            font-size: 34px;
            font-weight: bold;
            border: none;
            border-radius: 50px;
            color: #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            user-select: none;
            -webkit-user-select: none;
            text-align: center;
            justify-content: center;
            align-items: center;
            /* display: flex; */
        }
.dragging-label::after{
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    background: url('../img/info.png') no-repeat center center;
    background-size: 100% 100%;
}
        .dragging-label.option {
            background: #56C94F;
            border: none;
            box-shadow: 0 2px 0 #000;
        }

        /* 下一关按钮区域 */
        .next-level-section {
            display: none;
        }

        .next-level-btn {
            font-family: 'DY', 'ZhuYuan', sans-serif;
            /* width: 220px;
            height: 80px;
            background: #8B4513;
            border: 6px solid #5D2E0C;
            color: #fff;
            font-size: 36px;
            font-weight: bold; */
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            outline: none;
            border: none;
            background: none;
            /* border-radius: 50px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3); */
        }
.next-level-btn img{
    width: 279px;
}
        .next-level-btn:hover:not(:disabled):not(.disabled) {
            /* transform: scale(1.05);
            background: #9B5523; */
        }

        .next-level-btn:active:not(:disabled):not(.disabled) {
            /* transform: scale(0.95); */
        }

        .next-level-btn:disabled,
        .next-level-btn.disabled {
            cursor: not-allowed;
            /* opacity: 0.7; */
            filter: grayscale(100%);
        }

        /* 提示弹窗（放大镜用 - 单段文案，带关闭按钮） */
        .hint-toast {
            position: absolute;
            top: 50%;
            left:484px;
            transform: translateY(-50%);
            z-index: 1000;
            /* animation: fadeIn 0.3s ease; */
        }

        .hint-toast-content {
            background: #fff;
            border: 8px solid #8B4513;
            border-radius: 48px;
            padding: 0 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            position: relative;
            width: 574px;
            height: 274px;
        }

        .hint-text {
            font-family: 'DY', 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            font-size: 40px;
            color: #8B4513;
            margin: 0;
            line-height: 1.4;
        }

        .hint-toast-close {
            position: absolute;
            top: -30px;
            right: -30px;
            width: 100px;
            height: 100px;
            background: url('../img/close.png') no-repeat center center;
            background-size: contain;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
        }

        .hint-toast-close:hover {
            transform: scale(1.1);
        }

        /* 错误/成功提示弹窗（答题用 - 两段文案，无关闭按钮） */
        .error-toast,
        .success-toast {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }

        .error-toast-content,
        .success-toast-content {
            background: #fff;
            border: 8px solid #8B4513;
            border-radius: 48px;
            padding: 40px 0;
            text-align: center;
            /* box-shadow: 0 10px 30px rgba(0,0,0,0.3); */
            position: relative;
            white-space: nowrap;
            width:860px;
        }

        .toast-title {
            font-family: 'DY', 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            font-size: 64px;
            margin: 0;
            padding: 0;
            /* line-height: 1.4; */
        }

        .error-toast-content .toast-title {
            color: #DE613B;
        }

        .success-toast-content .toast-title {
            color: #5EC850;
        }

        .toast-text {
            font-family: 'DY', 'ZhuYuan', 'Microsoft YaHei', sans-serif;
            font-size: 40px;
            color: #5EC850;
            margin: 0;
            line-height: 1.5;
        }
.error-toast-content .toast-text {
                       color: #DE613B;

        }
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        /* 结束界面 */
        .end-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* padding: 172px 0; */
            background: url('../img/bg.png') #fae4cb no-repeat center center;
            background-size: cover;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        /* .end-screen::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: -1;
        } */

        .end-screen.active {
            display: flex;
        }

        .end-screen .logo {
            position: fixed;
            top: 20px;
            right: 30px;
            z-index: 2001;
        }

        .end-screen .sound-btn {
            position: fixed;
            bottom: 40px;
            left: 40px;
            z-index: 2001;
        }

        .end-screen.active ~ #gameScreen {
            visibility: hidden;
        }

        .end-content {
            text-align: center;
            /* height: 100%; */
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .end-stars {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 32px;
        }

        .end-stars > .end-star:not(:first-child) {
            margin-left: 40px;
        }

        .end-star {
            width: 130px;
            /* height: 120px; */
            object-fit: contain;
        }

        .end-text {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 110px;
        }

        .end-text > .end-text-line:not(:first-child) {
            margin-top: 18px;
        }

        .end-text-line {
            width: 1560px;
            max-width: 1560px;
            height: auto;
            object-fit: contain;
            display: block;
        }

        .restart-btn {
            font-size: 0;
            background: url(../img/restart.png);
            background-size: 100% 100%;
            border: none;
            border-radius: 30px;
            width: 404px;
            height: 114px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .restart-btn:hover {
            transform: scale(1.05);
        }

        .restart-btn:active {
            transform: scale(0.95);
        }

        .restart-icon {
            font-size: 28px;
        }
