/** PC 端：登录窗、三栏主窗、设置 / 搜索 / 通话弹窗 */

@media (max-width: 899px) {
  .desktop { display: none !important; }
}

@media (min-width: 900px) {
  .phone { display: none !important; }
  .app { display: none !important; }
}

/* ---------------- 桌面与壁纸 ---------------- */

.desktop {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 18% -10%, #2f5d8f 0%, transparent 60%),
    radial-gradient(900px 600px at 90% 110%, #1d3a5c 0%, transparent 55%),
    linear-gradient(135deg, #16283d 0%, #0d1726 60%, #080f1a 100%);
}

.desktop::before,
.desktop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
}

.desktop::before {
  width: 520px;
  height: 520px;
  left: -120px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(64, 156, 255, 0.22), transparent 65%);
}

.desktop::after {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(120, 90, 255, 0.18), transparent 65%);
}

[data-theme="dark"] .desktop {
  background:
    radial-gradient(1200px 700px at 18% -10%, #1b2c42 0%, transparent 60%),
    radial-gradient(900px 600px at 90% 110%, #131f2e 0%, transparent 55%),
    linear-gradient(135deg, #0b0f16 0%, #070a0f 60%, #05070b 100%);
}

/* ---------------- 主窗口 ---------------- */

.pc-win {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elev);
}

.desktop.is-login .pc-win {
  display: none;
}

.pc-bar {
  flex: none;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.pc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
  min-width: 0;
}

.pc-brand .avatar,
.pc-brand-av {
  --s: 26px;
  border-radius: 6px;
  flex: none;
}

.pc-brand-av-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 5px;
  line-height: 0;
}

.pc-brand-av-btn:hover {
  opacity: 0.85;
}

.pc-title {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.pc-bar-drag {
  flex: 1 1 auto;
  height: 100%;
}

.pc-bar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}

.pc-bar-actions .icon-btn {
  width: 32px;
  height: 30px;
  border-radius: 6px;
  color: var(--text-3);
}

.pc-bar-actions .icon-btn .ic { width: 18px; height: 18px; }

.pc-win-ctl {
  display: flex;
  gap: 0;
}

.pc-win-ctl button {
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 15px;
  transition: background 0.12s, color 0.12s;
}

.pc-win-ctl button:hover { background: var(--bg-hover); }
.pc-win-ctl .pc-close:hover { background: #e5484d; color: #fff; }

.pc-win-ctl .ic { width: 14px; height: 14px; }

/* ---------------- 三栏骨架 ---------------- */

.pc-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 64px 268px minmax(0, 1fr);
}

.pc-body.has-info {
  grid-template-columns: 64px 268px minmax(0, 1fr) 264px;
}

/* ---------------- 左侧导航 ---------------- */

.pc-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 76px;
  padding: 10px 8px 8px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}

.pc-rail-avatar {
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 12px;
  outline: 2px solid transparent;
  transition: outline-color 0.15s;
}

.pc-rail-avatar:hover { outline-color: var(--brand-soft); }

.pc-rail-btn {
  position: relative;
  width: 100%;
  min-height: 54px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-2);
  transition: background 0.14s, color 0.14s;
}

.pc-rail-btn:hover { background: var(--bg-hover); }

.pc-rail-btn.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.pc-rail-btn .ic { width: 22px; height: 22px; }

.pc-rail-btn .badge {
  position: absolute;
  top: 3px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  border: 2px solid var(--bg-soft);
  box-sizing: content-box;
}

.pc-rail-tip {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
}

.pc-rail-sep {
  width: 26px;
  height: 1px;
  margin: 6px auto;
  background: var(--line);
}

.pc-rail-spacer { flex: 1 1 auto; }

/* ---------------- 列表栏 ---------------- */

.pc-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
}

.pc-list-head {
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 16px;
}

.pc-list-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.pc-list-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-left: 4px;
}

.pc-list-head .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-2);
}

.pc-list-head .icon-btn .ic { width: 18px; height: 18px; }

.pc-search {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0 12px 8px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.14s;
}

.pc-search:hover { background: var(--bg-sunken); }
.pc-search .ic { width: 15px; height: 15px; }
.pc-search kbd {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 10.5px;
  color: var(--text-4);
}

