* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a2e;
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    color: #00b4d8;
    margin-bottom: 10px;
}

header p {
    color: #8892b0;
}

main {
    max-width: 1000px;
    margin: 0 auto;
}

.server-status h2 {
    text-align: center;
    color: #00b4d8;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.servers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 服务器卡片样式 - 蓝色条形 */
.server-card {
    background: linear-gradient(90deg, #16213e 0%, #0f3460 100%);
    border: 2px solid #00b4d8;
    border-radius: 5px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
    border-color: #0077b6;
}

/* 移除原来的服务器头部样式 */
.server-header {
    display: none;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 服务器描述样式 */
.server-description {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.server-description h4 {
    display: none;
}

/* 保留HTML标签的样式，允许HTML标签设置颜色 */
.server-description p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.4;
}

/* 确保内联样式能够正确显示，不被覆盖 */
.server-description p * {
    /* 移除color: inherit !important，允许内联样式生效 */
}

/* 确保span标签的内联样式能够正确显示 */
.server-description p span {
    /* 允许内联style属性生效 */
}

/* 确保b标签的内联样式能够正确显示 */
.server-description p b {
    /* 允许内联style属性生效 */
}

/* 服务器内容布局，更紧凑 */
.server-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* 服务器信息列表样式 */
.server-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
    gap: 3px;
}

.server-meta .players-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    order: 1;
}

.server-meta .players-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00b4d8;
}

.server-meta .info-button {
    background: #00b4d8;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.server-meta .info-button:hover {
    background: #0077b6;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 180, 216, 0.3);
}

.server-meta .port {
    font-size: 0.9rem;
    color: #8892b0;
    order: 2;
}

/* 服务器内容布局，更紧凑 */
.server-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* 服务器描述和元信息容器 */
.server-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* 在线玩家列表样式 */
.players-section {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 180, 216, 0.2);
}

.players-section h4 {
    color: #00b4d8;
    font-size: 1rem;
    margin-bottom: 8px;
}

.players-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.players-list li {
    background: rgba(0, 180, 216, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.players-list li .player-link {
    color: #00b4d8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.players-list li .player-link:hover {
    color: #0077b6;
    text-decoration: underline;
}

/* 离线服务器样式 */
.server-card.offline {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    border-color: #6c757d;
    opacity: 0.7;
}

.server-card.offline:hover {
    box-shadow: none;
    transform: none;
    border-color: #6c757d;
}

/* 离线服务器信息 */
.offline-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offline-info .server-id {
    font-weight: bold;
    color: #6c757d;
}

.offline-info .status {
    color: #dc3545;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #8892b0;
    font-size: 0.9rem;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    color: #00b4d8;
    font-size: 1.1rem;
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .server-card {
        padding: 12px 15px;
    }
    
    .server-description p {
        font-size: 1rem;
    }
    
    .server-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}