/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #ec4899;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-loading .container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-loading-overlay .loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: loadingSpin 0.9s linear infinite;
}

.page-loading-overlay .loading-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

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

/* 背景装饰 */
.background-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: 100px;
  left: -50px;
  animation-delay: 3s;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 10%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.05);
  }
  50% {
    transform: translateY(-60px) translateX(-20px) scale(0.95);
  }
  75% {
    transform: translateY(-30px) translateX(20px) scale(1.05);
  }
}

/* 容器 - 减少padding */
.container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 16px; /* 减少: 20px→12px 16px */
  z-index: 1;
}

/* 头部 - 紧凑版 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0; /* 减少: 20px→10px */
  margin-bottom: 10px; /* 减少: 20px→10px */
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px; /* 减少: 10px→8px */
  font-size: 20px; /* 减小: 24px→20px */
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-icon {
  font-size: 26px; /* 减小: 32px→26px */
  animation: bounce 2s infinite;
}

.logo-slogan {
  font-size: 11px; /* 减小: 12px→11px */
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px; /* 减少: 4px→2px */
  font-weight: 400;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 用户菜单容器 */
.user-menu-wrapper {
  position: relative;
}

/* 用户头像按钮 */
.btn-user-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-user-avatar:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-user-avatar:active {
  transform: scale(0.98);
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 用户下拉菜单 */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 1000;
  animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.user-info:hover {
  background: rgba(0, 0, 0, 0.02);
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.05);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-nickname {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-hint {
  font-size: 12px;
  color: #999;
}

.user-actions {
  padding: 8px;
}

.user-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.user-action-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.user-action-btn:active {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(0.98);
}

.action-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.action-text {
  flex: 1;
}

/* 保留旧样式以防兼容 */
.btn-orders {
  display: none;
}

.btn-orders:hover {
  display: none;
}

.btn-orders:active {
  display: none;
}

/* 中奖滚动播报 - 紧凑版 */
.winning-ticker {
  display: flex;
  align-items: center;
  gap: 6px; /* 减少: 8px→6px */
  padding: 8px 12px; /* 减少: 10px 16px→8px 12px */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  margin-bottom: 12px; /* 减少: 20px→12px */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.ticker-icon {
  font-size: 14px; /* 减小: 16px→14px */
  flex-shrink: 0;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  height: 16px; /* 减小: 18px→16px */
}

.ticker-list {
  animation: scroll linear infinite;
  /* 动画时长由JS动态设置，基于记录数量，确保每行滚动1秒 */
}

.ticker-item {
  font-size: 12px; /* 减小: 13px→12px */
  color: var(--text-secondary);
  white-space: nowrap;
  line-height: 16px; /* 减小: 18px→16px */
}

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

/* 主内容 */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 16px; /* 减少: 24px→16px */
}

/* 章节标题 */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* 减少: 10px→8px */
  font-size: 18px; /* 减小: 20px→18px */
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px; /* 减少: 16px→12px */
}

.section-title .title-badge,
.section-title .title-stock {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.15);
}

.section-title .title-stock {
  background: rgba(34, 197, 94, 0.25);
}

.title-decoration {
  font-size: 16px; /* 减小: 18px→16px */
  animation: pulse 2s infinite;
}

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

/* 盲盒卡片 - 紧凑版 */
.blind-box-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px; /* 减小: 24px→20px */
  padding: 18px 20px 20px; /* 收紧顶部，提升首屏展示 */
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.box-3d {
  perspective: 1000px;
  margin-bottom: 30px;
}

.box-front {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: var(--gradient-primary);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
  animation: rotate3d 6s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

.box-front::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

@keyframes rotate3d {
  0%, 100% {
    transform: rotateY(-5deg) rotateX(5deg);
  }
  50% {
    transform: rotateY(5deg) rotateX(-5deg);
  }
}

.box-icon {
  font-size: 80px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.box-question {
  font-size: 60px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.box-info {
  margin-bottom: 12px; /* 大幅减少: 18px→12px */
}

.box-title {
  font-size: 20px; /* 减小: 22px→20px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px; /* 减少: 6px→4px */
}

.box-subtitle {
  font-size: 12px; /* 减小: 13px→12px */
  color: var(--text-secondary);
  margin-bottom: 8px; /* 减少: 12px→8px */
}

/* 特性标签 - 紧凑版 */
.box-features {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px; /* 减少间距 */
}

.feature-item {
  font-size: 11px; /* 减小字体 */
  padding: 4px 8px; /* 减小padding */
}

.box-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px; /* 减少间距 */
}

.price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.price-content {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-currency {
  font-size: 18px; /* 减小: 20px→18px */
  color: var(--primary-color);
  font-weight: 600;
}

.price-value {
  font-size: 42px; /* 减小: 48px→42px */
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.price-unit {
  font-size: 14px; /* 减小: 16px→14px */
  color: var(--text-secondary);
}

/* 参与人数 - 紧凑版 */
.participation-info {
  font-size: 11px; /* 减小字体 */
  margin: 8px 0; /* 减少间距 */
}

/* 按钮样式 - 紧凑版 */
.draw-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.btn-draw {
  position: relative;
  width: 100%;
  padding: 13px 28px; /* 减小: 16px 32px→13px 28px */
  background: var(--gradient-primary);
  border: none;
  border-radius: 14px; /* 减小: 16px→14px */
  color: #ffffff;
  font-size: 16px; /* 减小: 18px→16px */
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.draw-action-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draw-action-item .btn-draw {
  width: 100%;
}

.btn-draw:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.5);
}

.btn-draw:active {
  transform: translateY(0);
}

.btn-draw:disabled,
.btn-draw.btn-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.draw-status-hint {
  width: 100%;
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.btn-draw-batch {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.btn-draw-batch:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.45);
}

.batch-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 0;
}


.batch-package {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #f1d5bd;
  background: #fffaf3;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.batch-package.active {
  border-color: #f59e0b;
  background: #fff4e5;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.18);
}

.batch-package-times {
  font-size: 14px;
  font-weight: 700;
}

.batch-package-price {
  font-size: 12px;
  color: #b45309;
}

.btn-draw .btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.btn-draw .btn-text {
  font-size: 16px;
  line-height: 1.1;
}

.btn-draw .btn-price {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btnShine 3s infinite;
}

@keyframes btnShine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* 奖品网格 */
.prizes-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.prizes-section.layout-single .prizes-grid {
  grid-template-columns: 1fr;
}

.prizes-section.layout-double .prizes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prizes-section.layout-double .prize-card {
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
  gap: 8px;
}

.prizes-section.layout-double .prize-image-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.prizes-section.layout-double .prize-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prizes-section.layout-double .prize-placeholder {
  font-size: 32px;
}

.prizes-section.layout-double .prize-info {
  gap: 6px;
}

.prizes-section.layout-double .prize-name {
  font-size: 13px;
  margin-bottom: 0;
  -webkit-line-clamp: 2;
  text-align: center;
}

.prizes-section.layout-double .prize-desc {
  font-size: 11px;
  margin-bottom: 0;
  -webkit-line-clamp: 2;
}

.prizes-section.layout-double .prize-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.prizes-section.layout-double .prize-price,
.prizes-section.layout-double .prize-probability {
  width: 100%;
  justify-content: center;
}

.prizes-section.layout-double .prize-price .price-value {
  font-size: 12px;
}

.prizes-section.layout-double .prize-stock {
  font-size: 11px;
}

.prizes-section.layout-table .prizes-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prize-table-header,
.prize-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.prize-table-header {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.prize-table-row {
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.prize-table-row:nth-child(even) {
  background: #fbfdff;
}

.prize-table-cell {
  font-size: 13px;
  color: var(--text-primary);
  min-width: 0;
}

.prize-table-cell.name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prize-table-cell.rarity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #475569;
}

.prize-rarity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.prize-table-cell.price {
  text-align: right;
  font-weight: 600;
  color: #111827;
}

.prizes-section.layout-table .prize-load-more {
  padding: 0;
  margin: 0;
  height: 1px;
  opacity: 0;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

.prize-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.prize-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prize-load-more {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.prize-load-more.loaded {
  opacity: 0.7;
}

.prize-image-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.prize-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prize-placeholder {
  font-size: 36px;
  opacity: 0.3;
}

/* 稀有度徽章 */
.prize-rarity-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.prize-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prize-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prize-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prize-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.prize-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 196, 140, 0.18);
  border: 1px solid rgba(255, 160, 120, 0.3);
  font-size: 11px;
  color: #92400e;
  line-height: 1.4;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.prize-price .price-label {
  opacity: 0.9;
  white-space: nowrap;
}

.prize-price .price-value {
  font-weight: 700;
  color: #d97706;
  white-space: nowrap;
}

.prize-price .price-decimal {
  font-size: 0.6em;
}

.prize-stock {
  font-size: 12px;
  color: var(--text-secondary);
}

.prize-stock.low-stock {
  color: var(--danger-color);
}

.prize-probability {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #0f766e;
  background: rgba(45, 212, 191, 0.16);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.prize-image-zoom {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
  padding: 24px;
}

.prize-image-zoom.active {
  opacity: 1;
  pointer-events: auto;
}

.prize-image-zoom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 92vw;
  max-height: 90vh;
}

.prize-image-zoom img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 18px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.prize-image-zoom-text {
  font-size: 14px;
  color: #f8fafc;
  text-align: center;
  line-height: 1.5;
  max-width: 80vw;
  display: none;
}

body.prize-zoom-open {
  overflow: hidden;
}

/* 骨架屏 */
.prize-skeleton {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 16px;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 规则卡片 */
.rules-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.rules-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.rule-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rule-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.rule-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 32px;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-icp {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.footer-icp a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.footer-icp a:hover {
  color: #ffffff;
}

/* 弹窗样式 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: block;
}

body.modal-open {
  overflow: hidden;
  height: 100%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: none;
  position: relative;
  text-align: center;
}

/* 弹窗顶部装饰 */
.modal-content::before {
  display: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* 弹窗图标 */
.modal-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: inline-block;
  animation: none;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

@keyframes modalIconBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#addressModal .modal-content {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  text-align: left;
  max-width: 440px;
  padding: 24px 20px;
}

#addressModal .form-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

#addressModal .title-icon {
  font-size: 16px;
  animation: none;
}

#addressModal .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

#addressModal .form-grid .input-group {
  margin-bottom: 0;
}

#addressModal .input-group {
  margin-bottom: 10px;
}

#addressModal .modal-actions {
  margin-top: 10px;
}

.btn-close {
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close:hover {
  background: var(--bg-tertiary);
  transform: rotate(90deg);
}

.modal-desc {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* 表单样式 */
.input-group {
  margin-bottom: 14px;
  text-align: left;
  position: relative;
}

.input-group:has(.input-label) {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-group.full:has(.input-label) {
  align-items: start;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: left;
  white-space: nowrap;
  min-width: 56px;
}

.input-group:has(.input-label) > :not(.input-label) {
  flex: 1;
  min-width: 0;
}

.input-group:has(.input-label) .input-label {
  margin-bottom: 0;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.input-with-prefix .input-field {
  text-align: left;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* 输入框前缀（+86） */
.input-prefix {
  position: static;
  transform: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
  padding: 0;
  background: transparent;
}

.input-group:has(.input-prefix) .input-field {
  padding-left: 0;
}

.input-field {
  width: 100%;
  padding: 8px 8px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
  color: var(--text-primary);
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  font-family: inherit;
}

.input-group:has(.input-label) .input-field,
.input-group:has(.input-label) .region-select {
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  padding: 6px 0;
  background: transparent;
  box-shadow: none;
}

.input-group:has(.input-label) .input-field:focus,
.input-group:has(.input-label) .region-select:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
  box-shadow: none;
  background: transparent;
  transform: none;
}

.input-field::placeholder {
  color: var(--text-light);
}

.input-field:hover {
  border-color: var(--primary-light);
  background: #ffffff;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

/* 省市区选择器样式 */
.region-selector-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.region-select {
  padding: 8px 8px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px;
  padding-right: 18px;
}

.region-select::-ms-expand {
  display: none;
}

.address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: stretch;
}

.address-grid .region-selector-wrapper {
  margin-bottom: 0;
}

.address-grid .address-detail {
  height: 100%;
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
  align-self: stretch;
}

@media (max-width: 768px) {
  .region-selector-wrapper {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .region-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #addressModal .form-grid {
    grid-template-columns: 1fr;
  }
}

.input-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Modal提示框 */
.modal-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  margin: 24px 0;
  font-size: 13px;
  color: #059669;
  font-weight: 500;
}

#addressModal .modal-tips,
#resultModal .modal-tips {
  justify-content: flex-start;
  text-align: left;
}

#addressModal .tips-text,
#resultModal .tips-text {
  text-align: left;
}

.tips-icon::before {
  content: '🔒';
  font-size: 16px;
}

#addressModal .tips-icon::before,
#resultModal .tips-icon::before {
  content: 'ℹ️';
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 18px;
  font-weight: 700;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.btn-block {
  width: 100%;
}

/* 补充收货地址弹窗：取消动效 */
#addressModal .modal-icon,
#addressModal .btn-icon {
  animation: none;
}

#addressModal .btn,
#addressModal .btn-arrow,
#addressModal .input-field,
#addressModal .region-select {
  transition: none;
}

#addressModal .btn::before {
  content: none;
}

#addressModal .btn-primary:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#addressModal .btn-primary:hover .btn-arrow {
  transform: none;
}

