.code-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #42b983;
}
.note-box {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.warning-box {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.tip-box {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}
.lifecycle-diagram {
    background-color: white;
    border: 2px solid #42b983;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}
.lifecycle-stage {
    background-color: #f0f9ff;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
}
.lifecycle-stage:before {
    content: "✓";
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2196f3;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.hook-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.hook-table th {
    background-color: #35495e;
    color: white;
    padding: 12px;
    text-align: left;
}
.hook-table td {
    border: 1px solid #ddd;
    padding: 10px;
}
.hook-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.hook-table .composition-api {
    background-color: #f0f9ff;
}
.hook-table .options-api {
    background-color: #fff8e1;
}
.api-badge {
    background-color: #42b983;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 5px;
}
.lifecycle-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    position: relative;
}
.flow-item {
    background-color: #2196f3;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    margin: 10px 0;
    text-align: center;
    width: 80%;
    position: relative;
    font-weight: bold;
}
.flow-item:after {
    content: "↓";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #42b983;
}
.flow-item:last-child:after {
    display: none;
}
.hook-timeline {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
    flex-wrap: wrap;
}
.timeline-item {
    flex: 1;
    min-width: 150px;
    margin: 10px;
    text-align: center;
    position: relative;
}
.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #42b983;
    border-radius: 50%;
    margin: 0 auto 10px;
    position: relative;
}
.timeline-dot:before, .timeline-dot:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50%;
    height: 2px;
    background-color: #ddd;
}
.timeline-dot:before {
    left: 0;
    transform: translateX(-100%);
}
.timeline-dot:after {
    right: 0;
    transform: translateX(100%);
}
.timeline-item:first-child .timeline-dot:before,
.timeline-item:last-child .timeline-dot:after {
    display: none;
}
.demo-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
}
.hook-log {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}
.log-entry {
    margin-bottom: 5px;
    padding: 3px 0;
    border-bottom: 1px solid #333;
}
.log-time {
    color: #888;
    margin-right: 10px;
}
.log-hook {
    color: #4ec9b0;
}
.log-message {
    color: #dcdcaa;
}