.pc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 10px;
  scrollbar-width: thin;
}

/* 会话行 */
.pc-chat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1px 8px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s;
}

.pc-chat:hover { background: var(--bg-hover); }
.pc-chat.is-active { background: var(--brand-soft); }
.pc-chat.is-active .pc-chat-name { color: var(--brand-deep); }

[data-theme="dark"] .pc-chat.is-active .pc-chat-name { color: var(--brand-2); }

.pc-chat .avatar {
  --s: 40px;
  border-radius: 11px;
}

.pc-chat-main { flex: 1 1 auto; min-width: 0; }

.pc-chat-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-chat-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-chat-time {
  flex: none;
  font-size: 10.5px;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}

.pc-chat-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.pc-chat-preview {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-chat-flags {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-4);
}

.pc-chat-flags .ic { width: 13px; height: 13px; }
.pc-chat-flags .badge { min-width: 16px; height: 16px; font-size: 10px; }

/* ---------------- 主区域 ---------------- */

.pc-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--chat-bg);
}

.pc-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  background: var(--bg-soft);
}

.pc-empty .pc-empty-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  opacity: 0.92;
  margin-bottom: 6px;
  box-shadow: 0 10px 26px rgba(10, 124, 255, 0.22);
}

.pc-empty-title { font-size: 15px; color: var(--text-2); }
.pc-empty-desc { font-size: 12.5px; color: var(--text-4); }

/* 聊天头部 */
.pc-chat-head {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 18px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}

.pc-chat-title { font-size: 15px; font-weight: 600; }
.pc-chat-sub { margin-top: 2px; font-size: 11.5px; color: var(--text-3); }

.pc-chat-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.pc-chat-actions .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-2);
}

.pc-chat-actions .icon-btn .ic { width: 18px; height: 18px; }
.pc-chat-actions .icon-btn.is-on { background: var(--brand-soft); color: var(--brand); }

/* 消息列表（复用 .msg / .bubble，只调尺寸） */
.pc-chat-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 0 18px;
  scrollbar-width: thin;
}

.pc-chat-scroll .msg {
  padding: 5px 22px;
  gap: 10px;
}

.pc-chat-scroll .msg .avatar { --s: 34px; border-radius: 10px; }
.pc-chat-scroll .msg-body { max-width: min(66%, 620px); }
.pc-chat-scroll .msg-name { font-size: 11px; }
.pc-chat-scroll .msg-role { font-size: 10px; line-height: 14px; }
.pc-chat-scroll .bubble { border-radius: 10px; font-size: 14px; padding: 8px 12px; }
.pc-chat-scroll .bubble::after { display: none; }
.pc-chat-scroll .bubble.has-media { width: 220px; }
.pc-chat-scroll .bubble.file { width: 250px; }
.pc-chat-scroll .msg.self .bubble { border-radius: 10px; }
.pc-chat-scroll .msg.is-cont { padding-top: 2px; }
.pc-chat-scroll .chat-day { margin: 10px 0; }

/* 聊天头部的小头像（slot 方便详情晚到后就地替换） */
.pc-chat-avatar-slot,
.pc-chat-avatar { flex: none; }
.pc-chat-avatar-slot {
  display: flex;
  align-items: center;
  width: 34px;
  height: 34px;
}
.pc-chat-avatar-slot .avatar {
  --s: 34px;
  width: 34px;
  height: 34px;
}

/* 输入区 */
.pc-composer {
  flex: none;
  position: relative;
  padding: 4px 14px 8px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

/* 输入区待发图片预览 */
.pc-attach {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 6px;
}

.pc-attach-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--bg-soft) center / cover no-repeat;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pc-attach-vname {
  max-width: 100%;
  padding: 0 6px;
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-attach-x {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--text-3);
}

.pc-attach-x:hover { background: var(--bg-press); }
.pc-attach-x .ic { width: 13px; height: 13px; }

/* @ 提示横条（原「回复引用」） */
.pc-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 12px;
}

.pc-reply-bar.is-at {
  border-left: 0;
  background: transparent;
  padding-left: 0;
}

.pc-reply-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-reply-bar.is-at .pc-reply-text {
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: #0079d6;
  font-weight: 500;
}

.pc-reply-close {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--text-3);
}

