/*
 * 发现 · 朋友圈视觉升级 3.0
 * 基于微信朋友圈的封面、昵称、九宫格、点赞与评论布局。
 * 全部选择器限定在 .wx-moments，避免影响首页、客服及“我的”。
 */
body:has(.wx-moments) {
  background: #f5f7f8;
}
.wx-moments,
.wx-moments * {
  box-sizing: border-box;
}
.wx-moments {
  --wx-ink: #253142;
  --wx-blue: #576b95;
  --wx-muted: #9ba4ae;
  --wx-line: #edf0f3;
  --wx-green: #07b56b;
  --wx-surface: #f6f7f8;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0 0 104px;
  color: var(--wx-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}
.wx-moments .wx-main {
  width: 100%;
  max-width: 740px;
  min-width: 0;
  margin: 22px auto 0;
  padding: 0 0 8px;
  background: #fff;
  border: 1px solid #e9edf0;
  border-radius: 22px;
  box-shadow: 0 14px 48px rgba(37, 54, 73, .055);
  overflow: hidden;
}

/* 封面：有后台封面图时轻度叠加；没有图也有优雅的渐变背景 */
.wx-moments .wx-cover {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 265px;
  overflow: hidden;
  background: linear-gradient(122deg, #8daeb5 0%, #638d97 38%, #365e70 100%);
}
.wx-moments .wx-cover-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .33;
  filter: saturate(.8);
}

/* 默认清新山景：纯 CSS 绘制，不依赖外部图片或第三方服务 */
.wx-moments .wx-cover-sun {
  position: absolute;
  top: 4px;
  right: 10%;
  width: 215px;
  height: 215px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,248,220,.38) 0%, rgba(255,246,211,.16) 29%, transparent 67%);
  pointer-events: none;
}
.wx-moments .wx-cover-hill {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}
.wx-moments .wx-cover-hill-back {
  height: 155px;
  opacity: .46;
  background: linear-gradient(165deg,#bad4c9,#5e9b99);
  clip-path: polygon(0 74%, 11% 57%, 25% 69%, 43% 31%, 60% 64%, 77% 30%, 100% 69%, 100% 100%, 0 100%);
}
.wx-moments .wx-cover-hill-front {
  height: 132px;
  opacity: .42;
  background: linear-gradient(135deg,#3c777a,#235b6c);
  clip-path: polygon(0 64%, 16% 42%, 35% 72%, 53% 46%, 70% 75%, 89% 37%, 100% 54%, 100% 100%, 0 100%);
}

.wx-moments .wx-cover-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(95deg, rgba(20,45,60,.54) 0%, rgba(20,45,60,.18) 58%, rgba(20,45,60,.05) 100%),
              linear-gradient(0deg, rgba(17,42,53,.34) 0%, transparent 52%);
}
.wx-moments .wx-cover-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}
.wx-moments .wx-cover-shape-a {
  width: 370px;
  height: 370px;
  top: -255px;
  right: -65px;
  background: rgba(255,255,255,.10);
}
.wx-moments .wx-cover-shape-b {
  width: 240px;
  height: 240px;
  bottom: -175px;
  right: 22%;
  background: rgba(214,255,239,.10);
}
.wx-moments .wx-cover-content {
  position: absolute;
  z-index: 1;
  bottom: 47px;
  left: 35px;
  right: 145px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(11,36,48,.16);
}
.wx-moments .wx-cover-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 30px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  backdrop-filter: blur(6px);
}
.wx-moments .wx-cover-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ce1ac;
  box-shadow: 0 0 0 3px rgba(124,225,172,.16);
}
.wx-moments .wx-cover-separator { opacity: .58; }
.wx-moments .wx-cover-content h1 {
  margin: 15px 0 7px;
  color: #fff;
  font-size: clamp(21px, 4vw, 30px);
  font-weight: 750;
  line-height: 1.32;
  letter-spacing: -.025em;
}
.wx-moments .wx-cover-content p {
  margin: 0;
  color: rgba(255,255,255,.83);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .02em;
}

/* 封面右下方昵称和头像，参考微信朋友圈经典布局 */
.wx-moments .wx-profile {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  min-height: 88px;
  padding: 0 29px;
  margin: -42px 0 0;
  background: transparent;
}
.wx-moments .wx-profile-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.wx-moments .wx-profile-info {
  min-width: 0;
  padding: 0 0 9px;
  text-align: right;
}
.wx-moments .wx-profile-info h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(23,43,54,.45);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wx-moments .wx-profile-info p {
  margin: 0;
  color: #88949f;
  font-size: 11px;
  white-space: nowrap;
}
.wx-moments .wx-profile-info p i {
  color: var(--wx-green);
  font-size: 7px;
  vertical-align: 2px;
  margin-right: 3px;
}
.wx-moments .wx-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(231,238,243,.9);
  background: #fff;
  box-shadow: 0 8px 20px rgba(30,48,65,.15);
  overflow: hidden;
}
.wx-moments .wx-profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}
.wx-moments .wx-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg,#a1b7c9,#637e99);
  font-size: 23px;
}

