/* ============================================================
   103 纪事 · 页面样式
   沿用全站玻璃令牌(--glass-surface / --glass-brd / --glass-rim),
   深浅两套主题自动适配,颜色过渡统一 0.6s
   ============================================================ */

.story-wrap { max-width: 820px; margin: 0 auto; }

/* ---------- 发帖卡 ---------- */
.composer {
  position: relative;
  padding: 24px 24px 20px;
  border-radius: 24px;
  margin-bottom: 38px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-rim);
  transition: background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

/* 发帖框顶部:显示登录的是谁 */
.composer-me {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.6s ease;
}
.composer-face { flex: none; display: block; }
.composer-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.composer-sig {
  font-size: 0.74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.6s ease;
}
.composer-center {
  margin-left: auto;
  flex: none;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  transition: color 0.3s ease;
}
.composer-center:hover { color: var(--gold-2); }

/* 没登录时挡在发帖框位置上的提示 */
.login-gate {
  padding: 30px 26px;
  border-radius: 24px;
  margin-bottom: 38px;
  text-align: center;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-rim);
  transition: background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}
.login-gate[hidden] { display: none; }
.gate-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 4px;
  color: var(--gold);
  transition: color 0.6s ease;
}
.gate-sub {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--muted);
  transition: color 0.6s ease;
}
.gate-btn {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 2px;
  color: #0b0f1a;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  border-radius: 999px;
  padding: 11px 28px;
  box-shadow: 0 8px 22px rgba(240, 185, 11, 0.24);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.gate-btn:hover { transform: translateY(-1px); }

.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
  transition: color 0.6s ease;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: background-color 0.4s ease, border-color 0.3s ease, color 0.6s ease;
}
.field textarea {
  min-height: 120px;
  line-height: 1.75;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

/* ---------- 选图 ---------- */
.picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 2px 0 4px;
}
.pick-btn {
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 1px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background-color 0.4s ease, color 0.6s ease;
}
.pick-btn:hover:not(:disabled) { transform: translateY(-1px); }
.pick-btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }
.pick-hint {
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  transition: color 0.6s ease;
}

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.thumbs:empty { display: none; }
.thumb {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-brd);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.thumb.busy::after {
  content: "压缩中";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

/* ---------- 底部一行:提示 + 发布 ---------- */
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.form-msg {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.4s ease;
}
.form-msg.err { color: #ff7a7a; }
.form-msg.ok { color: var(--gold); }

.submit-btn {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-indent: 3px;
  color: #0b0f1a;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  border: none;
  border-radius: 999px;
  padding: 11px 30px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(240, 185, 11, 0.24);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
.submit-btn:hover:not(:disabled) { transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- 帖子列表 ---------- */
.story-list { display: flex; flex-direction: column; gap: 18px; }

.story-card {
  padding: 20px 22px 16px;
  border-radius: 20px;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-rim);
  /* 入场只淡入(不做位移):卡片带 backdrop-filter,一 translate 每帧都要重算背景模糊,
     列表一次铺十几张时必掉帧 */
  animation: card-fade 0.45s ease-out both;
  transition: background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

/* 从通知点进来时给目标那条描一圈金,好一眼找到 */
.story-card.is-focused {
  border-color: var(--gold);
  box-shadow: var(--glass-rim), 0 0 0 3px var(--gold-soft), 0 0 30px var(--gold-line);
}

/* 置顶的帖子:金色描边 + 右上角一枚小章 */
.story-card.is-pinned { border-color: var(--gold-line); }
.story-pin {
  display: inline-block;
  margin-bottom: 10px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0f1a;
  font-size: 0.66rem;
  letter-spacing: 1px;
}

.story-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.story-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-brd);
  transition: border-color 0.6s ease;
}
.story-avatar-fallback {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: #0b0f1a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
.story-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 头像 / 名字可以点进个人主页:看着还是原来的样子,别变成一条蓝链接 */
.story-head a { color: inherit; text-decoration: none; }
.story-face-link { flex: none; display: block; }
.story-face-link:hover .story-avatar { border-color: var(--gold-line); }
.story-name-link { display: block; }
.story-name-link:hover .story-name { color: var(--gold-2); }
.story-name {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  transition: color 0.6s ease;
}
.story-meta {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  transition: color 0.6s ease;
}

/* 身份徽章:服主是实心金,管理员是描边金 */
.role-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 1px;
  vertical-align: middle;
}
.role-badge.owner {
  color: #0b0f1a;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 14px rgba(240, 185, 11, 0.45);
}
.role-badge.admin {
  color: var(--gold);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
}

/* 「仅本班」标记:中性描边,不抢服主金徽章的戏 */
.vis-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 1px;
  vertical-align: middle;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--chip);
}

