/* 全局样式 - 深色科幻风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    color: #e0e0ff;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.05) 0%, transparent 30%),
        repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.02) 0px, transparent 2px, transparent 20px);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 警告横幅 */
.warning-banner {
    background: rgba(255, 0, 100, 0.15);
    border: 1px solid #ff0055;
    color: #ff88aa;
    text-align: center;
    padding: 10px;
    margin-bottom: 20px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.3);
}

.blink {
    animation: blink 1.5s infinite;
}

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

/* 主标题 */
h1 {
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 5px;
    text-shadow: 0 0 20px cyan;
    position: relative;
}

.glitch {
    position: relative;
    color: #0ff;
}

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

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

.glitch::after {
    color: #ff0;
    z-index: -2;
    animation: glitch-2 3s infinite;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -1px); }
    60% { transform: translate(-2px, 3px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(4px, -2px); }
    50% { transform: translate(-4px, 3px); }
    75% { transform: translate(2px, -4px); }
}

.subtitle {
    text-align: center;
    color: #aaccff;
    margin-bottom: 30px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 15px;
}

/* 主网格布局 */
.main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    margin-bottom: 30px;
}

/* 左侧控制面板 */
.control-panel {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 20px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #0ff;
}

.panel-header h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #0ff;
    text-shadow: 0 0 10px cyan;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f0;
}

.dot {
    width: 12px;
    height: 12px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 15px #0f0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 脑波画布 */
.brainwave-container {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #0ff;
    background: #000;
    height: 150px;
}

#brainwaveCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-overlay {
    position: absolute;
    bottom: 5px;
    right: 10px;
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: rgba(0, 255, 255, 0.7);
    background: rgba(0,0,0,0.5);
    padding: 3px 10px;
}

/* 连接状态 */
.connection-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-left: 2px solid #0ff;
}

.stat-item label {
    display: block;
    color: #8a9bb5;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.stat-item .value {
    font-family: 'Share Tech Mono', monospace;
    color: #0ff;
    font-size: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #222;
    margin: 5px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ff, #f0f);
    box-shadow: 0 0 10px cyan;
    width: 0%;
}

.small {
    font-size: 0.8rem;
    color: #aaa;
}

/* 目标选择 */
.target-section {
    margin-bottom: 25px;
}

.target-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.info-tip {
    cursor: help;
    color: #6cf;
    font-size: 0.9rem;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.target-item {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.target-item:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px cyan;
}

.target-item.selected {
    background: #0ff;
    color: #000;
    font-weight: bold;
}

.custom-target {
    margin-top: 10px;
}

.cyber-input {
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #0ff;
    color: #0ff;
    font-family: 'Share Tech Mono', monospace;
}

/* 操作按钮网格 */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.cyber-button {
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    padding: 15px 5px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cyber-button small {
    font-size: 0.65rem;
    color: #8ab;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 3px;
}

.cyber-button:hover:not(:disabled) {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 30px cyan;
    transform: translateY(-2px);
}

.cyber-button:hover small {
    color: #333;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.cyber-button:hover::before {
    left: 100%;
}

/* 日志区域 */
.log-section {
    border-top: 1px solid #0ff;
    padding-top: 20px;
}

.log-window {
    background: #0a0a1a;
    border: 1px solid #0ff;
    height: 150px;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #0f0;
    margin: 10px 0;
}

.log-entry {
    margin-bottom: 3px;
    border-bottom: 1px dotted rgba(0,255,0,0.2);
    padding-bottom: 2px;
}

.log-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.small-btn {
    background: transparent;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 3px 10px;
    cursor: pointer;
}

.log-status {
    color: #0f0;
    font-size: 0.8rem;
}

/* 右侧案例面板 */
.cases-panel {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 100, 0.3);
    padding: 20px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 30px rgba(255, 0, 100, 0.1);
}

.cases-panel h2 {
    color: #ff6a9e;
    text-shadow: 0 0 10px #ff3377;
}

.cases-sub {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.case-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: 1px solid #ff3377;
    color: #ff88aa;
    padding: 5px 15px;
    cursor: pointer;
    flex: 1;
    transition: 0.3s;
}

.tab-btn.active {
    background: #ff3377;
    color: #000;
}

.cases-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.case-card {
    background: rgba(0,0,0,0.5);
    border-left: 3px solid;
    margin-bottom: 15px;
    padding: 15px;
}

.case-card.tech {
    border-left-color: #0ff;
}

.case-card.warning {
    border-left-color: #ff3377;
}

.case-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.case-type {
    font-weight: bold;
}

.case-source {
    color: #999;
}

.case-card h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1rem;
}

.case-card p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 受害者自述 */
.testimonials {
    margin-top: 20px;
    border-top: 1px solid #ff3377;
    padding-top: 15px;
}

.testimonials h3 {
    color: #ff88aa;
    margin-bottom: 10px;
}

.testimonial-item {
    background: rgba(255, 51, 119, 0.1);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.testimonial-item p {
    font-style: italic;
    color: #ffccdd;
    font-size: 0.9rem;
}

.testi-source {
    display: block;
    text-align: right;
    color: #f69;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* 联系框 */
.contact-box {
    background: rgba(0,0,0,0.7);
    border: 1px solid #ff3377;
    padding: 15px;
    text-align: center;
    margin-top: 20px;
}

.hotline {
    color: #ff88aa;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
}

/* 底部说明 */
.footer-note {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-note ul {
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.footer-note li {
    margin-bottom: 3px;
}

.disclaimer {
    color: #ff6666;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

/* 进度条弹窗 */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0a0a1a;
    border: 2px solid #0ff;
    padding: 30px;
    box-shadow: 0 0 50px #00ffff;
    text-align: center;
    z-index: 10000;
    min-width: 350px;
}

.modal h3 {
    margin-bottom: 20px;
}

.modal.cmd-modal {
    border-color: #0f0;
    box-shadow: 0 0 50px #0f0;
    font-family: 'Share Tech Mono', monospace;
}