.button-container {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 15px;
    padding: 10px;
    width: 100%;
    /* 宽度100% */
    box-sizing: border-box;
    /* 确保padding不影响宽度 */
}

.button-column {
    flex: 1 1 calc(50% - 15px);
    /* 每列占50%宽度，减去gap的影响 */
    min-width: 0;
    /* 防止内容溢出 */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.machine-button {
    padding: 12px 15px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;

    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    /* 防止按钮文字换行（可选） */
    overflow: hidden;
    /* 隐藏溢出内容（可选） */
    text-overflow: ellipsis;
    /* 文字超出显示省略号（可选） */
}

.machine-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.machine-button.active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 按钮容器改为 Flex 布局，自动换行 */
.button-container1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* 按钮间距 */
    padding: 10px;
    width: 100%;
    /* 确保宽度 100% */
    box-sizing: border-box;
    /* 防止 padding 影响宽度 */
}

/* 按钮样式 */
.machine-button1 {
    padding: 7px 10px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 calc(20% - 10px);
    /* 每行最多 5 个按钮（自动调整） */
    min-width: 120px;
    /* 最小宽度 */
    max-width: 150px;
    /* 最大宽度（可选） */
}

.machine-button1:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.machine-button1.active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* 右侧内容 */
.container-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* 容器高度占满视口 */
}

.top,
.bottom {
    padding: 0px;
    margin: 0px;
    text-align: center;
}

.top-test h2,
p {
    margin: 0px;
    padding: 0px;
}

.top-test p {
    margin-left: 250px;
}

.middle {
    flex: 1;
    /* 中间区域占据剩余空间 */
    overflow: hidden;
    /* 隐藏溢出内容（配合内部滚动） */
    position: relative;
    /* 为滚动区域定位 */
}

.scroll-content {
    height: 100%;
    /* 填满父容器 */
    overflow-y: auto;
    /* 允许垂直滚动 */
    /* padding: 10px; */
    /* 隐藏滚动条（Chrome/Safari/Edge） */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* 隐藏滚动条（WebKit浏览器：Chrome/Safari） */
.scroll-content::-webkit-scrollbar {
    display: none;
}



/* 时间线---样式 */
.timeline {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0px;
}

/* 修改竖线样式 - 关键改动 */
.timeline::before {
    content: '';
    position: absolute;
    left: 78px;
    top: 0;
    bottom: 20px;
    /* 改为底部内边距，而不是0 */
    width: 2px;
    height: 98%;
    margin-top: 5px;
    background: linear-gradient(to bottom, #4CAF50, #cd21f3);
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
}

/* 最后一个项目特殊处理 */
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    /* flex: 0 0 60px; */
    text-align: right;
    padding-right: 15px;
    position: relative;
    font-weight: bold;
    color: #2196F3;
    font-size: 18px;
}

.timeline-date::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding: 5px 10px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-top: 0;
    color: #2196F3;
    font-size: 16px;
}

.timeline-content p {
    margin-bottom: 0;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .timeline::before {
        left: 20px;
        bottom: 10px;
    }

    .timeline-date {
        flex: 0 0 60px;
        padding-right: 15px;
        font-size: 16px;
    }

    .timeline-date::after {
        right: -7px;
        width: 12px;
        height: 12px;
    }
}