:root {
    --primary: #0ff;
    --secondary: #f0f;
    --background: #111;
    --card-bg: rgba(0, 0, 20, 0.7);
    --text: #fff;
    --text-dim: #aaa;
    --danger: #f00;
    --success: #0f0;
    --warning: #ff0;
    --online: #0f0;
    --offline: #f00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.cyber-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.cyber-card {
    background: var(--card-bg);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3),
                inset 0 0 10px rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    padding: 30px;
    width: 100%;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cyber-header {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.cyber-title {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
}

.cyber-glitch {
    color: var(--primary);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.cyber-glitch::before, .cyber-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-glitch::before {
    color: var(--secondary);
    animation: glitch-effect 3s infinite linear alternate-reverse;
    z-index: -1;
}

.cyber-glitch::after {
    color: var(--primary);
    animation: glitch-effect 2s infinite linear alternate-reverse;
    z-index: -2;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.cyber-subtitle {
    color: var(--primary);
    margin: 20px 0 15px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 5px;
}

.cyber-form {
    margin-bottom: 30px;
}

.cyber-input-group {
    margin-bottom: 20px;
    position: relative;
}

.cyber-label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 0.9rem;
}

.cyber-input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 30, 0.5);
    border: 1px solid var(--primary);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.cyber-input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cyber-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.cyber-input:focus ~ .cyber-bar {
    width: 100%;
}

.cyber-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--background);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 10px;
    font-weight: bold;
}

.cyber-button:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    transform: translateY(-2px);
}

.cyber-button-text {
    position: relative;
    z-index: 2;
}

.cyber-button-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.cyber-button:hover .cyber-button-lights {
    transform: translateX(100%);
}

.cyber-button-small {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--background);
    border: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-left: 5px;
    font-weight: bold;
}

.cyber-button-small:hover {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cyber-button-small.danger {
    background: linear-gradient(45deg, #f00, #f0f);
}

.cyber-input-small {
    width: 150px;
    padding: 5px;
    background: rgba(0, 0, 30, 0.5);
    border: 1px solid var(--primary);
    color: var(--text);
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s;
    margin-right: 5px;
}

.cyber-input-small:focus {
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.cyber-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cyber-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cyber-table th, .cyber-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.cyber-table th {
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.cyber-table tr:hover {
    background: rgba(0, 255, 255, 0.05);
}

.cyber-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.cyber-status.online {
    background-color: var(--online);
    color: #000;
}

.cyber-status.offline {
    background-color: var(--offline);
    color: #fff;
}

.cyber-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cyber-inline-form {
    display: inline;
}

.cyber-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.cyber-tab {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-dim);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.cyber-tab:hover {
    color: var(--primary);
}

.cyber-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.cyber-tab-content {
    display: none;
}

.cyber-tab-content.active {
    display: block;
}

.cyber-alert {
    padding: 10px 15px;
    margin-bottom: 20px;
    background: rgba(255, 0, 0, 0.2);
    border-left: 3px solid var(--danger);
    color: var(--danger);
}

.cyber-logout {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cyber-logout:hover {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* 动画效果 */
@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.5;
    }
}

.cyber-card {
    animation: flicker 8s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cyber-card {
        padding: 20px;
    }
    
    .cyber-title {
        font-size: 2rem;
    }
    
    .cyber-actions {
        flex-direction: column;
    }
    
    .cyber-button-small {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    
    .cyber-input-small {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
}