/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

/* 导航栏 */
.navbar {
    background-color: #2c3e50;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    margin-right: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 服务器网格 */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 服务器卡片 */
.server-card {
    background: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 添加玩家列表容器样式 */
.server-content {
    max-height: 400px;  /* 设置最大高度 */
    overflow-y: auto;   /* 添加垂直滚动条 */
    scrollbar-width: thin;  /* Firefox的滚动条样式 */
    scrollbar-color: #3498db #2c3e50;  /* Firefox的滚动条颜色 */
}

/* Webkit浏览器的滚动条样式 */
.server-content::-webkit-scrollbar {
    width: 8px;
}

.server-content::-webkit-scrollbar-track {
    background: #2c3e50;
    border-radius: 4px;
}

.server-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.server-content::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.server-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #34495e;
}

.server-name {
    font-size: 1.2em;
    color: #3498db;
    margin-bottom: 10px;
}

.server-info p {
    margin: 8px 0;
    color: #ecf0f1;
}

.online-count {
    color: #2ecc71;
    font-weight: bold;
}

/* 按钮样式 */
.join-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.join-btn:hover {
    background-color: #2980b9;
}

.refresh-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.refresh-btn:hover {
    background-color: #2980b9;
}

/* 玩家表格 */
.player-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.player-table th, 
.player-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #34495e;
}

.player-table th {
    color: #3498db;
}

/* 错误提示 */
.error {
    color: #e74c3c;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
} 