/* 文件名: styles.css */

:root {
    --tech-blue: #00f0ff;
    --tech-dark: #0a192f;
    --panel-bg: rgba(13, 25, 48, 0.95);
    --hot-color: #ff4d4d;
    --cold-color: #00f0ff;
    --warn-color: #ffcc00;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    background-color: #020c1b;
    color: #ccd6f6;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ... [ V4版本中所有 CSS 样式内容 ] ... */

/* 顶部导航 */
header {
    height: 50px;
    padding: 0 20px;
    background: rgba(10, 25, 47, 0.9);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}
/* ... (粘贴所有 V4 CSS 样式到此处) ... */

h1 { font-size: 1.1rem; color: var(--tech-blue); margin: 0; letter-spacing: 1px; }
        .status-light { width: 8px; height: 8px; background: #0f0; border-radius: 50%; box-shadow: 0 0 8px #0f0; display: inline-block; margin-right: 5px; }

        /* 主容器布局 */
        .container {
            flex: 1;
            display: flex;
            flex-direction: row;
            overflow: hidden;
            position: relative;
        }

        /* 画布区域 */
        #canvas-area {
            flex: 1;
            position: relative;
            background: radial-gradient(circle at 50% 60%, #1b2d4b 0%, #020c1b 80%);
            overflow: hidden;
            cursor: default;
        }
        
        #canvas-area:hover { cursor: crosshair; }

        /* 控制面板区域 */
        #control-panel {
            width: 320px;
            background: var(--panel-bg);
            border-left: 1px solid rgba(0, 240, 255, 0.1);
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            z-index: 5;
        }

        /* 响应式：移动端切换为垂直布局 */
        @media (max-width: 768px) {
            .container { flex-direction: column; }
            #canvas-area { height: 60%; flex: none; border-bottom: 1px solid rgba(0,240,255,0.1); }
            #control-panel { width: 100%; height: 40%; flex: none; border-left: none; padding: 15px; }
            
            /* 移动端提示框固定顶部 */
            #tooltip {
                top: 10px !important;
                left: 50% !important;
                transform: translateX(-50%);
                width: 90%;
                pointer-events: none;
                text-align: center;
            }
        }

        /* UI 组件样式 */
        .panel-section {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 6px;
            padding: 12px;
        }
        .panel-title { color: var(--tech-blue); font-size: 0.9rem; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
        
        input[type=range] { width: 100%; margin: 10px 0; accent-color: var(--tech-blue); cursor: pointer; }
        
        button {
            width: 100%; background: transparent; color: var(--tech-blue);
            border: 1px solid var(--tech-blue); padding: 8px; border-radius: 4px;
            cursor: pointer; transition: 0.3s;
        }
        button:hover { background: rgba(0,240,255,0.1); }

        /* 悬浮提示框 (Tooltip) */
        #tooltip {
            position: absolute;
            background: rgba(10, 20, 35, 0.95);
            border: 1px solid var(--tech-blue);
            color: #fff;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 0.85rem;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            z-index: 100;
            white-space: nowrap;
        }

        /* SVG 元素动画与交互 */
        .component-group { transition: filter 0.3s; cursor: pointer; }
        
        /* PC端 Hover 效果：加亮 */
        @media (min-width: 769px) {
            .component-group:hover rect,
            .component-group:hover path:not(.pipe-path) {
                stroke: #fff;
                filter: drop-shadow(0 0 8px var(--tech-blue));
            }
        }
        
        /* 移动端/选中 效果 */
        .component-group.active rect,
        .component-group.active path:not(.pipe-path),
        .component-group.active circle {
            stroke: #fff !important;
            filter: drop-shadow(0 0 10px var(--warn-color));
        }

        .pipe-path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s; }
        
        /* 风扇动画 */
        .fan-blade { transform-box: fill-box; transform-origin: center; }

        /* 详情区文字 */
        .data-tag { display: inline-block; background: rgba(0,240,255,0.1); color: var(--tech-blue); padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; margin-right: 5px; margin-top:5px;}

        /* 新增：SVG 标签样式 */
        .svg-label {
            fill: var(--tech-blue);
            font-size: 14px;
            font-weight: bold;
            text-anchor: middle;
            filter: drop-shadow(0 0 2px #000);
        }