#addressModal .btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

/* 抽奖动画弹窗 */
.modal-draw .modal-content {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.lottery-modal-content {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 20px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  min-width: 500px;
  max-width: 90vw;
}

.lottery-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.lottery-container {
  padding: 20px 0;
}

.lottery-hint {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.draw-animation {
  text-align: center;
}

.box-opening {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  position: relative;
  animation: shake 0.5s infinite;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px) rotate(-5deg);
  }
  75% {
    transform: translateX(10px) rotate(5deg);
  }
}

.box-lid, .box-body {
  width: 100%;
  height: 50%;
  background: var(--gradient-primary);
  border-radius: 12px;
}

.box-lid {
  animation: lidOpen 1s infinite;
  transform-origin: bottom;
}

@keyframes lidOpen {
  0%, 50%, 100% {
    transform: rotateX(0);
  }
  25% {
    transform: rotateX(-30deg);
  }
  75% {
    transform: rotateX(-15deg);
  }
}

.draw-text {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 中奖结果弹窗 */
.modal-result {
  text-align: center;
}

.result-animation {
  margin-bottom: 24px;
}

.result-icon {
  font-size: 64px;
  animation: bounceIn 0.6s ease;
}

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

.result-title {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 12px;
}

.prize-result {
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 16px;
  margin-bottom: 24px;
}

.prize-result .prize-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.prize-result .prize-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.shipping-form {
  text-align: left;
}

.form-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* 订单列表 */
.modal-orders {
  max-height: 80vh;
  overflow-y: auto;
}

.orders-query {
  margin-bottom: 20px;
}

.orders-query .input-group {
  margin-bottom: 0;
}

.orders-query .input-group.input-inline {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
}

.orders-query .input-group.input-inline .input-field {
  width: 100%;
  min-width: 0;
  pointer-events: auto;
}

.orders-query .input-group.input-inline .btn {
  padding: 8px 16px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.order-card:hover {
  border-color: var(--primary-light);
  background: #ffffff;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.order-no {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-status {
  display: flex;
  gap: 8px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.paid {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.shipped {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.unpaid {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.refunded {
  background: #fef3c7;
  color: #92400e;
}

.order-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.order-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
}

.order-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.order-media {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.order-media.order-media-batch {
  width: 100%;
  align-items: flex-start;
  padding: 8px 8px;
  padding-right: 8px;
}

.order-items-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-item-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 64px;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.order-item-rarity {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 3px 8px;
  width: 56px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.order-item-rarity .prize-rarity-dot {
  background: var(--rarity-color, var(--primary-color));
}

.order-item-rarity-text {
  line-height: 1;
}

.order-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item-meta {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  text-align: right;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.order-item-empty {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-media .order-product-name {
  text-align: center;
  margin-bottom: 0;
}

/* 批量订单：上下布局，留足文本空间 */
.order-body-batch {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.order-body-batch .order-info {
  width: 100%;
  padding-left: 8px;
}

.order-body-batch .order-details {
  line-height: 1.8;
}

.order-media .order-rarity {
  margin-bottom: 0;
}

.order-info {
  flex: 1;
  text-align: left;
}

.order-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.order-rarity {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 6px;
  padding: 3px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  display: inline-block;
}

.order-details {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: left;
}

.order-note {
  display: grid;
  gap: 8px;
}

.order-note-view {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-note-text {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.order-note-edit-btn {
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.order-note-hint {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.order-note-edit {
  display: none;
  gap: 8px;
}

.order-note.editing .order-note-view {
  display: none;
}

.order-note.editing .order-note-edit {
  display: grid;
}

.order-note-input {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-primary);
  background: #fff;
  resize: vertical;
}

.order-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.order-note-btn {
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-primary);
  font-size: 12px;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

.order-note-btn.primary {
  border: none;
  background: var(--gradient-primary);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    font-size: 28px;
  }

  .box-front {
    width: 160px;
    height: 160px;
  }

  .box-icon {
    font-size: 60px;
  }

  .box-question {
    font-size: 48px;
  }

  .price-value {
    font-size: 40px;
  }

  .prizes-grid {
    grid-template-columns: 1fr;
  }

  .prizes-section.layout-double .prizes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .prizes-section.layout-single .prizes-grid {
    grid-template-columns: 1fr;
  }

  .prizes-section.layout-double .prize-card {
    padding: 10px;
  }

  .prizes-section.layout-double .prize-name {
    font-size: 12px;
  }

  .prizes-section.layout-double .prize-desc {
    font-size: 10px;
  }

  .prizes-section.layout-double .prize-price,
  .prizes-section.layout-double .prize-probability {
    font-size: 10px;
  }

  .prize-table-header,
  .prize-table-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    padding: 8px 10px;
  }

  .prize-table-header {
    font-size: 11px;
  }

  .prize-table-cell {
    font-size: 12px;
  }

  .modal {
    width: 95%;
    max-height: 85vh;
  }

  .modal-content {
    padding: 20px 16px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-desc {
    font-size: 13px;
  }

  /* 订单查询区域 */
  .orders-query .input-group {
    flex-direction: column;
    gap: 10px;
  }

  .orders-query .btn {
    width: 100%;
    padding: 12px;
  }

  /* 订单卡片 */
  .order-card {
    padding: 12px;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .order-no {
    font-size: 11px;
  }

  .order-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .order-product-name {
    font-size: 14px;
  }

  .order-info {
    font-size: 12px;
  }

  .order-phone,
  .order-time {
    font-size: 11px;
  }

  /* 输入框 */
  .input-field {
    font-size: 14px;
    padding: 12px;
  }

  /* 按钮 */
  .btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  /* 中奖播报 */
  .winning-ticker {
    padding: 8px 12px;
  }

  .ticker-item {
    font-size: 12px;
  }

  /* 空状态 */
  .empty-state {
    padding: 30px 15px;
  }

  .empty-icon {
    font-size: 48px;
  }

  .empty-state p {
    font-size: 13px;
  }

  /* 盲盒卡片 */
  .blind-box-card {
    padding: 18px 16px 20px;
    border-radius: 20px;
  }

  .box-title {
    font-size: 22px;
  }

  .box-subtitle {
    font-size: 13px;
  }

  .box-info {
    margin-bottom: 20px;
  }

  /* 特性标签 */
  .box-features {
    gap: 6px;
  }

  .feature-item {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* 价格区域 */
  .price-section {
    margin: 20px 0;
  }

  .price-label {
    font-size: 12px;
    padding: 4px 10px;
  }

  .price-value {
    font-size: 36px;
  }

  .price-unit {
    font-size: 18px;
  }

  /* 抽奖按钮 */
  .btn-draw {
    font-size: 16px;
    padding: 14px 28px;
  }

  /* 奖品区域 */
  .prizes-section {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .title-badge,
  .title-stock {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* 规则区域 */
  .rules-section {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .rule-item {
    padding: 12px;
  }

  .rule-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .rule-text {
    font-size: 13px;
  }

  .rule-sub {
    font-size: 11px;
  }

  /* FAQ */
  .faq-section {
    padding: 24px 16px;
  }

  .faq-title {
    font-size: 18px;
  }

  .faq-question {
    font-size: 13px;
  }

  .faq-answer {
    font-size: 12px;
  }

  /* Header */
  .header {
    padding: 12px 16px;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-slogan {
    font-size: 11px;
  }

  /* 参与人数提示 */
  .participation-info {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* 奖品卡片 */
  .prize-card {
    padding: 10px;
    gap: 10px;
  }

  .prize-image-wrapper {
    width: 70px;
    height: 70px;
  }

  .prize-placeholder {
    font-size: 28px;
  }

  .prize-name {
    font-size: 13px;
  }

  .prize-desc {
    font-size: 11px;
  }

  .prize-stock {
    font-size: 11px;
  }

  .prize-probability {
    font-size: 11px;
  }

  .rarity-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* 抽奖弹窗移动端适配 ⭐️ 重要 */
  /* 弹窗已使用flexbox居中，这里只需调整内容尺寸 */
  .modal {
    padding: 20px;
  }

  .modal-content {
    width: 100% !important;
    max-width: 95% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    padding: 20px 16px !important;
  }

  .lottery-modal-content {
    min-width: auto !important;
    max-width: 95% !important;
    width: 100% !important;
    padding: 20px 16px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }

  .lottery-title {
    font-size: 18px;
  }

  .lottery-hint {
    font-size: 12px;
  }

  .lottery-boxes {
    gap: 10px;
  }

  /* 中奖结果弹窗 */
  .modal-result {
    padding: 20px 16px !important;
  }

  .result-title {
    font-size: 20px;
  }

  .result-subtitle {
    font-size: 13px;
  }

  .prize-result .prize-image-wrapper {
    height: 150px;
    margin-bottom: 12px;
  }

  .prize-result .prize-name {
    font-size: 16px;
  }

  .prize-result .prize-desc {
    font-size: 13px;
  }

  .prize-result .prize-rarity {
    font-size: 12px;
    padding: 4px 12px;
  }

  /* 收货信息表单 */
  .shipping-form .form-group {
    margin-bottom: 12px;
  }

  .shipping-form .form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .shipping-form .form-input,
  .shipping-form .form-textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  .shipping-form .form-textarea {
    min-height: 60px;
  }

  .shipping-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }
}

/* 极小屏幕优化 (360px以下) */
@media (max-width: 360px) {
  .container {
    padding: 12px;
  }

  .modal {
    padding: 15px;
  }

  .modal-content {
    width: 98% !important;
    max-height: 90vh !important;
    padding: 16px 12px !important;
  }

  .modal-title {
    font-size: 16px;
  }

  .order-card {
    padding: 10px;
  }

  .order-product-name {
    font-size: 13px;
  }

  .btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .input-field {
    font-size: 13px;
    padding: 10px;
  }

  /* 盲盒卡片 */
  .blind-box-card {
    padding: 16px 12px 18px;
  }

  .box-title {
    font-size: 20px;
  }

  .box-subtitle {
    font-size: 12px;
  }

  /* 价格 */
  .price-value {
    font-size: 32px;
  }

  .price-unit {
    font-size: 16px;
  }

  /* 按钮 */
  .btn-draw {
    font-size: 15px;
    padding: 12px 24px;
  }

  /* 区域标题 */
  .section-title {
    font-size: 18px;
  }

  /* Header */
  .logo-text {
    font-size: 16px;
  }

  .logo-slogan {
    font-size: 10px;
  }

  /* 热度标签 */
  .hot-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* 特性标签 */
  .feature-item {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* 规则和FAQ */
  .rule-text,
  .faq-question {
    font-size: 12px;
  }

  .rule-sub,
  .faq-answer {
    font-size: 11px;
  }

  /* 抽奖弹窗极小屏 */
  .lottery-modal-content {
    width: 98% !important;
    padding: 16px 12px !important;
  }

  .lottery-title {
    font-size: 16px;
  }

  .lottery-hint {
    font-size: 11px;
  }

  .result-title {
    font-size: 18px;
  }

  .result-subtitle {
    font-size: 12px;
  }

  .prize-result .prize-name {
    font-size: 15px;
  }
}

/* 加载状态 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
}

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

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 选中文本样式 */
::selection {
  background: var(--primary-light);
  color: #ffffff;
}

/* ==================== 兑换码功能样式 ==================== */
.redeem-code-section {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px dashed rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  text-align: left;
  transition: all 0.3s ease;
}

.redeem-code-section:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.redeem-code-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.required-mark {
  color: #ef4444;
  font-size: 16px;
  font-weight: 700;
}

.redeem-code-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  user-select: none;
  transition: all 0.3s ease;
}

.redeem-code-toggle:hover {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}

.toggle-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.redeem-code-input-wrapper {
  margin-top: 10px;
  animation: slideDown 0.3s ease-out;
}

.btn-verify {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0 20px;
  margin-left: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.redeem-code-status {
  margin-top: 12px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  min-height: 36px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.redeem-code-status:not(:empty) {
  animation: slideDown 0.3s ease-out;
}

.redeem-code-status::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 成功状态 */
.redeem-code-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.redeem-code-status.success::before {
  content: '✓';
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* 错误状态 */
.redeem-code-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.redeem-code-status.error::before {
  content: '✕';
  background: #ef4444;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* 提示状态 */
.redeem-code-status.info {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.redeem-code-status.info::before {
  content: 'ℹ';
  background: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.redeem-code-tip {
  animation: slideDown 0.5s ease-out, pulse 2s ease-in-out infinite;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-50%, 0) scale(1.05);
  }
}

/* 兑换码输入框大写样式 */
.redeem-code-input {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  font-weight: bold;
  text-transform: uppercase;
}

/* 必填标记样式 */
.required-mark {
  color: #ef4444;
  margin-left: 4px;
  font-size: 16px;
}

/* 手机号输入弹窗专属样式优化 */
#phoneModal .modal-content {
  max-width: 400px;
  padding: 32px 28px;
}

#phoneModal .modal-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

#phoneModal .modal-title {
  font-size: 20px;
  margin-bottom: 8px;
}

#phoneModal .modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

#phoneModal .input-group {
  margin-bottom: 12px;
  position: relative;
}

#phoneModal .input-label {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

#phoneModal .input-field {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 14px;
  transition: all 0.3s ease;
  background: transparent;
}

#phoneModal .input-field:hover {
  border-bottom-color: var(--primary-light);
  background: transparent;
}

#phoneModal .input-field:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
  background: transparent;
  box-shadow: none;
  transform: none;
}

#phoneModal .input-prefix {
  position: static;
  transform: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
  padding: 0;
  background: transparent;
}

#phoneModal .input-group:has(.input-prefix) .input-field {
  padding-left: 0;
}

#phoneModal .redeem-code-status {
  margin-top: 8px;
  font-size: 12px;
  padding: 8px 12px;
  min-height: auto;
}

#phoneModal .modal-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  margin: 20px 0;
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}

#phoneModal .tips-icon::before {
  content: '🔒';
  font-size: 14px;
}

#phoneModal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#phoneModal .btn {
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 10px;
}

#phoneModal .btn-arrow {
  font-size: 16px;
}

/* 中奖结果弹窗专属样式 - 优化版 */
#resultModal .modal-content {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

body.result-modal-open #resultModal .celebration-header::before,
body.result-modal-open #resultModal .celebration-header::after {
  display: none !important;
}

body.result-modal-open #resultModal .celebration-sparkles,
body.result-modal-open #resultModal .sparkle {
  animation: none !important;
  opacity: 0.6;
}

body.result-modal-open #resultModal .prize-result::before,
body.result-modal-open #resultModal .prize-result::after {
  display: none !important;
}

body.result-modal-open #resultModal .prize-image {
  animation: none !important;
}

body.result-modal-open #resultModal .modal-content {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

body.result-modal-open #resultModal .prize-media {
  box-shadow: none;
}

/* 顶部庆祝区域 */
#resultModal .celebration-header {
  background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 100%);
  padding: 24px 20px 28px;
  position: relative;
  overflow: hidden;
}

#resultModal .celebration-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 50%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

#resultModal .celebration-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

#resultModal .sparkle {
  position: absolute;
  font-size: 20px;
  animation: sparkle 2s ease-in-out infinite;
}

#resultModal .sparkle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
#resultModal .sparkle:nth-child(2) { top: 25%; right: 15%; animation-delay: 0.5s; }
#resultModal .sparkle:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 1s; }
#resultModal .sparkle:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 1.5s; }

@keyframes sparkle {
  0%, 100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
}

#resultModal .result-animation {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

#resultModal .result-icon {
  font-size: 56px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0% { transform: scale(0) translateY(-20px); opacity: 0; }
  50% { transform: scale(1.15) translateY(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

#resultModal .result-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-top: 8px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

#resultModal .result-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}

/* 奖品展示区域 */
#resultModal .prize-showcase {
  padding: 24px 20px;
  background: #ffffff;
}

#resultModal .prize-result {
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow:
    0 4px 12px rgba(251, 191, 36, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

#resultModal .prize-media {
  position: relative;
  width: min(72%, 220px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#resultModal .prize-media .prize-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  cursor: zoom-in;
  animation: float 3s ease-in-out infinite;
}

#resultModal .prize-value {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #b45309;
  display: none;
}

#resultModal .prize-result::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: rotate 8s linear infinite;
}

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

#resultModal .prize-image-wrapper {
  position: relative;
  margin-bottom: 12px;
  z-index: 1;
}

