.fengxinlou-settings__check-item--peek-screen {
  border-color: rgba(114, 92, 154, 0.2);
  background:
    linear-gradient(135deg, rgba(246, 241, 255, 0.92), rgba(255, 255, 255, 0.84));
}

.fengxinlou-settings__check-item--peek-screen .fengxinlou-settings__check-title {
  color: rgba(78, 58, 117, 0.95);
}

.fengxinlou-settings__check-text {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(83, 73, 102, 0.66);
}

.fengxinlou-settings__check-item--peek-screen input:checked + .fengxinlou-settings__check-main .fengxinlou-settings__check-title::after {
  content: " · 悬浮球锁定";
  color: rgba(126, 92, 190, 0.78);
  font-size: 11px;
  font-weight: 600;
}

.fengxinlou-settings__check-item--peek-screen input:disabled + .fengxinlou-settings__check-main {
  opacity: 0.62;
}

.fengxinlou-peek-float-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.fengxinlou-peek-float-chat {
  position: fixed;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(22, 22, 22, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 242, 0.96));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.fengxinlou-peek-float-chat__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  color: rgba(24, 24, 24, 0.86);
  font-size: 11px;
}

.fengxinlou-peek-float-chat__title {
  font-weight: 700;
}

.fengxinlou-peek-float-chat__hint {
  color: rgba(80, 80, 80, 0.66);
  white-space: nowrap;
}

.fengxinlou-peek-float-chat__messages {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 246, 246, 0.7));
  scrollbar-width: thin;
}

.fengxinlou-peek-float-chat__message:first-child {
  margin-top: auto;
}

.fengxinlou-peek-float-chat__message {
  align-self: flex-start;
  max-width: 88%;
  padding: 9px 11px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 15px 15px 15px 5px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(24, 24, 24, 0.9);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.fengxinlou-peek-float-chat__message--self {
  align-self: flex-end;
  border-color: rgba(0, 0, 0, 0.72);
  border-radius: 15px 15px 5px 15px;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.94), rgba(68, 68, 68, 0.92));
  color: #fff;
}

.fengxinlou-peek-float-chat__empty {
  margin: auto;
  color: rgba(80, 80, 80, 0.52);
  font-size: 12px;
}

.fengxinlou-peek-float-chat__composer {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  margin-top: 10px;
}

.fengxinlou-peek-float-chat__input {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(20, 20, 20, 0.9);
  font-size: 12px;
}

.fengxinlou-peek-float-chat__send {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.78);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.fengxinlou-peek-records {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fengxinlou-peek-records__intro-title {
  margin: 0 0 4px;
  color: rgba(55, 40, 82, 0.92);
  font-size: 14px;
  font-weight: 800;
}

.fengxinlou-peek-records__intro-text {
  margin: 0;
  color: rgba(74, 62, 96, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.fengxinlou-peek-records__layout {
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) minmax(0, 1.4fr);
  gap: 10px;
  min-height: 260px;
}

.fengxinlou-peek-records__list,
.fengxinlou-peek-records__detail {
  min-height: 0;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(126, 104, 163, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.fengxinlou-peek-records__list {
  padding: 7px;
}

.fengxinlou-peek-records__item {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: rgba(248, 245, 253, 0.92);
  color: rgba(58, 45, 82, 0.84);
  text-align: left;
}

.fengxinlou-peek-records__item.is-active {
  background: linear-gradient(135deg, rgba(137, 103, 199, 0.92), rgba(177, 132, 218, 0.88));
  color: #fff;
}

.fengxinlou-peek-records__item-title {
  font-size: 12px;
  font-weight: 700;
}

.fengxinlou-peek-records__item-count {
  font-size: 11px;
  opacity: 0.72;
}

.fengxinlou-peek-records__detail {
  padding: 10px;
}

.fengxinlou-peek-records__detail-title {
  margin-bottom: 10px;
  color: rgba(57, 43, 83, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.fengxinlou-peek-records__messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fengxinlou-peek-records__message {
  align-self: flex-start;
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 5px;
  background: rgba(255, 255, 255, 0.96);
  color: rgba(38, 31, 48, 0.88);
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.fengxinlou-peek-records__message--self {
  align-self: flex-end;
  border-radius: 14px 14px 5px 14px;
  background: rgba(116, 88, 171, 0.9);
  color: #fff;
}

.fengxinlou-peek-records__empty {
  color: rgba(74, 62, 96, 0.58);
  font-size: 12px;
  text-align: center;
}

.fengxinlou-peek-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fengxinlou-peek-menu__button {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid rgba(126, 104, 163, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 255, 0.9));
  color: rgba(55, 40, 82, 0.9);
  text-align: left;
  box-shadow: 0 10px 24px rgba(77, 56, 119, 0.08);
}

.fengxinlou-peek-menu__button:active {
  transform: scale(0.99);
}

.fengxinlou-peek-menu__title {
  font-size: 14px;
  font-weight: 800;
}

.fengxinlou-peek-menu__text {
  color: rgba(74, 62, 96, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.fengxinlou-peek-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fengxinlou-peek-settings__label {
  color: rgba(55, 40, 82, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.fengxinlou-peek-settings__input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(126, 104, 163, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(38, 31, 48, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.fengxinlou-peek-settings__help {
  margin: 0;
  color: rgba(74, 62, 96, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 420px) {
  .fengxinlou-peek-records__layout {
    grid-template-columns: 1fr;
  }

  .fengxinlou-peek-records__list {
    max-height: 150px;
  }
}
