/* VuuShow（悠逸秀）—— 贴文社区。沿用 style.css 的色板与顶栏，这里只管社区本身。
   三栏（导航 / 贴文流 / 标签）在宽屏，单栏 + 底部标签栏在窄屏与客户端嵌入。 */

.vs {
  --vs-col: 620px;
  --vs-card: #0f1626;
  --vs-hover: #131c2f;
  --vs-like: #f472b6;
  --vs-repost: #34d399;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--vs-col)) 300px;
  gap: 0 24px;
  justify-content: center;
  margin-top: 8px;
  min-height: 70vh;
}

/* ---------- 左栏导航 ---------- */
.vs-rail { position: sticky; top: 0; align-self: start; padding: 14px 0; display: flex; flex-direction: column; gap: 2px; }
.vs-rail a, .vs-rail button.vs-navbtn {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px; border: 0; background: none;
  color: var(--muted); text-decoration: none; font-size: 16px; cursor: pointer; text-align: left;
  font-family: inherit;
}
.vs-rail a:hover, .vs-rail button.vs-navbtn:hover { background: var(--panel2); color: #fff; }
.vs-rail a.on { color: #fff; font-weight: 600; }
.vs-rail svg, .vs-tabbar svg { width: 22px; height: 22px; flex: none; }
.vs-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}
.vs-badge:empty { display: none; }
.vs-compose-btn {
  margin: 12px 0 0; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ribbon); color: #fff; font-size: 16px; font-weight: 600; box-shadow: var(--gloss);
  font-family: inherit;
}
.vs-compose-btn:hover { filter: brightness(1.08); }

