body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f2f5;
    min-height: 100vh;
}

.game-info {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 30px;
    font-size: 1.2rem;
    gap: 20px; /* 增加元素间距 */
    align-items: center;
}

.meaning {
    color: #28a745; /* 绿色高亮 */
    max-width: 300px; /* 限制释义宽度 */
    word-wrap: break-word; /* 长释义换行 */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.game-container {
    flex: 1;
    margin: 0 20px; /* 保持与game-info的左右间距一致 */
}

.footer {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px; /* 与上方内容的间距 */
}

.game-container {
    position: relative;
    height: 80vh;
    border: 2px solid #007bff;
    border-radius: 10px;
    background-color: white;
    overflow: hidden;
}

.word {
    position: absolute;
    font-size: 24px;
    color: #007bff;
    transition: top 0.1s linear;
    user-select: none;
}

.game-over {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#restartBtn {
    padding: 10px 25px;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#restartBtn:hover {
    background-color: #0056b3;
}

.word span.matched {
    color: #28a745; /* 绿色高亮 */
    font-weight: bold;
}