:root {
  --bg: #f6f1e8;
  --card: #fffdf7;
  --card-soft: #faf5ec;
  --line: #e6ddd0;
  --line-strong: #d8cdbb;
  --text: #3f3a32;
  --text-dim: #8d8678;
  --accent: #a06a3c;
  --accent-soft: #f0e2d2;
  --green: #6e8b5f;
  --green-soft: #e7eee1;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(120, 100, 70, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 切换视图时滚动条出现/消失会导致页面宽度变化抖动；
   scrollbar-gutter 现代浏览器生效（不常驻灰条），老内核退回 overflow-y: scroll */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.hidden { display: none !important; }

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon { font-size: 28px; }

h1 {
  font-size: 21px;
  color: var(--accent);
  line-height: 1.2;
}

.subtitle { font-size: 13px; color: var(--text-dim); }

.name-btn {
  flex-shrink: 0;
  font-size: 13px;
  padding: 7px 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-entry {
  font-size: 13px;
  padding: 7px 16px;
}

.admin-badge {
  background: linear-gradient(135deg, #f5d67a, #e0a93c);
  color: #6b4c00;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(224, 169, 60, .35);
  animation: pop .25s ease;
}

.logout-btn { margin-top: 8px; }

.field-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: -4px 0 12px;
}

/* ---------- buttons ---------- */
.btn {
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #8f5a30; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover { background: var(--accent-soft); }

.btn-outline.danger { color: #b0453a; border-color: #b0453a; }

.btn-outline.danger:hover { background: #f6e2de; }

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-block { width: 100%; margin-top: 6px; }

/* ---------- layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 24px; }

/* ---------- 公告横幅 ---------- */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #fdf3e3, #f9e8cd);
  border: 1px solid #ecd9b8;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13.5px;
  color: #7a5b2e;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.announcement-icon { font-size: 16px; flex-shrink: 0; }
.announcement-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-edit {
  border: 1px solid #d9b87e;
  background: #fffdf7;
  color: #8a6a35;
  font-size: 12px;
  font-family: inherit;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.announcement-edit:hover { background: #f6e7cc; }

.ann-view-content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.ann-view-time {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- 需求状态标签 ---------- */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 99px;
  flex-shrink: 0;
  vertical-align: middle;
}

.status-tag.doing { background: #e7eee1; color: #55703f; }
.status-tag.done { background: #ece8e1; color: #8d8678; }

.mine-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 99px;
  background: #fdf3e3;
  color: #b0762a;
  vertical-align: middle;
  margin-left: 6px;
}

.sink-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 99px;
  flex-shrink: 0;
  vertical-align: middle;
  background: #efefef;
  color: #9a9a9a;
}

.sink-box {
  opacity: .8;
  color: var(--text-dim);
  font-size: 12.5px;
}

.claim-btn { flex-shrink: 0; }
.claim-btn.claimed { background: #f6e2de; color: #b0453a; border-color: #e0b9b2; }
.claim-btn.claimed:hover { background: #f0d2cc; }

/* ---------- tabs ---------- */
.top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: fit-content;
  flex-shrink: 0;
}

.tab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 20px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .15s ease;
}

.tab:hover { color: var(--accent); }

.tab.active {
  background: var(--accent);
  color: #fff;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.col {
  background: transparent;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.col-head h2 { font-size: 17px; }

.col-head .count {
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 1px 9px;
  border-radius: 99px;
}

.col-head .spacer { flex: 1; }

.col-hint { color: var(--text-dim); font-size: 12.5px; margin-bottom: 12px; }

/* ---------- 搜索与排序 ---------- */
.search-bar {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.search-bar input {
  width: 100%;
  max-width: 520px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  padding: 9px 18px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease;
}

.search-bar input:focus { outline: none; border-color: var(--accent); }

.sort-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  padding: 5px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.sort-select:focus { outline: none; border-color: var(--accent); }

/* ---------- post cards ---------- */
.post-list {
  display: -webkit-flex;
  display: flex;
  align-items: flex-start;
}

.masonry-col {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.masonry-col + .masonry-col {
  margin-left: 14px;
}

/* 列表精简卡片（小红书式） */
.card {
  width: 100%;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  animation: rise .25s ease both;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(120, 100, 70, .14);
}

.card.need { border-top: 3px solid var(--accent); }
.card.done { border-top: 3px solid var(--green); }

.card.sunk {
  opacity: .55;
  filter: grayscale(.6);
  border-top-color: #c9c9c9 !important;
  background: #faf9f7;
}
.card.sunk:hover { box-shadow: var(--shadow); transform: none; }

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-excerpt {
  color: #6b6355;
  font-size: 12.5px;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: pre-wrap;
}

.card-meta {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta .author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta .spacer { flex: 1; }

.card-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-count {
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.like-mini {
  padding: 2px 10px;
  font-size: 12px;
}

/* 详情弹窗内完整卡片 */
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  animation: rise .25s ease both;
}

.post.need { border-left: 3px solid var(--accent); }
.post.done { border-left: 3px solid var(--green); }

.modal-detail { max-width: 620px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.post-title { font-size: 16px; font-weight: 700; flex: 1; line-height: 1.4; }

.repo-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  background: var(--green-soft);
  padding: 4px 11px;
  border-radius: 99px;
  transition: all .15s ease;
}

.repo-link:hover { background: #d9e5d2; }

.repo-copy {
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  padding: 4px 11px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s ease;
}

.repo-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.post-content {
  color: #5d574d;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 12.5px;
}

.post-meta .group {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- claim ---------- */
.post-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.claim-box {
  flex: 1;
  font-size: 13px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 8px;
  padding: 7px 12px;
}

.claim-box .claim-note { color: #5f7a52; }
.claim-box .claim-time { color: var(--text-dim); font-size: 11.5px; }

/* ---------- 留言区 ---------- */
.comment-area {
  margin-top: 12px;
  background: var(--card-soft);
  border-radius: 8px;
  padding: 10px 12px;
}

.comment-list { margin-bottom: 8px; }

.comment {
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.comment:last-child { border-bottom: none; }

.comment b { color: var(--accent); }

.comment-time { color: var(--text-dim); font-size: 11px; margin-left: 6px; }

.comment p { color: #5d574d; margin-top: 1px; white-space: pre-wrap; word-break: break-word; }

/* 留言/描述里的外链图片 */
.embed-img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-soft);
  object-fit: contain;
}

.comment-ref {
  color: var(--text-dim);
  font-size: 11.5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 8px;
  margin-left: 6px;
}

.admin-tag {
  font-size: 12px;
  margin-left: 5px;
  cursor: default;
}

.comment-reply {
  margin-left: 22px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  border-bottom: none;
}

.comment-reply-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-dim);
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 3px 10px;
  margin-top: 4px;
  margin-right: 6px;
  border-radius: 6px;
  line-height: 1.4;
}

.comment-reply-btn:hover { color: var(--accent); border-color: var(--accent); }

.comment-reply-btn.ok { color: #2e7d32; border-color: #2e7d32; background: #f0f7ef; }
.comment-reply-btn.ok:hover { background: #e0eee0; }

.comment-reply-btn.warn { color: #b26a00; border-color: #b26a00; background: #fdf6e9; }
.comment-reply-btn.warn:hover { background: #faedcf; }

.comment-reply-btn.danger { color: #b0453a; border-color: #b0453a; background: #fcf1ef; }
.comment-reply-btn.danger:hover { background: #f6e2de; }

.comment-reply-btn.dead {
  color: #b3aca0;
  border-color: var(--line);
  background: var(--card-soft);
  cursor: not-allowed;
}

.comment-reply-btn.dead:hover { color: #b3aca0; border-color: var(--line); background: var(--card-soft); }

.comment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
}

.blocked-hint {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--card-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 4px 0;
}

.blocked-tag {
  font-size: 11px;
  color: #b0453a;
  background: #f6e2de;
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 6px;
}

.blocked-tag.pending {
  color: #9a6b00;
  background: #fdf0d1;
}

.sensitive-hint {
  font-size: 12px;
  color: #9a6b00;
  background: #fdf0d1;
  border-radius: 6px;
  padding: 3px 8px;
  margin: 4px 0;
}

.sensitive-hint b { font-weight: 700; }

.comment-hidden, .comment-hidden .comment-reply-btn {
  opacity: .85;
}

.reply-badge {
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

.reply-badge:hover { opacity: .85; }

.comment-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.comment-form input,
.comment-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 7px 10px;
}

.comment-form textarea:focus { outline: none; border-color: var(--accent); }

.comment-name { width: 88px; flex-shrink: 0; }
.comment-text {
  flex: 1;
  min-width: 0;
  resize: none;
  height: 38px;
  line-height: 22px;
  overflow-y: auto;
}

.btn-small {
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease;
}

.btn-small:hover { background: #8f5a30; }

.post-actions .btn { flex-shrink: 0; }

.action-spacer { flex: 1; }

/* ---------- 点赞 ---------- */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--text-dim);
  font-size: 13px;
  font-family: inherit;
  padding: 5px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s ease;
}

.like-btn:hover { border-color: #d87a5f; color: #d87a5f; }

.like-btn.liked {
  border-color: #d87a5f;
  background: #fbeae5;
  color: #d87a5f;
  font-weight: 700;
}

/* ---------- 管理模式 ---------- */
.admin-bar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.admin-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}

.admin-btn:hover { border-color: var(--accent); color: var(--accent); }
.admin-btn.danger:hover { border-color: #b0453a; color: #b0453a; }

.admin-btn.ok { color: #2e7d32; border-color: #2e7d32; background: #f0f7ef; }
.admin-btn.ok:hover { background: #e0eee0; border-color: #2e7d32; color: #2e7d32; }

.admin-btn.warn { color: #b26a00; border-color: #b26a00; background: #fdf6e9; }
.admin-btn.warn:hover { background: #faedcf; border-color: #b26a00; color: #b26a00; }

/* ---------- 操作日志 ---------- */
.logs-list { display: flex; flex-direction: column; gap: 10px; }

.log-item {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.log-action {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 9px;
  border-radius: 99px;
  flex-shrink: 0;
}

.log-action.edit { background: var(--accent-soft); color: var(--accent); }
.log-action.delete { background: #f6e2de; color: #b0453a; }
.log-action.sink { background: #ececec; color: #8a8a8a; }
.log-action.unsink { background: #e7eee1; color: #55703f; }
.log-action.review { background: #fdf0d1; color: #9a6b00; }
.log-action.hide { background: #f6e2de; color: #b0453a; }
.log-action.unhide { background: #e7eee1; color: #55703f; }

.log-detail {
  margin-top: 4px;
  color: #6b6355;
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 待审队列 ---------- */
.pending-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.pending-item {
  background: var(--card-soft);
  border: 1px solid #f0d9a0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.pending-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pending-title {
  margin-top: 4px;
  font-weight: 700;
  word-break: break-word;
}

.pending-content {
  margin-top: 4px;
  color: #6b6355;
  font-size: 12.5px;
  word-break: break-word;
  white-space: pre-wrap;
}

.pending-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* ---------- 身份修复 ---------- */
.field-form { display: flex; flex-direction: column; gap: 10px; }

.field-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.identity-result {
  margin-top: 10px;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-word;
}

.identity-result.ok { background: #f0f7ef; color: #2e7d32; border: 1px solid #2e7d32; }
.identity-result.err { background: #f6e2de; color: #b0453a; border: 1px solid #b0453a; }

/* ---------- 昵称弹窗：同名冲突提示 ---------- */
.name-tip {
  margin: 4px 0 8px;
  font-size: 12px;
  color: #b26a00;
  background: #fdf0d1;
  border: 1px solid #f0d9a0;
  border-radius: 8px;
  padding: 6px 10px;
}

.claim-btn { margin-top: 6px; }

/* ---------- 更新日志 ---------- */
.changelog-list {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.changelog-item {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.changelog-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.changelog-item ul {
  margin: 0;
  padding-left: 18px;
  color: #6b6355;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.empty-inline {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding: 20px 0;
}

/* ---------- 留言板 ---------- */
.wall-form {
  display: flex;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.wall-form input,
.wall-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--card-soft);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  padding: 8px 12px;
}

.wall-form textarea:focus { outline: none; border-color: var(--accent); background: var(--card); }

.wall-form #w-name { width: 130px; flex-shrink: 0; }
.wall-form #w-content {
  flex: 1;
  min-width: 0;
  resize: none;
  height: 42px;
  line-height: 24px;
  overflow-y: auto;
}

.wall-form .reply-badge { margin-top: 0; flex-shrink: 0; }

.wall-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wall-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
}

.wall-item b { color: var(--accent); }

.wall-item p { color: #5d574d; margin: 2px 0; white-space: pre-wrap; word-break: break-word; }

.wall-reply {
  margin-left: 26px;
  padding: 10px 14px;
  border-left: 2px solid var(--line-strong);
  background: var(--card-soft);
  box-shadow: none;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
}

footer a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 绑定需求（成果附属） ---------- */
.reply-box {
  margin-top: 10px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #6b6355;
}

.reply-box .reply-need { font-weight: 700; color: var(--accent); }

/* ---------- empty ---------- */
.empty {
  text-align: center;
  padding: 40px 12px;
  color: var(--text-dim);
  font-size: 13.5px;
  background: var(--card);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* ---------- modal ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(80, 66, 48, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
  animation: fade .18s ease;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  box-shadow: 0 16px 48px rgba(80, 66, 48, .25);
  animation: pop .2s ease;
}

.modal-small { max-width: 380px; }

@keyframes pop {
  from { opacity: 0; transform: scale(.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-head h2 { font-size: 17px; color: var(--accent); }

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-close:hover { color: var(--text); background: var(--card-soft); }

.field { margin-bottom: 13px; }

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.img-btn {
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  padding: 3px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s ease;
}

.img-btn:hover { border-color: var(--accent); color: var(--accent); }

.field-head .img-btn { margin-bottom: 5px; }

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.field b { color: var(--accent); }

.field input, .field textarea, .field select {
  width: 100%;
  background: var(--card-soft);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 9px 12px;
  transition: border-color .15s ease;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
}

.field textarea { resize: vertical; min-height: 80px; }

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.claim-target {
  background: var(--card-soft);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 14px;
  border-left: 3px solid var(--accent);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  z-index: 100;
  animation: rise .25s ease;
}

/* ---------- footer ---------- */
footer {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .columns { grid-template-columns: 1fr; gap: 36px; }
  .post-list { display: block; }
  .masonry-col + .masonry-col { margin-left: 0; }
  .top-row { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .header-inner { padding: 14px 18px; }
  main { padding: 16px; }
}
