/* ============================================================
   站内聊天 · 浮窗（chat-widget.css）
   与全站淡青渐变保持一致
   ============================================================ */
.cw-fab,
.cw-panel,
.cw-backdrop {
  --cw-deep: #0C645C;
  --cw-main: #0F766E;
  --cw-mid: #1F9D90;
  --cw-light: #59CBB5;
  --cw-mint: #EAF8F5;
  --cw-pale: #F6FBFA;
  --cw-ink: #123B36;
  --cw-muted: #6F8F89;
  --cw-line: #DDEEE9;
  --cw-danger: #EF4444;
  box-sizing: border-box;
}
.cw-fab *,
.cw-panel *,
.cw-backdrop * { box-sizing: border-box; }

/* 悬浮入口（3D 小智形象，透明底站立角落） */
.cw-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99900;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: grab;
  color: #fff;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  transition: transform .2s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.cw-fab.is-drag { cursor: grabbing; opacity: .94; transition: none; }
.cw-fab.is-drag:hover { transform: none; }
.cw-fab:hover { transform: translateY(-3px); }
.cw-fab:active { transform: translateY(0) scale(.97); }
.cw-fab__buddy {
  position: relative;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(12,100,92,.22));
  animation: cw-elf-float 2.8s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.cw-buddy { height: 123px; width: auto; display: block; }
.cw-buddy--blink {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  animation: cw-blink 4.2s ease-in-out infinite;
}
.cw-tassel {
  position: absolute;
  left: 44px;
  top: 8px;
  height: 21px;
  width: auto;
  transform-origin: 50% 0;
  animation: cw-tassel-sway 3.2s ease-in-out infinite;
  pointer-events: none;
}
.cw-fab svg { width:34px; height:34px; display:block; }
.cw-lottie {
  position: relative;
  display: block;
  width: 90px;
  height: 123px;
  filter: drop-shadow(0 10px 14px rgba(12,100,92,.22));
  transform-origin: 50% 100%;
}
.cw-lottie canvas,
.cw-lottie svg { width: 100% !important; height: 100% !important; display: block; }
.cw-lottie__img { height: 123px; width: auto; display: block; }

/* 整图素材帧叠加层（姿势/表情）与部件（爱心/问号） */
.cw-actor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.cw-actor[hidden], .cw-actor-part[hidden] { display: none; }
.cw-lottie--frame canvas,
.cw-lottie--frame svg { opacity: 0; }
.cw-actor-part {
  position: absolute;
  top: 2%;
  left: 76%;
  width: 36%;
  height: auto;
  pointer-events: none;
  animation: cw-part-pop 1.2s ease-in-out infinite;
}
@keyframes cw-part-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.1); }
}

/* 小智动作库片段（整图级，容器 transform；后续按位置选配） */
.act-tilt { animation: act-tilt 3s ease-in-out infinite; }
@keyframes act-tilt { 0%,100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3deg); } }
.act-nod { animation: act-nod .8s ease; }
@keyframes act-nod { 0% { transform: rotate(0) translateY(0); } 30% { transform: rotate(4deg) translateY(-2px); } 60% { transform: rotate(-2deg); } 100% { transform: rotate(0) translateY(0); } }
.act-shift { animation: act-shift 4s ease-in-out infinite; }
@keyframes act-shift { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.act-peek { animation: act-peek 5s ease-in-out infinite; }
@keyframes act-peek { 0%,100% { transform: translateX(-4px) rotate(-2deg); } 50% { transform: translateX(4px) rotate(2deg); } }
.act-lean { transform: scale(1.04) translateY(-2px); }
.act-bounce { animation: act-bounce .45s ease; }
@keyframes act-bounce { 0% { transform: translateY(0); } 35% { transform: translateY(-9px); } 100% { transform: translateY(0); } }
.act-greet { animation: act-greet 1s ease; }
@keyframes act-greet { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(5deg) translateY(-3px); } 55% { transform: rotate(-3deg); } 100% { transform: rotate(0) translateY(0); } }

/* 小智形象微动：整体呼吸漂浮；眨眼双帧轮播；仅悬浮钮内生效 */
@keyframes cw-elf-float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.02); } }
@keyframes cw-blink {
  0%, 88% { opacity: 0; }
  90% { opacity: 1; }
  93% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@keyframes cw-tassel-sway {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cw-fab__buddy, .cw-buddy--blink, .cw-tassel,
  .cw-lottie[class*="act-"] { animation: none !important; }
  .cw-fab-tip { transition: none !important; }
}

/* 小智引导气泡（对齐答题中心 qz-comp-float 基准） */
.cw-fab-tip {
  position: absolute;
  left: 104px;
  top: -14px;
  transform: translateX(-5px);
  padding: 9px 12px 10px;
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(255,255,255,.90) 0%, rgba(250,253,252,.82) 45%, rgba(223,242,236,.74) 100%);
  -webkit-backdrop-filter: blur(13px) saturate(1.35);
  backdrop-filter: blur(13px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.86);
  color: #235852;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .3px;
  line-height: 1.5;
  max-width: 236px;
  width: max-content;
  min-width: 150px;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), inset 0 -9px 16px -12px rgba(12,100,92,.14), 0 1px 2px rgba(12,100,92,.04), 0 16px 30px -18px rgba(12,100,92,.26);
  opacity: 0;
  pointer-events: auto;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 2;
}
/* 三角尾巴关闭，连接统一由圆点串承担（对齐基准 ::after{content:none}） */
.cw-fab-tip::after { content: none !important; }
.cw-fab-tip.is-win { background: linear-gradient(162deg, rgba(255,255,255,.94) 0%, rgba(241,250,247,.87) 52%, rgba(219,241,233,.79) 100%); border-color: rgba(255,255,255,.92); }
.cw-fab-tip.is-show { opacity: 1; transform: translateX(0); }
.cw-fab-tip__txt { display: block; white-space: nowrap; color: #235852; }

/* 未读提醒卡片（标题 / 副文 / 去看） */
.cw-fab-tip__unread { display: block; }
.cw-fab-tip__unread[hidden] { display: none; }
.cw-fab-tip__goal { display: block; }
.cw-fab-tip__goal[hidden] { display: none; }
.cw-fab-tip__title { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: #0c645c; white-space: nowrap; }
/* 标题前绿色四角星（对齐基准 qz-comp-title::before） */
.cw-fab-tip__title .dot {
  flex: none; width: 11px; height: 11px; margin-right: 0; border: 0; border-radius: 0;
  transform: none; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%232FA48F' d='M6 0l1.6 4.4L12 6l-4.4 1.6L6 12l-1.6-4.4L0 6l4.4-1.6z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cw-fab-tip__sub { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: #235852; line-height: 1.5; white-space: nowrap; }
.cw-fab-tip__go { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--cw-deep); white-space: nowrap; }
.cw-fab::after { content: none; }

/* 思想泡圆点串尾巴（p-right：气泡在右，三粒递减朝左指向小智） */
.cw-fab-tail {
  position: absolute;
  right: 100%;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 1;
}
.cw-fab-tail i {
  display: block;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,252,250,.96));
  border: 1px solid rgba(176,211,201,.95);
  box-shadow: 0 1px 2px rgba(12,100,92,.10);
}
.cw-fab-tail .d1 { width: 14px; height: 14px; background: linear-gradient(158deg, rgba(255,255,255,.95), rgba(238,247,243,.85)); border-color: transparent; box-shadow: none; margin-right: -4px; }
.cw-fab-tail .d2 { width: 10px; height: 10px; }
.cw-fab-tail .d3 { width: 7px; height: 7px; }

/* IM 独立入口：右下角青绿圆钮（好友/群聊） */
.cw-im-fab {
  --cw-deep: #0C645C;
  --cw-main: #0F766E;
  --cw-mid: #1F9D90;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99900;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cw-deep), var(--cw-mid));
  box-shadow: 0 10px 22px rgba(12,100,92,.32);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cw-im-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(12,100,92,.38); }
.cw-im-fab:active { transform: translateY(0) scale(.96); }
.cw-im-fab svg { width: 26px; height: 26px; display: block; }
.cw-im-fab .cw-fab__badge { top: -4px; right: -4px; }
.cw-im-fab::after {
  content: "站内聊天";
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--cw-main);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .16);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.cw-im-fab:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.cw-fab__badge {
  position: absolute;
  top: 0;
  right: 8px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--cw-danger);
  border: 2px solid #fff;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  font-family: Arial, sans-serif;
}
.cw-fab__badge[hidden] { display: none !important; }
.cw-fab .cw-fab__badge { display: none !important; }
.cw-fab .cw-fab__badge { top: 2px; right: 2px; }

