﻿/* 容器整体样式 */
.custom-tie-area {
  width: 100%;
  margin: 20px auto;
}

/* 标题栏 */
.custom-tie-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  /* 移除了border-bottom */
}

.custom-title-txt {
  font-size: 18px;
}

.custom-tie-info {
  text-align: right;
}

.custom-info-txt {
  margin-right: 5px;
}

.custom-tie-act-count {
  color: red;
  text-decoration: none;
}

/* 提示信息 */
.custom-tie-reminder {
  margin: 10px 0;
  font-size: 12px;
  color: #666;
}

/* 输入区域容器 */
.custom-tie-input-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #ccc; /* 给父元素添加边框 */
  border-radius: 4px;
  padding: 10px;
}

/* 新增样式：让 textarea 和按钮在同一行并等高 */
.custom-input-with-button {
  display: flex;
  align-items: stretch; /* 高度拉伸以对齐 */
  gap: 10px; /* 可选：两者之间留白 */
}

/* 文本框样式 */
#commentInput {
  width: calc(100% - 120px); /* 根据按钮宽度调整 */
  padding: 10px;
  font-size: 14px;
  border-radius: 4px;
  resize: vertical;
  min-height: 80px;
  flex-grow: 1;
}

/* 右侧按钮 */
.custom-login-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}


/* 新增样式：让 textarea 和按钮在同一行并等高 */
.custom-input-with-button {
  display: flex;
  align-items: stretch; /* 高度拉伸以对齐 */
  gap: 10px; /* 可选：两者之间留白 */
}

/* 登录表单区域：flex 容器，子元素水平排列 */
.custom-login-form-area {
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  gap: 10px; /* 子元素之间的间距 */
  flex-wrap: wrap; /* 自动换行，防止挤压 */
  background-color: #f9f9f9;

  border-top: none;
  padding: 10px;
  margin-top: 0;
}

/* 输入框统一样式 */
.custom-login-form-area input[type="text"],
.custom-login-form-area input[type="password"] {
  height: 36px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  min-width: 120px;
  flex: 1 1 120px; /* 可伸缩，适应空间 */
}

/* 注册链接样式 */
.custom-login-links {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.custom-login-links a {
  color: #007bff;
  text-decoration: none;
  white-space: nowrap;
}

/* 登录按钮样式 */
.custom-submit-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 错误消息的样式 */
.custom-icon-check-tip.custom-error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

/* 登录成功后的区域 */
.custom-logged-in-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
    display: flex;

  align-items: center;
}

.custom-username {
  font-weight: bold;
    display: flex;
  flex: 1 1 120px;
}

.custom-post-comment-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
      display: flex;
}


.comment-list {
    padding: 0;
    margin: 0;
}

.com_item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.item_img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.item_img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.item_con {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.com_ip_time {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.com_ip_time .fr {
    float: right;
    margin-left: 10px;
}

/* 清除浮动 */
.com_ip_time::after {
    content: "";
    display: table;
    clear: both;
}

.com_txt {
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all; /* 防止长文本撑开布局 */
    white-space: pre-wrap; /* 保留空格和换行 */
}
