/* 微光 Weet —— 样式表 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9f9;
  --surface-3: #eff3f4;
  --border: #e6ecf0;
  --text: #0f1419;
  --text-dim: #536471;
  --accent: #1d9bf0;
  --accent-text: #ffffff;
  --accent-weak: rgba(29, 155, 240, 0.1);
  --like: #f91880;
  --like-weak: rgba(249, 24, 128, 0.1);
  --green: #00ba7c;
  --danger: #f4212e;
  --danger-weak: rgba(244, 33, 46, 0.1);
  --pin: #b45309;
  --pin-weak: rgba(217, 119, 6, 0.12);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}
[data-theme='dark'] {
  --bg: #000000;
  --surface: #16181c;
  --surface-2: #1c1f23;
  --surface-3: #26292e;
  --border: #2f3336;
  --text: #e7e9ea;
  --text-dim: #71767b;
  --accent: #1d9bf0;
  --accent-weak: rgba(29, 155, 240, 0.15);
  --pin: #fbbf24;
  --pin-weak: rgba(251, 191, 36, 0.16);
  --shadow: 0 1px 3px rgba(255, 255, 255, 0.04), 0 8px 28px rgba(0, 0, 0, 0.5);
}
[data-theme='dim'] {
  --bg: #15202b;
  --surface: #1e2732;
  --surface-2: #243447;
  --surface-3: #2b3c50;
  --border: #38444d;
  --text: #f7f9f9;
  --text-dim: #8b98a5;
  --pin: #fbbf24;
  --pin-weak: rgba(251, 191, 36, 0.16);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.hidden {
  display: none !important;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 8px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--surface-2);
}
.btn-ghost {
  color: var(--text-dim);
}
.btn-ghost:hover {
  background: var(--surface-3);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger-outline {
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger-outline:hover {
  background: var(--danger-weak);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}
.btn.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

/* ---------------- 登录页 ---------------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  gap: 40px;
}
.auth-left {
  padding: 20px;
}
.logo-mark {
  font-size: 34px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-brand h1 {
  font-size: 28px;
  margin: 0;
  letter-spacing: 2px;
}
.auth-hero h2 {
  font-size: 44px;
  line-height: 1.15;
  margin: 48px 0 12px;
  letter-spacing: -1px;
}
.auth-hero p {
  color: var(--text-dim);
  font-size: 18px;
  margin: 0;
}
.auth-features {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 12px;
  color: var(--text-dim);
}
.auth-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.auth-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  background: none;
  border: none;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}
.auth-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.auth-form input:focus {
  border-color: var(--accent);
  background: var(--bg);
}
.auth-hint {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.7;
}
.auth-hint code {
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 5px;
}
.auth-error {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--danger-weak);
  color: var(--danger);
  font-size: 14px;
}

/* ---------------- 主布局 ---------------- */
.app {
  display: grid;
  grid-template-columns: 250px minmax(0, 600px) 350px;
  max-width: 1265px;
  margin: 0 auto;
  min-height: 100vh;
  gap: 0;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 12px 16px;
  border-right: 1px solid var(--border);
}
.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand {
  display: flex;
  align-items: center;
  padding: 10px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 500;
  width: fit-content;
  transition: 0.15s;
  position: relative;
}
.nav-item:hover {
  background: var(--surface-3);
}
.nav-item.active {
  font-weight: 800;
}
.nav-item.active .nav-label {
  color: var(--text);
}
.ico {
  font-size: 22px;
  width: 24px;
  text-align: center;
}
.badge {
  position: absolute;
  left: 26px;
  top: 6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}
