body {
    background: #f7f9fc;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    padding: 5px;
}
.container {
    max-width: 600px;
    margin: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
}
h1 {
    text-align: center;
    margin-bottom: 15px;
}
h5 {
    text-align: center;
    margin-bottom: 20px;
}
.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.controls input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.coord-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
button {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .3s;
    font-size: 14px;
}
button:hover { background: #0056b3; }

.action-row {
    text-align: center;
}

.message-row {
    text-align: center;
    height: 24px;
}
#message {
    margin: 10px;
    color: #c00;
    font-size: 14px;
    line-height: 24px;
}

#boardContainer {
    display: grid;
    grid-auto-rows: 40px;
    grid-auto-columns: 40px;
    gap: 1px;
    justify-content: center;
    margin: auto;
}
#boardContainer input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    border: none;
    outline: none;
    background: #c7c7c7;
}

/* 已知数字格子 */
#boardContainer input.known {
    background: #d1e7dd;
}
/* 已知宝藏格子 */
#boardContainer input.marked {
    background: #f8d7da;
}
/* 概率格子 */
#boardContainer input.prob {
    background: #f0f0f0;
}
/* 最高概率高亮 */
#boardContainer input.highlight {
    box-shadow: inset 0 0 0 2px #ffc107;
}