/* ---------- 发帖时选「谁可以看」 ---------- */
.vis-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.vis-pick .vis-lb {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.vis-opt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--chip);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}
.vis-opt:hover { color: var(--text); }
.vis-opt.active {
  color: #0b0f1a;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  border-color: transparent;
}

.story-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  transition: color 0.6s ease;
}

.story-imgs {
  display: grid;
  /* auto-fit:只有一两张图时把剩下的格子收掉,让照片铺满整行,看得清 */
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.story-imgs img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--glass-brd);
  cursor: zoom-in;
}

.story-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}
.story-reply {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}
.story-reply:hover { color: var(--gold-2); }
.story-del {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}
.story-del:hover { color: #ff7a7a; }
.story-edit {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}
.story-edit:hover { color: var(--gold-2); }
.story-pin-btn {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s ease;
}
.story-pin-btn:hover { color: var(--gold); }

/* ---------- 回复 @某某 ---------- */
.story-to {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.6s ease;
}
.story-to b { color: var(--gold); font-weight: 700; }

/* 回复区:平铺一层(参考 B 站),不再一层层往右缩 */
.story-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  transition: border-color 0.6s ease;
}

/* 嵌在回复里的卡片:轻一点、紧一点,不然一层层玻璃叠着太闷 */
.story-replies .story-card {
  padding: 14px 16px 10px;
  border-radius: 16px;
  background: var(--chip);
  box-shadow: none;
  animation: none;
}

.story-more {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
.story-more:hover { color: var(--gold-2); }

/* 正在回复的那张卡描个金边,方便对上号 */
.story-card.is-replying {
  border-color: var(--gold-line);
  box-shadow: var(--glass-rim), 0 0 0 3px var(--gold-soft);
}

/* ---------- 就地展开的回复框(B 站那种,点「回复」在这条下面弹出来) ---------- */
.reply-slot:empty { display: none; }

.inline-reply {
  margin-top: 12px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}
.inline-to {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.6s ease;
}
.inline-to b { color: var(--gold); font-weight: 700; }
.inline-x {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}
.inline-x:hover { color: #ff7a7a; }

.inline-reply textarea {
  width: 100%;
  min-height: 64px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: background-color 0.4s ease, border-color 0.3s ease, color 0.6s ease;
}
.inline-reply textarea:focus { border-color: var(--gold-line); }
.inline-reply textarea::placeholder { color: var(--faint); }

.inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.inline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.inline-foot .form-msg { flex: 1; }

/* 小一号的按钮:回复框里用,不抢正文的视觉 */
.pick-btn.sm {
  font-size: 0.74rem;
  padding: 6px 13px;
}
.submit-btn.sm {
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 8px 20px;
  box-shadow: 0 6px 16px rgba(240, 185, 11, 0.2);
}
.thumbs.sm .thumb { width: 58px; height: 58px; border-radius: 10px; }
.thumbs.sm .thumb button { width: 17px; height: 17px; font-size: 11px; }

/* ---------- 一句轻提示 ---------- */
.story-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 400;
  transform: translate(-50%, 14px);
  max-width: 82vw;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-rim);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.story-toast.in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 空状态 / 未接通提示 ---------- */
.notice {
  padding: 30px 26px;
  border-radius: 20px;
  text-align: center;
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-rim);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
  transition: background-color 0.6s ease, border-color 0.6s ease,
    box-shadow 0.6s ease, color 0.6s ease;
}
.notice b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 4px;
  color: var(--gold);
}

/* ---------- 翻页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.pager button {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--text);
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-rim);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease, color 0.6s ease;
}
.pager button:hover:not(:disabled) { transform: translateY(-1px); }
.pager button:disabled { opacity: 0.32; cursor: not-allowed; transform: none; }
.pager span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.6s ease;
}

/* ---------- 点图看大图 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(4, 7, 14, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* ---------- 底部鸣谢(与公告页一致) ---------- */
.thanks { margin-top: 40px; text-align: center; }
.thanks-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 8px;
  text-indent: 8px;
  color: var(--gold);
  transition: color 0.6s ease;
}
.thanks-title::before,
.thanks-title::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin: 0 14px;
  background: var(--gold-line);
  vertical-align: middle;
}
.credit {
  margin-top: 18px;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--muted);
  opacity: 0.42;
  transition: color 0.6s ease;
}

/* ---------- 首页留言板板块 ---------- */
/* 板块外壳复用首页 .showcase / .showcase-head,这里只把内容和标题行接起来 */
.board-section .showcase-head { margin-bottom: 34px; }
.board-section .story-wrap { margin: 0 auto; }

