* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 左侧边栏样式 */
.sidebar {
    width: 280px;
    background-color: #f0f0f0;
    color: #333;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    height: 100vh;
    justify-content: space-between;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.avatar-container {
    margin-bottom: 30px;
    position: relative;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ddd;
    transition: opacity 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.avatar-container:hover .avatar {
    opacity: 0;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-image: var(--hover-avatar);
    background-size: cover;
    background-position: center;
    border: 4px solid #ddd;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.avatar-container:hover::after {
    opacity: 1;
}

.social-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.social-link svg {
    flex-shrink: 0;
}

/* Nyan Cat样式 */
.nyan-cat-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nyan-cat {
    width: 120px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 右侧主要内容样式 */
.main-content {
    flex: 1;
    padding: 60px 80px;
    overflow-y: auto;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
}

.markdown-content {
    color: #555;
    line-height: 1.8;
}

.markdown-content h3 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.markdown-content h4 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.markdown-content p {
    margin-bottom: 15px;
}

.markdown-content ul, .markdown-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.markdown-content li {
    margin-bottom: 8px;
}

/* Publications typography */
#publications .markdown-content li {
    margin-bottom: 14px;
}

#publications .pub-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05em;
}

#publications .pub-authors {
    color: #666;
    font-size: 0.92em;
}

#publications .pub-venue {
    color: #7a7a7a;
    font-size: 0.95em;
}

.markdown-content a {
    color: #3498db;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.markdown-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

/* 自定义图片类 - 用于控制GIF和图片的大小和位置 */
.markdown-content .img-small {
    max-width: 200px;
}

.markdown-content .img-medium {
    max-width: 500px;
}

.markdown-content .img-large {
    max-width: 800px;
}

.markdown-content .img-left {
    float: left;
    margin-right: 20px;
}

.markdown-content .img-right {
    float: right;
    margin-left: 20px;
}

.markdown-content .img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 30px 20px;
    }

    .main-content {
        padding: 30px 20px;
    }

    .section h2 {
        font-size: 1.5em;
    }
}

