.article-container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    font-family: "经典隶变简", sans-serif;
}

.article-container h1 {
    font-size: 32px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.article-container .date {
    font-size: 0.9em;
    color: gray;
    margin-bottom: 20px;
    text-align: center;
}

.article-container .content {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

.article-container form {

    flex-direction: column;
    align-items: center;
}

.article-container form label {
    margin-bottom: 10px;
}

.article-container form input {
    margin-bottom: 10px;
    padding: 8px;
    width: 100%;
    max-width: 300px;
}

.flash-message {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明灰色背景 */
    color: white; /* 文字颜色 */
    padding: 15px; /* 内边距 */
    margin-bottom: 10px; /* 底部外边距 */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* 阴影 */
}


.article-container form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ececec;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-container form button:hover {
    background-color: #a1a1a1;
}

.orign{
    background-color: #efefef;
    color: #777777;
    padding: 24px;
    margin: 0 auto;
    margin-top: 60px; /* 增加顶部间距 */
    text-align: center;
}



/* 读者留言区域样式 */

.no-comments{
    margin-top: 40px; /* 增加顶部间距 */
    text-align: center;
}
.comments {
    margin-top: 80px; /* 增加顶部间距 */
    margin-bottom: 80px;
}

.comment {
    border-bottom: 1px solid #ccc; /* 添加评论间的分隔线 */
    padding-bottom: 20px; /* 增加评论之间的间距 */
}

.comment p {
    margin: 0; /* 清除段落标签的默认间距 */
}

.comment .nickname {
    font-weight: bold; /* 设置昵称字体加粗 */
    margin-bottom: 5px; /* 设置昵称与日期之间的间距 */
    margin-top: 15px;
}

.comment .date {
    font-size: 0.9em; /* 调整日期字体大小 */
    color: #666; /* 设置日期颜色为灰色 */
}

.comment .content {
    margin-top: 5px; /* 设置留言内容与日期之间的间距 */
}

/* 发表留言表单样式 */
.comment-form {
    text-align: left; /* 将表单内元素左对齐 */
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: inline-block;
}

.input-group input[type="text"],
.input-group textarea {
    width: calc(100% - 110px); /* 计算输入框宽度 */
}


.comment-form .input-group {
    margin-bottom: 10px; /* 设置输入框组与按钮之间的间距 */
}

.comment-form label {
    margin-right: 10px; /* 设置标签与输入框之间的间距 */
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%; /* 设置输入框宽度为100% */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.comment-form textarea {
    height: 150px; /* 设置文本框高度 */
}

.comment-form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ececec;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background-color: #a1a1a1;
}

/* 管理按钮 */
.admin-detail-controls {
    /*display: inline; !* 去掉按钮样式，只显示文字 *!*/
    display: block; /* 去掉按钮样式，只显示文字 */
    margin: 0 auto;
    background: #dadada; /* 移除背景色 */
    border: none; /* 移除边框 */
    font-weight: bold; /* 文字加粗 */
    cursor: pointer; /* 鼠标移上去时变为手型 */
    /*margin-left: 10px; !* 与标题保持一些间距 *!*/
    font-size: 0.9em;
    color: #ffffff;
    text-align: center;
}

/* 管理面板的遮罩层 */
.admin-panel-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
    z-index: 1000; /* 遮罩层优先级 */
}

/* 管理面板 */
.admin-panel {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* 面板的阴影效果 */
    z-index: 1001; /* 确保面板在遮罩层之上 */
}


/*flash信息提醒*/
/* 增加淡出效果 */
.flashes {
    position: fixed;
    top: 20px;
    left: 45%;
    margin: 0 auto;
    z-index: 1000;
}

.flashes li {
    list-style: none;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    margin-bottom: 5px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}