/* ============================================================
   推特动态的样式（配合 assets/twitter.js）
   墨鲸，2026-12-01
   ============================================================ */

/* 推文条目：在原有 .note 的网格基础上，允许正文换行 */
.note-tweet .note-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* 标题做成链接，悬停加下划线 */
.note-tweet .note-title {
  font-size: .96rem;
  font-weight: 600;
  color: #2E2A24;
  text-decoration: none;
  transition: color 180ms cubic-bezier(.22, 1, .36, 1);
}

.note-tweet .note-title:hover {
  color: #2F7396;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 正文摘要 */
.note-tweet .note-sum {
  font-size: .86rem;
  line-height: 1.65;
  color: #6F6455;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 图片 ---------- */
.note-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.note-img-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(140, 120, 90, .18);
  line-height: 0;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1),
              box-shadow 180ms cubic-bezier(.22, 1, .36, 1);
}

.note-img-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(90, 72, 48, .5);
}

.note-img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  display: block;
  background: rgba(140, 120, 90, .08);
}

/* ---------- 引推 ---------- */
.note-quote {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  padding: 8px 12px;
  border-left: 2px solid rgba(198, 116, 96, .45);
  background: rgba(198, 168, 120, .10);
  border-radius: 0 8px 8px 0;
}

.note-quote-author {
  font-size: .76rem;
  color: #A08A6E;
  letter-spacing: .02em;
}

.note-quote-text {
  font-size: .82rem;
  line-height: 1.55;
  color: #6F6455;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 底部「去 X 看全部」 ---------- */
.notes-more {
  margin-top: 18px;
  text-align: right;
}

.notes-more a {
  display: inline-block;
  font-size: .86rem;
  color: #8A8070;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 120, 90, .22);
  transition: color 180ms cubic-bezier(.22, 1, .36, 1),
              background-color 180ms cubic-bezier(.22, 1, .36, 1),
              border-color 180ms cubic-bezier(.22, 1, .36, 1);
}

.notes-more a:hover {
  color: #2E2A24;
  background: rgba(198, 168, 120, .14);
  border-color: rgba(140, 120, 90, .38);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 640px) {
  .note-img {
    width: 104px;
    height: 104px;
  }
  .notes-more {
    text-align: center;
  }
}

/* 系统开了减少动效就把悬停位移关掉 */
@media (prefers-reduced-motion: reduce) {
  .note-img-link:hover {
    transform: none;
  }
}
