body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans SC', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 130%;
}


.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ddd;
    top: 20px;
    bottom: 200px;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
    word-break: break-all;
    overflow-wrap: break-word;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    top: 15px;
    
    border-radius: 50%;
    z-index: 1;
    transform: translateX(-50%);
}

.left {
    left: 0;
    padding-right: 50px;
    text-align: right;
    z-index: 3;
}

.right {
    left: 50%;
    padding-left: 50px;
    text-align: left;
    z-index: 3;
}

.center {
    
    width: 100%;
    padding: 1em 1em;
    text-align: center;
    z-index: 3; /* Ensure center items are above the line */
}

.left::after {
    left: 100%;
    border: 4px solid #FF9F55; /* Blue border for left items */
}

.right::after {
    left: 0%;
    border: 4px solid #0000FF; /* Orange border for right items */
}

.center::after {
    // display: none; 
     top: 2px;
    left: 50%;
    border: 4px solid #888888; /* Gray border for center items */
}
 

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 12px;
    width: 0;
    z-index: 1;
    right: -15px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 12px;
    width: 0;
    z-index: 1;
    left: -15px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.center::before {
    display: none; /* No arrow for center items */
    
}

.left .content {
    background-color: rgba(255, 243, 220, 0.7); /* Light blue for left items */
}

.right .content {
    background-color: rgba(221, 226, 245, 0.7); /* Light orange for right items */
}

.center .content {
    background-color: rgba(245, 245, 245, 0.7); /* Light gray with 70% opacity for center items */
}



.content {
    padding: 10px;
    width: 100%; 
    position: relative;
    border-radius: 8px;
    box-sizing: border-box;
    border: 4px solid rgba(224, 224, 224, 0.7); 
}

.text {
    width: 100%; 
    text-align: left;
}

.link {
    width: 100%;  /* Adjust width as needed */
    text-align: right; /* Align link text to the right */
}

.link a {
    color: #007bff; /* Set link color */
    text-decoration: none; /* Remove default underline */
}

.link a:hover {
    text-decoration: none; /* Add underline on hover */
}
.gallery {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }
        .gallery img {
            width: 140px;
            margin: 10px;
        }
hr {
    border: none;         /* 移除默认边框 */
    height: 3px;  /* 设置高度为4px */
    margin: 1.5em 0em;
    background-color: rgba(128, 128, 128, 0.5); /* 设置背景色为灰色 */
}
a {
    color: #0083e8;

            position: relative;
            
            text-decoration: none;
        }

        a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 4px;
            bottom: -4px;
            left: 50%;
            background-color: rgba(170, 170, 170, 0.58);
            transition: width 0.3s ease, left 0.3s ease;
        }

        a:hover::after {
            width: 100%;
            left: 0;
        }

/* Responsive design */
@media (max-width: 600px) {
    .timeline-item {
        left: 0;
        width: 99%;
        display: block;
        padding-left: 5px;
        padding-right: 5px;
        position: relative;
    }

    .left {
        width: 100%;
         position: relative;
        text-align: left;
        padding-right: 3em;
        padding-left: 0;
         
    }
    .right {
        width: 100%;
        position: relative;
        text-align: left;
        padding-right: 0;
        padding-left: 3em;
         
    }

    .center {
        width: 100%;
       
    }
    .left::before{
        top: 7px;
    width: 0;
    z-index: 4;
    right: 5px; 
    }
    .right::before{
    top: 7px;
    width: 0;
    z-index: 4;
    left: 25px;
    }
    .center::before{
    display: none; /* No arrow for center items */
       
    }
    
.left::after {
  left: 95%;
    top: 10px;
    z-index: 4;
 
}

.right::after {
    left: 15px;
  
}

.center::after {
 top: 5px;
}
    
    .timeline::after {
  
    background-color: white;
     
}
     .gallery {
                justify-content: center;
            }
            .gallery img {
                margin: 10px 5px;
            }
   
}