/* ==================================================================
   帖子详情页 —— 评论 + 回复样式
   ================================================================== */

.max-container {
  max-width: var(--max-container);
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.88);
  -webkit-font-smoothing: antialiased;
}
.max-container *,
.max-container *::before,
.max-container *::after {
  box-sizing: border-box;
}

/* ==================================================================
   Tab 卡片
   ================================================================== */
.card {
  margin-top: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 1px 6px -1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}
.card .tab-nav {
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
  list-style: none;
  margin: 0;
}
.card .tab-nav li {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: color 0.2s;
}
.card .tab-nav li:hover {
  color: #1677ff;
}
.card .tab-nav li.active-posts {
  color: #1677ff;
  font-weight: 500;
}
.card .tab-nav li::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background: #1677ff;
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.card .tab-nav li.active-posts::after {
  transform: scaleX(1);
}
.tab-content {
  width: 100%;
  padding: 24px;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* ==================================================================
   评论输入区
   ================================================================== */
.commentxy {
  width: 100%;
}
.commentxy .flex-comment {
  display: flex;
  gap: 12px;
}
.commentxy .avatar-box a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.commentxy .avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.commentxy .flex-comment .content {
  flex: 1;
  min-width: 0;
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.2s;
}
.commentxy .flex-comment .content:hover {
  background: #f5f5f5;
}
.commentxy .flex-comment .content.focused {
  background: #fff;
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}
.commentxy .flex-comment .content .min-body {
  display: flex;
  flex-direction: column;
}
.dig.rich-input {
  position: relative;
  padding: 10px 14px;
  min-height: 48px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.88);
  outline: none;
  background: transparent;
  flex: 1;
}
.rich-input.empty::before {
  content: attr(placeholder);
  position: absolute;
  left: 14px;
  top: 10px;
  color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  user-select: none;
}
.emji-flex {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 12px;
  border-top: 1px solid #f0f0f0;
}
.emji-flex li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  transition: all 0.2s;
}
.emji-flex li:hover {
  color: #1677ff;
  background: #e6f4ff;
}
.text-count-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}
.text-count-wrapper .color-ff {
  color: rgba(0, 0, 0, 0.25);
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  margin-left: 12px;
  font-size: 14px;
  color: #fff;
  background: #1677ff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.submit-btn:hover {
  background: #4096ff;
}
.submit-btn:active {
  background: #0958d9;
}
.submit-btn.hover-op {
  background: #d9d9d9;
  cursor: not-allowed;
  opacity: 0.6;
}
.flex-imgaes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}
.flex-imgaes .image-preview-box {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.flex-imgaes .image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flex-imgaes .image-preview-box .btn-end {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  cursor: pointer;
}
.flex-imgaes .image-preview-box .btn-end:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ==================================================================
   评论列表
   ================================================================== */
.comment-list-wrapper {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.comment-list-header {
  display: flex;
  align-items: center;
  gap: 0;
}
.comment-list-header span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.comment-list-header span:hover {
  color: #1677ff;
  background: #fafafa;
}
.comment-list-header span.avt {
  color: #1677ff;
  font-weight: 500;
  background: #e6f4ff;
}
.comment-list-header .divider {
  width: 1px;
  height: 12px;
  background: #f0f0f0;
  margin: 0 4px;
}

.comment-list-wrapper .comment-card {
  margin-top: 16px;
}
.comment-list-wrapper .comment-card .comm-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.comment-list-wrapper .comment-card .comm-box:last-child {
  border-bottom: none;
}

.comment-avatar a {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comment-header {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.comment-header > .flex-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.comment-header .name a {
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  transition: color 0.2s;
}
.comment-header .name a:hover {
  color: #1677ff;
}
.comment-header .author-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  color: #1677ff;
  background: #e6f4ff;
  border-radius: 4px;
  flex-shrink: 0;
}
.comment-header .author-intro {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.comment-content-short,
.comment-content-full,
.content-se {
  padding: 4px 0 8px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.88);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.expand-btn {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #1677ff !important;
  cursor: pointer;
}
.expand-btn:hover {
  color: #4096ff !important;
  text-decoration: underline;
}

.comment-image {
  position: relative;
  display: inline-block;
  width: 96px;
  height: 96px;
  margin: 4px 8px 4px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.comment-image:hover {
  transform: scale(1.02);
}
.comment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 评论操作栏 */
.comment-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}
.comment-action.mb-20 {
  margin-bottom: 0;
}
.comment-action .flex-op {
  display: flex;
  align-items: center;
  gap: 16px;
}
.comment-action .flex-op .align {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  margin: -4px -6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.comment-action .flex-op .align:hover {
  color: #1677ff;
  background: #e6f4ff;
}
.comment-action time {
  color: rgba(0, 0, 0, 0.45);
}
.action-digg {
  user-select: none;
}
.action-digg .like-count {
  margin-left: 2px;
}
.action-digg.liked,
.action-digg.liked .like-count {
  color: #1677ff;
  font-weight: 500;
}

/* ==================================================================
   更多菜单
   ================================================================== */
.more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  transition: all 0.2s;
}
.more-btn:hover,
.more-btn:active {
  color: rgba(0, 0, 0, 0.88);
  background: #fafafa;
}
.more-btn > svg {
  pointer-events: none;
  width: 16px;
  height: 16px;
}
.more-btn::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -8px;
  width: calc(100% + 16px);
  height: 14px;
  background: transparent;
  pointer-events: none;
  z-index: 999;
}
.more-btn:hover::after,
.more-btn:focus-within::after,
.more-btn:active::after {
  pointer-events: auto;
}
.more-btn .more-menu {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  max-width: calc(100vw - 32px);
  padding: 4px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  z-index: 1000;
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.94);
  pointer-events: none;
  transition:
    opacity 0.18s,
    visibility 0.18s,
    transform 0.18s;
}
.more-btn:hover .more-menu,
.more-btn:focus-within .more-menu,
.more-btn:active .more-menu,
.more-btn .more-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.more-btn .more-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.more-btn .more-menu .menu-item + .menu-item {
  margin-top: 2px;
}
.more-btn .more-menu .menu-item:hover {
  background: #e6f4ff;
  color: #1677ff;
}
.more-btn .more-menu .menu-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
}
.more-btn .more-menu .menu-item.delete-comment {
  color: #ff4d4f;
}
.more-btn .more-menu .menu-item.delete-comment:hover {
  background: rgba(255, 77, 79, 0.08);
  color: #ff4d4f;
}

/* ==================================================================
   子回复 —— 重点优化
   ================================================================== */
.Reply {
  margin-top: 12px;
  padding: 12px 12px 4px;
  background: #fafafa;
  border-radius: 8px;
}
.Reply .comm-box.reply-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0;
  gap: 10px;
}
.Reply .comm-box.reply-item:last-child {
  border-bottom: none;
}
.Reply .comment-avatar a {
  width: 32px;
  height: 32px;
}
.Reply .comment-content-short,
.Reply .comment-content-full,
.Reply .content-se {
  font-size: 14px;
  padding: 2px 0 6px;
}
.more-replies {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: #1677ff !important;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.more-replies:hover {
  background: #e6f4ff;
}

