/* ==========================================================================
   耀AI · 模块运行时样式（admin-v2 第一片）
   --------------------------------------------------------------------------
   只在「模块运行时」真的用到时才产生视觉影响：
     [data-module-hidden]  由 config.hiddenSections 打上
     .yaoai-cs-wrap        由 config.csUrl 非空时创建

   颜色一律走变量 + 兜底，不写死主题色（深浅主题都能用）。
   加载位置：style.css → prts-theme.css → modules-runtime.css（本文件最后）
   ========================================================================== */

/* ---------- 隐藏的板块 ---------- */
[data-module-hidden] {
  display: none !important;
}

/* ---------- AI 客服入口 ---------- */
.yaoai-cs-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.yaoai-cs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(107, 140, 255, .45);
  background: linear-gradient(135deg, var(--acc, #6b8cff), var(--acc-2, #3d5bd9));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(20, 40, 110, .35);
  transition: transform .15s ease, filter .15s ease;
}

.yaoai-cs:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.yaoai-cs:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.yaoai-cs-x {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(10, 16, 28, .55);
  color: #cfd9ee;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}

.yaoai-cs-wrap:hover .yaoai-cs-x,
.yaoai-cs-x:focus-visible {
  opacity: 1;
}

/* 触屏没有 hover：干脆一直显示关闭键 */
@media (hover: none) {
  .yaoai-cs-x { opacity: 1; }
}

/* ---------- 移动端：缩小，别挡正文 ---------- */
@media (max-width: 560px) {
  .yaoai-cs-wrap {
    right: 12px;
    bottom: 12px;
    gap: 4px;
  }
  .yaoai-cs {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .yaoai-cs-t {
    display: none;          /* 手机上只留图标，点开再说 */
  }
  .yaoai-cs-x {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* ---------- 打印时不要出现 ---------- */
@media print {
  .yaoai-cs-wrap { display: none !important; }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .yaoai-cs { transition: none; }
}
