* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    color: white;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.controls {
    margin-bottom: 20px;
    z-index: 10;
}

.controls button {
    padding: 12px 24px;
    margin: 0 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.controls button:active {
    transform: translateY(0);
}

.controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.info {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}

#canvas-container {
    width: 100%;
    height: 70vh;
    max-width: 800px;
    cursor: grab;
}

#canvas-container:active {
    cursor: grabbing;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    
    #canvas-container {
        height: 60vh;
    }
    
    .controls button {
        padding: 10px 16px;
        font-size: 14px;
        margin: 0 5px;
    }
}
