/* BilzatWeb · 轻微博独立页 */
.feed-page { min-height: 100vh; }

.feed-hero {
  padding: 28px 16px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
}
.feed-hero-inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; padding-bottom: 20px;
}
.feed-hero h1 { margin: 6px 0; font-size: clamp(28px, 3vw, 36px); }
.feed-lead { max-width: 36rem; margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.feed-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.feed-compose-bar { padding: 0 16px 20px; }
.feed-compose-trigger {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted);
  box-shadow: var(--shadow); transition: border-color .15s;
  text-decoration: none;
}
.feed-compose-trigger:hover { border-color: var(--accent); color: var(--ink); }
.feed-compose-icon {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

.feed-main { padding: 24px 16px 48px; }
.feed-layout {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .feed-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}

.feed-stream-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.feed-stream-head h2 { margin: 0; font-size: 18px; }

.feed-list { display: flex; flex-direction: column; gap: 12px; }

.feed-post {
  padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feed-post:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 94, 245, 0.35);
  box-shadow: 0 12px 32px rgba(109, 94, 245, 0.1);
}
.feed-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feed-avatar {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, #6d5ef5, #8b7ff8);
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.feed-author { display: block; font-size: 14px; color: var(--ink); }
.feed-time { font-size: 11px; color: var(--muted); }
.feed-title { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.feed-excerpt {
  margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-read-hint { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--accent); font-weight: 600; }
.feed-post-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px;
}
.feed-comment-pill { font-size: 12px; color: var(--muted); font-weight: 600; }
a.feed-post { text-decoration: none; color: inherit; display: block; }

.feed-compose-layout,
.feed-article-layout {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .feed-compose-layout,
  .feed-article-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}

.feed-compose-form,
.feed-comment-form {
  padding: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
}
.feed-field { display: block; margin-bottom: 16px; }
.feed-field > span {
  display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.feed-field input,
.feed-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); resize: vertical;
}
.feed-field input:focus,
.feed-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.feed-char-count { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); text-align: right; }
.feed-compose-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.feed-form-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; color: #b45309; }

.feed-emoji-mount { margin-bottom: 8px; }
.feed-emoji-bar {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 12px;
  max-height: 96px; overflow-y: auto;
}
.feed-emoji-btn {
  border: 0; background: transparent; cursor: pointer; font-size: 18px;
  width: 32px; height: 32px; border-radius: 8px; line-height: 1;
}
.feed-emoji-btn:hover { background: var(--accent-soft); }

.feed-article-full {
  padding: 28px 24px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
}
.feed-article-title { margin: 0 0 12px; font-size: clamp(22px, 3vw, 28px); line-height: 1.35; }
.feed-article-body {
  margin: 16px 0 0; font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
}
.feed-article-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}

.feed-comments-section {
  margin-top: 28px; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.feed-comments-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.feed-comments-head h2 { margin: 0; font-size: 18px; }
.feed-comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.feed-comment {
  padding: 14px 16px; background: #faf9ff; border: 1px solid var(--line); border-radius: 14px;
}
.feed-comment-body { margin: 8px 0 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.feed-comment-empty { margin: 0; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.feed-avatar--sm { width: 32px; height: 32px; font-size: 13px; }

.cw-read-more { margin-top: 16px; font-size: 13px; }
.cw-read-more a { color: var(--accent); font-weight: 600; }
a.cw-article-card { display: block; text-decoration: none; color: inherit; }

.feed-readonly-banner {
  padding: 0 16px 16px;
}
.feed-readonly-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(90deg, #fef3c7, #fff7ed);
  border: 1px solid #fcd34d; font-size: 13px; color: #92400e;
}
.feed-readonly-inner .btn { flex-shrink: 0; padding: 8px 14px; font-size: 12px; }

.feed-l2-gate {
  padding: 40px 28px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
}
.feed-l2-gate-icon { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.feed-l2-gate h2 { margin: 0 0 10px; font-size: 20px; }
.feed-l2-gate p { margin: 0 0 8px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.feed-l2-gate-meta { font-size: 12px !important; margin-bottom: 18px !important; }

.feed-empty {
  padding: 48px 24px; text-align: center;
  background: #fff; border: 1px dashed var(--line); border-radius: 20px;
}
.feed-empty h3 { margin: 0 0 8px; }

.feed-side { display: flex; flex-direction: column; gap: 12px; }
.feed-side-card {
  padding: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.feed-side-card h3 { margin: 0 0 8px; font-size: 14px; }
.feed-side-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.feed-side-link {
  display: block; padding: 8px 0; font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.feed-side-link:last-child { border-bottom: 0; }
.feed-side-list {
  margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.7;
}