#resultModal .prize-result .prize-image {
  margin: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#resultModal .prize-badge {
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(80px);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  z-index: 2;
}

#resultModal .prize-result .prize-name {
  font-size: 20px;
  font-weight: 700;
  color: #92400e;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* 表单区域 */
#resultModal .shipping-section {
  text-align: left;
  margin-top: 12px;
}

#resultModal .experience-actions {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 24px;
  background: #ffffff;
}

#resultModal.result-experience .shipping-section {
  display: none;
}

#resultModal.result-experience .experience-actions {
  display: flex;
}

#resultModal.result-experience .prize-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#resultModal .form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#resultModal .input-group {
  margin-bottom: 10px; /* 减少间距: 14px→10px */
}

#resultModal .input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

#resultModal .input-field {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 14px;
  transition: all 0.3s ease;
  background: transparent;
}

#resultModal .input-textarea {
  min-height: 60px; /* 减少高度: 70px→60px */
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

#resultModal .input-field:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
  background: transparent;
  box-shadow: none;
  transform: none;
}

#addressModal .input-field::placeholder,
#resultModal .input-field::placeholder {
  color: var(--text-hint);
  font-size: 13px;
}

/* 省市区选择器紧凑布局 */
#resultModal .region-selector-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

#resultModal .region-select {
  padding: 6px 0;
  font-size: 14px;
  height: auto;
  min-height: 28px;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#resultModal .modal-actions {
  margin-top: 10px;
}

