/* ============================================================
   极致·说说 前台样式 v2 —— X.com 风格时间线
   流式信息流：细分隔线、圆形头像、图标操作栏、hover 反馈。
   深色模式跟随系统（prefers-color-scheme）。
   ============================================================ */
:root {
  --jz52-x-bg: #ffffff;
  --jz52-x-card: #ffffff;
  --jz52-x-bg-hover: #f7f9f9;
  --jz52-x-border: #eff3f4;
  --jz52-x-text: #0f1419;
  --jz52-x-muted: #536471;
  --jz52-x-muted2: #8b98a5;
  --jz52-x-accent: #1d9bf0;
  --jz52-x-accent-bg: rgba(29, 155, 240, 0.12);
  --jz52-x-heart: #f91880;
  --jz52-x-heart-bg: rgba(249, 24, 128, 0.12);
  --jz52-x-green: #00ba7c;
  --jz52-x-amber: #ffd400;
  --jz52-x-amber-bg: rgba(255, 212, 0, 0.2);
  --jz52-x-red: #f4212e;
  --jz52-x-red-bg: rgba(244, 33, 46, 0.12);
  --jz52-x-avatar1: #8b5cf6;
  --jz52-x-avatar2: #60a5fa;
  --jz52-x-shadow: rgba(101, 119, 134, 0.2);
  --jz52-x-pop-bg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --jz52-x-bg: #000000;
    --jz52-x-card: #000000;
    --jz52-x-bg-hover: #0f1419;
    --jz52-x-border: #2f3336;
    --jz52-x-text: #e7e9ea;
    --jz52-x-muted: #71767b;
    --jz52-x-muted2: #4d5259;
    --jz52-x-accent: #1d9bf0;
    --jz52-x-accent-bg: rgba(29, 155, 240, 0.14);
    --jz52-x-heart: #f91880;
    --jz52-x-heart-bg: rgba(249, 24, 128, 0.14);
    --jz52-x-amber: #ffd400;
    --jz52-x-amber-bg: rgba(255, 212, 0, 0.2);
    --jz52-x-shadow: rgba(0, 0, 0, 0.4);
    --jz52-x-pop-bg: #1e2733;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* background: var(--jz52-x-bg); */
  color: var(--jz52-x-text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.jz52-shuoshuo-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.jz52-shuoshuo-main { padding: 0 0 48px; }

/* ============ 顶部 ============ */
.jz52-shuoshuo-top {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--jz52-x-bg);
  border-bottom: 1px solid var(--jz52-x-border);
}
.jz52-shuoshuo-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.jz52-shuoshuo-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.jz52-shuoshuo-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jz52-shuoshuo-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jz52-x-text);
  padding: 6px 10px 6px 4px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.jz52-shuoshuo-back:hover { background: var(--jz52-x-bg-hover); }
.jz52-shuoshuo-back svg { width: 20px; height: 20px; fill: currentColor; }
.jz52-shuoshuo-rss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--jz52-x-muted);
  transition: all 0.15s ease;
}
.jz52-shuoshuo-rss svg { width: 18px; height: 18px; fill: currentColor; }
.jz52-shuoshuo-rss:hover {
  background: var(--jz52-x-accent-bg);
  color: var(--jz52-x-accent);
}

/* ============ 标签筛选条（横滚 pill） ============ */
.jz52-shuoshuo-tags {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--jz52-x-border);
  -webkit-overflow-scrolling: touch;
}
.jz52-shuoshuo-tags::-webkit-scrollbar { display: none; }
.jz52-shuoshuo-tag {
  flex: none;
  padding: 6px 14px;
  border: 1px solid var(--jz52-x-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--jz52-x-muted);
  background: var(--jz52-x-bg);
  transition: all 0.15s ease;
}
.jz52-shuoshuo-tag:hover { background: var(--jz52-x-bg-hover); }
.jz52-shuoshuo-tag.is-active {
  background: var(--jz52-x-text);
  border-color: var(--jz52-x-text);
  color: var(--jz52-x-bg);
  font-weight: 600;
}

