/* ========================================================
   🌾 数字化村支书【小荷书记】AI 交互与智慧农事助手组件样式
   ======================================================== */

/* 彻底隐藏任何历史遗留的悬浮乡趣地图胶囊气泡，确保右下角悬浮区专属于小荷书记专属挂件 */
.m-float-game-bubble,
[class*="m-float-game"],
a[title*="进入一垄地·乡趣地图"].m-float-game-bubble {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -9999 !important;
  transform: scale(0) !important;
}

/* 1. 右下角常驻悬浮挂件 */
.xiaohe-float-trigger {
  position: fixed;
  right: 14px;
  bottom: 84px;
  bottom: calc(84px + constant(safe-area-inset-bottom));
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.xiaohe-speech-bubble {
  background: #FFFFFF;
  color: #1B4332;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 6px;
  max-width: 150px;
  line-height: 1.3;
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.25);
  animation: xiaohe-bounce 3s infinite ease-in-out;
  display: flex;
  align-items: center;
  gap: 4px;
}

.xiaohe-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #FFFFFF;
}

@keyframes xiaohe-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.xiaohe-avatar-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #10B981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.xiaohe-avatar-btn:active {
  transform: scale(0.92);
}

.xiaohe-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xiaohe-online-pulse {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

/* 2. 聊天抽屉对话弹窗 */
.xiaohe-chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.xiaohe-chat-panel {
  width: 100%;
  max-width: 480px;
  height: 82vh;
  height: 82dvh;
  max-height: 750px;
  background: #FAF9F5;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  animation: xiaohe-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes xiaohe-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* 弹窗 Header */
.xiaohe-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.xiaohe-header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xiaohe-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #6EE7B7;
  object-fit: cover;
  background: #FFFFFF;
}

.xiaohe-header-text h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.xiaohe-status-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(110, 231, 183, 0.2);
  color: #A7F3D0;
  font-weight: 600;
  border: 1px solid rgba(110, 231, 183, 0.3);
}

.xiaohe-header-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.xiaohe-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xiaohe-btn-clear {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.xiaohe-btn-clear:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #EF4444;
}

.xiaohe-btn-auth-switch {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.xiaohe-btn-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.xiaohe-chat-time-tag {
  text-align: center;
  margin: 6px 0 2px 0;
  user-select: none;
}

.xiaohe-chat-time-tag span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.05);
  color: #9CA3AF;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
}

/* 消息滚动区域 */
.xiaohe-messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAF9F5;
}

.xiaohe-msg-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 90%;
}

.xiaohe-msg-row.is-user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.xiaohe-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid #E2E8F0;
  object-fit: cover;
}

.xiaohe-msg-bubble {
  background: #FFFFFF;
  color: #1F2937;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  word-break: break-word;
}

.xiaohe-msg-row.is-user .xiaohe-msg-bubble {
  background: #10B981;
  color: #FFFFFF;
  border-color: #059669;
}

/* 智能操作卡片 */
.xiaohe-action-card {
  margin-top: 10px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.1);
}

.xiaohe-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.xiaohe-card-desc {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
  margin-bottom: 10px;
}