#resultModal .btn-block {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

#resultModal .btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

#resultModal .btn-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

#resultModal .btn-block:hover .btn-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .modal-overlay {
    backdrop-filter: none;
  }

  #resultModal .celebration-header::before {
    animation: none;
  }

  #resultModal .celebration-sparkles {
    display: none;
  }

  #resultModal .result-icon {
    filter: none;
  }

  #resultModal .prize-result::before {
    content: none;
    animation: none;
  }

  #resultModal .prize-media .prize-image {
    animation: none;
    filter: none;
  }

  #resultModal .prize-result {
    box-shadow: none;
  }
}

/* ========================================
   动画预览区域样式 - 内嵌在盲盒卡片中
   ======================================== */

/* 替换原3D盒子 - 超紧凑版 */
.animation-display-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}

#mainHeroReactRoot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.animation-display-wrapper.main-hero-active #animationPreview {
  opacity: 0;
  pointer-events: none;
}

/* 动画展示容器 - 重构版本，不使用scale缩放 */
#animationPreview {
  width: 100%;
  max-width: 620px;  /* 放大盒子整体尺寸 */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 260px;
  z-index: 1;
}

/* Flash动画在预览区域的特殊样式 */
#animationPreview.lottery-boxes-v2 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;  /* 缩小间距，提升盒子占比 */
  filter: none !important;
}

