/* 顶部横幅 */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f0ff;
    text-align: center;
    height: 120px;
}
.banner-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.banner-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: rgba(18, 95, 188, 1);
    height: 35px;
}
.banner-text p {
    font-size: 18px;
    font-weight: 400;
    color: rgba(18, 95, 188, 1);
    margin-top: 7px;
    text-align: left;
}

/* 主体内容区 */
.main-content {
    max-width: 1280px;
    margin: 25px auto;
    padding: 0 20px;
    display: flex;
    width: 100%;
}
.left-section {
    width: 70%;
    margin-right: 30px;
}
.right-section {
    width: 30%;
}

/* 左侧信息列表 */
.info-tabs {
    display: flex;
    list-style: none;
    margin-bottom: 15px;
}
.info-tabs li {
    margin-right: 20px;
    padding-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}
.info-tabs li.active {
    border-bottom: 2px solid #1677ff;
    color: #1677ff;
}
.info-search {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}
.info-search input {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 200px;
}
.info-search button {
    height: 30px;
    width: 36px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.info-search .search-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* 表格整体样式 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 固定表格布局，确保列宽固定 */
}

/* 表头和单元格样式 */
.info-table th, .info-table td {
  padding: 12px 10px 12px 0px;
  text-align: left;
  border-bottom: 1px solid #eee;
  overflow: hidden; /* 防止内容溢出 */
  text-overflow: ellipsis; /* 文本溢出显示省略号 */
  white-space: nowrap; /* 不换行 */
}

/* 为每列设置固定宽度 */
.info-table th:nth-child(1), .info-table td:nth-child(1) {
  width: 50%; /* 信息列 */
}

.info-table th:nth-child(2), .info-table td:nth-child(2) {
  width: 10%; /* 类型列 */
}

.info-table th:nth-child(3), .info-table td:nth-child(3) {
  width: 15%; /* 类型列 */
}

.info-table th:nth-child(4), .info-table td:nth-child(4) {
  width: 10%; /* 浏览列 */
}

.info-table th:nth-child(5), .info-table td:nth-child(5) {
  width: 15%; /* 时间列 */
}

/* 信息列特殊处理，允许换行 */
.info-table td:nth-child(1) {
  white-space: normal; /* 允许换行 */
  word-wrap: break-word; /* 长单词换行 */
}

/* 发布人列样式 */
.info-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.info-company {
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* 图片样式 */
.info-img {
  max-width: 60px;
  max-height: 40px;
  margin-top: 5px;
  display: block;
}


/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    list-style: none;
}
.pagination li {
    margin: 0 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.pagination li.active {
    background-color: #1677ff;
    color: #fff;
    border-color: #1677ff;
}
.pagination li.prev, .pagination li.next {
    border: none;
}

/* 右侧信息发布 */
.publish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}
.publish-header h3 {
    font-weight: normal;
}
.publish-header a {
    color: #1677ff;
    text-decoration: none;
}
.publish-form .form-group {
    margin-bottom: 15px;
}
.publish-form .form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}
.publish-form .type-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.publish-form .type-option {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.publish-form .type-option.active {
    background-color: #1677ff;
    color: #fff;
    border-color: #1677ff;
}
.publish-form .form-textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
}
.publish-form .upload-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    width: fit-content;
}
.publish-btn {
    width: 100%;
    height: 40px;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
}
.ad-box {
    width: 100%;
    height: 80px;
    background-color: #f0f5ff;
    border: 1px solid #e0e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* 市场信息上传容器 */
.market-upload-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.market-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eee;
}

.market-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-delete-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.market-preview-item:hover .market-delete-btn {
  opacity: 1;
}

/* 将标签和搜索框放在同一行 */
.info-tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 暂无数据样式 */
.no-data {
  padding: 40px 0;
  text-align: center;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.no-data-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-data-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #ccc;
}

.no-data-text {
  font-size: 16px;
  color: #999;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
}

.content-text {
  margin-bottom: 8px;
}

.content-images {
  display: flex;
  gap: 5px;
}

.thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  cursor: pointer;
}

.content-link {
    color: rgba(51, 51, 51, 1);
    text-decoration: none;
    display: block;
    line-height: 1.5;
    max-height: 4.5em; /* 3 行的高度 = 1.5 * 3 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制显示 3 行 */
    -webkit-box-orient: vertical;
}
.content-link:hover {
    color: rgba(0, 74, 163, 1);
    cursor: pointer;
}