body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
.cyber-overlay {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 39, 0.85);
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: gridFlow 20s linear infinite;
}

@keyframes gridFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.neon-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(-50px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}
.nexus-container {
    position: relative;
    z-index: 2;
}

.quantum-hub {
    position: relative;
}

.matrix-section {
    padding: 40px 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.matrix-section:not(.active) {
    opacity: 0;
    transform: translateY(20px);
}

.hero-terminal {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.4),
        inset 0 0 40px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.hero-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    animation: scan 4s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.terminal-header {
    background: linear-gradient(135deg, #001a2e, #003d5c, #001a2e);
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #00ffff;
    position: relative;
}

.terminal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: headerGlow 3s infinite;
}

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

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.terminal-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: dotPulse 2s infinite;
}

.terminal-dot.red {
    background: linear-gradient(45deg, #ff3333, #ff6666);
    box-shadow: 0 0 15px #ff5555;
}

.terminal-dot.red::after {
    background: #ffffff;
}

.terminal-dot.yellow {
    background: linear-gradient(45deg, #ffdd33, #ffee66);
    box-shadow: 0 0 15px #ffff55;
}

.terminal-dot.yellow::after {
    background: #ffffff;
}

.terminal-dot.green {
    background: linear-gradient(45deg, #33ff33, #66ff66);
    box-shadow: 0 0 15px #55ff55;
}

.terminal-dot.green::after {
    background: #ffffff;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.terminal-title {
    color: #00ffff;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffff;
    margin-left: 20px;
    letter-spacing: 2px;
}

.terminal-content {
    padding: 50px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
}

.cyber-title {
    font-size: 52px;
    font-weight: bold;
    color: #00ffff;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 60px #00ffff;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    animation: glitch-1 0.8s infinite;
    color: #ff0080;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.8s infinite;
    color: #00ff80;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% {
        transform: translate(0);
    }
    15%, 49% {
        transform: translate(-3px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% {
        transform: translate(0);
    }
    21%, 62% {
        transform: translate(3px, -2px);
    }
}

.cyber-subtitle {
    font-size: 20px;
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 1px;
}

.typing-text {
    overflow: hidden;
    border-right: 3px solid #00ffff;
    white-space: nowrap;
    animation: typing 4s steps(40) 1s 1 normal both;
}

.cursor {
    animation: blink 1.2s infinite;
    color: #00ffff;
    font-weight: bold;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.data-matrix {
    margin-top: 50px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.data-node {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.data-node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, transparent, #00ffff);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.data-node:hover::before {
    opacity: 1;
}

.data-node:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.6),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-8px) scale(1.02);
}

.node-icon {
    font-size: 36px;
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ffff;
    transition: all 0.3s ease;
}

.data-node:hover .node-icon {
    transform: scale(1.1);
    text-shadow: 0 0 30px #00ffff;
}

.data-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px #ffffff;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.data-label {
    font-size: 16px;
    color: #a0a0a0;
    letter-spacing: 1px;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.node-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 3px solid #00ffff;
    border-radius: 15px;
    animation: pulse 3s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.neural-interface {
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.95), rgba(0, 20, 40, 0.9));
    border: 2px solid #00ffff;
    border-radius: 20px;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.4),
        inset 0 0 50px rgba(0, 255, 255, 0.1);
    position: relative;
}

.neural-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.interface-tabs {
    position: relative;
    background: linear-gradient(135deg, #001122, #002244, #001122);
    border-bottom: 2px solid #00ffff;
}

.tab-scanner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 20px #00ffff;
    animation: scanTabs 5s infinite linear;
}

@keyframes scanTabs {
    0% { left: 0; }
    100% { left: calc(100% - 4px); }
}

.neural-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.nav-node {
    flex: 1;
    position: relative;
}

.node-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px;
    color: #a0a0a0;
    text-decoration: none;
    position: relative;
    transition: all 0.4s ease;
    border-right: 1px solid rgba(0, 255, 255, 0.3);
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.nav-node:last-child .node-link {
    border-right: none;
}

.nav-node.active .node-link,
.node-link:hover {
    color: #00ffff;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    text-shadow: 0 0 15px #00ffff;
}

