/* ===============================================
   全局变量与重置 (Design System: Stealth-Net)
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@400;500;600&display=swap');

:root {
    --page-scale: 0.92;
    /* 背景色系：海洋深蓝，参照原图 */
    --bg-deep:    #020d1f;      /* 最深处，几乎纯黑带蓝 */
    --bg-ocean:   #041633;      /* 主背景——深邃海洋蓝 */
    --bg-panel:   rgba(4,22,54,0.75); /* 面板背景 */
    --bg-panel2:  rgba(2,14,38,0.9);

    /* 边框/发光色系：科技亮蓝 */
    --border:     #1a4d9a;
    --glow-blue:  #0d7cff;      /* 主科技蓝发光 */
    --glow-cyan:  #00d2ff;      /* 荧光青 */
    --glow-purple: #c87dff;     /* 紫光 */
    --glow-orange: #ffaa00;     /* 橙光 */

    /* 顶部导航专属：更亮的科技蓝 */
    --nav-bg:     #051c44;
    --nav-border: #0d7cff;
    --nav-glow:   #4db8ff;
    --nav-active: #00aaff;

    /* 文字 */
    --text-main: #d0e8ff;
    --text-dim:  #5a82b4;
    --text-accent: #4dd4ff;

    /* 功能色 */
    --success: #00ffaa;
    --warning: #ffb400;
    --danger:  #ff4444;
    --purple:  #aa00ff;
    --purple-light: #c87dff;

    /* 动画时间与布局 */
    --anim-fast: 0.15s;
    --anim-normal: 0.3s;
    --anim-slow: 0.5s;
    --radius-md: 6px;
    --radius-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background-color: var(--bg-ocean);
    color: var(--text-main);
    font-family: 'Exo 2', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-size: 14px;
}

body {
    zoom: var(--page-scale);
    display: flex;
    flex-direction: column;
}

@supports not (zoom: 1) {
    body {
        transform: scale(var(--page-scale));
        transform-origin: top left;
        width: calc(100% / var(--page-scale));
        height: calc(100% / var(--page-scale));
    }
}

/* ===============================================
   Utility Classes (ui-ux-pro-max)
   =============================================== */
