/* =========================
   全局基础
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: radial-gradient(circle at center, #081018, #000);
  color: #00f3ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* =========================
   消息区
========================= */
#messages {
  height: 100vh;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 180px; /* 给底部输入框留足空间 */
}

/* =========================
   消息气泡
========================= */
.msg {
  max-width: 75%;
  margin: 10px 0;
}

.left {
  text-align: left;
}

.right {
  margin-left: auto;
  text-align: right;
}

.meta {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.name {
  color: #bc13fe;
  cursor: pointer;
  margin-right: 6px;
}

.time {
  color: #7aa;
}

.bubble {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.25);
  word-break: break-word;
}

.right .bubble {
  background: rgba(188, 19, 254, 0.12);
  border-color: rgba(188, 19, 254, 0.35);
}

/* 搜索链接 */
.bubble a.link {
  color: #00f3ff;
  text-decoration: underline;
}

/* =========================
   系统消息
========================= */
.system {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
  margin: 12px 0;
}

/* =========================
   输入框：真正的底部正中
========================= */
.input-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%);

  width: min(96vw, 900px);
  display: flex;
  align-items: flex-end;
  gap: 10px;

  padding: 12px;
  background: rgba(10, 20, 30, 0.92);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 14px;

  z-index: 10000;
}

/* 输入框本体 */
.input-bar textarea {
  flex: 1;
  min-height: 44px;
  max-height: 180px;

  resize: none;
  padding: 10px 12px;

  background: #000;
  color: #fff;

  border: 1px solid rgba(0, 243, 255, 0.4);
  border-radius: 10px;

  font-size: 16px;
  line-height: 1.4;
}

/* 发送按钮 */
.input-bar button {
  flex-shrink: 0;
  height: 44px;
  padding: 0 22px;

  background: rgba(0, 243, 255, 0.18);
  color: #00f3ff;

  border: 1px solid rgba(0, 243, 255, 0.6);
  border-radius: 10px;

  cursor: pointer;
}

.input-bar button:active {
  transform: scale(0.96);
}

/* =========================
   提醒按钮 & 弹窗
========================= */
#notifyBtn {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: red;
  color: #fff;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
}

#notifyBox {
  position: fixed;
  inset: 20% 10%;
  background: rgba(10, 20, 30, 0.95);
  border: 1px solid rgba(0, 243, 255, 0.4);
  padding: 16px;
  z-index: 10002;
}

#close {
  float: right;
  cursor: pointer;
}

/* =========================
   移动端微调
========================= */
@media (max-width: 600px) {
  .msg {
    max-width: 88%;
  }

  .input-bar {
    width: 96vw;
  }
}





/* =========================
   公告 / 超链接栏
========================= */
#notice-bar {
  position: sticky;
  top: 0;
  z-index: 5000;

  padding: 10px 16px;
  text-align: center;

  background: rgba(10, 20, 30, 0.95);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 243, 255, 0.35);
  font-size: 14px;
}

#notice-bar a {
  color: #00f3ff;
  text-decoration: underline;
}

#notice-bar a:hover {
  color: #ffffff;
}
/* === 批量搜索专用样式 === */

/* 消息容器改为 flex 布局，以便放置复选框 */
.msg {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 调整气泡区域，使其能容纳复选框 */
.msg-content-wrapper {
  display: flex;
  align-items: center; /* 垂直居中 */
  gap: 10px; /* 气泡和复选框的间距 */
}

/* 自己的消息，复选框在气泡左边还是右边？用户要求在右边 */
.msg.right .msg-content-wrapper {
  flex-direction: row; /* 保持从左到右，气泡在前，复选框在后 */
  justify-content: flex-end;
}

.msg.left .msg-content-wrapper {
  flex-direction: row;
  justify-content: flex-start;
}

/* 复选框样式 */
.search-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0ff; /* 霓虹蓝风格 */
  display: none; /* 默认隐藏，只有搜索消息才显示 */
}

/* 只有带有 search-msg 类的消息才显示复选框 */
.search-msg .search-checkbox {
  display: block;
}

/* === 顶部悬浮批量搜索按钮 === */
#batchSearchBtn {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 255, 255, 0.9);
  color: #000;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 0 15px #0ff;
  z-index: 9999;
  cursor: pointer;
  border: 2px solid #fff;
  transition: all 0.3s;
  display: none; /* 默认隐藏 */
}

#batchSearchBtn:hover {
  background: #fff;
  box-shadow: 0 0 25px #0ff;
}