/* 动态区抬头 */
.wx-moments .wx-feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 31px 21px;
  border-bottom: 1px solid var(--wx-line);
}
.wx-moments .wx-feed-heading-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.wx-moments .wx-feed-heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  color: #0c9b64;
  background: #e9f8f0;
  font-size: 17px;
}
.wx-moments .wx-feed-heading h2 {
  margin: 0;
  color: #273345;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}
.wx-moments .wx-feed-heading p {
  margin: 3px 0 0;
  color: #a3acb5;
  font-size: 11px;
  line-height: 1.4;
}
.wx-moments .wx-feed-count {
  flex: 0 0 auto;
  color: #99a4ad;
  font-size: 11px;
  white-space: nowrap;
}
.wx-moments .wx-feed-count strong {
  color: #3c8b6e;
  font-size: 12px;
  font-weight: 750;
}
.wx-moments .wx-feed {
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: #fff;
}

/* 头像 + 作者 + 正文 */
.wx-moments .wx-post {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 23px 30px 22px;
  border: 0;
  border-bottom: 1px solid var(--wx-line);
  background: #fff;
}
.wx-moments .wx-post:last-child { border-bottom: 0; }
.wx-moments .wx-post-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid #e9edf0;
  border-radius: 10px;
  background: #f0f3f6;
  overflow: hidden;
}
.wx-moments .wx-post-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.wx-moments .wx-post-main {
  display: block;
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.wx-moments .wx-post-body {
  display: block;
  width: 100%;
  min-width: 0;
}
.wx-moments .wx-post-author-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 25px;
  margin: 0 0 5px;
}
.wx-moments .wx-post-author-row p.wx-post-author {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--wx-blue);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.wx-moments .wx-post-author-row .wx-post-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  max-width: 140px;
  min-width: 0;
  padding: 3px 8px;
  border: 1px solid #e6eefc;
  border-radius: 5px;
  color: #7588a9;
  background: #f4f7fc;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-moments .wx-post-text {
  display: block;
  width: 100%;
  margin: 3px 0 0;
  color: #303943;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  white-space: normal;
}
.wx-moments .wx-post-text.wzndhycyc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  max-height: calc(1.85em * 5);
}
.wx-moments .wx-post-expand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  padding: 4px 0;
  margin: 5px 0 0;
  border: 0;
  background: none;
  color: var(--wx-blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wx-moments .wx-post-expand i { font-size: 12px; }
.wx-moments .wx-post-expand[aria-expanded="true"] i { transform: rotate(180deg); }

/* 微信九宫格：1张大图、2/4张双列，其余三列 */
.wx-moments .wx-post-images {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  width: min(100%, 390px);
  max-width: 100%;
  margin: 12px 0 0;
  padding: 0;
}
.wx-moments .wx-post-images.wx-images-two {
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: min(100%, 270px);
}
.wx-moments .wx-post-images.wx-images-one {
  grid-template-columns: minmax(0,1fr);
  width: min(100%, 280px);
}
.wx-moments .wx-post-image {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid #eff1f4;
  border-radius: 5px;
  background: #f3f5f7;
  overflow: hidden;
  transition: filter .16s ease, transform .16s ease;
}
.wx-moments .wx-post-image:hover { filter: brightness(.95); }
.wx-moments .wx-images-one .wx-post-image {
  aspect-ratio: 4 / 3;
  max-height: 280px;
}
.wx-moments .wx-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .24s ease;
}
.wx-moments .wx-post-image:hover img { transform: scale(1.025); }

/* 日期、互动数量、微信式“···”操作 */
.wx-moments .wx-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 33px;
  margin: 11px 0 0;
  padding: 0;
}
.wx-moments .wx-post-time {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  color: #9ba4ae;
  font-size: 11px;
  font-weight: 400;
}
.wx-moments .wx-post-time time { font-size: 11px; }
.wx-moments .wx-post-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.wx-moments .wx-post-counts {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a6b0ba;
  font-size: 11px;
}
.wx-moments .wx-post-counts > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wx-moments [hidden] { display: none !important; }
.wx-moments .wx-post-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: auto;
  height: auto;
}
.wx-moments .wx-post-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 27px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #587093;
  background: #f1f3f6;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.wx-moments .wx-post-more i { font-size: 15px; }
