/* ========================
   基础框架
======================== */
#message-board-container {
    max-width: 860px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* ========================
   极简表单
======================== */
.comment-form {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eaeaea;
}

.comment-form input,
.comment-form textarea {
	  background: #fcfdfe; /* 接近白色的极浅灰 */
    border-color: #e2e8f0; /* 柔和边框色 */
    width: 95%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

/* 聚焦状态高级效果 */
.comment-form input:focus,
.comment-form textarea:focus {
    background: white;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}


.comment-form button {
    margin-top: 0rem;
    background: #6CA6CD;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.comment-form button:hover {
    background: #27408B;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.comment-form button.loading {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================
   留言卡片
======================== */
.message-card {
    background: #fff;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
	  transition: 
        transform 0.25s cubic-bezier(0.4,0,0.2,1),
        box-shadow 0.25s ease; /* 添加流畅动画曲线 */
	 will-change: transform, box-shadow;
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 头部样式 */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}



/* ========================
   昵称样式优化（自然提升可读性）
======================== */
.message-header .author {
    color: #3a506b; /* 调整为深海蓝灰 */
    font-weight: 500; /* 中等字重 */
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-left: 14px;
	 position: relative;
    padding-right: 0; /* 移除可能影响定位的内边距 */
	
   
}

/* 移除可能的伪元素残留 */
.message-header .author::after {
    content: none !important;
}





/* 内容区域 */
.message-content {
      background: #fcfdfe; /* 调整为与输入框一致的极浅灰 */
    border-color: #f1f5f9;
    margin: 10px 0;
    position: relative;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    transition: max-height 0.3s ease;
}

.message-content .content {
    display: block;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
    color: #333;
    min-height: 60px;
}

/* 时间显示优化 */
.message-content .time {
    display: block;
    text-align: right;
   margin-top: 10px;    /* 缩小间距 */
    padding-top: 6px;    /* 减小内边距 */
    font-size: 0.7rem;   /* 统一字号 */
     color: #94a3b8; /* 与删除按钮同色系 */
	  border-top-color: #f1f5f9; /* 更浅的分隔线 */
   
    border-top: 1px solid #eee;
}

/* ========================
   删除按钮优化（缩小尺寸+状态优化）
======================== */
.delete-btn {
    background: transparent;
    color: #4a90e2;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;    /* 缩小内边距 */
    font-size: 0.75rem;  /* 缩小字号 */
    border-radius: 3px;   /* 圆角微调 */
    transition: 
        background 0.2s ease,
        color 0.2s ease;
    line-height: 1.2;     /* 优化垂直居中 */
&:focus {
        outline: 2px solid #4a90e2;
        outline-offset: 2px;
    }
}

.delete-btn:hover {
    background: #f8fafc;
    color: #dc3545;
    border-color: #fecaca;
    transform: scale(0.98); /* 添加点击感 */
}


/* ========================
   辅助样式
======================== */
.empty-tip {
    text-align: center;
    color: #999;
    padding: 1.5rem;
}

/* ========================
   响应式适配
======================== */
@media (max-width: 768px) {
    .message-card {
        padding: 12px;
        margin-bottom: 16px;
    }

    .message-content {
        max-height: 200px !important;
        padding: 10px;
    }

    .message-content .time {
        font-size: 0.7rem;
        margin-top: 10px;
     }
	 
	 .delete-btn {
        padding: 2px 6px;    /* 移动端更紧凑 */
        font-size: 0.7rem;  /* 字号同步缩小 */
    }
} 
	 


/* 滚动条样式 */
.message-content::-webkit-scrollbar {
    width: 6px;
}

.message-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}