/* ==================================================================
   PC 内联回复框 —— 优化
   ================================================================== */
.reply-box {
  position: relative;
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  animation: replyBoxIn 0.2s;
}
@keyframes replyBoxIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reply-box .min-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reply-box .reply-text {
  width: 100%;
  min-height: 80px;
  max-height: 240px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.88);
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  resize: none;
  overflow-y: auto;
  transition: all 0.2s;
}
.reply-box .reply-text:hover {
  background: #f0f0f0;
}
.reply-box .reply-text:focus {
  background: #fff;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(5, 145, 255, 0.1);
}
.reply-box .reply-text[placeholder]:empty::before {
  content: attr(placeholder);
  color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.reply-box .reply-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}
.reply-box .reply-preview .image-preview-box {
  position: relative;
  display: inline-block;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}
.reply-box .reply-preview img {
  display: block;
  max-width: 100px;
  max-height: 100px;
  border-radius: 6px;
  object-fit: cover;
}
.reply-box .reply-preview .btn-end {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  color: #fff;
  background: #1677ff;
  border-radius: 50%;
  cursor: pointer;
}
.reply-box .emji-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 0;
  height: auto;
  border-top: none;
}
.reply-box .image-btn-reply,
.reply-box .emoji-btn-reply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.reply-box .image-btn-reply:hover,
.reply-box .emoji-btn-reply:hover {
  color: #1677ff;
  background: #e6f4ff;
}
.reply-box .text-count-wrapper {
  margin-left: auto;
  margin-right: 12px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}
