/* 主题变量统一由 ../shared/tokens.css 提供 */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--bg);
}

body {
  overflow: hidden;
  color: var(--cream);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

a,
button {
  color: inherit;
  font: inherit;
}

.plaza-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: url("./assets/plaza-bg.webp") center center / cover no-repeat;
  padding-bottom: 172px;
}

.plaza-page::before,
.plaza-page::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.plaza-page::before {
  background:
    radial-gradient(ellipse at 50% 64%, rgba(255, 150, 41, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(3, 7, 10, 0.62) 0%, rgba(4, 7, 8, 0.24) 38%, rgba(5, 5, 4, 0.42) 100%);
}

.plaza-page::after {
  border: 1px solid rgba(255, 220, 145, 0.03);
  background: rgba(0, 0, 0, 0.12);
}

.plaza-page > .site-header,
.plaza-shell,
.composer {
  position: relative;
  z-index: 2;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 21, 18, 0.72), rgba(14, 15, 13, 0.54));
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.32),
    inset 0 0 26px rgba(255, 216, 139, 0.04);
  backdrop-filter: blur(10px);
}

.plaza-shell {
  display: grid;
  grid-template-columns: 270px minmax(620px, 1fr) 394px;
  gap: 20px;
  width: calc(100% - 108px);
  height: calc(100vh - 238px);
  min-height: 478px;
  margin: -4px auto 0;
}

.left-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 10px 18px;
  border-radius: 14px;
}

.panel-title,
.feed-header,
.side-title,
.online-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  padding: 0 10px 18px;
}

