/* 投稿页 */

.page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #eef1f0;
}

.hdr-back {
  width: 30px;
  font-size: 20px;
  color: #37453f;
  text-decoration: none;
}

.page-header h1 {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2d28;
}

.hdr-points {
  font-size: 13px;
  font-weight: 700;
  color: #2d6b58;
  background: #f1f7f4;
  padding: 4px 10px;
  border-radius: 999px;
}

.intro-note {
  margin: 12px 12px 0;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.65;
  color: #4a5854;
  background: #f4faf7;
  border-left: 3px solid #2d6b58;
  border-radius: 8px;
}

.intro-note strong { color: #2d6b58; }
.intro-link { margin-left: 6px; color: #2d6b58; text-decoration: underline; white-space: nowrap; }

/* ---------- 投稿资格条 ---------- */

.elig-bar {
  margin: 10px 12px 0;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.elig-bar[hidden] { display: none; }
.elig-bar .elig-ico { flex: 0 0 auto; font-size: 16px; line-height: 1.3; }
.elig-bar .elig-body { flex: 1; min-width: 0; }
.elig-bar b { font-weight: 700; }
.elig-bar a { color: inherit; text-decoration: underline; margin-left: 6px; white-space: nowrap; }
.elig-ok    { background: #eef7f2; color: #245a49; border: 1px solid #cfe5db; }
.elig-scout { background: linear-gradient(120deg, #fff6e3, #fdf1d6); color: #6b4a06; border: 1px solid #f1dcae; }
.elig-block { background: #fff3f0; color: #8a3324; border: 1px solid #f3d3cb; }

/* ---------- 验收自检 ---------- */

.check-card .card-title { display: flex; align-items: center; gap: 8px; }
.check-score {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #2d6b58;
  background: #eef7f2;
  padding: 2px 9px;
  border-radius: 999px;
}
.check-score.done { background: #2d6b58; color: #fff; }
.card-sub { margin: -4px 0 10px; font-size: 12px; color: #7a8884; line-height: 1.5; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: #3d4a46;
}
.check-list li .ck {
  flex: 0 0 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid #c5d4ce;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  color: transparent;
}
.check-list li.ok .ck { background: #2d6b58; border-color: #2d6b58; color: #fff; }
.check-list li.ok { color: #7a8884; }
.check-list li.warn .ck { border-color: #d9a441; }
.check-list li.warn .ck::before { content: '!'; color: #d9a441; font-weight: 700; }
.check-list li small { display: block; color: #9aa6a2; font-size: 11.5px; }
.check-list li.ok small { display: none; }

/* ---------- 提交成功 ---------- */

.success-card { margin: 14px 12px; text-align: center; padding: 26px 18px 22px; }
.success-card[hidden] { display: none; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%;
  background: #2d6b58; color: #fff;
  font-size: 28px; line-height: 56px; font-weight: 700;
}
.success-card h2 { margin: 0 0 8px; font-size: 18px; color: #1f2d29; }
.success-card p { margin: 0 0 18px; font-size: 13px; line-height: 1.7; color: #5a6864; }
.success-actions { display: flex; gap: 10px; }
.success-actions .btn-primary { flex: 1; height: 44px; }
.success-actions .btn-ghost {
  flex: 0 0 40%; height: 44px; line-height: 42px;
  border: 1px solid #c5d4ce; background: #fff; color: #2d6b58;
  border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none;
}

/* ---------- 表单 ---------- */

.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }

.field-row {
  display: flex;
  gap: 10px;
}
.field-row .field { flex: 1; min-width: 0; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #37453f;
}

.field label i {
  color: #d9534f;
  font-style: normal;
}

.bonus {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #b07d3a;
  background: #fdf6e8;
  border-radius: 4px;
}

.field input[type="text"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: #1f2d28;
  background: #f7f9f8;
  border: 1px solid #e4e9e7;
  border-radius: 9px;
  box-sizing: border-box;
  font-family: inherit;
  -webkit-appearance: none;
}

.field textarea { resize: vertical; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #2d6b58;
  background: #fff;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #9aa5a0;
  line-height: 1.55;
}

/* ---------- 分段选择 ---------- */

.seg {
  display: flex;
  gap: 0;
  background: #f0f3f2;
  border-radius: 9px;
  padding: 3px;
}

.seg-btn {
  flex: 1;
  padding: 8px 6px;
  font-size: 13px;
  color: #6b7873;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-family: inherit;
}

.seg-btn.active {
  color: #1f2d28;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ---------- 景点搜索 ---------- */

.search-results {
  margin-top: 6px;
  max-height: 210px;
  overflow-y: auto;
}

.sr-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  color: #1f2d28;
  background: #f7f9f8;
  border-radius: 8px;
  margin-bottom: 5px;
  cursor: pointer;
}

.sr-item:active,
.mine-spot:active { background: #e8f3ee; }

.mine-spot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 8px;
  border: 1px solid #dceae4;
  border-radius: 10px;
  background: #f7fbf9;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.mine-spot b { font-size: 14px; color: #1f2d28; }
.mine-spot span { font-size: 12px; color: #2d6b58; }

.sr-item span { font-size: 11px; color: #9aa5a0; }

.sr-empty {
  padding: 11px;
  font-size: 12px;
  color: #9aa5a0;
  text-align: center;
}

/* ---------- 标签输入 ---------- */

.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.tag-input:empty { margin-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 12px;
  color: #1f4f45;
  background: #e8f3ee;
  border-radius: 999px;
}

.tag i {
  font-style: normal;
  color: #7aa396;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.qt {
  padding: 5px 9px;
  font-size: 11px;
  color: #6b7873;
  background: #f4f6f5;
  border: 1px dashed #d8dfdc;
  border-radius: 999px;
  font-family: inherit;
}

/* ---------- 月份 ---------- */

.month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.month-btn {
  padding: 8px 0;
  font-size: 12px;
  color: #6b7873;
  background: #f7f9f8;
  border: 1px solid #e4e9e7;
  border-radius: 7px;
  font-family: inherit;
}

.month-btn.on {
  color: #fff;
  background: #2d6b58;
  border-color: #2d6b58;
  font-weight: 600;
}

/* ---------- 定位按钮 ---------- */

.btn-locate {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  color: #2d6b58;
  font-weight: 600;
  background: #f1f7f4;
  border: 1px solid #cfe8dc;
  border-radius: 9px;
  font-family: inherit;
}

.btn-locate:disabled { opacity: .6; }

/* ---------- 图片 ---------- */

.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.img-item,
.img-add {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
}

.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-add {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  color: #b4bfbb;
  background: #f7f9f8;
  border: 1px dashed #d8dfdc;
  cursor: pointer;
}

.img-add.uploading {
  pointer-events: none;
  color: #2d6b58;
  border-color: #2d6b58;
}

.img-add.uploading span::after {
  content: '上传中';
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.img-rm {
  position: absolute;
  top: 3px; right: 3px;
  width: 21px; height: 21px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  background: rgba(0, 0, 0, .55);
  border: none;
  border-radius: 50%;
}

.img-tag {
  position: absolute;
  bottom: 3px; left: 3px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(45, 107, 88, .9);
  border-radius: 4px;
}

.img-tag.off { background: rgba(0, 0, 0, .45); font-weight: 500; }

.img-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}

.img-grid.dragover {
  outline: 2px dashed #2d6b58;
  outline-offset: 4px;
  background: #f4faf7;
}

.drop-hint {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #2d6b58;
  text-align: center;
}

.img-grid.dragover + .drop-hint { display: block; }

.draft-bar {
  margin: 12px 12px 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #2d6b58;
  background: #eef7f2;
  border-radius: 8px;
}

.draft-clear {
  border: none;
  background: transparent;
  color: #8a4b3a;
  font-size: 12px;
  cursor: pointer;
}

.draft-hint {
  margin: -8px 12px 16px;
  font-size: 11px;
  color: #8a9691;
  text-align: center;
}

.submit-bar-split {
  display: flex;
  gap: 10px;
}

.submit-bar-split .btn-ghost {
  flex: 0 0 38%;
  height: 44px;
  border: 1px solid #c5d4ce;
  background: #fff;
  color: #2d6b58;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.submit-bar-split .btn-primary { flex: 1; }

/* ---------- 预估卡 ---------- */

.estimate-card {
  background: linear-gradient(150deg, #f4faf7, #eef7f2);
  border: 1px solid #d7ebe2;
}

.est-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #dceae4;
}

.est-head span { font-size: 13px; color: #4a5854; }
.est-head b { font-size: 25px; font-weight: 700; color: #2d6b58; }

.est-items { padding-top: 8px; }

.est-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  color: #4a5854;
}

.est-row b { color: #2d6b58; }

.est-note {
  margin: 9px 0 0;
  font-size: 11px;
  color: #8a9691;
}

/* ---------- 提交 ---------- */

.submit-bar {
  padding: 4px 12px 20px;
}

.submit-bar .btn-primary:disabled { background: #b4c4be; }

/* ---------- 我的投稿 ---------- */

.mc-row {
  padding: 10px 0;
  border-bottom: 1px solid #f2f5f4;
}

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

.mc-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.mc-name {
  font-size: 13px;
  color: #1f2d28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-status {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.mc-status.ok { color: #2d6b58; background: #e8f3ee; }
.mc-status.wait { color: #b07d3a; background: #fdf6e8; }
.mc-status.no { color: #a94442; background: #fdeeed; }

.mc-points {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #2d6b58;
}

.mc-notes {
  margin-top: 4px;
  font-size: 11px;
  color: #8a9691;
  line-height: 1.55;
}

.tip-origin {
  margin-top: 6px;
  padding: 8px 10px;
  background: #f2f8f5;
  border-radius: 6px;
  line-height: 1.65;
}

.tip-origin b { color: #2d6b58; }

/* ---------- 投稿的系统评分 ---------- */

.mc-auto {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mc-score {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.mc-score.good { color: #2d6b58; background: #e8f3ee; }
.mc-score.mid { color: #b07d3a; background: #fdf6e8; }
.mc-score.bad { color: #a94442; background: #fdeeed; }

.mc-weak {
  font-size: 11px;
  color: #8a9691;
}

.mc-advice {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7a74;
}

.mc-advice summary {
  cursor: pointer;
  color: #2d6b58;
  list-style: none;
}

.mc-advice summary::-webkit-details-marker { display: none; }

.mc-advice summary::before {
  content: '▸ ';
  color: #8a9691;
}

.mc-advice[open] summary::before { content: '▾ '; }

.mc-advice ol {
  margin: 6px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translate(-50%, 12px);
  max-width: 82%;
  padding: 11px 17px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: rgba(31, 45, 40, .94);
  border-radius: 10px;
  opacity: 0;
  transition: opacity .28s, transform .28s;
  z-index: 999;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(169, 68, 66, .95); }
