/* 自定义样式 */
        .same-row-col {
            background-color: rgb(227,234,242) !important;
        }
        
        .same-number {
            background-color: rgb(199,214,232) !important;
        }
        
        .conflict-number {
            background-color: rgb(241,208,214) !important;
        }
        
        .sudoku-cell.incorrect-input {
            color: red !important;
        }
        
        .sudoku-cell.user-input {
            color: #335AB0 !important;
        }
        
        .sudoku-grid {
            display: grid;
            grid-template-columns: repeat(9, 1fr);
            gap: 0;
        }
        
        .sudoku-cell {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 600;
            border: 0px solid #0368ff; /* 灰色边框 */
            background: white;
            cursor: pointer;
            color: rgb(56,71,95) !important;  /* 数字文本颜色 */
            /* color: rgb(255, 132, 0) !important; */
        }
        
        /* 禁止双击缩放 */
        button, .mobile-number-btn, .mobile-control-btn {
            touch-action: manipulation;
        }
        
        /* 提示高亮样式 */
        .hint-highlight {
            animation: hint-pulse 2s 1;
        }
        
        @keyframes hint-pulse {
            0% { background-color: #f0fff4; }
            50% { background-color: #68d391; }
            100% { background-color: #f0fff4; }
        }
        
        /* 手机适配样式 */
        @media (max-width: 768px) {
            .sudoku-cell {
                width: calc((100vw - 60px) / 9);
                height: calc((100vw - 60px) / 9);
                font-size: 16px;
                max-width: 40px;
                max-height: 40px;
            }
            
            .mobile-container {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                align-items: center;
                width: 100%;
            }
            
            .mobile-controls {
                width: 100%;
                max-width: 360px;
                padding: 8px;
            }
            
            .mobile-number-grid {
                display: grid;
                grid-template-columns: repeat(9, 1fr);
                gap: 4px;
                margin: 16px 0;
            }
            
            .mobile-number-btn {
                width: 100%;
                height: 50px;
                background-color: #f3f4f6;
                border-radius: 8px;
                font-size: 16px;
                font-weight: bold;
                color: #4f46e5;
                border: none;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .mobile-number-btn:hover {
                background-color: #e5e7eb;
            }
            
            .mobile-number-btn.disabled {
                background-color: #f9fafb;
                color: #9ca3af;
                cursor: not-allowed;
                opacity: 0.5;
            }
            
            .mobile-number-btn.disabled:hover {
                background-color: #f9fafb;
            }
            
            /* PC版数字按钮置灰样式 */
            #desktop-number-buttons button.disabled,
            #desktop-number-buttons button.disabled:hover {
                background-color: #f9fafb !important;
                color: #9ca3af !important;
                cursor: not-allowed !important;
                opacity: 0.5 !important;
            }
            
            .mobile-control-buttons {
                display: flex;
                justify-content: space-between;
                gap: 8px;
                margin: 8px 0 16px 0;
                overflow: visible;
            }
            
            .mobile-control-btn {
                flex: 1;
                min-width: 45px;
                height: 45px;
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
                font-weight: 600;
                border: none;
                cursor: pointer;
                position: relative;
                overflow: visible;
            }
            
            .mobile-stats {
                display: flex;
                justify-content: space-between;
                width: 100%;
                padding: 16px;
                background-color: white;
                border-radius: 8px;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            }
            

            
            /* 触摸优化 */
            .mobile-number-btn:active,
            .mobile-control-btn:active {
                transform: scale(0.95);
                transition: transform 0.1s ease;
            }
            
            /* 手机版数独网格优化 */
            .mobile-container .sudoku-grid {
                max-width: calc(100vw - 40px);
                margin: 0 auto;
            }
            
            /* 防止页面缩放 */
            input[type="number"]:focus {
                font-size: 16px;
            }
            
            /* 手机版笔记字体优化 */
            .sudoku-cell .notes {
                font-size: 6px !important;
            }
            
            /* 手机版按钮文字不换行 */
            .mobile-control-btn {
                white-space: nowrap;
                overflow: visible;
            }
            
            /* 下拉选择框样式 */
            #mobile-difficulty-select {
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: none;
            }
            
            /* 手机版游戏信息栏调整 */
            .md\:hidden .mobile-container {
                margin-top: 0;
            }
        }
        
        .sudoku-cell:hover {
            background-color: #f3f4f6;
        }
        
        .sudoku-cell.selected {
            background-color: rgb(194, 221, 248) !important;
            z-index: 10;
        }
        
        .sudoku-cell.highlighted {
            background-color: #e0e7ff;
        }
        
        /* 3x3宫格的黑色边框 */
        /* 垂直分割线：第3列和第6列右边框 */
        .sudoku-cell:nth-child(3n):not(.sudoku-cell:nth-child(9n)) {
            border-right: 1px solid rgb(0, 0, 0);
        }
        .sudoku-cell:nth-child(3n+1):not(.sudoku-cell:nth-child(9n)) {
            border-right: 1px solid rgb(205, 205, 205);
        }
        .sudoku-cell:nth-child(3n+2):not(.sudoku-cell:nth-child(9n)) {
            border-right: 1px solid rgb(205, 205, 205);
        }
        
        /* 水平分割线：第3行和第6行下边框 */
        .sudoku-cell:nth-child(n+19):nth-child(-n+27) {
            border-bottom: 1px solid #000;
        }
        .sudoku-cell:nth-child(n+46):nth-child(-n+54) {
            border-bottom: 1px solid #000;
        }
        .sudoku-cell:nth-child(n+1):nth-child(-n+18) {
            border-bottom: 1px solid rgb(205, 205, 205);
        }
        .sudoku-cell:nth-child(n+28):nth-child(-n+45) {
            border-bottom: 1px solid rgb(205, 205, 205);
        }
        .sudoku-cell:nth-child(n+55):nth-child(-n+72) {
            border-bottom: 1px solid rgb(205, 205, 205);
        }
        
        /* 外边框
        .sudoku-cell:nth-child(-n+9) {
            border-top: 1px solid #000;
        }
        .sudoku-cell:nth-child(n+73) {
            border-bottom: 1px solid #000;
        }
        .sudoku-cell:nth-child(9n) {
            border-right: 1px solid #000;
        }
        .sudoku-cell:nth-child(9n+1) {
            border-left: 1px solid #000;
        } */

        /* 杀手数独专用样式 - Killer Sudoku styles */
        .killer-cage-border {
            position: relative;
        }
        
        /* 杀手数独边框元素基础样式 */
        .killer-border-element {
            position: absolute;
            pointer-events: none;
            z-index: 5;
            /* 重置所有边框，避免继承 */
            border: none;
            border-top: none;
            border-right: none;
            border-bottom: none;
            border-left: none;
            background: transparent;
        }
        
        /* 杀手数独笼子边框 - 顶部 */
        .killer-border-element.killer-cage-top {
            top: 2px;
            left: 2px;
            right: 2px;
            height: 0;
            border-top: 1.2px dashed #334861;
        }
        
        /* 杀手数独笼子边框 - 右侧 */
        .killer-border-element.killer-cage-right {
            top: 2px;
            right: 2px;
            bottom: 2px;
            width: 0;
            border-right: 1.2px dashed #334861;
        }
        
        /* 杀手数独笼子边框 - 底部 */
        .killer-border-element.killer-cage-bottom {
            bottom: 2px;
            left: 2px;
            right: 2px;
            height: 0;
            border-bottom: 1.2px dashed #334861;
        }
        
        /* 杀手数独笼子边框 - 左侧 */
        .killer-border-element.killer-cage-left {
            top: 2px;
            left: 2px;
            bottom: 2px;
            width: 0;
            border-left: 1.2px dashed #334861;
        }
        
        /* 杀手数独笼子和值显示 */
        .killer-cage-sum {
            position: absolute;
            top: 1px;
            left: 1px;
            font-size: 10px;
            font-weight: bold;
            color: #334861;
            background: rgba(255, 255, 255, 0.8);
            padding: 0 1px;
            line-height: 1;
            z-index: 10;
            border-radius: 2px;
        }
        
        /* 手机版杀手数独笼子和值 */
        @media (max-width: 768px) {
            .killer-cage-sum {
                font-size: 6px;
                top: 0px;
                left: 0px;
                padding: 0;
            }
            
            /* 手机版虚线边框调整 */
            .killer-border-element {
                /* 移动端强制重置所有边框 */
                border: none !important;
            }
            
            .killer-border-element.killer-cage-top {
                top: 1px;
                left: 1px;
                right: 1px;
                border: none !important;
                border-top: 1px dashed #666 !important;
            }
            
            .killer-border-element.killer-cage-right {
                right: 1px;
                top: 1px;
                bottom: 1px;
                border: none !important;
                border-right: 1px dashed #666 !important;
            }
            
            .killer-border-element.killer-cage-bottom {
                bottom: 1px;
                left: 1px;
                right: 1px;
                border: none !important;
                border-bottom: 1px dashed #666 !important;
            }
            
            .killer-border-element.killer-cage-left {
                left: 1px;
                top: 1px;
                bottom: 1px;
                border: none !important;
                border-left: 1px dashed #666 !important;
            }
            

        }