/* 大金充值系统 — 全局体验增强（与 Tailwind 并存） */

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #0f766e;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #99f6e4;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background-color: rgba(13, 148, 136, 0.22);
  color: inherit;
}

/* 表格在横向滚动时表头略 sticky（父级需 overflow-x-auto） */
.table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 0 rgb(226 232 240);
}

/* 主按钮：禁用态 */
button.btn-primary:disabled,
button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 表单控件 focus-visible 统一（补充浏览器差异） */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid transparent;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 登录页浮动装饰 */
@keyframes float-blob-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}
@keyframes float-blob-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, -15px) scale(1.03); }
  66% { transform: translate(20px, -10px) scale(0.97); }
}
@keyframes float-blob-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, 25px) scale(1.04); }
  66% { transform: translate(-20px, -20px) scale(0.96); }
}
.animate-float-1 { animation: float-blob-1 8s ease-in-out infinite; }
.animate-float-2 { animation: float-blob-2 10s ease-in-out infinite; }
.animate-float-3 { animation: float-blob-3 9s ease-in-out infinite; }

/* 卡片入场 */
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-card-in { animation: card-in 0.5s ease-out; }

/* 细线装饰 */
.decorative-line {
  position: relative;
}
.decorative-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
}
