/* cc-kbtn.css —— 全平台统一按钮「全息镭射」（2026-10-26 校长选定 K 方案）
   彩虹糖纸整面流动 + 白光扫过；用法：给按钮加 class="kbtn"。
   关键属性带 !important，确保压过各页自己的按钮样式与内联样式。 */
@keyframes cck-flow { to { background-position: 300% 0; } }
@keyframes cck-sweep { 0% { left: -80%; } 60%, 100% { left: 130%; } }

.kbtn {
  box-sizing: border-box !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  color: #fff !important;
  font: 800 13.5px/1 system-ui, "Microsoft YaHei" !important;
  letter-spacing: 1px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  background: linear-gradient(120deg, #6366f1, #a855f7 30%, #ec4899 55%, #f97316 80%, #6366f1) !important;
  background-size: 300% 100% !important;
  animation: cck-flow 5s linear infinite;
  box-shadow: 0 4px 16px rgba(168, 85, 247, .45) !important;
  transition: transform .12s, box-shadow .12s;
  flex: none;
}
.kbtn > * { position: relative; z-index: 1; }
.kbtn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: cck-sweep 2.6s ease-in-out infinite;
}
.kbtn:nth-of-type(2)::after { animation-delay: .5s; }
.kbtn:nth-of-type(3)::after { animation-delay: 1s; }
.kbtn:nth-of-type(4)::after { animation-delay: 1.5s; }
.kbtn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 22px rgba(168, 85, 247, .6) !important;
}
.kbtn:active { transform: translateY(1px) scale(.98); }
.kbtn:disabled, .kbtn[disabled] {
  filter: grayscale(.75) brightness(.72);
  cursor: not-allowed;
  animation: none;
  transform: none;
}
.kbtn:disabled::after, .kbtn[disabled]::after { display: none; }
/* 小尺寸款：图标按钮、窄空间（尺寸小一号，款式不变） */
.kbtn-sm {
  height: 30px !important;
  padding: 0 10px !important;
  font-size: 12.5px !important;
  letter-spacing: .5px;
  border-radius: 999px !important;
  gap: 5px;
}
/* 选中态：更亮更鼓（配合 class="kbtn on"） */
.kbtn.on {
  filter: brightness(1.14) saturate(1.15);
  box-shadow: 0 0 22px rgba(236, 72, 153, .75) !important;
  transform: scale(1.04);
}
