* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    background: #f4f5f7;
    color: #212121;
    min-height: 100vh;
    padding: 0;
    font-size: 16px;
}

/* 顶部导航栏 - 类似B站 */
.header-nav {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 30px;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00a1d6;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    margin-left: 40px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #e5e9ef;
    color: #00a1d6;
}

/* 主要容器 */
.container {
    width: 100%;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 表单区域 */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #212121;
    font-size: 16px;
}

input, select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e9ef;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fff;
}

input:focus, select:focus {
    border-color: #00a1d6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 161, 214, 0.2);
}

.btn {
    background: #00a1d6;
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #00b5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 结果容器 */
.result-container {
    padding: 25px 0;
    display: none;
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.server-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 2px solid #e5e9ef;
    overflow: hidden;
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.server-info {
    background: #f4f5f7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e9ef;
}

.info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    width: 120px;
    color: #666;
    font-size: 16px;
}

.info-value {
    flex: 1;
    color: #212121;
    font-size: 16px;
}

.status-online {
    color: #00a1d6;
    font-weight: 600;
}

.status-offline {
    color: #ff6666;
    font-weight: 600;
}

.status-error {
    color: #ff9900;
    font-weight: 600;
}

.players-bar {
    height: 10px;
    background: #e5e9ef;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 6px;
}

.players-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a1d6, #00b5e5);
    border-radius: 5px;
}

/* 玩家列表样式 */
.player-list-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e9ef;
}

.player-list-container h3 {
    margin-bottom: 20px;
    color: #212121;
    font-size: 1.3em;
    font-weight: 500;
}

.player-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.player-item {
    padding: 12px 15px;
    background: #f4f5f7;
    border: 1px solid #e5e9ef;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    font-size: 16px;
}

.player-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.player-name {
    font-weight: 500;
    color: #212121;
}

.player-id {
    color: #999;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

footer {
    text-align: center;
    padding: 25px;
    color: #999;
    font-size: 1em;
    border-top: 1px solid #e5e9ef;
    background: #f4f5f7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 20px;
        height: 50px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-links {
        margin-left: 20px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .container {
        margin: 15px;
        border-radius: 0;
        max-width: 100%;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .player-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .player-id {
        margin-top: 8px;
        font-size: 0.8em;
    }
    
    .server-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    /* MOTD响应式调整 */
    .motd-container {
        height: 80px !important;
    }
    
    .motd-icon {
        width: 60px !important;
        height: 60px !important;
        top: 10px !important;
        left: 10px !important;
        font-size: 30px !important;
    }
    
    .motd-info {
        left: 75px !important;
        top: 12px !important;
    }
    
    .motd-server-info {
        font-size: 14px !important;
    }
    
    .motd-text {
        font-size: 12px !important;
    }
    
    .motd-status-panel {
        width: 100px !important;
        top: 12px !important;
    }
    
    .motd-status, .motd-players {
        font-size: 12px !important;
    }
    
    .motd-version {
        font-size: 10px !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .container {
        margin: 10px;
    }
    
    .info-label {
        font-size: 14px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .player-item {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .player-name {
        font-size: 14px;
    }
    
    footer {
        padding: 15px;
        font-size: 0.9em;
    }
}
