.bottom-bar {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5px;
  z-index: 100;
}

.bottom-bar button {
  padding: 10px 12px;
  border: none;
  border-radius: 16px 17px 8px 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.bottom-bar .my-btn {
  padding: 0px 23px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-bar .my-btn img {
  width: 36px;
  height: 36px;
}

.publish-bottom-btn {
  background: #25c072;
  color: #fff;
  box-shadow: 0 -4px 22px rgb(0 78 40);
}

.category-bottom-btn {
  background: #0099ff;
  color: #fff;
  box-shadow: 0 -4px 25px rgb(0 71 133);
}

.category-tag {
  display: inline-block;
  background: #ff9800;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
}

.cat-popup-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}

.cat-popup-mask.show {
  display: block;
}

.cat-popup {
  position: fixed;
  bottom: 60px;
  z-index: 201;
  display: flex;
  flex-direction: row;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}

.cat-popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cat-popup.rtl {
  flex-direction: row-reverse;
}

.cat-sub-popup {
  position: fixed;
  z-index: 202;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 200px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.cat-sub-popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cat-left-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-right-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
  min-height: 100%;
}

.cat-popup.rtl .cat-right-col {
  justify-content: flex-end;
}

.cat-btn-item {
  padding: 4px 10px;
  background: #0d6736;
  border-radius: 10px;
  border: 1px solid #00bd5e;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0px 6px 11px 0px rgb(0 113 23);
  white-space: nowrap;
  text-align: center;
  min-width: 68px;
}

.cat-btn-item:active,
.cat-btn-item.active {
  background: #0099ff;
  color: #fff;
  border: 1px solid #0fc4ff;
  box-shadow: 0px 6px 8px 0px rgb(0 92 153);
}

.cat-btn-item.all-btn {
  background: #25c072;
  font-weight: bold;
  padding: 10px 14px;
}

.cat-btn-item.sub-btn {
  background: #0099ff;
  border: 1px solid #0fc4ff;
  box-shadow: 0 3px 4px rgb(0 103 172);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 5px 8px;
  min-width: 50px;
}

.cat-btn-item.sub-btn:active {
  background: #0c89f1;
  color: #fff;
}

.image-upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.image-upload-area .img-preview {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #0091e1;
}

.image-upload-area .img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-area .img-preview .img-del {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.image-upload-area .img-add {
  width: 70px;
  height: 70px;
  border: 2px dashed #0099ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #048cff;
  cursor: pointer;
  background: none;
}

.rental-thumb {
  width: 75px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid #49dc92;
  overflow: hidden;
  margin-left: -100px;
}

.rental-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rental-thumb .thumb-empty {
  background: #eee;
}

.job-item.rental-item {
  display: flex;
  align-items: stretch;
}

.job-item.rental-item .rental-info {
  flex: 1;
  min-width: 0;
}

.rental-title-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.rental-title-row h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-price {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.rent-num {
  color: #f77c00;
  font-weight: bold;
}

.rent-unit {
  color: #00acfb;
}

.tag-chuzu-prefix {
  font-size: 16px;
  color: #00c115;
  font-weight: bold;
  background-color: #f2fff6;
  border: 1px solid #bae1ff;
  border-radius: 5px;
  padding: 1px 0px 1px 4px;
}

.tag-chushou-prefix {
  font-size: 16px;
  color: #f77c00;
  font-weight: bold;
  background-color: #fff8f0;
  border: 1px solid #ffd4a8;
  border-radius: 5px;
  padding: 1px 0px 1px 4px;
}

.job-laoban {
  font-size: 16px;
  color: #00c115;
  font-weight: bold;
  background-color: #f2fff6;
  border: 1px solid #bae1ff;
  border-radius: 5px;
  padding: 1px 0px 1px 4px;
}

.img-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.img-viewer.show {
  display: flex;
}

.img-viewer img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

.img-viewer .viewer-close {
  position: absolute;
  right: 16px;
  color: #ec0000;
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.img-viewer .viewer-counter {
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.7;
}

.img-upload-hint {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
}

.top-tag {
  display: inline-block;
  background: #ff292b;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  margin: 0px 8px 2px 0px;
  vertical-align: middle;
}

.top-checkbox-row {
  margin-top: 3px;
  font-size: 13px;
  color: #666;
}

.top-checkbox-row label {
  display: flex;
  align-items: stretch;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #e60c00;
  flex-direction: row-reverse;
}

.top-checkbox-row input[type='checkbox'] {
  margin: 0px;
  width: 17px;
  height: 17px;
  accent-color: #ff3b30;
}

.file-input-hidden {
  display: none;
}

.sub-tab-hidden {
  display: none;
}

.top-count-info {
  display: none;
}

#rentTypeSelect {
  margin-left: 5px;
  height: 25px;
  padding: 0px 2px;
  background-color: #2196f3;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  box-sizing: border-box;
}

#publishTypeLabel {
  color: #ff5b5d;
}