/* ============ 前台发布框（X 风格，仅管理员） ============ */
.jz52-shuoshuo-composer {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--jz52-x-border);
}
.jz52-shuoshuo-composer-avatar { flex: none; width: 48px; }
.jz52-shuoshuo-composer-avatar img,
.jz52-shuoshuo-composer-avatar .jz52-shuoshuo-avatar-text {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.jz52-shuoshuo-composer-avatar .jz52-shuoshuo-avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #1d9bf0;
}
.jz52-shuoshuo-composer-main { flex: 1; min-width: 0; position: relative; }
.jz52-shuoshuo-composer-text {
  width: 100%;
  min-height: 56px;
  max-height: 240px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--jz52-x-text);
  transition: min-height 0.25s ease, max-height 0.25s ease, padding 0.25s ease;
}
.jz52-shuoshuo-composer-text::placeholder { color: var(--jz52-x-muted); }

/* X 风格：收起/展开仅作用于输入框高度，工具栏与发布按钮常驻 */
/* 分隔线只在展开后显示；用 border-color 过渡实现淡入，避免线与高度动画不同步闪烁 */
.jz52-shuoshuo-composer.is-collapsed .jz52-shuoshuo-composer-text {
  min-height: 40px;
  max-height: 40px;
  overflow: hidden;
  /* padding: 2px 0; */
}
.jz52-shuoshuo-composer.is-expanded .jz52-shuoshuo-composer-text {
  min-height: 120px;
  padding: 8px 0;
}
.jz52-shuoshuo-composer-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.jz52-shuoshuo-composer.is-expanded .jz52-shuoshuo-composer-foot {
  border-top-color: var(--jz52-x-border);
}
.jz52-shuoshuo-composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}
.jz52-ss-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--jz52-x-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.jz52-ss-tool-btn:hover { background: rgba(29, 155, 240, 0.1); color: var(--jz52-x-accent); }
.jz52-shuoshuo-composer-count {
  font-size: 13px;
  color: var(--jz52-x-muted);
}
.jz52-shuoshuo-composer-btn {
  min-width: 84px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #0f1419;
  cursor: pointer;
  transition: background 0.15s ease;
}
.jz52-shuoshuo-composer-btn:hover:not(:disabled) { background: #1a8cd8; }
.jz52-shuoshuo-composer-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 图片预览区（textarea 与工具栏之间） */
.jz52-shuoshuo-composer-preview {
  display: none;
  gap: 8px;
  padding: 8px 0 4px;
}
.jz52-shuoshuo-composer-preview.has-imgs { display: flex; flex-wrap: wrap; }
.jz52-ss-preview-item {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
}
.jz52-ss-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jz52-ss-preview-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jz52-ss-preview-del:hover { background: rgba(0, 0, 0, 0.85); }

/* 表情面板（X 风格暗色浮层，定位在发布框下方） */
.jz52-shuoshuo-composer-emoji {
  position: absolute;
  left: 48px;
  top: 100%;
  z-index: 30;
  display: none;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  margin-top: 8px;
  background: var(--jz52-x-pop-bg, #1e2733);
  border: 1px solid var(--jz52-x-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.jz52-ss-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.jz52-ss-emoji-item {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  padding: 4px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.jz52-ss-emoji-item:hover { background: var(--jz52-x-bg-hover); }

/* ============ 信息流 ============ */
.jz52-shuoshuo-feed { border-bottom: 1px solid var(--jz52-x-border); }
.jz52-shuoshuo-post {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--jz52-x-border);
  transition: background 0.15s ease;
}
.jz52-shuoshuo-post:hover { background: var(--jz52-x-bg-hover); }
.jz52-shuoshuo-post-avatar { flex: none; width: 48px; }
.jz52-shuoshuo-post-avatar img,
.jz52-shuoshuo-post-avatar .jz52-shuoshuo-avatar-text {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.jz52-shuoshuo-avatar-text {
  background: linear-gradient(135deg, var(--jz52-x-avatar2), var(--jz52-x-avatar1));
  color: #fff;
  text-align: center;
  line-height: 48px;
  font-size: 18px;
  font-weight: 700;
  user-select: none;
}
.jz52-shuoshuo-post-main { flex: 1; min-width: 0; }
.jz52-shuoshuo-post-head {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.jz52-shuoshuo-post-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--jz52-x-text);
  white-space: nowrap;
}
.jz52-shuoshuo-post-name:hover { text-decoration: underline; }
.jz52-shuoshuo-time {
  font-size: 15px;
  color: var(--jz52-x-muted);
  white-space: nowrap;
}
.jz52-shuoshuo-time:hover { color: var(--jz52-x-accent); }
.jz52-shuoshuo-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--jz52-x-accent-bg);
  color: var(--jz52-x-accent);
  white-space: nowrap;
}
.jz52-shuoshuo-badge-warn { background: var(--jz52-x-amber-bg); color: var(--jz52-x-amber); }
.jz52-shuoshuo-badge-top { background: var(--jz52-x-accent-bg); color: var(--jz52-x-accent); }

/* ============ 正文 ============ */
.jz52-shuoshuo-content {
  font-size: 15px;
  line-height: 1.55;
  color: var(--jz52-x-text);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.jz52-shuoshuo-content a {
  color: var(--jz52-x-accent);
  word-break: break-all;
}
.jz52-shuoshuo-content a:hover { text-decoration: underline; }

/* ============ 媒体（X 风格 16px 大圆角，多图 2 列） ============ */
.jz52-shuoshuo-media {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.jz52-shuoshuo-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--jz52-x-border);
}
.jz52-shuoshuo-media img:only-child { 
  grid-column: 1 / -1; 
  width: 70%;
}
.jz52-shuoshuo-media img:only-child.yesh { 
  width: 50%;
  max-height: none;
}
.jz52-shuoshuo-media video,
.jz52-shuoshuo-media audio {
  display: block;
  width: 100%;
  grid-column: 1 / -1;
  border-radius: 16px;
  margin: 0;
}
.jz52-shuoshuo-media video { background: #000; }

/* ============ 视频播放器（ArtPlayer） ============ */
.jz52-shuoshuo-media .jz52-ss-video {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  max-width: var(--jz52-ss-video-maxw, 100%);
  /* margin: 0 auto; */
  aspect-ratio: var(--jz52-ss-video-ratio, 16 / 9);
  min-height: 200px;
  background: #000;
  border: 1px solid var(--jz52-x-border);
  border-radius: 16px;
  overflow: hidden;
}
.jz52-ss-video .art-video-player { border-radius: 16px; }
.jz52-ss-video .art-video-player .art-video { object-fit: contain; }
/* ============ X 风格控制栏（黑底白图标，hover 灰圆底） ============ */
.jz52-ss-video .art-icon { color: #e7e9ea; }
.jz52-ss-video .art-icon svg { width: 20px; height: 20px; }
.jz52-ss-video .art-control { background: transparent !important; }
.jz52-ss-video .art-control:hover { background: rgba(255, 255, 255, 0.12) !important; }
.jz52-ss-video .art-control-icon { width: 34px !important; height: 34px !important; }
.jz52-ss-video .art-control-progress-inner,
.jz52-ss-video .art-control-volume-inner {
  background: #e7e9ea !important;
}
.jz52-ss-video .art-control-progress-time {
  background: #000 !important;
  color: #e7e9ea !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* 提示气泡：黑底白字 */
.jz52-ss-video [class*="hint"]::before { border-top-color: #000 !important; }
.jz52-ss-video [class*="hint"]::after {
  background: #000 !important;
  color: #e7e9ea !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* 设置面板：X 暗色 */
.jz52-ss-video .art-setting {
  background: rgba(0, 0, 0, 0.92) !important;
  color: #e7e9ea !important;
}
.jz52-ss-video .art-setting .art-setting-radio input + span {
  color: rgba(231, 233, 234, 0.75) !important;
}
.jz52-ss-video .art-setting .art-setting-radio input:checked + span {
  color: #e7e9ea !important;
  background: rgba(255, 255, 255, 0.12) !important;
}
/* 播放/暂停大按钮（中央状态层）：X 风格实心圆底 + 白色三角 */
.jz52-ss-video .art-icon-state {
  width: 62px !important;
  height: 62px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border-radius: 50%;
}
.jz52-ss-video .art-icon-state svg { width: 50px; height: 50px; }
.jz52-ss-video .art-icon-state path { fill: #fff; }
/* 移动端保持 16:9 观感（ArtPlayer autoSize 会在元数据就绪后微调） */
@media (max-width: 640px) {
  .jz52-shuoshuo-media .jz52-ss-video { min-height: 150px; }
}

/* ============ 音频播放器（X 风格：封面 + 标题 + 进度条） ============ */
.jz52-ss-audio {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--jz52-x-border);
  background: var(--jz52-x-card);
}
.jz52-ss-audio-cover {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8edf2, #d4dbe3);
}
.jz52-ss-audio-cover img {
  border-radius: 0
}
.jz52-ss-audio-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
}
.jz52-ss-audio-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  color: #9aa5b1;
}
.jz52-ss-audio-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.jz52-ss-audio:hover .jz52-ss-audio-play,
.jz52-ss-audio.is-playing .jz52-ss-audio-play { opacity: 1; }
.jz52-ss-audio-ico-pause { display: none; }
.jz52-ss-audio.is-playing .jz52-ss-audio-ico-play { display: none; }
.jz52-ss-audio.is-playing .jz52-ss-audio-ico-pause { display: block; }
.jz52-ss-audio-info {
  flex: 1;
  min-width: 0;
}
.jz52-ss-audio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--jz52-x-text);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jz52-ss-audio-bar {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: var(--jz52-x-border);
  cursor: pointer;
  overflow: visible;
}
.jz52-ss-audio-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--jz52-x-accent), #66c1ff);
  box-shadow: 0 0 6px rgba(29, 155, 240, 0.55);
  transition: width 0.15s linear;
}
.jz52-ss-audio-bar-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--jz52-x-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(29, 155, 240, 0.5), 0 1px 3px rgba(0, 0, 0, 0.2);
}
.jz52-ss-audio-time {
  font-size: 12px;
  color: var(--jz52-x-muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .jz52-ss-audio-cover { width: 52px; height: 52px; }
}

/* ============ 附加 HTML（嵌入内容原样展示） ============ */
.jz52-shuoshuo-extrahtml {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jz52-shuoshuo-extrahtml-item {
  overflow: hidden;
}
.jz52-shuoshuo-extrahtml-item iframe,
.jz52-shuoshuo-extrahtml-item video {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 10px;
}
.jz52-shuoshuo-extrahtml-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ============ 操作栏（X 风格图标 + 数字） ============ */
.jz52-shuoshuo-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.jz52-shuoshuo-post-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.jz52-shuoshuo-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--jz52-x-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.jz52-shuoshuo-act svg { width: 17px; height: 17px; fill: currentColor; stroke-width: 1.8; }
.jz52-shuoshuo-views:hover { background: var(--jz52-x-accent-bg); color: var(--jz52-x-accent); }
.jz52-shuoshuo-like:hover,
.jz52-shuoshuo-like.is-liked { background: var(--jz52-x-heart-bg); color: var(--jz52-x-heart); }
.jz52-shuoshuo-like.is-liked svg { fill: currentColor; }
.jz52-shuoshuo-like.is-loading { opacity: 0.5; cursor: default; }
.jz52-shuoshuo-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jz52-shuoshuo-item-tags a {
  font-size: 13px;
  color: var(--jz52-x-accent);
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.jz52-shuoshuo-item-tags a:hover { background: var(--jz52-x-accent-bg); }

/* ============ 空态 / 单页 ============ */
.jz52-shuoshuo-empty {
  padding: 72px 16px;
  text-align: center;
  color: var(--jz52-x-muted2);
  font-size: 15px;
  border-bottom: 1px solid var(--jz52-x-border);
}
.jz52-shuoshuo-item-single {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--jz52-x-border);
}
.jz52-shuoshuo-backlink {
  text-align: center;
  margin: 24px 0 8px;
}
.jz52-shuoshuo-backlink a {
  display: inline-block;
  color: var(--jz52-x-accent);
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.jz52-shuoshuo-backlink a:hover { background: var(--jz52-x-accent-bg); }

/* ============ 分页（X 风格圆钮） ============ */
.jz52-shuoshuo-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 8px;
}
.jz52-shuoshuo-pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--jz52-x-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--jz52-x-muted);
  transition: all 0.15s ease;
}
.jz52-shuoshuo-pager a:hover {
  background: var(--jz52-x-accent-bg);
  border-color: var(--jz52-x-accent);
  color: var(--jz52-x-accent);
}
.jz52-shuoshuo-pager-now {
  font-size: 13px;
  color: var(--jz52-x-muted2);
  padding: 0 4px;
}

/* ============ 页脚 ============ */
.jz52-shuoshuo-foot {
  border-top: 1px solid var(--jz52-x-border);
  padding: 20px 16px;
  font-size: 13px;
  color: var(--jz52-x-muted2);
  text-align: center;
}
.jz52-shuoshuo-foot a { color: var(--jz52-x-muted); }
.jz52-shuoshuo-foot a:hover { color: var(--jz52-x-accent); }

/* ============ 响应式 ============ */
@media (max-width: 600px) {
  .jz52-shuoshuo-post { padding: 10px 12px; gap: 10px; }
  .jz52-shuoshuo-post-avatar,
  .jz52-shuoshuo-post-avatar img,
  .jz52-shuoshuo-post-avatar .jz52-shuoshuo-avatar-text {
    width: 40px;
    height: 40px;
  }
  .jz52-shuoshuo-avatar-text { line-height: 40px; font-size: 16px; }
  .jz52-shuoshuo-content { font-size: 15px; }
  .jz52-shuoshuo-item-single { padding: 12px; }
  .jz52-shuoshuo-post-actions { flex-wrap: wrap; }
}

/* ============ 操作栏留言图标（X 风格 hover 蓝） ============ */
.jz52-shuoshuo-comments:hover { background: var(--jz52-x-accent-bg); color: var(--jz52-x-accent); }

/* ============ 留言区（X.com 评论区） ============ */
.jz52-ss-comments {
  border-top: 1px solid var(--jz52-x-border);
  padding: 8px 16px 16px;
}
.jz52-ss-comments-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 14px 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--jz52-x-text);
  border-bottom: 1px solid var(--jz52-x-border);
  letter-spacing: -0.2px;
}
.jz52-ss-comments-count {
  color: var(--jz52-x-muted);
  font-weight: 400;
  font-size: 15px;
}
.jz52-ss-comments-list { margin-top: 0; }
.jz52-ss-cmt-empty {
  color: var(--jz52-x-muted2);
  font-size: 14px;
  padding: 32px 0;
  text-align: center;
}