.xiaohe-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.xiaohe-meta-badge {
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.xiaohe-card-actions {
  display: flex;
  gap: 8px;
}

.xiaohe-btn-confirm {
  flex: 1;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.xiaohe-btn-cancel {
  background: #E5E7EB;
  color: #4B5563;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* 登录表单卡片 */
.xiaohe-login-card {
  margin-top: 10px;
  background: #FFFFFF;
  border: 1.5px solid #FCD34D;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.xiaohe-login-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 10px;
}

.xiaohe-login-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}

.xiaohe-login-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.xiaohe-login-btn {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.xiaohe-login-tip {
  font-size: 10.5px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 6px;
}

/* 快捷提问胶囊栏 */
.xiaohe-quick-chips {
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  background: #F3F4F6;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.xiaohe-quick-chips::-webkit-scrollbar {
  display: none;
}

.xiaohe-chip {
  background: #FFFFFF;
  color: #374151;
  border: 1px solid #D1D5DB;
  border-radius: 14px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.xiaohe-chip:active {
  background: #E5E7EB;
  transform: scale(0.96);
}

.xiaohe-chip.is-control {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

/* 底部输入框 (适配 iPhone 底部 Home 指示条安全区，彻底消除触摸冲突与断录) */
.xiaohe-input-bar {
  padding-top: 12px;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 34px; /* 默认保底 34px 舒适拇指操作区 */
  padding-bottom: calc(18px + constant(safe-area-inset-bottom)); /* 兼容旧版 iOS */
  padding-bottom: calc(18px + env(safe-area-inset-bottom)); /* 现代 iOS 安全区 */
  padding-bottom: max(34px, calc(18px + env(safe-area-inset-bottom))); /* 保证不少于 34px */
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* 针对 iOS PWA / 添加到主屏幕全屏模式的专属垫高优化 (与小程序体验一致) */
@media all and (display-mode: standalone), (display-mode: fullscreen) {
  .xiaohe-input-bar {
    padding-bottom: 48px;
    padding-bottom: calc(26px + constant(safe-area-inset-bottom));
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
    padding-bottom: max(48px, calc(26px + env(safe-area-inset-bottom)));
  }
}

.is-standalone .xiaohe-input-bar,
.is-ios-standalone .xiaohe-input-bar {
  padding-bottom: 48px !important;
  padding-bottom: calc(26px + constant(safe-area-inset-bottom)) !important;
  padding-bottom: calc(26px + env(safe-area-inset-bottom)) !important;
  padding-bottom: max(48px, calc(26px + env(safe-area-inset-bottom))) !important;
}

.xiaohe-chat-input {
  flex: 1;
  height: 48px;
  border: 1px solid #D1D5DB;
  border-radius: 24px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  background: #F8FAFC;
  box-sizing: border-box;
}

.xiaohe-chat-input:focus {
  border-color: #10B981;
  background: #FFFFFF;
}

.xiaohe-btn-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10B981;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.xiaohe-btn-send:active {
  transform: scale(0.92);
}

/* 3. 正在输入中动态指示器与打字机效果 */
.xiaohe-typing-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 90%;
  animation: xiaohe-fade-in 0.25s ease-out;
}

@keyframes xiaohe-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.xiaohe-typing-bubble {
  background: #FFFFFF;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #E5E7EB;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}

.xiaohe-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  animation: xiaohe-dot-pulse 1.4s infinite ease-in-out both;
}

.xiaohe-dot:nth-child(1) { animation-delay: -0.32s; }
.xiaohe-dot:nth-child(2) { animation-delay: -0.16s; }
.xiaohe-dot:nth-child(3) { animation-delay: 0s; }

@keyframes xiaohe-dot-pulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.xiaohe-typing-label {
  font-size: 12px;
  color: #6B7280;
  margin-left: 6px;
  font-weight: 500;
}

/* 打字机光标闪烁效果 */
.xiaohe-type-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #10B981;
  vertical-align: middle;
  margin-left: 2px;
  animation: xiaohe-cursor-blink 0.8s infinite;
}

@keyframes xiaohe-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========================================================
   4. 语音对话与模式切换 (文字 / 语音)
   ======================================================== */
.xiaohe-btn-mode {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.xiaohe-btn-mode:active {
  background: #E2E8F0;
  transform: scale(0.92);
}

.xiaohe-voice-btn {
  flex: 1;
  height: 48px;
  border-radius: 24px;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none !important;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.xiaohe-voice-btn:active,
.xiaohe-voice-btn.is-active,
.xiaohe-voice-btn.is-recording {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border-color: #047857 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  transform: scale(0.98);
}

/* 录音全屏波纹蒙层 */
.xiaohe-recording-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: xiaohe-fade-in 0.2s ease-out;
}

.xiaohe-recording-card {
  background: #FFFFFF;
  padding: 24px 32px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 200px;
}

.xiaohe-mic-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
}

.xiaohe-mic-anim-wave {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0.7;
  animation: xiaohe-mic-pulse 1.2s infinite ease-out;
}

@keyframes xiaohe-mic-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.xiaohe-recording-soundwaves {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.xiaohe-recording-soundwaves span {
  display: inline-block;
  width: 4px;
  background: #10B981;
  border-radius: 2px;
  animation: xiaohe-wave-dance 1s infinite ease-in-out;
}

.xiaohe-recording-soundwaves span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.xiaohe-recording-soundwaves span:nth-child(2) { height: 20px; animation-delay: 0.25s; }
.xiaohe-recording-soundwaves span:nth-child(3) { height: 26px; animation-delay: 0.4s; }
.xiaohe-recording-soundwaves span:nth-child(4) { height: 18px; animation-delay: 0.2s; }
.xiaohe-recording-soundwaves span:nth-child(5) { height: 8px; animation-delay: 0.35s; }

@keyframes xiaohe-wave-dance {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.2); }
}

.xiaohe-record-status-tip {
  font-size: 13px;
  font-weight: 700;
  color: #065F46;
  text-align: center;
}

.xiaohe-record-status-tip.is-cancel {
  color: #DC2626 !important;
}

/* 气泡朗读播放喇叭按钮 */
.xiaohe-speak-bubble-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.xiaohe-speak-bubble-btn:active {
  background: rgba(16, 185, 129, 0.18);
  transform: scale(0.95);
}

.xiaohe-speak-bubble-btn.is-playing {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #059669 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: xiaohe-bubble-pulse 1.2s infinite ease-in-out;
}

@keyframes xiaohe-bubble-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

/* ========================================================
   5. 📹 监控视频交互卡片 (Agent 端侧行动与直达视窗)
   ======================================================== */
.xiaohe-cam-card {
  margin-top: 10px;
  background: #FFFFFF;
  border: 1.5px solid #10B981;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
  animation: xiaohe-fade-in 0.3s ease-out;
}

.xiaohe-cam-preview-box {
  position: relative;
  width: 100%;
  height: 140px;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}

.xiaohe-cam-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.xiaohe-cam-preview-box:hover .xiaohe-cam-cover-img {
  transform: scale(1.04);
}

.xiaohe-cam-live-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.xiaohe-cam-live-pill.offline {
  background: rgba(30, 41, 59, 0.85);
  color: #CBD5E1;
  border-color: rgba(148, 163, 184, 0.3);
}

.xiaohe-cam-live-dot {
  width: 6px;
  height: 6px;
  background: #EF4444;
  border-radius: 50%;
  animation: xiaohe-dot-pulse 1s infinite ease-in-out;
}

.xiaohe-cam-live-dot.offline {
  background: #94A3B8;
  animation: none;
}

.xiaohe-cam-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  z-index: 2;
}

.xiaohe-cam-play-overlay.offline {
  background: rgba(71, 85, 105, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.xiaohe-cam-play-overlay svg {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
  margin-left: 2px;
}

.xiaohe-cam-preview-box:hover .xiaohe-cam-play-overlay {
  transform: translate(-50%, -50%) scale(1.12);
  background: #10B981;
}

.xiaohe-cam-preview-box:hover .xiaohe-cam-play-overlay.offline {
  background: rgba(100, 116, 139, 0.9);
  transform: translate(-50%, -50%);
}

.xiaohe-cam-info {
  padding: 10px 12px;
}

.xiaohe-cam-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1B4332;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xiaohe-cam-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 10px;
}

.xiaohe-cam-actions {
  display: flex;
  gap: 8px;
}

.xiaohe-cam-btn-primary {
  flex: 1.35;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: opacity 0.2s;
}

.xiaohe-cam-btn-primary.offline {
  background: #64748B;
  color: #F1F5F9;
  box-shadow: none;
  opacity: 0.9;
}

.xiaohe-cam-btn-primary:active {
  opacity: 0.85;
}

.xiaohe-cam-btn-secondary {
  flex: 1;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.2s;
}

.xiaohe-cam-btn-secondary:active {
  background: #E2E8F0;
}


