.leaftheme-chatroom-page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px;
}

#leaftheme-chatroom-app,
#leaftheme-chatroom-float-app {
  /*border-radius: 14px;*/
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.20);
  color: #111827;
}

body.night #leaftheme-chatroom-app,
body.night #leaftheme-chatroom-float-app {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(26, 32, 44, 0.76);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.92);
}
body.night .lt-chatfloat-head{background: #272b33;color: rgba(255, 255, 255, 0.92); }
.lt-chatfloat-head{background: #fff; }

.qq-chat {
  display: flex;
  height: min(760px, 78vh);
  min-height: 560px;
  position: relative;
}

#leaftheme-chatroom-float-app .qq-chat {
  height: 100%;
  min-height: 0;
}

body.night .qq-chat {
  color: rgba(255, 255, 255, 0.92);
}

.qq-left {
  width: 270px;
  flex: 0 0 270px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.46));
  border-right: 1px solid rgba(31, 45, 61, 0.08);
  display: flex;
  flex-direction: column;
}

body.night .qq-left {
  background: linear-gradient(180deg, #252d37, #000);
  border-right-color: rgba(255, 255, 255, 0.10);
}

.qq-left-top {
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 8px;
  border-bottom: 1px solid rgba(31, 45, 61, 0.10);
}

body.night .qq-left-top {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.qq-search {
  width: 100%;
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}

body.night .qq-search {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.qq-iconbtn {
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  padding: 6px 10px;
  height: 36px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

body.night .qq-iconbtn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.qq-iconbtn:hover {
  transform: translateY(-1px);
}

.qq-iconbtn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.qq-room-list {
  overflow: auto;
  padding: 6px;
}

.qq-room {
  display: grid;
  grid-template-columns: 44px 1fr 10px;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
}

.qq-room:hover {
  background: rgba(59, 130, 246, 0.10);
}

.qq-room.is-active {
  background: rgba(59, 130, 246, 0.14);
}

.qq-room-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.night .qq-room-avatar {
  background: rgba(59, 130, 246, 0.22);
}

.qq-room-badge {
  font-weight: 900;
  font-size: 12px;
  color: #2563eb;
}

body.night .qq-room-badge {
  color: rgba(255, 255, 255, 0.92);
}

.qq-room-name {
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qq-room-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.qq-room-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

.qq-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.30);
}

body.night .qq-center {
  background: linear-gradient(180deg, #252d37, #000);
}

.qq-head {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(31, 45, 61, 0.10);
}

body.night .qq-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.qq-title {
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.qq-head-actions {
  display: flex;
  gap: 8px;
}

.qq-selectbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(31, 45, 61, 0.10);
  border-radius: 999px;
  padding: 4px 6px;
  background: rgba(59, 130, 246, 0.10);
}

body.night .qq-selectbar {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(59, 130, 246, 0.18);
}

.qq-selecttext {
  font-size: 12px;
  font-weight: 900;
  padding: 0 4px;
}

.qq-messages {
  flex: 1;
  overflow: auto;
  padding: 12px 12px 8px 12px;
}

.qq-pinned {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(31, 45, 61, 0.10);
  background: rgba(59, 130, 246, 0.08);
}

body.night .qq-pinned {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(59, 130, 246, 0.16);
}

.qq-pinned-text {
  flex: 1;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.qq-msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  margin: 10px 0;
  align-items: start;
}

.qq-msg.is-select {
  grid-template-columns: 40px 1fr 26px;
  align-items: center;
}

.qq-msg.is-me {
  grid-template-columns: 1fr 40px;
}

.qq-msg.is-me.is-select {
  grid-template-columns: 26px 1fr 40px;
}

.qq-msg.is-me .qq-avatar {
  order: 2;
}

.qq-msg.is-me .qq-msg-meta {
  order: 1;
  text-align: right;
}

.qq-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(31, 45, 61, 0.10);
}

.qq-check {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(31, 45, 61, 0.18);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #1d4ed8;
  user-select: none;
}

body.night .qq-check {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.qq-check.is-on {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.25);
}

body.night .qq-avatar {
  border-color: rgba(255, 255, 255, 0.16);
}

.qq-msg-top {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  min-width: 0;
}

.qq-msg.is-me .qq-msg-top {
  justify-content: flex-end;
}

.qq-msg-name {
  font-weight: 900;
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qq-msg-time {
  font-size: 12px;
  opacity: 0.65;
}

.qq-msg-loc {
  font-size: 12px;
  opacity: 0.65;
}

.qq-roomtip {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 45, 61, 0.10);
  background: rgba(59, 130, 246, 0.10);
  font-size: 12px;
  font-weight: 900;
  opacity: 0.9;
}

body.night .qq-roomtip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(59, 130, 246, 0.18);
}

.qq-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(31, 45, 61, 0.08);
  color: rgba(31, 45, 61, 0.85);
}

body.night .qq-kind {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.qq-kind.is-wp {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.qq-kind.is-virt {
  background: rgba(16, 185, 129, 0.18);
  color: #065f46;
}

.qq-kind.is-guest {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.qq-kind.is-bot {
  background: rgba(168, 85, 247, 0.18);
  color: #6b21a8;
}

.qq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(31, 45, 61, 0.85);
}

body.night .qq-badge {

  color: rgba(255, 255, 255, 0.92);
}

.qq-badge-vip {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.qq-badge-tier {
  border-color: rgba(99, 102, 241, 0.22);
  background: rgba(99, 102, 241, 0.14);
  color: #3730a3;
}

body.night .qq-kind.is-wp,
body.night .qq-kind.is-virt,
body.night .qq-kind.is-guest,
body.night .qq-kind.is-bot {
  color: rgba(255, 255, 255, 0.92);
}

.qq-flag {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-weight: 900;
}

body.night .qq-flag {
  background: rgba(59, 130, 246, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

.qq-flag-gold {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

body.night .qq-flag-gold {
  color: rgba(255, 255, 255, 0.92);
}

.qq-bubble {
  display: inline-block;
  max-width: min(520px, 92%);
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(31, 45, 61, 0.10);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  text-align: left;
  word-break: break-word;
}

.qq-bubble img.cmt_faces {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 1px;
}

.qq-msg.is-me .qq-bubble {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.14));
  border-color: rgba(59, 130, 246, 0.22);
}

body.night .qq-bubble {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.qq-img img {
  max-width: 240px;
  border-radius: 12px;
  display: block;
}

.qq-caption {
  margin-top: 8px;
}

.qq-composer {
  border-top: 1px solid rgba(31, 45, 61, 0.10);
  padding: 10px 12px 12px 12px;
  position: relative;
}

body.night .qq-composer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.qq-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.qq-tool {
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

body.night .qq-tool {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.qq-tool:hover {
  transform: translateY(-1px);
}

.qq-tool:active {
  transform: translateY(0);
}

.qq-input {
  width: 100%;
  min-height: 78px;
  max-height: 180px;
  resize: vertical;
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

body.night .qq-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.qq-send {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #4f8dfb, #2f74f3);
  color: #fff;
  font-weight: 900;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.38);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
}

.qq-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.qq-send:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.32);
}

.qq-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qq-right {
  width: 310px;
  flex: 0 0 310px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.46));
  border-left: 1px solid rgba(31, 45, 61, 0.08);
  display: flex;
  flex-direction: column;
}

body.night .qq-right {
  background: linear-gradient(180deg, #252d37, #000);
  border-left-color: rgba(255, 255, 255, 0.10);
}

.qq-right-head {
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(31, 45, 61, 0.10);
}

body.night .qq-right-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.qq-right-title {
  font-weight: 900;
}

.qq-right-body {
  padding: 12px;
  overflow: auto;
}

.qq-setting-item {
  border: 1px solid rgba(31, 45, 61, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

body.night .qq-setting-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-setting-item:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

.qq-setting-title {
  font-weight: 900;
}

.qq-setting-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.7;
}

.qq-panel {
  border: 1px solid rgba(31, 45, 61, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  margin-bottom: 12px;
}

body.night .qq-panel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(31, 45, 61, 0.10);
  justify-content: space-between;
}

body.night .qq-panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.qq-panel-title {
  font-weight: 900;
}

.qq-panel-body {
  padding: 12px;
}

.qq-panel-body > .qq-btn {
  width: 100%;
}

.qq-panel-body > .qq-btn + .qq-btn {
  margin-top: 10px;
}

.qq-card {
  border: 1px solid rgba(31, 45, 61, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  margin-bottom: 12px;
}

body.night .qq-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-card-title {
  font-weight: 900;
  margin-bottom: 10px;
}

.qq-ann-input {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1px solid rgba(31, 45, 61, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

body.night .qq-ann-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.qq-ann-text {
  white-space: pre-wrap;
  line-height: 1.6;
  opacity: 0.9;
}

.qq-ann-list {
  margin-top: 10px;
  display: none;
}

.qq-ann-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 45, 61, 0.08);
  background: rgba(31, 45, 61, 0.04);
  margin-top: 10px;
  cursor: pointer;
}

body.night .qq-ann-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-ann-item-text {
  font-weight: 900;

  overflow: hidden;
  text-overflow: ellipsis;
}

.qq-ann-item-sub {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.7;
}

.qq-file-featured {
  margin-bottom: 10px;
}

.qq-file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
body.night .qq-btn{ background: rgba(255,255,255,.06);}
.qq-btn {
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease, filter .15s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.qq-btn-primary {
  background: #3b82f6;
  border-color: rgba(59, 130, 246, 0.25);
  color: #fff;
}

.qq-btn:hover {
  transform: translateY(-1px);
}

.qq-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.qq-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.qq-btn-primary {
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.34);
}

.qq-btn-primary:active {
  box-shadow: 0 3px 6px rgba(59, 130, 246, 0.28);
}

.qq-members {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qq-members-scroll {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.qq-member {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  cursor: pointer;
}

.qq-member:hover {
  background: rgba(59, 130, 246, 0.10);
}

.qq-member-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.qq-member-name {
  font-weight: 900;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.qq-member-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.qq-member-sub {
  font-size: 12px;
  opacity: 0.7;
}

.qq-member-ops {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.qq-mini {
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
}

body.night .qq-mini {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.qq-mini:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qq-mini-danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.12);
}

.qq-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qq-file-upload {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.qq-file-input {
  width: 100%;
}

.qq-file {
  display: block;
  padding: 10px;
  border-radius: 12px;
  background: rgba(31, 45, 61, 0.04);
  border: 1px solid rgba(31, 45, 61, 0.08);
  color: inherit;
  text-decoration: none;
}

body.night .qq-file {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-file-name {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qq-file-sub {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.7;
}

.qq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.qq-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.qq-modal {
  width: min(520px, 96vw);
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(31, 45, 61, 0.12);
  padding: 14px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: transform .22s ease, opacity .22s ease;
}

.qq-overlay.is-open .qq-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.night .qq-modal {
  background: rgba(16, 18, 20, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-modal-title {
  font-weight: 900;
  margin-bottom: 12px;
}

.qq-modal-input {
  width: 100%;
  border: 1px solid rgba(31, 45, 61, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.qq-modal-input + .qq-modal-input {
  margin-top: 10px;
}

.qq-modal-input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

body.night .qq-modal-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

body.night .qq-modal-input:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.qq-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.qq-profile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.qq-profile-name {
  font-weight: 900;
}

.qq-profile-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.75;
}

.qq-imgview {
  width: min(920px, 96vw);
}

.qq-imgview-body {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 70vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(31, 45, 61, 0.10);
  background: rgba(31, 45, 61, 0.04);
  padding: 10px;
}

body.night .qq-imgview-body {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.qq-imgview-img {
  max-width: 100%;
  max-height: 66vh;
  display: block;
  border-radius: 12px;
}

.qq-mention {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 10px);
  border-radius: 12px;
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.98);
  display: block;
  max-height: 220px;
  overflow: auto;
  z-index: 30;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
}

body.night .qq-mention {
  background: rgba(16, 18, 20, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-mention.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.qq-mention-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}

.qq-mention-item:hover {
  background: rgba(59, 130, 246, 0.08);
}

.qq-mention-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.qq-mention-name {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qq-mention-sub {
  font-size: 12px;
  opacity: 0.7;
}

.qq-mention-empty {
  padding: 10px 12px;
  opacity: 0.7;
}

.qq-faces {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 10px);
  border-radius: 12px;
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  max-height: 260px;
  overflow: auto;
  z-index: 28;
  padding: 10px;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
}

.qq-faces.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

body.night .qq-faces {
  background: rgba(16, 18, 20, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-face {
  width: 100%;
  height: 28px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px;
}

.qq-face:hover {
  background: rgba(59, 130, 246, 0.12);
}

.qq-quote {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease, max-height .18s ease;
}

.qq-quote.is-open {
  padding: 6px 10px;
  border: 1px solid rgba(31, 45, 61, 0.10);
  background: rgba(31, 45, 61, 0.04);
  max-height: 64px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.night .qq-quote.is-open {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.qq-mini,
.qq-tab,
.qq-face,
.qq-ctx {
  transition: transform .15s ease, opacity .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
}

.qq-mini:hover,
.qq-tab:hover {
  transform: translateY(-1px);
}

.qq-mini:active,
.qq-tab:active {
  transform: translateY(0);
}

.qq-face:hover {
  transform: translateY(-1px);
}

.qq-face:active {
  transform: translateY(0);
}

.qq-ctx {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: qqPopIn .18s ease forwards;
}

@keyframes qqPopIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qq-btn,
  .qq-iconbtn,
  .qq-tool,
  .qq-overlay,
  .qq-modal,
  .qq-mention,
  .qq-faces,
  .qq-quote,
  .qq-mini,
  .qq-tab,
  .qq-face,
  .qq-ctx {
    transition: none !important;
    animation: none !important;
  }
}

.qq-file-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.qq-file-picked {
  grid-column: 1 / -1;
  font-size: 12px;
  opacity: 0.8;
  padding: 2px 2px 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qq-file-input {
  width: 100%;
  border: 1px solid rgba(31, 45, 61, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  outline: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.qq-file-input::file-selector-button {
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 6px 10px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.qq-file-input::file-selector-button:hover {
  transform: translateY(-1px);
}

.qq-file-input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

body.night .qq-file-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.night .qq-file-input::file-selector-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30);
}

body.night .qq-file-input:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.qq-quote-text {
  font-size: 12px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.qq-linkchips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qq-linkchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(31, 45, 61, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

body.night .qq-linkchip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-linkchip-text {
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.qq-linkchip-x {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  opacity: 0.6;
}

.qq-ctx {
  position: absolute;
  z-index: 5000;
  border-radius: 12px;
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

body.night .qq-ctx {
  background: #242c37;
  border-color: #2f3947;
  color: rgba(255, 255, 255, 0.92);
}

.qq-ctx-item {
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
}

.qq-ctx-item:hover {
  background: rgba(59, 130, 246, 0.10);
}

.qq-mobile-only {
  display: none;
}

.qq-chat.right-closed .qq-right {
  display: none;
}

.qq-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 55;
}

.qq-mask.is-on {
  display: block;
}

.qq-error {
  padding: 16px;
  font-weight: 900;
}

.lt-chat-link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.lt-chat-link-thumb img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.lt-chat-link-title {
  font-weight: 900;
}

.lt-chat-link-sub {
  opacity: 0.7;
  font-size: 12px;
  margin-top: 3px;
}

.lt-chat-video video {
  width: min(360px, 72vw);
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

.lt-chat-video-cap {
  margin-top: 8px;
  opacity: 0.9;
}

.lt-chat-quote {
  border-left: 3px solid rgba(59, 130, 246, 0.7);
  background: rgba(59, 130, 246, 0.08);
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.lt-chat-quote-title {
  font-weight: 900;
  font-size: 12px;
  opacity: 0.85;
}

.lt-chat-quote-text {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.85;
}

.lt-chat-deleted {
  opacity: 0.65;
  font-size: 12px;
}

.qq-ref-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.qq-tab {
  border: 1px solid rgba(31, 45, 61, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
}

body.night .qq-tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.qq-tab.is-active {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.20);
  color: #1d4ed8;
}

body.night .qq-tab.is-active {
  color: rgba(255, 255, 255, 0.92);
}

.qq-ref-search {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.qq-ref-list {
  max-height: 52vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(31, 45, 61, 0.10);
}

body.night .qq-ref-list {
  border-color: rgba(255, 255, 255, 0.12);
}

.qq-ref-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
}

body.night .qq-ref-item {
  background: rgba(16, 18, 20, 0.55);
}

.qq-ref-item:hover {
  background: rgba(59, 130, 246, 0.08);
}

.qq-ref-item.is-selected {
  background: rgba(59, 130, 246, 0.14);
  border-left: 3px solid rgba(59, 130, 246, 0.9);
}

.qq-ref-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: rgba(59, 130, 246, 0.12);
}

.qq-ref-thumb-empty {
  background: rgba(59, 130, 246, 0.12);
}

.qq-ref-title {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qq-ref-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 991px) {
  .qq-mobile-only {
    display: inline-flex !important;
  }
  .qq-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    z-index: 60;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }
  .qq-chat.left-open .qq-left {
    transform: translateX(0);
  }
  .qq-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 92vw);
    transform: translateX(102%);
    transition: transform 0.22s ease;
    z-index: 60;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }
  .qq-chat.right-open .qq-right {
    transform: translateX(0);
  }
  .qq-chat.right-closed .qq-right {
    display: flex;
    transform: translateX(102%);
  }
}

.qq-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 999999;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.92);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.qq-toast.is-open {
  opacity: 1;
  transform: translateY(0);
}