/* =============================
   抽奖随机动效（3选1）
   ============================= */
.fortune-triple-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.fortune-triple-overlay.active {
  display: flex;
}

.fortune-triple-overlay.leaving {
  opacity: 0;
}

.fortune-orbit {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fortune-orbit-spin 2.6s linear infinite;
}

.fortune-orbit-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

.fortune-orbit-center {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 60%, #b45309);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: #7f1d1d;
}

.fortune-orbit-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 46px;
  margin-top: -23px;
  margin-left: -17px;
  border-radius: 8px;
  background: linear-gradient(145deg, #b91c1c, #f97316);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fortune-orbit-pulse 1.2s ease-in-out infinite;
}

.fortune-orbit-card span {
  font-size: 16px;
  font-weight: 700;
  color: #fef3c7;
}

.fortune-fusion {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fortune-fusion-core {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 60%, #b45309);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: #7f1d1d;
  animation: fortune-fusion-core 1.6s ease-in-out infinite;
  z-index: 2;
}

.fortune-fusion-beam {
  position: absolute;
  width: 3px;
  height: 140px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0), rgba(251, 191, 36, 0.9), rgba(251, 191, 36, 0));
  transform-origin: bottom center;
  animation: fortune-fusion-beam 1.4s ease-in-out infinite;
}

