/**
 * 会员动态（Feed）独立样式
 *
 * 单独成文件而不是追加到 main.css，是为了 main.css 被整体替换时样式不丢。
 * 用到的页面：/feed、/feed/post、/feed/member，以及首页的动态预览区块。
 */

:root {
  --feed-accent: #00a19e;
  --feed-accent-soft: rgba(0, 161, 158, 0.08);
  --feed-heading: #193838;
  --feed-text: #3b5353;
  --feed-muted: #7d8f8f;
  --feed-border: #e3ebeb;
  --feed-surface: #ffffff;
  --feed-bg: #f4f7f7;
  --feed-radius: 14px;
  --feed-shadow: 0 2px 10px rgba(25, 56, 56, 0.06);
  --feed-shadow-hover: 0 6px 22px rgba(25, 56, 56, 0.1);
}

/* ------------------------------------------------------------------
 * 页面骨架
 * --------------------------------------------------------------- */
body.feed-page {
  background: var(--feed-bg);
}

/* 动态模块头部为深色渐变背景，顶部导航栏需要始终保持白色不透明，
   避免文字与背景色混在一起看不清（做法与 company-detail-page 一致） */
.feed-page .header {
  --background-color: #ffffff;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.feed-hero {
  background: linear-gradient(135deg, #0d3b3a 0%, #00a19e 100%);
  color: #fff;
  /* 顶部留白，避免被 fixed-top 的头部导航遮挡，数值与全站 .page-title 保持一致 */
  padding: 130px 0 26px;
  position: relative;
}

.feed-hero .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.feed-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.feed-hero .breadcrumbs a:hover {
  color: #fff;
}

.feed-hero .breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.45);
}

.feed-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.feed-hero p {
  margin: 0;
  max-width: 720px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}

.feed-layout {
  padding: 24px 0 60px;
}

.feed-sticky {
  position: sticky;
  top: 90px;
}

/* ------------------------------------------------------------------
 * 通用卡片 / 头像 / 徽标
 * --------------------------------------------------------------- */
.feed-card {
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: var(--feed-radius);
  box-shadow: var(--feed-shadow);
  overflow: hidden;
}

.feed-card + .feed-card {
  margin-top: 16px;
}

.feed-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--feed-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--feed-heading);
}

.feed-card-title i {
  color: var(--feed-accent);
}

.feed-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--feed-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--feed-accent);
  font-size: 20px;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-avatar-sm {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 16px;
}

.feed-avatar-lg {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 30px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(25, 56, 56, 0.12);
}

.feed-vip {
  color: #e2a300;
  font-size: 12px;
}

.feed-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--feed-accent-soft);
  color: var(--feed-accent);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
}

.feed-chip-muted {
  background: #f1f4f4;
  color: var(--feed-muted);
}

.feed-chip-warn {
  background: rgba(226, 163, 0, 0.12);
  color: #b07f00;
}

/* ------------------------------------------------------------------
 * 左侧：个人卡片与导航
 * --------------------------------------------------------------- */
.feed-profile-cover {
  height: 62px;
  background: linear-gradient(120deg, #0d3b3a, #00a19e);
}

.feed-profile-body {
  padding: 0 16px 16px;
  text-align: center;
  margin-top: -36px;
}

.feed-profile-body .feed-avatar {
  margin: 0 auto 10px;
}

.feed-profile-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--feed-heading);
  text-decoration: none;
}

.feed-profile-name:hover {
  color: var(--feed-accent);
}

.feed-profile-role {
  display: block;
  font-size: 12.5px;
  color: var(--feed-muted);
  margin-top: 2px;
}

.feed-profile-company {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--feed-text);
}

.feed-profile-stats {
  display: flex;
  margin-top: 14px;
  border-top: 1px solid var(--feed-border);
  padding-top: 12px;
}

.feed-profile-stats > div {
  flex: 1;
  text-align: center;
}

.feed-profile-stats strong {
  display: block;
  font-size: 15px;
  color: var(--feed-heading);
}

.feed-profile-stats span {
  font-size: 11.5px;
  color: var(--feed-muted);
}

.feed-side-nav {
  padding: 8px;
}

.feed-side-nav button,
.feed-side-nav a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--feed-text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: all 0.18s ease;
}

.feed-side-nav button i,
.feed-side-nav a i {
  font-size: 15px;
  color: var(--feed-muted);
}

.feed-side-nav button:hover,
.feed-side-nav a:hover {
  background: var(--feed-accent-soft);
  color: var(--feed-accent);
}

.feed-side-nav button:hover i,
.feed-side-nav a:hover i {
  color: var(--feed-accent);
}