.font-orbitron { font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-purple { color: var(--purple-light) !important; }
.text-accent { color: var(--text-accent) !important; }
.text-dim { color: var(--text-dim) !important; }

.bg-purple-gradient { background: linear-gradient(135deg, #6600cc, #aa00ff) !important; border: 1px solid var(--purple-light); }
.bg-orange-gradient { background: linear-gradient(135deg, #ff8800, #ff5500) !important; border: 1px solid var(--warning); }
.bg-red-gradient { background: linear-gradient(135deg, #cc2200, #ff4444) !important; border: 1px solid var(--danger); box-shadow: 0 4px 15px rgba(255,68,68,0.3); }
.bg-teal-gradient { background: linear-gradient(135deg, #008844, #00cc66) !important; }
.bg-cyan-gradient { background: linear-gradient(135deg, #006688, #00aacc) !important; }

.panel-body-flex {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
    padding: 10px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-body-flex-sm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    padding: 5px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 海洋蓝渐变背景 + 网格纹理 */
body {
    background-image:
        radial-gradient(ellipse at 50% -20%, rgba(0, 80, 200, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 0%  80%, rgba(0, 30, 120, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 80%, rgba(0, 50, 160, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #020d1f 0%, #041633 30%, #030f28 100%);
}

/* 背景细网格叠加 */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(13,124,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,124,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}



/* 粒子容器 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===============================================
   顶部导航  —— 科技亮蓝风格
   =============================================== */
.header {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #030e26 0%, #051c44 100%);
    border-bottom: 2px solid var(--glow-blue);
    box-shadow: 0 4px 30px rgba(13,124,255,0.5), 0 0 60px rgba(0,100,255,0.2);
}

.header-bg-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--nav-active) 30%, #00eeff 50%, var(--nav-active) 70%, transparent 100%);
    box-shadow: 0 0 15px var(--nav-active), 0 0 30px rgba(0,210,255,0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 6px 18px;
    gap: 12px;
}

/* 中央标题区 */
.header-title-wrap {
    text-align: center;
    flex: 0 0 auto;
    min-width: 360px;
}

.title-cn {
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
    text-shadow:
        0 0  8px var(--nav-active),
        0 0 20px rgba(0,170,255,0.8),
        0 0 40px rgba(0,100,255,0.4);
    line-height: 1.2;
}

.title-en {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-top: 4px;
}

/* 导航按钮 */
.nav {
    display: flex;
    gap: 6px;
    flex: 1;
}

.left-nav { justify-content: flex-end; }
.right-nav { justify-content: flex-start; }

.nav-item {
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-dim);
    background: rgba(13,124,255,0.08);
    border: 1px solid rgba(13,124,255,0.35);
    transform: skewX(-18deg);
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* 导航按钮流光效果 */
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,0.3), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item span {
    display: inline-block;
    transform: skewX(18deg);
    position: relative;
    z-index: 1;
}

.nav-item:hover {
    color: #fff;
    background: rgba(13,124,255,0.3);
    border-color: var(--nav-border);
    box-shadow: 0 0 12px rgba(13,124,255,0.6), inset 0 0 10px rgba(0,210,255,0.15);
    transform: skewX(-18deg) translateY(-2px);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(0,150,255,0.4), rgba(0,80,200,0.6));
    border-color: var(--glow-cyan);
    box-shadow: 0 0 20px rgba(0,210,255,0.7), inset 0 0 15px rgba(0,210,255,0.3);
    text-shadow: 0 0 8px var(--glow-cyan);
    animation: navActivePulse 2s ease-in-out infinite;
}

@keyframes navActivePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0,210,255,0.7), inset 0 0 15px rgba(0,210,255,0.3); }
    50% { box-shadow: 0 0 30px rgba(0,210,255,0.9), inset 0 0 20px rgba(0,210,255,0.4); }
}

/* 顶部状态条 */
.header-status-bar {
    display: flex;
    align-items: center;
    padding: 4px 30px;
    border-top: 1px solid rgba(13,124,255,0.2);
    font-size: 11px;
    color: var(--text-dim);
    background: rgba(2,12,35,0.6);
    gap: 6px;
    letter-spacing: 1px;
}

.status-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
.status-dot.green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.blue  { background: var(--glow-blue); box-shadow: 0 0 6px var(--glow-blue); }
.status-dot.cyan  { background: var(--glow-cyan); box-shadow: 0 0 6px var(--glow-cyan); }

@keyframes pulse-dot {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* ===============================================
   主体三栏布局
   =============================================== */
.main-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 16px;
    overflow: hidden;
}

/* 页面切换 */
.page {
    display: none;
    width: 100%;
    gap: 14px;
}

.page.active {
    display: flex;
    animation: fadeSlide 0.4s ease-out;
}

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

.col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.col-l, .col-r { width: 25%; flex: 0 0 25%; }
.col-c          { flex: 1; min-width: 0; }

/* ===============================================
   面板 Panel - 增强版带流光边框
   =============================================== */
.panel {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid rgba(88, 138, 230, 0.6);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow:
        inset 0 0 18px rgba(13, 40, 147, 0.28),
        inset 0 0 36px rgba(13, 40, 147, 0.22),
        inset 0 0 72px rgba(5, 18, 70, 0.62);
    overflow: hidden;
    transition: all var(--anim-normal) ease;
    backdrop-filter: blur(10px); /* Glassmorphism effect */
}

.panel:hover {
    border-color: rgba(116, 166, 240, 0.78);
    box-shadow:
        inset 0 0 22px rgba(13, 40, 147, 0.32),
        inset 0 0 44px rgba(13, 40, 147, 0.26),
        inset 0 0 84px rgba(5, 18, 70, 0.68);
    transform: translateY(-2px);
}

/* 四角发光装饰 */
.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(110, 160, 236, 0.68);
    box-shadow:
        inset 0 0 10px rgba(13, 40, 147, 0.32),
        inset 0 0 24px rgba(13, 40, 147, 0.24);
    pointer-events: none;
    z-index: 1;
}

.panel::after {
    content: none;
}

@keyframes cornerGlow {
    0%, 100% { opacity: 0.6; box-shadow: 3px 3px 10px rgba(0,210,255,0.4); }
    50% { opacity: 1; box-shadow: 3px 3px 20px rgba(0,210,255,0.8); }
}

/* 流光边框效果 */
.panel-shine {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(13, 40, 147, 0.55) 18%, rgba(38, 92, 198, 0.72) 50%, rgba(13, 40, 147, 0.55) 82%, transparent 100%);
    box-shadow: inset 0 0 8px rgba(13, 40, 147, 0.42);
    opacity: 0.88;
    animation: none;
}

@keyframes borderFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.panel-title {
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-accent);
    text-align: center;
    padding: 6px 0 10px;
    letter-spacing: 2px;
    text-shadow: 
        0 0 8px rgba(77,212,255,0.7),
        0 0 16px rgba(77,212,255,0.4);
    background: linear-gradient(90deg, transparent, rgba(13,124,255,0.15), transparent);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

/* 标题下方装饰线 */
.panel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glow-cyan), transparent);
    animation: titleLine 3s ease-in-out infinite;
}

@keyframes titleLine {
    0%, 100% { opacity: 0.3; width: 40%; }
    50% { opacity: 1; width: 80%; }
}

/* 脉冲标题 */
.panel-title.pulse {
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 8px rgba(77,212,255,0.7), 0 0 16px rgba(77,212,255,0.4); }
    50% { text-shadow: 0 0 15px rgba(77,212,255,1), 0 0 30px rgba(77,212,255,0.6); }
}

.panel-body {
    flex: 1;
    position: relative;
    min-height: 0;
}

/* ===============================================
   中央流程面板
   =============================================== */
.process-panel {
    flex: 1;
    background: var(--bg-panel2);
    border: 1px solid rgba(88, 138, 230, 0.64);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow:
        inset 0 0 24px rgba(13, 40, 147, 0.3),
        inset 0 0 46px rgba(13, 40, 147, 0.25),
        inset 0 0 92px rgba(5, 18, 70, 0.7);
    overflow: visible;
    backdrop-filter: blur(12px);
}
.process-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(110, 160, 236, 0.72);
    box-shadow:
        inset 0 0 12px rgba(13, 40, 147, 0.36),
        inset 0 0 30px rgba(13, 40, 147, 0.28);
    pointer-events: none;
    z-index: 1;
}

.process-panel::after {
    content: none;
}

/* ===============================================
   数字滚轮（系统概览顶部）- 增强版带翻转动画
   =============================================== */
.num-board-wrap {
    background: rgba(2,20,60,0.8);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: inset 0 0 40px rgba(0,80,200,0.3), 0 0 20px rgba(13,124,255,0.15);
    position: relative;
    overflow: hidden;
}

/* 数字滚轮顶部流光 */
.num-board-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glow-cyan), transparent);
    animation: numShine 3s linear infinite;
}