.btn-post {
  margin-top: 16px;
  padding: 14px;
  font-size: 16px;
  width: 90%;
}
.me-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: none;
  background: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.me-card:hover {
  background: var(--surface-3);
}
.me-info {
  display: grid;
  flex: 1;
  min-width: 0;
}
.me-info b {
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-info small {
  color: var(--text-dim);
  font-size: 13px;
}
.me-more {
  color: var(--text-dim);
}

.main {
  border-right: 1px solid var(--border);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-head {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}
.main-body {
  padding-bottom: 80px;
}
.aside-right {
  padding: 8px 0 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.mobile-nav,
.fab {
  display: none;
}

/* ---------------- 头像 ---------------- */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  flex: none;
  background-size: cover;
  background-position: center;
  font-size: 15px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.av-40 {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.av-48 {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.av-32 {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.av-64 {
  width: 64px;
  height: 64px;
  font-size: 24px;
}
.av-96 {
  width: 96px;
  height: 96px;
  font-size: 34px;
  border: 3px solid var(--bg);
}

/* ---------------- 标题栏 ---------------- */
.head-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.head-bar h2 {
  font-size: 19px;
  margin: 0;
  font-weight: 800;
}
.head-bar .sub {
  font-size: 13px;
  color: var(--text-dim);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  cursor: pointer;
  color: var(--text-dim);
  font-weight: 600;
  border: none;
  background: none;
  position: relative;
  font-size: 15px;
}
.tab:hover {
  background: var(--surface-2);
}
.tab.active {
  color: var(--text);
  font-weight: 800;
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

/* ---------------- 发帖框 ---------------- */
.composer {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.composer-body {
  flex: 1;
  min-width: 0;
}
.composer textarea {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 19px;
  line-height: 1.4;
  min-height: 52px;
  padding: 8px 0;
  color: var(--text);
}
.composer textarea::placeholder {
  color: var(--text-dim);
}
.img-grid {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  border-radius: 14px;
  overflow: hidden;
}
.img-grid.g1 {
  grid-template-columns: 1fr;
}
.img-grid.g2 {
  grid-template-columns: 1fr 1fr;
}
.img-grid.g3,
.img-grid.g4 {
  grid-template-columns: 1fr 1fr;
}
.img-grid .thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--surface-3);
}
.img-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-grid .thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
}
.composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.composer-bar .spacer {
  flex: 1;
}
.icon-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 19px;
  padding: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.icon-btn:hover {
  background: var(--accent-weak);
}
.counter {
  font-size: 13px;
  color: var(--text-dim);
}
.counter.warn {
  color: var(--danger);
}

/* ---------------- 帖子 ---------------- */
.post {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.post:hover {
  background: var(--surface-2);
}
.post-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.post-main {
  flex: 1;
  min-width: 0;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  flex-wrap: wrap;
}
.post-head .name {
  font-weight: 700;
}
.post-head .handle,
.post-head .dot,
.post-head .time {
  color: var(--text-dim);
}
.post-head .time:hover {
  text-decoration: underline;
}
.post-text {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 2px 0 0;
  font-size: 15px;
}
.post-text .tag,
.post-text .mention {
  color: var(--accent);
}
.post-media {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: grid;
  gap: 2px;
}
.post-media.g1 {
  grid-template-columns: 1fr;
}
.post-media.g2 {
  grid-template-columns: 1fr 1fr;
}
.post-media img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}
.post-actions {
  display: flex;
  justify-content: space-between;
  max-width: 430px;
  margin-top: 10px;
}
.act {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 999px;
  transition: 0.15s;
}
.act:hover {
  color: var(--accent);
  background: var(--accent-weak);
}
.act.liked {
  color: var(--like);
}
.act.liked:hover {
  background: var(--like-weak);
}
.act.reposted {
  color: var(--green);
}
.act.reposted:hover {
  background: rgba(0, 186, 124, 0.1);
}
.act.danger:hover {
  color: var(--danger);
  background: var(--danger-weak);
}
.act.pin.pinned {
  color: var(--pin);
}
.act.pin:hover {
  color: var(--pin);
  background: var(--pin-weak);
}
.repost-banner.pin-banner {
  color: var(--pin);
}
.repost-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  margin: 0 16px 4px;
  padding-left: 48px;
}
.quoted {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.quoted .q-head {
  font-size: 14px;
}
.quoted .q-text {
  font-size: 14.5px;
  margin-top: 2px;
}
.thread-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  min-height: 8px;
}

/* ---------------- 卡片 / 右侧栏 ---------------- */
.card {
  background: var(--surface-2);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.card h3 {
  margin: 0;
  padding: 14px 16px 8px;
  font-size: 19px;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
}
.card-row:hover {
  background: var(--surface-3);
}
.card-row .grow {
  flex: 1;
  min-width: 0;
}
.card-row .grow b {
  display: block;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-row .grow small {
  color: var(--text-dim);
  font-size: 13px;
}
.trend-row {
  padding: 10px 16px;
  cursor: pointer;
}
.trend-row:hover {
  background: var(--surface-3);
}
.trend-row small {
  color: var(--text-dim);
  font-size: 13px;
}
.trend-row b {
  display: block;
  font-size: 15px;
}
.search-box {
  position: relative;
  margin: 6px 0 16px;
}
.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-2);
  outline: none;
  font-size: 15px;
}
.search-box input:focus {
  background: var(--bg);
  border-color: var(--accent);
}
.search-box .s-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* ---------------- 个人主页 ---------------- */
.cover {
  height: 180px;
  background: linear-gradient(120deg, var(--accent), #8b5cf6);
  background-size: cover;
  background-position: center;
}
.profile-head {
  padding: 12px 16px 0;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.profile-name {
  font-size: 21px;
  font-weight: 800;
  margin: 8px 0 0;
}
.profile-handle {
  color: var(--text-dim);
  font-size: 15px;
}
.profile-bio {
  margin: 12px 0;
  white-space: pre-wrap;
}
.profile-meta {
  display: flex;
  gap: 14px;
  color: var(--text-dim);
  font-size: 14.5px;
  flex-wrap: wrap;
}
.profile-meta a {
  color: var(--accent);
}
.profile-stats {
  display: flex;
  gap: 18px;
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 10px;
}
.profile-stats b {
  color: var(--text);
}

/* ---------------- 私信 ---------------- */
.conv-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}
.conv-row:hover {
  background: var(--surface-2);
}
.conv-row.active {
  background: var(--accent-weak);
}
.conv-row .grow {
  flex: 1;
  min-width: 0;
}
.conv-row .grow .top {
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.conv-row .grow .top b {
  font-size: 15px;
}
.conv-row .grow .top small {
  color: var(--text-dim);
  font-size: 13px;
  margin-left: auto;
}
.conv-row .grow .preview {
  color: var(--text-dim);
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 46px;
  top: 22px;
}
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
}
.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 15px;
  word-break: break-word;
  white-space: pre-wrap;
}
.bubble.in {
  align-self: flex-start;
  background: var(--surface-3);
  border-bottom-left-radius: 6px;
}
.bubble.out {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble small {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 3px;
}
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}
.chat-input textarea {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 18px;
  padding: 10px 14px;
  resize: none;
  outline: none;
  max-height: 120px;
  min-height: 42px;
}
.day-sep {
  align-self: center;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 3px 12px;
  border-radius: 999px;
  margin: 6px 0;
}

/* ---------------- 网址导航 ---------------- */
.links-intro {
  padding: 12px 16px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}
.link-card-wrap {
  position: relative;
  min-width: 0;
}
.link-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-2);
  cursor: pointer;
  transition: 0.15s;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-3);
}
.link-ico {
  font-size: 26px;
  display: block;
}
.link-name {
  display: block;
  font-weight: 800;
  margin-top: 6px;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-desc {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 2px;
}
.link-url {
  display: block;
  color: var(--accent);
  font-size: 12px;
  margin-top: 8px;
  word-break: break-all;
}
.link-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: 0.15s;
}
.link-card-wrap:hover .link-del {
  opacity: 1;
}
.link-del:hover {
  background: var(--danger);
  color: #fff;
}
.ext-link {
  color: var(--accent);
  word-break: break-all;
}
.ext-link:hover {
  text-decoration: underline;
}

/* ---------------- 留言板 ---------------- */
.gb-form {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.gb-input {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  resize: none;
  outline: none;
  box-sizing: border-box;
  max-height: 160px;
}
.gb-input:focus {
  border-color: var(--accent);
}
.gb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.gb-anon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.gb-anon input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.gb-count {
  font-size: 12px;
  color: var(--text-dim);
}
.gb-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.gb-item.mine {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.gb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gb-head a {
  color: var(--text);
  font-weight: 700;
}
.gb-head small {
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gb-anon-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: 0 0 auto;
}
.gb-body {
  margin: 8px 0 4px 40px;
  white-space: pre-wrap;
  word-break: break-word;
}
.gb-foot {
  margin-left: 40px;
  font-size: 12px;
  color: var(--text-dim);
}
.gb-del {
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
}
.gb-del:hover {
  background: var(--surface-3);
  color: var(--danger, #f4212e);
}
.tab-badge {
  display: inline-block;
  margin-left: 6px;
  background: var(--surface-3);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- 网址导航：分组 ---------------- */
.link-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.link-tabs::-webkit-scrollbar {
  display: none;
}
.link-tab {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
}
.link-tab:hover {
  background: var(--surface-3);
  color: var(--text);
}
.link-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tab-n,
.sec-n {
  opacity: 0.65;
  font-weight: 600;
  font-size: 12px;
  margin-left: 4px;
}
.link-sec {
  margin-bottom: 8px;
}
.link-sec-title {
  display: flex;
  align-items: center;
  padding: 10px 16px 6px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.edit-profile-body select {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
}
.edit-profile-body select:focus {
  border-color: var(--accent);
}

/* ---------------- 主页背景编辑 ---------------- */
.cover-edit {
  position: relative;
  height: 150px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
.cover-edit-mask {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
  justify-content: center;
}
.cover-edit-mask .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.cover-edit-mask .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}
.cover-edit-mask .btn-ghost {
  color: #fff;
}
.edit-profile-body {
  padding: 16px 20px 20px;
}
.edit-profile-body .avatar-edit {
  margin-bottom: 18px;
}
.grad-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.grad-swatch {
  width: 58px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: 0.15s;
}
.grad-swatch:hover {
  transform: translateY(-2px);
}
.grad-swatch.active {
  border-color: var(--text);
}

/* ---------------- 私信：图片 / 表情 ---------------- */
.bubble-imgs {
  display: grid;
  gap: 4px;
  max-width: 240px;
  margin-bottom: 2px;
}
.bubble-imgs.g1 {
  grid-template-columns: 1fr;
}
.bubble-imgs.g2,
.bubble-imgs.g3,
.bubble-imgs.g4 {
  grid-template-columns: 1fr 1fr;
}
.bubble-imgs img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;
  border: 1px solid rgba(127, 127, 127, 0.2);
}
.bubble.no-pad {
  padding: 4px;
  background: transparent;
}
.bubble.no-pad.in {
  border: 1px solid var(--border);
}
.bubble.big-emoji {
  font-size: 42px;
  line-height: 1.15;
  padding: 2px 10px;
}
.bubble.big-emoji small {
  font-size: 11px;
}
.chat-compose {
  position: relative;
  border-top: 1px solid var(--border);
}
.chat-input {
  border-top: none;
}
.chat-pending {
  display: flex;
  gap: 8px;
  padding: 8px 12px 0;
  flex-wrap: wrap;
}
.pending-thumb {
  position: relative;
  display: inline-block;
}
.pending-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.pending-thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}
.emoji-pop {
  position: absolute;
  bottom: 100%;
  left: 8px;
  right: 8px;
  margin-bottom: 8px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  z-index: 5;
}
.emoji-sec {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 700;
  margin: 4px 0 6px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.emoji-btn {
  border: none;
  background: none;
  font-size: 22px;
  padding: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.2;
}
.emoji-btn:hover {
  background: var(--surface-3);
  transform: scale(1.15);
}
.emoji-grid.big .emoji-btn {
  font-size: 32px;
}
.emoji-grid.big .emoji-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.emoji-btn.mine {
  background: var(--surface-3);
}
.emoji-add {
  float: right;
  width: 22px;
  height: 22px;
  line-height: 1;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.emoji-add:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.emoji-hint {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 6px 2px;
}
/* 发帖框里的表情面板（和私信里浮层那个不是同一个容器） */
.emoji-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: 8px;
}
.emoji-panel .emoji-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 正文里 :名字: 渲染成的小图 */
.emoji {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -5px;
  margin: 0 1px;
  display: inline-block;
}
.post-text .emoji,
.q-text .emoji,
.gb-body .emoji,
.bubble-quote .emoji,
.profile-bio .emoji {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
}
.bubble.big-emoji .emoji {
  width: 46px;
  height: 46px;
  vertical-align: middle;
}
/* 做表情的弹窗 */
.emoji-add-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.emoji-preview {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-dim);
  background: var(--surface-2);
  overflow: hidden;
}
.emoji-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.emoji-name-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.emoji-name-chips .chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}
.emoji-name-chips .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chat-scroll img[data-chat-img] {
  cursor: zoom-in;
}
.lightbox img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* ---------------- 通知 ---------------- */
.notif-row {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.notif-row:hover {
  background: var(--surface-2);
}
.notif-row.unread {
  background: var(--accent-weak);
}
.notif-row .n-ico {
  font-size: 22px;
  width: 30px;
  text-align: center;
}

/* ---------------- 设置 ---------------- */
.settings-section {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.settings-section h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.settings-section p.desc {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 14px;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.field input,
.field textarea,
.field select {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  outline: none;
  font-size: 15px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field .tip {
  font-size: 12.5px;
  color: var(--text-dim);
}
.avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.theme-opt {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  background: var(--surface-2);
  font-weight: 600;
}
.theme-opt.active {
  border-color: var(--accent);
  color: var(--accent);
}
.swatches {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.swatch.active {
  border-color: var(--text);
}
.danger-zone {
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  margin: 16px;
  padding: 16px;
}

/* ---------------- 管理 / 权限标记 ---------------- */
.mod-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
.mod-tag.admin { background: #eef2ff; color: #4f46e5; }
.mod-tag.star { background: #fff7e6; color: #d97706; }
.mod-tag.pin { background: var(--pin-weak); color: var(--pin); }
.mod-tag.banned { background: #fee2e2; color: #dc2626; }

/* ---------------- 称号 ---------------- */
/* 颜色由成员自选、管理员点头后生效，所以背景/边框/文字色全部内联；
   这里只管形状。深浅主题下都用半透明底 + 同色文字，不会糊成一块。 */
.user-title {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  line-height: 1;
  padding: 3px 8px;
  margin-left: 6px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  vertical-align: middle;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 别让徽章挤走名字本身的点击区域 */
  pointer-events: none;
}
/* 主页大标题上的称号，字号跟着放大一档 */
h2 .user-title { font-size: 13px; margin-left: 8px; }
.profile-name .user-title { font-size: 13px; margin-left: 8px; }
/* 深色主题下把底色压暗一点，纯半透明会太亮 */
html[data-theme="dark"] .user-title,
html[data-theme="dim"] .user-title { border-width: 1px; }

/* 索要称号弹窗 */
.title-request-body { padding: 18px 20px; }
.title-preview-box {
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
}
/* 设置页 / 管理后台里的称号行 */
.title-granted,
.title-pending { margin-top: 10px; }
.title-granted { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-granted .user-title { margin-left: 0; font-size: 13px; padding: 5px 12px; }
.title-pending .user-title { margin-left: 0; }
.title-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.title-history-row:last-child { border-bottom: none; }
.title-history-row .user-title { margin-left: 0; }
/* 管理后台的申请行：内容长的时候让按钮靠右但不撑破 */
.title-req-row { align-items: flex-start; }
@media (max-width: 520px) {
  .title-req-row { flex-wrap: wrap; }
  .title-req-row > div:last-child { width: 100%; justify-content: flex-start; margin-top: 8px; }
  .user-title { max-width: 120px; }
}
.admin-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px;
  padding: 14px 16px;
  background: linear-gradient(120deg, #eef2ff, #faf5ff);
  border: 1px solid #e0e7ff;
  border-radius: var(--radius);
}
.admin-badge {
  font-weight: 800;
  font-size: 14px;
  color: #4f46e5;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.admin-user:last-child { border-bottom: 0; }
.banned-notice {
  margin: 14px 16px;
  padding: 14px 16px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

/* ---------------- 弹窗 / Toast ---------------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: fade 0.15s ease;
}
.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: pop 0.16s ease;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.modal-head .x {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}
.modal-head .x:hover {
  background: var(--surface-3);
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.toast-root {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: pop 0.18s ease;
}
.toast.err {
  background: var(--danger);
}

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
}
.empty .e-ico {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}
.loader {
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
}
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .aside-right {
    display: none;
  }
}
@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .main {
    border-right: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 50;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    font-size: 22px;
    padding: 4px 12px;
    opacity: 0.55;
  }
  .mobile-nav a.active {
    opacity: 1;
  }
  .fab {
    display: grid;
    place-items: center;
    position: fixed;
    right: 16px;
    bottom: 74px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 22px;
    border: none;
    box-shadow: var(--shadow);
    z-index: 50;
    cursor: pointer;
  }
  .auth {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .auth-left {
    padding: 0;
  }
  .auth-hero h2 {
    font-size: 32px;
    margin: 24px 0 8px;
  }
  .auth-features {
    display: none;
  }
  .nav-label {
    display: none;
  }
  .nav-item {
    padding: 11px;
  }
  .sidebar {
    width: auto;
  }
  .post-actions {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .head-bar h2 {
    font-size: 17px;
  }
  .btn-post {
    display: none;
  }
}

/* ============================================================
   以下：关系绑定 / 备注 / 自定义表情 / 编辑帖子 / 私信引用·撤回·转发 / @ 补全
   ============================================================ */

/* ---------- 弹窗里的单行输入 ---------- */
.prompt-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.prompt-input:focus {
  border-color: var(--accent);
}

/* ---------- 备注 ---------- */
.remark-tag {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 6px;
}

/* ---------- 主页关系墙 ---------- */
.rel-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.rel-title {
  font-size: 13px;
  color: var(--text-dim);
}
.rel-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.rel-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 绑定关系弹窗 ---------- */
.rel-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.rel-preset {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.rel-preset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 私信里的关系申请条 ---------- */
.rel-inbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.rel-inbox.hidden {
  display: none;
}
.rel-request {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-weak);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
}
.rel-request .grow {
  flex: 1;
  min-width: 0;
}

/* ---------- 私信页布局（顶部可以让出关系申请条的位置） ---------- */
.msg-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
}
.msg-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  /* 关键：把行高压成容器剩余空间（minmax(0,1fr)），否则 grid 默认行高 auto
     会被聊天内容撑开，chat-wrap 的 height:100% 跟着失控、chat-scroll 分不到
     flex 剩余空间而不滚动，消息一多就被 main 的 overflow:hidden 裁掉看不到。 */
  grid-template-rows: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.msg-grid > div {
  min-height: 0;
}
.msg-grid .chat-wrap {
  height: 100%;
}

/* ---------- 消息气泡：引用 / 撤回 / 转发 ---------- */
.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
}
.bubble-row.out {
  justify-content: flex-end;
}
.bubble-row.in {
  justify-content: flex-start;
}
.bubble-row .bubble {
  max-width: 72%;
}
.b-acts {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.bubble-row:hover .b-acts {
  opacity: 1;
}
.b-acts button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.b-acts button:hover {
  background: var(--accent-weak);
  color: var(--accent);
}
@media (hover: none) {
  .b-acts {
    opacity: 0.85;
  }
}
.bubble.revoked {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 13px;
}
.bubble.revoked.out {
  background: transparent;
  color: var(--text-dim);
}
.bubble-quote {
  border-left: 3px solid rgba(127, 127, 127, 0.6);
  background: rgba(127, 127, 127, 0.18);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 13px;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bubble-fwd {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

/* 输入框上方的「正在引用」条 */
.chat-quote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-3);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  color: var(--text-dim);
}
.chat-quote.hidden {
  display: none;
}
.chat-quote .cq-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-quote .cq-x {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

/* ---------- 转发消息弹窗 ---------- */
.fwd-preview {
  background: var(--surface-3);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
  max-height: 90px;
  overflow: auto;
}
.fwd-pick {
  max-height: 260px;
  overflow-y: auto;
}
.fwd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
}
.fwd-row:hover {
  background: var(--surface-3);
}
.fwd-row .grow {
  flex: 1;
  min-width: 0;
}
.fwd-go {
  font-size: 12.5px;
  color: var(--accent);
}

/* ---------- @ 补全下拉 ---------- */
.composer-body,
.chat-input {
  position: relative;
}
.mention-pop {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}
.mention-pop.hidden {
  display: none;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.mention-item.active,
.mention-item:hover {
  background: var(--accent-weak);
}
.mention-item b {
  font-size: 14px;
}
.mention-item small {
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- 主页「加载更多」 ---------- */
.more-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0 32px;
}
.list-end {
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- 在线人数 ---------- */
.online-count {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 4px;
}

/* ---------- 编辑帖子 ---------- */
.edited-tag {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 4px;
  cursor: help;
}
/* 转发的原帖后来被编辑过时，嵌进去的那份加的提醒 */
.q-stale {
  font-size: 11.5px;
  color: var(--pin, #b45309);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 6px;
  white-space: nowrap;
}
.edit-hint {
  margin: 0;
  padding: 12px 20px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}
/* 互动明细弹窗：浏览 / 点赞 / 转发 / 收藏 四个页签 */
.ins-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 20px 0;
}
.ins-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.ins-tab.on {
  background: var(--accent, #1d9bf0);
  border-color: transparent;
  color: #fff;
}
.ins-list {
  max-height: 60vh;
  overflow: auto;
  padding: 8px 12px 16px;
}
.ins-hint {
  padding: 8px 8px 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.ins-empty {
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.ins-note {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}
/* 没留名的访客：让面板别空着，但也不假装知道是谁 */
.ins-anon {
  opacity: 0.85;
  cursor: default;
}
.ins-anon:hover {
  background: transparent;
}
.ins-anon-av {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 18px;
}
@media (max-width: 760px) {
  .msg-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   第一波新增样式（互关显示 / 关系管理 / 私信限长与清空）
   ================================================================ */

/* 私信字数条：平时藏着，写到 700 字才露头，不占地方 */
.chat-count {
  padding: 6px 14px 0;
  text-align: right;
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.chat-count.over {
  color: #e0245e;
  font-weight: 700;
}

/* 私信输入框封顶 140px：再长就在框里滚动，不把上面的聊天记录挤没 */
.chat-compose .chat-input textarea {
  max-height: 140px;
  overflow-y: auto;
  resize: none;
}

/* 自己主页上的关系徽章可以点开管理，做成"能点"的样子 */
.rel-chip-mine {
  cursor: pointer;
  font: inherit;
  color: inherit;
  border: 1px dashed var(--border);
  background: transparent;
}
.rel-chip-mine:hover {
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent);
}

/* 待审核标记 / 审核开关 / 可点击放大的图片 */
.mod-tag.pending {
  background: #fff4e5;
  color: #b25e00;
  border: 1px solid #ffd8a8;
}
.admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 10px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.zoomable {
  cursor: zoom-in;
}

/* ================================================================
   第三波新增样式（头像框 / 头像背景框选裁剪）
   ================================================================ */

/* 头像框：用 box-shadow 画在头像外圈，不受 .avatar 的 overflow:hidden 影响 */
.avatar.frame-gold   { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #f5b301; }
.avatar.frame-rainbow{ box-shadow: 0 0 0 2px #f87171, 0 0 0 4px #fbbf24, 0 0 0 6px #34d399, 0 0 0 8px #60a5fa; }
.avatar.frame-neon   { box-shadow: 0 0 0 2px #22d3ee, 0 0 9px 2px rgba(34,211,238,.7); }
.avatar.frame-fire   { box-shadow: 0 0 0 2px #f97316, 0 0 11px 3px rgba(239,68,68,.6); }
.avatar.frame-ice    { box-shadow: 0 0 0 2px #bae6fd, 0 0 10px 2px rgba(56,189,248,.55); }
.avatar.frame-leaf   { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #22c55e; }
.avatar.frame-heart  { box-shadow: 0 0 0 2px #fda4af, 0 0 10px 2px rgba(244,63,94,.5); }
.avatar.frame-king   { box-shadow: 0 0 0 3px #fde68a, 0 0 0 5px #b45309; }
.avatar.frame-ink    { box-shadow: 0 0 0 2px #111827, 0 0 0 4px #6b7280; }
/* 身份框：管理员（粉白蓝渐变）/ 星标用户（白金），自动佩戴、不开放自选 */
.avatar.frame-admin  { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #f9a8d4, 0 0 0 6px #ffffff, 0 0 0 8px #60a5fa, 0 0 12px 1px rgba(96,165,250,.4); }
.avatar.frame-star   { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #ffffff, 0 0 0 6px #f5b301, 0 0 10px 1px rgba(245,179,1,.45); }

/* 私信已读/未读小标（只出现在自己发出的气泡里） */
.bubble small .rd {
  font-style: normal;
  margin-left: 4px;
  color: var(--text-dim);
  opacity: 0.85;
}
.bubble small .rd.rd-yes {
  color: var(--accent);
  opacity: 1;
}

/* 匿名树洞 */
.anon-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4b5563, #1f2937);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.anon-tag {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}
.anon-tag.admin {
  color: #b45309;
  border-color: #f59e0b55;
}
.anon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

/* 表情回应 */
.react-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  position: relative;
}
.rk-chips {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rk-chip {
  border: 1px solid var(--border);
  background: none;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  line-height: 1.5;
}
.rk-chip:hover {
  border-color: var(--accent);
}
.rk-chip.mine {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.rk-add {
  border: 1px dashed var(--border);
  background: none;
  border-radius: 999px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
}
.rk-add:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.react-pop {
  position: absolute;
  bottom: 28px;
  left: 0;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px 8px;
  display: flex;
  gap: 2px;
  z-index: 30;
}
.react-pop button {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.react-pop button:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* 主页访客足迹 */
.visitor-wall {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.visitor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px 2px 3px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
}
.visitor-chip:hover {
  border-color: var(--accent);
}

/* 表情面板搜索 */
.emoji-search-row {
  padding: 4px 6px 8px;
}
.emoji-search-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}
.emoji-search-row input:focus {
  outline: none;
  border-color: var(--accent);
}

/* 广场签到卡 */
.sq-checkin {
  cursor: pointer;
}
.sq-checkin:hover .sq-more {
  color: var(--accent);
}


/* 帖子浏览数（不是按钮，去掉 hover/边距） */
.act-views {
  cursor: default;
}
.act-views:hover {
  color: inherit;
  background: none;
}

/* 自己发的帖子：「谁看过」入口 —— 高亮成一颗药丸，别让人在图标堆里找 */
.act-insights {
  color: var(--accent);
  background: var(--accent-weak);
  padding: 3px 9px;
  gap: 5px;
  font-weight: 600;
}
.act-insights em {
  font-style: normal;
  font-size: 12px;
}
.act-insights:hover {
  background: var(--accent-weak);
  color: var(--accent);
  filter: brightness(1.35);
}
@media (max-width: 560px) {
  .act-insights em { display: none; }
}

/* 「对方正在输入…」 */
.typing-tip {
  font-size: 12px;
  color: var(--text-dim);
  padding: 2px 8px 6px;
  animation: typing-fade 0.25s ease;
}
@keyframes typing-fade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

/* 微光报告页 */
.report-wrap { max-width: 860px; margin: 0 auto; padding: 4px 0 40px; }
.rp-hero {
  text-align: center;
  font-size: 17px;
  padding: 18px 12px 22px;
  color: var(--text-dim);
}
.rp-hero b { color: var(--accent); font-size: 22px; margin: 0 3px; }
.rp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.rp-grid2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rp-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.rp-ico { font-size: 20px; }
.rp-num { font-size: 20px; }
.rp-label { font-size: 12px; color: var(--text-dim); }
.rp-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.rp-title { display: block; margin-bottom: 10px; }
.rp-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
}
.rp-rank { width: 22px; text-align: center; flex: none; }
.rp-name { font-weight: 600; color: var(--text); text-decoration: none; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-name:hover { text-decoration: underline; }
.rp-bar {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
  opacity: 0.35;
  flex: 1;
  max-width: 45%;
  min-width: 6px;
}
.rp-val { color: var(--text-dim); font-size: 13px; margin-left: auto; white-space: nowrap; }
.rp-empty { color: var(--text-dim); font-size: 13px; padding: 6px 0; }
.rp-hours {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 90px;
  padding: 4px 2px 0;
}
.rp-hour {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}
.rp-hour i {
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: 0.75;
}
.rp-hour span { font-size: 9px; color: var(--text-dim); padding-top: 3px; }
.rp-foot { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
@media (max-width: 640px) { .rp-grid { grid-template-columns: repeat(2, 1fr); } }

/* 头像框选择器 */
.frame-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.frame-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 60px;
  padding: 10px 6px 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-dim);
}
.frame-opt span { line-height: 1; }
.frame-opt:hover { border-color: var(--accent); }
.frame-opt.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  background: var(--surface-3);
}

/* 框选裁剪 */
.crop-body { padding: 16px 18px 18px; }
.crop-stage {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #0b0b0d;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
.crop-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.crop-bar input[type="range"] { flex: 1; min-width: 110px; accent-color: var(--accent); }
.crop-hint { font-size: 12px; color: var(--text-dim); }

/* ================================================================
   第五波新增样式（广场 / 文件分享 / 反应力测试 / 2048）
   ================================================================ */

.sq-upload { cursor: pointer; }

.sq-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}
.sq-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.sq-card:hover { border-color: var(--accent); }
.sq-ico { font-size: 26px; line-height: 1.2; }
.sq-card b { font-size: 15px; }
.sq-desc { font-size: 13px; color: var(--text-dim); }
.sq-more { font-size: 12px; color: var(--accent); margin-top: 5px; }

/* 广场 · 内嵌小游戏（iframe 铺满主区域，游戏内部自己滚动） */
.game-embed { width: 100%; }
.game-frame {
  width: 100%;
  height: calc(100vh - 50px);
  min-height: 520px;
  border: 0;
  display: block;
  background: #8ecff0;
}
/* KING 是纯黑长滚动展示页，沿用棋盘那套浅蓝底会在加载完前闪一下白边 */
.game-frame[data-solo-frame="king"] { background: #000; }

.sq-sec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.sq-sec .tip { font-weight: 400; }

.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.file-ico { font-size: 24px; line-height: 1; text-decoration: none; }
.file-main { flex: 1; min-width: 0; }
.file-name {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  word-break: break-all;
}
.file-name:hover { color: var(--accent); }
.file-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.file-note { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
/* 谁传的：头像 + 昵称，点了进主页 */
.file-owner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: none;
}
.file-owner span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-owner:hover { color: var(--accent); }
.file-owner.is-gone { cursor: default; }
/* 图片用缩略图本身代替图标 */
.file-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: block;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-row-video { flex-direction: column; align-items: stretch; }
.file-video video {
  width: 100%;
  max-height: 360px;
  border-radius: 10px;
  background: #000;
  display: block;
}

/* ---------------- 反应力测试 ---------------- */
.game-panel { border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.react-stage {
  height: 190px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}
.react-stage.go { background: #16a34a; color: #fff; }
.react-stage.bad { background: #dc2626; color: #fff; }
.react-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.board { display: flex; flex-direction: column; gap: 6px; }
.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.board-row.me { border-color: var(--accent); }
.board-rank {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--text-dim);
}
.board-rank.r1 { background: #f5b301; color: #fff; }
.board-rank.r2 { background: #b8bec7; color: #fff; }
.board-rank.r3 { background: #cd7f32; color: #fff; }
.board-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-name small { color: var(--text-dim); font-weight: 400; }
.board-ms { font-variant-numeric: tabular-nums; }

/* ================================================================
   私信页锁定高度：整页不滚动，只有消息区（chat-scroll）内部滚动
   （chat-mode 由 main.js 在路由为 messages 时打到 body 上）
   ================================================================ */
@media (min-width: 761px) {
  .chat-mode {
    /* 锁死 body：sticky 侧栏/右栏的轻微溢出会让 body 多出十几像素可滚，
       导致导航栏跟着微移，这里彻底锁住，保证「只有消息区内部滚动」 */
    overflow: hidden;
  }
  .chat-mode .main {
    height: 100vh;
    overflow: hidden;
  }
  .chat-mode .main-body {
    flex: 1;
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .chat-mode .msg-page {
    height: auto;
    flex: 1;
    min-height: 0;
  }
}
/* ---------------------------------------------------------- 帖子视频 */
.post-video {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.post-video video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #000;
}
/* 发帖框里"还没发出去"的视频：右上角 ✕ 删掉 */
.thumb-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ============================================================ 广场 · 微光围棋联机对局 */
.wq-home { padding: 12px 16px 0; }
.wq-home-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wq-new {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wq-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.wq-opt {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.wq-opt.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.wq-tip { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.wq-offline {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.wq-mine { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.wq-mine b { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.wq-room-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.wq-room-row:hover { border-color: var(--accent); }
.wq-rr-name { font-weight: 600; font-size: 14px; }
.wq-rr-meta { font-size: 12px; color: var(--text-dim); flex: 1; }
.wq-rr-go { font-size: 12px; color: var(--accent); }

.wq-room { display: flex; flex-direction: column; }
.wq-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wq-who b { font-size: 14px; }
.wq-side { color: var(--text-dim); }
.wq-state {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(255, 255, 255, 0.08));
  color: var(--accent);
  font-size: 12px;
}
.wq-invite {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wq-code-line { font-size: 13px; color: var(--text-dim); }
.wq-code-line b {
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--text);
  margin-left: 4px;
}
.wq-link {
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(128, 128, 128, 0.12);
}
.wq-waiting { font-size: 13px; color: var(--accent); }
.wq-room .game-frame { height: calc(100vh - 150px); min-height: 460px; }
.wq-invite + .game-embed .game-frame { height: calc(100vh - 300px); min-height: 420px; }

/* ---------------------------------------------------------- 屏蔽名单（设置页） */
.block-list { margin-top: 12px; }
.block-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.block-row:first-child { border-top: none; }
.block-row:hover {
  background: var(--surface-2);
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
}
