:root {
  --ink: #17211d;
  --muted: #6c7a73;
  --line: #e3eae5;
  --paper: #ffffff;
  --canvas: #f4f7f4;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --teal-soft: #dff3ee;
  --orange: #f97316;
  --orange-soft: #fff1e6;
  --yellow: #facc15;
  --danger: #d92d20;
  --shadow: 0 12px 32px rgba(34, 61, 48, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(227, 234, 229, .9);
  backdrop-filter: blur(16px);
}
.header-top {
  max-width: 1120px;
  height: 66px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(145deg, #10958a, #0b5f59);
  box-shadow: 0 7px 16px rgba(15, 118, 110, .25);
  flex: 0 0 auto;
}
.brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.icon-button:hover { border-color: #b9cec4; background: #f9fcfa; }
.icon-glyph { display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; line-height: 1; color: #0b5f59; }
.icon-glyph svg { display: block; }
.icon-button:hover .icon-glyph { color: #0a4a46; }
.user-button { position: relative; }
.user-button .icon-glyph { color: #b06a00; }
.header-avatar,
.header-avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.header-avatar { object-fit: cover; border: 1px solid #d7e5de; background: #edf6f2; }
.header-avatar-fallback { background: var(--teal-soft); color: var(--teal-dark); font-size: 13px; font-weight: 900; }
.user-vip { position: absolute; top: -5px; right: -5px; font-size: 14px; line-height: 1; }


.geo-city { display: inline-flex; align-items: center; max-width: 170px; padding: 0 12px;
  height: 38px; border-radius: 11px; background: #f1f6f3; border: 1px solid #d5e3dc;
  color: #4a5a52; font-size: 15px; font-weight: 800; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.geo-city.on { background: #e6f5ef; border-color: #97cfc2; color: #1f6b57; }

.location-button.active { background: var(--teal-soft); border-color: #97cfc2; color: var(--teal-dark); }
.vip-user { border-color: #e7c35a; background: #fff9df; color: #7a5700; }

.bulletin-wrap {
  position: sticky;
  top: 66px;
  z-index: 25;
  min-height: 54px;
  display: flex;
  align-items: stretch;
  background: #152c25;
  color: #f7fff9;
  box-shadow: 0 8px 20px rgba(15, 40, 31, .16);
}
.bulletin-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px 0 18px;
  background: linear-gradient(135deg, #d94f04, #f97316);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.speaker-icon { font-size: 17px; animation: speakerPulse 1.8s ease-in-out infinite; }
@keyframes speakerPulse { 50% { transform: scale(1.12) rotate(-5deg); } }
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9f8df;
  box-shadow: 0 0 0 4px rgba(185, 248, 223, .16);
}
.bulletin-viewport {
  position: relative;
  min-width: 0;
  flex: 1;
  height: 68px;              /* 显示2条 */
  overflow: hidden;
}
.bulletin-track {
  will-change: transform;
  animation: bulletinScrollV var(--scroll-duration, 18s) linear infinite;
}
.bulletin-viewport:hover .bulletin-track,
.bulletin-viewport:focus-within .bulletin-track,
.bulletin-track.paused { animation-play-state: paused; }
.bulletin-sequence { display: block; }
@keyframes bulletinScrollV {
  from { transform: translateY(0); }
  to { transform: translateY(var(--marquee-translate, -50%)); }
}
  to { transform: translateX(var(--marquee-translate, -100%)); }
}
.bulletin-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  color: #f7fff9;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bulletin-item::after { content: "•"; color: #77b9a5; margin-left: 14px; }
.bulletin-item:hover { color: #a8f0d9; }
.bulletin-item .pill { color: #8ce0c5; font-size: 12px; }
.bulletin-empty { color: #bdcec7; font-size: 13px; padding-left: 18px; }
.bulletin-mode {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #b8ccc4;
  font-size: 12px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.app-shell { max-width: 1120px; margin: 0 auto; padding: 22px 18px 70px; }
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 90% 12%, rgba(125, 211, 194, .32), transparent 28%),
    linear-gradient(135deg, #0b5f59 0%, #0f766e 56%, #3d9b87 100%);
  color: white;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 32px solid rgba(255, 255, 255, .1);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 12px; color: #c2f3e4; letter-spacing: .12em; margin-bottom: 10px; }
.hero h1 { margin: 0; font-size: clamp(30px, 8vw, 48px); line-height: 1.14; letter-spacing: -.04em; }
.hero p { margin: 12px 0 0; color: #d8f3ea; font-size: 14px; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.primary-button, .secondary-button, .danger-button, .ghost-button {
  min-height: 44px;
  border-radius: 13px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.primary-button { background: var(--orange); color: white; box-shadow: 0 9px 18px rgba(249, 115, 22, .23); }
.primary-button:hover { background: #e85d08; transform: translateY(-1px); }
.secondary-button { background: rgba(255, 255, 255, .14); color: white; border-color: rgba(255, 255, 255, .35); }
.secondary-button:hover { background: rgba(255, 255, 255, .22); }
.ghost-button { background: white; color: var(--teal-dark); border-color: var(--line); }
.ghost-button:hover { border-color: #9fc6b8; background: #f5fbf8; }
.danger-button { background: #fff0ee; color: var(--danger); border-color: #f5c7c2; }

.boards-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.boards-columns .section-block { margin-top: 0; }
@media (max-width: 699px) {
  .boards-columns { grid-template-columns: 1fr; gap: 28px; }
}

/* 招工/租房 滚动大喇叭 */
.board-marquee { overflow: hidden; border-radius: 14px; background: #152c25;
  height: 186px; }
.board-marquee-track { will-change: transform;
  animation: boardScrollV var(--board-duration, 20s) linear infinite; }
.board-marquee:hover .board-marquee-track { animation-play-state: paused; }
.board-marquee-seq { display: block; }
@keyframes boardScrollV {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.board-marquee-item { display: flex; align-items: center; gap: 9px; height: 40px; width: 100%;
  margin: 3px 0; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px;
  background: rgba(255,255,255,.05); color: #f7fff9; font: inherit; font-size: 13px;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.board-marquee-item:hover { background: rgba(255,255,255,.12); }
.board-marquee-item .bm-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #d94f04; color: #fff; }
.board-marquee-item .bm-title { font-weight: 700; }
.board-marquee-item .bm-price { color: #ffd479; font-weight: 700; }
.board-marquee-item .bm-area { color: #a8c7bb; font-size: 12px; }

.section-block { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-kicker { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.03em; }
.text-button { border: 0; background: transparent; color: var(--teal); font-weight: 700; padding: 5px 0; white-space: nowrap; }
.text-button:hover { color: var(--orange); }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  box-shadow: 0 4px 13px rgba(34, 61, 48, .035);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  cursor: pointer;
}
.post-card:hover { transform: translateY(-2px); border-color: #c8ded5; box-shadow: var(--shadow); }
.card-top, .card-meta, .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-pills { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.card-top { margin-bottom: 10px; }
.category-pill, .status-pill, .tag-pill, .distance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.top-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #8a4b00;
  background: linear-gradient(135deg, #ffeaa6, #ffd25e);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.vip-badge { color: #8a5a00; background: #fff0a8; border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.post-card.is-top { border-color: #f0d98a; box-shadow: 0 7px 22px rgba(210, 160, 32, .1); }
.category-pill { color: var(--teal-dark); background: var(--teal-soft); }
.type-house { color: #9a4b0b; background: var(--orange-soft); }
.status-pill.ok { color: #087443; background: #e2f7e9; }
.status-pill.pending { color: #9a6700; background: #fff6d6; }
.status-pill.hidden { color: #667085; background: #eef1f4; }
.post-card h3 { margin: 0; font-size: 17px; line-height: 1.46; letter-spacing: -.01em; }
.post-card .price { color: #d94f04; font-size: 20px; font-weight: 850; white-space: nowrap; }
.post-card .price.job-price { color: var(--teal); }
.card-meta { color: var(--muted); font-size: 12px; margin-top: 11px; }
.card-detail { color: #53635a; font-size: 13px; line-height: 1.58; margin: 11px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { border-top: 1px solid #edf2ee; margin-top: 14px; padding-top: 12px; color: var(--muted); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-pill { color: #b45309; background: #fff7df; min-height: 21px; font-size: 10px; }
.distance-pill { color: #52635b; background: #f0f4f1; min-height: 22px; font-size: 10px; }

.is-loading { color: var(--muted); font-size: 14px; padding: 20px 2px; }
.empty-state {
  background: white;
  border: 1px dashed #cbd9d0;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--ink); margin-bottom: 6px; }

.view-root { max-width: 1120px; margin: 0 auto; padding: 24px 18px 70px; }
.view-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.back-button { border: 0; background: white; width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.06); font-size: 20px; color: var(--teal-dark); }
.view-head h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.view-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.filter-bar { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 15px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; }
.filter-chip.active { background: var(--teal); border-color: var(--teal); color: white; font-weight: 700; }
.search-bar { display: flex; align-items: stretch; gap: 9px; margin-bottom: 14px; }
.search-input-wrap { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.search-input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 42px 0 40px;
  border: 1px solid #d7e2db;
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: none;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.search-input-wrap input:focus { border-color: #52a994; box-shadow: 0 0 0 3px rgba(82, 169, 148, .13); }
.search-input-wrap input::-webkit-search-cancel-button { display: none; }
.search-icon { position: absolute; left: 15px; color: var(--muted); font-size: 18px; line-height: 1; pointer-events: none; }
.search-clear {
  position: absolute;
  right: 7px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef4f0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  padding: 0;
}
.search-clear:hover { background: #e1ece6; color: var(--ink); }
.search-submit { min-width: 78px; padding: 0 16px; flex: 0 0 auto; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.location-status { color: var(--teal-dark); }
.location-status.off { color: var(--muted); }

.form-shell, .profile-shell, .detail-shell, .admin-shell { max-width: 760px; margin: 0 auto; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 5px 18px rgba(34, 61, 48, .045); }
.panel + .panel { margin-top: 14px; }
.panel h2 { margin: 0 0 6px; font-size: 19px; }
.panel-subtitle { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; background: #eef4f0; border-radius: 14px; margin-bottom: 19px; }
.segment { border: 0; border-radius: 10px; min-height: 40px; background: transparent; color: var(--muted); font-weight: 700; }
.segment.active { background: white; color: var(--teal-dark); box-shadow: 0 3px 10px rgba(34, 61, 48, .09); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; }
.field .hint { color: var(--muted); font-size: 11px; font-weight: 400; }
.region-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.region-selects select { min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d7e2db;
  border-radius: 11px;
  background: #fbfdfb;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
  min-height: 44px;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #52a994; box-shadow: 0 0 0 3px rgba(82, 169, 148, .13); background: white; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.form-message { min-height: 20px; color: var(--danger); font-size: 13px; margin-top: 11px; }
.form-message.ok { color: #087443; }
.checkbox-row { display: flex; gap: 12px; flex-wrap: wrap; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4c5e55; }

.detail-title { margin: 0; font-size: clamp(25px, 7vw, 36px); line-height: 1.25; letter-spacing: -.04em; }
.detail-price { color: #d94f04; font-size: 25px; font-weight: 850; margin: 14px 0 0; }
.detail-price.job-price { color: var(--teal); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.detail-meta span { background: #f0f5f2; border-radius: 999px; padding: 6px 10px; color: #53635a; font-size: 12px; }
.detail-body { white-space: pre-wrap; color: #43534b; line-height: 1.8; font-size: 15px; margin-top: 22px; }

.image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card-images { margin-top: 13px; }
.image-thumb, .upload-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #eef4f0;
  padding: 0;
}
.image-thumb img, .upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-thumb:hover img { transform: scale(1.03); }
.image-thumb img { transition: transform .18s ease; }
.upload-field input[type="file"] { padding: 9px; background: white; }
.upload-field input[type="file"]::file-selector-button { border: 0; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); padding: 7px 10px; margin-right: 9px; font-weight: 700; }
.upload-status { min-height: 17px; color: var(--muted); font-size: 12px; }
.upload-status.ok { color: #087443; }
.upload-status.error { color: var(--danger); }
.upload-preview { margin-top: 2px; }
.upload-thumb .image-remove {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 40, 32, .78);
  color: white;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.detail-images { margin-top: 20px; }
.image-preview-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 20, 16, .88);
}
.image-preview-backdrop.show { display: flex; }
.image-preview-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; backdrop-filter: blur(6px);
}
.image-preview-arrow.prev { left: 12px; }
.image-preview-arrow.next { right: 12px; }
.image-preview-arrow:active { background: rgba(255,255,255,.3); }
.image-preview-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: rgba(0,0,0,.45); letter-spacing: .5px;
}
.image-preview-backdrop img { touch-action: pan-y; }
.salary-row { display: flex; gap: 8px; align-items: stretch; }
.salary-row input { flex: 1; min-width: 0; }
.salary-row select { flex: 0 0 108px; }
.phone-hidden { color: var(--orange, #ff7a2a); cursor: pointer; text-decoration: underline dotted; }
#callButton:disabled { opacity: .5; cursor: not-allowed; }
.image-preview-backdrop img { max-width: min(100%, 1100px); max-height: 90vh; object-fit: contain; border-radius: 12px; }
.image-preview-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 25px;
  line-height: 1;
}
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 23px; padding: 15px; border-radius: 15px; background: var(--teal-soft); }
.contact-box small { display: block; color: #477166; margin-bottom: 4px; }
.contact-box strong { color: var(--teal-dark); font-size: 19px; }
.contact-box .primary-button { white-space: nowrap; }

.profile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-name { display: flex; align-items: center; gap: 12px; }
.avatar { width: 47px; height: 47px; border-radius: 15px; display: grid; place-items: center; color: white; background: var(--teal); font-size: 21px; font-weight: 800; }
.avatar-image { overflow: hidden; padding: 0; background: #e8f2ee; }
.avatar-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-name h2 { margin: 0; font-size: 18px; }
.profile-name p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.quota-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 19px; }
.quota-item { background: #f5faf7; border: 1px solid #e3eee7; border-radius: 13px; padding: 12px; }
.quota-item span { color: var(--muted); font-size: 11px; }
.quota-item strong { display: block; margin-top: 5px; font-size: 20px; color: var(--teal-dark); }
.my-post-list { display: grid; gap: 10px; margin-top: 16px; }
.my-post-card { cursor: default; }
.my-post-card:hover { transform: none; }
.my-post-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf2ee; }
.my-post-actions .mini-button { min-height: 31px; padding: 0 11px; font-size: 12px; }
.mini-button.top { color: #8a4b00; border-color: #efd17a; background: #fff9df; }
.mini-button.delist { color: #856404; border-color: #f0d089; background: #fffaf0; }
.mini-button.relist { color: #087443; border-color: #b8e3c6; background: #f2fdf6; }
.mini-button.edit { color: #0b5ea8; border-color: #a9cdf0; background: #f3f9ff; }
.mini-button.delete { color: var(--danger); border-color: #f0c1bc; background: #fff5f4; }
.my-post-card.is-delisted { opacity: 0.55; background: #f7f7f5; }
.my-post-card.is-delisted .status-pill.hidden { background: #efece6; color: #8a8578; }
/* 被后台下架的帖子：红色警示框 */
.reject-alert {
  display: flex; flex-direction: column; gap: 3px;
  margin: 8px 0 10px; padding: 9px 12px;
  background: #fff1f0; border: 1px solid #f5a9a2; border-left: 4px solid #e5483c;
  border-radius: 8px; color: #a3201a;
}
.reject-alert strong { font-size: 13px; font-weight: 700; }
.reject-alert span { font-size: 13px; color: #b8382f; line-height: 1.5; }
.reject-alert em { font-size: 12px; color: #c26a5f; font-style: normal; }
.my-post-card.has-reject { border: 1px solid #f5a9a2; box-shadow: 0 0 0 1px #fde3e0 inset; }
.post-pick { display: inline-flex; align-items: center; margin-right: 6px; }
.post-pick input { width: 17px; height: 17px; accent-color: var(--orange, #ff7a2a); }
.panel-collapse-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.panel-collapse-head h2 { margin: 0; }
.collapse-arrow { font-size: 12px; color: #7d8a83; }
.collapse-arrow.open { color: var(--orange, #ff7a2a); }
.my-posts-body { margin-top: 12px; }
.batch-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 11px; margin-bottom: 12px; background: #fbfaf7; border: 1px solid var(--line, #eee); border-radius: 10px; }
.batch-all { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #48584f; }
.batch-all input { width: 17px; height: 17px; accent-color: var(--orange, #ff7a2a); }
.batch-count { font-size: 12px; color: #8a8578; }
.batch-actions { margin-left: auto; display: flex; gap: 7px; flex-wrap: wrap; }
.mini-button.refresh { color: var(--teal-dark); border-color: #a6d9ca; background: #f3fcf9; }
.mini-button.vip { color: #7a5700; border-color: #e7c35a; background: #fff8dc; }
.member-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 13px; border: 1px solid #f0dc98; border-radius: 14px; background: linear-gradient(135deg, #fffbea, #fff5c8); }
.member-strip strong { display: block; font-size: 14px; color: #6e4c00; }
.member-strip span { display: block; margin-top: 4px; color: #886c2f; font-size: 11px; }
.member-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.member-entry h2 { margin: 5px 0 0; }
.member-entry p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.order-status { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.order-status.pending { color: #9a6700; background: #fff6d6; }
.order-status.paid { color: #087443; background: #e2f7e9; }
.order-status.closed { color: #667085; background: #eef1f4; }
.my-order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf2ee; }
.my-order-row:last-child { border-bottom: 0; }
.my-order-row strong { display: block; font-size: 13px; }
.my-order-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; word-break: break-all; }
.my-order-side { text-align: right; flex: 0 0 auto; }
.my-order-side strong { margin-top: 5px; color: #d94f04; }

.admin-shell { max-width: 1000px; }
.admin-login { max-width: 430px; margin: 44px auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-topbar h1 { margin: 0; font-size: 26px; }
.admin-topbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 17px 0; }
.admin-summary .quota-item:nth-child(2) strong { color: #9a6700; }
.admin-summary .quota-item:nth-child(3) strong { color: #667085; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 12px; }
.admin-table th, .admin-table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid #edf2ee; vertical-align: top; }
.admin-table th { color: var(--muted); background: #f8fbf9; font-weight: 700; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .title-cell { min-width: 210px; font-weight: 700; line-height: 1.5; }
.admin-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 6px 8px; font-size: 11px; color: #48584f; }
.mini-button.ok { color: #087443; border-color: #b8e3c6; }
.mini-button.hide { color: #856404; border-color: #f2d98c; }
.mini-button.delete { color: var(--danger); border-color: #f0c1bc; }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.wechat-login-button {
  width: 100%;
  min-height: 46px;
  margin-top: 17px;
  border: 1px solid #16a34a;
  border-radius: 12px;
  background: #16a34a;
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.wechat-login-button:hover { background: #12883e; border-color: #12883e; }
.wechat-login-button:disabled { opacity: .62; cursor: wait; }
.wechat-mark { width: 23px; height: 23px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 13px; color: #8a9690; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 35, 28, .48);
  backdrop-filter: blur(6px);
}
.modal-backdrop.show { display: flex; }
.modal-card {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(10, 34, 25, .25);
  animation: modalIn .18s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-card h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -.03em; }
.modal-close {
  position: absolute;
  right: 13px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f0f5f2;
  color: #52635b;
  font-size: 23px;
  line-height: 1;
}
.code-row { display: flex; gap: 8px; }
.code-row input { min-width: 0; flex: 1; }
.code-row .ghost-button { flex: 0 0 auto; white-space: nowrap; }
.full-button { width: 100%; margin-top: 17px; }
.settings-submit { align-self: end; min-height: 44px; }
.pay-card { width: min(460px, 100%); }
.pay-amount { margin: 18px 0 12px; color: #d94f04; font-size: 36px; font-weight: 900; letter-spacing: -.04em; }
.order-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #edf2ee; color: var(--muted); font-size: 12px; }
.order-line strong { color: var(--ink); text-align: right; word-break: break-all; }
.pay-notice { margin-top: 15px; padding: 13px; border: 1px solid #f1d48c; border-radius: 12px; background: #fff8dc; color: #805e0a; font-size: 13px; line-height: 1.6; }
.top-choice-list { display: grid; gap: 9px; margin-top: 17px; }
.top-choice { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbf9; color: var(--ink); }
.top-choice:hover { border-color: #e5c35f; background: #fff9df; }
.top-choice span { color: #b45309; font-weight: 800; }

.toast-region { position: fixed; right: 15px; bottom: 20px; z-index: 100; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 30px)); }
.toast { background: #1b332b; color: white; padding: 12px 14px; border-radius: 12px; box-shadow: 0 12px 26px rgba(0,0,0,.2); font-size: 13px; animation: toastIn .2s ease-out; }
.toast.error { background: #8f2d26; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }


.location-card { width: min(560px, 100%); }
.location-mode-title { margin: 20px 0 9px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.location-region-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.location-km-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.location-km-options label { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; color: #48584f; font-size: 13px; }
.location-km-options label:has(input:checked) { border-color: #74b9aa; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; }
.location-actions { margin-top: 15px; }
.location-actions .primary-button { min-width: 110px; }

@media (max-width: 600px) {
  .header-top { height: 60px; padding: 0 13px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 10px; }
  .icon-button { padding: 0 9px; min-height: 36px; }
  .location-label, .user-label { display: none; }
  .bulletin-wrap { top: 60px; min-height: 50px; }
  .bulletin-label { padding: 0 11px 0 13px; font-size: 12px; }
  .speaker-icon { font-size: 15px; }
  .bulletin-mode { padding: 0 9px; font-size: 11px; }
  .bulletin-item { font-size: 13px; padding: 0 16px; }
  .app-shell, .view-root { padding-left: 13px; padding-right: 13px; }
  .hero { border-radius: 20px; padding: 23px 18px; min-height: 206px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 13px; }
  .hero-actions { margin-top: 22px; }
  .primary-button, .secondary-button, .danger-button, .ghost-button { min-height: 42px; padding: 0 15px; font-size: 13px; }
  .section-block { margin-top: 28px; }
  .section-heading h2 { font-size: 21px; }
  .post-card { padding: 15px; border-radius: 16px; }
  .post-card h3 { font-size: 16px; }
  .post-card .price { font-size: 18px; }
  .search-bar { gap: 7px; }
  .search-submit { min-width: 66px; padding: 0 12px; }
  .panel { padding: 15px; border-radius: 16px; }
  .region-selects { grid-template-columns: 1fr; }
  .location-region-fields { grid-template-columns: 1fr; }
  .location-km-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-box { align-items: flex-start; flex-direction: column; }
  .contact-box .primary-button { width: 100%; }
  .admin-summary { gap: 7px; }
  .quota-item { padding: 9px; }
  .quota-item strong { font-size: 17px; }
  .modal-card { padding: 20px; border-radius: 18px; }
}

@media (min-width: 700px) {
  .app-shell, .view-root { padding-left: 28px; padding-right: 28px; }
  .hero { min-height: 230px; padding: 34px 37px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.two-columns .span-2 { grid-column: span 2; }
  .settings-grid { grid-template-columns: repeat(3, 1fr); }
}
