body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #efefef;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

.controls {
    position: absolute;
    top: 20px;
    right: -500px;
    width: 480px;
    background: rgba(239, 239, 239, 0.6);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #333;
    overflow-y: auto;
    display: flex;
    transition: right 0.3s ease;
    justify-content: space-between;
    gap: 10px;
}

.controls code {
    padding: 2px 4px;
    font-size: 90%;
    background-color: #efefef;
    border-radius: 4px;
    border: 1px solid #ccc;
    white-space: pre;
}

.left-column,
.right-column {
    flex: 1;
}

.controls h3 {
    font-size: 16px;
    color: #444;
}

.control-group {
    margin-bottom: 10px;
}

.control-group label {
    display: block;
    font-size: 11px;
    margin-bottom: 4px;
    font-weight: bold;
}

.control-group input[type=range] {
    width: 100%;
    cursor: pointer;
}

/* 输入框样式 */
textarea {
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    /* 确保padding不撑破宽度 */
    font-family: 'Consolas', 'Monaco', monospace;
    /* 等宽字体方便对齐 */
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    resize: vertical;
    /* 允许垂直拉伸 */
    background: rgba(255, 255, 255, 0.9);
}

textarea:focus {
    outline: none;
    border-color: #666;
}

/* 按钮样式 */
button {
    width: 100%;
    margin-top: 5px;
    padding: 6px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

button:hover {
    background-color: #333;
}

.container_que {
    text-align: center;
}

.container_que img {
    max-width: 100%;
    height: auto;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
}