/* 技术文章页面专用样式 */

/* 文章标题区域 */
.article-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="article-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23article-pattern)"/></svg>');
}

.article-header .container {
    position: relative;
    z-index: 1;
}

.article-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.article-meta .category {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.article-meta .date,
.article-meta .author,
.article-meta .views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章内容区域 */
.article-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 文章摘要 */
.article-summary {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 4px solid #27ae60;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 0 10px 10px 0;
}

.article-summary h2 {
    color: #27ae60;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-summary p {
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

/* 目录 */
.table-of-contents {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
}

.table-of-contents h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.table-of-contents a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 内容章节 */
.content-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.content-section h3 {
    color: #34495e;
    font-size: 22px;
    margin: 30px 0 15px;
    font-weight: bold;
}

.content-section h4 {
    color: #2c3e50;
    font-size: 18px;
    margin: 20px 0 10px;
    font-weight: 600;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-left: 4px solid #3498db;
    padding: 25px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
}

.highlight-box h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-weight: bold;
}

.highlight-box ul {
    margin: 0;
    padding-left: 20px;
}

.highlight-box li {
    margin-bottom: 8px;
    color: #2c3e50;
}

/* 对比表格 */
.comparison-table {
    margin: 25px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* 流程步骤 */
.process-flow {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow-x: auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
    flex-shrink: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-content h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.step-content p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.flow-arrow {
    font-size: 24px;
    color: #3498db;
    font-weight: bold;
    flex-shrink: 0;
}

/* 空气流动图 */
.airflow-diagram {
    margin: 30px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.diagram-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    align-items: center;
    text-align: center;
}

.outdoor-air { grid-area: 1 / 1; }
.ventilation-unit { grid-area: 1 / 2 / 3 / 3; }
.indoor-supply { grid-area: 1 / 3; }
.indoor-return { grid-area: 2 / 3; }
.exhaust-air { grid-area: 2 / 1; }

.air-label {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.temp-indicator {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.temp-indicator.cold { background: #3498db; }
.temp-indicator.warm { background: #e74c3c; }
.temp-indicator.treated { background: #27ae60; }
.temp-indicator.exhaust { background: #95a5a6; }

.ventilation-unit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unit-component {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}

/* 技术说明 */
.tech-explanation {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
}

.tech-explanation h4 {
    color: #e67e22;
    margin-bottom: 20px;
    font-size: 20px;
}

.exchange-process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.process-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.process-item h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.process-item p {
    margin-bottom: 8px;
    font-size: 14px;
}

.efficiency-note {
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* 热交换器类型 */
.exchanger-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

.type-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.type-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.type-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.type-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-card li {
    padding: 5px 0;
    font-size: 14px;
}

/* 过滤级别 */
.filter-stages {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    justify-content: space-between;
}

.filter-stage {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.filter-stage:hover {
    transform: translateY(-5px);
}

.stage-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.stage-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.stage-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.efficiency {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

/* 净化效果 */
.purification-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.result-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.result-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: width 1s ease;
}

/* 传感器网格 */
.sensors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 25px 0;
}

.sensor-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sensor-item:hover {
    transform: translateY(-5px);
}

.sensor-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.sensor-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.sensor-item p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 自动功能 */
.auto-functions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.function-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.function-card:hover {
    transform: translateY(-5px);
}

.function-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.function-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* 优势对比 */
.advantage-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.comparison-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-item h4 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.disadvantages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.disadvantages li {
    padding: 8px 0;
    color: #e74c3c;
    font-size: 14px;
}

.advantages {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantages li {
    padding: 8px 0;
    color: #27ae60;
    font-size: 14px;
}

.vs-indicator {
    background: #3498db;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* 经济分析 */
.economic-analysis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 25px 0;
}

.cost-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cost-item:hover {
    transform: translateY(-5px);
}

.cost-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.cost-item p {
    color: #7f8c8d;
    margin-bottom: 8px;
    font-size: 14px;
}

/* 文章结论 */
.article-conclusion {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
}

.article-conclusion h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
}

.article-conclusion p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.key-points {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.key-points h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-weight: bold;
}

.key-points ul {
    margin: 0;
    padding-left: 20px;
}

.key-points li {
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

/* 相关文章 */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.related-articles h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: bold;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-item:hover {
    background: white;
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
}

.related-item p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
}

/* 文章导航 */
.article-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-nav li {
    margin-bottom: 10px;
}

.article-nav a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.article-nav a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 参数列表 */
.param-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.param-item:last-child {
    border-bottom: none;
}

.param-name {
    color: #7f8c8d;
    font-size: 14px;
}

.param-value {
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
}

/* 联系信息 */
.sidebar-widget .contact-info {
    margin-bottom: 20px;
}

.sidebar-widget .contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.sidebar-widget .btn {
    width: 100%;
    text-align: center;
    padding: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 100px 0 40px;
    }
    
    .article-header h1 {
        font-size: 32px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .process-flow {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
    
    .exchange-process,
    .exchanger-types,
    .purification-results,
    .sensors-grid,
    .economic-analysis {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-indicator {
        order: 2;
        justify-self: center;
    }
    
    .filter-stages {
        flex-direction: column;
        gap: 20px;
    }
    
    .diagram-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .outdoor-air { grid-area: 1; }
    .ventilation-unit { grid-area: 2; }
    .indoor-supply { grid-area: 3; }
    .indoor-return { grid-area: 4; }
    .exhaust-air { grid-area: 5; }
}

@media (max-width: 480px) {
    .article-content {
        padding: 40px 0;
    }
    
    .main-content {
        padding: 25px 15px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
}