body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e0e0e0"/><circle cx="20" cy="20" r="5" fill="%23d0d0d0"/><circle cx="50" cy="40" r="7" fill="%23d0d0d0"/><circle cx="80" cy="25" r="6" fill="%23d0d0d0"/><circle cx="30" cy="70" r="8" fill="%23d0d0d0"/><circle cx="70" cy="75" r="5" fill="%23d0d0d0"/></svg>');
}

.game-container {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.game-info {
    margin-bottom: 20px;
}

.status {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #e0e0e0;
    color: #333;
}

.status.player1-turn {
    background-color: #ffebee;
    color: #c62828;
}

.status.player2-turn {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status.win {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status.draw {
    background-color: #ffecb3;
    color: #ff8f00;
}

.scores {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.score {
    font-size: 18px;
    font-weight: bold;
}

.player1 {
    color: #c62828;
}

.player2 {
    color: #2e7d32;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    margin: 30px auto;
    max-width: 500px;
    background-color: #1e88e5;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cell {
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cell:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* 添加棋子下落动画 */
.cell.player1, .cell.player2 {
    animation: dropAnimation 0.3s ease-out;
}

@keyframes dropAnimation {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.cell.player1 {
    background-color: #f44336;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.cell.player2 {
    background-color: #4caf50;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.cell.win {
    animation: winAnimation 1s infinite;
}

@keyframes winAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.controls {
    margin: 20px 0;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1976D2;
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 8px;
    text-align: left;
}

.instructions h3 {
    margin-top: 0;
    color: #1976d2;
}

.instructions p {
    margin: 10px 0;
    color: #555;
}

@media (max-width: 600px) {
    .game-container {
        padding: 20px;
    }
    
    .status {
        font-size: 20px;
    }
    
    .scores {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-board {
        max-width: 90%;
        padding: 10px;
    }
}