:root {
    /* 亮色模式 */
    --bg-color: #f4f4f4;
    --container-bg: white;
    --text-color: #333;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: var(--text-color);
    overflow: hidden; /* 防止页面滚动 */
    transition: background-color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: var(--container-bg);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

#canvas {
    display: flex;
    margin: 10px 0;
}

.trading-control {
    display: flex;
    justify-content: center;
}

.trading-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 50px;
}

.trading-pad {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trading-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.trading-btn-start {
    background-color: #2196F3; /* 蓝色 */
}

.trading-btn-buy {
    background-color: #4CAF50; /* 绿色 */
}

.trading-btn-sell {
    background-color: #F44336; /* 红色 */
}

.game-rules {
    text-align: left;
    margin-top: 20px;
    font-size: 14px;
}

kbd {
    background-color: #eee;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 12px;
}