.feed-side-nav .feed-count {
  margin-left: auto;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
}

.feed-side-nav .feed-count.feed-count-quiet {
  background: #eef2f2;
  color: var(--feed-muted);
}

.feed-guest-card {
  padding: 22px 18px;
  text-align: center;
}

.feed-guest-card i {
  font-size: 34px;
  color: var(--feed-accent);
}

.feed-guest-card h4 {
  margin: 12px 0 6px;
  font-size: 16px;
  color: var(--feed-heading);
}

.feed-guest-card p {
  font-size: 13px;
  color: var(--feed-muted);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------
 * 发布框
 * --------------------------------------------------------------- */
.feed-composer {
  padding: 16px;
}

.feed-composer-top {
  display: flex;
  gap: 12px;
}

.feed-composer-input {
  flex: 1;
}

.feed-composer textarea {
  width: 100%;
  min-height: 84px;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14.5px;
  color: var(--feed-text);
  resize: vertical;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feed-composer textarea:focus {
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 3px var(--feed-accent-soft);
}

.feed-composer-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--feed-muted);
}

.feed-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.feed-image-grid:empty {
  display: none;
}

.feed-image-thumb {
  position: relative;
  padding-top: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--feed-border);
}

.feed-image-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-image-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-composer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--feed-border);
}

.feed-select {
  border: 1px solid var(--feed-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--feed-text);
  background: #fff;
  outline: none;
  max-width: 170px;
}

.feed-select:focus {
  border-color: var(--feed-accent);
}

.feed-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--feed-border);
  border-radius: 999px;
  background: #fff;
  color: var(--feed-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.feed-tool-btn:hover {
  border-color: var(--feed-accent);
  color: var(--feed-accent);
}

.feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--feed-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.feed-btn:hover {
  background: #008b88;
  color: #fff;
}

.feed-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feed-btn-ghost {
  background: #fff;
  border: 1px solid var(--feed-border);
  color: var(--feed-text);
}

.feed-btn-ghost:hover {
  background: var(--feed-accent-soft);
  border-color: var(--feed-accent);
  color: var(--feed-accent);
}

.feed-composer-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-counter {
  font-size: 12px;
  color: var(--feed-muted);
}

.feed-counter.is-over {
  color: #dc3545;
  font-weight: 600;
}

/* ------------------------------------------------------------------
 * 页签与筛选
 * --------------------------------------------------------------- */
.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.feed-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar {
  display: none;
}

.feed-tab {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--feed-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.feed-tab:hover {
  color: var(--feed-accent);
  background: var(--feed-accent-soft);
}

.feed-tab.active {
  background: var(--feed-accent);
  color: #fff;
}

.feed-filter-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-search {
  position: relative;
}

.feed-search input {
  width: 180px;
  border: 1px solid var(--feed-border);
  border-radius: 999px;
  padding: 6px 12px 6px 32px;
  font-size: 12.5px;
  outline: none;
}

.feed-search input:focus {
  border-color: var(--feed-accent);
  width: 210px;
}

.feed-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--feed-muted);
}

.feed-active-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--feed-border);
  font-size: 12.5px;
  color: var(--feed-muted);
}

.feed-active-filter a {
  color: var(--feed-accent);
  text-decoration: none;
  font-weight: 600;
}

/* ------------------------------------------------------------------
 * 动态卡片
 * --------------------------------------------------------------- */
.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.feed-post {
  padding: 16px;
}

/* 有 data-act="open-post" 时，说明整卡可点开详情页（详情页自己渲染自己时不加这个属性） */
.feed-post[data-act="open-post"] {
  cursor: pointer;
}

.feed-post[data-act="open-post"] a,
.feed-post[data-act="open-post"] button,
.feed-post[data-act="open-post"] textarea,
.feed-post[data-act="open-post"] input {
  cursor: pointer;
}

.feed-post[data-act="open-post"] textarea {
  cursor: text;
}

.feed-repost-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--feed-muted);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--feed-border);
}

.feed-post-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feed-post-meta {
  flex: 1;
  min-width: 0;
}

.feed-post-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-post-author a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--feed-heading);
  text-decoration: none;
}

.feed-post-author a:hover {
  color: var(--feed-accent);
}

.feed-post-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--feed-muted);
}

.feed-post-sub a {
  color: var(--feed-muted);
  text-decoration: none;
}

.feed-post-sub a:hover {
  color: var(--feed-accent);
}

.feed-post-sub .dot::before {
  content: "·";
  margin: 0 2px;
}

