/* 拟物化设计系统 (Skeuomorphic Design System) */
:root {
    /* 材质基调 - 深空灰金属 */
    --bg-main: #1a1a1d;
    --panel-base: #2b2b30;
    
    /* 金属质感渐变 */
    --metal-surface: linear-gradient(180deg, #3a3a40 0%, #2b2b30 100%);
    --metal-highlight: rgba(255, 255, 255, 0.1);
    --metal-shadow: rgba(0, 0, 0, 0.4);
    
    /* 指示灯/屏幕发光色 */
    --led-orange: #ff7b00;
    --led-blue: #00a8ff;
    --led-green: #00ff9d;
    --led-red: #ff3333;
    
    /* 物理光影预设 */
    /* 凸起 (面板/按钮) */
    --shadow-raised: 
        8px 8px 16px rgba(0,0,0,0.4), 
        -2px -2px 4px rgba(255,255,255,0.08),
        inset 1px 1px 0px rgba(255,255,255,0.1);
        
    /* 凹陷 (屏幕/仪表盘) */
    --shadow-inset: 
        inset 4px 4px 8px rgba(0,0,0,0.5), 
        inset -2px -2px 4px rgba(255,255,255,0.05),
        0 1px 0 rgba(255,255,255,0.05);
        
    /* 按钮按下状态 */
    --shadow-pressed: 
        inset 3px 3px 6px rgba(0,0,0,0.6), 
        inset -2px -2px 4px rgba(255,255,255,0.05);

    /* 玻璃质感 */
    --glass-reflection: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
}

/* 全局物理环境 */
body {
    background-color: var(--bg-main);
    /* 叠加噪点纹理，增加粗糙感 */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    color: #cbd5e1;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* --------------------------------------
   核心组件库 (Core Components)
-------------------------------------- */

/* 1. 实体金属面板 */
.sk-panel {
    background: var(--metal-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-raised);
    border: 1px solid rgba(0,0,0,0.3);
    position: relative;
    padding: 2rem;
    overflow: hidden; /* 防止内部光效溢出 */
}

/* 面板螺丝钉装饰 */
.sk-screws::before, .sk-screws::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1d 0%, #555 100%);
    box-shadow: 
        inset 1px 1px 2px rgba(0,0,0,0.8), 
        0 1px 0 rgba(255,255,255,0.1);
    top: 12px;
    z-index: 10;
}
.sk-screws::before { left: 12px; }
.sk-screws::after { right: 12px; transform: rotate(45deg); }

/* 2. 凹陷显示屏/仪表槽 */
.sk-inset {
    background: #111113;
    border-radius: 8px;
    box-shadow: var(--shadow-inset);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

/* 屏幕反光效果 */
.sk-screen-glare::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* 3. 实体交互按钮 */
.sk-btn {
    background: linear-gradient(145deg, #35353c, #26262b);
    box-shadow: 
        4px 4px 8px rgba(0,0,0,0.4), 
        -2px -2px 4px rgba(255,255,255,0.08);
    border: 1px solid rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sk-btn:hover {
    background: linear-gradient(145deg, #3d3d45, #2a2a30);
    transform: translateY(-1px);
}

.sk-btn:active {
    box-shadow: var(--shadow-pressed);
    transform: translateY(1px);
    border-top: 1px solid rgba(0,0,0,0.2);
}

/* 4. LED 发光文字 */
.sk-text-led-orange {
    color: var(--led-orange);
    text-shadow: 0 0 8px rgba(255, 123, 0, 0.6);
    font-family: 'Courier New', monospace; /* 模拟数码字体 */
    letter-spacing: 0.05em;
}
.sk-text-led-green {
    color: var(--led-green);
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.6);
}
.sk-text-led-blue {
    color: var(--led-blue);
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.6);
}

/* 5. 装饰性分割线 (凹槽) */
.sk-divider {
    height: 2px;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 2rem 0;
}

/* --------------------------------------
   旧样式兼容与覆盖 (Animations & Layout)
-------------------------------------- */

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

#flightMap, #jobHeatmap {
    width: 100%;
}

/* Custom Scrollbar - 机械风格 */
::-webkit-scrollbar {
    width: 10px;
    background: #1a1a1d;
}
::-webkit-scrollbar-track {
    background: #151518;
    box-shadow: inset 1px 1px 4px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #333 0%, #444 50%, #333 100%);
    border-radius: 2px;
    border: 1px solid #111;
}

/* Timeline specific */
.relative.border-l-2 {
    border-image: linear-gradient(to bottom, #f97316, #3b82f6, #10b981, #f97316) 1;
    /* 改为金属管路效果在 HTML 中处理，这里保留 fallback */
    border-left: 4px solid #333;
    border-image: none;
    box-shadow: -2px 0 4px rgba(0,0,0,0.5);
    border-radius: 2px;
}

/* Stamp Animation */
@keyframes stampEffect {
    0% { transform: scale(3) rotate(30deg); opacity: 0; }
    50% { transform: scale(0.9) rotate(-5deg); opacity: 1; }
    100% { transform: scale(1) rotate(12deg); opacity: 1; }
}

.stamp-active {
    filter: grayscale(0) !important;
    box-shadow: 0 0 15px var(--led-blue) !important; /* 发光印章 */
}

.stamp-active .stamp-mark {
    animation: stampEffect 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Grid Pattern for Maps */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}