* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

/* 顶部导航栏 */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.server-icon-container {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.server-name {
    margin-left: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 选项卡 */
.tabs {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.tab {
    padding: 10px 24px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab:hover {
    background: #e0e0e0;
}

.tab.active {
    background: #4a90d9;
    color: #fff;
}

.tab-icon {
    font-size: 16px;
}

/* 主内容区 */
.main-content {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 24px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

.status-online {
    background: #d4edda;
    color: #155724;
}

.status-offline {
    background: #f8d7da;
    color: #721c24;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online .status-dot {
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-offline .status-dot {
    background: #dc3545;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 服务器信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.info-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 玩家列表 */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.player-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e9ecef;
    transition: background 0.2s;
}

.player-card:hover {
    background: #e9ecef;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #4a90d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.player-name {
    font-weight: 500;
    color: #333;
}

.no-players {
    text-align: center;
    padding: 48px 20px;
    color: #6c757d;
}

.no-players-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.online-count {
    font-size: 14px;
    color: #6c757d;
    margin-left: 8px;
    font-weight: normal;
}

/* 刷新按钮 */
.refresh-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4a90d9;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: #357abd;
    transform: scale(1.05);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 24px;
    margin-top: 40px;
    color: #6c757d;
    font-size: 13px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* 赞助页面样式 */
.donate-content {
    text-align: center;
    padding: 20px 0;
}

.donate-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #666;
}

.qrcode-container {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}

.qrcode-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.donate-thanks {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.donate-thanks h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.donate-thanks p {
    font-size: 14px;
    color: #666;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 16px;
    }

    .server-icon-container {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .tabs {
        width: 100%;
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 1 30%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 14px;
    }

    .main-content {
        margin: 16px auto;
    }

    .card {
        padding: 16px;
    }

    .qrcode-image {
        width: 160px;
        height: 160px;
    }
}
