/* 科技感背景样式 */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1220 0%, #0d1a2d 50%, #0a1220 100%);
    z-index: 0;
    overflow: hidden;
}

/* 添加动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-10px) scale(1.02); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 174, 255, 0.3), 0 0 10px rgba(0, 174, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 174, 255, 0.5), 0 0 30px rgba(0, 174, 255, 0.3); }
    100% { box-shadow: 0 0 5px rgba(0, 174, 255, 0.3), 0 0 10px rgba(0, 174, 255, 0.2); }
}

/* 打字效果容器 */
.typing-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 1 !important; /* 强制可见 */
    visibility: visible !important; /* 强制可见 */
}

/* 发光效果 */
.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 174, 255, 0.1) 0%, rgba(5, 10, 20, 0) 70%);
    z-index: 3;
    pointer-events: none;
}

/* 打字区域样式 */
.typing-area {
    position: absolute;
    max-width: 400px;
    padding: 15px;
    background-color: rgba(8, 16, 30, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #00aeff;
    font-size: 14px;
    font-family: Consolas, monospace;
    line-height: 1.5;
    opacity: 0.8;
    transform: scale(0.9);
    transition: all 0.5s ease;
    z-index: 5;
}

/* 打字光标样式 */
.typing-cursor {
    display: inline-block;
    color: #00aeff;
    font-weight: bold;
}

/* 确保打字效果在所有内容之下，但在背景之上 */
.fullpage-container {
    position: relative;
    z-index: 10;
}

/* 确保内容可见 */
.fullpage-section {
    position: relative;
    z-index: 10;
}

/* 确保导航点可见 */
.fullpage-nav {
    z-index: 100;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .typing-area {
        max-width: 300px;
        padding: 12px;
        font-size: 12px;
    }
    
    .glow-effect {
        opacity: 0.7;
    }
}

@media (max-width: 576px) {
    .typing-area {
        max-width: 250px;
        padding: 10px;
        font-size: 11px;
    }
    
    /* 减少移动端上显示的终端窗口数量 */
    .typing-area:nth-child(n+5) {
        display: none;
    }
    
    .glow-effect {
        opacity: 0.5;
    }
}
