body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;

}

/* 给底部链接和邮箱链接使用白色字体 */
.footer a {
    color: white
}

/* 让内容和底部footer间隔一定距离 */
main {
    margin-bottom: 20px;
}

/* 头部和底部色块颜色渐变 */
#header {
    background-image: linear-gradient(to right, #1F6000, #034121, #1F6000);
    color: white;
    padding-bottom: 2em;
    padding-top: 1em;
}

.footer {
    background-image: linear-gradient(to right, #1F6000, #034121, #1F6000);
    color: white;
}

/* 头像大小的设置 */
#profile-photo {
    max-width: 80%;
}

/* 修改导航栏字体大小 */
.nav a {
    font-size: medium;
    font-weight: bold;
}

/* navbar和头部缩进不一致,清除缩进用于对齐 添加响应式折叠无法居中，添加宽度，目的是居中*/
.clear-left-padding {
    padding-left: 0px;
    /* width: 1170px; */


}

/* 主页的绿色斜体文字 */
.green-title {
    color: #3d8d17;
    font-weight: bold;
    font-style: italic;
}

.green-chinese {
    color: #3d8d17;
    font-weight: bold;
    /* font-style: italic; */
}


.green-title-small {
    color: #3d8d17;
    font-weight: bold;
    font-style: italic;
    font-size: medium;
    /* margin-left: 15px; */
    margin: 0px 0px 10px 0px;
}

/* 设置伪元素，在before-time前面添加一张图片 */
.before-time::before {
    content: url('../img/leaf.gif');
    display: inline-block;
    width: 20px;
    /* 调整为适合的尺寸 */
    height: 20px;
    /* 调整为适合的尺寸 */
    margin-right: 10px;
}

/* 设置字体大小 */
p,
dl,
span {
    font-size: 18px;
}

/* 名字之间间隔一定距离 */
dd {
    margin-bottom: 5px;
}

/* 下面的几句话用于媒体查询，显示个人照片，在小屏幕显示100%，其他屏幕上缩小 */
/* 基础样式，适用于小屏幕 */
.responsive-image {
    width: 100%;
    height: auto;
    /* 保持图片的原始宽高比 */
}

/* 媒体查询：适用于中等及更大屏幕 */
@media (min-width: 768px) {

    /* 一般将768px作为中等屏幕的断点 */
    .responsive-image {
        width: 70%;
        /* 在中等及更大屏幕上，图片宽度为70% */
    }
}

/* 给所有响应式图片设置阴影和下边距 */
.responsive-image {
    margin-bottom: 30px;
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* 设置events页面的照片宽度 */
.events-image {
    width: 90%;
    height: auto;
    margin-bottom: 30px;
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* 设置文章列表格式 */
.pub-list {
    text-align: justify;
}


/*---------register window----------------*/
#register{
	display: none;
	padding: 20px;
	position: absolute;
	top: 40%;
	left: 35%;
	width: 30%;
	z-index: 9999;
	background-color: white;
}

    .sub-field-item {margin-bottom:20px;}
.sub-title {width: 20%;display: inline-block;}
.sub-field-item input {width: 70%; padding: 10px 3px;border: none;background: #fff;border:solid 1px #cbe0d0;display: inline-block;}
.fade {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    background-color: #333;
    opacity: 0.6;
}
