/* 后台管理样式 */

.admin-main {
  padding-top: 100px;
}

.admin-main .panel-default {
  padding: 15px;
}

.admin-table > tbody > tr > td {
  vertical-align: middle;
  font-size: 14px;
}

.admin-table .post-title {
  display: inline-block;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

.admin-table .post-title:hover {
  color: #ff4467;
  text-decoration: none;
}

.admin-table .btn-xs {
  margin-right: 2px;
}

.admin-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  overflow-y: auto;
}

.admin-modal {
  width: 720px;
  max-width: 94%;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.admin-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  font-size: 17px;
  font-weight: 600;
  color: #333;
  position: relative;
}

.admin-modal-close {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 26px;
  color: #999;
  text-decoration: none;
}

.admin-modal-close:hover {
  color: #ff4467;
  text-decoration: none;
}

.admin-modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

/* 图片上传框 */
.upload-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-box {
  width: 200px;
}

.upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s;
  text-align: center;
}

.upload-area:hover {
  border-color: #ff4467;
  color: #ff4467;
}

.upload-preview {
  width: 200px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  cursor: pointer;
}

.upload-url {
  margin-top: 6px;
  font-size: 12px;
  height: 32px;
}

/* 城市分类管理 */
.cat-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

.cat-row:last-child {
  border-bottom: none;
}

.cat-name {
  width: 150px;
  font-weight: 600;
  color: #333;
  flex-shrink: 0;
}

.cat-count {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #999;
}

.cat-chips {
  flex: 1;
  line-height: 26px;
}

.cat-chip {
  display: inline-block;
  background: #ddf3f9;
  color: #333;
  border: 1px solid #9fd2dd;
  border-radius: 6px;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 400;
}

.cat-ops {
  flex-shrink: 0;
  white-space: nowrap;
}

#toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 99999;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#toast.show {
  display: block;
}
