* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.handwriting-container {
    margin-bottom: 2rem;
    text-align: center;
}

#handwritingCanvas {
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: crosshair;
    margin-bottom: 1rem;
}

.canvas-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.canvas-controls button {
    background-color: #2196F3;
}

.canvas-controls button:hover {
    background-color: #1976D2;
}

.result-container {
    text-align: center;
}

.character-display {
    font-size: 5rem;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copy-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #2196F3;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #1976D2;
} 