.reply-box .reply-count-real {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 500;
}
.reply-box .cancel-reply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.reply-box .cancel-reply-btn:hover {
  color: #1677ff;
  border-color: #1677ff;
}
.reply-box .submit-reply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 68px;
  padding: 0 16px;
  margin-left: 8px;
  font-size: 14px;
  color: #fff;
  background: #1677ff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
  transition: all 0.2s;
}
.reply-box .submit-reply-btn:hover {
  background: #4096ff;
}
.reply-box .submit-reply-btn:active {
  background: #0958d9;
}
.reply-box .submit-reply-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* ==================================================================
   加载更多
   ================================================================== */
.load-more-wrapper {
  text-align: center;
  margin: 20px 0 4px;
}
.fetch-more-comment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.fetch-more-comment:hover {
  color: #1677ff;
  border-color: #1677ff;
}

/* ==================================================================
   表情面板
   ================================================================== */
.emoji-panel,
.reply-emoji-panel,
.mobile-emoji-panel {
  display: none;
  position: absolute;
  padding: 8px;
  width: 260px;
  max-width: calc(100vw - 24px);
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  z-index: 10010;
}
.emoji-panel span,
.reply-emoji-panel span,
.mobile-emoji-panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  margin: 2px;
  border-radius: 4px;
  cursor: pointer;
}
.emoji-panel span:hover,
.reply-emoji-panel span:hover,
.mobile-emoji-panel span:active {
  background: #e6f4ff;
}

/* ==================================================================
   热门 / 推荐列表
   ================================================================== */
.view-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.view-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.view-list li:last-child {
  border-bottom: none;
}
.view-list li:hover {
  background: #fafafa;
}
.view-list li h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.view-list li h3 a {
  color: rgba(0, 0, 0, 0.88);
  transition: color 0.2s;
}
.view-list li h3 a:hover {
  color: #1677ff;
}
.flex-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}
.ol-ve {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.ol-ve span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ol-ve a {
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.2s;
}
.ol-ve a:hover {
  color: #1677ff;
}
.ol-ve .divider {
  width: 1px;
  height: 11px;
  background: #f0f0f0;
  margin: 0 2px;
}
.item-tag a {
  display: inline-block;
  max-width: 120px;
  padding: 0 8px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s;
}
.item-tag a:hover {
  color: #1677ff;
  border-color: #91caff;
  background: #e6f4ff;
}

/* ==================================================================
   帖子卡片 / 正文 / 图片网格
   ================================================================== */
.container-post {
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 1px 6px -1px rgba(0, 0, 0, 0.02);
}
.container-post .userdata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.container-post .userdata > .userdata {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: none;
}
.userdata .userimg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}
.userdata .userimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.userdata .user-span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}
.userdata .user-span .user-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.userdata .user-span .user-name .ali a {
  color: rgba(0, 0, 0, 0.88);
  transition: color 0.2s;
}
.userdata .user-span .user-name .ali a:hover {
  color: #1677ff;
}
.userdata .user-span > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.userdata .boloi {
  flex-shrink: 0;
  width: 28px;
  height: 20px;
  display: inline-flex;
  align-items: center;
}
.userdata .boloi img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.container-post .btn-sf {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  color: #fff;
  background: #1677ff;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
  transition: all 0.2s;
}
.container-post .btn-sf:hover {
  background: #4096ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -2px rgba(22, 119, 255, 0.25);
}
.container-post .btn-sf:active {
  background: #0958d9;
  transform: translateY(0);
}
.container-post .btn-sf.Followed {
  color: rgba(0, 0, 0, 0.65);
  background: #fff;
  border-color: #d9d9d9;
}
.container-post .btn-sf.Followed:hover {
  color: #ff4d4f;
  border-color: #ff4d4f;
}

