/**
 * 彩票系统主样式 - 仿昆仑UI
 * 响应式REM布局
 */

/* ============================================
   基础重置和响应式
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 50px;
}

@media screen and (min-width: 320px) { html { font-size: 50px; } }
@media screen and (min-width: 360px) { html { font-size: 56.25px; } }
@media screen and (min-width: 375px) { html { font-size: 58.59px; } }
@media screen and (min-width: 414px) { html { font-size: 64.69px; } }
@media screen and (min-width: 480px) { html { font-size: 75px; } }
@media screen and (min-width: 640px) { html { font-size: 100px; } }
@media screen and (min-width: 750px) { html { font-size: 117.19px; } }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.28rem;
  line-height: 1.5;
  color: #333;
  background: #f5f5f5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

input, button, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: transparent;
}

/* ============================================
   Flexbox工具类
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* ============================================
   主布局容器
   ============================================ */
.mainbox {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 750px;
  margin: 0 auto;
}

.page-header {
  flex-shrink: 0;
  height: 0.88rem;
  background: linear-gradient(135deg, #1a2a6c 0%, #2d4373 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.3rem;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  z-index: 100;
}

.page-content {
  flex: 1;
  padding-top: 0.88rem;
  padding-bottom: 1rem;
  overflow-y: auto;
}

.page-footer {
  flex-shrink: 0;
  height: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  z-index: 100;
}

/* ============================================
   登录/注册页
   ============================================ */
.login-page {
  min-height: 100vh;
  background: url('../img/loginbg.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.4rem;
}

.login-logo {
  width: 2.5rem;
  margin: 0.8rem 0 0.6rem;
}

.login-form {
  width: 100%;
  max-width: 6rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border-radius: 100px;
  padding: 0 0.3rem;
  height: 0.88rem;
  margin-bottom: 0.3rem;
}

.input-group .icon {
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.2rem;
}

.input-group input {
  flex: 1;
  height: 100%;
  background: transparent;
  color: #333;
}

.input-group input::placeholder {
  color: #999;
}

.remember-box {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 0.24rem;
  margin-bottom: 0.4rem;
}

.remember-box .checkbox {
  width: 0.32rem;
  height: 0.32rem;
  border: 2px solid #fff;
  border-radius: 4px;
  margin-right: 0.16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remember-box .checkbox.checked {
  background: #2196F3;
  border-color: #2196F3;
}

.remember-box .checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 0.2rem;
}

.btn-login, .btn-register {
  width: 100%;
  height: 0.88rem;
  border-radius: 100px;
  font-size: 0.32rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.3rem;
}

.btn-login {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
}

.btn-register {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 0.26rem;
}

.login-links a {
  opacity: 0.9;
}

/* ============================================
   房间选择页
   ============================================ */
.roomdoor-page {
  background: url('../img/bgdark.png') center/cover no-repeat;
  min-height: 100vh;
}

.room-header {
  background: url('../img/chatroomtopbg.png') center/cover;
  padding: 0.3rem;
  color: #fff;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #ddd;
  margin-right: 0.2rem;
  object-fit: cover;
}

.user-name {
  font-size: 0.3rem;
  font-weight: bold;
}

.user-balance {
  font-size: 0.24rem;
  color: #FFD700;
  margin-top: 0.1rem;
}

.room-input-section {
  padding: 0.4rem;
}

.room-input-title {
  color: #fff;
  font-size: 0.28rem;
  text-align: center;
  margin-bottom: 0.3rem;
}

.room-code-inputs {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.4rem;
}

.room-code-inputs input {
  width: 0.7rem;
  height: 0.88rem;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  text-align: center;
  font-size: 0.4rem;
  font-weight: bold;
  color: #333;
}

.btn-enter-room {
  width: 100%;
  height: 0.88rem;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
  border-radius: 100px;
  color: #fff;
  font-size: 0.32rem;
  font-weight: bold;
}

.history-rooms {
  padding: 0.3rem;
}

.history-title {
  color: #fff;
  font-size: 0.26rem;
  margin-bottom: 0.2rem;
  opacity: 0.8;
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.history-item {
  background: rgba(255,255,255,0.1);
  padding: 0.15rem 0.3rem;
  border-radius: 100px;
  color: #fff;
  font-size: 0.24rem;
}

/* ============================================
   游戏列表页
   ============================================ */
.game-list-page .page-content {
  padding: 0.2rem;
  background: #1a2a6c;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.2rem;
  padding: 0.2rem;
}

.game-card {
  background: rgba(255,255,255,0.1);
  border-radius: 0.16rem;
  overflow: hidden;
  transition: transform 0.2s;
}

.game-card:active {
  transform: scale(0.98);
}

.game-card-img {
  width: 100%;
  height: 1.8rem;
  object-fit: cover;
}

.game-card-info {
  padding: 0.2rem;
  color: #fff;
}

.game-card-name {
  font-size: 0.28rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
}

.game-card-term {
  font-size: 0.22rem;
  color: rgba(255,255,255,0.7);
}

.game-card-timer {
  font-size: 0.26rem;
  color: #FFD700;
  margin-top: 0.1rem;
}

.game-card-numbers {
  display: flex;
  gap: 0.06rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}

/* ============================================
   号码颜色（1-10）
   ============================================ */
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.22rem;
  font-weight: bold;
}

.num.small {
  width: 0.32rem;
  height: 0.32rem;
  font-size: 0.18rem;
}

.n1  { background: #e6de00; color: #333; }
.n2  { background: #0092dd; }
.n3  { background: #4b4b4b; }
.n4  { background: #ff7600; }
.n5  { background: #17e2e5; color: #333; }
.n6  { background: #5234ff; }
.n7  { background: #bfbfbf; color: #333; }
.n8  { background: #ff2600; }
.n9  { background: #780b00; }
.n10 { background: #07bf00; }

/* ============================================
   游戏房间页
   ============================================ */
.game-room-page {
  background: #EFEFEF;
}

.room-top-bar {
  background: url('../img/chatroomtopbg.png') center/cover;
  padding: 0.2rem 0.3rem;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  z-index: 100;
}

.room-top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-user-money {
  font-size: 0.26rem;
}

.room-user-money span {
  color: #FFD700;
  font-weight: bold;
}

.room-term-info {
  text-align: center;
}

.room-term {
  font-size: 0.24rem;
}

.room-timer {
  font-size: 0.36rem;
  font-weight: bold;
  color: #FFD700;
}

.room-open-numbers {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}

/* 聊天区域 */
.chat-area {
  padding: 1.8rem 0.2rem 2.6rem;
  min-height: 100vh;
}

.chat-message {
  display: flex;
  margin-bottom: 0.2rem;
}

.chat-message.self {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}

.chat-bubble {
  max-width: 70%;
  margin: 0 0.15rem;
  padding: 0.2rem 0.25rem;
  background: #fff;
  border-radius: 0.16rem;
  position: relative;
}

.chat-message.self .chat-bubble {
  background: #95EC69;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  top: 0.2rem;
  width: 0;
  height: 0;
  border: 0.12rem solid transparent;
}

.chat-message:not(.self) .chat-bubble::before {
  left: -0.2rem;
  border-right-color: #fff;
}

.chat-message.self .chat-bubble::before {
  right: -0.2rem;
  border-left-color: #95EC69;
}

.chat-name {
  font-size: 0.22rem;
  color: #999;
  margin-bottom: 0.1rem;
}

.chat-content {
  font-size: 0.28rem;
  word-break: break-all;
}

/* 系统消息 */
.chat-system {
  text-align: center;
  padding: 0.15rem;
}

.chat-system span {
  background: rgba(0,0,0,0.1);
  padding: 0.08rem 0.2rem;
  border-radius: 100px;
  font-size: 0.22rem;
  color: #666;
}

/* 投注消息样式 */
.bet-message {
  background: #FFF3CD;
  border-left: 3px solid #FFC107;
}

.bet-message .bet-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-top: 0.1rem;
}

/* 底部操作区 */
.room-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 100;
}

.quick-actions {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0.15rem;
  gap: 0.15rem;
  overflow-x: auto;
}

.quick-btn {
  flex-shrink: 0;
  padding: 0.12rem 0.25rem;
  border-radius: 100px;
  font-size: 0.24rem;
  background: #f5f5f5;
}

.quick-btn.red { background: #FE4438; color: #fff; }
.quick-btn.blue { background: #178DFF; color: #fff; }
.quick-btn.green { background: #28A833; color: #fff; }

.bet-input-area {
  display: flex;
  padding: 0.15rem;
  gap: 0.15rem;
}

.bet-input {
  flex: 1;
  height: 0.7rem;
  background: #f5f5f5;
  border-radius: 0.1rem;
  padding: 0 0.2rem;
  font-size: 0.28rem;
}

.btn-send {
  width: 1.2rem;
  height: 0.7rem;
  background: #2196F3;
  border-radius: 0.1rem;
  color: #fff;
  font-size: 0.28rem;
}

/* 数字键盘 */
.num-keyboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.1rem;
  padding: 0.15rem;
  background: #f0f0f0;
}

.num-keyboard .key {
  height: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.08rem;
  font-size: 0.28rem;
  font-weight: bold;
}

.num-keyboard .key:active {
  background: #e0e0e0;
}

.num-keyboard .key.n1  { background: #e6de00; color: #333; }
.num-keyboard .key.n2  { background: #0092dd; color: #fff; }
.num-keyboard .key.n3  { background: #4b4b4b; color: #fff; }
.num-keyboard .key.n4  { background: #ff7600; color: #fff; }
.num-keyboard .key.n5  { background: #17e2e5; color: #333; }
.num-keyboard .key.n6  { background: #5234ff; color: #fff; }
.num-keyboard .key.n7  { background: #bfbfbf; color: #333; }
.num-keyboard .key.n8  { background: #ff2600; color: #fff; }
.num-keyboard .key.n9  { background: #780b00; color: #fff; }
.num-keyboard .key.n10 { background: #07bf00; color: #fff; }

/* ============================================
   个人中心
   ============================================ */
.user-center-page .page-content {
  background: #f5f5f5;
}

.user-card {
  background: linear-gradient(135deg, #1a2a6c 0%, #2d4373 100%);
  padding: 0.4rem;
  color: #fff;
  margin: 0.2rem;
  border-radius: 0.16rem;
}

.user-card-top {
  display: flex;
  align-items: center;
}

.user-card .avatar {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  margin-right: 0.3rem;
}

.user-card .name {
  font-size: 0.36rem;
  font-weight: bold;
}

.user-card .id {
  font-size: 0.24rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

.user-balance-card {
  background: rgba(255,255,255,0.1);
  border-radius: 0.12rem;
  padding: 0.3rem;
  margin-top: 0.3rem;
  text-align: center;
}

.balance-label {
  font-size: 0.24rem;
  opacity: 0.8;
}

.balance-amount {
  font-size: 0.5rem;
  font-weight: bold;
  color: #FFD700;
  margin-top: 0.1rem;
}

.menu-list {
  background: #fff;
  margin: 0.2rem;
  border-radius: 0.16rem;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0.3rem;
  border-bottom: 1px solid #f5f5f5;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item .icon {
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
}

.menu-item .text {
  flex: 1;
  font-size: 0.28rem;
}

.menu-item .arrow {
  color: #ccc;
}

/* ============================================
   管理后台
   ============================================ */
.admin-page {
  background: #f0f2f5;
}

.admin-sidebar {
  width: 2rem;
  background: #001529;
  color: #fff;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}

.admin-logo {
  height: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.28rem;
  font-weight: bold;
  background: rgba(255,255,255,0.1);
}

.admin-menu {
  padding: 0.2rem 0;
}

.admin-menu-item {
  padding: 0.25rem 0.3rem;
  font-size: 0.26rem;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background: #1890ff;
}

.admin-main {
  margin-left: 2rem;
  padding: 0.3rem;
}

.admin-header {
  background: #fff;
  padding: 0.3rem;
  margin-bottom: 0.3rem;
  border-radius: 0.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card {
  background: #fff;
  border-radius: 0.08rem;
  padding: 0.3rem;
  margin-bottom: 0.3rem;
}

.admin-card-title {
  font-size: 0.3rem;
  font-weight: bold;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.2rem;
}

/* 表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.2rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.24rem;
}

.data-table th {
  background: #fafafa;
  font-weight: bold;
}

.data-table tr:hover td {
  background: #f5f5f5;
}

/* 表单样式 */
.form-group {
  margin-bottom: 0.3rem;
}

.form-label {
  display: block;
  font-size: 0.26rem;
  margin-bottom: 0.1rem;
  color: #333;
}

.form-input {
  width: 100%;
  height: 0.7rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.08rem;
  padding: 0 0.2rem;
  font-size: 0.26rem;
}

.form-input:focus {
  border-color: #1890ff;
}

.btn-primary {
  background: #1890ff;
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 0.08rem;
  font-size: 0.26rem;
}

.btn-danger {
  background: #ff4d4f;
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 0.08rem;
  font-size: 0.26rem;
}

.btn-success {
  background: #52c41a;
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 0.08rem;
  font-size: 0.26rem;
}

/* ============================================
   弹窗和Toast
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: 0.16rem;
  width: 80%;
  max-width: 5rem;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.show .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 0.3rem;
  font-size: 0.32rem;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.modal-body {
  padding: 0.4rem 0.3rem;
  font-size: 0.28rem;
  text-align: center;
}

.modal-footer {
  display: flex;
  border-top: 1px solid #f0f0f0;
}

.modal-btn {
  flex: 1;
  height: 0.88rem;
  font-size: 0.3rem;
  border: none;
  background: none;
}

.modal-btn.confirm {
  color: #1890ff;
}

.modal-btn.cancel {
  color: #666;
  border-right: 1px solid #f0f0f0;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.1rem;
  font-size: 0.28rem;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}

/* ============================================
   加载动画
   ============================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.loading-spinner {
  width: 0.6rem;
  height: 0.6rem;
  border: 3px solid #f0f0f0;
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   开奖数字滚动动画
   ============================================ */
@keyframes numRoll {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes numSlotRoll {
  0%, 100% { transform: translateY(0); }
  10% { transform: translateY(-90%); }
  20% { transform: translateY(-80%); }
  30% { transform: translateY(-70%); }
  40% { transform: translateY(-60%); }
  50% { transform: translateY(-50%); }
  60% { transform: translateY(-40%); }
  70% { transform: translateY(-30%); }
  80% { transform: translateY(-20%); }
  90% { transform: translateY(-10%); }
}

@keyframes numPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes numFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 滚动容器 */
.num-roll-container {
  display: inline-flex;
  gap: 0.08rem;
  overflow: hidden;
  height: 0.5rem;
  align-items: center;
}

.num-roll-container.small {
  height: 0.4rem;
}

/* 单个数字滚动槽 */
.num-slot {
  width: 0.4rem;
  height: 0.4rem;
  overflow: hidden;
  position: relative;
  border-radius: 50%;
}

.num-slot.small {
  width: 0.32rem;
  height: 0.32rem;
}

/* 滚动中的数字列 */
.num-slot-inner {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.num-slot-inner.rolling {
  animation: slotSpin 0.15s linear infinite;
}

@keyframes slotSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-90%); }
}

/* 停止时的弹跳效果 */
.num-slot-inner.stopped {
  animation: slotStop 0.3s ease-out forwards;
}

@keyframes slotStop {
  0% { transform: translateY(-10%); }
  50% { transform: translateY(5%); }
  100% { transform: translateY(0); }
}

/* 最终数字的入场动画 */
.num.animate-in {
  animation: numPop 0.4s ease-out forwards;
  opacity: 0;
}

.num.animate-in:nth-child(1) { animation-delay: 0.1s; }
.num.animate-in:nth-child(2) { animation-delay: 0.2s; }
.num.animate-in:nth-child(3) { animation-delay: 0.3s; }
.num.animate-in:nth-child(4) { animation-delay: 0.4s; }
.num.animate-in:nth-child(5) { animation-delay: 0.5s; }
.num.animate-in:nth-child(6) { animation-delay: 0.6s; }
.num.animate-in:nth-child(7) { animation-delay: 0.7s; }
.num.animate-in:nth-child(8) { animation-delay: 0.8s; }
.num.animate-in:nth-child(9) { animation-delay: 0.9s; }
.num.animate-in:nth-child(10) { animation-delay: 1.0s; }

/* 开奖中状态 */
.lottery-rolling {
  display: inline-flex;
  gap: 0.08rem;
  align-items: center;
}

.lottery-rolling .roll-ball {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  animation: rollBounce 0.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.22rem;
  font-weight: bold;
  color: #333;
}

.lottery-rolling .roll-ball.small {
  width: 0.32rem;
  height: 0.32rem;
  font-size: 0.18rem;
}

.lottery-rolling .roll-ball:nth-child(1) { animation-delay: 0s; }
.lottery-rolling .roll-ball:nth-child(2) { animation-delay: 0.05s; }
.lottery-rolling .roll-ball:nth-child(3) { animation-delay: 0.1s; }
.lottery-rolling .roll-ball:nth-child(4) { animation-delay: 0.15s; }
.lottery-rolling .roll-ball:nth-child(5) { animation-delay: 0.2s; }
.lottery-rolling .roll-ball:nth-child(6) { animation-delay: 0.25s; }
.lottery-rolling .roll-ball:nth-child(7) { animation-delay: 0.3s; }
.lottery-rolling .roll-ball:nth-child(8) { animation-delay: 0.35s; }
.lottery-rolling .roll-ball:nth-child(9) { animation-delay: 0.4s; }
.lottery-rolling .roll-ball:nth-child(10) { animation-delay: 0.45s; }

@keyframes rollBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-0.1rem) rotate(90deg); }
  50% { transform: translateY(0) rotate(180deg); }
  75% { transform: translateY(-0.05rem) rotate(270deg); }
}

/* ============================================
   响应式调整
   ============================================ */
@media screen and (min-width: 750px) {
  .mainbox {
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
  }
}
