/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {

    background: #0a0e17;
    color: #e0e0e0;
}

/* 登录页面 */
.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('yao.jpg');
}

.login-container {
    background: rgba(26, 31, 44, 0.8);
    border-radius: 8px;
    padding: 30px;
    width: 360px;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
    text-align: center;
}

.login-container h1 {
    color: #00ffa9;
    margin-bottom: 5px;
}

.subtitle {
    color: #7a8ba9;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #b8c7dc;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
}

#login-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #00c896, #0096ff);
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.disclaimer {
    margin-top: 20px;
    font-size: 12px;
    color: #7a8ba9;
}

/* 主界面 */
.dashboard {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background: #101826;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    color: #00ffa9;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu {
    list-style: none;
    margin-top: 20px;
    flex: 1;
}

.menu li {
    padding: 12px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.menu li:hover {
    background: rgba(0, 255, 170, 0.1);
}

.menu li.active {
    background: rgba(0, 255, 170, 0.15);
    border-left-color: #00ffa9;
}

#logout {
    margin: 20px;
    padding: 8px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    border-radius: 4px;
    cursor: pointer;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.module {
    display: none;
}

.module.active {
    display: block;
}

h2 {
    color: #00ffa9;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
}

/* 控制面板 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: rgba(26, 31, 44, 0.8);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 170, 0.1);
}

.stat-box h3 {
    color: #b8c7dc;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #00ffa9;
}

/* 模块通用样式 */
.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.controls input, .controls select {
    padding: 8px;
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
}

.controls button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #00c896, #0096ff);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.results {
    background: rgba(26, 31, 44, 0.8);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 170, 0.1);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: #00ffa9;
    background: rgba(0, 255, 170, 0.1);
}

tbody tr {
    background: rgba(10, 14, 23, 0.4);
}

.action-btn {
    padding: 5px 10px;
    background: linear-gradient(135deg, #00c896, #0096ff);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

/* 代码终端样式 */
.code-terminal {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 170, 0.3);
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 255, 170, 0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
}

.terminal-title {
    color: #00ffa9;
    font-weight: bold;
}

#start-code {
    padding: 5px 10px;
    background: linear-gradient(135deg, #00c896, #0096ff);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.terminal-body {
    height: 300px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.9);
}

.code-line {
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInCode 0.5s forwards;
}

@keyframes fadeInCode {
    to { opacity: 1; }
}

.cursor {
    background: #00ff00;
    animation: blink 1s infinite;
}

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

/* 自动滚动代码小窗口 */
.auto-code-window {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    height: 200px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 6px;
    z-index: 1000;
    overflow: hidden;
}

.auto-code-header {
    background: rgba(0, 255, 170, 0.1);
    padding: 8px 12px;
    color: #00ffa9;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
}

.auto-code-body {
    height: calc(100% - 32px);
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00ff00;
    overflow: hidden;
    line-height: 1.3;
}

.auto-line {
    margin-bottom: 2px;
    opacity: 0.8;
}

/* 动态自动代码滚动窗口 */
.auto-scroll-window {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 8px;
    height: 250px;
    overflow: hidden;
}

.scroll-header {
    background: rgba(0, 255, 170, 0.1);
    padding: 10px 15px;
    color: #00ffa9;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
}

.scroll-content {
    height: calc(100% - 40px);
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff00;
    overflow-y: auto;
    line-height: 1.4;
}

.scroll-line {
    margin-bottom: 3px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* 实时攻击代码窗口 */
.live-code-window {
    margin-top: 20px;
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid rgba(255, 0, 100, 0.3);
    border-radius: 8px;
    height: 300px;
    overflow: hidden;
}

.live-header {
    background: rgba(255, 0, 100, 0.1);
    padding: 10px 15px;
    color: #ff0064;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 0, 100, 0.2);
}

.live-body {
    height: calc(100% - 40px);
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #ff6b6b;
    overflow-y: auto;
    line-height: 1.3;
}

.live-line {
    margin-bottom: 2px;
    animation: typeIn 0.5s ease-out;
}

@keyframes typeIn {
    from { 
        opacity: 0;
        width: 0;
    }
    to { 
        opacity: 1;
        width: 100%;
    }
}

/* WiFi破解代码窗口 */
.wifi-crack-window {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 8px;
    height: 250px;
    overflow: hidden;
}

.crack-header {
    background: rgba(255, 165, 0, 0.1);
    padding: 10px 15px;
    color: #ffa500;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.crack-body {
    height: calc(100% - 40px);
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #ffff00;
    overflow-y: auto;
    line-height: 1.4;
}

.crack-line {
    margin-bottom: 3px;
    animation: crackIn 0.4s ease-out;
}

@keyframes crackIn {
    from { 
        opacity: 0;
        transform: translateY(5px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* IP攻击代码窗口 */
.ip-attack-window {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 8px;
    height: 250px;
    overflow: hidden;
}

.attack-header {
    background: rgba(255, 0, 0, 0.1);
    padding: 10px 15px;
    color: #ff4444;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
}

.attack-body {
    height: calc(100% - 40px);
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #ff6666;
    overflow-y: auto;
    line-height: 1.4;
}

.attack-line {
    margin-bottom: 3px;
    animation: attackIn 0.4s ease-out;
}

@keyframes attackIn {
    from { 
        opacity: 0;
        transform: translateX(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* 漏洞利用代码窗口 */
.vuln-exploit-window {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(128, 0, 255, 0.5);
    border-radius: 8px;
    height: 250px;
    overflow: hidden;
}

.exploit-header {
    background: rgba(128, 0, 255, 0.1);
    padding: 10px 15px;
    color: #8000ff;
    font-weight: bold;
    border-bottom: 1px solid rgba(128, 0, 255, 0.3);
}

.exploit-body {
    height: calc(100% - 40px);
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #bb88ff;
    overflow-y: auto;
    line-height: 1.4;
}

.exploit-line {
    margin-bottom: 3px;
    animation: exploitIn 0.4s ease-out;
}

@keyframes exploitIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 数据库扫描代码窗口 */
.db-scan-window, .db-extract-window {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    height: 250px;
    overflow: hidden;
}

.db-scan-header, .db-extract-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 10px 15px;
    color: #00ffff;
    font-weight: bold;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.db-scan-body, .db-extract-body {
    height: calc(100% - 40px);
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #88ffff;
    overflow-y: auto;
    line-height: 1.4;
}

.db-line {
    margin-bottom: 3px;
    animation: dbIn 0.4s ease-out;
}

@keyframes dbIn {
    from { 
        opacity: 0;
        transform: translateY(-5px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}