* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

h1 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #8B4513;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

#status {
    font-size: 1.2rem;
    font-weight: bold;
}

#current-player {
    display: inline-block;
    padding: 5px 10px;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.board-container {
    position: relative;
    width: 600px;
    height: 600px;
    flex-shrink: 0;
}

.leaderboard {
    flex-grow: 1;
    min-width: 300px;
    background-color: #f9f3e9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.player-input {
    display: flex;
    margin-bottom: 15px;
    gap: 5px;
}

#player-name {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

button {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #A0522D;
}

#save-score {
    min-width: 100px;
}

.tabs {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.tab {
    background-color: transparent;
    color: #8B4513;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab.active {
    border-bottom: 2px solid #8B4513;
    font-weight: bold;
}

.tab-content {
    flex-grow: 1;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f1e7d6;
    color: #8B4513;
    font-weight: bold;
}

tbody tr:hover {
    background-color: #f1e7d6;
}

#board {
    background-color: #DEB887;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 940px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .leaderboard {
        width: 100%;
    }
    
    .board-container {
        width: 100%;
        height: auto;
    }
    
    #board {
        width: 100%;
        height: auto;
    }
}