.fortune-shuffle {
  position: relative;
  width: 220px;
  height: 260px;
}

.fortune-shuffle-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 120px;
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(160deg, #7f1d1d, #b45309);
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fortune-shuffle-float 0.9s ease-in-out infinite;
}

.fortune-shuffle-card span {
  font-size: 30px;
  font-weight: 700;
  color: rgba(254, 243, 199, 0.9);
}

@keyframes fortune-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fortune-orbit-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes fortune-fusion-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes fortune-fusion-beam {
  0%, 100% { opacity: 0.25; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes fortune-shuffle-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, -6px) rotate(2deg); }
}

/* 移动端适配 - 平板（768px以下） */
@media (max-width: 768px) {
  .animation-display-wrapper {
    padding: 2px 0;
  }

  #animationPreview {
    max-width: 520px;  /* 平板：放大尺寸 */
  }

  #animationPreview.lottery-boxes-v2 {
    gap: 8px !important;
  }
}

/* 移动端适配 - 手机（480px以下） */
@media (max-width: 480px) {
  .animation-display-wrapper {
    padding: 2px 0;
  }

  #animationPreview {
    max-width: 440px;  /* 手机：减少留白 */
  }

  #animationPreview.lottery-boxes-v2 {
    gap: 6px !important;
  }
}