.pc-reply-close:hover { background: var(--bg-press); }
.pc-reply-close .ic { width: 13px; height: 13px; }

.pc-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}

.pc-tool {
  position: relative;
  width: 30px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--text-2);
}

.pc-tool:hover { background: var(--bg-hover); }
.pc-tool .ic { width: 18px; height: 18px; }
.pc-tool.is-on { color: var(--brand); background: var(--brand-soft); }

.pc-tool-tip {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(20, 22, 26, 0.92);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pc-tool:hover .pc-tool-tip { opacity: 1; }

.pc-input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 56px;
  max-height: 160px;
}

.pc-input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 46px;
  max-height: 140px;
  padding: 4px 4px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.pc-input::placeholder { color: var(--text-4); }

.pc-send-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.pc-hint {
  flex: 1 1 auto;
  font-size: 11px;
  color: var(--text-4);
}

.pc-send {
  height: 30px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.1s;
}

.pc-send:disabled { opacity: 0.4; pointer-events: none; }
.pc-send:active { transform: scale(0.98); }

/* 表情浮层：贴左侧工具栏（表情按钮在左），别跑到右边 */
.pc-emoji-pop {
  position: absolute;
  left: 14px;
  right: auto;
  bottom: calc(100% + 6px);
  z-index: 20;
  width: 372px;
  height: 268px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}

.pc-emoji-pop.is-open { display: flex; animation: slide-up 0.16s var(--ease-out) both; }
.pc-emoji-pop .panel { display: flex; flex: 1 1 auto; height: auto; border: 0; padding: 0; animation: none; }
.pc-emoji-pop .emoji-grid { grid-template-columns: repeat(9, 1fr); }

/* ---------------- 右侧信息栏 ---------------- */

.pc-info {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
}

.pc-info-head {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}

.pc-info-head .icon-btn { margin-left: auto; width: 28px; height: 28px; color: var(--text-3); }
.pc-info-head .icon-btn .ic { width: 16px; height: 16px; }

.pc-info-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px 12px;
}

.pc-info-section { margin-bottom: 16px; flex: none; }

.pc-info-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}

.pc-info-notice {
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* 群成员：公告在上，名单占满剩余高度、一行一人自己滚 */
.pc-info-section.is-members {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.pc-info-section.is-members .pc-info-title {
  flex: none;
}

.pc-members {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 -6px;
  padding: 0 6px 4px;
  scrollbar-width: thin;
}

.pc-member {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 6px;
  border-radius: 8px;
  background: none;
  text-align: left;
  color: var(--text-1);
}

.pc-member:hover { background: var(--bg-soft); }

.pc-member .avatar { --s: 32px; border-radius: 8px; flex: none; }

.pc-member-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-member-role {
  flex: none;
  font-size: 11px;
  color: var(--text-4);
}

/* ---------------- 登录窗口 ---------------- */

.pc-login-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  backdrop-filter: none;
}

.pc-login-layer.is-open { display: flex; animation: fade-in 0.2s var(--ease-out) both; }

.pc-login {
  width: 360px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6e9ef;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
  animation: pop-in 0.24s var(--ease-out) both;
}

.pc-login-hero {
  position: relative;
  height: 112px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  color: #1f2329;
}

.pc-login-hero .avatar {
  --s: 56px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pc-login-name {
  font-size: 17px;
  font-weight: 600;
  color: #1f2329;
  text-shadow: none;
}

.pc-login-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.pc-login-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.pc-login-body { padding: 20px 22px 20px; background: #fff; }

.pc-login-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pc-login-tab {
  position: relative;
  padding: 0 0 9px;
  font-size: 13px;
  color: var(--text-3);
}

.pc-login-tab.is-on { color: var(--brand); font-weight: 500; }
.pc-login-tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.pc-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.pc-field:focus-within {
  background: var(--bg-elev);
  border-color: var(--brand);
}

.pc-field .ic { width: 16px; height: 16px; color: var(--text-3); }

.pc-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
}

.pc-login-btn {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f9dff, #0a7cff);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(10, 124, 255, 0.3);
  transition: transform 0.12s, opacity 0.15s;
}

.pc-login-btn:active { transform: scale(0.985); }
.pc-login-btn:disabled { opacity: 0.6; }

.pc-login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-3);
}

