/* ========== 数独游戏 - sudokuGame.js ========== */

/* 数独游戏 */
.sudoku-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.sudoku-timer, .sudoku-hints-left {
    font-weight: bold;
}

/* 数独提示信息样式 */
.sudoku-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sudoku-grid {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#sudoku-table {
    border-collapse: collapse;
    border: 3px solid #333;
}

#sudoku-table td {
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ccc;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

#sudoku-table td:hover {
    background-color: #f0f0f0;
}

/* 3x3宫格边框 */
#sudoku-table tr:nth-child(3n) td {
    border-bottom: 2px solid #333;
}

#sudoku-table tr td:nth-child(3n) {
    border-right: 2px solid #333;
}

/* 初始数字（固定） */
.sudoku-fixed {
    color: #0000ff;
    font-weight: bold;
}

/* 用户输入数字 */
.sudoku-user {
    color: #000000;
}

/* 错误数字 */
.sudoku-error {
    color: #ff0000;
    background-color: #ffe6e6;
}

/* 选中单元格 */
.sudoku-selected {
    background-color: #e6f7ff;
}