/* 超小屏幕（360px以下） */
@media (max-width: 360px) {
  #animationPreview {
    max-width: 380px;
  }

  #animationPreview.lottery-boxes-v2 {
    gap: 6px !important;
  }
}


/* ========================================
   微信支付弹窗样式
   ======================================== */

#wechatPayModal .modal-content {
  max-width: 420px;
  padding: 20px;
}

#wechatPayModal .modal-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

#wechatPayModal .modal-title {
  font-size: 20px;
  margin-bottom: 4px;
}

#wechatPayModal .modal-desc {
  font-size: 13px;
  margin-bottom: 16px;
}

.wechat-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 12px;
  margin-bottom: 16px;
}

.wechat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.wechat-nickname {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.payment-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  margin-bottom: 16px;
}

.amount-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.amount-value {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

/* 手机号输入组 - 修复+86溢出 */
#wechatPayModal .input-group {
  position: relative;
  margin-bottom: 12px;
}

#wechatPayModal .input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

#wechatPayModal .input-with-prefix {
  position: relative;
}

#wechatPayModal .input-prefix {
  position: static;
  transform: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 1;
  padding: 0;
  background: transparent;
}

#wechatPayModal .input-with-prefix .input-field {
  padding-left: 0;
}

#wechatPayModal .input-field {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  font-size: 14px;
}

#wechatPayModal .modal-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}

#wechatPayModal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

#wechatPayModal .btn {
  padding: 11px 18px;
  font-size: 14px;
}

#wechatPayModal .modal-content {
  animation: none;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.22);
}

#wechatPayModal .modal-content::before {
  display: none;
}

#wechatPayModal .modal-icon {
  animation: none;
  filter: none;
}

/* 支付结果等待弹窗 */
.payment-loading {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.loading-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.loading-progress {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 4px;
  animation: progressAnimation 30s ease-in-out infinite;
}

@keyframes progressAnimation {
  0% { width: 0%; }
  50% { width: 60%; }
  100% { width: 90%; }
}

.loading-tip {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 春节集五福活动占位页 */
.spring-festival-placeholder {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 45%, #f97316 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 120px 24px 24px;
  color: #fff7ed;
}

.spring-festival-placeholder.spring-festival-react {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

#springFestivalReactRoot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
  z-index: 2;
}

.spring-festival-react #springFestivalReactRoot {
  display: block;
  pointer-events: auto;
}

.spring-festival-react #springFestivalLegacyCard {
  display: none;
}

.spring-festival-card {
  width: min(520px, 100%);
  background: rgba(127, 29, 29, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.spring-festival-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fbbf24;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.spring-festival-title {
  font-size: 24px;
  margin: 0 0 8px;
  color: #fff8dc;
}

.spring-festival-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255, 247, 237, 0.8);
}

.spring-festival-info {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 18px;
}

.spring-festival-animation {
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spring-festival-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  gap: 12px;
}

.spring-festival-label {
  color: rgba(255, 247, 237, 0.7);
}

.spring-festival-value {
  font-weight: 600;
  color: #fef3c7;
  text-align: right;
}

.spring-festival-footer {
  font-size: 12px;
  color: rgba(255, 247, 237, 0.7);
  letter-spacing: 2px;
}

.spring-festival-actions {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
}

.spring-festival-button {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  border: none;
  color: #7f1d1d;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spring-festival-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.spring-festival-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.spring-festival-result {
  background: rgba(15, 23, 42, 0.25);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  margin-bottom: 16px;
}

.spring-festival-result-title {
  font-size: 13px;
  color: rgba(255, 247, 237, 0.8);
  margin-bottom: 8px;
}

.spring-festival-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.spring-festival-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fff7ed;
}

.spring-festival-result-thumb {
  width: 34px;
  height: auto;
  aspect-ratio: 500 / 896;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.15);
}

.spring-fortune-default-icon {
  width: 34px;
  height: auto;
  aspect-ratio: 500 / 896;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  position: relative;
}

.spring-fortune-default-icon .spring-fortune-emoji {
  font-size: 20px;
}

.spring-fortune-default-icon .spring-fortune-fu {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 12px;
  color: #facc15;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.spring-festival-empty {
  font-size: 12px;
  color: rgba(255, 247, 237, 0.6);
}

