/* ============================================================================
 * [R119] 文本「发送」按钮配色修复（纯皮肤层，删 index.html 那一行即回退）
 *
 * 问题根因：
 *   mk-light.css 里 `html[data-theme="light"] .mk-ctl-send { color: rgb(114,120,134) }`
 *   把文字设成灰色 #727886，却压在蓝色渐变 var(--mk-grad-blue) 上 → 灰字蓝底，
 *   对比度极低，看着像"按钮没做完/颜色不对"。
 *
 * 本文件（最后加载 + 更高特异性）统一重做配色：
 *   常态 = 白字 + 精致竖向蓝渐变(#4f8cff→#2f6bff) + 柔和投影 + 顶部高光
 *   hover = 提亮 + 上浮 1px          active = 压暗 + 内阴影（按下感）
 *   focus = 3px 蓝色光环             .is-hit = 260ms 成功绿闪（mk-ui.js 自带）
 *   空输入时不再变灰（保持清晰可读，避免"看起来禁用"）
 * ========================================================================== */

/* 其它主题（深色等）：只补过渡与静音态，不覆盖原有配色 */
.ctrl-page .mk-ctl-inputrow > .mk-ctl-send {
  transition: background-image .16s ease, box-shadow .16s ease,
              transform .12s ease, filter .16s ease !important;
}

/* ---------------- 浅色主题（默认） ---------------- */
html[data-theme="light"] .ctrl-page .mk-ctl-inputrow > .mk-ctl-send {
  /* 文字：纯白，加一点点暗描边保证任何底色下都清楚 */
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(12, 38, 92, .22) !important;

  /* 底色：竖向渐变（比原来的纯横向更稳重，也更接近现代主按钮） */
  background-color: #2f6bff !important;
  background-image: linear-gradient(180deg, #4f8cff 0%, #2f6bff 100%) !important;

  /* 立体感：外投影 + 内顶部高光 */
  box-shadow: 0 2px 8px -2px rgba(47, 107, 255, .55),
              inset 0 1px 0 rgba(255, 255, 255, .30) !important;
  border: none !important;
}

/* 悬停：提亮 + 轻微上浮 */
html[data-theme="light"] .ctrl-page .mk-ctl-inputrow > .mk-ctl-send:hover {
  background-image: linear-gradient(180deg, #5f99ff 0%, #3a76ff 100%) !important;
  box-shadow: 0 5px 15px -3px rgba(47, 107, 255, .62),
              inset 0 1px 0 rgba(255, 255, 255, .36) !important;
  transform: translateY(-1px) !important;
}

/* 按下：压暗 + 内阴影 */
html[data-theme="light"] .ctrl-page .mk-ctl-inputrow > .mk-ctl-send:active {
  background-image: linear-gradient(180deg, #2f6bff 0%, #2757d8 100%) !important;
  box-shadow: inset 0 2px 5px rgba(9, 26, 64, .30) !important;
  transform: translateY(0) !important;
}

/* 键盘聚焦：蓝色光环 */
html[data-theme="light"] .ctrl-page .mk-ctl-inputrow > .mk-ctl-send:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .28),
              0 2px 8px -2px rgba(47, 107, 255, .55) !important;
}

/* 发送成功闪烁（mk-ui.js 点击后加 260ms 的 .is-hit）：白字 + 绿渐变 */
html[data-theme="light"] .ctrl-page .mk-ctl-inputrow > .mk-ctl-send.is-hit,
.ctrl-page .mk-ctl-inputrow > .mk-ctl-send.is-hit {
  color: #ffffff !important;
  background-color: #12b981 !important;
  background-image: linear-gradient(180deg, #41d99a 0%, #12b981 100%) !important;
  box-shadow: 0 0 0 3px rgba(18, 185, 129, .20),
              0 5px 15px -3px rgba(18, 185, 129, .60) !important;
  transform: translateY(0) !important;
}