.hoc-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    position: relative;
}
.hoc-step {
    background: white;
    border: 3px solid;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 200px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.hoc-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.hoc-step-1 { border-color: #007bff; }
.hoc-step-2 { border-color: #28a745; }
.hoc-step-3 { border-color: #ffc107; }
.hoc-arrow {
    font-size: 24px;
    color: #6c757d;
    position: absolute;
    z-index: 0;
}
.hoc-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}
.component-box {
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    margin: 0 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}
.hoc-arrow-right {
    font-size: 30px;
    color: white;
    margin: 0 15px;
}
.hoc-decorator {
    position: relative;
    border: 2px dashed #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.05);
}
.hoc-decorator:before {
    content: 'HOC包装';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #28a745;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.hoc-comparison {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.hoc-comparison-item {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid;
}
.hoc-pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.hoc-pattern-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}
.hoc-pattern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.pattern-icon {
    font-size: 30px;
    margin-bottom: 15px;
    color: #007bff;
}
.hoc-use-case {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}
.hoc-pros-cons {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}
.pros-box, .cons-box {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
}
.pros-box {
    background: #d4edda;
    border: 2px solid #28a745;
}
.cons-box {
    background: #f8d7da;
    border: 2px solid #dc3545;
}
.hoc-demo-area {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}
.demo-component {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}
.demo-component:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.1);
}
.hoc-timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 50px;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}
.timeline-item:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #007bff;
}
.timeline-item:after {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: -30px;
    width: 2px;
    background: #dee2e6;
}
.timeline-item:last-child:after {
    display: none;
}
