.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.game-title {
    text-align: center;
    margin-bottom: 20px;
}

.game-title h1 {
    color: #2196f3;
    margin-bottom: 10px;
}

.game-title p {
    color: #666;
    font-size: 1.2em;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.score-container,
.level-container,
.mode-container {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.game-board {
    margin: 20px 0;
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.word-chain {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
}

.chain-word {
    padding: 10px 20px;
    background-color: #2196f3;
    color: white;
    border-radius: 20px;
    font-size: 1.2em;
}

.chain-arrow {
    color: #666;
    font-size: 1.5em;
    margin: 0 10px;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.word-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 1.2em;
    border: 2px solid #2196f3;
    border-radius: 4px;
    outline: none;
}

.word-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.submit-button {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #1976d2;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.suggestion-word {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #2196f3;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-word:hover {
    background-color: #e3f2fd;
    transform: translateY(-2px);
}

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

.game-button {
    padding: 10px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #2196f3;
    color: white;
    transition: all 0.3s;
}

.game-button:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
}

.hint-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3e0;
    border-radius: 8px;
    color: #f57c00;
    text-align: center;
    display: none;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .game-header {
        flex-direction: column;
        gap: 10px;
    }

    .input-section {
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }
}
