.animation-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0 0 0; /* 减少顶部内边距 */
    background-color: transparent;
}

.lottie-player {
    width: 100%;
    max-width: 1920px;
    height: auto;
}

/* 实验页面特定样式 */
.experiments-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px; /* 减少内边距 */
    min-height: calc(100vh - 60px); /* 减少最小高度 */
    width: 80%;
    display: flex;
    flex-direction: column;
}

/* 标题区域 */
.experiments-header {
    text-align: center;
    margin-bottom: 15px; /* 减少底部外边距 */
    padding: 10px 0; /* 减少内边距 */
}

.experiments-header h1 {
    color: #d63384;
    font-size: 2rem; /* 稍微减小字体大小 */
    margin-bottom: 5px; /* 减少底部外边距 */
}

.experiments-header p {
    color: #6c757d;
    font-size: 0.9rem; /* 稍微减小字体大小 */
}

/* JSON播放器区域 */
.experiments-json-player {
    width: 100%;
    height: 100px; /* 减少高度 */
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px; /* 减少底部外边距 */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #d63384;
}

.experiments-json-player p {
    color: #6c757d;
    font-size: 1rem; /* 稍微减小字体大小 */
}

/* 实验内容区域 - 修改为上下布局 */
.experiments-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px; /* 减少间距 */
    min-height: 750px; /* 减少最小高度 */
}

/* 分子实验区域 */
.experiments-molecular {
    display: flex;
    flex-direction: row;
    gap: 20px; /* 减少间距 */
    flex: 1;
    min-height: 350px; /* 减少最小高度 */
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px; /* 减少底部内边距 */
}

/* 细胞实验区域 */
.experiments-cell {
    display: flex;
    flex-direction: row;
    gap: 20px; /* 减少间距 */
    flex: 1;
    min-height: 350px; /* 减少最小高度 */
}

/* 实验部分 */
.experiments-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-top: 4px solid #d63384;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 600px; /* 减少高度 */
    align-self: center; /* 纵向居中 */
}

.experiments-section-header {
    background-color: #d63384;
    color: white;
    padding: 10px 15px; /* 减少内边距 */
    text-align: center;
}

.experiments-section-header h2 {
    font-size: 1.2rem; /* 稍微减小字体大小 */
    margin: 0;
}

/* 屏幕区域 */
.experiments-screen {
    flex: 1;
    padding: 12px; /* 减少内边距 */
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.experiments-screen-default {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    color: #6c757d;
    font-size: 0.9rem; /* 稍微减小字体大小 */
    text-align: center;
    flex-direction: column;
    height: 100%;
}

.experiments-screen-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 350px; /* 调整封面图片大小 */
    margin-bottom: 10px; /* 减少底部外边距 */
}

.experiments-screen-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    position: relative;
    height: 100%;
}

.experiments-screen-content.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.experiments-back-btn {
    position: absolute;
    top: 8px; /* 调整位置 */
    right: 8px; /* 调整位置 */
    background-color: #d63384;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 12px; /* 减少内边距 */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem; /* 稍微减小字体大小 */
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.experiments-back-btn:hover {
    background-color: #c2256e;
}

.experiments-screen-content h3 {
    color: #d63384;
    margin-bottom: 10px; /* 减少底部外边距 */
    font-size: 1.1rem; /* 稍微减小字体大小 */
    border-bottom: 1px solid #f8d7da;
    padding-bottom: 6px; /* 减少内边距 */
    padding-right: 80px; /* 减少右侧内边距 */
}

.experiments-screen-content p {
    margin-bottom: 10px; /* 减少底部外边距 */
    font-size: 0.85rem; /* 稍微减小字体大小 */
    line-height: 1.5; /* 调整行高 */
}

.experiments-screen-content strong {
    color: #d63384;
}

/* 导航区域 - 修改为与屏幕左右布局 */
.experiments-nav-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 15px; /* 减少内边距 */
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 280px; /* 稍微减小宽度 */
    flex-shrink: 0;
    align-self: center; /* 纵向居中 */
}

.experiments-nav-title {
    color: #d63384;
    font-size: 1.1rem; /* 稍微减小字体大小 */
    margin-bottom: 12px; /* 减少底部外边距 */
    padding-bottom: 6px; /* 减少内边距 */
    border-bottom: 1px solid #f8d7da;
    text-align: center;
}

.experiments-nav-items {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 减少间距 */
    flex: 1;
    justify-content: flex-start;
    overflow: visible;
    max-height: none;
    overflow-y: auto;
}

.experiments-nav-item {
    padding: 5px 6px; /* 减少内边距 */
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    text-align: left;
    min-height: 45px; /* 减少最小高度 */
    display: flex;
    align-items: center;
}

.experiments-nav-item:hover {
    background-color: #f8d7da;
    /* 移除右移效果 */
}

.experiments-nav-item:hover::after {
    content: "Click me!";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #d63384;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    animation: pulse 1.5s infinite;
}

.experiments-nav-item.active {
    background-color: #d63384;
    color: white;
    border-color: #d63384;
}

.experiments-nav-item h4 {
    font-size: 0.85rem; /* 稍微减小字体大小 */
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* 页脚样式 */
.experiments-footer {
    text-align: center;
    padding: 12px; /* 减少内边距 */
    margin-top: 15px; /* 减少顶部外边距 */
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.8rem; /* 稍微减小字体大小 */
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .experiments-molecular, .experiments-cell {
        flex-direction: column;
    }
    
    .experiments-nav-section {
        width: 100%;
        height: auto;
        max-height: 250px; /* 减少最大高度 */
    }
    
    .experiments-section {
        max-height: none;
        height: auto;
    }
}

@media (max-width: 768px) {
    .experiments-nav-item:hover::after {
        display: none;
    }
    
    .experiments-container {
        width: 90%; /* 增加宽度 */
        padding-left: 5%; /* 调整内边距 */
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}