.component-demo {
    background-color: #f0f8ff;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
}
.component-demo::before {
    content: '组件演示';
    position: absolute;
    top: -12px;
    left: 20px;
    background: #3498db;
    color: white;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
}
.code-section {
    background-color: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
}
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}
.comparison-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
}
.feature-card {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}
.concept-diagram {
    background: #f9f9f9;
    border: 2px dashed #3498db;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}
.props-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 25px 0;
}
.props-table th {
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    font-weight: 600;
}
.props-table tr:nth-child(even) {
    background-color: #f8f9fa;
}
.lifecycle-chart {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #e74c3c;
    margin: 25px 0;
}
.note-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}
.tip-box {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}
.warning-box {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}
.step-by-step {
    counter-reset: step;
    margin: 25px 0;
}
.step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
    min-height: 50px;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}