@keyframes numShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.nb-title {
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--glow-cyan);
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--glow-cyan);
}

.num-board {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.num-cell {
    background: linear-gradient(180deg, #031640 0%, #020b26 100%);
    border: 2px solid var(--glow-blue);
    border-radius: var(--radius-md);
    width: 52px; height: 72px;
    display: flex; justify-content: center; align-items: center;
    font-size: 52px;
    font-family: 'Orbitron', 'Impact', sans-serif;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--glow-cyan);
    box-shadow: inset 0 0 15px rgba(13,124,255,0.4), 0 4px 12px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 数字单元格翻转动画 */
.num-cell.flip {
    animation: flipNumber 0.6s ease-in-out;
}

@keyframes flipNumber {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

/* 数字发光脉冲 */
.num-cell.pulse {
    animation: numPulse 1s ease-in-out infinite;
}

@keyframes numPulse {
    0%, 100% { 
        text-shadow: 0 0 20px var(--glow-cyan);
        box-shadow: inset 0 0 15px rgba(13,124,255,0.4), 0 4px 12px rgba(0,0,0,0.6);
    }
    50% { 
        text-shadow: 0 0 30px var(--glow-cyan), 0 0 40px var(--glow-cyan);
        box-shadow: inset 0 0 25px rgba(13,124,255,0.6), 0 4px 20px rgba(13,124,255,0.3);
    }
}

/* ===============================================
   中部卡片组 - 增强版带3D悬浮效果
   =============================================== */
.mid-cards {
    display: flex;
    gap: 10px;
    height: 140px;
}

.mid-card {
    flex: 1;
    background: rgba(4,20,55,0.7);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 5px;
    box-shadow: inset 0 0 15px rgba(13,124,255,0.15);
    transition: all var(--anim-normal) ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.mid-card:hover::before {
    left: 100%;
}

.mid-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--glow-cyan);
    box-shadow: 
        inset 0 0 15px rgba(13,124,255,0.15),
        0 10px 30px rgba(0,210,255,0.2),
        0 0 20px rgba(13,124,255,0.1);
}

.mc-v { 
    font-family: 'Orbitron', sans-serif;
    font-size: 26px; 
    font-weight: 700; 
    color: var(--glow-cyan); 
    text-shadow: 0 0 12px var(--glow-cyan); 
    transition: all 0.3s ease;
}

.mid-card:hover .mc-v {
    text-shadow: 0 0 20px var(--glow-cyan), 0 0 40px var(--glow-cyan);
    transform: scale(1.1);
}

.mc-l { 
    font-size: 12px; 
    color: var(--text-dim); 
    letter-spacing: 1px; 
    transition: color 0.3s ease;
}

.mid-card:hover .mc-l {
    color: var(--text-accent);
}

/* 数据流动画线条 */
.mid-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glow-cyan), transparent);
    transition: width 0.5s ease;
}

