* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.chemical-custom-section {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.1);
    overflow: hidden;
    border: 1px solid #e9d8fd;
}

.hero-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(rgba(106, 13, 173, 0.7), rgba(74, 0, 128, 0.8)), 
                url('https://www.bhshiji.com/uploads/20260107/f2cfa6aebebc21be630202ff4b560d2a.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
}

.hero-content {
    text-align: center;
    color: white;
    padding: 30px;
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: #fff!important;
    opacity: 0.95;
    margin-bottom: 20px;
}

.hero-tagline {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff!important;
    font-weight: 600;
    margin-top: 10px;
}

.flowchart-section {
    padding: 60px 30px;
    background-color: #F9F5FF;
    text-align: center;
}

.flowchart-title {
    color: #6A0DAD;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.flowchart-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.horizontal-flowchart {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 180px;
    position: relative;
    margin: 0 2px;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px 20px;
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.12);
    border: 2px solid #E6D4F7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(106, 13, 173, 0.2);
    border-color: #8A2BE2;
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6A0DAD, #8A2BE2);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(106, 13, 173, 0.3);
    z-index: 4;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6A0DAD, #8A2BE2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 新增图标样式，替代<i>标签 */
.icon-font {
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* 确保图标显示 */
    display: inline-block;
}

.step-title {
    color: #6A0DAD;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    color: #444;
    line-height: 1.6;
    font-size: 0.9rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-content p {
    margin-bottom: 6px;
    padding: 0 5px;
}

.step-note {
    color: #8A2BE2;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    background-color: #F3E5F5;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* 连接箭头 */
.step-connector {
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.connector-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid #8A2BE2;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* 特殊步骤样式 */
.first-step .step-card {
    border: 2px solid #4A90E2;
    background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
}

.first-step .step-icon {
    background: linear-gradient(135deg, #4A90E2, #2c6fb7);
}

.first-step .step-title {
    color: #2c6fb7;
}

.last-step .step-card {
    border: 2px solid #32CD32;
    background: linear-gradient(135deg, #f0fff0, #e6ffe6);
}

.last-step .step-icon {
    background: linear-gradient(135deg, #32CD32, #228B22);
}

.last-step .step-title {
    color: #228B22;
}

.process-section {
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
}

.section-title {
    text-align: center;
    color: #6A0DAD;
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6A0DAD, #8A2BE2);
    border-radius: 2px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.process-row {
    display: contents;
}

.process-step {
    background: white;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.12);
    border: 2px solid #E6D4F7;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(106, 13, 173, 0.2);
    border-color: #8A2BE2;
}

.step-header-inline {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-icon-inline {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6A0DAD, #8A2BE2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.step-title-inline {
    color: #6A0DAD;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    flex-grow: 1;
}

.step-desc {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
}

.highlight {
    color: #6A0DAD;
    font-weight: 600;
}

/* 第二排特殊布局 */
.bottom-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.bottom-step {
    flex: 0 0 calc(50% - 15px);
    max-width: 500px;
}

.bottom-step .step-header-inline {
    margin-bottom: 25px;
}

.bottom-step .step-icon-inline {
    width: 80px;
    height: 80px;
    font-size: 1.6rem;
}

.bottom-step .step-title-inline {
    font-size: 1.6rem;
}

.bottom-step .step-desc {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .horizontal-flowchart {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .flow-step {
        flex: 0 0 calc(33.333% - 20px);
        min-width: 200px;
        margin-bottom: 40px;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-card {
        min-height: 260px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-row {
        flex-wrap: wrap;
    }
    
    .bottom-step {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 280px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    
    .flowchart-title {
        font-size: 1.8rem;
    }
    
    .flowchart-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .flow-step {
        flex: 0 0 100%;
        max-width: 350px;
        margin-bottom: 30px;
    }
    
    .step-card {
        padding: 25px 15px 15px;
        min-height: 240px;
    }
    
    .step-title {
        font-size: 1.3rem;
        min-height: 40px;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .process-step {
        padding: 30px 25px;
    }
    
    .step-header-inline {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-icon-inline {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .step-title-inline {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .bottom-step .step-icon-inline {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .bottom-step .step-title-inline {
        font-size: 1.5rem;
    }
    
    .bottom-step .step-desc {
        font-size: 1.05rem;
    }
}