.node-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    transition: all 0.4s ease;
    position: relative;
}

.node-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #333;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.nav-node.active .node-indicator,
.node-link:hover .node-indicator {
    background: #00ffff;
    box-shadow: 0 0 20px #00ffff;
}

.nav-node.active .node-indicator::after,
.node-link:hover .node-indicator::after {
    background: #ffffff;
}

.node-text {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
}

.node-beam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 15px #00ffff;
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.nav-node.active .node-beam,
.node-link:hover .node-beam {
    width: 90%;
}

.data-stream {
    padding: 40px;
    position: relative;
}

.stream-container {
    position: relative;
}

.stream-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    border: 2px solid #00ffff;
    border-radius: 12px;
}

.stream-signal {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, #00ff00, #00cc00);
    box-shadow: 0 0 20px #00ff00;
    animation: signalBlink 1.5s infinite;
    position: relative;
}

.stream-signal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

@keyframes signalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.stream-text {
    color: #00ffff;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffff;
    letter-spacing: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.data-packet {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.9), rgba(0, 10, 30, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.data-packet::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, transparent, #00ffff);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.data-packet:hover::before {
    opacity: 1;
}

.data-packet:hover {
    border-color: #00ffff;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.packet-header {
    background: linear-gradient(135deg, #001a33, #002d4d, #001a33);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.packet-id {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ffff;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 1px;
}

.packet-status {
    display: flex;
    gap: 10px;
}

.status-new,
.status-hot {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 15px;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 1px;
}

.status-new {
    background: linear-gradient(45deg, #00ff80, #00cc60);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.6);
}

.status-hot {
    background: linear-gradient(45deg, #ff4040, #ff6060);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 64, 64, 0.6);
}

.packet-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.packet-content {
    padding: 25px;
}

.packet-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    line-height: 1.5;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.data-packet:hover .packet-title {
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
}

.packet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #a0a0a0;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.meta-item:hover {
    color: #00ffff;
}

.meta-item i {
    color: #00ffff;
    font-size: 16px;
    text-shadow: 0 0 10px #00ffff;
}

.packet-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.data-packet:hover .packet-beam {
    left: 100%;
}

.packet-tags {
    padding: 20px 25px;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cyber-tag {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.cyber-tag:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.1));
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    color: #00ffff;
    transform: translateY(-2px);
}

.void-state {
    text-align: center;
    padding: 100px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.void-icon {
    font-size: 80px;
    margin-bottom: 25px;
    opacity: 0.6;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
}

.void-message {
    font-size: 20px;
    margin-bottom: 35px;
    color: #a0a0a0;
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.void-lines {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.void-lines span {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    display: block;
    animation: voidPulse 2s infinite ease-in-out;
    border-radius: 2px;
}

.void-lines span:nth-child(2) {
    animation-delay: 0.4s;
}

.void-lines span:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes voidPulse {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

@media (max-width: 768px) {
    .cyber-title {
        font-size: 36px;
    }

    .terminal-content {
        padding: 30px;
    }

    .matrix-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .neural-nav {
        flex-direction: column;
    }

    .node-link {
        padding: 18px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    }

    .nav-node:last-child .node-link {
        border-bottom: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .data-stream {
        padding: 25px;
    }

    .packet-meta {
        gap: 12px;
    }

    .cyber-subtitle {
        font-size: 18px;
    }

    .typing-text {
        animation: none;
        border-right: none;
        white-space: normal;
    }

    .terminal-title {
        font-size: 14px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 12px 20px;
    }

    .terminal-title {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .cyber-title {
        font-size: 28px;
    }

    .terminal-content {
        padding: 25px;
    }

    .data-node {
        padding: 25px;
    }

    .data-value {
        font-size: 28px;
    }

    .packet-content {
        padding: 20px;
    }

    .packet-title {
        font-size: 16px;
    }

    .stream-header {
        padding: 15px 20px;
    }

    .matrix-section {
        padding: 25px 0;
    }

    .data-stream {
        padding: 20px;
    }

    .void-state {
        padding: 60px 15px;
    }

    .void-icon {
        font-size: 60px;
    }

    .void-message {
        font-size: 16px;
    }
}
