/* 市长信箱 */
.mail-box {
  padding-bottom: 30px;
  min-height: 100vh;
}

/* 头部标题 */
.mail-header {
  height: 43px;
  background-color: rgba(242, 242, 242, 1);
}

.mail-header .title {
  width: 122px;
  height: 100%;
  font-size: 24px;
  color: #ffffff;
  margin: 0;
  font-weight: 400;
  line-height: 43px;
  text-align: center;
  background-color: rgba(35, 108, 194, 1);
}

/* 搜索区域 */
.search-box {
  background: #fff;
  padding: 20px 79px;
  border-radius: 4px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-item {
  display: flex;
  align-items: center;
}

.search-item label {
  font-size: 16px;
  color: rgba(133, 133, 133, 1);
  margin-right: 10px;
  white-space: nowrap;
}
.search-label {
  font-size: 18px;
  color: rgba(35, 108, 194, 1);
  margin-right: 23px;
}

.search-item input {
  width: 185px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
}

.search-item input:focus {
  border-color: #1e6bb8;
  outline: none;
}

.search-btn,
.write-btn {
  height: 36px;
  padding: 0 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.search-btn {
  background: #1e6bb8;
  color: #fff;
  padding: 0 25px;
}

.write-btn {
  background: rgba(0, 186, 173, 1);
  color: #fff;
  padding: 0 46px;
  display: flex;
  align-items: center;
  /* justify-content: center; */
}

/* 统计信息 */
.stats-info {
  margin-bottom: 23px;
}

.stats-box {
  background: url(/dlsrmzf/pc2025/hd/images/tj_bg.png) no-repeat right bottom;
  height: 75px;
  padding: 15px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stats-icon {
  width: 32px;
  height: 32px;
}

.stats-icon img {
  width: 100%;
  height: 100%;
}

.stats-text {
  flex: 1;
  padding-right: 150px;
}

.stats-text p {
  margin: 0;
  font-size: 20px;
  color: #333;
  line-height: 1.5;
}

.stats-text .num {
  color: #ff5757;
  font-weight: bold;
}
.stats-text p i{
  margin: 0 5px;
}

/* 信件列表 */
.mail-list {
  background: #fff;
  border-radius: 4px;
}

.mail-list table {
  width: 100%;
  border-collapse: collapse;
}

.mail-list th {
  background: rgba(35, 108, 194, 1);
  padding: 15px;
  text-align: left;
  font-size: 18px;
  color: #ffffff;
  font-weight: normal;
  font-weight: 700;
}
.mail-list th:not(:first-child),
.mail-list td:not(:first-child) {
  text-align: center;
}

.mail-list td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 18px;
  color: #333;
}

.mail-list td.title {
  max-width: 0;
}

.mail-list td.title a {
  color: #333;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-list td.title a:hover {
  color: #1e6bb8;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 5px;
}

.pagination a,
.pagination span {
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 0 10px;
}

.pagination .current {
  background: #1e6bb8;
  color: #fff;
  border-color: #1e6bb8;
}

.pagination a:hover {
  border-color: #1e6bb8;
  color: #1e6bb8;
}

.page-info {
  text-align: center;
  margin-top: 15px;
  color: #999;
  font-size: 14px;
}

/* 响应式布局 */
@media (max-width: 1280px) {
  .container {
    width: 1000px;
  }

  .search-box {
    padding: 20px 40px;
  }

  .search-form {
    gap: 10px;
  }

  .search-item {
    flex: 1;
  }

  .search-item input {
    width: 160px;
  }

  .search-btn,
  .write-btn {
    padding: 0 20px;
  }

  .stats-box {
    height: 70px;
    padding: 12px 15px;
  }

  .stats-text {
    padding-right: 100px;
  }

  .stats-text p {
    font-size: 18px;
  }

  .mail-list th,
  .mail-list td {
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .container {
    width: 96%;
    min-width: 760px;
  }

  .search-box {
    padding: 15px 20px;
  }

  .search-form {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .search-item {
    width: calc((100% - 150px) / 2);
    flex: none;
  }
  
  .search-item input {
    width: 100%;
  }

  .search-label {
    font-size: 16px;
    margin-right: 15px;
  }
  
  .search-btn,
  .write-btn {
    width: calc(50% - 10px);
    padding: 0;
  }

  .stats-box {
    height: auto;
    padding: 15px;
  }

  .stats-text {
    padding-right: 160px;
  }

  .stats-text p {
    font-size: 16px;
  }

  .mail-list th,
  .mail-list td {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    min-width: auto;
  }

  .search-item {
    width: 100%;
  }
  
  .search-btn,
  .write-btn {
    width: 100%;
  }

  .stats-text {
    padding-right: 102px;
  }

  .mail-list th:nth-child(2),
  .mail-list td:nth-child(2) {
    display: none;
  }

  .pagination a,
  .pagination span {
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
  }
  .search-item label{
    width: 120px;
  }
}

@media (max-width: 431px) {
  .mail-header .title {
    width: 100px;
    font-size: 20px;
  }

  .search-item label {
    font-size: 14px;
  }
  .stats-box{
    background: linear-gradient(to bottom, #e9f3fe, #f2f7fd);
  }
  .stats-text{
    padding-right: 0;
  }
  .search-item label{
    width: 90px;
  }

  .mail-list th:nth-child(3),
  .mail-list td:nth-child(3),
  .mail-list th:nth-child(4),
  .mail-list td:nth-child(4) {
    display: none;
  }

  .pagination a,
  .pagination span {
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    padding: 0 5px;
  }
  .search-btn, .write-btn{
    justify-content:center;
  }
} 