/* ═══════════════════════════════════════════
   等待墙 — 贴纸墙 v3
   ═══════════════════════════════════════════ */

.post-form {
  margin-bottom: var(--space-xl);
  position: relative;
}

.post-form textarea {
  min-height: 80px;
}

.form-hint-center {
  text-align: center;
  margin-top: var(--space-sm);
}

.form-hint-center a {
  color: var(--seal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast);
}

.form-hint-center a:hover {
  border-bottom-color: var(--seal);
}

/* ── 贴纸墙 ── */
.sticky-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  align-items: start;   /* 防止同行卡片被拉伸到等高，保持自然错落 */
}

.sticky-note {
  background: var(--paper-white);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;    /* 统一下限，避免过短卡片显得破碎 */
  transition: box-shadow var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
  animation: revealIn var(--dur-slow) var(--ease-enter) both;
}

/* 轻微倾斜 */
.sticky-note:nth-child(odd) { transform: rotate(-0.8deg); }
.sticky-note:nth-child(3n) { transform: rotate(0.6deg); }
.sticky-note:nth-child(5n+1) { transform: rotate(-0.4deg); }

.sticky-note:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) rotate(0deg);
}

.sticky-note .note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--hairline);
}

.sticky-note .note-author {
  font-size: 0.84rem;
  color: var(--seal);
  font-weight: 400;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-note .note-author .icon {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.sticky-note .note-date {
  font-size: 0.74rem;
  color: var(--ink-fade);
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-note .note-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--space-md);
  flex: 1;
}

.sticky-note .note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--ink-fade);
}

.sticky-note .note-target {
  color: var(--seal);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sticky-note .note-target .icon {
  width: 0.95em;
  height: 0.95em;
}

.sticky-note .like-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--ink-fade);
  font-size: 0.84rem;
  font-family: inherit;
  padding: 6px 12px;
  min-height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}

.sticky-note .like-btn .icon {
  width: 1em;
  height: 1em;
}

.sticky-note .like-btn:hover {
  color: var(--seal);
  background: var(--seal-glow);
  border-color: rgba(184,73,42,0.2);
}

.sticky-note .like-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.sticky-note .note-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hairline);
}

/* ── 移动端 ── */
@media (max-width: 640px) {
  .sticky-wall {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* 移动端取消倾斜，避免视觉噪音 */
  .sticky-note,
  .sticky-note:nth-child(odd),
  .sticky-note:nth-child(3n),
  .sticky-note:nth-child(5n+1) {
    transform: none;
  }

  .sticky-note:hover {
    transform: none;
  }
}
