.liuyanban {
  width: 100%;
  margin: .4rem 0;
  font-family: "Microsoft YaHei", sans-serif;
}

.liuyanban span {
  height: auto !important;
}

/* ===== 表格整体框架 ===== */
.liuyanban table {
  width: 100%;
  border-collapse: collapse;
}

.liuyanban td {
  height: auto !important;
  padding: 12px 8px !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* ===== 标题表格样式 - 强制覆盖背景图 ===== */
.liuyanban>table:first-child {
  background: #059669 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.liuyanban>table:first-child tr {
  background: #059669 !important;
  height: auto !important;
}

.liuyanban>table:first-child td {
  background: #059669 !important;
  color: #ffffff !important;
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 12px 8px !important;
  border: none !important;
  text-align: center !important;
  vertical-align: middle !important;
  height: auto !important;
  line-height: 1.4 !important;
  background-image: none !important;
}

.liuyanban>table:first-child td span {
  color: white !important;
}

/* ===== 留言列表统一样式 ===== */
.liuyanban>table:nth-child(2) {
  background: #ffffff !important;
  border: none !important;
  width: 100% !important;
  font-family: 微软雅黑;
}

/* 留言行统一样式 */
.liuyanban>table:nth-child(2) tr:nth-child(4n+1) {
  background: #ebf0ee !important;
  height: auto !important;
  font-weight: bold;
  color: #6b7280;
  font-size: 14px;
}

.liuyanban>table:nth-child(2) tr:nth-child(4n+1) td {
  padding: 12px 8px !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
  height: auto !important;
  border: none !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* 标题列样式 */
.liuyanban>table:nth-child(2) tr:nth-child(4n+1) td:first-child {
  color: #065f46 !important;
  font-weight: 500 !important;
  text-align: left !important;
  padding-left: 12px !important;
  width: 40%;
}

/* 其他列样式 */
.liuyanban>table:nth-child(2) tr:nth-child(4n+1) td:not(:first-child) {
  color: #6b7280 !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: bold;
  width: 15%;
}

/* ===== 留言内容展开区域统一样式 ===== */
.liuyanban>table:nth-child(2) tr:nth-child(4n+2) {
  background: #f0fdf4 !important;
  height: auto !important;
}

.liuyanban>table:nth-child(2) tr:nth-child(4n+2) td {
  padding: 15px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #374151 !important;
  height: auto !important;
  background: #f0fdf4 !important;
}

/* 统一内容区域样式 */
.liuyanban>table:nth-child(2) tr:nth-child(4n+2) td {
  padding: 0 !important;
  background: #f0fdf4 !important;
  height: auto !important;
}

.liuyanban>table:nth-child(2) tr:nth-child(4n+2) table {
  background: #f0fdf4 !important;
  margin: 10px 0 !important;
  border-radius: 8px !important;
  width: 100% !important;
  height: auto !important;
  border-top: 1px solid #bbf7d0 !important;
}

.liuyanban>table:nth-child(2) tr:nth-child(4n+2) table td {
  background: #f0fdf4 !important;
  padding: 15px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #065f46 !important;
  border: none !important;
  height: auto !important;
}

.liuyanban>table:nth-child(2) tr:nth-child(4n+2) table td span {
  color: #065f46 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  background: #f0fdf4 !important;
  padding: 15px !important;
  margin: 0 !important;
  border-radius: 4px !important;
  height: auto !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  display: block !important;
  font-family: 微软雅黑;
}

.liuyanban>table:nth-child(2) tr:nth-child(4n+2) table td span span {
  font-size: 16px !important;
}

/* 回复标题样式 */
.liuyanban>table:nth-child(2) tr:nth-child(4n+2) table td b {
  color: #059669 !important;
  font-weight: 600 !important;
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 15px !important;
}

/* ===== 分页区域样式 ===== */
.liuyanban>table:last-child {
  border: none !important;
}

.liuyanban>table:last-child td {
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  padding: 8px !important;
  border: none !important;
  width: auto;
}

/* ===== 表单元素样式 ===== */
.liuyanban input[type="text"],
.liuyanban textarea {
  background: #ffffff !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-family: "Microsoft YaHei", sans-serif !important;
  color: #374151 !important;
  box-sizing: border-box !important;
}

.liuyanban textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

.liuyanban select {
  background: #ffffff !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  font-size: 14px !important;
  font-family: "Microsoft YaHei", sans-serif !important;
  color: #374151 !important;
}

/* 提交按钮样式 */
.liuyanban input[type="button"],
.liuyanban input[type="submit"] {
  background: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  font-family: "Microsoft YaHei", sans-serif !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* ===== 强制修复td高度和内边距 ===== */
.liuyanban td {
  height: auto !important;
  padding: 12px 8px !important;
  line-height: 1.5 !important;
  vertical-align: middle !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* 强制移除背景图和内联样式冲突 ===== */
.liuyanban [background*="lmt_title_bg.gif"] {
  background-image: none !important;
  background-color: #059669 !important;
}

.liuyanban [height="24"] {
  height: auto !important;
  min-height: 48px !important;
}

.liuyanban [height="20"] {
  height: auto !important;
  width: auto;
}

/* 强制统一背景颜色 */
.liuyanban [bgcolor="#F2FDFF"] {
  background: #f0fdf4 !important;
}

.liuyanban [bgcolor="#E2F2FA"] {
  background: #059669 !important;
  color: #ffffff !important;
}

.liuyanban [bgcolor="#E2F2FA"] span {
  font-size: .16rem !important;
  font-family: 微软雅黑 !important;
}

.liuyanban [bgcolor="#C1E0FF"] {
  background: #bbf7d0 !important;
}

.liuyanban [bgcolor="#F5F5F5"] {
  background: #f5f5f5 !important;
}

/* 强制移除所有背景色冲突 */
.liuyanban [style*="background-color"] {
  background-color: transparent !important;
}

.liuyanban [style*="background-image"] {
  background-image: none !important;
}

/* ===== 隐藏指定列和内容 - 精确层级选择 ===== */

/* 隐藏表头标题行 - 第一个table（标题栏） */
.liuyanban>form>table:first-of-type {
  display: none !important;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:nth-child(n+1)>td:nth-child(2) {
  display: none !important;
}

/* 隐藏留言列表的发布人列 - 仅隐藏表头行的第3列 */
.liuyanban>form>table:nth-of-type(2) tr:first-child td:nth-child(3) {
  display: none !important;
}

/* 隐藏留言列表的状态列 - 仅隐藏表头行的第5列 */
.liuyanban>form>table:nth-of-type(2) tr:first-child td:nth-child(5) {
  display: none !important;
}

/* 隐藏留言数据行的发布人列内容 */
.liuyanban>form>table:nth-of-type(2) tr:not(:first-child) td:nth-child(3) {
  display: none !important;
}

/* 隐藏留言数据行的状态列内容 */
.liuyanban>form>table:nth-of-type(2) tr:not(:first-child) td:nth-child(5) {
  display: none !important;
}


/* 调整提交时间列宽度，让时间显示更美观 */
.liuyanban>form>table:nth-of-type(2) tr:first-child td:nth-child(4),
.liuyanban>form>table:nth-of-type(2) tr:not(:first-child) td:nth-child(4) {
  width: auto;
  text-align: left !important;
  padding-left: 12px !important;
  display: table-cell !important;
  color: white;
  font-size: .18rem;
  font-family: 微软雅黑;
}

/* ===== 仅用标签选择器精确隐藏回复内容 ===== */
/* 隐藏回复内容展开功能 - 禁用点击 */
.liuyanban>form>table:nth-of-type(2)>tbody>tr:nth-child(odd) span {
  pointer-events: none !important;
  user-select: none !important;
  font-size: .18rem;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:nth-child(odd) span:last-child {
  font-family: 微软雅黑;
}

/* 确保只隐藏展开内容，不影响主列表 */
.liuyanban>form>table:nth-of-type(2)>tbody>tr:nth-child(odd) {
  display: flex;
  justify-content: space-between;
  background: #059669;
}

/* 隐藏内容回复区域 */
.liuyanban>form>table:nth-of-type(2)>tbody>tr:nth-child(2n):not(:last-child) td table:last-child {
  display: none !important;
}

/* 发表留言标题 */
.liuyanban>table:first-of-type span {
  color: white !important;
  width: calc(100% - 1.4rem);
  text-align: justify;
}

.liuyanban [height="20"] span {
  color: white !important;
  background: none !important;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:nth-child(2n):not(:last-child) span font {
  font-size: .18rem !important;
  font-family: 微软雅黑 !important;
  line-height: 2 !important;
}

.liuyanban>table:nth-of-type(2) span {
  font-size: .16rem !important;
  font-family: 微软雅黑 !important;
}

.liuyanban>table:nth-of-type(2) input {
  font-size: .16rem !important;
  font-family: 微软雅黑 !important;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:last-child td {
  font-size: .14rem !important;
  font-family: 微软雅黑 !important;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:last-child td div span {
  font-size: .14rem !important;
  font-family: 微软雅黑 !important;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:last-child td tbody>tr {
  display: flex;
  justify-content: center;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:last-child td tbody>tr td:nth-of-type(1) {
  margin: 0;
  margin-right: .1rem;
  width: auto;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:last-child td tbody>tr td:nth-of-type(2) {
  margin: 0;
}

.liuyanban>form>table:nth-of-type(2)>tbody>tr:last-child td font strong{
  color:white;
}

/* ===== 响应式设计 ===== */
@media screen and (max-width: 768px) {
  .liuyanban {
    overflow-x: auto !important;
  }

  .liuyanban td {
    font-size: 13px !important;
    padding: 8px 4px !important;
  }

  .liuyanban>table:nth-child(2) tr:nth-child(4n+2) table {
    margin: 5px 0 !important;
  }

  .liuyanban>table:nth-child(2) tr:nth-child(4n+2) table td span {
    padding: 10px !important;
    font-size: 13px !important;
  }

  .liuyanban input[type="text"],
  .liuyanban textarea {
    box-sizing: border-box !important;
  }

  .liuyanban input[type="button"],
  .liuyanban input[type="submit"] {
    width: 100% !important;
    padding: 12px !important;
    font-size: 16px !important;
  }
}