body {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    overflow: hidden;
}
#theory-panel {
    width: 40%;
    padding: 40px 30px;
    overflow-y: auto;
    background: #161625;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    z-index: 10;
}
#animation-panel {
    width: 60%;
    position: relative;
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
/* Markdown 样式美化 */
#content h1 { 
    color: #f093fb; 
    font-size: 26px; 
    border-bottom: 2px solid rgba(255,255,255,0.1); 
    padding-bottom: 15px;
    margin-top: 0;
}
#content h2 { 
    color: #4facfe; 
    font-size: 20px; 
    margin-top: 30px;
    display: flex;
    align-items: center;
}
#content h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #4facfe;
    margin-right: 10px;
    border-radius: 2px;
}
#content p { 
    line-height: 1.8; 
    font-size: 17px; 
    color: #dcdcdc; 
    margin-bottom: 16px;
}
#content ul { 
    line-height: 1.8; 
    font-size: 17px; 
    color: #dcdcdc; 
    padding-left: 20px;
}
#content li {
    margin-bottom: 8px;
}
#content strong { 
    color: #ffd700; 
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #161625; 
}
::-webkit-scrollbar-thumb {
    background: #3a3a5a; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4facfe; 
}