.pc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.pc-check input { accent-color: var(--brand); }

.pc-login-tip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-4);
}

.pc-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0 8px;
}

.pc-qr-box {
  width: 168px;
  height: 168px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.pc-qr-box svg { width: 100%; height: 100%; }

.pc-qr-text { font-size: 12px; color: var(--text-3); }

/* ---------------- 通用模态（设置 / 搜索 / 通话） ---------------- */

.pc-modal-layer {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 18, 0.35);
  animation: fade-in 0.18s var(--ease-out) both;
}

.pc-modal {
  display: flex;
  overflow: hidden;
  background: var(--bg-elev);
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  animation: pop-in 0.2s var(--ease-out) both;
}

/* 设置：铺满主窗口（主区直达面板） */
.pc-settings { width: 100%; height: 100%; display: flex; }

.pc-settings-nav {
  flex: none;
  width: 196px;
  padding: 14px 10px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.pc-settings-nav .pc-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
}

.pc-settings-nav .pc-nav-item:hover { background: var(--bg-hover); }
.pc-settings-nav .pc-nav-item.is-active { background: var(--brand-soft); color: var(--brand); }
.pc-settings-nav .pc-nav-item .ic { width: 17px; height: 17px; }

.pc-settings-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pc-settings-head {
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

.pc-settings-head .icon-btn { margin-left: auto; width: 30px; height: 30px; color: var(--text-3); }
.pc-settings-head .icon-btn .ic { width: 16px; height: 16px; }

.pc-about-hero {
  text-align: center;
  padding: 22px 12px 10px;
}

.pc-about-hero img {
  display: block;
  margin: 0 auto 12px;
  border-radius: 14px;
}

.pc-about-name {
  font-size: 16px;
  font-weight: 600;
}

.pc-about-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.pc-about-blurb {
  margin: 8px 0 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-sunken);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}

.pc-about-points {
  margin: 0 0 14px;
  padding: 10px 14px 10px 28px;
  border-radius: 10px;
  background: var(--bg-sunken);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

.pc-about-points li + li { margin-top: 4px; }

.pc-settings-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 26px;
}

