* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

header p {
    color: #666;
    font-size: 16px;
}

.game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

#revealBtn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

#newGameBtn {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.crossword-container {
    display: flex;
    justify-content: center;
}

.crossword-grid {
    display: grid;
    grid-template-columns: repeat(10, 40px);
    grid-template-rows: repeat(10, 40px);
    gap: 1px;
    background-color: #333;
    border: 2px solid #333;
}

.cell {
    width: 40px;
    height: 40px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.cell.black {
    background-color: #000;
}

.cell.highlighted {
    background-color: #e3f2fd;
}

.cell.selected {
    background-color: #bbdefb;
}

.cell.correct {
    background-color: #c8e6c9;
}

.cell.incorrect {
    background-color: #ffcdd2;
}

.cell-number {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 10px;
    color: #333;
}

.clues-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.clues-column {
    min-width: 300px;
}

.clues-column h3 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.clues-list {
    list-style-type: none;
}

.clues-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clues-list li:hover {
    background-color: #e0e0e0;
}

.clues-list li.active {
    background-color: #bbdefb;
    font-weight: bold;
}

.instructions {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #333;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .crossword-grid {
        grid-template-columns: repeat(10, 30px);
        grid-template-rows: repeat(10, 30px);
    }
    
    .cell {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .clues-container {
        flex-direction: column;
        align-items: center;
    }
    
    .clues-column {
        width: 100%;
    }
}