body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 90%;
}

h1 {
    color: #333;
    margin-top: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.status, .moves {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

#game-board {
    display: inline-block;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.board-row {
    display: flex;
}

.cell {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin: 2px;
    transition: transform 0.2s ease;
}

.cell:hover {
    transform: scale(1.1);
}

.cell::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cell.cat::before {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    box-shadow: 0 0 15px rgba(255, 154, 158, 0.7);
    z-index: 1;
}

.cell.cat::after {
    content: '🐱';
    position: absolute;
    font-size: 24px;
    z-index: 2;
    animation: catIdle 2s infinite ease-in-out;
}

@keyframes catIdle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cell.blocked::before {
    background: linear-gradient(45deg, #333, #666);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cell.empty::before {
    background-color: #f0f0f0;
}

.controls {
    margin-top: 25px;
}

#reset-btn {
    padding: 12px 25px;
    font-size: 1.1em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#reset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#reset-btn:active {
    transform: translateY(1px);
}

.win-message {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: winPulse 1s infinite;
}

@keyframes winPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.lose-message {
    color: #f44336;
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: loseShake 0.5s infinite;
}

@keyframes loseShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    font-size: 1em;
    color: #333;
}

.instructions h3 {
    margin-top: 0;
    color: #667eea;
}

.instructions ul {
    text-align: left;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }
    
    .cell {
        width: 30px;
        height: 30px;
        margin: 1px;
    }
    
    .cell::before {
        width: 24px;
        height: 24px;
    }
    
    .cell.cat::after {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cell {
        width: 25px;
        height: 25px;
    }
    
    .cell::before {
        width: 20px;
        height: 20px;
    }
    
    .cell.cat::after {
        font-size: 14px;
    }
}