/* 单条留言：X 回复行（头像列 + 内容列，上下分隔线） */
.jz52-ss-comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--jz52-x-border);
}
.jz52-ss-comment:last-child { border-bottom: 0; }
.jz52-ss-comment-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jz52-ss-cmt-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  position: absolute;
  visibility: hidden;
  width: 0;
}
.jz52-ss-comment-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--jz52-x-bg-hover);
}
.jz52-ss-comment-avatar.jz52-ss-avatar-text {
  background: #0f1419;
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 15px;
  font-weight: 700;
  user-select: none;
}
.jz52-ss-comment-main { flex: 1; min-width: 0; }
.jz52-ss-comment-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.jz52-ss-comment-head a {
  font-size: 14px;
  font-weight: 700;
  color: var(--jz52-x-text);
}
.jz52-ss-comment-head a:hover { text-decoration: underline; }
.jz52-ss-comment-head > span:not(.jz52-ss-cmt-badge) {
  font-size: 14px;
  font-weight: 700;
  color: var(--jz52-x-text);
}
.jz52-ss-cmt-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--jz52-x-amber-bg);
  color: var(--jz52-x-amber);
}
.jz52-ss-comment-content {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--jz52-x-text);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.jz52-ss-comment-content a {
  color: var(--jz52-x-accent);
  word-break: break-all;
}
.jz52-ss-comment-content a:hover { text-decoration: underline; }
.jz52-ss-comment-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 13px;
}
.jz52-ss-cmt-time { color: var(--jz52-x-muted); font-size: 13px; }
.jz52-ss-cmt-floor {
  color: var(--jz52-x-muted2);
  font-size: 12px;
  background: var(--jz52-x-bg-hover);
  border-radius: 999px;
  padding: 1px 8px;
}
.jz52-ss-cmt-reply {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--jz52-x-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.15s ease;
  margin-left: auto;
}
.jz52-ss-cmt-reply svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.jz52-ss-cmt-reply:hover {
  background: var(--jz52-x-accent-bg);
  color: var(--jz52-x-accent);
}

