/* 双向流新风系统专用样式 - 俯视图设计 */

.system-diagram {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 3px solid #ddd;
}

/* 俯视图布局 - 十字交叉设计 */
.top-view-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-areas: 
        "outdoor-fresh . indoor-return"
        ". heat-exchanger ."
        "indoor-supply . outdoor-exhaust";
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 2fr 1fr;
    gap: 20px;
}

/* 环境区域 */
.outdoor-environment,
.indoor-environment {
    position: absolute;
    width: 200px;
    padding: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.outdoor-environment {
    top: 50px;
    left: 50px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.indoor-environment {
    top: 50px;
    right: 50px;
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.outdoor-label,
.indoor-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.outdoor-conditions,
.indoor-conditions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.temp-display {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.temp-display.cold {
    background: rgba(116, 185, 255, 0.3);
    border: 1px solid rgba(255,255,255,0.5);
}

.temp-display.warm {
    background: rgba(253, 121, 168, 0.3);
    border: 1px solid rgba(255,255,255,0.5);
}

.quality-display {
    font-size: 12px;
    opacity: 0.9;
}

/* 新风机主机 */
.main-unit {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: linear-gradient(135deg, #2d3436, #636e72);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.unit-label {
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 空气路径 */
.fresh-air-path,
.exhaust-air-path {
    position: relative;
    height: 150px;
    margin-bottom: 20px;
}

.fresh-air-path {
    background: linear-gradient(90deg, rgba(116, 185, 255, 0.2), rgba(39, 174, 96, 0.2));
    border-radius: 10px;
    border: 2px solid #74b9ff;
}

.exhaust-air-path {
    background: linear-gradient(90deg, rgba(253, 121, 168, 0.2), rgba(149, 165, 166, 0.2));
    border-radius: 10px;
    border: 2px solid #fd79a8;
}

.path-label {
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: #2d3436;
}

/* 处理组件 */
.processing-components {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.processing-components.reverse {
    flex-direction: row-reverse;
}

.component {
    position: relative;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.component:hover {
    transform: scale(1.1);
}

.component-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.rotating-fan {
    animation: rotate 2s linear infinite;
}

.component-label {
    font-size: 10px;
    font-weight: bold;
    color: #2d3436;
    text-align: center;
}

.component-status {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00b894;
    animation: statusBlink 2s ease-in-out infinite;
}

.efficiency-indicator {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #00b894;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    animation: efficiencyPulse 2s ease-in-out infinite;
}

/* 热交换核心 */
.heat-exchange-core {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, #e17055, #d63031);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.core-label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.heat-transfer-animation {
    position: relative;
    width: 150px;
    height: 20px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
}

.heat-wave {
    position: absolute;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: heatWave 3s ease-in-out infinite;
}

.heat-wave:nth-child(2) { animation-delay: 1s; }
.heat-wave:nth-child(3) { animation-delay: 2s; }

.temperature-exchange {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 10px;
    margin-top: 5px;
}

/* 风口 */
.supply-outlet,
.return-inlet,
.exhaust-outlet {
    position: absolute;
    width: 120px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.supply-outlet {
    bottom: 50px;
    right: 50px;
    border: 3px solid #00b894;
}

.return-inlet {
    bottom: 200px;
    right: 50px;
    border: 3px solid #fd79a8;
}

.exhaust-outlet {
    bottom: 50px;
    left: 50px;
    border: 3px solid #95a5a6;
}

.outlet-label,
.inlet-label {
    font-size: 12px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 5px;
}

.outlet-temp,
.inlet-temp {
    font-size: 14px;
    font-weight: bold;
    color: #0984e3;
    margin-bottom: 3px;
}

.outlet-quality,
.inlet-quality {
    font-size: 10px;
    color: #636e72;
}

/* 空气粒子 */
.air-particles {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 10px;
    overflow: hidden;
}

.outdoor-particles::before,
.outdoor-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(116, 185, 255, 0.8);
    animation: particleFlow 4s ease-in-out infinite;
}

.indoor-particles::before,
.indoor-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(253, 121, 168, 0.8);
    animation: particleFlow 4s ease-in-out infinite;
}

.supply-particles::before,
.supply-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 184, 148, 0.8);
    animation: particleFlow 4s ease-in-out infinite;
}

.return-particles::before,
.return-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(253, 121, 168, 0.8);
    animation: particleFlow 4s ease-in-out infinite;
}

.exhaust-out-particles::before,
.exhaust-out-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(149, 165, 166, 0.8);
    animation: particleFlow 4s ease-in-out infinite;
}

.air-particles::after {
    animation-delay: 2s;
}

/* 管道系统 */
.ductwork {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.duct {
    position: absolute;
    background: rgba(108, 117, 125, 0.3);
    border-radius: 15px;
}

.fresh-air-duct {
    top: 120px;
    left: 250px;
    width: 200px;
    height: 30px;
    transform: rotate(-15deg);
}

.supply-duct {
    bottom: 120px;
    right: 170px;
    width: 200px;
    height: 30px;
    transform: rotate(15deg);
}

.return-duct {
    bottom: 270px;
    right: 170px;
    width: 200px;
    height: 30px;
    transform: rotate(-15deg);
}

.exhaust-duct {
    bottom: 120px;
    left: 170px;
    width: 200px;
    height: 30px;
    transform: rotate(-15deg);
}

.duct-flow {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.fresh-duct-flow {
    background: linear-gradient(90deg, rgba(116, 185, 255, 0.5), rgba(39, 174, 96, 0.5));
    animation: ductFlow 3s ease-in-out infinite;
}

.supply-duct-flow {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.5), rgba(0, 184, 148, 0.5));
    animation: ductFlow 3s ease-in-out infinite;
}

.return-duct-flow {
    background: linear-gradient(90deg, rgba(253, 121, 168, 0.5), rgba(231, 76, 60, 0.5));
    animation: ductFlow 3s ease-in-out infinite reverse;
}

.exhaust-duct-flow {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.5), rgba(149, 165, 166, 0.5));
    animation: ductFlow 3s ease-in-out infinite reverse;
}

/* 动画定义 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes efficiencyPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

@keyframes heatWave {
    0% { left: -30px; }
    100% { left: 150px; }
}

@keyframes particleFlow {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(120px);
        opacity: 0;
    }
}

@keyframes ductFlow {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .system-diagram {
        height: 600px;
        padding: 20px;
    }
    
    .main-unit {
        width: 500px;
        height: 300px;
    }
    
    .outdoor-environment,
    .indoor-environment {
        width: 150px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .system-diagram {
        height: 500px;
        padding: 15px;
    }
    
    .main-unit {
        width: 400px;
        height: 250px;
        padding: 20px;
    }
    
    .component {
        width: 60px;
        height: 60px;
    }
    
    .component-icon {
        font-size: 18px;
    }
    
    .component-label {
        font-size: 8px;
    }
}