body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f7f9;
    text-align: center;
    padding: 20px;
    margin: 0;
}

.page-header {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-header h1 { color: #4a90d9; margin-bottom: 5px; }
.page-header p { color: #666; font-size: 15px; }

.container {
    max-width: 900px; /* 加宽容器 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#canvas-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.control-panel {
    background: #fff;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.control-row label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 100px;
    text-align: left;
    font-size: 16px;
}

.control-row span { color: #e74c3c; }

input[type=range] {
    flex: 1;
    cursor: pointer;
    accent-color: #4a90d9;
}

#playBtn {
    margin-top: 10px;
    background: #4a90d9;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}
#playBtn:hover { filter: brightness(0.9); }
#playBtn:disabled { background: #bdc3c7; cursor: not-allowed; }