.feed-post-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-follow-btn {
  border: 1px solid var(--feed-accent);
  background: #fff;
  color: var(--feed-accent);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.feed-follow-btn:hover {
  background: var(--feed-accent);
  color: #fff;
}

.feed-follow-btn.is-following {
  border-color: var(--feed-border);
  color: var(--feed-muted);
}

.feed-follow-btn.is-following:hover {
  background: #f8d7da;
  border-color: #f1aeb5;
  color: #b02a37;
}

.feed-menu {
  position: relative;
}

.feed-menu-toggle {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--feed-muted);
  cursor: pointer;
}

.feed-menu-toggle:hover {
  background: #f1f4f4;
  color: var(--feed-heading);
}

.feed-menu-list {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 20;
  min-width: 176px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  box-shadow: var(--feed-shadow-hover);
  display: none;
}

.feed-menu.open .feed-menu-list {
  display: block;
}

.feed-menu-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--feed-text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.feed-menu-list button:hover {
  background: var(--feed-accent-soft);
  color: var(--feed-accent);
}

.feed-menu-list button.is-danger:hover {
  background: #fdeaec;
  color: #b02a37;
}

.feed-post-body {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--feed-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-post-body a.feed-hashtag {
  color: var(--feed-accent);
  font-weight: 600;
  text-decoration: none;
}

.feed-post-body a.feed-hashtag:hover {
  text-decoration: underline;
}

.feed-post-more {
  display: inline-block;
  margin-top: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--feed-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.feed-post-images {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.feed-post-images[data-count="1"] {
  grid-template-columns: 1fr;
}

.feed-post-images[data-count="2"],
.feed-post-images[data-count="4"] {
  grid-template-columns: repeat(2, 1fr);
}

.feed-post-images[data-count="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.feed-post-images a {
  display: block;
  position: relative;
  padding-top: 72%;
  background: #eef2f2;
}

.feed-post-images[data-count="1"] a {
  padding-top: 52%;
}

.feed-post-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-quote {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  background: #fafcfc;
}

.feed-quote-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.feed-quote-head a {
  font-weight: 700;
  color: var(--feed-heading);
  text-decoration: none;
}

.feed-quote-head span {
  color: var(--feed-muted);
  font-size: 12px;
}

.feed-quote-body {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--feed-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-quote-missing {
  font-size: 13px;
  color: var(--feed-muted);
  font-style: italic;
}

.feed-post-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--feed-border);
  font-size: 12.5px;
  color: var(--feed-muted);
}

.feed-post-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.feed-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--feed-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.feed-action:hover {
  background: #f1f4f4;
  color: var(--feed-heading);
}

.feed-action.active {
  color: var(--feed-accent);
}

.feed-action.active i {
  transform: scale(1.06);
}

.feed-action-label {
  white-space: nowrap;
}

/* ------------------------------------------------------------------
 * 评论
 * --------------------------------------------------------------- */
.feed-comments {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--feed-border);
}

.feed-comments.d-none {
  display: none;
}

.feed-comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feed-comment-form textarea {
  flex: 1;
  min-height: 40px;
  border: 1px solid var(--feed-border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13.5px;
  resize: vertical;
  outline: none;
}

.feed-comment-form textarea:focus {
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 3px var(--feed-accent-soft);
}

.feed-comment-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-comment {
  display: flex;
  gap: 10px;
}

.feed-comment-main {
  flex: 1;
  min-width: 0;
}

.feed-comment-bubble {
  background: #f6f9f9;
  border-radius: 12px;
  padding: 9px 12px;
}

.feed-comment-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.feed-comment-author a {
  font-weight: 700;
  color: var(--feed-heading);
  text-decoration: none;
}

.feed-comment-author span {
  color: var(--feed-muted);
  font-size: 12px;
}

.feed-comment-text {
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--feed-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-comment-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  padding-left: 4px;
  font-size: 12px;
}

.feed-comment-tools button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--feed-muted);
  font-weight: 600;
  cursor: pointer;
}

.feed-comment-tools button:hover {
  color: var(--feed-accent);
}

.feed-comment-tools button.active {
  color: var(--feed-accent);
}

.feed-comment-tools .feed-comment-time {
  color: var(--feed-muted);
  margin-left: auto;
}

.feed-replies {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--feed-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-reply-to {
  color: var(--feed-accent);
  font-weight: 600;
}

.feed-comment-more {
  margin-top: 12px;
  text-align: center;
}

/* ------------------------------------------------------------------
 * 右侧：热门标签 / 推荐关注
 * --------------------------------------------------------------- */
.feed-tag-list {
  padding: 8px;
}

.feed-tag-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--feed-text);
  font-size: 13.5px;
  text-decoration: none;
}