.mid-card:hover::after {
    width: 100%;
}

/* ===============================================
   统计卡片 
   =============================================== */
.stat-row { display: flex; gap: 10px; }

.stat-box {
    flex: 1;
    background: rgba(4,20,55,0.6);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 8px;
    text-align: center;
}

.stat-box.full { width: 100%; }
.stat-v { font-family: 'Orbitron', 'Microsoft YaHei', sans-serif; font-size: 24px; font-weight: 700; color: var(--glow-cyan); text-shadow: 0 0 10px var(--glow-cyan); }
.stat-l { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* 进度条 - 增强版带流光效果 */
.progress-bar { 
    background: rgba(13,124,255,0.15); 
    border-radius: 20px; 
    height: 8px; 
    overflow: hidden;
    position: relative;
}

.progress-fill { 
    height: 100%; 
    border-radius: 20px; 
    background: linear-gradient(90deg, #0d7cff, #00d2ff, #0d7cff); 
    background-size: 200% 100%;
    box-shadow: 0 0 8px #00d2ff; 
    transition: width 1s ease;
    position: relative;
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 多色进度条变体 */
.progress-fill.purple {
    background: linear-gradient(90deg, #6600cc, #cc00ff, #6600cc);
    background-size: 200% 100%;
    box-shadow: 0 0 8px #cc00ff;
}

.progress-fill.orange {
    background: linear-gradient(90deg, #ff6600, #ffcc00, #ff6600);
    background-size: 200% 100%;
    box-shadow: 0 0 8px #ffcc00;
}

/* ===============================================
   流程图节点 - 增强版带动画效果
   =============================================== */
.flowchart {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    flex: 1;
}

.flow-node {
    width: 100px; min-height: 80px;
    background: rgba(4,18,50,0.9);
    border: 2px solid var(--border);
    border-radius: 8px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 8px 6px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* 流程节点流光效果 */
.flow-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,0.2), transparent);
    transition: left 0.5s ease;
}

.flow-node:hover::before {
    left: 100%;
}

.fn-icon { 
    font-size: 20px; 
    margin-bottom: 4px; 
    transition: all 0.3s ease;
}
.fn-name { font-size: 12px; color: var(--text-dim); font-weight: bold; line-height: 1.3; transition: color 0.3s ease; }
.fn-sub  { font-size: 10px; color: #3a5a80; margin-top: 2px; line-height: 1.2; transition: color 0.3s ease; }

.flow-arrow-v {
    font-size: 18px; color: var(--border);
    transition: all 0.4s;
    display: flex; align-items: center; justify-content: center;
    width: 30px; min-height: 30px;
    position: relative;
}
.flow-arrow-v::after { content: '➔'; animation: arrowPulse 1.5s ease-in-out infinite; }

@keyframes arrowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

/* 激活态 */
.flow-node.active {
    border-color: var(--glow-cyan);
    background: rgba(0,100,200,0.6);
    box-shadow: 0 0 25px rgba(0,210,255,0.8), inset 0 0 15px rgba(0,210,255,0.4);
    transform: scale(1.12);
    z-index: 5;
    animation: nodePulse 1.5s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { box-shadow: 0 0 25px rgba(0,210,255,0.8), inset 0 0 15px rgba(0,210,255,0.4); }
    50% { box-shadow: 0 0 40px rgba(0,210,255,1), inset 0 0 25px rgba(0,210,255,0.5); }
}

.flow-node.active .fn-name { color: #fff; }
.flow-node.active .fn-sub  { color: var(--glow-cyan); }
.flow-node.active .fn-icon { 
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px var(--glow-cyan));
}

/* 完成态 */
.flow-node.done {
    border-color: var(--success);
    box-shadow: inset 0 0 12px rgba(0,255,170,0.3);
    animation: doneGlow 2s ease-in-out infinite;
}

@keyframes doneGlow {
    0%, 100% { box-shadow: inset 0 0 12px rgba(0,255,170,0.3); }
    50% { box-shadow: inset 0 0 20px rgba(0,255,170,0.5); }
}

.flow-node.done .fn-name { color: var(--success); }
.flow-node.done .fn-icon { filter: drop-shadow(0 0 5px var(--success)); }

.flow-arrow-v.active { color: var(--glow-cyan); text-shadow: 0 0 10px var(--glow-cyan); }
.flow-arrow-v.active::after { animation: arrowActive 1s ease-in-out infinite; }

@keyframes arrowActive {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.5; transform: translateX(5px); }
}

/* SNR 紫色主题 */
.snr-node { border-color: #330066; }
.snr-node.active { border-color: var(--purple-light); background: rgba(80,0,150,0.5); box-shadow: 0 0 25px rgba(170,0,255,0.7), inset 0 0 15px rgba(170,0,255,0.3); animation: snrPulse 1.5s ease-in-out infinite; }

@keyframes snrPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(170,0,255,0.7), inset 0 0 15px rgba(170,0,255,0.3); }
    50% { box-shadow: 0 0 40px rgba(170,0,255,1), inset 0 0 25px rgba(170,0,255,0.5); }
}

.snr-node.done   { border-color: var(--purple); box-shadow: inset 0 0 12px rgba(170,0,255,0.3); }
.snr-arrow.active { color: var(--purple-light); text-shadow: 0 0 10px var(--purple-light); }
.snr-arrow::after { animation: arrowPulse 1.5s ease-in-out infinite; }

/* ===============================================
   进度条组件
   =============================================== */
.prog-wrap {
    display: flex; align-items: center; gap: 12px;
    padding: 0 4px;
}
.prog-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.prog-bar-outer { flex: 1; height: 8px; background: rgba(13,124,255,0.15); border-radius: 20px; overflow: hidden; }
.prog-bar-inner { height: 100%; border-radius: 20px; background: linear-gradient(90deg, #0d7cff, #00d2ff); box-shadow: 0 0 8px #00d2ff; transition: width 0.6s ease; }
.prog-pct { font-size: 13px; color: var(--glow-cyan); font-weight: bold; min-width: 35px; text-align: right; }

/* ===============================================
   终端日志 - 增强版带动画效果
   =============================================== */
.terminal {
    background: rgba(0,4,14,0.9);
    border: 1px solid var(--border);
    border-left: 4px solid var(--glow-cyan);
    border-radius: 4px;
    height: 130px;
    padding: 12px 14px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: var(--success);
    line-height: 1.6;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    position: relative;
}

/* 终端光标闪烁效果 */
.terminal::after {
    content: '█';
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: var(--glow-cyan);
    animation: cursorBlink 1s step-end infinite;
    opacity: 0.7;
}

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

.terminal::-webkit-scrollbar { width: 4px; }
.terminal::-webkit-scrollbar-track { background: transparent; }
.terminal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.t-line { 
    margin-bottom: 2px; 
    opacity: 0;
    animation: fadeInLine 0.3s ease forwards;
}

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

.t-line:nth-child(1) { animation-delay: 0.05s; }
.t-line:nth-child(2) { animation-delay: 0.1s; }
.t-line:nth-child(3) { animation-delay: 0.15s; }
.t-line:nth-child(4) { animation-delay: 0.2s; }
.t-line:nth-child(5) { animation-delay: 0.25s; }

.t-line.warn  { color: var(--warning); text-shadow: 0 0 5px rgba(255,180,0,0.5); }
.t-line.error { color: var(--danger); text-shadow: 0 0 5px rgba(255,68,68,0.5); }
.t-line.info  { color: var(--text-accent); }
.t-line.done  { color: var(--success); font-weight: bold; text-shadow: 0 0 5px rgba(0,255,170,0.5); }
.t-line.processing { 
    color: var(--glow-cyan); 
    animation: processingPulse 1s ease-in-out infinite;
}

/* ===============================================
   表单布局修复（防止配置区内容溢出遮挡）
   =============================================== */
:root {
    --page-scale: 1;
}

@media (max-width: 1920px) {
    :root { --page-scale: 0.97; }
}

@media (max-width: 1680px) {
    :root { --page-scale: 0.94; }
}

.page,
.col,
.panel,
.panel-body {
    min-height: 0;
}

.panel-body-flex-sm {
    gap: 10px;
    padding: 8px 8px 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.panel-body-flex-sm .form-group,
.panel-body-flex-sm .btn-exec {
    flex: 0 0 auto;
}

.panel-body-flex-sm .input-s,
.panel-body-flex-sm textarea.input-s,
.panel-body-flex-sm select.input-s {
    max-width: 100%;
}

textarea.input-s {
    resize: vertical;
    min-height: 72px;
    max-height: 180px;
}

#page-send .panel-body-flex-sm,
#page-send-image .panel-body-flex-sm,
#page-gan .panel-body-flex-sm,
#page-users .panel-body-flex-sm,
#page-admin .panel-body-flex-sm {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#send-group-members,
#admin-search-results,
#group-join-requests {
    max-width: 100%;
    overflow-x: hidden;
}

.btn-exec:hover {
    transform: translateY(-2px);
}

@keyframes processingPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===============================================
   表单输入 - 增强版带发光边框
   =============================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.form-group label { 
    font-size: 12px; 
    color: var(--text-accent); 
    font-weight: bold; 
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(77,212,255,0.3);
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.input-s {
    background: rgba(2,14,40,0.9);
    border: 1px solid var(--border);
    color: #fff;
    padding: 8px 10px;
    border-radius: 3px;
    outline: none;
    font-size: 13px;
    transition: all 0.25s;
    width: 100%;
    position: relative;
}

.input-s:hover {
    border-color: rgba(0,210,255,0.5);
    background: rgba(2,14,40,0.95);
}

.input-s:focus {
    border-color: var(--glow-cyan);
    box-shadow: 0 0 15px rgba(0,210,255,0.4), inset 0 0 10px rgba(0,210,255,0.1);
    background: rgba(2,14,40,1);
}

.input-s option { background: #041633; }

/* 带图标的输入框 */
.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 14px;
}

.input-with-icon input {
    padding-left: 32px;
}

/* 文本域发光效果 */
textarea.input-s:focus {
    box-shadow: 0 0 15px rgba(0,210,255,0.4), inset 0 0 20px rgba(0,210,255,0.1);
}

/* 选择框动画 */
select.input-s {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234dd4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

select.input-s:hover {
    background-color: rgba(2,14,40,1);
}

/* ===============================================
   群组成员列表样式
   =============================================== */
.group-member-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(26,77,154,0.3);
    transition: all 0.2s;
    cursor: pointer;
}

.group-member-item:hover {
    background: rgba(13,124,255,0.15);
}

.group-member-item:last-child {
    border-bottom: none;
}

.group-member-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00d2ff;
}

.group-member-item input[type="checkbox"]:checked + label {
    color: #00d2ff;
    font-weight: bold;
}

/* ===============================================
   按钮 - 增强版带流光效果
   =============================================== */
.btn-exec {
    background: linear-gradient(135deg, #0d5ccc, #0088ff);
    border: 1px solid #4db8ff;
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 0 18px rgba(0,136,255,0.5);
    transition: all 0.25s;
    white-space: normal;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* 按钮流光效果 */
.btn-exec::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-exec:hover::before {
    left: 100%;
}

.btn-exec:hover { 
    box-shadow: 0 0 30px rgba(0,210,255,0.9), 0 10px 30px rgba(0,0,0,0.3); 
    transform: translateY(-3px) scale(1.02); 
    background: linear-gradient(135deg, #1a6edc, #00aaff); 
}

.btn-exec:active {
    transform: translateY(-1px) scale(0.98);
}

/* 按钮波纹效果 */
.btn-exec::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-exec:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.btn-recv { background: linear-gradient(135deg, #880099, #cc00cc); border-color: #ee88ff; box-shadow: 0 0 18px rgba(200,0,255,0.4); }
.btn-recv:hover { background: linear-gradient(135deg, #aa00bb, #ff00ff); box-shadow: 0 0 30px rgba(200,0,255,0.8); }

.btn-snr { background: linear-gradient(135deg, #550099, #9900cc); border-color: var(--purple-light); box-shadow: 0 0 18px rgba(170,0,255,0.4); color: #fff; }
.btn-snr:hover { background: linear-gradient(135deg, #7700bb, #cc00ff); box-shadow: 0 0 30px rgba(170,0,255,0.8); }

.btn-gan { background: linear-gradient(135deg, #bb6600, #ff9900); border-color: #ffcc44; color: #000; font-weight: 900; box-shadow: 0 0 18px rgba(255,150,0,0.4); }
.btn-gan:hover { background: linear-gradient(135deg, #dd8800, #ffcc00); box-shadow: 0 0 30px rgba(255,180,0,0.9); }

.btn-page { background: rgba(13,124,255,0.15); border: 1px solid var(--border); color: var(--text-accent); padding: 4px 12px; cursor: pointer; border-radius: 3px; font-size: 12px; transition: 0.2s; }
.btn-page:hover { background: rgba(13,124,255,0.4); transform: translateY(-1px); }

.btn-filter { background: rgba(13,124,255,0.1); border: 1px solid var(--border); color: var(--text-dim); padding: 4px 14px; cursor: pointer; border-radius: 3px; font-size: 12px; transition: 0.2s; }
.btn-filter:hover { border-color: var(--glow-cyan); color: var(--glow-cyan); }
.active-filter { background: rgba(0,210,255,0.2); border-color: var(--glow-cyan); color: var(--glow-cyan); box-shadow: 0 0 10px rgba(0,210,255,0.3); }

/* 加载动画按钮 */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 1s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ===============================================
   质量检测小组件
   =============================================== */
.quality-badge {
    text-align: center;
    background: rgba(0,30,70,0.6);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    box-shadow: inset 0 0 15px rgba(0,255,170,0.1);
}

.qrow {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(26,77,154,0.4);
    font-size: 13px;
    color: var(--text-dim);
}

/* ===============================================
   区块链历史审计表格
   =============================================== */
.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.audit-table th {
    background: rgba(13,124,255,0.2);
    color: var(--text-accent);
    padding: 10px 8px;
    text-align: left;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--glow-blue);
    white-space: nowrap;
}
.audit-table tbody tr {
    border-bottom: 1px solid rgba(26,77,154,0.35);
    transition: background 0.2s;
}
.audit-table tbody tr:hover { background: rgba(13,124,255,0.1); }
.audit-table td { padding: 9px 8px; color: var(--text-main); white-space: nowrap; }
.td-ok   { color: var(--success) !important; font-weight: bold; }
.td-warn { color: var(--warning) !important; font-weight: bold; }
.td-err  { color: var(--danger)  !important; font-weight: bold; }

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px 4px;
    color: var(--text-dim);
    font-size: 13px;
}

/* ===============================================
   链监控
   =============================================== */
.chain-stat {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 10px;
    background: rgba(4,18,50,0.6);
    border: 1px solid var(--border);
    border-radius: 4px;
}
.cs-label { font-size: 13px; color: var(--text-dim); }
.cs-val   { font-size: 18px; font-weight: bold; color: var(--glow-cyan); text-shadow: 0 0 8px var(--glow-cyan); }

.block-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 8px;
    background: rgba(4,18,50,0.5);
    border: 1px solid rgba(26,77,154,0.35);
    border-radius: 3px;
    font-size: 12px;
    transition: background 0.2s;
}
.block-row:hover { background: rgba(13,124,255,0.12); }
.blk-id   { color: var(--glow-cyan); font-weight: bold; }
.blk-node { color: var(--text-main); }
.blk-time { color: var(--text-dim); }

.tx-row {
    padding: 7px 8px;
    background: rgba(4,18,50,0.4);
    border: 1px solid rgba(26,77,154,0.3);
    border-radius: 3px;
    transition: background 0.2s;
}
.tx-row:hover { background: rgba(13,124,255,0.1); }

/* ===============================================
   节点监控 - 增强版
   =============================================== */
.pulse-dot {
    display: inline-block;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 1.5s infinite;
}

.node-card {
    background: rgba(4,18,50,0.7);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.node-card:hover::before {
    left: 100%;
}

.node-card:hover { 
    border-color: var(--glow-cyan); 
    box-shadow: 0 0 20px rgba(0,210,255,0.3), 0 5px 15px rgba(0,0,0,0.2);
    transform: translateX(5px);
}

.node-badge {
    background: rgba(13,124,255,0.2);
    border: 1px solid var(--glow-blue);
    color: #4db8ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    transition: all 0.3s ease;
}

.node-card:hover .node-badge {
    background: rgba(0,210,255,0.3);
    box-shadow: 0 0 10px rgba(0,210,255,0.3);
}

/* 节点状态指示器 */
.node-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-dim);
}

.node-status.online { color: var(--success); }
.node-status.offline { color: var(--danger); }
.node-status.syncing { color: var(--warning); }

/* ===============================================
   GAN 图像预览
   =============================================== */
.gan-visual-stage {
    position: relative;
    flex: 1;
    min-height: 420px;
    border: 1px solid rgba(26, 77, 154, 0.45);
    border-radius: 10px;
    background:
        radial-gradient(circle at top, rgba(255, 170, 0, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(3, 14, 34, 0.98) 0%, rgba(2, 9, 24, 0.96) 100%);
    overflow: hidden;
}

.gan-visual-stage #flow-gan,
.gan-visual-stage .gan-preview-wrap {
    position: absolute;
    inset: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gan-visual-stage[data-mode="flow"] #flow-gan {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.gan-visual-stage[data-mode="flow"] .gan-preview-wrap {
    opacity: 0;
    transform: scale(0.985);
    pointer-events: none;
}

.gan-visual-stage[data-mode="preview"] #flow-gan {
    opacity: 0;
    transform: scale(1.015);
    pointer-events: none;
}

.gan-visual-stage[data-mode="preview"] .gan-preview-wrap {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.gan-preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(circle at center, rgba(255, 170, 0, 0.08), transparent 55%),
        rgba(2, 8, 24, 0.72);
    border: 1px dashed rgba(255, 204, 68, 0.22);
    border-radius: 10px;
}

.gan-preview {
    text-align: center;
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gan-preview img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 204, 68, 0.35);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38), 0 0 28px rgba(255, 170, 0, 0.16);
    object-fit: contain;
}

/* ===============================================
   SNR 收件箱 & 解码区
   =============================================== */
.inbox-item {
    background: rgba(4,18,50,0.5);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.inbox-item:hover { border-color: var(--purple); box-shadow: 0 0 12px rgba(170,0,255,0.3); background: rgba(50,0,80,0.3); }

.snr-decode-area {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(2,8,24,0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.snr-idle, .snr-result {
    text-align: center;
    color: var(--text-dim);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 15px; line-height: 2;
}

.snr-decoding {
    text-align: center;
    color: var(--purple-light);
    font-size: 15px;
    display: flex; flex-direction: column; align-items: center;
}

@keyframes spin { to { transform: rotate(360deg); } }
.snr-spin {
    font-size: 48px;
    color: var(--purple);
    animation: spin 1.5s linear infinite;
    display: block;
    margin-bottom: 10px;
}

.snr-log-mini {
    margin-top: 12px;
    font-family: monospace;
    font-size: 12px;
    color: var(--purple-light);
    max-width: 260px;
    text-align: left;
}

/* 上传区域 */
.upload-zone {
    background: rgba(4,18,50,0.5);
    border: 1.5px dashed var(--glow-blue);
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--glow-cyan); color: var(--glow-cyan); background: rgba(0,100,200,0.1); }

/* 解密结果 */
.result-item {
    background: rgba(4,18,50,0.5);
    border: 1px solid rgba(26,77,154,0.4);
    border-radius: 4px;
    padding: 10px 10px;
    margin-bottom: 8px;
}

/* ===============================================
   底部状态栏
   =============================================== */
.footer {
    display: flex; align-items: center; gap: 40px;
    padding: 0 30px;
    height: 32px;
    background: rgba(2,10,28,0.95);
    border-top: 1px solid rgba(13,124,255,0.35);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    z-index: 100;
    position: relative;
}

/* ===============================================
   滚动条全局
   =============================================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
