/* 十字交叉热交换新风系统样式 */

.cross-flow-system {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 系统标题 */
.system-header {
    text-align: center;
    margin-bottom: 25px;
}

.system-header h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: bold;
}

.system-header p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* 主系统图 */
.system-diagram {
    position: relative;
    background: white;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    min-height: 300px;
}

/* 新风机外壳 */
.ventilation-housing {
    position: relative;
    width: 100%;
    height: 250px;
    background: #ecf0f1;
    border: 2px solid #95a5a6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 风机单元 */
.supply-fan-unit,
.exhaust-fan-unit {
    position: absolute;
    top: 20px;
    width: 80px;
    height: 80px;
    background: #bdc3c7;
    border: 2px solid #7f8c8d;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.supply-fan-unit {
    left: 30px;
}

.exhaust-fan-unit {
    right: 30px;
}

.fan-housing {
    width: 50px;
    height: 50px;
    background: #95a5a6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.fan-rotor {
    width: 35px;
    height: 35px;
    position: relative;
}

.fan-rotor.rotating {
    animation: fanRotation 2s linear infinite;
}

.fan-blade {
    position: absolute;
    width: 15px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.fan-blade:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.fan-blade:nth-child(2) { transform: translate(-50%, -50%) rotate(120deg); }
.fan-blade:nth-child(3) { transform: translate(-50%, -50%) rotate(240deg); }

.fan-label {
    font-size: 10px;
    color: #2c3e50;
    font-weight: bold;
    text-align: center;
}

/* 热交换芯体 */
.heat-exchanger-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 80px;
    background: #d5dbdb;
    border: 2px solid #85929e;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.core-label {
    position: absolute;
    top: -20px;
    font-size: 11px;
    color: #2c3e50;
    font-weight: bold;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.cross-exchanger {
    width: 100%;
    height: 100%;
    position: relative;
}

.cross-structure {
    position: relative;
    width: 100%;
    height: 100%;
}

.horizontal-channel,
.vertical-channel {
    position: absolute;
    background: #95a5a6;
}

.horizontal-channel {
    width: 100%;
    height: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.vertical-channel {
    width: 8px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.cross-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 3px;
}

.heat-transfer-waves {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    animation: heatWave 2s ease-in-out infinite;
}

.wave:nth-child(1) { top: 20%; animation-delay: 0s; }
.wave:nth-child(2) { top: 50%; animation-delay: 0.3s; }
.wave:nth-child(3) { top: 80%; animation-delay: 0.6s; }

/* 排风过滤器 */
.exhaust-filter {
    position: absolute;
    bottom: 20px;
    right: 30px;
    width: 60px;
    height: 40px;
    background: #bdc3c7;
    border: 2px solid #7f8c8d;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.filter-element {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 3px;
}

.filter-mesh {
    width: 40px;
    height: 3px;
    background: #34495e;
    border-radius: 1px;
}

.filter-label {
    font-size: 8px;
    color: #2c3e50;
    font-weight: bold;
    text-align: center;
}

/* 空气流动路径 */
.air-flow {
    position: absolute;
    height: 20px;
}

.indoor-fresh-flow {
    bottom: 60px;
    left: 120px;
    right: 120px;
}

.outdoor-fresh-flow {
    bottom: 35px;
    left: 120px;
    right: 120px;
}

.indoor-exhaust-flow {
    top: 60px;
    left: 120px;
    right: 120px;
}

.outdoor-exhaust-flow {
    top: 35px;
    left: 120px;
    right: 120px;
}

.flow-pipe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.blue-pipe {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.red-pipe {
    background: linear-gradient(270deg, #e74c3c, #c0392b);
}

.dark-blue-pipe {
    background: linear-gradient(270deg, #2c3e50, #34495e);
}

.dark-red-pipe {
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
}

.flow-particles {
    position: relative;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.indoor-fresh-flow .particle,
.outdoor-exhaust-flow .particle {
    animation: flowRight 3s linear infinite;
}

.outdoor-fresh-flow .particle,
.indoor-exhaust-flow .particle {
    animation: flowLeft 3s linear infinite;
}

.flow-label {
    position: absolute;
    top: -18px;
    left: 10px;
    font-size: 10px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    color: #2c3e50;
}

/* 流向箭头 */
.flow-arrows {
    position: absolute;
    width: 100%;
    height: 100%;
}

.arrow {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    animation: arrowPulse 2s ease-in-out infinite;
}

.arrow-left {
    left: 10px;
    bottom: 45px;
}

.arrow-right {
    right: 10px;
    bottom: 45px;
}

.arrow-left-top {
    left: 10px;
    top: 45px;
}

.arrow-right-top {
    right: 10px;
    top: 45px;
}

/* 组件编号 */
.component-numbers {
    position: absolute;
    bottom: -30px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.number-label {
    width: 20px;
    height: 20px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 技术说明 */
.technical-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.technical-description p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #2c3e50;
}

/* 性能参数 */
.performance-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.spec-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-3px);
}

.spec-value {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.spec-label {
    font-size: 11px;
    opacity: 0.9;
}

/* 动画定义 */
@keyframes fanRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heatWave {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes flowRight {
    0% { left: -15px; }
    100% { left: calc(100% + 15px); }
}

@keyframes flowLeft {
    0% { right: -15px; }
    100% { right: calc(100% + 15px); }
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cross-flow-system {
        padding: 15px;
    }
    
    .system-diagram {
        padding: 20px;
        min-height: 250px;
    }
    
    .ventilation-housing {
        height: 200px;
    }
    
    .supply-fan-unit,
    .exhaust-fan-unit {
        width: 60px;
        height: 60px;
        top: 15px;
    }
    
    .supply-fan-unit {
        left: 20px;
    }
    
    .exhaust-fan-unit {
        right: 20px;
    }
    
    .fan-housing {
        width: 35px;
        height: 35px;
    }
    
    .heat-exchanger-core {
        width: 90px;
        height: 60px;
    }
    
    .performance-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .system-header h3 {
        font-size: 20px;
    }
    
    .system-header p {
        font-size: 12px;
    }
}

/* 减少动画以提高性能 */
@media (prefers-reduced-motion: reduce) {
    .fan-rotor.rotating,
    .wave,
    .particle,
    .arrow {
        animation: none;
    }
}

/* 悬停效果 */
.supply-fan-unit:hover,
.exhaust-fan-unit:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.heat-exchanger-core:hover {
    transform: translate(-50%, -50%) scale(1.05);
    transition: transform 0.3s ease;
}

.exhaust-filter:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}