html {-webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}
body {background-color: #fdfdfd; color: #2c3c4c; margin: 0; font-size: 13px;}
h1 {margin-bottom: 32px; font-size: 2.4em;}
h2 {margin-top: 48px;}
h1, h2 {color: #234;}
h3, h4, h5 {color: #345;}
h1, h2, h3, h4, h5, a, p, span, body, div {font-weight: normal; font-family: "Lato", Verdana, Helvetica, sans-serif;}
.header {width: 100%; padding-top: 16px; padding-bottom: 0px;}
.header-div {border-bottom: #ddd 2px solid; padding-bottom: 16px;}
.header-profile-picture, .header-text {display: inline-block;}
.header-name h1 {margin-top: 0; margin-bottom: 2px;}
.header-subtitle {margin-bottom: 12px;}
.header-profile-picture {width: 108px; height: 108px; margin-right: 16px; border-radius: 50%; background-image: url(assets/meme.jpg); background-position: center; background-size: contain; background-repeat: no-repeat;}
.content {max-width: 780px; padding-left: 16px; padding-right: 16px; margin: auto; margin-top: 48px;}
.hr {width: 100%; height: 1px; margin: 48px 0; background-color: #d6dbdf;}
a {color: #2471a3; text-decoration: none;}
a:focus, a:hover {color: #f09228;}
p {line-height: 1.5em;}
.nobreak {white-space: nowrap;}
.noselect {-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}
.bold {font-weight: bold;}
.italic {font-style: italic;}
.bulletpoints {line-height: 1.5em;}
.row {box-sizing: border-box;}
.row-media {display: block; float: left; width: 160px; height: 90px; background-position: center; background-size: contain; background-repeat: no-repeat;}
.row-text {display: block; float: left; margin-left: 12px; line-height: 1.5em; max-width: 598px;}
.row-text span {line-height: inherit;}
.clearfix {content: ""; clear: both; display: table;}
.publication {margin-bottom: 32px; padding-left: 8px;}
.publication.highlight {background-color: #fff8df; width: 100%; padding-top: 8px; padding-bottom: 8px; border-radius: 4px;}
.press {width: 100px; height: 80px; border: 1px solid #def; margin-right: 12px; background-size: cover;}  
.img-contain {background-size: contain !important;}
.footer {border-top: #ddd 2px solid; width: 100%; max-width: 780px; margin: auto;}
.footer-content {color: #345; font-size: 10px; padding: 6px 0; max-width: 780px; margin: auto;}
.footer-content a {color: #2471a3 !important; text-decoration: underline;}
.footer-content a:hover {color: #f09228 !important;}
.stars {font-size: 10px; display: inline-block; margin-left: 6px; color: #666;}

/* time line */
.timeline {
    /* width: 60%; */
    /* background: white; */
    padding: 20px;
    /* border-radius: 10px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}
.timeline-item {
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item:before {
    content: "";
    width: 20px;
    height: 20px;
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
}
.timeline-item:after {
    content: "";
    position: absolute;
    left: 9px;
    top: 30px;
    height: calc(100% - 20px);
    width: 2px;
    background: #4285f4;
}
.timeline-item:last-child:after {
    display: none;
}
table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}
td {
    vertical-align: top;
}
.icon {
    width: 200px;
    text-align: center;
}
.icon img {
    height: 50px;
    object-fit: contain;
}
.description {
    border-left: 2px solid #eee;
    padding-left: 20px;
}
.description h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
.description p {
    margin: 0;
    color: #666;
}

/* news */
.news-container {
    /* width: 60%; */
    margin: auto;
    /* background: white; */
    /* padding: 20px; */
    /* border-radius: 10px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    max-height: 250px; /* 限制高度以实现滚动效果 */
    overflow-y: auto; /* 使内容可垂直滚动 */
}
.news-container h2 {
    margin-top: 0;
}
.news-list {
    list-style-type: none;
    padding: 0;
}
.news-item {
    margin-bottom: 10px;
}
.news-item span {
    font-weight: bold;
}

.news-item a:hover {
    text-decoration: underline;
    margin-bottom: 10px;
}

/* navbar */
.navbar {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    padding: 5px;
    padding-left: 20%;
    padding-right: 20%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    text-align: center;
}
.navbar a:hover {
    background-color: #575757;
}

.btn.active {
    text-decoration: underline;
}

.publication.gray-overlay {
    position: relative;
    overflow: hidden;
}

.publication.gray-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none; 
    border-radius: 4px; 
}

.publication.gray-overlay:hover::after {
    background-color: rgba(255, 255, 255, 0.0); 
}

.pinned-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px 0;
}

.pinned-item {
    flex: 1;
    min-width: 180px;
    max-width: calc(33.33% - 16px);
    background: white;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pinned-item:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 18px;
}

.pinned-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pin-title {
    display: block;
    font-weight: bold;
    margin: 12px 15px 8px;
}

.pin-desc {
    display: block;
    margin: 0 15px 12px;
    line-height: 1.5;
}

.pinned-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .pinned-item {
        max-width: 100%;
    }
}