/* 全局微调：号码球、卡片、按钮、走势图（Tailwind 工具类由 CDN 运行时生成，本文件为纯 CSS 补充） */

[v-cloak] { display: none; }

body { -webkit-tap-highlight-color: transparent; }

/* ---------- 组件类（等价于原 @apply 定义，纯 CSS 实现） ---------- */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 6px rgba(15, 23, 42, .04);
  padding: 12px;
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #334155;
}

.inp {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus { border-color: #f87171; box-shadow: 0 0 0 2px #ffe4e6; }

.inp-num {
  width: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 12px;
  text-align: center;
  outline: none;
  margin: 0 2px;
}

.btn {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  transition: background-color .15s, transform .1s;
  user-select: none;
  cursor: pointer;
}
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn-primary { background: #ef4444; color: #fff; }
.btn-primary:hover { background: #dc2626; }
.btn-ghost { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-ghost:hover { background: #e2e8f0; }
.btn-cart { background: #f59e0b; color: #fff; }
.btn-cart:hover { background: #d97706; }
.btn-danger { background: #fff; color: #ef4444; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; }

/* 删除小号按钮 */
.del {
  width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 14px;
  text-align: center;
  flex-shrink: 0;
  transition: color .15s, background-color .15s;
}
.del:hover { color: #ef4444; background: #fef2f2; }

/* ---------- 号码球 ---------- */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.ball-front { background: #e0f2fe; color: #0369a1; }
.ball-back { background: #ffe4e6; color: #be123c; }
.ball-front-hit { background: #10b981; color: #fff; box-shadow: 0 0 0 2px #a7f3d0; }
.ball-back-hit { background: #ef4444; color: #fff; box-shadow: 0 0 0 2px #fecaca; }
.ball-miss { background: #f1f5f9; color: #94a3b8; }

/* ---------- 奖级徽章 ---------- */
.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-big { background: #fef3c7; color: #b45309; }   /* 1-3 等奖 */
.badge-mid { background: #d1fae5; color: #047857; }   /* 4-7 等奖 */
.badge-small { background: #e0e7ff; color: #4338ca; } /* 8-9 等奖 */
.badge-none { background: #f1f5f9; color: #94a3b8; }  /* 未中奖 */

/* ---------- 走势图 ---------- */
.chart-table { border-collapse: collapse; }
.chart-hd {
  font-size: 9px;
  font-weight: 400;
  color: #94a3b8;
  padding: 0 2px 2px;
  min-width: 26px;
}
.chart-no {
  font-size: 9px;
  color: #94a3b8;
  padding-right: 4px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  position: sticky;
  left: 0;
  background: #fff;
}
.chart-cell { padding: 2px; text-align: center; }
.chart-hit {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8);
}
.chart-hit.front { background: #0ea5e9; }
.chart-hit.back { background: #f43f5e; }
.chart-miss {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #e2e8f0;
}

/* ---------- Toast 过渡 ---------- */
.toast-enter-active, .toast-leave-active { transition: opacity .25s, transform .25s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translate(-50%, 8px); }

/* ---------- 细滚动条 ---------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
