body {
    background: #FCE4EC;
    font-family: 'Comic Sans MS', cursive;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    background: #FF80AB;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.score-board {
    display: flex;
    justify-content: space-around;
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 800px;
    padding: 10px;
}

.letter-box {
    background: #FFF59D;
    border: 3px solid #FFD600;
    border-radius: 15px;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    box-shadow: none;
}

.letter-box.selected {
    background: #C5E1A5;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.letter-box:hover {
    background: #FFF176;
    border-color: #FFC107;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #FF80AB;
    border-radius: 20px;
    font-size: 18px;
}

footer p {
    font-size: 14px;  /* 4号字约为14px */
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

footer img {
    width: 70px;
    height: 70px;
    background: transparent;
    object-fit: contain;
}

.emotion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    animation: pop 0.5s;
    z-index: 1000;
}

@keyframes pop {
    0% { transform: scale(0) translate(-50%, -50%); }
    90% { transform: scale(1.2) translate(-50%, -50%); }
    100% { transform: scale(1) translate(-50%, -50%); }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.control-btn {
    background: #FF80AB;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    background: #FF4081;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.active {
    background: #4CAF50;
}