/* 浮层容器 */
.cw-panel {
  position: fixed;
  left: 22px;
  bottom: 86px;
  z-index: 99995;
  width: 368px;
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 30px 70px -24px rgba(8, 60, 55, .35), inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 40px -30px rgba(31, 157, 144, .5);
  animation: cwIn .2s cubic-bezier(.2, .8, .3, 1) both;
}
.cw-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(31, 157, 144, .7), transparent);
  pointer-events: none;
}
.cw-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(rgba(31, 157, 144, .12) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%);
}
.cw-panel[hidden] { display: none !important; }
.cw-backdrop[hidden] { display: none !important; }
@keyframes cwIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 顶栏 */
.cw-head {
  position: relative;
  flex: 0 0 auto;
  min-height: 62px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 88% -20%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(135deg, #0C645C 0%, #1F9D90 62%, #4FC3AD 100%);
}
.cw-head::after {
  content: "";
  position: absolute;
  left: -26px;
  bottom: -46px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.cw-head__id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.cw-head__logo svg { width:24px; height:24px; display:block; }
.cw-head__logo-img { width:30px; height:30px; object-fit:contain; display:block; }
.cw-head__logo {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 17px;
}
.cw-head__txt { min-width: 0; }
.cw-head__txt b {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2px;
}
.cw-head__txt em {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .78);
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.2;
}
.cw-head__count {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.cw-head__count[hidden] { display: none !important; }
.cw-head__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .16s ease;
}
.cw-head__close:hover { background: rgba(255, 255, 255, .24); }

/* 主体 */
.cw-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.cw-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.cw-list[hidden],
.cw-thread[hidden],
.cw-guest[hidden] { display: none !important; }

.cw-search {
  flex: 0 0 auto;
  position: relative;
  padding: 9px 14px 6px;
  background: transparent;
}
.cw-search i {
  position: absolute;
  left: 27px;
  top: 50%;
  transform: translateY(-38%);
  color: #8AA9A3;
  font-size: 12px;
  pointer-events: none;
}
.cw-search input {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px 0 34px;
  border: 1px solid var(--cw-line);
  border-radius: 11px;
  outline: 0;
  background: rgba(255, 255, 255, .15);
  color: var(--cw-ink);
  font-size: 12.5px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.cw-search input::placeholder { color: #94ACA7; }
.cw-search input:focus {
  background: #fff;
  border-color: #7BC9BB;
  box-shadow: 0 0 0 3px rgba(79, 195, 173, .14);
}

.cw-contacts {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 8px 8px;
  overscroll-behavior: contain;
}
.cw-contacts::-webkit-scrollbar { width: 6px; }
.cw-contacts::-webkit-scrollbar-thumb { background: #D7E9E4; border-radius: 3px; }
.cw-contacts::-webkit-scrollbar-track { background: transparent; }

.cw-contact {
  width: 100%;
  margin: 0;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--cw-ink);
  transition: background .15s ease;
}
.cw-contact:hover { background: #F2FAF8; }
.cw-contact.is-on { background: var(--cw-mint); box-shadow: inset 3px 0 0 var(--cw-mid); }
.cw-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #0C645C, #1F9D90, #59CBB5);
  box-shadow: 0 4px 10px rgba(15, 118, 110, .18);
  user-select: none;
}
.cw-contact__main { flex: 1 1 auto; min-width: 0; }
.cw-contact__top,
.cw-contact__bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cw-contact__top { margin-bottom: 4px; }
.cw-contact__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.cw-contact__time {
  flex: 0 0 auto;
  color: #9AB1AC;
  font-size: 10px;
  line-height: 1.2;
}
.cw-contact__last {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7B9590;
  font-size: 11.5px;
  line-height: 1.35;
}
.cw-contact__last.is-mine { color: #9AAEAA; }
.cw-contact__badge {
  flex: 0 0 auto;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--cw-danger);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  font-family: Arial, sans-serif;
}
.cw-list__foot {
  flex: 0 0 auto;
  padding: 9px 14px 11px;
  border-top: 1px solid #F0F7F5;
  color: #98ADA8;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}
.cw-side-empty {
  padding: 42px 18px;
  color: #8BA49F;
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}

/* 会话 */
.cw-thread {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.cw-thread__head {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 9px 12px 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-bottom: 1px solid #EDF6F3;
}
.cw-thread__head .cw-avatar { width: 34px; height: 34px; font-size: 12.5px; }
.cw-thread__meta { flex: 1 1 auto; min-width: 0; }
.cw-thread__meta b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cw-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.cw-thread__meta em {
  display: block;
  margin-top: 2px;
  color: #8CA6A1;
  font-style: normal;
  font-size: 10px;
  line-height: 1.2;
}
.cw-back {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #F1F9F7;
  color: var(--cw-main);
  font-size: 12px;
  cursor: pointer;
}
.cw-back:hover { background: var(--cw-mint); }

.cw-msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 13px 16px;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 100% 0, rgba(79, 195, 173, .07), transparent 42%),
    radial-gradient(circle at 0 100%, rgba(15, 118, 110, .06), transparent 40%),
    transparent;
}
.cw-msgs::-webkit-scrollbar { width: 6px; }
.cw-msgs::-webkit-scrollbar-thumb { background: #D7E9E4; border-radius: 3px; }
.cw-msgs__empty {
  margin-top: 56px;
  color: #92AAA5;
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}
.cw-day {
  margin: 8px 0 12px;
  text-align: center;
}
.cw-day span {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .07);
  color: #8EA8A3;
  font-size: 9.5px;
  line-height: 1.4;
}
.cw-msg {
  display: flex;
  margin: 0 0 10px;
  align-items: flex-end;
}
.cw-msg--mine { justify-content: flex-end; }
.cw-msg__wrap { max-width: 82%; display: flex; flex-direction: column; }
.cw-msg--mine .cw-msg__wrap { align-items: flex-end; }
.cw-bubble {
  padding: 8px 11px;
  border-radius: 14px 14px 14px 5px;
  background: #fff;
  border: 1px solid #E3F0ED;
  color: #214A45;
  font-size: 12.5px;
  line-height: 1.62;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 3px 9px rgba(18, 59, 54, .045);
}
.cw-msg--mine .cw-bubble {
  border: 0;
  border-radius: 14px 14px 5px 14px;
  color: #fff;
  background: linear-gradient(135deg, #0C645C 0%, #1F9D90 70%, #3FB6A1 100%);
  box-shadow: 0 6px 14px rgba(15, 118, 110, .18);
}
.cw-msg__time {
  margin-top: 3px;
  color: #A1B5B1;
  font-size: 9px;
  line-height: 1.2;
}

/* 输入区 */
.cw-compose {
  flex: 0 0 auto;
  padding: 10px 12px 11px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: #fff;
  border-top: 1px solid #EDF6F3;
}
.cw-compose__box {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #E3F0EC;
  border-radius: 12px;
  background: #FBFEFD;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.cw-compose__box:focus-within {
  border-color: #3FB6A1;
  background: #fff;
  box-shadow: none;
}
.cw-compose textarea {
  display: block;
  width: 100%;
  height: 24px;
  min-height: 24px;
  max-height: 88px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--cw-ink);
  font-size: 12.5px;
  line-height: 24px;
  overflow-y: auto;
}
.cw-compose textarea::-webkit-scrollbar { width: 0; height: 0; }
.cw-compose__box.has-count textarea { padding-right: 46px; }
.cw-compose textarea::placeholder { color: #9BB0AC; }
.cw-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #AFC0BC;
  font-size: 9px;
  line-height: 1;
  font-family: Arial, sans-serif;
  pointer-events: none;
}
.cw-send {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #0C645C, #1F9D90 65%, #4FC3AD);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 118, 110, .16);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.cw-send:hover { filter: brightness(1.04); transform: translateY(-1px); }
.cw-send:disabled { opacity: .55; cursor: default; transform: none; filter: none; }

/* 未登录 */
.cw-guest {
  flex: 1 1 auto;
  min-height: 0;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(79, 195, 173, .12), transparent 46%),
    transparent;
  text-align: center;
}
.cw-guest__ico {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0C645C, #1F9D90 62%, #59CBB5);
  color: #fff;
  font-size: 25px;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .22);
}
.cw-guest b {
  margin-top: 18px;
  color: var(--cw-ink);
  font-size: 15px;
  font-weight: 700;
}
.cw-guest p {
  margin: 7px 0 18px;
  color: #7D9893;
  font-size: 12px;
  line-height: 1.75;
}
.cw-guest__btn {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #0C645C, #1F9D90 65%, #4FC3AD);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
}

/* 轻提示 */
.cw-flash {
  position: absolute;
  top: 72px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 8px 13px;
  border-radius: 9px;
  background: rgba(18, 59, 54, .92);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 24px rgba(8, 45, 41, .18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-flash[hidden] { display: none !important; }

/* 移动端：底部抽屉 */
.cw-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: block;
  background: rgba(8, 45, 41, .36);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
@media (max-width: 767px) {
  body.cw-open { overflow: hidden; }
  .cw-fab {
    left: 12px;
    bottom: 16px;
  }
  .cw-im-fab {
    right: 12px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
  .cw-im-fab::after { display: none; }
  .cw-buddy { height: 88px; }
  .cw-lottie { width: 62px; height: 88px; }
  .cw-lottie__img { height: 88px; }
  .cw-tassel { left: 32px; top: 6px; height: 15px; }
  .cw-fab::after { display: none; }
  .cw-fab-tip { display: none; }
  .cw-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(86vh, 720px);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    animation: cwSheet .24s cubic-bezier(.2, .8, .3, 1) both;
  }
  @keyframes cwSheet {
    from { opacity: .6; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .cw-head {
    min-height: 64px;
    padding: 15px 12px 12px 16px;
    border-radius: 20px 20px 0 0;
  }
  .cw-head__close { width: 34px; height: 34px; }
  .cw-avatar { width: 40px; height: 40px; font-size: 14.5px; }
  .cw-thread__head .cw-avatar { width: 34px; height: 34px; }
  .cw-contact { padding: 11px 8px; }
  .cw-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .cw-msgs { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 768px) {
  .cw-backdrop { display: none !important; }
}
@media (max-width: 380px) {
  .cw-head__count { display: none; }
  .cw-contact__time { display: none; }
  .cw-send { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-panel, .cw-fab, .cw-contact, .cw-send { animation: none !important; transition: none !important; }
}

/* ============================================================
   2026-11-28 · 浮窗升级为「好友 + 学习小组」双栏面板
   ============================================================ */
.cw-panel {
  left: 120px;
  bottom: 150px;
  width: min(520px, calc(100vw - 44px));
  height: min(440px, calc(100vh - 170px));
}
.cw-shell { flex: 1 1 auto; min-height: 0; display: flex; position: relative; z-index: 1; }
.cw-aside {
  flex: 0 0 284px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 12px;
  border-right: 1px solid var(--cw-line);
  background: rgba(234, 248, 245, .08);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cw-aside::-webkit-scrollbar { width: 6px; }
.cw-aside::-webkit-scrollbar-thumb { background: #D7E9E4; border-radius: 3px; }
.cw-aside .cw-search { position: sticky; top: 0; z-index: 2; margin: 0 0 8px; background: transparent; }

.cw-block { flex: 0 0 auto; padding-top: 4px; }
.cw-block[hidden] { display: none !important; }
.cw-block__t {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 4px;
  color: #7FA09A;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
}
.cw-block__t::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(12,100,92,.14), rgba(12,100,92,0));
}
.cw-block__body { display: flex; flex-direction: column; gap: 2px; }

.cw-side-empty {
  padding: 10px 8px;
  color: #93ABA6;
  font-size: 11.5px;
  line-height: 1.5;
}

/* 好友申请 */
.cw-req {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(12,100,92,.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px -14px rgba(6,42,37,.34);
}
.cw-req .cw-avatar { width: 32px; height: 32px; font-size: 12px; }
.cw-req__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; cursor: pointer; }
.cw-req__name { font-size: 12.5px; font-weight: 700; color: var(--cw-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-req__tip { font-size: 10.5px; color: #7E9691; }
.cw-req__acts { display: flex; gap: 5px; flex: 0 0 auto; }
.cw-req__ok, .cw-req__no {
  border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600;
  padding: 5px 9px; border-radius: 999px; transition: .16s;
}
.cw-req__ok { background: #0F766E; color: #fff; }
.cw-req__ok:hover { background: #0C645C; }
.cw-req__no { background: rgba(12,100,92,.08); color: #4F6A66; }
.cw-req__no:hover { background: rgba(12,100,92,.16); }

/* 条目上的加/删 */
.cw-contact { position: relative; padding-right: 30px; }
.cw-add, .cw-unfriend {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(12,100,92,.08);
  color: #0C645C;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .14s ease, background .14s ease;
}
.cw-contact:hover .cw-add,
.cw-contact:hover .cw-unfriend,
.cw-contact.is-on .cw-add,
.cw-contact.is-on .cw-unfriend { opacity: 1; }
.cw-add:hover { background: #0F766E; color: #fff; }
.cw-unfriend { background: rgba(180,99,58,.10); color: #B4633A; font-size: 14px; font-weight: 500; }
.cw-unfriend:hover { background: #B4633A; color: #fff; }
.cw-add.is-pending { opacity: 1; font-size: 10.5px; background: rgba(12,100,92,.12); }

.cw-avatar--group {
  background: linear-gradient(135deg, #0B4F4A 0%, #0F766E 60%, #2E8F83 100%) !important;
  font-size: 15px;
}

/* 主区 */
.cw-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; position: relative; background: transparent; }
.cw-thread { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cw-thread[hidden], .cw-empty[hidden], .cw-guest[hidden] { display: none !important; }
.cw-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(79, 195, 173, .13), transparent 48%),
    transparent;
  text-align: center;
}
.cw-empty__ico svg { width:40px; height:40px; display:block; }
.cw-empty__ico {
  width: 62px; height: 62px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0C645C, #1F9D90 62%, #59CBB5);
  color: #fff; font-size: 25px; margin-bottom: 6px;
  box-shadow: 0 14px 30px rgba(15, 118, 110, .24);
}
.cw-empty b { color: var(--cw-ink); font-size: 15px; }
.cw-empty p { margin: 0; color: #86A09B; font-size: 12px; line-height: 1.7; }

/* 会话头部动作按钮 */
.cw-thread__head { gap: 10px; }
.cw-act {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, .28);
  border-radius: 999px;
  background: rgba(15, 118, 110, .07);
  color: #0C645C;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .16s;
}
.cw-act:hover { background: #0F766E; color: #fff; border-color: #0F766E; }
.cw-act.is-danger { color: #B4633A; background: #FDF4EE; border-color: #F1DFD2; }
.cw-act.is-danger:hover { background: #B4633A; color: #fff; border-color: #B4633A; }
.cw-act.is-ghost { color: #55706C; background: #F1F6F4; border-color: #DCE8E4; }
.cw-act.is-ghost:hover { background: #0C645C; color: #fff; border-color: #0C645C; }

/* 群消息 */
.cw-msg { gap: 8px; }
.cw-msg__av {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
  user-select: none;
}
.cw-msg__who { margin-bottom: 3px; color: #7D9691; font-size: 10.5px; line-height: 1.2; }

/* 输入锁 */
.cw-compose textarea.is-locked {
  background: transparent !important;
  color: #8AA29D !important;
  cursor: default;
}
.cw-send.is-locked { background: rgba(12,100,92,.14); color: #0C645C; box-shadow: none; }
.cw-send.is-locked:hover { transform: none; filter: none; }

/* 移动端：列表 / 会话二选一 */
@media (max-width: 767px) {
  .cw-panel { width: auto; height: min(96vh, 900px); }
  .cw-shell { flex-direction: column; }
  .cw-aside { flex: 1 1 auto; border-right: 0; }
  .cw-main { flex: 1 1 auto; }
  .cw-shell:not(.is-thread) .cw-main { display: none; }
  .cw-shell.is-thread .cw-aside { display: none; }
  .cw-add, .cw-unfriend { opacity: 1; }
  .cw-contact__time { display: none; }
  .cw-thread__head { padding-left: 8px; }
}

/* 修正：提示不压会话头 / 锁定输入框灰底 */
.cw-flash {
  top: auto;
  bottom: 92px;
  padding: 9px 14px;
  font-size: 12px;
  max-width: calc(100% - 60px);
}
.cw-compose textarea.is-locked:not(:focus) {
  background: transparent !important;
}
.cw-compose:has(textarea.is-locked) .cw-compose__box {
  background: #F5F9F7;
  border-color: #E7EFEC;
  box-shadow: none;
}

/* ============================================================
   2026-11-28 · 好友块：数量 + 添加好友入口
   ============================================================ */
.cw-block__t::after { order: 1; }
.cw-block__num {
  order: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(12, 100, 92, .10);
  color: #0C645C;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cw-block__add {
  order: 3;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(12, 100, 92, .18);
  background: #fff;
  color: #0C645C;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cw-block__add:hover { background: #0C645C; color: #fff; border-color: #0C645C; }
.cw-addbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 7px 10px;
  border: 1px solid rgba(12, 100, 92, .18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 100, 92, .06);
}
.cw-addbar[hidden] { display: none !important; }
.cw-addbar i { color: #1F9D90; font-size: 11px; }
.cw-addbar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  color: #062A25;
}
.cw-addbar input::placeholder { color: #9BB0AC; }
.cw-addbar__x {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 100, 92, .06);
  color: #7FA09A;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.cw-addbar__x:hover { background: rgba(12, 100, 92, .14); color: #0C645C; }
.cw-mini-add {
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(12, 100, 92, .22);
  background: #fff;
  color: #0C645C;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.cw-mini-add:hover { background: rgba(12, 100, 92, .06); }
.cw-search[hidden] { display: none !important; }
.cw-block__hint {
  font-size: 9.5px;
  font-weight: 500;
  color: #A9BCB8;
  letter-spacing: 0;
}
#cw-friends .cw-side-empty { padding: 22px 12px 16px; }
#cw-friends .cw-side-empty .cw-mini-add { display: inline-flex; align-items: center; gap: 2px; }

/* ============ 侧栏分段切换（好友 / 小组 / 申请）============ */
.cw-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 4px;
}
.cw-tabs__seg {
  flex: 1 1 auto;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(12, 100, 92, .07);
  border-radius: 999px;
  min-width: 0;
}
.cw-tab {
  flex: 1 1 0;
  min-width: 0;
  height: 26px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5F7C76;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.cw-tab:hover { color: #0C645C; }
.cw-tab.is-on {
  background: rgba(255, 255, 255, .7);
  color: #0C645C;
  box-shadow: 0 1px 4px rgba(12, 100, 92, .10);
}
.cw-tab__n { font-size: 11px; font-weight: 600; color: #93ABA6; }
.cw-tab.is-on .cw-tab__n { color: #1F9D90; }
.cw-tab__n--hot {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #B4633A;
  color: #FFFFFF;
  font-size: 10.5px;
  line-height: 16px;
  text-align: center;
}
.cw-tabs__add {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(12, 100, 92, .18);
  background: rgba(255, 255, 255, .5);
  color: #0C645C;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.cw-tabs__add:hover { background: #0C645C; color: #FFFFFF; border-color: #0C645C; }

/* 标题行由 tab 承担，块内不再重复 */
.cw-sec--friends > .cw-block__t,
.cw-sec--groups > .cw-block__t,
.cw-sec--reqs > .cw-block__t { display: none !important; }
.cw-sec--friends, .cw-sec--groups, .cw-sec--reqs { padding-top: 2px; }

/* 三个抽屉互斥 */
.cw-aside[data-tab="friends"] .cw-sec--groups,
.cw-aside[data-tab="friends"] .cw-sec--reqs,
.cw-aside[data-tab="groups"] .cw-sec--friends,
.cw-aside[data-tab="groups"] .cw-sec--reqs,
.cw-aside[data-tab="reqs"] .cw-sec--friends,
.cw-aside[data-tab="reqs"] .cw-sec--groups { display: none !important; }

/* 成员模式：点 ＋ 后整栏换成站内成员，tabs 收起 */
.cw-aside.is-add .cw-tabs,
.cw-aside.is-add .cw-sec--friends,
.cw-aside.is-add .cw-sec--groups,
.cw-aside.is-add .cw-sec--reqs { display: none !important; }
.cw-aside:not(.is-add) .cw-sec--peers { display: none !important; }
.cw-aside.is-add .cw-sec--peers > .cw-block__t { display: flex !important; }

/* 申请条目在申请页里占满一行 */
.cw-sec--reqs .cw-req { margin-bottom: 2px; }

/* 成员模式里 ＋ 常显（这里就是用来加好友的） */
.cw-aside.is-add .cw-add { opacity: 1; }
.cw-aside.is-add .cw-sec--peers { padding-top: 6px; }

/* v12 微调：成员模式的 ＋ 更清楚 */
.cw-aside.is-add .cw-add {
  opacity: 1;
  background: #E9F4F1;
  border: 1px solid rgba(12, 100, 92, .16);
  color: #0C645C;
}
.cw-aside.is-add .cw-add:hover { background: #0F766E; color: #fff; border-color: #0F766E; }

/* ============ 表情面板 ============ */
.cw-compose { position: relative; }
.cw-emoji-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid #E3F0EC;
  background: #FBFEFD;
  color: #5F7C76;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.cw-emoji-btn:hover { color: #0C645C; border-color: #7BC9BB; }
.cw-emoji-btn.is-on { background: #E9F4F1; color: #0C645C; border-color: #7BC9BB; }
.cw-emoji-pop {
  position: absolute;
  left: 11px;
  bottom: calc(100% - 2px);
  width: 272px;
  max-width: calc(100% - 22px);
  padding: 9px 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  background: #FFFFFF;
  border: 1px solid var(--cw-line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(6, 42, 37, .16);
  z-index: 6;
}
.cw-emoji-pop[hidden] { display: none !important; }
.cw-emoji {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease, transform .12s ease;
}
.cw-emoji:hover { background: #EFF7F4; transform: scale(1.12); }

/* ============================================================
   2026-11-28 · IM 补全：图片 / 引用 / 撤回 / 已读 / 菜单 / 置顶
   ============================================================ */
.cw-img-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid #E3F0EC;
  background: #FBFEFD;
  color: #5F7C76;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.cw-img-btn:hover { color: #0C645C; border-color: #7BC9BB; background: #F2F8F6; }

/* 引用条 */
.cw-reply {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: transparent;
  border-top: 1px solid #EDF6F3;
}
.cw-reply[hidden] { display: none !important; }
.cw-reply__bar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 8px;
  border-left: 3px solid #4FC3AD;
}
.cw-reply__bar b { flex: 0 0 auto; font-size: 11px; color: #0C645C; font-weight: 700; }
.cw-reply__bar em {
  font-style: normal;
  font-size: 11.5px;
  color: #7D9691;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-reply__x {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9BB0AC;
  font-size: 11px;
  cursor: pointer;
}
.cw-reply__x:hover { color: #B4633A; background: #FBEFE9; }

/* 图片气泡 */
.cw-bubble--img {
  padding: 3px;
  background: #fff !important;
  border: 1px solid #E4F0EC;
  border-radius: 12px;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(6, 42, 37, .06);
}
.cw-bubble--img img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 9px;
  background: #EDF6F3;
  cursor: zoom-in;
}

/* 撤回 */
.cw-bubble--recalled {
  padding: 2px 0;
  background: transparent !important;
  color: #6E8783 !important;
  font-size: 11.5px;
  box-shadow: none !important;
}

/* 引用块 */
.cw-quote {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 6px;
  padding: 5px 9px;
  max-width: 100%;
  box-sizing: border-box;
  border-left: 3px solid #9FD9CD;
  border-radius: 7px;
  background: rgba(12, 100, 92, .06);
  cursor: pointer;
  transition: background .15s;
}
.cw-quote:hover { background: rgba(12, 100, 92, .12); }
.cw-quote b { font-size: 11px; color: #0C645C; font-weight: 700; line-height: 1.4; }
.cw-quote span {
  font-size: 11.5px;
  color: #6E8783;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.cw-msg--mine .cw-bubble--recalled { color: #6E8783 !important; background: transparent !important; }
.cw-msg--mine .cw-quote {
  background: rgba(255, 255, 255, .16);
  border-left-color: rgba(255, 255, 255, .5);
}
.cw-msg--mine .cw-quote:hover { background: rgba(255, 255, 255, .24); }
.cw-msg--mine .cw-quote b { color: #fff; }
.cw-msg--mine .cw-quote span { color: rgba(255, 255, 255, .78); }
.cw-bubble.has-quote { padding: 9px 12px 8px; }
.cw-bubble--img.has-quote { padding: 6px; line-height: normal; background: #fff !important; }
.cw-bubble--img.has-quote .cw-quote { background: rgba(12, 100, 92, .07); border-left-color: #9FD9CD; }
.cw-bubble--img.has-quote .cw-quote b { color: #0C645C; }
.cw-bubble--img.has-quote .cw-quote span { color: #6E8783; }
.cw-bubble--img.has-quote img { margin-top: 2px; }

/* 已读回执 */
.cw-msg__read { margin-left: 6px; font-size: 9px; color: #9BB0AC; }
.cw-msg__read.is-read { color: #1F9D90; }

/* 长按/右键菜单 */
.cw-menu {
  position: fixed;
  z-index: 100050;
  min-width: 132px;
  padding: 5px;
  background: #fff;
  border: 1px solid #E9F3F0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(6, 42, 37, .18);
}
.cw-menu[hidden] { display: none !important; }
.cw-menu__i {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0B332E;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.cw-menu__i i { width: 14px; font-size: 12px; color: #7D9691; }
.cw-menu__i:hover { background: #F2F8F6; }
.cw-menu__i.is-danger { color: #B4633A; }
.cw-menu__i.is-danger i { color: #B4633A; }

/* 大图查看 */
.cw-viewer {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 42, 37, .72);
  backdrop-filter: blur(3px);
}
.cw-viewer[hidden] { display: none !important; }
.cw-viewer img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.cw-viewer__x {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.cw-viewer__x:hover { background: rgba(255, 255, 255, .28); }

/* 会话头「更多」 */
.cw-more {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6E8783;
  font-size: 14px;
  cursor: pointer;
}
.cw-more:hover { background: #F2F8F6; color: #0C645C; }

/* 列表上的置顶/免打扰标记 */
.cw-cmark { margin-left: 4px; font-size: 9px; color: #7BC9BB; }

/* 引用跳转高亮 */
.cw-msg.is-jump .cw-bubble { box-shadow: 0 0 0 3px rgba(79, 195, 173, .35); }

/* ============================================================
   2026-11-28 · 第二批：分页 / 搜索 / IM 群 / 文件 / 语音 / 拉黑
   ============================================================ */
.cw-block__add {
  order: 3;
  margin-left: auto;
  height: 24px;
  padding: 0 9px;
  border: 1px solid #CFE8E1;
  border-radius: 999px;
  background: #fff;
  color: #0C645C;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cw-block__add:hover { background: #EAF6F2; border-color: #9FD9CD; }

.cw-gtag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  height: 14px;
  line-height: 14px;
  border-radius: 4px;
  background: rgba(12, 100, 92, .1);
  color: #0C645C;
  font-size: 9px;
  font-style: normal;
  vertical-align: 1px;
}

/* 群公告条 */
.cw-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 12px 0;
  padding: 7px 10px;
  border-radius: 9px;
  background: #FFF7E8;
  border: 1px solid #F7E3BC;
  color: #7A5A1E;
  font-size: 11.5px;
  line-height: 1.5;
}
.cw-notice i { color: #D9962B; font-size: 11px; flex: none; }
.cw-notice span { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 加载更早 */
.cw-morebar { padding: 8px 12px 0; text-align: center; }
.cw-morebar button {
  height: 26px;
  padding: 0 12px;
  border: 1px solid #E1EFEA;
  border-radius: 999px;
  background: #fff;
  color: #6E8783;
  font-size: 11px;
  cursor: pointer;
}
.cw-morebar button:hover { border-color: #9FD9CD; color: #0C645C; }
.cw-morebar button:disabled { opacity: .6; cursor: default; }

/* 会话内搜索 */
.cw-sub[hidden] { display: none !important; }

.cw-sub {
  position: fixed;
  z-index: 100040;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  min-height: 300px;
  max-height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(6, 42, 37, .4);
  overflow: hidden;
}
.cw-sub__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #EAF3EF; }
.cw-sub__x { width: 30px; height: 30px; border: 0; background: transparent; color: #0C645C; cursor: pointer; }
.cw-sub__bar input {
  flex: 1 1 auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #E3F0EC;
  border-radius: 999px;
  outline: 0;
  font-size: 12.5px;
  background: #F7FBFA;
}
.cw-sub__bar input:focus { border-color: #3FB6A1; background: #fff; }
.cw-sub__go { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: #0C645C; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.cw-sub__list { flex: 1 1 auto; overflow-y: auto; padding: 6px 0; }
.cw-sub__hint { padding: 24px 16px; color: #93A8A3; font-size: 12px; text-align: center; }
.cw-sub__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F2F8F6;
}
.cw-sub__item:hover { background: #F5FAF8; }
.cw-sub__item b { flex: none; font-size: 11px; color: #0C645C; }
.cw-sub__item span { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: #33524C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-sub__item em { flex: none; font-size: 10px; color: #9BB0AC; font-style: normal; }

/* 通用弹层 */
.cw-sheet { position: fixed; inset: 0; z-index: 100040; display: flex; align-items: center; justify-content: center; }
.cw-sheet[hidden] { display: none !important; }
.cw-sheet__mask { position: absolute; inset: 0; background: rgba(6, 42, 37, .38); backdrop-filter: blur(2px); }
.cw-sheet__card {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 26px 64px -22px rgba(6, 42, 37, .45);
  overflow: hidden;
}
.cw-sheet__card header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.cw-sheet__card header b { font-size: 14px; color: #062A25; }
.cw-sheet__x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #F2F8F6; color: #5B7A74; font-size: 15px; cursor: pointer; }
.cw-sheet__body { padding: 4px 16px 12px; overflow-y: auto; }
.cw-sheet__card footer { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #F1F7F5; }
.cw-sheet__ok { width: 100%; height: 42px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #0C645C, #1F9D90); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.cw-sheet__ok--danger { background: linear-gradient(135deg, #A9502F, #C4683F); }
.cw-sheet__hint { color: #93A8A3; font-size: 12px; font-style: normal; }
.cw-sheet__p { margin: 0; font-size: 12.5px; color: #47625C; line-height: 1.7; }

.cw-fld { display: block; margin: 10px 0; }
.cw-fld > span { display: block; margin-bottom: 6px; font-size: 11.5px; color: #6E8783; }
.cw-fld input, .cw-fld textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #E3F0EC;
  border-radius: 10px;
  outline: 0;
  font-size: 13px;
  color: #123F38;
  background: #FBFDFC;
  font-family: inherit;
  resize: vertical;
}
.cw-fld input:focus, .cw-fld textarea:focus { border-color: #3FB6A1; background: #fff; }
.cw-fld input[readonly], .cw-fld textarea[readonly] { background: #F6FAF8; color: #6E8783; }

.cw-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cw-chip {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #E3F0EC;
  border-radius: 999px;
  background: #fff;
  color: #47625C;
  font-size: 12px;
  cursor: pointer;
}
.cw-chip:hover { border-color: #9FD9CD; }
.cw-chip.is-on { background: #0C645C; border-color: #0C645C; color: #fff; }

/* 群成员 */
.cw-mlist { display: flex; flex-direction: column; }
.cw-mrow { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #F2F8F6; }
.cw-mrow:last-child { border-bottom: 0; }
.cw-avatar {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(150deg, #1F9D90, #0C645C);
  color: #fff; font-size: 12px; font-weight: 700;
}
.cw-mrow .cw-avatar { width: 32px; height: 32px; font-size: 12px; }
.cw-mrow b { flex: 1 1 auto; font-size: 12.5px; color: #123F38; font-weight: 600; }
.cw-mrow__tag { margin-left: 6px; padding: 0 5px; height: 15px; line-height: 15px; border-radius: 4px; background: rgba(12,100,92,.1); color: #0C645C; font-size: 9px; font-style: normal; }
.cw-mrow__kick { height: 26px; padding: 0 10px; border: 1px solid #F0DCD2; border-radius: 999px; background: #FFF7F2; color: #A9502F; font-size: 11px; cursor: pointer; }

/* 链接 / @ */
.cw-link { color: #1B7F71; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.cw-msg--mine .cw-link { color: #D8FBF3; }
.cw-attag { color: #0C645C; font-weight: 700; }
.cw-msg--mine .cw-attag { color: #CFF7EE; }

/* 文件气泡 */
.cw-bubble--file { padding: 9px 10px; background: #fff !important; border: 1px solid #E3F0EC; box-shadow: 0 2px 8px rgba(6,42,37,.05); }
.cw-msg--mine .cw-bubble--file { background: linear-gradient(135deg,#0C645C,#1F9D90) !important; border: 0; }
.cw-file {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 168px;
  text-decoration: none;
}
.cw-file > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(12,100,92,.08); color: #0C645C; font-size: 14px; flex: none; }
.cw-msg--mine .cw-file > i { background: rgba(255,255,255,.16); color: #fff; }
.cw-file span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cw-file b { font-size: 12px; font-weight: 600; color: #123F38; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-file em { font-size: 10px; color: #93A8A3; font-style: normal; }
.cw-msg--mine .cw-file b { color: #fff; }
.cw-msg--mine .cw-file em { color: rgba(255,255,255,.7); }

/* 语音气泡 */
.cw-bubble--voice { padding: 8px 10px; }
.cw-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 158px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.cw-voice > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 10px; flex: none; }
.cw-bubble--voice:not(.cw-msg--mine) .cw-voice > i,
.cw-msg:not(.cw-msg--mine) .cw-voice > i { background: rgba(12,100,92,.1); color: #0C645C; }
.cw-voice__bar { flex: 1 1 auto; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.cw-msg:not(.cw-msg--mine) .cw-voice__bar { background: rgba(12,100,92,.16); }
.cw-voice__bar > i { display: block; height: 100%; border-radius: 3px; background: #fff; }
.cw-msg:not(.cw-msg--mine) .cw-voice__bar > i { background: #1F9D90; }
.cw-voice em { flex: none; font-size: 11px; font-style: normal; color: rgba(255,255,255,.85); }
.cw-msg:not(.cw-msg--mine) .cw-voice em { color: #5B7A74; }
.cw-voice.is-playing > i { background: #F5B95F !important; color: #3D2A08 !important; }

/* 发送失败 */
.cw-bubble--fail { background: #FFF6F1 !important; border: 1px solid #F3D9CD !important; color: #A9502F; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.cw-retry { height: 24px; padding: 0 10px; border: 1px solid #D9875F; border-radius: 999px; background: #fff; color: #A9502F; font-size: 11px; cursor: pointer; }
.cw-retry:hover { background: #FDEBDD; }

/* 录音中 */
.cw-voice-btn.is-rec { background: #B4633A !important; color: #fff !important; animation: cwRec 1s ease-in-out infinite; }
@keyframes cwRec { 50% { box-shadow: 0 0 0 4px rgba(180, 99, 58, .18); } }

@media (max-width: 767px) {
  .cw-sub { width: calc(100vw - 20px); min-height: 260px; max-height: calc(100vh - 130px); }
  .cw-sheet__card { width: calc(100vw - 20px); }
}

/* 输入区五件套压缩（图片/文件/语音/表情 + 输入 + 发送） */
.cw-compose { gap: 5px; padding: 9px 11px 10px; }
.cw-compose .cw-img-btn,
.cw-compose .cw-emoji-btn {
  width: 30px; height: 30px; border-radius: 9px; font-size: 13px;
}
.cw-compose .cw-compose__box { padding: 4px 10px; border-radius: 10px; }
.cw-compose textarea { height: 22px; min-height: 22px; line-height: 22px; font-size: 12px; }
.cw-compose .cw-send { height: 30px; padding: 0 13px; border-radius: 9px; font-size: 12px; }
.cw-compose { align-items: flex-end; }
.cw-sub__go { flex: 0 0 auto; white-space: nowrap; padding: 0 13px; }
.cw-sub__hint { display: flex; align-items: center; justify-content: center; min-height: 210px; }

/* 搜索跳转高亮 */
.cw-msg.is-jump .cw-bubble { box-shadow: 0 0 0 2px rgba(79,195,173,.9), 0 6px 16px rgba(6,42,37,.12); }
.cw-msg.is-jump { animation: cwJump .5s ease-out 0 2 alternate; }
@keyframes cwJump { from { opacity: .55; } to { opacity: 1; } }
.cw-msg--mine .cw-bubble--fail, .cw-bubble--fail { color: #A9502F !important; background: #FFF6F1 !important; border: 1px solid #F3D9CD !important; box-shadow: none !important; }
.cw-bubble--fail > i { color: #C4683F; }
.cw-msg--mine .cw-bubble--fail .cw-retry, .cw-bubble--fail .cw-retry { color: #A9502F; }

/* 连续同一人多条消息：收起头像与名字 */
.cw-msg.is-cont { margin-top: -2px; }
.cw-msg.is-cont .cw-msg__wrap { margin-left: 32px; }
.cw-msg { align-items: flex-start; }
.cw-msg--mine { align-items: flex-end; }
.cw-main { min-height: 0; overflow: hidden; }

/* 语音气泡细化 */
.cw-bubble--voice { padding: 9px 12px; }
.cw-voice { height: 26px; width: 172px; }
.cw-voice > i { width: 26px; height: 26px; font-size: 10px; }
.cw-msg--mine .cw-voice > i { background: rgba(255,255,255,.26); }
.cw-voice__bar { height: 4px; }
.cw-voice em { font-size: 11px; min-width: 20px; text-align: right; }
.cw-msg--mine .cw-bubble--voice { background: linear-gradient(135deg,#0C645C,#1F9D90) !important; border: 0; }

/* 弹层高度紧凑化 */
.cw-sheet__card footer { margin-top: 0 !important; }
.cw-sheet__body { max-height: 46vh; }
.cw-sheet__card { max-height: calc(100vh - 80px); }

/* ============================================================
   综合面板 · 顶部导航骨架（助手 / 消息 / 通知 / 快捷）
   ============================================================ */
.cw-suite {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px 14px 6px;
  border-bottom: 1px solid var(--cw-line);
  background: transparent;
  position: relative;
  z-index: 1;
}
.cw-suite__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cw-muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.cw-suite__ico { font-size: 16px; line-height: 1; display: inline-flex; }
.cw-suite__txt { letter-spacing: .2px; }
.cw-suite__item.is-on {
  background: linear-gradient(135deg, rgba(234, 248, 245, .95), rgba(214, 239, 232, .7));
  color: var(--cw-deep);
  box-shadow: inset 0 0 0 1px rgba(31, 157, 144, .22), 0 8px 18px -10px rgba(31, 157, 144, .5);
}
.cw-suite__item.is-on .cw-suite__ico { color: var(--cw-main); }
.cw-suite__n {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cw-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(239, 68, 68, .4);
}
.cw-suite__n[hidden] { display: none !important; }
@media (max-width: 767px) {
  .cw-suite { padding: 8px 10px 6px; gap: 4px; overflow-x: auto; }
  .cw-suite__item { padding: 7px 10px; font-size: 12px; gap: 6px; }
}

/* ============================================================
   综合面板 · 通知列表视图
   ============================================================ */
.cw-shell.is-nview .cw-aside { display: none; }
.cw-nview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 14px 14px;
}
.cw-nview[hidden] { display: none !important; }
.cw-nview__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 10px;
}
.cw-nview__bar b { font-size: 14px; color: var(--cw-ink); }
.cw-nview__mark {
  margin-left: auto;
  border: 1px solid var(--cw-line);
  background: rgba(255, 255, 255, .7);
  color: var(--cw-main);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.cw-nview__mark:hover { background: var(--cw-mint); }
.cw-nview__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cw-nview__empty {
  margin-top: 42px;
  text-align: center;
  color: #93ABA6;
  font-size: 12.5px;
  line-height: 1.8;
}
.cw-nview__empty i { font-size: 26px; display: block; margin-bottom: 8px; color: #B9D6D0; }

.cw-nitem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(12, 100, 92, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}
.cw-nitem:hover { background: rgba(255, 255, 255, .5); box-shadow: 0 10px 22px -16px rgba(8, 60, 55, .3); }
.cw-nitem__ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid transparent;
}
.cw-nitem__ico--activity { color: #B45309; background: linear-gradient(135deg, #FFF7E6 0%, #FDF1D6 100%); border-color: rgba(180, 83, 9, .12); }
.cw-nitem__ico--auction { color: #0E7490; background: linear-gradient(135deg, #E8F8FB 0%, #DEF2F8 100%); border-color: rgba(14, 116, 144, .12); }
.cw-nitem__ico--study { color: #0C645C; background: linear-gradient(135deg, #E9F9F5 0%, #DEF3EE 100%); border-color: rgba(12, 100, 92, .12); }
.cw-nitem__ico--friend { color: #0C645C; background: linear-gradient(135deg, #E9F7F3 0%, #DDF2ED 100%); border-color: rgba(12, 100, 92, .14); }
.cw-nitem__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cw-nitem__title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--cw-ink); }
.cw-nitem__title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-nitem__dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--cw-danger); }
.cw-nitem__sub {
  font-size: 11.5px;
  color: #6F8F89;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cw-nitem__time { flex: 0 0 auto; font-size: 10.5px; color: #93ABA6; }

/* ============================================================
   综合面板 · 快捷入口视图
   ============================================================ */
.cw-qview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 14px 14px;
}
.cw-qview[hidden] { display: none !important; }
.cw-qview__bar { flex: 0 0 auto; padding: 8px 2px 10px; }
.cw-qview__bar b { font-size: 14px; color: var(--cw-ink); }
.cw-qview__grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}
.cw-qcard {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 13px;
  border: 1px solid rgba(12, 100, 92, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
  transition: background .16s ease, box-shadow .16s ease;
}
.cw-qcard:hover { background: rgba(255, 255, 255, .5); box-shadow: 0 10px 22px -16px rgba(8, 60, 55, .3); }
.cw-qcard__ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #0C645C, #1F9D90);
  box-shadow: 0 6px 14px -6px rgba(31, 157, 144, .5);
}
.cw-qcard__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cw-qcard__main b { font-size: 13px; color: var(--cw-ink); }
.cw-qcard__main em { font-style: normal; font-size: 11px; color: #6F8F89; }
.cw-qcard__arrow { flex: 0 0 auto; color: #A9C6C0; font-size: 13px; }
@media (max-width: 380px) {
  .cw-qview__grid { grid-template-columns: 1fr; }
}

/* 面板气泡尾巴：左下圆点串指向小智主钮 */
.cw-panel-tail {
  position: fixed;
  left: 64px;
  bottom: 140px;
  display: flex;
  align-items: center;
  gap: 13px;
  pointer-events: none;
  z-index: 99994;
  transform: rotate(-8deg);
  transform-origin: right center;
}
.cw-panel-tail[hidden] { display: none !important; }
.cw-panel-tail i {
  display: block;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(238, 248, 244, .96));
  border: 1px solid rgba(31, 157, 144, .4);
  box-shadow: 0 1px 3px rgba(12, 100, 92, .18);
}
.cw-panel-tail .pt1 { width: 12px; height: 12px; }
.cw-panel-tail .pt2 { width: 9px; height: 9px; }
.cw-panel-tail .pt3 { width: 6px; height: 6px; }
@media (max-width: 767px) {
  .cw-panel-tail { display: none !important; }
}

/* 2026-12-03 悬浮小智缩小一半（桌面 112×153 / 移动 55×75） */
.cw-fab { bottom: 30px; }
.cw-fab .cw-lottie { width: 112px !important; height: 153px !important; }
.cw-fab .cw-lottie__img { height: 153px !important; }
.cw-fab .cw-buddy { height: 153px !important; }
.cw-fab-tip { left: 117px; }
@media (max-width: 767px) {
  .cw-fab { bottom: 20px; }
  .cw-fab .cw-lottie { width: 55px !important; height: 75px !important; }
  .cw-fab .cw-lottie__img { height: 75px !important; }
  .cw-fab .cw-buddy { height: 75px !important; }
  .cw-fab-tip { left: 58px; }
}
