
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    /*padding: 20px;*/
    padding: 0;
}

/* 顶部导航栏 */
.navbar {
    color: #007bff;
    padding: 15px 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: #f5f5f5;

}

.navbar-logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.navbar-logo img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}
.navbar-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin-right: 40px;
}

.navbar-menu li {
    margin-left: 20px;
}

.navbar-menu a {
    color: #000000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-menu img {
    width: 24px; /* 图标大小 */
    height: auto;
    margin-right: 8px;
}

.navbar-menu a:hover {
    color: #007BFF;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;

}

.header {
    margin-bottom: 20px;
}

.date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-details {
    flex-grow: 1;
}

.author-name {
    font-size: 16px;
    font-weight: bold;
    display: block;
}

.author-title {
    font-size: 14px;
    color: #666;
}

.follow-button {
    background-color: #1e90ff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.tags {
    margin-bottom: 20px;
}

.tag-button {
    background-color: #f5f5f5;
    color: #666;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
}

.article-content {
    margin-bottom: 20px;
 
}

.article-content img {
    width: 525px;
    height: 293px;
  margin: 0 auto;
  display: block;
  max-width: 100%; /* 确保图片不会超过其容器宽度 */

}

.sidebar {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 10px 0;
    /*border-top: 1px solid #ddd;*/
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-button {
    width: 50px;
    height: 50px;
    /*background-color: #f5f5f5;*/
    /*border-radius: 50%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

/*.social-button.like, .social-button.star {*/
/*  !*background-color: #ff6b6b;*!*/
/*  color: #666;*/
/*}*/
.zuo {
    width: 30px;
    height: 30px;
    margin-top: 10px;
}
.you {
    width: 35px;
    height: 35px;
    margin-top: 6px;
}

/*  顶部*/
.avatar-container {
    position: relative;
    display: flex;

}
.avatar-image {
    width: 25px; /* 头像的宽度 */
    height: 25px; /* 头像的高度 */
    margin-top: 5px;
    border-radius: 50%; /* 圆形效果 */
    object-fit: cover; /* 确保图片保持比例，填充头像区域 */
    /*border: 2px solid #ccc; !* 可选的边框效果 *!*/
    display: block; /* 确保图片以块级元素显示 */
    /*margin-right: 120px;*/
}

.avatar-input {
    display: none; /* 隐藏文件上传输入框 */
}

.gengduo {
    width: 20px; /* 头像的宽度 */
    height: 20px; /* 头像的高度 */
    margin: 6px 0 0 10px;
    cursor: pointer;
}

.denlu {
    display: inline-block;
    /*padding: 15px 20px;*/
    line-height: 35px;
    color: #000000;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none; /* 去掉默认的下划线 */
    margin-left: 10px;
}

.envelope-image {
    width: 22px; /* 根据需要调整信封图标大小 */
    height: 22px; /* 根据需要调整信封图标大小 */
    cursor: pointer; /* 鼠标悬停时显示为手形 */
    margin-left: 10px;
    margin-top: 6px;
}
.envelope-image:hover {
    opacity: 0.8; /* 鼠标悬停时的视觉效果 */
}



.profile-header {
    padding: 20px;
    background-color: #fff;
    margin-bottom: 10px;
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.profile-header img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}
.profile-header h2 {
    margin: 10px 0 5px 0;
    font-size: 18px;
    color: #333;
}
.profile-header p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}
.stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 根据需要调整子元素之间的间距 */
    padding: 15px 30px;
    background-color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.stats div {
    font-size: 14px;
    color: #666;
}
.stats div span {
    display: block;
    font-size: 20px;
    color: #333;
    text-align: center;
    margin-bottom: 5px;
}
.menu-butomu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.menu-butomu div {
    width: 30%;
    margin: 10px 0;
    text-align: center;
}
.menu-butomu div img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}
.menu-butomu div p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.yisheng {
    margin-left: 20px;
}

.popup-box {
    display: none; /* 默认隐藏 */
    position: absolute;
    top: 50px; /* 根据需要调整位置 */
    left: -210px;
    width: 300px;
    height: 400px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* 确保盒子在最上层 */
    opacity: 0; /* 初始透明度为0 */
    transform: scale(0); /* 初始缩放为0 */
    transform-origin: center; /* 缩放的原点设置为中心 */
    transition: opacity 0.3s ease, transform 0.3s ease; /* 过渡效果 */
}

.popup-box.show {
    opacity: 1; /* 显示时透明度为1 */
    transform: scale(1); /* 显示时缩放为正常大小 */
}

/*搜索*/
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* 禁止内容区域滚动 */
    max-width: 390px;
    margin: 0;
    top: 0;
    left: 0;
    width: 455px;
}

.search-input {
    width: 65%;
    padding: 9px 30px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    background-color: #eeeff2;
    border: none; /* 取消边线 */
    font-weight: bold; /* 文字加粗 */
}


.search-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none; /* 确保点击图标不会影响输入框 */
}

.sou {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 100;
    right: 95px;
    width: 50px;
    /*height: 50px;*/
}