.feed-tag-list a:hover {
  background: var(--feed-accent-soft);
  color: var(--feed-accent);
}

.feed-tag-list strong {
  font-weight: 600;
}

.feed-tag-list em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--feed-muted);
}

.feed-suggest-list {
  padding: 8px;
}

.feed-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}

.feed-suggest-item:hover {
  background: #fafcfc;
}

.feed-suggest-info {
  flex: 1;
  min-width: 0;
}

.feed-suggest-info a {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--feed-heading);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-suggest-info a:hover {
  color: var(--feed-accent);
}

.feed-suggest-info span {
  display: block;
  font-size: 11.5px;
  color: var(--feed-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-rules {
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--feed-muted);
  line-height: 1.7;
}

.feed-rules ul {
  margin: 0;
  padding-left: 18px;
}

/* ------------------------------------------------------------------
 * 空状态 / 骨架屏 / 加载更多
 * --------------------------------------------------------------- */
.feed-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--feed-muted);
}

.feed-empty i {
  font-size: 38px;
  color: #cddada;
}

.feed-empty h4 {
  margin: 12px 0 6px;
  font-size: 16px;
  color: var(--feed-heading);
}

.feed-empty p {
  margin: 0;
  font-size: 13.5px;
}

.feed-skeleton {
  padding: 16px;
}

.feed-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f2 25%, #f7fafa 50%, #eef2f2 75%);
  background-size: 200% 100%;
  animation: feed-shimmer 1.3s infinite;
  margin-bottom: 10px;
}

.feed-skeleton-line.w-40 {
  width: 40%;
}

.feed-skeleton-line.w-70 {
  width: 70%;
}

.feed-skeleton-line.w-90 {
  width: 90%;
}

@keyframes feed-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.feed-load-more {
  margin-top: 16px;
  text-align: center;
}

/* ------------------------------------------------------------------
 * 弹层（转发 / 私信 / 举报 / 通知 / 会话）
 * --------------------------------------------------------------- */
.feed-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 34, 34, 0.45);
}

.feed-modal.open {
  display: flex;
}

.feed-modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(16, 34, 34, 0.28);
  overflow: hidden;
}

.feed-modal-dialog.is-wide {
  max-width: 720px;
}

.feed-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--feed-border);
}

.feed-modal-head h5 {
  margin: 0;
  flex: 1;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--feed-heading);
}

.feed-modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f4;
  color: var(--feed-text);
  cursor: pointer;
}

.feed-modal-close:hover {
  background: #e4eaea;
}

.feed-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}

.feed-modal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--feed-border);
}

.feed-modal-foot .feed-counter {
  margin-right: auto;
}

.feed-modal-body textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.feed-modal-body textarea:focus {
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 3px var(--feed-accent-soft);
}

.feed-modal-target {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f9f9;
  margin-bottom: 12px;
  font-size: 13px;
}

.feed-modal-target strong {
  color: var(--feed-heading);
}

.feed-reason-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.feed-reason-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--feed-text);
  cursor: pointer;
}

.feed-reason-list label:hover {
  border-color: var(--feed-accent);
}

.feed-reason-list input {
  accent-color: var(--feed-accent);
}

/* 通知列表 */
.feed-note-list {
  display: flex;
  flex-direction: column;
}

.feed-note {
  display: flex;
  gap: 10px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--feed-border);
  text-decoration: none;
}

.feed-note:last-child {
  border-bottom: 0;
}

.feed-note:hover {
  background: #fafcfc;
}

.feed-note.is-unread {
  background: var(--feed-accent-soft);
  border-radius: 10px;
}

.feed-note-body {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--feed-text);
}

.feed-note-body strong {
  color: var(--feed-heading);
}

.feed-note-body p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--feed-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-note-time {
  font-size: 11.5px;
  color: var(--feed-muted);
  white-space: nowrap;
}

/* 会话 */
.feed-thread-layout {
  display: flex;
  min-height: 380px;
  max-height: 62vh;
}

.feed-thread-side {
  width: 236px;
  flex: 0 0 236px;
  border-right: 1px solid var(--feed-border);
  overflow-y: auto;
}

.feed-thread-item {
  display: flex;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--feed-border);
  cursor: pointer;
}

.feed-thread-item:hover,
.feed-thread-item.active {
  background: var(--feed-accent-soft);
}

.feed-thread-item-info {
  flex: 1;
  min-width: 0;
}