.inventory-modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  padding: 20px;
  text-align: left;
}

.inventory-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.inventory-back-btn,
.inventory-refresh-btn {
  border: 1px solid rgba(17, 24, 39, 0.2);
  background: #fff;
  color: #111827;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.inventory-meta {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 12px;
}

.inventory-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.inventory-list--five {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-list--props {
  grid-template-columns: 1fr;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 10px;
}

.inventory-prop-cover {
  width: 42px;
  height: 42px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.inventory-item .spring-fortune-default-icon {
  width: 42px;
  height: 42px;
  aspect-ratio: 1 / 1;
}

.inventory-item-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.inventory-item-desc {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.inventory-item-countdown {
  font-size: 11px;
  color: #f97316;
  margin-top: 4px;
}

.inventory-item-countdown.is-expired {
  color: #9ca3af;
}

.inventory-item-countdown.is-pending {
  color: #fbbf24;
}

.inventory-use-btn {
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.inventory-use-btn:hover {
  border-color: rgba(17, 24, 39, 0.3);
}

.inventory-use-status {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
}

.inventory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 16px;
  background: #f9fafb;
  text-align: center;
}

.inventory-card-media {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}

.inventory-card-cover {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.inventory-card .spring-fortune-default-icon {
  width: 88px;
  height: 88px;
  border-radius: 12px;
}

.inventory-card .spring-fortune-default-icon .spring-fortune-emoji {
  font-size: 36px;
}

.inventory-card .spring-fortune-default-icon .spring-fortune-fu {
  font-size: 16px;
  right: 6px;
  bottom: 6px;
}

.inventory-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.inventory-card-count {
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.inventory-item-name {
  font-size: 13px;
  color: #111827;
  margin-bottom: 4px;
  font-weight: 600;
}

.inventory-item-code {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}

.inventory-item-meta {
  font-size: 12px;
  color: #6b7280;
}

.inventory-empty {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  padding: 20px 0;
}

.inventory-five-fortune {
  margin: 8px 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-five-fortune-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inventory-five-fortune-title {
  font-size: 14px;
  font-weight: 600;
  color: #991b1b;
}

.inventory-five-fortune-desc {
  font-size: 12px;
  color: #b91c1c;
}

.inventory-five-fortune-count {
  font-size: 12px;
  color: #7c2d12;
}

.inventory-five-fortune-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fbbf24, #ef4444);
  color: #7f1d1d;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.inventory-five-fortune-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.inventory-five-fortune-input {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7c2d12;
}

.inventory-five-fortune-input input {
  width: 72px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: #ffffff;
  color: #7f1d1d;
  font-weight: 600;
}

.inventory-five-fortune-buttons {
  display: flex;
  gap: 8px;
}

.inventory-five-fortune-btn.ghost {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}

@media (max-width: 520px) {
  .inventory-five-fortune {
    flex-direction: column;
    align-items: flex-start;
  }

  .inventory-five-fortune-actions {
    width: 100%;
    align-items: stretch;
  }

  .inventory-five-fortune-buttons {
    width: 100%;
  }

  .inventory-five-fortune-btn {
    flex: 1;
    text-align: center;
  }
}

.inventory-five-fortune-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.redeem-use-content {
  max-width: 420px;
  text-align: left;
  padding: 24px;
}

.redeem-use-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.redeem-use-desc {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 8px;
}

.redeem-use-code {
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  background: #f3f4f6;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 8px;
}

.redeem-use-tip {
  font-size: 12px;
  color: #9ca3af;
}

.redeem-use-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.redeem-use-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.redeem-use-btn.primary {
  background: linear-gradient(135deg, #fbbf24, #ef4444);
  color: #7f1d1d;
  border: none;
}

.redeem-success-content {
  max-width: 420px;
  text-align: center;
  padding: 26px 24px;
}

.redeem-success-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.redeem-success-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.redeem-success-order {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 18px;
}

.redeem-success-order span {
  color: #111827;
  font-weight: 600;
}

.redeem-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.redeem-success-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.redeem-success-btn.primary {
  background: linear-gradient(135deg, #fbbf24, #ef4444);
  color: #7f1d1d;
  border: none;
}

.spring-festival-mode .main-content,
.spring-festival-mode .winning-ticker,
.spring-festival-mode .background-decorations,
.spring-festival-mode .particle-background {
  display: none !important;
}

.spring-festival-mode .header {
  display: none !important;
}

.spring-festival-mode .container {
  z-index: 1001;
}

.spring-festival-mode .user-menu-wrapper {
  display: none !important;
}

.spring-festival-mode .logo-wrapper {
  display: none !important;
}

.spring-festival-mode .footer {
  display: none !important;
}

.spring-festival-mode .header {
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.spring-festival-mode .container {
  max-width: none;
  padding: 0;
}

.spring-festival-mode .back-to-top {
  display: none !important;
}

/* 抽奖动效全屏层 */
.fortune-draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fortune-draw-overlay.active {
  opacity: 1;
}

.fortune-draw-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(251, 191, 36, 0.2), transparent 55%),
    linear-gradient(160deg, #7f1d1d 0%, #991b1b 35%, #b91c1c 65%, #7c2d12 100%);
  overflow: hidden;
}

.fortune-draw-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25), transparent 60%);
  filter: blur(40px);
  animation: fortune-glow 4s ease-in-out infinite;
}

.fortune-draw-runes {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(251, 191, 36, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  animation: fortune-runes 12s linear infinite;
}

.fortune-draw-stage {
  position: relative;
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.fortune-draw-title {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(254, 243, 199, 0.85);
  z-index: 2;
}

@keyframes fortune-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes fortune-runes {
  from { transform: translateY(0); }
  to { transform: translateY(-80px); }
}
