/* 发现页（朋友圈）——沿用站点主题变量，视觉与首页保持一致 */

.ng-discover-page .page-shell.ng-page-skeleton {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

.cf-hero { padding: 14px 4px 2px; }
.cf-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--ng-ink, #f1eefc);
}
.cf-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ng-muted, #c0b9db);
}

/* 发布框 */
.cf-composer {
  margin-top: 10px;
  padding: 14px 14px 12px;
  border: 1px solid var(--ng-line, #41405f);
  border-radius: 16px;
  background: var(--ng-panel, #22223d);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .05);
}
.cf-textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--ng-line, #41405f);
  border-radius: 12px;
  background: rgba(0, 0, 0, .18);
  color: var(--ng-ink, #f1eefc);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.cf-textarea::placeholder { color: var(--ng-muted, #c0b9db); opacity: .75; }
.cf-textarea:focus { border-color: var(--ng-accent, #b5a6ff); }

.cf-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.cf-thumbs:empty { display: none; }
.cf-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, .25);
}
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.cf-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.cf-pick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--ng-line, #41405f);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--ng-muted, #c0b9db);
  font-size: 12.5px;
  cursor: pointer;
}
.cf-pick:active { transform: scale(.97); }
.cf-count {
  font-size: 12px;
  color: var(--ng-muted, #c0b9db);
  margin-right: auto;
}
.cf-submit {
  min-width: 96px;
  padding: 9px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #6536de, #8b4df2 52%, #cf4fc4);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 255, 255, .28), 0 8px 20px rgba(100, 52, 211, .32);
}
.cf-submit:disabled { opacity: .6; cursor: default; }
.cf-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--ng-muted, #c0b9db);
  opacity: .85;
}

/* 动态列表 */
.cf-feed-wrap { margin-top: 14px; }
.cf-feed { display: flex; flex-direction: column; gap: 10px; }

.cf-post {
  padding: 14px;
  border: 1px solid var(--ng-line, #41405f);
  border-radius: 16px;
  background: var(--ng-panel, #22223d);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .045);
}
.cf-post__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.cf-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6536de, #b168e8);
  flex: 0 0 auto;
}
.cf-nick {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ng-ink, #f1eefc);
}
.cf-time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ng-muted, #c0b9db);
  opacity: .8;
}
.cf-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ng-ink, #f1eefc);
  white-space: pre-wrap;
  word-break: break-word;
}
.cf-imgs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.cf-imgs[data-n="1"] { grid-template-columns: 1fr; }
.cf-imgs[data-n="1"] img { max-height: 320px; }
.cf-imgs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  background: rgba(0, 0, 0, .2);
  cursor: zoom-in;
}

.cf-empty {
  padding: 46px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ng-muted, #c0b9db);
  border: 1px dashed var(--ng-line, #41405f);
  border-radius: 16px;
}

.cf-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--ng-line, #41405f);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ng-muted, #c0b9db);
  font-size: 13px;
  cursor: pointer;
}

/* toast */
.cf-toast {
  position: fixed;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  z-index: 999;
  max-width: 84vw;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(20, 16, 34, .95);
  border: 1px solid var(--ng-line, #41405f);
  color: var(--ng-ink, #f1eefc);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}

/* 图片预览 */
.cf-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(6, 4, 14, .94);
  padding: 20px;
}
.cf-viewer img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
