* {
  margin: 0;
  padding: 0;
  /* box-sizing: border-box; */
  list-style: none;
  text-decoration: none;
  outline: none;
  border: none;
}
.latterCon td {
  padding: 0;
}
.content {
  width: 100%;
  padding: 17px min(9.375vw, 140px) 65px;
  background-color: #f5f5f5 !important;
}
.pageWidth {
  background-color: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  padding: 30px !important;
}
.ListTitle {
  background-color: #f8f8f8 !important;
  padding: 0px 20px !important;
  border-left: 4px solid #2172b3 !important;
  font-size: 18px !important;
  font-weight: bold !important;
  height: 40px !important;
  line-height: 40px !important;
  border-bottom: 1px solid #2172b3;
  background: url(../images/c_title.png) repeat-x;
}

/* 信件列表搜索区域样式 */
.letterlist-search {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.letterlist-search table {
  width: 100%;
}

.letterlist-search .wjl_textBut {
  width: 100%;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 12px;
  transition: all 0.3s;
}

.letterlist-search .wjl_textBut:focus {
  border-color: #1c62c2;
  box-shadow: 0 0 5px rgba(204, 0, 0, 0.2);
  outline: none;
}

.letterlist-search .link_redto {
  background-color: #1c62c2;
  color: #fff;
  border: none;
  padding: 8px 25px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.letterlist-search .link_redto:hover {
  background-color: #1c62c2;
}

.letterlist-search .redto_link {
  color: #1c62c2;
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid #1c62c2;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 14px;
  display: inline-block;
}

.letterlist-search .redto_link:hover {
  background-color: #1c62c2;
  color: #fff;
}

.news-list {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.news-list-item {
  width: 100%;
  display: flex;
  align-items: center;
  height: 54px;
  background: #fff;
  padding-left: 24px;
  padding-right: 28px;
}
.news-list-item a {
  font-family: NotoSansHans;
  font-weight: 400;
  font-size: 16px;
  color: #212329;
  line-height: 30px;
}
.news-list-item .iconfont {
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: #8a8a8a;
  margin-right: 10px;
  margin-bottom: 4px;
}
.news-list-item .news-list-item-right-time {
  font-family: NotoSansHans;
  font-weight: 400;
  font-size: 14px;
  color: #626262;
  margin-left: auto;
}

/* 单数变成灰色 */
.news-list-item:nth-child(odd) {
  background: #f7f9fa;
}
/* 鼠标hover */
.news-list-item:hover {
  background: #dae7fa;
}
.news-list-item:hover a {
  color: #1c62c2;
}
.news-list-item:hover .iconfont {
  color: #1c62c2;
}
.news-list-item:hover .news-list-item-right-time {
  color: #1c62c2;
}

.news-title {
  width: 100%;
  height: 74px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  font-family: NotoSansHans;
  font-weight: bold;
  font-size: 20px;
  color: #4a4a4a;
  padding-left: 24px;
  line-height: 74px;
  margin-bottom: 14px;
}

.footTop > ul span {
  display: inline-block;
  cursor: pointer;
  width: 155px;
  height: 30px;
  margin: 0px 10px;
  line-height: 30px;
  padding-left: 10px;
  border: 1px solid rgb(187, 187, 187);
  font-size: 12px;
  font-family: simsun;
  color: rgb(64, 64, 64);
}


.content {
    background: #f5f5f5;
}

.letter-container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 30px;
}

.letter-header {
    text-align: center;
    margin-bottom: 30px;
}

.letter-title {
    color: #ba0707;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.letter-nodata {
  display: block;
  text-align: center;
  color: #ba0707;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.letter-meta {
    color: #999;
    font-size: 14px;
}

.letter-section {
    margin-bottom: 30px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    overflow: hidden;
}

.letter-section-title {
    background: #f3f3f3;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #e9e9e9;
}

.letter-section-content {
    padding: 20px;
    background: #fafafa;
    min-height: 100px;
}

.letter-text {
    line-height: 1.8;
    text-indent: 2em;
    color: #333;
    margin: 0;
}

.letter-reply-time {
    text-align: right;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
}

.letter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 20px;
}

.letter-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.letter-action-btn:hover {
    color: #ba0707;
}

.letter-action-btn img {
    width: 16px;
    height: 16px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  /* 内容区域适配 */
  .content {
    padding: 10px 15px 40px;
  }
  
  .pageWidth {
    padding: 20px 15px !important;
  }
  
  /* 搜索区域适配 */
  .letterlist-search table {
    display: block;
  }
  
  .letterlist-search table tbody {
    display: block;
  }
  
  .letterlist-search table tr {
    display: block;
    margin-bottom: 15px;
  }
  
  .letterlist-search table td {
    display: block;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 8px;
  }
  
  .letterlist-search table td[align="right"] {
    text-align: left !important;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .letterlist-search table td[align="center"] {
    text-align: center !important;
    margin-top: 10px;
  }
  
  .letterlist-search .wjl_textBut {
    width: 100%;
    height: 40px;
    font-size: 16px; /* 防止iOS缩放 */
  }
  
  .letterlist-search .link_redto,
  .letterlist-search .redto_link {
    width: 100%;
    height: 40px;
    line-height: 24px;
    font-size: 16px;
    margin-top: 5px;
  }
  
  /* 标题区域适配 */
  .ListTitle {
    font-size: 16px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 15px !important;
  }
  
  /* 新闻列表适配 */
  .news-list-item {
    padding: 15px;
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
  }
  
  .news-list-item .iconfont {
    margin-right: 8px;
    margin-bottom: 0;
  }
  
  .news-list-item .news-list-item-right-title {
    flex: 1;
    min-width: 0;
  }
  
  .news-list-item .news-list-item-right-title a {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .news-list-item .news-list-item-right-time {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
  }
  
  /* 分页适配 */
  .customBootstrap {
    margin-top: 20px;
  }
  
  .customBootstrap .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .customBootstrap .pagination li {
    margin: 2px;
  }
  
  .customBootstrap .pagination li a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
  .content {
    padding: 8px 10px 30px;
  }
  
  .pageWidth {
    padding: 15px 10px !important;
  }
  
  .letterlist-search table td {
    margin-bottom: 6px;
  }
  
  .letterlist-search .wjl_textBut {
    height: 38px;
  }
  
  .letterlist-search .link_redto,
  .letterlist-search .redto_link {
    height: 38px;
    font-size: 14px;
  }
  
  .ListTitle {
    font-size: 15px !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 12px !important;
  }
  
  .news-list-item {
    padding: 12px;
    min-height: 55px;
  }
  
  .news-list-item .news-list-item-right-title a {
    font-size: 13px;
  }
  
  .news-list-item .news-list-item-right-time {
    font-size: 11px;
  }
  
  .customBootstrap .pagination li a {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* 超小屏幕适配 */
@media screen and (max-width: 360px) {
  .content {
    padding: 5px 8px 25px;
  }
  
  .pageWidth {
    padding: 12px 8px !important;
  }
  
  .news-list-item {
    padding: 10px;
    min-height: 50px;
  }
  
  .news-list-item .news-list-item-right-title a {
    font-size: 12px;
  }
  
  .news-list-item .news-list-item-right-time {
    font-size: 10px;
  }
}

/* 触摸反馈效果 */
.touch-active {
  transform: scale(0.98);
  opacity: 0.8;
  transition: all 0.1s ease;
}

/* 移动端按钮优化 */
@media screen and (max-width: 768px) {
  .link_redto, .redto_link {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .news-list-item {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }
  
  /* 防止iOS输入框缩放 */
  input[type="text"], input[type="search"] {
    font-size: 16px !important;
  }
}