.demo-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
  }
  
  .demo-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    margin: 20px auto;
    border-radius: 8px;
    display: inline-block;
  }
  
  .bounce-once {
    animation: bounce 1s ease-in-out 1;
  }
  
  .bounce-three {
    animation: bounce 1s ease-in-out 3;
  }
  
  .bounce-infinite {
    animation: bounce 1s ease-in-out infinite;
  }
  
  .fade-finite {
    animation: fadeInOut 2s ease-in-out 2;
  }
  
  .pulse-decimal {
    animation: pulse 1.5s ease-in-out 2.5;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
  }
  
  @keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
  }
  
  @keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .interactive-demo {
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
  }
  
  .control-panel {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  .control-panel button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
  }
  
  .control-panel button:hover {
    background: #0056b3;
  }
  
  .control-panel input {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 80px;
  }
  
  .control-panel label {
    font-weight: 600;
    color: #333;
  }
  
  .dynamic-box {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 20px auto;
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  
  .code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #4299e1;
  }
  
  .highlight {
    background: #4a5568;
    padding: 2px 4px;
    border-radius: 3px;
  }
  
  .tip-box {
    background: #e6fffa;
    border-left: 4px solid #38b2ac;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
  }
  
  .warning-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
  }
  
  .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  
  .comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
  }
  
  .comparison-table tr:nth-child(even) {
    background: #f8f9fa;
  }