* { box-sizing: border-box; }
body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0f2fe;
    font-family: 'Roboto Mono', monospace;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}
.particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
h1 { font-family: 'Orbitron', sans-serif; color: #00ffea; text-shadow: 0 0 20px #00ffea; }
.subtitle { font-size: 0.6em; color: #a0eaff; }

/* 登录页 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    z-index: 1;
    position: relative;
}
.login-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 234, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
}
.input-group input {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    background: rgba(255,255,255,0.1);
    border: none;
    border-bottom: 2px solid #00ffea;
    color: white;
    font-size: 16px;
}
.input-group input:focus {
    outline: none;
    border-bottom-color: #ff00ff;
}
.login-btn {
    background: linear-gradient(45deg, #00ffea, #ff00ff);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.login-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,255,234,0.5);
}
.tip { color: #888; font-size: 0.9em; margin-top: 20px; }

/* 仪表盘 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.glow-btn {
    background: linear-gradient(45deg, #00ffea, #ff00ff);
    border: none;
    box-shadow: 0 0 20px rgba(0,255,234,0.5);
}
.client-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,255,234,0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}
.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,255,234,0.2);
}
.card-header {
    background: rgba(0,255,234,0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 { margin: 0; color: #00ffea; }
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}
.status-normal .status-badge { background: rgba(0,200,0,0.3); color: #0f0; }
.status-warning .status-badge { background: rgba(255,200,0,0.3); color: #ff0; }
.status-error .status-badge, .status-offline .status-badge { background: rgba(200,0,0,0.3); color: #f00; }

.card-body { padding: 20px; }
.ip-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.ip-line.normal { color: #0f0; }
.ip-line.warning { color: #ff0; }
.ip-line.error { color: #f00; }
.footer { margin-top: 15px; font-size: 0.9em; color: #aaa; }

/* 管理页 */
.admin-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0,255,234,0.3);
}