.wx-moments .wx-post-more:hover,
.wx-moments .wx-post-more[aria-expanded="true"] {
  color: #fff;
  background: #4e657f;
}
.wx-moments .wx-post-action-menu:not([hidden]) {
  position: absolute;
  z-index: 12;
  top: 50%;
  right: 42px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 39px;
  padding: 0 3px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #344454;
  box-shadow: 0 6px 17px rgba(30,45,57,.20);
  animation: wxMenuIn .15s ease both;
}
@keyframes wxMenuIn {
  from { opacity: 0; transform: translate(6px,-50%); }
  to { opacity: 1; transform: translate(0,-50%); }
}
.wx-moments .wx-post-action-menu:not([hidden])::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: #344454;
}
.wx-moments .wx-post-action-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  width: auto;
  height: 100%;
  min-width: 0;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.wx-moments .wx-post-action-item i { font-size: 14px; }
.wx-moments .wx-post-action-item span { color: #fff; font-size: 12px; margin: 0; }
.wx-moments .wx-post-action-item:hover { background: rgba(255,255,255,.09); }
.wx-moments .wx-post-action-item:disabled { opacity: .48; cursor: wait; }
.wx-moments .wx-action-divider {
  display: block;
  width: 1px;
  height: 17px;
  background: rgba(255,255,255,.18);
}

/* 点赞名单 + 评论，参考微信朋友圈灰底互动块 */
.wx-moments .wx-reactions {
  position: relative;
  display: block;
  width: 100%;
  margin: 7px 0 0;
  padding: 0;
  border-radius: 7px;
  color: #3d4959;
  background: #f5f6f7;
}
.wx-moments .wx-reactions::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 12px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: #f5f6f7;
}
.wx-moments .wx-reaction-likes {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  margin: 0;
  border: 0;
}
.wx-moments .wx-reaction-likes > i {
  flex: 0 0 13px;
  margin-top: 3px;
  color: #617a9c;
  font-size: 12px;
}
.wx-moments .wx-like-names {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--wx-blue);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}
.wx-moments .wx-like-names li {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.wx-moments .wx-like-names li + li::before {
  content: "，";
  color: var(--wx-blue);
}
.wx-moments .wx-comment-list {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 10px 8px;
  border-radius: 0 0 7px 7px;
  background: transparent;
  list-style: none;
}
.wx-moments .wx-reaction-likes:not([hidden]) + .wx-comment-list:not([hidden]) {
  border-top: 1px solid #e6e9ec;
}
.wx-moments .wx-comment-row {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}
.wx-moments .wx-comment-entry {
  display: block;
  width: 100%;
  padding: 5px 3px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #3e4753;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.75;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.wx-moments .wx-comment-entry:hover { background: #e9edf1; }
.wx-moments .wx-comment-name {
  color: var(--wx-blue);
  font-weight: 750;
}
.wx-moments .wx-comment-colon { color: #4c596a; }
.wx-moments .wx-comment-text { color: #404b59; white-space: pre-wrap; }

/* 评论输入与表情 */
.wx-moments .wx-compose {
  width: 100%;
  margin: 12px 0 0;
  padding: 13px;
  border: 1px solid #e6ebf0;
  border-radius: 11px;
  background: #f9fafb;
  box-shadow: none;
}
.wx-moments .wx-compose-label {
  display: block;
  margin-bottom: 7px;
  color: #687a8e;
  font-size: 11px;
  font-weight: 700;
}
.wx-moments .wx-compose-textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  max-height: 180px;
  padding: 11px 12px;
  border: 1px solid #e0e6ec;
  border-radius: 8px;
  background: #fff;
  color: #2c3848;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}
.wx-moments .wx-compose-textarea:focus {
  border-color: #81b4a2;
  box-shadow: 0 0 0 3px rgba(7,181,107,.09);
}
.wx-moments .wx-compose-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.wx-moments .wx-compose-emoji-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  color: #65748a;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.wx-moments .wx-compose-emoji-toggle i { font-size: 16px; }
.wx-moments .wx-compose-emoji-toggle:hover { background: #edf2f4; }
.wx-moments .wx-compose-limit {
  margin-left: auto;
  color: #a3adb7;
  font-size: 11px;
}
.wx-moments .wx-compose-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 63px;
  padding: 8px 13px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: #07a962;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.wx-moments .wx-compose-send:hover { background: #079c5b; }
.wx-moments .wx-compose-send:disabled { opacity: .52; cursor: wait; }
.wx-moments .wx-emoji-picker:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #e6ebef;
  border-radius: 9px;
  background: #fff;
}
.wx-moments .wx-emoji-picker .emoji-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 19px;
  cursor: pointer;
}
.wx-moments .wx-emoji-picker .emoji-item:hover { background: #f1f4f6; }

/* 空状态和结尾 */
.wx-moments .wx-empty-state {
  padding: 62px 18px 66px;
  text-align: center;
}
.wx-moments .wx-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 17px;
  border-radius: 20px;
  background: #eff8f3;
  color: #71b396;
  font-size: 27px;
}
.wx-moments .wx-empty-state h3 {
  margin: 0 0 7px;
  color: #435363;
  font-size: 16px;
  font-weight: 700;
}
.wx-moments .wx-empty-state p {
  margin: 0;
  color: #a3adb6;
  font-size: 12px;
  line-height: 1.7;
}
.wx-moments .wx-feed-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 24px 20px 19px;
  background: #fff;
  color: #b0b9c1;
  font-size: 11px;
}
.wx-moments .wx-feed-footer > span:nth-child(2) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.wx-moments .wx-feed-footer i { font-size: 10px; }
.wx-moments .wx-footer-line {
  display: block;
  width: 33px;
  height: 1px;
  background: #e6eaed;
}

/* 简洁轻提示，不阻塞浏览 */
.wx-moments .wx-toast {
  position: fixed;
  z-index: 10010;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 36px);
  padding: 10px 16px;
  border-radius: 9px;
  color: #fff;
  background: rgba(35,48,61,.93);
  box-shadow: 0 6px 24px rgba(20,35,47,.16);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.wx-moments .wx-toast.is-error { background: rgba(159,52,52,.94); }

@media (max-width: 767px) {
  body:has(.wx-moments) { background: #fff; }
  .wx-moments { padding-bottom: 86px; }
  .wx-moments .wx-main {
    max-width: 100%;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .wx-moments .wx-cover { height: 244px; }
  .wx-moments .wx-cover-content {
    left: 22px;
    right: 116px;
    bottom: 45px;
  }
  .wx-moments .wx-cover-content h1 { font-size: 21px; }
  .wx-moments .wx-cover-content p { font-size: 11px; }
  .wx-moments .wx-profile {
    min-height: 81px;
    padding: 0 20px;
    margin-top: -39px;
  }
  .wx-moments .wx-profile-avatar {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }
  .wx-moments .wx-profile-info h2 { font-size: 16px; }
  .wx-moments .wx-feed-heading { padding: 10px 20px 18px; }
  .wx-moments .wx-post { gap: 11px; padding: 21px 17px 20px; }
  .wx-moments .wx-post-avatar { flex-basis: 43px; width: 43px; height: 43px; }
  .wx-moments .wx-post-images { width: min(100%,330px); }
  .wx-moments .wx-post-images.wx-images-two { width: min(100%,255px); }
  .wx-moments .wx-post-images.wx-images-one { width: min(100%,260px); }
}
@media (max-width: 370px) {
  .wx-moments .wx-cover { height: 227px; }
  .wx-moments .wx-cover-content { left: 16px; right: 100px; bottom: 41px; }
  .wx-moments .wx-cover-content h1 { font-size: 18px; }
  .wx-moments .wx-cover-content p { font-size: 10px; }
  .wx-moments .wx-cover-eyebrow { font-size: 9px; }
  .wx-moments .wx-profile { padding: 0 15px; }
  .wx-moments .wx-profile-avatar { flex-basis: 68px; width: 68px; height: 68px; }
  .wx-moments .wx-profile-info h2 { font-size: 14px; max-width: 155px; }
  .wx-moments .wx-profile-info p { font-size: 10px; }
  .wx-moments .wx-feed-heading { padding: 10px 15px 16px; }
  .wx-moments .wx-post { gap: 9px; padding: 19px 12px 19px; }
  .wx-moments .wx-post-avatar { flex-basis: 40px; width: 40px; height: 40px; }
  .wx-moments .wx-post-author-row p.wx-post-author { font-size: 14px; }
  .wx-moments .wx-post-text { font-size: 13px; }
  .wx-moments .wx-post-action-menu:not([hidden]) { width: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .wx-moments *,
  .wx-moments *::before,
  .wx-moments *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* 发现页顶部原网站导航：窄屏不让站名挤成两行 */
@media (max-width: 390px) {
  body:has(.wx-moments) .nav-container { gap: 7px; }
  body:has(.wx-moments) .nav-logo-container { flex: 1; min-width: 0; }
  body:has(.wx-moments) .nav-logo-container > div:last-child { min-width: 0; }
  body:has(.wx-moments) .nav-title {
    max-width: 135px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
  }
  body:has(.wx-moments) .nav-subtitle {
    max-width: 135px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  body:has(.wx-moments) .referral-top-share {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 12px;
  }
}