.panel-title h2,
.side-title h2,
.online-head h2 {
  margin: 0;
  color: #ffd990;
  font-family: "STSong", "SimSun", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.panel-title h2 {
  flex: 1;
  margin-left: 12px;
  font-size: 20px;
}

.list-icon,
.menu-icon,
.cat-glyph,
.metric-icon,
.comment-icon,
.like-icon,
.bell-button,
.flame,
.bag {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.list-icon,
.menu-icon {
  width: 24px;
  height: 24px;
}

.list-icon::before,
.menu-icon::before {
  position: absolute;
  inset: 4px 3px;
  content: "";
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 3px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 8px / 3px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 16px / 3px 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 8px 0 / 13px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 8px 8px / 13px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 8px 16px / 13px 2px no-repeat;
}

.menu-icon::before {
  transform: scaleX(-1);
}

.category-list {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-height: 0;
}

.category-item {
  display: grid;
  grid-template-columns: 32px 1fr 8px 38px;
  align-items: center;
  min-height: clamp(48px, 6.55vh, 58px);
  padding: 0 16px;
  color: rgba(255, 235, 190, 0.82);
  text-decoration: none;
  border: 1px solid rgba(244, 200, 121, 0.09);
  border-radius: 10px;
  background: rgba(16, 17, 14, 0.34);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.category-item.active {
  color: #fff1d2;
  border-color: rgba(255, 196, 103, 0.54);
  background: linear-gradient(180deg, rgba(168, 113, 55, 0.62), rgba(111, 73, 35, 0.5));
  box-shadow: inset 0 0 18px rgba(255, 231, 171, 0.08), 0 0 20px rgba(255, 166, 58, 0.08);
}

.category-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98e46e;
  box-shadow: 0 0 10px rgba(152, 228, 110, 0.75);
}

.category-item strong {
  color: #f6c875;
  font-weight: 500;
  text-align: right;
}

.category-item:hover,
.category-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(244, 200, 121, 0.28);
}

.cat-glyph {
  width: 22px;
  height: 22px;
  color: #f7cc86;
}

.cat-glyph::before,
.cat-glyph::after {
  position: absolute;
  content: "";
}

.cat-glyph.chat::before {
  inset: 4px 2px 6px;
  border-radius: 12px;
  background: #ffe8b3;
}

.cat-glyph.chat::after {
  left: 6px;
  top: 9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6d5637;
  box-shadow: 5px 0 #6d5637, 10px 0 #6d5637;
}

.cat-glyph.ask::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cat-glyph.ask::after {
  left: 9px;
  top: 6px;
  width: 4px;
  height: 8px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  border-radius: 7px 7px 0 0;
}

.cat-glyph.link::before {
  inset: 6px 4px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 8px;
  transform: rotate(-35deg);
}

.cat-glyph.link::after {
  inset: 6px 4px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 8px;
  transform: rotate(35deg);
}

.cat-glyph.gear::before {
  inset: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -6px 0 -3px currentColor, 0 6px 0 -3px currentColor, -6px 0 0 -3px currentColor, 6px 0 0 -3px currentColor;
}

.cat-glyph.live::before {
  inset: 5px 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.cat-glyph.live::after {
  right: 2px;
  top: 8px;
  border: 4px solid transparent;
  border-left-color: currentColor;
}

.cat-glyph.room::before {
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: skew(-7deg);
}

.cat-glyph.room::after {
  left: 7px;
  top: 11px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px currentColor;
}

.cat-glyph.note::before {
  inset: 5px 3px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.cat-glyph.note::after {
  left: 8px;
  top: 9px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px currentColor;
}

.create-channel {
  position: static;
  width: calc(100% - 58px);
  min-height: 46px;
  margin: 18px auto 0;
  border: 1px solid rgba(244, 200, 121, 0.48);
  border-radius: 11px;
  color: #f6cd87;
  background: linear-gradient(180deg, rgba(121, 78, 35, 0.42), rgba(74, 46, 21, 0.34));
  cursor: pointer;
}

.create-channel span {
  margin-right: 8px;
  font-size: 22px;
  line-height: 0;
}

.feed-panel {
  overflow: hidden;
  border-radius: 14px;
}

.feed-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.feed-panel .post-card {
  flex: 0 0 auto;
}

.feed-header {
  height: 64px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(244, 200, 121, 0.16);
  box-shadow: inset 0 -1px 18px rgba(255, 176, 60, 0.04);
}

.feed-header h1 {
  display: inline;
  margin: 0 18px 0 0;
  color: #ffd990;
  font-family: "STSong", "SimSun", serif;
  font-size: 28px;
  letter-spacing: 0;
}

.feed-header span {
  color: rgba(255, 232, 189, 0.56);
  font-size: 13px;
}

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

.select-button {
  min-width: 98px;
  height: 32px;
  padding: 0 34px 0 14px;
  border: 1px solid rgba(244, 200, 121, 0.2);
  border-radius: 7px;
  color: rgba(255, 235, 190, 0.58);
  background: rgba(21, 21, 17, 0.62);
  cursor: pointer;
}

.select-button::after {
  content: "⌄";
  margin-left: 22px;
}

.bell-button {
  width: 26px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bell-button::before {
  position: absolute;
  left: 7px;
  top: 5px;
  width: 11px;
  height: 13px;
  content: "";
  border: 2px solid rgba(244, 200, 121, 0.8);
  border-radius: 10px 10px 4px 4px;
}

.bell-button::after {
  position: absolute;
  left: 10px;
  top: 20px;
  width: 7px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: rgba(244, 200, 121, 0.8);
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  min-height: 108px;
  padding: 18px 18px 14px 28px;
  border-bottom: 1px solid rgba(255, 236, 184, 0.12);
  background: rgba(11, 12, 11, 0.22);
}

.post-card.is-new {
  animation: new-post 520ms ease both;
}

.post-card.featured {
  min-height: 120px;
  margin: 0 12px 0;
  border: 1px solid rgba(255, 178, 74, 0.54);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(34, 31, 22, 0.64), rgba(19, 19, 16, 0.46));
  box-shadow: inset 0 0 22px rgba(255, 173, 57, 0.08), 0 0 18px rgba(255, 150, 35, 0.08);
}

.post-card.compact {
  min-height: 92px;
}

.avatar {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 235, 190, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 226, 185, 0.98) 0 13%, transparent 14%),
    radial-gradient(circle at 50% 78%, rgba(35, 25, 20, 0.9) 0 26%, transparent 27%),
    linear-gradient(135deg, #2f3a43, #c9a063);
  box-shadow: 0 0 14px rgba(244, 200, 121, 0.13);
}

.avatar-1 { background-color: #1f2b32; background-image: radial-gradient(circle at 48% 31%, #d5b27d 0 13%, transparent 14%), radial-gradient(circle at 49% 74%, #151a1d 0 28%, transparent 29%), linear-gradient(135deg, #111820, #9d6f42); }
.avatar-2 { background-color: #5b4037; background-image: radial-gradient(circle at 50% 31%, #f2c99a 0 13%, transparent 14%), radial-gradient(circle at 51% 75%, #38251e 0 28%, transparent 29%), linear-gradient(135deg, #e1d7c8, #5c3228); }
.avatar-3 { background-color: #dbc5a2; background-image: radial-gradient(circle at 50% 31%, #e6be8b 0 13%, transparent 14%), radial-gradient(circle at 49% 74%, #2a231e 0 28%, transparent 29%), linear-gradient(135deg, #edd4a9, #3a2b21); }
.avatar-4 { background-color: #243326; background-image: radial-gradient(circle at 50% 31%, #e8ba8d 0 13%, transparent 14%), radial-gradient(circle at 50% 74%, #211916 0 28%, transparent 29%), linear-gradient(135deg, #27372e, #cba16f); }
.avatar-5 { background-color: #101820; background-image: radial-gradient(circle at 50% 31%, #c49a73 0 13%, transparent 14%), radial-gradient(circle at 50% 74%, #121214 0 28%, transparent 29%), linear-gradient(135deg, #0c151d, #3d4a4b); }
.avatar-6 { background-color: #42312d; background-image: radial-gradient(circle at 50% 31%, #d6a87d 0 13%, transparent 14%), radial-gradient(circle at 50% 74%, #281d1a 0 28%, transparent 29%), linear-gradient(135deg, #2b2021, #9a704f); }
.avatar-7 { background-color: #67583d; background-image: radial-gradient(circle at 50% 31%, #d7b078 0 13%, transparent 14%), radial-gradient(circle at 50% 74%, #2e281d 0 28%, transparent 29%), linear-gradient(135deg, #4e432d, #ae8352); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}

.post-meta strong {
  color: #ffd174;
  font-size: 17px;
}

.post-meta span,
.post-meta time {
  color: rgba(255, 236, 197, 0.54);
  font-size: 12px;
}

.post-meta em {
  padding: 4px 10px;
  color: #f1c877;
  font-size: 12px;
  font-style: normal;
  border: 1px solid rgba(244, 200, 121, 0.38);
  border-radius: 999px;
  background: rgba(27, 22, 14, 0.7);
}

.post-body p {
  margin: 6px 0 0;
  color: rgba(255, 240, 210, 0.82);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

.post-body a {
  color: #f6c45e;
  text-decoration: none;
}

.post-actions {
  position: absolute;
  right: 34px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 236, 195, 0.67);
  font-size: 13px;
}

.post-actions b,
.action-divider {
  width: 1px;
  height: 16px;
  background: rgba(244, 200, 121, 0.14);
}

.post-actions strong,
.action-count {
  color: #f5c56f;
  font-weight: 500;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 2px;
  border: 0;
  color: rgba(255, 236, 195, 0.7);
  background: transparent;
  cursor: pointer;
}

.action-button:hover,
.action-button:focus-visible {
  color: #ffd990;
}

.comment-icon {
  width: 17px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.comment-icon::after {
  position: absolute;
  left: 3px;
  bottom: -4px;
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: rotate(25deg);
}

.like-icon {
  width: 16px;
  height: 16px;
}

.like-icon::before {
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 12px;
  content: "";
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 4px 4px 2px 2px;
  transform: rotate(6deg);
}

.like-icon::after {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 5px;
  height: 8px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 2px;
}

.hot-mark {
  position: absolute;
  right: 20px;
  top: 24px;
  width: 17px;
  height: 22px;
  border-radius: 60% 60% 60% 0;
  background: linear-gradient(180deg, #ffe4a6, #ff9b2a);
  box-shadow: 0 0 18px rgba(255, 160, 39, 0.7);
  transform: rotate(-38deg);
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 8px;
  padding: 0 12px;
  color: rgba(255, 240, 210, 0.7);
  font-size: 13px;
  border: 1px solid rgba(244, 200, 121, 0.18);
  border-radius: 7px;
  background: rgba(9, 10, 9, 0.3);
}

.attachment span {
  width: 14px;
  height: 16px;
  border: 1px solid #d5b16d;
  border-radius: 2px;
}

.attachment b {
  margin-left: 12px;
  color: rgba(255, 240, 210, 0.58);
  font-weight: 400;
}

.right-rail {
  display: grid;
  grid-template-rows: 128px minmax(220px, 1fr) 188px 96px;
  gap: 10px;
  min-height: 0;
}

.side-card,
.online-card {
  border-radius: 13px;
  padding: 12px;
  overflow: hidden;
}

.side-title,
.online-head {
  margin-bottom: 10px;
}

.side-title h2,
.online-head h2 {
  font-size: 21px;
}

.side-title a,
.online-head a {
  color: #e8bd75;
  font-size: 12px;
  text-decoration: none;
}

.flame {
  width: 17px;
  height: 21px;
  margin-right: 9px;
  vertical-align: -4px;
  border-radius: 60% 60% 60% 0;
  background: linear-gradient(180deg, #ffe4a6, #ff9b2a);
  box-shadow: 0 0 14px rgba(255, 160, 39, 0.5);
  transform: rotate(-38deg);
}

.bag {
  width: 17px;
  height: 17px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid #f6cb82;
  border-radius: 3px;
}

.bag::before {
  position: absolute;
  left: 3px;
  top: -7px;
  width: 7px;
  height: 7px;
  content: "";
  border: 2px solid #f6cb82;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 80px;
  padding: 14px 8px;
  border: 1px solid rgba(244, 200, 121, 0.14);
  border-radius: 8px;
  background: rgba(9, 10, 9, 0.3);
}

.metrics div {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 8px;
  align-items: center;
}

.metrics div + div {
  border-left: 1px solid rgba(244, 200, 121, 0.13);
  padding-left: 10px;
}

.metrics strong {
  color: #ffe0a2;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.metrics em {
  grid-column: 2;
  color: rgba(255, 236, 197, 0.58);
  font-size: 11px;
  font-style: normal;
}

.metric-icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(244, 200, 121, 0.22);
  border-radius: 6px;
}

.metric-icon::before,
.metric-icon::after {
  position: absolute;
  content: "";
}

.metric-icon.user::before {
  left: 9px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 1px solid #efc783;
  border-radius: 50%;
}

.metric-icon.user::after {
  left: 6px;
  bottom: 6px;
  width: 14px;
  height: 7px;
  border: 1px solid #efc783;
  border-radius: 9px 9px 2px 2px;
}

.metric-icon.msg::before {
  inset: 7px 5px;
  border: 1px solid #efc783;
  border-radius: 3px;
}

.metric-icon.clock::before {
  inset: 6px;
  border: 1px solid #efc783;
  border-radius: 50%;
}

.metric-icon.clock::after {
  left: 14px;
  top: 9px;
  width: 1px;
  height: 7px;
  background: #efc783;
  box-shadow: 3px 5px 0 #efc783;
}

.story-list,
.recruit-list {
  display: grid;
  gap: 7px;
}

.story-list article,
.recruit-list article {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 6px;
  border: 1px solid rgba(244, 200, 121, 0.13);
  border-radius: 7px;
  background: rgba(12, 13, 11, 0.33);
}

.thumb,
.mini-cover {
  display: block;
  width: 104px;
  height: 54px;
  border-radius: 5px;
  border: 1px solid rgba(244, 200, 121, 0.22);
}

.thumb-1 { background: linear-gradient(160deg, rgba(255, 183, 73, 0.58), transparent 45%), url("./assets/plaza-bg.webp") 49% 70% / 360px auto; }
.thumb-2 { background: linear-gradient(160deg, rgba(255, 183, 73, 0.5), transparent 55%), url("./assets/plaza-bg.webp") 42% 76% / 420px auto; }
.thumb-3 { background: linear-gradient(135deg, rgba(72, 142, 185, 0.58), rgba(16, 13, 11, 0.4)), url("./assets/plaza-bg.webp") 61% 53% / 390px auto; }

.story-list strong,
.recruit-list strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 237, 201, 0.88);
  font-size: 14px;
  font-weight: 500;
}

.story-list em,
.recruit-list em {
  color: rgba(255, 236, 197, 0.52);
  font-size: 12px;
  font-style: normal;
}

.recruit-list article {
  grid-template-columns: 70px 1fr 70px;
}

.mini-cover {
  display: grid;
  place-items: end center;
  width: 70px;
  height: 54px;
  padding-bottom: 5px;
  color: #f5ca80;
  font-size: 12px;
  font-weight: 700;
  background: url("./assets/plaza-bg.webp") center / 390px auto;
}

.cover-2 {
  background-position: 61% 58%;
}

.recruit-list b {
  color: #f5c56f;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.online-card {
  min-height: 96px;
}

.online-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.online-list span {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.online-list .avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-width: 1px;
}

.online-list em {
  color: rgba(255, 236, 197, 0.62);
  font-size: 11px;
  font-style: normal;
}

.composer {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 8;
  width: min(860px, calc(100% - 300px));
  min-height: 132px;
  margin: 0;
  padding: 12px 30px 18px;
  border: 1px solid rgba(244, 200, 121, 0.25);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(91, 54, 24, 0.62), rgba(17, 15, 12, 0.82));
  box-shadow: 0 -8px 32px rgba(255, 157, 39, 0.18), inset 0 0 35px rgba(255, 227, 168, 0.05);
  transform: translateX(-50%);
}

.composer nav {
  display: flex;
  gap: 28px;
  margin: 0 0 8px;
}

.composer nav button {
  position: relative;
  padding: 0 0 9px;
  border: 0;
  color: rgba(255, 236, 197, 0.62);
  background: transparent;
  cursor: pointer;
}

.composer nav button.active {
  color: #ffd994;
}

.composer nav button + button::before {
  position: absolute;
  left: -15px;
  top: 2px;
  width: 1px;
  height: 16px;
  content: "";
  background: rgba(244, 200, 121, 0.17);
}

.composer-input {
  position: relative;
  min-height: 78px;
  padding: 16px 150px 13px 30px;
  border: 1px solid rgba(244, 200, 121, 0.28);
  border-radius: 14px;
  background: rgba(10, 10, 9, 0.58);
}

.composer-input textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  max-height: 58px;
  margin: 0;
  padding: 0;
  resize: none;
  overflow: auto;
  border: 0;
  outline: 0;
  color: rgba(255, 241, 210, 0.9);
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
}

.composer-input textarea::placeholder {
  color: rgba(255, 237, 201, 0.48);
}

.composer-status {
  position: absolute;
  right: 26px;
  top: 16px;
  margin: 0;
  color: rgba(255, 237, 201, 0.48);
  font-size: 12px;
}

.composer-icons {
  position: absolute;
  left: 28px;
  bottom: 12px;
  display: flex;
  gap: 22px;
}

.composer-icons button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  color: #f0c780;
  background: transparent;
  cursor: pointer;
}

.image-button {
  position: relative;
  border: 1px solid currentColor !important;
  border-radius: 3px;
}

.image-button::before {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 14px;
  height: 8px;
  content: "";
  background: linear-gradient(135deg, transparent 50%, currentColor 51%) left bottom / 8px 8px no-repeat,
    linear-gradient(45deg, transparent 50%, currentColor 51%) right bottom / 10px 9px no-repeat;
}

.topic-button {
  border: 1px solid currentColor !important;
  border-radius: 50%;
  font-size: 17px;
  line-height: 20px;
}

.smile-button {
  position: relative;
  border: 1px solid currentColor !important;
  border-radius: 50%;
}

.smile-button::before {
  position: absolute;
  left: 6px;
  top: 7px;
  width: 3px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px 0 currentColor;
}

.smile-button::after {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 10px;
  height: 5px;
  content: "";
  border-bottom: 1px solid currentColor;
  border-radius: 0 0 10px 10px;
}

.send-button {
  position: absolute;
  right: 26px;
  bottom: 14px;
  min-width: 90px;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: #53300b;
  font-weight: 700;
  background: linear-gradient(180deg, #ffe08a, #e09930);
  box-shadow: 0 0 24px rgba(255, 190, 82, 0.42), inset 0 1px 10px rgba(255, 255, 221, 0.22);
  cursor: pointer;
}

.send-button:disabled {
  color: rgba(255, 225, 170, 0.45);
  background: rgba(89, 63, 32, 0.42);
  box-shadow: none;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes new-post {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  body {
    overflow-y: auto;
  }

  .plaza-page {
    min-height: 100svh;
    overflow: hidden auto;
    padding-bottom: 178px;
  }

  .plaza-shell {
    grid-template-columns: 260px minmax(0, 1fr);
    height: auto;
    width: calc(100% - 48px);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .composer {
    width: calc(100% - 48px);
    max-width: 860px;
  }
}

@media (max-width: 760px) {
  .plaza-shell {
    display: block;
    width: calc(100% - 28px);
    min-height: 0;
  }

  .left-panel,
  .feed-panel,
  .right-rail {
    margin-bottom: 14px;
  }

  .left-panel {
    min-height: auto;
    padding-bottom: 78px;
  }

  .post-card {
    grid-template-columns: 46px 1fr;
    padding: 14px 12px;
  }

  .avatar {
    width: 46px;
    height: 46px;
  }

  .post-actions {
    position: static;
    margin-top: 10px;
  }

  .right-rail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .story-list article,
  .recruit-list article {
    grid-template-columns: 82px 1fr;
  }

  .recruit-list article {
    grid-template-columns: 70px 1fr;
  }

  .recruit-list b {
    grid-column: 2;
    text-align: left;
  }

  .composer {
    width: calc(100% - 28px);
    padding: 12px;
    border-radius: 16px;
  }

  .composer-input {
    padding: 14px 14px 62px;
  }

  .send-button {
    right: 14px;
  }
}

/* ============================================================
   真实数据版：空状态 / 回复引用 / 回复按钮 / 新村民链接
   ============================================================ */
.feed-empty {
  padding: 48px 0;
  margin: 0;
  color: var(--xh-faint, rgba(247, 229, 195, .45));
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.reply-quote {
  margin: 6px 0 8px;
  padding: 8px 12px;
  color: var(--xh-faint, rgba(247, 229, 195, .5));
  font-size: 12.5px;
  border-left: 2px solid rgba(218, 156, 65, .45);
  border-radius: 4px;
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-quote b {
  color: var(--xh-gold-deep, #d7a95f);
}

.reply-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: rgba(247, 229, 195, .6);
  font-size: 12.5px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

.reply-action:hover {
  color: var(--xh-gold, #f4c879);
  border-color: rgba(218, 156, 65, .35);
  background: rgba(255, 255, 255, .03);
}

.cancel-reply {
  margin-left: 10px;
  padding: 2px 10px;
  color: rgba(247, 229, 195, .55);
  font-size: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(218, 156, 65, .3);
  border-radius: 999px;
}

.cancel-reply:hover {
  color: #ff8a3d;
  border-color: rgba(255, 138, 61, .5);
}

.online-list a {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.online-list a em {
  max-width: 64px;
  overflow: hidden;
  font-style: normal;
  font-size: 12px;
  color: rgba(247, 229, 195, .7);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-list a:hover em {
  color: var(--xh-gold, #f4c879);
}

textarea:disabled {
  opacity: .5;
  cursor: not-allowed;
}