/* ---------- 中栏 ---------- */
.vs-main { border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.vs-head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 14, 26, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.vs-title { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; }
.vs-title h2 { margin: 0; font-size: 19px; line-height: 1.2; }
.vs-title .sub { color: var(--muted); font-size: 13px; }
.vs-back {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.vs-back:hover { background: var(--panel2); }
.vs-tabs { display: flex; }
.vs-tabs button {
  flex: 1; padding: 14px 6px; border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 15px; position: relative; font-family: inherit;
}
.vs-tabs button:hover { background: var(--vs-hover); color: #fff; }
.vs-tabs button.on { color: #fff; font-weight: 600; }
.vs-tabs button.on::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 46px; height: 4px; border-radius: 2px; background: var(--ribbon);
}

/* ---------- 发帖框 ---------- */
.vs-composer { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vs-composer textarea {
  width: 100%; min-height: 56px; max-height: 50vh; resize: none; border: 0; outline: 0; background: none;
  color: var(--text); font: inherit; font-size: 17px; line-height: 1.5; padding: 6px 0;
}
.vs-composer textarea::placeholder { color: #6b7a94; }
.vs-ctx { color: var(--muted); font-size: 13.5px; margin-bottom: 2px; }
.vs-tools { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; flex-wrap: wrap; }
.vs-tool {
  border: 0; background: none; color: var(--teal-lite); width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.vs-tool:hover { background: rgba(42, 208, 200, .12); }
.vs-tool:disabled { opacity: .4; cursor: default; }
.vs-tool svg { width: 20px; height: 20px; }
.vs-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.vs-count.over { color: #f87171; }
.vs-primary {
  border: 0; border-radius: 999px; padding: 8px 18px; background: var(--ribbon); color: #fff; font-weight: 600;
  cursor: pointer; font-size: 15px; box-shadow: var(--gloss); font-family: inherit;
}
.vs-primary:disabled { opacity: .45; cursor: default; }
.vs-secondary {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; background: none; color: var(--text);
  cursor: pointer; font-size: 14.5px; font-weight: 600; font-family: inherit;
}
.vs-secondary:hover { border-color: rgba(42, 208, 200, .55); }
.vs-secondary.on { background: var(--text); color: #0a0e1a; border-color: var(--text); }
.vs-danger { color: #f87171 !important; }
.vs-tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; align-items: center; }
.vs-tagrow input {
  border: 1px dashed var(--line); background: none; color: var(--text); border-radius: 999px; padding: 3px 10px;
  font: inherit; font-size: 13px; width: 120px; outline: 0;
}
.vs-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  background: rgba(59, 110, 245, .14); color: #9fbaff; font-size: 13px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.vs-chip:hover { border-color: rgba(59, 110, 245, .45); color: #c7d6ff; }
.vs-chip.on { background: var(--ribbon); color: #fff; }
.vs-chip b { font-weight: 400; opacity: .7; }
.vs-chip .x { opacity: .7; margin-left: 2px; }
.vs-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.vs-thumbs.video { grid-template-columns: 1fr; max-width: 320px; }
.vs-thumb { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel); aspect-ratio: 1; }
.vs-thumbs.video .vs-thumb { aspect-ratio: auto; }
.vs-thumb img, .vs-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-thumb .rm {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; font-size: 15px; line-height: 26px;
}
.vs-thumb .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--teal); transition: width .2s; }
.vs-thumb.err { outline: 2px solid #f87171; }
.vs-embed-hint { font-size: 13px; color: var(--muted); margin: 6px 0; }

/* ---------- 贴文卡片 ---------- */
.vs-post {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer;
  content-visibility: auto; contain-intrinsic-size: auto 220px;
}
.vs-post:hover { background: var(--vs-hover); }
.vs-post.main { cursor: default; grid-template-columns: 1fr; }
.vs-post.main:hover { background: none; }
.vs-post.main .vs-body { font-size: 18px; }
.vs-post.ancestor { border-bottom: 0; }
.vs-post.ancestor .vs-left::after {
  content: ""; display: block; width: 2px; margin: 4px auto 0; background: var(--line); height: calc(100% - 44px);
}
.vs-left { display: flex; flex-direction: column; align-items: center; }
.vs-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #2ad0c8, #3b6ef5 55%, #a855f7);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 16px;
  text-decoration: none;
}
.vs-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-avatar.lg { width: 88px; height: 88px; font-size: 34px; border: 4px solid #0a0e1a; }
.vs-reason { grid-column: 2; color: var(--muted); font-size: 13px; margin-bottom: -6px; display: flex; gap: 6px; align-items: center; }
.vs-reason svg { width: 14px; height: 14px; }
.vs-meta { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: nowrap; font-size: 15px; }
.vs-meta .name { font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.vs-meta .name:hover { text-decoration: underline; }
.vs-meta .handle, .vs-meta .time, .vs-meta .site { color: #7c8aa3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-meta .time { flex: none; text-decoration: none; }
.vs-meta .time:hover { text-decoration: underline; }
.vs-ai {
  flex: none; font-size: 11px; padding: 0 6px; border-radius: 6px; line-height: 18px; font-weight: 600;
  background: rgba(168, 85, 247, .18); color: var(--accent2-lite);
}
.vs-replyto { color: #7c8aa3; font-size: 14px; }
.vs-replyto a { color: #9fbaff; text-decoration: none; }
.vs-body { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.55; margin: 2px 0 0; }
.vs-body a { color: #9fbaff; text-decoration: none; }
.vs-body a:hover { text-decoration: underline; }
.vs-body.clamp { display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.vs-more { border: 0; background: none; color: #9fbaff; padding: 2px 0; cursor: pointer; font-size: 14.5px; font-family: inherit; }
.vs-unavail {
  padding: 14px 16px; margin: 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line);
  background: rgba(20, 29, 46, .5);
}
.vs-hiddenflag { font-size: 12.5px; color: var(--amber); margin-top: 4px; }

/* 媒体网格：1 张按原比例（限高），2–4 张固定 16:9 网格 */
.vs-media { margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: grid; gap: 2px; background: var(--line); }
.vs-media.n1 { grid-template-columns: 1fr; }
.vs-media.n2, .vs-media.n4 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.vs-media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.vs-media.n3 > :first-child { grid-row: span 2; }
.vs-media.n4 { grid-template-rows: 1fr 1fr; }
.vs-media button { border: 0; padding: 0; margin: 0; background: var(--panel); cursor: zoom-in; display: block; min-height: 0; }
.vs-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-media.n1 img { max-height: 560px; object-fit: contain; background: #05080f; }
.vs-media video { width: 100%; max-height: 620px; display: block; background: #000; }

.vs-embed {
  margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #05080f;
  position: relative;
}
.vs-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.vs-embed.tall { max-width: 360px; }
.vs-facade {
  width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #05080f center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #fff;
  font-family: inherit;
}
.vs-play {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .65); display: flex;
  align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .85);
}
.vs-play svg { width: 28px; height: 28px; margin-left: 4px; }
.vs-facade .lbl { font-size: 13px; background: rgba(0, 0, 0, .6); padding: 3px 10px; border-radius: 999px; }
.vs-linkcard {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); text-decoration: none;
  margin-top: 10px; border: 1px solid var(--line); border-radius: 14px;
}
.vs-linkcard:hover { background: var(--vs-hover); }
.vs-linkcard b { display: block; font-size: 14.5px; }
.vs-linkcard span { color: #7c8aa3; font-size: 13px; word-break: break-all; }
.vs-linkcard .ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--panel2); display: flex;
  align-items: center; justify-content: center; font-weight: 700; flex: none;
}

.vs-quote { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.vs-quote:hover { background: rgba(255, 255, 255, .02); }
.vs-quote .vs-meta { font-size: 14px; }
.vs-quote .vs-avatar { width: 20px; height: 20px; font-size: 10px; }
.vs-quote .vs-body { font-size: 14.5px; }
.vs-quote .vs-media { border-radius: 10px; }

.vs-actions { display: flex; justify-content: space-between; max-width: 440px; margin: 8px -8px -4px; }
.vs-post.main .vs-actions { max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; margin: 12px 0 0; }
.vs-act {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: #7c8aa3;
  font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 999px; font-family: inherit;
}
.vs-act svg { width: 18px; height: 18px; }
.vs-act:hover { color: var(--teal-lite); background: rgba(42, 208, 200, .1); }
.vs-act.like:hover, .vs-act.like.on { color: var(--vs-like); }
.vs-act.like:hover { background: rgba(244, 114, 182, .1); }
.vs-act.repost:hover, .vs-act.repost.on { color: var(--vs-repost); }
.vs-act.repost:hover { background: rgba(52, 211, 153, .1); }
.vs-act.bookmark.on { color: var(--teal-lite); }
.vs-act.on svg { fill: currentColor; }
.vs-act.repost.on svg { fill: none; }
.vs-stats { display: flex; gap: 18px; padding: 12px 0 0; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.vs-stats b { color: var(--text); }
.vs-fulltime { color: #7c8aa3; font-size: 14px; margin-top: 12px; }

/* ---------- 列表状态 ---------- */
.vs-empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.vs-empty h3 { color: var(--text); margin: 0 0 6px; font-size: 20px; }
.vs-loading { padding: 24px; display: flex; justify-content: center; }
.vs-spin {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal);
  animation: vs-spin .8s linear infinite;
}
@keyframes vs-spin { to { transform: rotate(360deg); } }
.vs-error { padding: 24px; text-align: center; color: #fca5a5; }
.vs-error button { margin-top: 10px; }
.vs-sentinel { height: 1px; }
.vs-loadmore { display: block; width: 100%; padding: 14px; border: 0; background: none; color: #9fbaff; cursor: pointer; font-size: 14.5px; border-bottom: 1px solid var(--line); font-family: inherit; }
.vs-loadmore:hover { background: var(--vs-hover); }

/* ---------- 卡片块：引导 / 登录提示 / 标签头 ---------- */
.vs-card { padding: 16px; border-bottom: 1px solid var(--line); }
.vs-card h3 { margin: 0 0 6px; font-size: 18px; }
.vs-card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.vs-card .vs-tagrow { margin-bottom: 14px; }
.vs-onboard { background: linear-gradient(120deg, rgba(42, 208, 200, .08), rgba(59, 110, 245, .08) 55%, rgba(168, 85, 247, .07)); }

/* ---------- 个人页 ---------- */
.vs-cover { height: 120px; background: linear-gradient(118deg, rgba(42, 208, 200, .35), rgba(59, 110, 245, .35) 48%, rgba(168, 85, 247, .35)); }
.vs-profile { padding: 0 16px 14px; border-bottom: 1px solid var(--line); }
.vs-profile .top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -44px; gap: 10px; }
.vs-profile .acts { display: flex; gap: 8px; align-items: center; padding-bottom: 4px; }
.vs-profile h2 { margin: 10px 0 0; font-size: 21px; display: flex; gap: 8px; align-items: center; }
.vs-profile .handle { color: #7c8aa3; font-size: 15px; }
.vs-profile .bio { white-space: pre-wrap; margin: 10px 0; font-size: 15px; }
.vs-profile .nums { display: flex; gap: 18px; font-size: 14.5px; color: var(--muted); flex-wrap: wrap; }
.vs-profile .nums a { color: var(--muted); text-decoration: none; }
.vs-profile .nums a:hover { text-decoration: underline; }
.vs-profile .nums b { color: var(--text); }
.vs-profile .note { margin-top: 10px; font-size: 13.5px; color: var(--amber); }

.vs-user { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; cursor: pointer; }
.vs-user:hover { background: var(--vs-hover); }
.vs-user .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-user .h { color: #7c8aa3; font-size: 14px; }
.vs-user .b { color: var(--muted); font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- 通知 ---------- */
.vs-note { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.vs-note:hover { background: var(--vs-hover); }
.vs-note.unread { background: rgba(59, 110, 245, .07); }
.vs-note .ico { display: flex; justify-content: flex-end; padding-top: 4px; }
.vs-note .ico svg { width: 26px; height: 26px; }
.vs-note .ico.like { color: var(--vs-like); }
.vs-note .ico.repost, .vs-note .ico.quote { color: var(--vs-repost); }
.vs-note .ico.follow { color: var(--accent); }
.vs-note .ico.reply, .vs-note .ico.mention { color: var(--teal-lite); }
.vs-note .who { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.vs-note .who .vs-avatar { width: 30px; height: 30px; font-size: 13px; }
.vs-note .txt { font-size: 15px; }
.vs-note .snip { color: var(--muted); font-size: 14px; margin-top: 4px; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ---------- 右栏 ---------- */
.vs-side { position: sticky; top: 0; align-self: start; padding: 12px 0; display: flex; flex-direction: column; gap: 16px; }
.vs-search { position: relative; }
.vs-search input {
  width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px;
  padding: 10px 16px 10px 40px; font: inherit; font-size: 14.5px; outline: 0;
}
.vs-search input:focus { border-color: var(--teal); background: #0a0e1a; }
.vs-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #7c8aa3; }
.vs-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(20, 29, 46, .5); }
.vs-box h3 { margin: 0; padding: 12px 16px 6px; font-size: 17px; }
.vs-trend { display: block; padding: 8px 16px; text-decoration: none; color: var(--text); }
.vs-trend:hover { background: var(--vs-hover); }
.vs-trend b { display: block; font-size: 15px; }
.vs-trend span { color: #7c8aa3; font-size: 12.5px; }
.vs-sidefoot { color: #6b7a94; font-size: 12.5px; padding: 0 8px; line-height: 1.6; }

.vs-explore { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vs-section { padding: 12px 16px 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); }
.vs-padded { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.vs-padded .vs-search { margin: 0; }

/* ---------- 弹层 ---------- */
.vs-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 15, .72); display: flex;
  align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; overflow-y: auto;
}
.vs-modal {
  width: 100%; max-width: 600px; background: #0d1424; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden;
}
.vs-modal .bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.vs-modal .bar h3 { margin: 0; font-size: 17px; flex: 1; }
.vs-modal .body { padding: 14px 16px; }
.vs-modal .vs-composer { border-bottom: 0; }
.vs-modal label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.vs-modal input[type=text], .vs-modal textarea.f {
  width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 15px; outline: 0;
}
.vs-modal input[type=text]:focus, .vs-modal textarea.f:focus { border-color: var(--teal); }
.vs-modal textarea.f { min-height: 90px; resize: vertical; }
.vs-modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.vs-menu { min-width: 200px; max-width: 320px; background: #0d1424; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); position: fixed; z-index: 110; }
.vs-menu button {
  display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; color: var(--text);
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14.5px; text-align: left;
}
.vs-menu button:hover { background: #1c2942; }
.vs-menu svg { width: 18px; height: 18px; }

.vs-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.vs-lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.vs-lightbox button {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer; font-size: 20px;
}
.vs-lightbox .close { top: 16px; left: 16px; }
.vs-lightbox .prev { left: 16px; top: 50%; }
.vs-lightbox .next { right: 16px; top: 50%; }

.vs-toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 130;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: 90vw; text-align: center;
}
.vs-toast.err { background: #b91c1c; }

/* ---------- 底部标签栏（窄屏 / 客户端） ---------- */
.vs-tabbar { display: none; }
.vs-fab {
  display: none; position: fixed; right: 18px; bottom: 76px; z-index: 40; width: 56px; height: 56px;
  border-radius: 50%; border: 0; background: var(--ribbon); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  cursor: pointer; align-items: center; justify-content: center;
}
.vs-fab svg { width: 24px; height: 24px; }

@media (max-width: 1180px) {
  .vs { grid-template-columns: 72px minmax(0, var(--vs-col)) 280px; }
  .vs-rail span.l { display: none; }
  .vs-rail a, .vs-rail button.vs-navbtn { justify-content: center; padding: 12px; position: relative; }
  .vs-rail .vs-badge { position: absolute; top: 4px; right: 6px; }
  .vs-compose-btn { width: 50px; height: 50px; padding: 0; font-size: 0; display: flex; align-items: center; justify-content: center; }
  .vs-compose-btn::before { content: "+"; font-size: 26px; line-height: 1; }
}
@media (max-width: 1000px) {
  .vs { grid-template-columns: 72px minmax(0, var(--vs-col)); }
  .vs-side { display: none; }
}
@media (max-width: 700px) {
  .vs { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .vs-rail { display: none; }
  .vs-main { border: 0; padding-bottom: 64px; }
  .vs-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 56px;
    background: rgba(10, 14, 26, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .vs-tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); position: relative; text-decoration: none; }
  .vs-tabbar span.l { display: none; }
  .vs-tabbar svg { width: 25px; height: 25px; }
  .vs-tabbar a.on { color: #fff; }
  .vs-tabbar .vs-badge { position: absolute; top: 6px; left: 54%; }
  .vs-fab { display: flex; }
  .vs-post, .vs-composer { padding-left: 12px; padding-right: 12px; }
  .vs-overlay { padding: 0; }
  .vs-modal { border-radius: 0; min-height: 100vh; max-width: none; border: 0; }
  .shell:has(.vs) { padding-left: 0; padding-right: 0; padding-top: 0; }
  .shell:has(.vs) .site-head { padding: 8px 14px; gap: 8px; }
  /* 手机上站点导航收成一行横滑，不占半屏 */
  .shell:has(.vs) .site-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; order: 3; scrollbar-width: none; }
  .shell:has(.vs) .site-nav::-webkit-scrollbar { display: none; }
  .shell:has(.vs) .site-nav a { white-space: nowrap; padding: 5px 9px; }
  .shell:has(.vs) .brand:not(.has-art) { font-size: 17px; }
  .shell:has(.vs) .brand-img { height: 22px; }
}

/* 客户端嵌入（VuNiti 内置浏览器）：没有站点顶栏和页脚，只剩社区本身 */
html.vs-embed .site-head, html.vs-embed .site-foot { display: none; }
html.vs-embed .shell { padding: 0; max-width: none; }
html.vs-embed .vs { margin-top: 0; }

/* ---------- AI ---------- */
.vs-ai-tool { color: var(--accent2-lite); }
.vs-ai-tool:hover { background: rgba(168, 85, 247, .14); }
.vs-media button, .vs-media.n1 { position: relative; }
.vs-aibadge {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #fff;
  background: rgba(88, 28, 135, .78); backdrop-filter: blur(6px); pointer-events: auto;
}
.vs-aibadge svg { width: 12px; height: 12px; }
.vs-media.n1 .vs-aibadge { bottom: auto; top: 8px; }
.vs-translation { margin-top: 8px; padding: 8px 12px; border-left: 3px solid rgba(168, 85, 247, .6); background: rgba(168, 85, 247, .06); border-radius: 0 10px 10px 0; }
.vs-translation .lbl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent2-lite); margin-bottom: 4px; }
.vs-translation .lbl svg { width: 14px; height: 14px; }
.vs-gen { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: linear-gradient(135deg, rgba(42, 208, 200, .12), rgba(168, 85, 247, .16)); }
.vs-thumbs.video .vs-gen { aspect-ratio: 16 / 9; }
.vs-gen-in { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-align: center; padding: 8px; }
.vs-check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text) !important; cursor: pointer; margin: 10px 0 4px; }
.vs-note-line { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.vs-modal select.f { width: auto; min-width: 120px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; }
.vs-job { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vs-job-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.vs-job-top .vs-chip svg { width: 13px; height: 13px; }
.vs-job-st { font-weight: 600; }
.vs-job-st.succeeded { color: var(--green); }
.vs-job-st.failed, .vs-job-st.canceled { color: #fca5a5; }
.vs-job-st.waiting_node, .vs-job-st.running, .vs-job-st.pending { color: var(--amber); }
.vs-job-time { color: #7c8aa3; margin-left: auto; }
.vs-job-prompt { margin-top: 6px; font-size: 14.5px; white-space: pre-wrap; }
.vs-job-err { margin-top: 6px; font-size: 13px; color: #fca5a5; }
.vs-job-media { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); max-width: 420px; }
.vs-job-media img, .vs-job-media video { width: 100%; display: block; background: #05080f; }
.vs-note .ico.ai_done { color: var(--accent2-lite); }
.vs-note .ico.ai_failed { color: #fca5a5; }

/* ---------- 设置 / Agent 接入 ---------- */
.vs-kv { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; font-size: 13.5px; flex-wrap: wrap; }
.vs-kv span { color: var(--muted); min-width: 44px; }
.vs-kv code, .vs-secret pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.vs-kv code { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.vs-sub { display: block; margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
.vs-card input[type=text] {
  width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 15px; outline: 0; margin-bottom: 4px;
}
.vs-card input[type=text]:focus { border-color: var(--teal); }
.vs-card .vs-check { margin: 4px 14px 4px 0; }
.vs-secret { margin-top: 14px; padding: 12px; border: 1px solid rgba(244, 194, 107, .5); border-radius: 12px; background: rgba(244, 194, 107, .06); }
.vs-secret pre { background: #05080f; border: 1px solid var(--line); border-radius: 8px; padding: 10px; white-space: pre-wrap; margin: 8px 0; }
.vs-secret p { margin: 12px 0 0; color: var(--muted); }
.vs-token { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.vs-token .sub { font-size: 12.5px; color: #7c8aa3; margin-top: 2px; }
