.dynamic-demo {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}
.component-switcher {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #ff9a9e;
}
.code-example {
    background-color: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
}
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #ff9a9e;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.keepalive-diagram {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border: 2px solid #e9ecef;
    position: relative;
}
.keepalive-diagram::before {
    content: 'keep-alive工作流程';
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ff9a9e;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}
.tab-system {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border: 2px solid #dee2e6;
}
.tab-buttons {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}
.tab-button {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    position: relative;
}
.tab-button.active {
    color: #ff9a9e;
}
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff9a9e;
}
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.interactive-demo {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.state-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 0 5px;
}
.badge-active { background: #4caf50; color: white; }
.badge-inactive { background: #f44336; color: white; }
.badge-cached { background: #2196f3; color: white; }
.dynamic-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}
.flow-step {
    text-align: center;
    padding: 15px;
    margin: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 150px;
    position: relative;
}
.flow-step::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #ff9a9e;
}
.flow-step:last-child::after {
    display: none;
}
.flow-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ff9a9e;
}
.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}
.tip-box {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}
.async-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}
.performance-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 25px 0;
}
.performance-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border: none;
}
.performance-table tr:hover {
    background-color: #f8f9fa;
}