.posts {
  width: 100%;
  word-break: break-word;
  margin-top: 16px;
}
.posts p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.88);
}
.posts p:last-child {
  margin-bottom: 0;
}
.garp-img {
  width: 100%;
  margin-top: 16px;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #fafafa;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.grid-item:hover {
  transform: translateY(-2px);
}
.grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.grid-item:hover img {
  transform: scale(1.04);
}
.grid-container.single,
.grid-container.grid-1 {
  grid-template-columns: 1fr;
  max-width: 520px;
}
.grid-container.single .grid-item,
.grid-container.grid-1 .grid-item {
  aspect-ratio: auto;
  max-height: 480px;
}
.grid-container.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.topic-tags a {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 13px;
  color: #1677ff;
  background: #e6f4ff;
  border: 1px solid #91caff;
  border-radius: 4px;
  transition: all 0.2s;
}
.topic-tags a:hover {
  color: #fff;
  background: #1677ff;
  border-color: #1677ff;
}
.checkin-badge {
  margin-top: 12px;
  display: inline-flex;
}
.checkin-badge a {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 13px;
  color: #d46b08;
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 4px;
}
/* 帖子定位信息 */
.post-location {
  /* 必须加：让鼠标移上去变成小手 */
  transition: opacity 0.2s;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: #1e80ff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.post-location:hover {
  opacity: 0.8;
  text-decoration: underline;
  /* 保留悬浮下划线，增加可点击感 */
}

.post-location svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
/* end */
.footer-post {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.flex-ku {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flex-ku li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.flex-ku li:hover {
  color: #1677ff;
  background: #fafafa;
}
.flex-ku .divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #f0f0f0;
  margin: 0;
  padding: 0;
}
.flex-ku li .mark,
.flex-ku li .mark-s {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}
.flex-ku li.liked {
  color: #1677ff;
}
.flex-ku li.favorited {
  color: #faad14;
}
.flex-ku li:last-child {
  position: relative;
}
.flex-ku li:last-child .menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  padding: 4px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
  z-index: 100;
  white-space: nowrap;
}
.flex-ku li:last-child:hover .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.flex-ku li:last-child .menu .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.flex-ku li:last-child .menu .menu-item:hover {
  background: #e6f4ff;
  color: #1677ff;
}

/* ==================================================================
   侧边栏
   ================================================================== */
