﻿.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.content {
    display: flex;
    flex-wrap: wrap;
    padding: 4px
}

.left-panel {
    flex: 1;
    min-width: 320px;
    padding: 4px;
}
.right-panel {
    flex: 1;
    min-width: 300px;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 8px;
}
.character-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: center;
    height: 355px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
#character-target {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    z-index: 2;
}
#grid-canvas {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    z-index: 1;
    pointer-events: none;
}
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}
button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}
button:active {
    transform: translateY(0);
}
button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}
.btn-play {
    background: #2ecc71;
}
.btn-play:hover {
    background: #27ae60;
}
.btn-pause {
    background: #f39c12;
}
.btn-pause:hover {
    background: #d35400;
}
.btn-reset {
    background: #e74c3c;
}
.btn-reset:hover {
    background: #c0392b;
}
.btn-sound {
    background: #9b59b6;
    padding: 8px 15px;
}
.btn-sound:hover {
    background: #8e44ad;
}
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}
.option {
    display: flex;
    align-items: center;
    gap: 8px;
}
input[type=range] {
    width: 100px;
}
.vocabulary {
    text-align: center;
}
.pinyin {
    background: white;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.character {
    font-size: 3.5rem;
    line-height: 1.4;
    margin: 20px 0;
    font-family: 'SimSun', 'NSimSun', 'STKaiti', 'KaiTi', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.meaning {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.examples {
    text-align: left;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.examples h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.example-word {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.example-word:hover {
    background-color: #f8f9fa;
}
.voice-btn {
    background: #9b59b6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.voice-btn:hover {
    background: #8e44ad;
    transform: scale(1.1);
}


@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
}
