/* ================================================== */
/* 新增: css/tech-enhancements.css (科技增强样式)      */
/* ================================================== */

:root {
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-blue: #3366ff;
    --dark-bg: #0a0f1e;
    --glass-bg: rgba(16, 22, 40, 0.7);
    --grid-color: rgba(0, 255, 255, 0.1);
}

/* 3D背景容器 */
#three-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

#3d-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* 科技感扫描线 */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-cyan), 
        var(--neon-magenta), 
        transparent
    );
    animation: scanline 8s linear infinite;
    opacity: 0.3;
    z-index: 5;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -10px; }
    100% { top: 100%; }
}

/* 网格背景覆盖 */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

/* 终端效果 */
.terminal-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    margin: 30px 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.terminal-window {
    background: #0a0f1e;
    color: #0f0;
}

.terminal-header {
    background: #1a1f2e;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-title {
    color: var(--neon-cyan);
    font-weight: bold;
}

.terminal-controls {
    color: #666;
    cursor: pointer;
}

.terminal-body {
    padding: 20px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: #0a0f1e;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-line {
    color: #0f0;
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line.user-input {
    color: var(--neon-cyan);
}

.terminal-line.output {
    color: #fff;
    margin-left: 20px;
    margin-bottom: 10px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #0a0f1e;
    border-top: 1px solid #333;
}

.terminal-prompt {
    color: var(--neon-cyan);
    margin-right: 10px;
    font-weight: bold;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
}

/* 数据卡片 */
.data-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.data-card:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
    transform: translateY(-5px);
}

.data-card h3 {
    color: var(--neon-cyan);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 监控面板 */
.monitor-panel {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    border: 1px solid var(--neon-cyan);
    padding: 20px;
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.monitor-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.monitor-label {
    color: #a0b0d0;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.monitor-value {
    color: var(--neon-cyan);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.monitor-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.monitor-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: 3px;
}

/* 3D模型查看器 */
.model-viewer {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
    margin: 30px 0;
}

/* 语音控制按钮 */
.voice-control-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--neon-cyan), var(--neon-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.voice-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.6);
}

.voice-control-btn.listening {
    background: linear-gradient(145deg, #ff3333, #ff0066);
    animation: pulse-listening 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 60px rgba(255, 0, 255, 0.8); }
}

@keyframes pulse-listening {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 80px rgba(255, 0, 0, 0.9); }
}

/* 语音通知 */
.voice-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 30px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.voice-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* 图表容器 */
.chart-container {
    height: 300px;
    margin: 20px 0;
}

/* 性能指标卡片 */
.metric-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.metric-card:hover {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--neon-cyan);
    margin: 10px 0;
}

.metric-label {
    color: #a0b0d0;
    font-size: 0.9rem;
}

/* 进度环 */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s;
    transform-origin: 50% 50%;
}

/* 数据流效果 */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: stream 3s infinite;
}

@keyframes stream {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* 科技感滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1f2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--neon-magenta), var(--neon-cyan));
}

/* 响应式调整 */
@media (max-width: 768px) {
    .voice-control-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .monitor-grid {
        grid-template-columns: 1fr;
    }
    
    .model-viewer {
        height: 300px;
    }
}