.right-contaienr {
  flex: 0 0 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-index {
  width: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
  overflow: hidden;
}
.ant-card-head {
  padding: 0;
}
.ant-card-head-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.ant-card-head-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}
.ant-card-extra {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  transition: color 0.2s;
}
.ant-card-extra:hover {
  color: #1677ff;
}
.ant-card-extra .trans {
  font-size: 11px;
  transition: transform 0.2s;
}
.ant-card-extra:hover .trans {
  transform: translateX(2px);
}
.card-index .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.card-index .card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}
.card-index .badge a {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}
.card-index .badge a:hover {
  color: #1677ff;
}
.ant-card-body {
  padding: 8px;
  font-size: 14px;
}
.ant-card-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ant-card-body .hot-article-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.ant-card-body .hot-article-item:hover {
  background: #fafafa;
}
.mtllotop {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  background: #fafafa;
  border-radius: 4px;
}
.ant-card-body ul li:nth-child(1) .mtllotop {
  color: #ff4d4f;
  background: #fff1f0;
}
.ant-card-body ul li:nth-child(2) .mtllotop {
  color: #fa8c16;
  background: #fff7e6;
}
.ant-card-body ul li:nth-child(3) .mtllotop {
  color: #faad14;
  background: #fffbe6;
}
.hot-article-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.flex-1-s {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.uspimg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.uspimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hot-article-title span {
  min-width: 0;
  flex: 1;
}
.hot-article-title span a {
  display: block;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-article-title span a:hover {
  color: #1677ff;
}
.line-map span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  color: #1677ff;
  background: #e6f4ff;
  border-radius: 4px;
}

.follow-list {
  list-style: none;
  margin: 0;
  padding: 8px;
}
.follow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.follow-item:hover {
  background: #fafafa;
}
.follow-item .avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.follow-item .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.follow-item .user-info {
  flex: 1;
  min-width: 0;
}
.follow-item .name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 2px;
}
.follow-item .name a {
  color: rgba(0, 0, 0, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-item:hover .name a {
  color: #1677ff;
}
.follow-item .bio {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-index .follow-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.card-index .follow-btn:hover {
  color: #1677ff;
  border-color: #1677ff;
  background: #e6f4ff;
}
.card-index .follow-btn.Followed {
  color: rgba(0, 0, 0, 0.45);
  background: #fafafa;
  border-color: #f0f0f0;
}

/* ==================================================================
   主布局
   ================================================================== */
.fl {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: row;
}
.fl.column {
  flex-direction: row;
}
.flex-rty {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==================================================================
   移动端底部操作栏 + 弹窗
   ================================================================== */
.moblie-add-comment {
  display: none;
}
.xum-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.rey-input {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-height: 40px;
  padding: 8px 14px;
  background: #f5f5f5;
  border-radius: 20px;
  cursor: text;
}
.rey-input svg {
  width: 16px;
  height: 16px;
  color: rgba(0, 0, 0, 0.45);
}
.rey-input span {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.comment-modal-mask.active {
  visibility: visible;
  opacity: 1;
}
.comment-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: 10006;
}
.comment-modal.active {
  transform: translateY(0);
}
.comment-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.comment-modal-header::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}
.comment-modal-header .modal-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}
.comment-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 24px;
  color: rgba(0, 0, 0, 0.45);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.comment-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.mobile-comment-input {
  width: 100%;
  min-height: 100px;
  max-height: 200px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.88);
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.mobile-comment-input:empty::before {
  content: attr(placeholder);
  color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.mobile-comment-input:focus {
  background: #fff;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(5, 145, 255, 0.1);
}
.image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.image-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview-item .remove-img {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  cursor: pointer;
}
.mobile-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-toolbar li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 22px;
  color: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  cursor: pointer;
}
.mobile-toolbar li:active {
  color: #1677ff;
  background: #e6f4ff;
}
.mobile-comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 76px;
  padding: 0 20px;
  font-size: 14px;
  color: #fff;
  background: #1677ff;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
}
.mobile-submit-btn:active {
  background: #0958d9;
}
.mobile-submit-btn.disabled,
.mobile-submit-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* ==================================================================
   触屏设备：更多菜单保持显示
   ================================================================== */
@media (hover: none) and (pointer: coarse) {
  .more-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: transparent;
    border-radius: 50%;
    z-index: 1;
  }
  .more-btn > svg {
    position: relative;
    z-index: 2;
  }
  .more-btn::after {
    display: none;
  }
  .more-btn:active .more-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .more-btn .more-menu {
    min-width: 140px;
    padding: 6px;
    top: calc(100% + 8px);
  }
  .more-btn .more-menu .menu-item {
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* ==================================================================
   响应式 ≤ 992px
   ================================================================== */
@media (max-width: 992px) { 
  .fl,
  .fl.column {
    flex-direction: column;
    gap: 16px;
  }
  .flex-rty,
  .right-contaienr {
    flex: 1 1 auto;
    width: 100%;
  }
  .right-contaienr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .container-post {
    padding: 20px;
  }
  .tab-content {
    padding: 20px;
  }
  .grid-container.single,
  .grid-container.grid-1,
  .grid-container.grid-2 {
    max-width: 100%;
  }

  .moblie-add-comment {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70px;
    padding: 0 15px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
  .moblie-add-comment ul {
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .moblie-add-comment ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
  }
  .moblie-add-comment ul li svg {
    width: 20px;
    height: 20px;
    color: rgba(0, 0, 0, 0.65);
  }
  .moblie-add-comment ul li span {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
  }
  .moblie-add-comment ul li.liked svg,
  .moblie-add-comment ul li.liked span {
    color: #1677ff;
  }
  .moblie-add-comment ul li.favorited svg,
  .moblie-add-comment ul li.favorited span {
    color: #faad14;
  }
  .moblie-add-comment ul li.avt-view .ov-none {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #fafafa;
  }
  .moblie-add-comment ul li.avt-view .ov-none img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .moblie-add-comment ul li.avt-view .fllow-index {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    height: 16px;
    padding: 0 6px;
    font-size: 10px;
    line-height: 16px;
    color: #fff;
    background: #1677ff;
    border: 1.5px solid #fff;
    border-radius: 8px;
    white-space: nowrap;
  }
}

/* ==================================================================
   响应式 ≤ 576px
   ================================================================== */
@media (max-width: 576px) { 
  .fl,
  .fl.column {
    gap: 12px;
  }
  .container-post {
    padding: 16px;
    border-radius: 8px;
  }

  .container-post .userdata {
    gap: 10px;
    padding-bottom: 16px;
  }
  .container-post .userdata > .userdata {
    flex: 1 1 100%;
    gap: 10px;
  }
  .userdata .userimg {
    width: 40px;
    height: 40px;
  }
  .userdata .user-span .user-name {
    font-size: 15px;
  }
  .userdata .user-span > span {
    font-size: 12px;
    white-space: normal;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .container-post .btn-sf {
    height: 36px;
    border-radius: 18px;
  }

  .posts p {
    font-size: 15px;
    line-height: 1.75;
  }
  .grid-container {
    gap: 6px;
  }
  .flex-ku li {
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .card {
    border-radius: 8px;
  }
  .card .tab-nav {
    padding: 0 12px;
  }
  .card .tab-nav li {
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
  .card .tab-nav li::after {
    left: 12px;
    right: 12px;
  }
  .tab-content {
    padding: 16px;
  }

  .commentxy .flex-comment {
    gap: 10px;
  }
  .dig.rich-input {
    font-size: 14px;
    padding: 8px 10px;
  }
  .emji-flex {
    height: 44px;
    padding: 0 10px;
    gap: 0;
  }
  .emji-flex li {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
  .text-count-wrapper {
    font-size: 11px;
    margin-right: 6px;
  }
  .submit-btn {
    height: 30px;
    min-width: 60px;
    padding: 0 14px;
    font-size: 13px;
    margin-left: 6px;
  }

  .comment-list-wrapper .comment-card .comm-box {
    padding: 14px 0;
    gap: 10px;
  }
  .comment-header .name a {
    font-size: 13px;
    max-width: 140px;
  }
  .comment-content-short,
  .comment-content-full,
  .content-se {
    font-size: 14px;
    padding: 2px 0 6px;
  }
  .comment-image {
    width: 72px;
    height: 72px;
    margin: 4px 6px 6px 0;
  }
  .comment-action {
    font-size: 12px;
  }
  .comment-action .flex-op {
    gap: 12px;
  }
  .more-btn {
    width: 32px;
    height: 32px;
  }

  .Reply {
    padding: 10px 10px 2px;
  }
  .Reply .comment-avatar a {
    width: 28px;
    height: 28px;
  }
  .fetch-more-comment {
    height: 40px;
    font-size: 13px;
  }

  .right-contaienr {
    grid-template-columns: 1fr;
  }
  .ant-card-head-wrapper {
    padding: 14px 14px 10px;
  }
  .ant-card-body {
    padding: 6px;
  }

  .reply-box {
    padding: 12px;
  }
  .reply-box .reply-text {
    min-height: 64px;
    font-size: 13px;
  }
  .reply-box .cancel-reply-btn,
  .reply-box .submit-reply-btn {
    height: 30px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .max-container * {
    transition: none !important;
    animation: none !important;
  }
}