/* 楼中楼：X 对话引导线（缩进 + 左侧细线） */
.jz52-ss-comment-children {
  flex-basis: 100%;
  padding-left: 18px;
  border-left: 2px solid var(--jz52-x-border);
  margin-top: 8px;
  min-width: 0;
}
.jz52-ss-comment-children .jz52-ss-comment { padding: 10px 0; }

/* 留言表单（X 发布框：圆角容器 + 聚焦高亮 + 圆角按钮） */
.jz52-ss-cmt-form {
  margin-top: 14px;
  border-top: 1px solid var(--jz52-x-border);
  padding-top: 14px;
}
.jz52-ss-cmt-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.jz52-ss-cmt-form-title { font-size: 16px; font-weight: 700; color: var(--jz52-x-text); }
.jz52-ss-cmt-cancel {
  font-size: 13px;
  color: var(--jz52-x-accent);
  padding: 4px 12px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.jz52-ss-cmt-cancel:hover { background: var(--jz52-x-accent-bg); }
.jz52-ss-cmt-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.jz52-ss-cmt-field { margin-bottom: 8px; }
.jz52-ss-cmt-field-wide { grid-column: 1 / -1; margin-bottom: 0; }
.jz52-ss-cmt-fields .jz52-ss-cmt-field { margin-bottom: 0; }
.jz52-ss-cmt-input,
.jz52-ss-cmt-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--jz52-x-border);
  border-radius: 10px;
  background: var(--jz52-x-bg);
  color: var(--jz52-x-text);
  font: 14px/1.5 inherit;
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.jz52-ss-cmt-input:focus,
.jz52-ss-cmt-textarea:focus {
  outline: none;
  border-color: var(--jz52-x-accent);
  box-shadow: 0 0 0 3px var(--jz52-x-accent-bg);
}
.jz52-ss-cmt-textarea {
  resize: vertical;
  min-height: 72px;
  border-radius: 14px;
  font-size: 15px;
}
.jz52-ss-cmt-input::placeholder,
.jz52-ss-cmt-textarea::placeholder { color: var(--jz52-x-muted2); }
.jz52-ss-cmt-submit { text-align: right; margin-top: 10px; }
.jz52-ss-cmt-btn {
  border: none;
  background: #0f1419;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.jz52-ss-cmt-btn:hover { background: var(--jz52-x-accent); filter: brightness(1.1); }
.jz52-ss-cmt-btn:disabled { opacity: 0.6; cursor: default; }
.jz52-ss-cmt-closed {
  color: var(--jz52-x-muted2);
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
  padding: 18px 0;
  border-top: 1px solid var(--jz52-x-border);
}

/* 移动端留言区微调 */
@media (max-width: 600px) {
  .jz52-ss-comments { padding: 12px; }
  .jz52-ss-comment { gap: 8px; }
  .jz52-ss-comment-body { gap: 8px; }
  .jz52-ss-comment-avatar { width: 36px; height: 36px; }
  .jz52-ss-comment-children { padding-left: 14px; }
  .jz52-ss-cmt-fields { grid-template-columns: 1fr; }
  .jz52-ss-cmt-reply { margin-left: auto; }
}

/* ===== 图片放大查看（X 模式 lightbox） ===== */
.jz52-shuoshuo-media .jz52-ss-img { cursor: zoom-in; }
.jz52-ss-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.jz52-ss-lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.jz52-ss-lightbox.is-open .jz52-ss-lightbox-mask { opacity: 1; }
.jz52-ss-lightbox-stage {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 48px;
}
.jz52-ss-lightbox-img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.jz52-ss-lightbox-img.is-img-cur {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.jz52-ss-lightbox-img.is-img-tmp {
  opacity: 0;
  transform: scale(0.96);
  z-index: 1;
}
.jz52-ss-lightbox.is-closing .jz52-ss-lightbox-img {
  opacity: 0;
  transform: scale(0.96);
}
.jz52-ss-lightbox-img.is-zoom {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.jz52-ss-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.jz52-ss-lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.jz52-ss-lightbox-prev,
.jz52-ss-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.jz52-ss-lightbox-prev { left: 16px; }
.jz52-ss-lightbox-next { right: 16px; }
.jz52-ss-lightbox-prev:hover,
.jz52-ss-lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
.jz52-ss-lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
}

/* 移动端 lightbox 微调 */
@media (max-width: 600px) {
  .jz52-ss-lightbox-stage { padding: 24px; }
  .jz52-ss-lightbox-prev { left: 8px; }
  .jz52-ss-lightbox-next { right: 8px; }
  .jz52-ss-lightbox-close { top: 8px; right: 8px; }
}

/* ============ 轻提示 Toast（X 风格，替代 alert） ============ */
.jz52-toast {
  position: fixed;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  z-index: 999999;
  display: none;
  max-width: 82%;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  word-break: break-word;
  text-align: center;
  pointer-events: none;
}
.jz52-toast-success { background: rgba(0, 186, 124, 0.75); }
.jz52-toast-error   { background: rgba(244, 33, 46, 0.75); }
.jz52-toast-info    { background: rgba(29, 155, 240, 0.75); }
@media (max-width: 600px) {
  .jz52-toast { bottom: 18px; }
}