/* ============================================================
   小红书式卡片流(feed=cards)
   首页不再整篇铺正文,只留封面 / 标题 / 发帖人 / 点赞数,
   点进 post.html 才看正文、多图和评论。
   ============================================================ */

.story-list.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
/* 「读取中」/「还没有人写」这类提示占满整行,别挤在左边半格里 */
.card-grid > .notice { grid-column: 1 / -1; }

/* 卡片本体:比列表版更瘦,内边距压到最小,让封面占满卡宽 */
.xhs-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  /* 卡片多,入场只做淡入 + 极轻上浮,不再每条都重算模糊 */
  animation: card-in 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
/* 逐条错开一点点,看起来像一排一起冒出来,而不是同时闪一下 */
.xhs-card:nth-child(4n + 2) { animation-delay: 0.05s; }
.xhs-card:nth-child(4n + 3) { animation-delay: 0.1s; }
.xhs-card:nth-child(4n + 4) { animation-delay: 0.15s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 系统要求减少动效时,直接显示 */
@media (prefers-reduced-motion: reduce) {
  .xhs-card { animation: none; }
}

/* 铺满整张卡的可点区域:真链接,右键新标签也能开 */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* 封面:竖版 3:4,和手机上的小红书比例一致 */
.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--glass-bg);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.xhs-card:hover .card-cover img { transform: scale(1.04); }

/* 没有配图的纯文字帖:用一层柔和渐变当封面,把开头几个字放大摆进去 */
.card-noimg {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 25% 20%, var(--gold-soft), transparent 60%),
    linear-gradient(150deg, var(--glass-surface), var(--glass-bg));
}
.card-noimg span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text);
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 右上角「N 图」小角标 */
.card-count {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.5px;
  /* 点在角标上也照样打开这条,别把点击吃掉 */
  pointer-events: none;
}

.xhs-card .card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.card-author .story-avatar,
.card-author .story-avatar-fallback { width: 20px; height: 20px; font-size: 0.66rem; }
.card-author .story-name { font-size: 0.76rem; }
.card-author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 点赞胶囊:卡片右下角一个,详情页动作条左边一个,样式共用 */
.like-pill {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  color: var(--muted);
  font-size: 0.74rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease,
    transform 0.18s ease;
}
.like-pill:hover { color: var(--gold-2); border-color: var(--gold-line); }
.like-pill:active { transform: scale(0.94); }
.like-pill.on {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-soft);
}
.like-pill i { font-style: normal; font-size: 0.86rem; line-height: 1; }
/* 点下去的一瞬间弹一下,给个「收到了」的手感 */
.like-pill.bump { animation: like-bump 0.36s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes like-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
/* 详情页那枚靠左排,和右边的回复/编辑/删除分开 */
.story-actions .like-pill { margin-right: auto; }

/* 置顶章挪到封面左上角,不占正文位置 */
.xhs-card .story-pin {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

/* ---------- 在线小绿点 ---------- */
.face-wrap { position: relative; display: inline-flex; flex: none; }
.on-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #37d67a;
  border: 2px solid var(--bg0, #070b14);
  box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.6);
  animation: on-pulse 2.4s ease-out infinite;
}
.card-author .on-dot { width: 8px; height: 8px; }
@keyframes on-pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(55, 214, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .on-dot { animation: none; }
}

/* ---------- 帖子详情页(post.html) ---------- */
.post-detail { max-width: 820px; margin: 0 auto; }
.post-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.post-back:hover { color: var(--gold-2); }
/* 详情页正文放大一点,读起来更像在看一篇笔记 */
.post-detail .story-body { font-size: 1.02rem; line-height: 1.85; }
.post-detail .story-imgs img { border-radius: 14px; }
.post-detail .story-replies { margin-top: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .composer { padding: 20px 18px 16px; border-radius: 20px; }
  .composer-foot { flex-direction: column-reverse; align-items: stretch; }
  .composer-foot .submit-btn { width: 100%; }
  .story-card { padding: 18px 16px 14px; }
  .story-imgs { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .pager { gap: 10px; }
  .pager button { padding: 9px 14px; letter-spacing: 0.5px; }
  .story-replies .story-card { padding: 12px 13px 8px; }
  .inline-foot { flex-direction: column-reverse; align-items: stretch; }
  .inline-foot .submit-btn.sm { width: 100%; }
  /* 手机上卡片流依然是两列,和 App 里一致,只是把字再收一点 */
  .story-list.card-grid { gap: 10px; }
  .xhs-card { border-radius: 14px; }
  .xhs-card .card-info { padding: 8px 9px 10px; }
  .card-title { font-size: 0.82rem; }
  .like-pill { padding: 2px 8px; font-size: 0.7rem; }
}
