/* 星群社区单页应用（2026-11-03）：只补视图容器的少量间隔；组件样式复用 feed/products/card.css */
.spa-tabs { display: flex; margin: 14px 0 2px; border-bottom: 1px solid var(--line); }
.spa-tabs button {
  position: relative; border: 0; background: none; cursor: pointer;
  padding: 10px 2px; margin-right: 18px; font-size: 13px; color: var(--ink3);
}
.spa-tabs button:hover { color: var(--ink2); }
.spa-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.spa-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold);
}
.spa-composer { margin-top: 16px; }
#view > .af-head { margin-bottom: 4px; }
#view .af-post:first-child { border-top: 0; }
#view .pr-grid { margin-top: 16px; }
#view .ac-card { max-width: 520px; }

/* 2026-11-03：动态页模仿推特时间线——窄列、单行推文、头像在左 */
#view[data-route="feed"] { max-width: 720px; }
#view[data-route="products"], #view[data-route="works"] { max-width: 1120px; }
/* 推文式时间线细节：整行 hover、分隔线、头像与正文的间距 */
#view[data-route="feed"] .af-post { padding: 16px 14px; border-bottom: 1px solid var(--line); border-top: 0; transition: background .15s; }
#view[data-route="feed"] .af-post:hover { background: var(--surface); }
#view[data-route="feed"] .af-post-media { margin-top: 10px; }
#view[data-route="feed"] .af-composer { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
#view[data-route="feed"] .af-post-actions { margin-top: 10px; gap: 26px; }
/* 2026-11-03：动态页更像 X 的时间线 —— 去掉外层大卡片框，改成整列流 */
#view[data-route="feed"] { border: 0; border-radius: 0; background: transparent; padding: 0; }
#view[data-route="feed"] .af-head { padding: 0 14px; }
#view[data-route="feed"] .spa-tabs { padding: 0 14px; margin-top: 10px; }
#view[data-route="feed"] .spa-composer { padding: 14px; }
#view[data-route="feed"] .af-post { padding: 14px 14px 16px; }
.spa-compose-row { display: flex; gap: 12px; align-items: flex-start; }
.spa-compose-row .af-av { margin-top: 2px; }
.spa-compose-row textarea { flex: 1; min-height: 68px; }
/* 2026-11-03：@提及金色高光 + 评论/回复排版 */
.mention {
  color: var(--gold); font-weight: 600; background: var(--gold-soft);
  border-radius: 3px; padding: 0 3px; box-decoration-break: clone;
}
.af-comment-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.af-comment-time { margin-left: auto; }
.af-comment-reply {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 11.5px; color: var(--ink3);
}
.af-comment-reply:hover { color: var(--gold); }
.af-comment.is-reply { margin-left: 30px; }
.af-comment-replying { font-size: 11.5px; color: var(--ink3); }
.af-comment-list { gap: 12px; }
.af-comment-body .mention { font-size: inherit; }
/* 2026-11-03：X 式评论线程 —— 连接线、嵌套缩进、折叠、行内回复框 */
.af-comment { position: relative; }
.af-comment-row { display: flex; gap: 8px; }
.af-comment-list { gap: 14px; }
.af-comment-children {
  list-style: none; margin: 8px 0 0 13px; padding-left: 18px;
  border-left: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.af-comment-children > .af-comment::before {
  content: ""; position: absolute; left: -18px; top: 16px;
  width: 16px; height: 2px; background: var(--line);
}
.af-comment.is-reply { margin-left: 0; }
.af-thread-toggle {
  border: 0; background: none; cursor: pointer; padding: 4px 0 2px;
  margin-left: 40px; font-size: 11.5px; color: var(--ink3); text-align: left;
}
.af-thread-toggle:hover { color: var(--gold); }
.af-thread-more {
  display: block; border: 0; background: none; cursor: pointer;
  padding: 8px 0; font-size: 12px; color: var(--gold);
}
.af-inline-reply {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 0 40px;
}
.af-inline-reply .af-av { width: 26px; height: 26px; flex-basis: 26px; font-size: 11px; }
.af-inline-reply input {
  flex: 1; min-width: 0; height: 30px; padding: 0 10px;
  border: 1px solid var(--line2); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 12.5px;
}
.af-inline-reply input:focus { outline: none; border-color: var(--gold); }
/* feed.css 里 .af-comment 是 flex 行（旧版渲染用），线程结构要改成块级，否则子回复会挤到右边 */
#view[data-route="feed"] .af-comment,
.af-comment { display: block; }
.af-comment-main { min-width: 0; }
.af-comment-children .af-comment-main { flex: 1; }
/* 2026-11-03：输入类控件用内阴影表达边界（不留硬边框） */
.af-inline-reply input,
.af-comment-form input {
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(16,15,12,.08), 0 1px 2px rgba(16,15,12,.04);
}
.af-inline-reply input:focus,
.af-comment-form input:focus { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px rgba(138,90,43,.12); }