* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f0f8f1;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c5530;
    margin-bottom: 2rem;
}

.detection-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instructions {
    background-color: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.instructions p {
    margin: 0.5rem 0;
    color: #2c5530;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #4caf50;
    color: white;
}

.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.button:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-2px);
}

.status {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin: 1rem 0;
}

.visualization {
    width: 100%;
    height: 150px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

canvas {
    width: 100%;
    height: 100%;
}

.result {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.result h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.confidence-meter {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.confidence-bar {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    transition: width 0.5s ease;
}

.suggestion {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #2c5530;
}