.feed-thread-item-info strong {
  display: block;
  font-size: 13px;
  color: var(--feed-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-thread-item-info span {
  display: block;
  font-size: 12px;
  color: var(--feed-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-thread-item .feed-count {
  align-self: flex-start;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 10.5px;
  line-height: 18px;
  text-align: center;
}

.feed-thread-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-thread-head {
  padding: 11px 14px;
  border-bottom: 1px solid var(--feed-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--feed-heading);
}

.feed-thread-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #fafcfc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--feed-text);
  background: #fff;
  border: 1px solid var(--feed-border);
  align-self: flex-start;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-bubble.is-mine {
  align-self: flex-end;
  background: var(--feed-accent);
  border-color: var(--feed-accent);
  color: #fff;
}

.feed-bubble-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}

.feed-bubble-post {
  display: block;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(125, 143, 143, 0.4);
  font-size: 11.5px;
  opacity: 0.8;
}

.feed-thread-foot {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--feed-border);
  background: #fff;
}

.feed-thread-foot textarea {
  flex: 1;
  min-height: 40px;
  max-height: 110px;
  border: 1px solid var(--feed-border);
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13.5px;
  resize: vertical;
  outline: none;
}

/* ------------------------------------------------------------------
 * 图片灯箱 / 提示条
 * --------------------------------------------------------------- */
.feed-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 20, 20, 0.9);
  padding: 24px;
}

.feed-lightbox.open {
  display: flex;
}

.feed-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.feed-lightbox button {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.feed-lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.feed-lightbox .feed-lightbox-prev,
.feed-lightbox .feed-lightbox-next {
  top: 50%;
  right: auto;
  transform: translateY(-50%);
  font-size: 20px;
}

.feed-lightbox .feed-lightbox-prev {
  left: 24px;
}

.feed-lightbox .feed-lightbox-next {
  right: 24px;
}

.feed-lightbox-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
}

@media (max-width: 576px) {
  .feed-lightbox .feed-lightbox-prev {
    left: 8px;
  }

  .feed-lightbox .feed-lightbox-next {
    right: 8px;
  }
}

.feed-toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.feed-toast {
  min-width: 220px;
  max-width: 420px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--feed-heading);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(16, 34, 34, 0.26);
  animation: feed-toast-in 0.22s ease;
}

.feed-toast.is-error {
  background: #c0392b;
}

.feed-toast.is-success {
  background: #0f8a63;
}

@keyframes feed-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------
 * 会员主页头部
 * --------------------------------------------------------------- */
.feed-member-head {
  margin-bottom: 16px;
}

.feed-member-cover {
  height: 118px;
  background: linear-gradient(120deg, #0d3b3a, #00a19e);
}

.feed-member-body {
  padding: 0 20px 18px;
  margin-top: -40px;
}

.feed-member-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.feed-member-info {
  flex: 1;
  min-width: 200px;
  padding-bottom: 4px;
}

.feed-member-info h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--feed-heading);
}

.feed-member-info p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--feed-muted);
}

.feed-member-metrics {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--feed-border);
}

.feed-member-metrics div strong {
  display: block;
  font-size: 17px;
  color: var(--feed-heading);
}

.feed-member-metrics div span {
  font-size: 12px;
  color: var(--feed-muted);
}

/* ------------------------------------------------------------------
 * 首页动态预览区块
 * --------------------------------------------------------------- */
.home-feed-section .home-feed-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feed-section .home-feed-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--feed-shadow-hover);
}

.home-feed-section .feed-post-body {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-feed-cta {
  margin-top: 26px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------
 * 响应式
 * --------------------------------------------------------------- */
@media (max-width: 1199px) {
  .feed-sticky {
    position: static;
  }
}

@media (max-width: 991px) {
  .feed-layout .feed-side-right {
    margin-top: 16px;
  }

  .feed-hero {
    padding: 110px 0 22px;
  }
}

@media (max-width: 767px) {
  .feed-hero {
    padding: 100px 0 20px;
  }

  .feed-hero h1 {
    font-size: 23px;
  }

  .feed-filter-group {
    width: 100%;
    margin-left: 0;
  }

  .feed-search input,
  .feed-search input:focus {
    width: 100%;
  }

  .feed-search {
    flex: 1;
  }

  .feed-composer-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .feed-action-label {
    display: none;
  }

  .feed-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feed-thread-layout {
    flex-direction: column;
    max-height: 74vh;
  }

  .feed-thread-side {
    width: 100%;
    flex: 0 0 auto;
    max-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--feed-border);
    display: flex;
    overflow-x: auto;
  }

  .feed-thread-item {
    min-width: 168px;
    border-bottom: 0;
    border-right: 1px solid var(--feed-border);
  }
}
