/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: #000;
    color: #00ff41;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 主容器 */
.zyh-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid #00ff41;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.left-panel {
    display: flex;
    align-items: center;
    gap: 30px;
}

.app-logo {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #00ff41;
    border: 1px solid #00ff41;
    padding: 5px 15px;
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.time-display {
    text-align: center;
}

.time {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 0 10px #00ff41;
}

.date {
    font-size: 10px;
    opacity: 0.8;
}

.center-panel {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tabs {
    display: flex;
    gap: 2px;
}

.tab {
    padding: 5px 20px;
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab.active {
    background-color: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.tab:hover {
    background-color: rgba(0, 255, 65, 0.15);
}

.right-panel {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fullscreen-btn {
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.fullscreen-btn:hover {
    background-color: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.fullscreen-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.system-type {
    font-size: 10px;
    opacity: 0.8;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex: 1;
    padding: 10px;
    gap: 10px;
    overflow: hidden;
}

/* 监控面板通用样式 */
.left-monitor, .right-monitor {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.monitor-section {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 5px;
}

/* 系统信息样式 */
.system-info, .network-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    opacity: 0.9;
}

.label {
    text-transform: uppercase;
    opacity: 0.7;
}

.value {
    font-weight: bold;
}

/* 图表样式 */
.cpu-graph, .network-graph {
    margin-bottom: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cpuCanvas, #networkCanvas {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

/* 内存条样式 */
.memory-bar {
    height: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff41;
    margin-bottom: 10px;
    overflow: hidden;
}

.memory-fill {
    height: 100%;
    background-color: #00ff41;
    box-shadow: 0 0 10px #00ff41;
    transition: width 0.5s ease;
    width: 50%;
}

/* 进程列表 */
.process-list {
    max-height: 150px;
    overflow-y: auto;
    font-size: 9px;
}

.process-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

/* 世界地图 */
.world-map {
    height: 120px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.offline-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* 终端样式 */
.terminal-container {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.terminal-header {
    padding: 8px 15px;
    border-bottom: 1px solid #00ff41;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(0, 255, 65, 0.05);
}

.terminal {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.4;
}

.terminal-output {
    margin-bottom: 10px;
}

.terminal-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt {
    color: #00ff41;
}

#terminalInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
}

.cursor {
    width: 8px;
    height: 16px;
    background-color: #00ff41;
    animation: blink 1s infinite;
}

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

/* 底部区域 */
.bottom-area {
    display: flex;
    height: 250px;
    gap: 0;
}

/* 文件系统样式 */
.file-system {
    width: 350px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    border-right: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    overflow: hidden;
}

.file-system-header {
    width: 100px;
    padding-right: 10px;
    border-right: 1px solid rgba(0, 255, 65, 0.3);
}

.file-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
    min-width: 80px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
}

.file-item:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.file-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.file-name {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* 磁盘信息 */
.disk-info {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    border-left: none;
}

.disk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.disk-icon {
    font-size: 20px;
}

.disk-details {
    font-size: 10px;
}

.disk-name {
    margin-bottom: 2px;
}

.disk-usage {
    opacity: 0.7;
}

/* 虚拟键盘样式 */
.keyboard-container {
    flex: 1;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff41;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px;
}

.keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.key-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.key {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 12px 15px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.1);
}

.key:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.key:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* 特殊按键样式 */
.key.tab {
    min-width: 60px;
}

.key.caps {
    min-width: 70px;
}

.key.shift {
    min-width: 80px;
}

.key.enter {
    min-width: 85px;
}

.key.backspace {
    min-width: 80px;
}

.key.space {
    min-width: 300px;
}

.key.ctrl, .key.alt, .key.fn, .key.altgr {
    min-width: 50px;
    opacity: 0.7;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}

/* 终端行样式 */
.line {
    margin-bottom: 5px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .left-monitor, .right-monitor {
        width: 150px;
    }
    
    .file-system {
        height: 120px;
    }
    
    .keyboard-container {
        height: 150px;
    }
    
    .key {
        padding: 8px 10px;
        min-width: 30px;
        font-size: 10px;
    }
}

/* 装逼功能样式 */
.hack-item {
    background-color: rgba(255, 0, 0, 0.1);
    border-color: #ff0041;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.hack-item:hover {
    background-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    transform: translateY(-3px);
}

.hack-item .file-icon {
    color: #ff0041;
    text-shadow: 0 0 10px #ff0041;
}

/* 弹窗样式 */
.hack-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff41;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
    width: 450px;
    max-width: 90%;
    z-index: 1000;
    display: none;
    font-family: 'Orbitron', monospace;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    background-color: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid #00ff41;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #00ff41;
}

.modal-close {
    background: transparent;
    border: none;
    color: #00ff41;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ff0041;
    text-shadow: 0 0 15px #ff0041;
    transform: rotate(90deg);
}

.modal-content {
    padding: 20px;
}

.modal-text {
    font-size: 14px;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

.modal-action-hint {
    font-size: 11px;
    color: #ffff00;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ffff00;
    font-style: italic;
}

/* 加密货币选项 */
.crypto-options, .system-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.crypto-option, .system-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.crypto-option:hover, .system-option:hover {
    background-color: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
    transform: translateX(5px);
}

.crypto-option.selected, .system-option.selected {
    background-color: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
    border-color: #00ff41;
}

.crypto-icon, .system-icon {
    font-size: 24px;
    min-width: 30px;
}

.crypto-info {
    flex: 1;
}

.crypto-name {
    font-size: 14px;
    font-weight: bold;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crypto-symbol {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.system-name {
    font-size: 12px;
    font-weight: bold;
    color: #00ff41;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 弹窗底部 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.modal-button {
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 0 10px #00ff41;
}

.modal-button:hover {
    background-color: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

.hack-button {
    background-color: rgba(255, 0, 0, 0.2);
    border-color: #ff0041;
    color: #ff0041;
    text-shadow: 0 0 15px #ff0041;
}

.hack-button:hover {
    background-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zyh-container {
        overflow-y: auto;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .left-monitor, .right-monitor {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .monitor-section {
        min-width: 200px;
    }
    
    .bottom-area {
        flex-direction: column;
        height: auto;
    }
    
    .file-system {
        width: 100%;
        height: 200px;
        border-right: 1px solid #00ff41;
        border-bottom: none;
    }
    
    .keyboard-container {
        width: 100%;
        height: 200px;
    }
    
    .hack-modal {
        width: 95%;
    }
}

/* 模态框显示状态 */
.hack-modal.show {
    display: block;
}

/* 拖动时的样式 */
.hack-modal.dragging {
    cursor: move;
    box-shadow: 0 0 70px rgba(0, 255, 65, 0.7);
}

/* 终端输出的黑客消息样式 */
.hack-message {
    color: #ff0041 !important;
    text-shadow: 0 0 10px #ff0041;
}