﻿.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.card {
    display: flex;
    align-items: flex-start;
    width: calc(33.333% - 20px);
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: -25%;
    width: 50%;
    height: 100%;
    background-image: url(/Content/Areas/Hospitals/images/logo.png);
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 16px;
    z-index: 1;
    position: relative;
}

.card-content {
    flex: 1;
    margin-top: 20px;
    min-height: 180px;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.card-divider {
    height: 2px;
    width: 30px;
    background-color: #c09f77;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

.card-research {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.card-link {
    color: rgb(11, 94, 154);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.card:hover {
    background-color: rgb(11, 94, 154);
}

.card:hover::before {
    opacity: 0.2;
}

.card:hover .card-title,
.card:hover .card-research,
.card:hover .card-link {
    color: white;
}

.card:hover .card-divider {
    background-color: rgba(255, 255, 255, 0.7);
}

/*研究生*/
.timeline {
    position: relative;
    margin: 50px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #0B5E9A;
}

.timeline-item {
    position: relative;
    padding: 20px 0 20px 100px;
    margin-bottom: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 25px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0B5E9A;
    z-index: 1;
}

.timeline-year {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 26px;
    top: 29px;
    width: 40px;
    height: 1px;
    background-color: #6CA1C5;
    z-index: 1;
}

.timeline-names {
    display: flex;
}

.timeline-names a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-names a:hover {
    background-color: #0B5E9A;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(11, 94, 154, 0.3);
}
@media only screen and (max-width:768px) {
    .card-container{
         display: flex;
    flex-wrap: wrap;
    gap: 0px;
    padding: 0px;
    max-width: 100%;
    margin: 0 auto;
    }
    .card{
        display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 16px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    }
}