/* 快捷创作页：输入区外框（只做外观，不动内部控件与整体尺寸）
   v6：中性深色卡片 + 蓝色渐变描边缓慢转动（克制、可见但不抢眼） */

/* 0) 以输入框为基准对齐：上方公告条与输入框共用同一条中心线（宽度不变） */
.qx-chat-ui .qx-noticebar {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 1) 外层回归纯承载层，宽度沿用原尺寸 */
.qx-chat-ui .composer-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.qx-chat-ui .composer-shell::after {
  content: none !important;
}

/* 2) 输入框本体：纯色底 + 柔和投影 */
.qx-chat-ui .composer {
  position: relative;
  padding: 12px 16px;
  border-radius: 18px !important;
  border: 0 !important;
  background: linear-gradient(180deg, #1c1e24, #191b20) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

/* 3) 蓝色渐变描边：绕外框缓慢转动 */
@property --qx-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.qx-chat-ui .composer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background:
    conic-gradient(from var(--qx-border-angle),
      rgba(96, 156, 255, 0) 0deg,
      rgba(104, 162, 255, 0.70) 55deg,
      rgba(126, 176, 255, 0.24) 105deg,
      rgba(96, 156, 255, 0) 150deg,
      rgba(96, 156, 255, 0) 210deg,
      rgba(76, 136, 240, 0.42) 262deg,
      rgba(96, 156, 255, 0) 312deg,
      rgba(96, 156, 255, 0) 360deg),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 6px rgba(96, 156, 255, 0.28));
  animation: qx-border-spin 9s linear infinite;
}
.qx-chat-ui .composer::after {
  content: none !important;
}
@keyframes qx-border-spin {
  to { --qx-border-angle: 360deg; }
}

/* 4) 聚焦态：描边略微提亮，不加光晕 */
.qx-chat-ui .composer:focus-within {
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.qx-chat-ui .composer:focus-within::before {
  background:
    conic-gradient(from var(--qx-border-angle),
      rgba(120, 175, 255, 0) 0deg,
      rgba(120, 175, 255, 0.62) 62deg,
      rgba(140, 190, 255, 0.24) 108deg,
      rgba(120, 175, 255, 0) 150deg,
      rgba(120, 175, 255, 0) 210deg,
      rgba(90, 150, 245, 0.34) 262deg,
      rgba(120, 175, 255, 0) 312deg,
      rgba(120, 175, 255, 0) 360deg),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
}

/* 5) 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .qx-chat-ui .composer::before {
    animation: none;
  }
}