.pc-set-group {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.pc-set-group-title {
  padding: 10px 14px 4px;
  font-size: 11px;
  color: var(--text-3);
}

.pc-set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.pc-set-group-title + .pc-set-row { border-top: 0; }

.pc-set-row-main { flex: 1 1 auto; min-width: 0; }
.pc-set-row-desc { margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.pc-set-row-value { font-size: 12.5px; color: var(--text-3); }

.pc-set-row.is-danger { color: var(--danger); }

.add-bot-btn { min-height: 44px; font-size: 13px; }

.my-stats-box { display: inline-block; width: auto; max-width: 300px; }

.my-stats-box .pc-set-row-main { flex: 0 1 auto; }

/* 设置 → 插件 */
.pc-plugin-card {
  margin-bottom: 10px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
}

.pc-plugin-card.is-off { opacity: 0.72; }

.pc-plugin-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-plugin-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.pc-plugin-ver {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.pc-plugin-top .switch {
  margin-left: auto;
}

.pc-plugin-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.pc-plugin-desc {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.pc-settings-foot {
  padding: 10px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--text-4);
}

/* 搜索 */
.pc-searchwin {
  width: min(600px, 86vw);
  max-height: min(620px, 76vh);
  flex-direction: column;
}

.pc-search-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.pc-search-head .ic { width: 17px; height: 17px; color: var(--text-3); }

.pc-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.pc-search-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.pc-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
}

.pc-search-result:hover { background: var(--bg-hover); }
.pc-search-result .avatar { --s: 32px; border-radius: 9px; }
.pc-search-result .pc-sr-title { font-size: 13px; }
.pc-search-result .pc-sr-sub { margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.pc-search-empty { padding: 36px 16px; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* ---------------- 主区域里的资料卡 / 动态 ---------------- */

.pc-profile-pane {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-soft);
  color: var(--text-2);
}

.pc-profile-card {
  width: min(420px, 80%);
  padding: 26px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  text-align: center;
}

.pc-profile-card .avatar { margin: 0 auto 12px; --s: 72px; }
.pc-profile-name { font-size: 19px; font-weight: 700; }
.pc-profile-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.pc-profile-sign {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.pc-profile-actions { display: flex; gap: 10px; margin-top: 14px; }
.pc-profile-actions .btn { flex: 1; }

/* ---------------- 紧凑模式（900~1100px） ---------------- */

@media (max-width: 1100px) {
  .pc-body { grid-template-columns: 56px 236px minmax(0, 1fr); }
  .pc-body.has-info { grid-template-columns: 56px 236px minmax(0, 1fr) 240px; }
  .pc-win { width: 100vw; height: 100vh; }
  .pc-chat-scroll .msg-body { max-width: 74%; }
}

/* ---------------- 深色细节 ---------------- */

[data-theme="dark"] .pc-login {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pc-qr-box { background: #fff; }

/* ---------------- 滚动条与桌面弹层细节 ---------------- */

.pc-scroll,
.pc-chat-scroll,
.pc-info-body,
.pc-settings-body,
.pc-settings-nav,
.pc-search-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 19, 25, 0.18) transparent;
}

.pc-scroll::-webkit-scrollbar,
.pc-chat-scroll::-webkit-scrollbar,
.pc-info-body::-webkit-scrollbar::-webkit-scrollbar,
.pc-settings-body::-webkit-scrollbar,
.pc-settings-nav::-webkit-scrollbar,
.pc-search-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.pc-scroll::-webkit-scrollbar-thumb,
.pc-chat-scroll::-webkit-scrollbar-thumb,
.pc-info-body::-webkit-scrollbar-thumb::-webkit-scrollbar-thumb,
.pc-settings-body::-webkit-scrollbar-thumb,
.pc-settings-nav::-webkit-scrollbar-thumb,
.pc-search-body::-webkit-scrollbar-thumb {
  background: rgba(15, 19, 25, 0.16);
  border-radius: 4px;
}

.pc-scroll::-webkit-scrollbar-track,
.pc-chat-scroll::-webkit-scrollbar-track,
.pc-info-body::-webkit-scrollbar-track::-webkit-scrollbar-track,
.pc-settings-body::-webkit-scrollbar-track {
  background: transparent;
}

[data-theme="dark"] .pc-scroll,
[data-theme="dark"] .pc-chat-scroll,
[data-theme="dark"] .pc-info-body,
[data-theme="dark"] [data-theme="dark"] .pc-settings-body {
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

[data-theme="dark"] .pc-scroll::-webkit-scrollbar-thumb,
[data-theme="dark"] .pc-chat-scroll::-webkit-scrollbar-thumb,
[data-theme="dark"] .pc-info-body::-webkit-scrollbar-thumb::-webkit-scrollbar-thumb,
[data-theme="dark"] .pc-settings-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
}

/* 桌面端底部面板不要拉满整屏 */
.desktop .sheet {
  max-width: 460px;
  margin: 0 auto;
  border-radius: 14px 14px 0 0;
}

.desktop .toast { bottom: 120px; }

/* ---------------- 群发消息（PC 主区域） ---------------- */

.pc-main .broadcast-page .bc-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px 0;
}

.pc-main .broadcast-page .bc-groups { max-height: 420px; }
.pc-main .broadcast-page .bc-textarea { min-height: 86px; }
.pc-main .broadcast-page .bc-sticky { position: sticky; bottom: 0; padding: 10px 0 16px; background: var(--bg); }
.pc-main .broadcast-page .bc-wrap.is-editor { padding-bottom: 12px; }

/* ---------------- 登录页固定白底（浅色/深色主题都保持白底深字） ---------------- */

.pc-login .pc-field {
  background: #f5f6f8;
  border-color: #e6e9ef;
}

.pc-login .pc-field:focus-within {
  background: #fff;
  border-color: #2f9dff;
}

.pc-login .pc-field input { color: #1f2329; }

.pc-login .pc-field .ic { color: #8a8f99; }

.pc-login .pc-login-tip {
  color: #8a8f99;
  border-top-color: #eef0f4;
}

.pc-login .pc-check { color: #5c6370; }

.pc-login .pc-check input { accent-color: #2f9dff; }

[data-theme="dark"] .pc-login { border-color: #e6e9ef; }
